Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
20
rated 0 times [  20] [ 0]  / answers: 1 / hits: 15561  / 2 Years ago, sun, october 16, 2022, 11:32:56

I know I can install Samba or openssh-server to be able to share files between two Ubuntu computers. Is there a way to share files without installing additional packages?



I installed Ubuntu on two systems on the same LAN, but without Internet connectivity. I found that my usual way of transferring files (scp) failed because openssh-server was not installed on either system. Using Personal File Sharing was impossible without installing extra packages. I ended up using netcat to transfer, which is suboptimal and not intuitive for the average user.



So I'd like to know if anyone knows of a way to do this with out-of-the-box Ubuntu installations (or at least, with packages available in the Ubuntu desktop CD).



Thanks!


More From » networking

 Answers
2

You can move to a given directory with cd, then serve the current directory as a web server with the command:



python -m SimpleHTTPServer


On the other machine go to the address http://server-ip:8000/



where "server-ip" is what you see when you do "ifconfig" on the source computer, under "inet addr:". For example, if the output of ifconfig on the source computer starts like this:



eth0      Link encap:Ethernet  HWaddr 00:30:67:d5:a7:a4  
inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0
...


then on the target computer, you should point the browser to:



 http://10.0.0.3:8000/

[#40934] Monday, October 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
earxcept

Total Points: 310
Total Questions: 115
Total Answers: 111

Location: Japan
Member since Sat, Oct 2, 2021
3 Years ago
;