You are not logged in.
hi i have two system width archlinux,how can i networking and file sharing?
i dont want use samba,becuase samba dont needed in two linux.if there are a manual pdf or learning please intruduce me.
i have another problem,i have an adsl modem.for working it two connecting internet in windows,i set pc ip: 192.168.1.11
and netmask: 255.255.255.0 and getway: 192.168.1.1 and preferred dns: 95.80.184.184 and alternate dns: 4.2.2.4 .
how can i set them in linux?
thancks.
Offline
hi i have two system width archlinux,how can i networking and file sharing?
i dont want use samba,becuase samba dont needed in two linux.if there are a manual pdf or learning please intruduce me.
I would recommend sshfs.
https://wiki.archlinux.org/index.php/Sshfs
i have another problem,i have an adsl modem.for working it two connecting internet in windows,i set pc ip: 192.168.1.11
and netmask: 255.255.255.0 and getway: 192.168.1.1 and preferred dns: 95.80.184.184 and alternate dns: 4.2.2.4 .
how can i set them in linux?
thancks.
To answer your questions: assuming your primary network interface is "eth0", as root issue the following commands:
ifconfig eth0 netmask 255.255.255.0
route add default gw 192.168.1.1
As root, edit "/etc/resolv.conf" and add to the top of the file:
nameserver 95.80.184.184
nameserver 4.2.2.4
I'm not sure about setting a static IP address. Seems like I've tried that in the past and had problems so I just went back to dhcp.
Someone may want to correct me on the commands above as well as direct you to the proper way to set a static IP address. I'm no expert on networking but maybe the above will help you get off the dime.
Offline
An alternate solution is to edit /etc/rc.conf like so:
#Static IP example
eth0="eth0 192.168.1.21 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(gateway)of course you would replace my IP addresses with yours as appropriate. ![]()
EDIT: BTW, you also need to edit /etc/resolv.conf and make sure your DNS servers are added there
Last edited by ralvez (2011-03-05 19:18:25)
Offline
I use NFS see the wiki article: https://wiki.archlinux.org/index.php/NFSv4
This works well for me across two desktops and a laptop running Arch and a desktop and laptop running Linux Mint. I believe windows supports NFS as well.
emk
Offline
I am currently using nfs v3 to r/w on my small Western Digital NAS servers (they don't support v4) and nfs v4 among my Arch boxes.
I run ssh tor emotely log into every box, and sshfs as a backup to nfs. Probably nfsv3 is faster than nfsv4, but it's elder as well.
Consider using external NAS servers more than p2p networking because you can almost forget they are up: their power requirements are low, they do not have noisy fans and some of them even provide RAID that is a prereq for data you do not want to loose.
If possible, enable Wake on LAN (wol) on your boxes. A magic packet from the bash will turn them on whenever you need them: it's so nice and useful!
Definitely moving to GNU/Linux made me trust Computer Science once again.
Definitely moving to Arch made me enjoy and understand GNU/Linux once again.
Offline