FedoraForum.org

FedoraForum.org (http://forums.fedoraforum.org/index.php)
-   Servers & Networking (http://forums.fedoraforum.org/forumdisplay.php?f=10)
-   -   how to share a folder to acces trough another fedora system (http://forums.fedoraforum.org/showthread.php?t=268484)

Ditzy 16th August 2011 09:30 PM

how to share a folder to acces trough another fedora system
 
Maybe the most stupid question you guys ever heard, but i do not find the solution.

Now that i have acces on the netbook i would like to share a folder on my desktopcomputer so i can acces it with the netbook when im in the bedroom.(moviefolder)

But how do i share a folder in Fedora 15?

Username and password are the same on desktopcomputer and netbook.
desktop computer is named koen-pc
netbook is named koen-net

thx for the help

Ditzy 17th August 2011 11:31 PM

Re: how to share a folder to acces trough another fedora system
 
what i found out so far:
http://www.fergytech.com/2011/05/ena...-on-fedora-15/

When i try to connect with the netbook i get following output:
Code:

[root@Koen-NET ~]# ssh Koen@192.168.1.2
ssh: connect to host 192.168.1.2 port 22: No route to host

192.168.1.2 is the network ip from the desktop computer (from the netbook is 192.168.1.8)

When i ping to the desktopcomputer from the netbook the ping output is correct:
Code:

[root@Koen-NET ~]# ping -c 10 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_req=1 ttl=64 time=2.49 ms
64 bytes from 192.168.1.2: icmp_req=2 ttl=64 time=2.58 ms
64 bytes from 192.168.1.2: icmp_req=3 ttl=64 time=2.87 ms
64 bytes from 192.168.1.2: icmp_req=4 ttl=64 time=2.52 ms
64 bytes from 192.168.1.2: icmp_req=5 ttl=64 time=2.93 ms
64 bytes from 192.168.1.2: icmp_req=6 ttl=64 time=2.60 ms
64 bytes from 192.168.1.2: icmp_req=7 ttl=64 time=2.94 ms
64 bytes from 192.168.1.2: icmp_req=8 ttl=64 time=2.52 ms
64 bytes from 192.168.1.2: icmp_req=9 ttl=64 time=2.53 ms
64 bytes from 192.168.1.2: icmp_req=10 ttl=64 time=2.90 ms

--- 192.168.1.2 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9013ms
rtt min/avg/max/mdev = 2.491/2.692/2.947/0.191 ms

So somewhere i am doing something wrong, but i can't find out what.
I didn't adjust any folder yet to be shared, probably that is the problem, but how do i adjust the folder i want to share?

thx

salemeni 22nd August 2011 12:19 PM

Re: how to share a folder to acces trough another fedora system
 
Check you firewall rules (iptables).

comparing objects

cazo 22nd August 2011 07:30 PM

Re: how to share a folder to acces trough another fedora system
 
Another option is gnome-user-share, which sets up a webdav share of $HOME/Public (so it will install apache too). I believe it used to be installed by default.

If I recall correctly, you also had to be 'logged in' at the 'desktop computer' to access the files from the 'netbook computer'.

I found it much easier to open a nautilus window (on koen-NET), hit Control-L (or "Go | Location") & enter:
Code:

sftp://Koen-PC/home/ditzy/moviefolder
Nautilus will prompt you for username & password. It will show up under "Computer", and you can add it as a bookmark in nautilus.

Since it uses ssh, you have to be able to access one from the other & have sshd running (on the desktop computer):
Code:

[root@Koen-PC ~]# chkconfig sshd on
[root@Koen-PC ~]# service sshd start

I believe ssh is allowed thru the firewall by default, but you can make sure it's checked by hitting Alt-F2 and typing system-config-firewall.

jonasen 28th August 2011 12:47 PM

Quote:

Originally Posted by cazo (Post 1506068)
Another option is gnome-user-share, which sets up a webdav share of $HOME/Public (so it will install apache too). I believe it used to be installed by default.

If I recall correctly, you also had to be 'logged in' at the 'desktop computer' to access the files from the 'netbook computer'.

I found it much easier to open a nautilus window (on koen-NET), hit Control-L (or "Go | Location") & enter:
Code:

sftp://Koen-PC/home/ditzy/moviefolder
Nautilus will prompt you for username & password. It will show up under "Computer", and you can add it as a bookmark in nautilus.

Since it uses ssh, you have to be able to access one from the other & have sshd running (on the desktop computer):
Code:

[root@Koen-PC ~]# chkconfig sshd on
[root@Koen-PC ~]# service sshd start

I believe ssh is allowed thru the firewall by default, but you can make sure it's checked by hitting Alt-F2 and typing system-config-firewall.

I've been looking for a solution too. And here it was. Thanks.

Sent from my Transformer TF101 using Tapatalk

cazo 1st September 2011 06:01 AM

Re: how to share a folder to acces trough another fedora system
 
Quote:

Originally Posted by jonasen (Post 1507525)
I've been looking for a solution too. And here it was. Thanks.

Sent from my Transformer TF101 using Tapatalk

jonasen, I appreciate your post & am glad you found the information helpful.

salemeni 9th September 2011 02:23 PM

Re: how to share a folder to acces trough another fedora system
 
What's the os of your netbook.

Gödel 9th September 2011 04:43 PM

Re: how to share a folder to acces trough another fedora system
 
A quick way to share any folder is via python, change to the directory you want to share and type

Code:

python -m SimpleHTTPServer
this will share the directory on port 8000 (you will need to open port 8000 in the firewall or temporarily stop the firewall (su -c 'service iptables stop')

then from any other machine on your network the directory is available via http://ip.of.your.machine:8000

eg if your machine's ip is 192.168.0.2 you can open a browser on the other machine (can be windows, mac, linux, android etc) and enter

Code:

http://192.168.0.2:8000
in the url address box


All times are GMT +1. The time now is 09:43 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.