What is a netbook without networking? So that is why I think there should be a guide to setup the most common network stuff.
(This will be a guide that is supposed to grow as I get things working on my machine ...)
Index:
1. Hostname
2. NFS client
3. Samba
4. Printing
1. Hostname
[EDIT : just got solved with a little help from shihan]
You'll have to set your hostname in "/etc/sysconfig/network", you can't edit "/etc/hosts" because that gets overwritten on every reboot.
Also you have to command out the line : "HOSTNAME='/bin/hostname'
Reboot and that should do the job....
2. NFS client
(To setup the server, please follow a guide specific for your distro or OS)
Install the following from the package manager:
rpcbind - 0.1.4
nfs-utils - 1:1.1.1
Create this directory:
Execute these commands:
To check that the appropriate services are running you can execute rpcinfo:
Now with the following you can check which shares are available on your server:
Mount the drive wherever you want with the following command:
(I had to add the 'nfsvers' option because my nfs server is version 2 and linpus defaults to version 3, but this depends entirely on your distro and setup)
To have that mount automated, you'll have to edit /etc/fstab, my entry looks like:
4. Samba (clientside)
I don't think such a guide could do without the setup instructions for this app ... but I don't have any direct use for this, so it would be super if someone would feel the need to fill this gap ;-)
5. Printing
A) to windows print server
B) to linux print server
(my next item I will try to get to work through cups)
Addendum:
Please feel free to add any useful information or correct me where I made mistakes. English is not my primary language, my excuses if there are some (to many) mistakes in the text...
(This will be a guide that is supposed to grow as I get things working on my machine ...)
Index:
1. Hostname
2. NFS client
3. Samba
4. Printing
1. Hostname
[EDIT : just got solved with a little help from shihan]
You'll have to set your hostname in "/etc/sysconfig/network", you can't edit "/etc/hosts" because that gets overwritten on every reboot.
Also you have to command out the line : "HOSTNAME='/bin/hostname'
Code:
#mousepad /etc/sysconfig/network
HOSTNAME=[your hostname without domain name!!]
2. NFS client
(To setup the server, please follow a guide specific for your distro or OS)
Install the following from the package manager:
rpcbind - 0.1.4
nfs-utils - 1:1.1.1
Create this directory:
Code:
#mkdir /var/lock/subsys
Code:
# service rpcbind start (this rpcbind seems to be the replacement for portmap)
# service nfslock start
# service netfs start
# chkconfig rpcbind on
# chkconfig nfslock on
# chkconfig netfs on
Code:
# rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100000 4 0 111 portmapper
100000 3 0 111 portmapper
100000 2 0 111 portmapper
100024 1 udp 32792 status
100024 1 tcp 44507 status
100021 1 tcp 50882 nlockmgr
100021 3 tcp 50882 nlockmgr
Code:
#showmount -e [server ip/name]
Code:
#mount -o nfsvers=2 [server ip/name]:/home Network/home
To have that mount automated, you'll have to edit /etc/fstab, my entry looks like:
Code:
[server]:/home /home/user/Network/home nfs auto,nfsvers=22ro,user 0 0
4. Samba (clientside)
I don't think such a guide could do without the setup instructions for this app ... but I don't have any direct use for this, so it would be super if someone would feel the need to fill this gap ;-)
5. Printing
A) to windows print server
B) to linux print server
(my next item I will try to get to work through cups)
Addendum:
Please feel free to add any useful information or correct me where I made mistakes. English is not my primary language, my excuses if there are some (to many) mistakes in the text...