Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
10-21-2012, 10:55 AM
|
#1
|
|
LQ Newbie
Registered: May 2012
Location: UK
Distribution: Debian testing KDE, Mint 14 XFCE, Ubuntu Studio
Posts: 18
Rep: 
|
How to set up very simple 2 laptop wifi network to just send files between them ?
Just trying to send files between two laptops over a wifi link. One laptop running Mint debian xfce, the other running mythbuntu xfce ( ubuntu ) both seem to have working wifi just don't know how to set up a network between them and send files ??? I connect to the internet using a mobile broadband dongle so don't need internet sharing etc.
|
|
|
|
10-21-2012, 11:44 AM
|
#2
|
|
Member
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562
Rep: 
|
I think firstly it would be simpler to buy a wifi access point / router from a computer store. £20-£30 for a basic one.
If that's not an option, I think you need to set up one of the machines as an access point, via mode "Master" or mode "ap" depending on the specific wifi card installed. You may get some useful hints in Build A Linux-Based Wireless Access Point or Create a secure Linux-based wireless access point | Linux.com - otherwise search for articles using similar terms.
|
|
|
|
10-21-2012, 11:46 AM
|
#3
|
|
Senior Member
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 1,732
|
If possible, it would be much easier to just hook up a network cable between the two machines and set them both up with a static IP. Even easier than that would be to use a wifi router like SecretCode said.
|
|
|
|
11-15-2012, 01:28 PM
|
#5
|
|
LQ Newbie
Registered: May 2012
Location: UK
Distribution: Debian testing KDE, Mint 14 XFCE, Ubuntu Studio
Posts: 18
Original Poster
Rep: 
|
Thanks for your tips, as I am running this project on -£0 budget buying router not best option especially as don't have phone line or broadband but other tips helped, now have a link / network between both laptops and can ping back and forth using ip addr but not domain names but to be honest am in new territory, what do I do next to send actual files from one laptop to another???
|
|
|
|
11-15-2012, 01:57 PM
|
#6
|
|
Moderator
Registered: Aug 2002
Posts: 10,757
|
There are many ways to transfer files and in most cases this involves a server/client architecture i.e. ftp, sftp, SMB (samba), sshfs, nfs ...
If you do not know what type of services are currently running and/or do not want to mess with setting one up here is something that is almost foolproof and perfect for your setup. python should already be installed and so you run woof on the computer with the files you want to transfer. The port should be > 1024 i.e. 8080. You can then use the web browser on the other computer using the same port i.e. /other.pc.ip.address:8080 and a popup window will automatically be displayed to download your file(s).
If a firewall is running on either PC make sure it allows traffic on the port you selected.
http://www.home.unix-ag.org/simon/woof.html
Last edited by michaelk; 11-15-2012 at 02:01 PM.
|
|
|
|
11-15-2012, 02:14 PM
|
#7
|
|
LQ Newbie
Registered: May 2012
Location: UK
Distribution: Debian testing KDE, Mint 14 XFCE, Ubuntu Studio
Posts: 18
Original Poster
Rep: 
|
Thank you Michaelk, I found and discarded woof because I just want a simple "send to>>" type thing but I will give your tips a go when I can and go from there> Thank you again Dave
|
|
|
|
11-15-2012, 03:00 PM
|
#8
|
|
Moderator
Registered: Aug 2002
Posts: 10,757
|
Just a suggestion. If a ftp or ssh server is already installed and running then it is almost as simple as send to >>.
Last edited by michaelk; 11-15-2012 at 03:05 PM.
|
|
|
|
11-16-2012, 09:08 AM
|
#9
|
|
Senior Member
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 1,732
|
I typically just use scp. SSH is installed by default on every Linux distro I've ever used, and most of the time the SSHD server is already running as well. In that case you can just
Code:
scp /path/to/file user@IP:/path/to/destination/
If the SSHD server is not already running, you can fire it up very easily.
|
|
|
|
11-16-2012, 09:10 AM
|
#10
|
|
Senior Member
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 1,732
|
Quote:
Originally Posted by davetesc
now have a link / network between both laptops and can ping back and forth using ip addr but not domain names
|
You just need to set up entries for the machines in the /etc/hosts file on each one.
|
|
|
|
11-27-2012, 05:36 PM
|
#12
|
|
LQ Newbie
Registered: May 2012
Location: UK
Distribution: Debian testing KDE, Mint 14 XFCE, Ubuntu Studio
Posts: 18
Original Poster
Rep: 
|
Thanks for all the tips, so far have managed to ping using ip addrs and thanks to tip about editing hosts can now ping using hostnames . I am sure this should be a simple thing to do but can't get any further. Tried gftp etc and just get connection refused even with firewalls disabled, not sure if it makes a difference but it seems to be using port 21 or 22 ???
Any suggestions happily received.
Thanks Davetesc.
|
|
|
|
11-27-2012, 06:08 PM
|
#13
|
|
Senior Member
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 1,732
|
Are you running an ftp server on the machine? If not, then you can't connect to it with an ftp client.
As I said above, I typically just use SCP for file transfer between two Linux machines. The SSHD server is already installed and configured on 99.9999% (approximate number) of Linux distros, so it's trivially easy to use.
|
|
|
|
11-27-2012, 06:17 PM
|
#14
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
You need to configure SSH, start the sshd server and open port 22 before using it. Do you have a mobile dongle for each?
Does each laptop have an independent Internet connection? If your connection is across the Internet instead of on a LAN, then you want to re-enable the firewalls and use a secure protocol like ssh to transfer files.
Open port 22 for SSH.
Run "ssh-keygen" to generate a key pair in ~/ssh/. You can accept the defaults.
Edit /etc/ssh/sshd_config. Add the line: AllowUsers your_username. You could also to use keys instead of a password for logging in, but this isn't necessary.
Start the sshd service. You might want to enable it to start when you boot.
Now you can use scp or sftp to transfer files. The file browser can even open a window using sftp.
If you use Nautilus, select File -> Connect To Server. Enter the host name of the other computer.
Later, you can simply click on the Computer Icon at the top of Nautilus and then open the SFTP icon for the server.
Even your "Send to..." will have an option to send a file to the sftp folder.
Last edited by jschiwal; 11-27-2012 at 06:18 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:21 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|