dgplug member blogs

Reader

Read the latest posts from dgplug member blogs.

from nileshpatra

Ever wondered to get a GUI application from another machine get rendered onto yours? If not, Linux offers that to you :P Let's see how: First of all we shall discus some basic terminologies before moving ahead:

The display server

The display server is very similar to a web-server. So Imagine that you have an apache server. Now when a client requests a service, the server would send a few instructions accordingly to the client over http/https protocol. The client(which here is the web browser) will render those instructions and display the content requested. The display server in Linux works almost the same way. The server here interacts with the hardware (CPU) and sends instructions over a protocol known as the 'X' protocol. The latest version of the same is 11, and hence it's called X11.

X-Forwarding

Think what would happen if the display-server is on one machine and client on the other machine? Yes! that would render the graphical applications onto the client machine. That's is exactly what X-forwarding is – render the application on one machine while it runs on a different machine.

Okay, enough of terminologies, let's get to implementing it now.

On the server, configure /etc/ssh/sshd_config to contain the following:

X11Forwarding yes
X11DisplayOffset 10

These two are usually commented out, ensure that the sshd_config contains these. You may need to restart ssh for the changes to be picked up. You can run this if the ssh server doesn't pick that up and then restart the server:

cat /var/run/sshd.pid | xargs kill -1

Next, start ssh on both the machines. On Debian or Debian derivatives you can do so by doing:

sudo service ssh start

Now we will connect the client to the server. On the client machine type:

ssh -X <server name>@<server ip>

If you are facing trouble finding out ip, you can do so via:

nmcli -p device show

And it's done! You have SSH'd into the server machine. Now you can render GUI apps on the client machine, while it runs on the server.

firefox

Here's me rendering firefox on the client :D

 
Read more...

from mrinalraj

First of all kudos for successfully creating `.onion' address. If not, see my previous blog. Tor Browser

Just having a domain is useless if you don't know how to make use of it. So let's begin with the newly created domain. Note the following guidelines are verified on Ubuntu 18.04

Step 1 : First make a directory :-

sudo mkdir /var/www/your_directory_name cd /var/www/your_directory_name/

Step 2 : Create a file name index.html :-

touch index.html

Step 3 : Editing the newly created file

sudo vi index.html : sudo gives the power to override the readonly files Press 'i' to go in INSERT mode Write your good name Press ESC and give :wq as command to save index.html and exit vi Editor.

Step 4 : Editing the root :

cd /etc/nginx/sites-available/ : If says permission denied sudo it :) sudo vi default : It will open long content. Edit the root line from '/var/www/html' to '/var/www/yourdirectoryname'. Save and exit.

Step 5 : Reloading nginx :

systemctl reload nginx

Kudos our work is done

Step 6 : Open your domain name in Tor Browser :

Incase you forgot your domain name. Type sudo cat /var/lib/tor/hidden_service/hostname

Happy Coding :)

 
Read more...

from darshna

Following my previous blog you all know that I am from Electronics and Communication Department and why I chose that. Coming from a family that have high expectations from me(and I don't blame them) I always wondered that if I come into this profession I'll be having a good and stable job and contribute to society and all good things you know! These I thought before I got into engineering, I really loved my stream truly, I thought that this will be exciting and interesting(though all subjects didn't interested me rather got very boring)as days passed and I got into the world of computers it was not a choice that I made it because I wanted it but because I had to, electronics is nothing without software so I had to but slowly its taking my interest and it is, quite fascinating how all these soft wares, work how do they work and how can we make them work (though i don't have so much knowledge about it,just overall analysis). I learnt that there are not too many exciting and open opportunities for my stream of core jobs, and at last we all have to shift into masses into software world, and I am loving it, yes learning about these new stuffs. But if I change my stream from ECE to software is it fine? Like will it hamper anything right? can I do that? can I switch to softwares completely? but on the other hand i have keep reading my stuff too to get that required points and all that stuff! Switching into softwares I found everything new and exciting and also if I am not an expert here there is no use in electronics, but I don't want to go into electronics anymore, too lengthy process plus the field that I had an interest doesn't have any future here so I don't want to process into it, I just want to keep learning about computers and want to be a part of it, it has logic,it makes sense and sadly now my subjects they keep confusing me and have to keep in mind lots and lots of things, I don't have such big brains to hold so much. I too want to be good coder at last!

 
Read more...

from mrinalraj


Onion Note : The following guidelines are verified on Ubuntu 18.04 First install tor and nginx using the following commands: sudo apt install tor sudo apt install nginx sudo ufw allow Nginx Full

Open Terminal and enter : vi /etc/tor/torrc command press i to go in INSERT mode. then search for ############### This section is just for location-hidden services ###

Un-comment the following 2 lines by removing “#” symbol. HiddenServiceDir /var/lib/tor/hidden_service/ HiddenServicePort 80 127.0.0.1:80

to exit vi press Esc then enter :wq to save the changes and exit.

Try to restart the tor and nginx services by the following two commands: sudo service tor restart sudo systemctl restart nginx

On entering the command : sudo ls /var/lib/tor/hidden_service/ you will find filename such as hostname and private key. Enter : sudo cat /var/lib/tor/hidden_service/hostname use will find .onion address. Check it on the Tor browser.

“Congrats you got your own new domain.”

This post may contain error. Please bring it to the notice to help others. By connecting Mrinal Raj

 
Read more...

from darshna

So,this is where I start my blog writing and thanks to my seniors from dgplug, for pulling me out and giving me this confidence to start blogging. I always wanted to write but thought that I need a perfect topic to write,but this is what I learned, it's me my voice not some article publishing. I was never fixed to one place, my father because of his job had to move from places to places, I lived in Mysore for two and a half years and then moved to Udaipur, Rajasthan. At 2008 I finally came to Durgapur and started my schooling. And ended up my higher secondary schooling from Bidhan Chandra Institution For Girls And then I got admitted to Dr.B.C.Roy Engineering College in Electronics and Communication Engineering. Initially I was adamant that I would stay away from computers and programming language but coincidentally I found that I stand nowhere without computer knowledge. So this is it for now and this blogging is not stopping now.

 
Read more...

from mrinalraj


First things first, we should be thankful that we all live in a country where there is freedom to speak on our views. As decades passed and technology evolved the ways of expressing our views have changed completely. We spend most of the time on various social networking sites, updating status almost regularly, sharing our locations, our likes and dislike, our religion and even our views on politics. Now the question is what if we are being tracked? What if these data are easily available to the trackers. You are then left with two replies :

  • Either you completely deny the fact that it is possible.
  • Or you say you got nothing to hide and got no problem with it!

You will find most of the people who state that they have nothing secret in them to hide, it sounds like you don't care about your fundamental rights as you have got nothing special to speak.

To say that you have nothing to hide means like you have nothing to say to protect your freedom of speech.

-Edward Snowden

If you think your privacy is safe and no one is peeping inside your personal and professional life, you need to go through inspiring true story of Edward Snowden and how he was chased when he chose the path of adversaries to benefit others instead of spending rest of his life luxuriously.

Edward Snowden


Edward Joseph Snowden was working as a contractor under US Government where he had access to all the classified files collected from the global surveillance. Edward revealed in public misuse of around billions of internet data and telephonic data records which is called metadata collected by government globally without user's interest. Edward saw that this was a direct attack on the citizens' Freedom of Speech and privacy.

Government's Point of View


Right after the 9/11 attack on the World Trade Centre, US government took various steps to curb terrorism among which one was to give secret access to US State Secret Service which can conduct the surveillance on any of citizen's phone record, GPS location, browser history, etc. Through MNC's like Google, Facebook, Apple they started to gain the data on the citizens. According to the report, there have been about 1.2 million people under the US watch list. Government believes that they can prevent terror attack before it happens using mass surveillance at the stake of our Right to privacy.

Conclusion


Most of the time we fall prey to the online trackers like Facebook and Google where our privacy is more vulnerable. We should try to avoiding websites that tracks our identity and location. Always open-source software should be preferred over a proprietary one.

 
Read more...

from ritik5049

Nowdays these two types of encryption methods are widely used. * Symmetric encryption * Asymmetric encryption

Symmetric Encryption

In symmetric encryption single key is used by both sender and receiver for encryption and decryption. Therefore both the parties have to exchange the key and thus trust issues arise here a lot. Some of symmetric key algorithms are DES(Data Encryption Standard), Triple DES, AES(Advanced Encryption Standard).

symmetric

Suppose there are two-person A and B, A wants to send his/her data from an insecure network to B. A will encrypt the data with key and B will have to decrypt it with the same key.

Asymmetric Encryption

In asymmetric encryption pair of the key are used, one is called public key and the other is private key. The private key is kept secret by the owner and the public key is shared. Data encrypted with the recipient's public key can only be decrypted by the corresponding private key.

asymmetric

Suppose A wants to send data to B, so A must have B's public key to encrypt the data then B decrypt the same with his/her corresponding private key.

 
Read more...

from mrinalraj


Hello Python fans, if you are looking for building any python projects and at the same time making it interactive. You have to make use of several GUI packages in python. Python supports tkinter and other GUI frameworks like kivi, WxPython you can make several user friendly and interactive interface.

So using fewer lines of code in python you can create a Notepad like interface.

 
Read more...

from ritik5049

Hey everyone if you want to view information about CPU in Linux you can use the command cat /proc/cpuinfo in terminal it will display what type of processor your system is running and the number of CPUs present and much more. Here is an example. cpuinfo

 
Read more...

from jason’s wotw blog

wotd, Ineffable

if you’re following the #goodomens craze you’ll bump into this word a lot.

means unknowable.
don't know. but i know it is holy and sacred. so won’t talk about it. that kind of feeling.

 
Read more...

from raydeeam

I was thinking to pen down my thoughts. So here it is, about how I got introduced to Open-Source.

When I was in my final year, somehow I got to know about the word 'Open-Source'. It was all a mystery for me back then. Coming from a third-tier college, Open Source culture was a myth after 2013,2014 I guess. In my batch, hardly someone knows about Open-Source and about Communities. My college was not like the old Dr. B. C. Roy Engineering College, when few masterminds like Kushal, Ratnadeep(rtnpro), Sayan, Chandan were there. Yes they are my college seniors. I got to know about it later after I enrolled myself for dgplug. Anyways that is another story.

Yeah about Open Source, I started digging more about it, I remember, I asked one of my friends about Open-Source, he said “Open-source software is a software whose source code is open to all, everyone can see and modify it”. That day something happened to me I guess. Suddenly I got my interests in it. At the beginning, after trying on my own, I lost hope because I was struggling to learn to contribute and thought that it's impossible. So I left it midway for 3-4 months. Then one day I was talking to Ganesh Kadam in LinkedIn, he suggested me to join dgplug on IRC. Then again I started struggling to set up IRC (as I weren't aware of IRC) and joined dgplug channel. I dropped my first message there'hi'. Got a reply from Sayan. I introduced myself that my name is Rayan, I'm in my final year and I'm from Dr. B. C. Roy Engineering College. Afterwards I got a reply from sayan: “I feel sorry for you”. And I started talking with everyone in the channel, was trying to be online in IRC all the time. After that I got to know about Summer Trainning. That's how it all stated for me.

 
Read more...

from ritik5049

Hello folks, my self Ritik Raushan. This is my first blog ever written by me. I`ll be going to publish much more technical kinds of stuff in upcoming posts. Here we will learn and grow together. See you again.

 
Read more...