Share file between two ubuntu via Wifi

Well, I bought a new laptop today. As its a fresh copy, i needed to transfer some file from the desktop to it. I thought

Hey, how hard it can be? its a simple thing.

And that is where i made my mistake. Well, its fairly simple. But i just didn’t know the easiest way. I have a wifi device connected to my desktop and i am sharing my internet connection using it. So i connected my laptop via wifi. Its connected to internet, but, I can’t find any way to get file from my Desktop. Before getting to the point, let me tell you, what i did so far.

  • Tried to share my whole hard-drive via apache server. So that i can access them from the laptop using the Internal IP. That didn’t worked out so far, just because both of my 500GB hdd was full top to bottom. Fixing permission on them took about an hour and them crushed because of some error. F**k.
  • Found a cross-over cable from my store room. That didn’t quite worked out because of a huge amount of permission thing.

I almost gave up. Fu*k Sharing. No more sharing. I would rather use a portable HDD to transfer the file then connecting these two via lan. Then, one last badass option left.

About a year ago, i was having trouble with a nginx configuration thing. My friend and Team mate Sarim khan accessed my pc via openssh and fixed the problem. Well, then i had a static IP. Now i don’t. ( If any bad ass mothe* fu***r getting some funny idea about it, don’t. Won’t gonna work. )

So i thought, what the hell, lets give it a try. So this is what i did. Install Open SSH on both of your computer. Simple in ubuntu. just run this,

 

You gotta do that on both of your computer. Then, get to nautilus. Is you are wondering what the fu*k is that, its your file manager. Now stop wasting time and get there.

Now point is, which computer is your target for getting data? the Desktop or Laptop? If you are planning to get data from Desktop to Laptop, Open Nautilus and Click on the Top corner menu Called “File”.

You will find a submenu called “Connect to Server”. Click there. You will find a window like this one, Watch the data i put there, carefully.

Now read this section carefully.

The username is the username of your Ubuntu User. And in case of oritro-lappy, there should be the name of your computer. If you don’t know what is it, you are a fuc*ing retard and still i am gonna help you. Press Ctrl+Alt+T, the Terminal will open. The first text you should see there is something like [email protected]:-$ . Here, the someone is your username and the something is your computer name. Now put them as you found on the Terminal. You have to put your username twice as you can see.

If you are done doing that, click connect. You will have a warning like this one,

have that? Now don’t freak out you hopeless moron. This will happen for the first time. Click “Log in Anyway”. Then another box will come up, asking for password,

Put your password, and don’t ask he how you can find it. Once you do that, its gonna take a while, about a few sec based on a few things. Then you will have something like this on Nautilus, Again, your Fuc*ing File manage.

Understood? You can access your whole harddrive via this. How? Why don’t you play around a bit and find out?

 

Question? there is a comment box below.

2 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.