View previous topic :: View next topic |
Author |
Message |
Phoenix5100 n00b
Joined: 11 May 2005 Posts: 12
|
Posted: Sun Jun 12, 2005 6:13 pm Post subject: File- / NFS-Server. What to do? |
|
|
Hy!
Maybe ther's another thread, but I don't know where to start. I'm willing to learn and read, but first i have to know what.
Problem: I want a Fileserver for my two other boxes and a NFS Server for my Digital Sat Receiver.
I installed Gentoo on old Hardware. Two ethernet cards.
One should be connected to a DLink WLAN Client which gets an IP Address from hardware router (fixed are possible). The other one has a fix address and should be connected to the digital box.
I have problems with both cards plugged to LAN to connect to the internet.
What have I to do / read / emerge? I do not want a router, i have a hardware based with VoIP. Any help is welcome.
Thanks all. |
|
Back to top |
|
|
b0d0r n00b
Joined: 04 Jan 2003 Posts: 30
|
Posted: Sun Jun 12, 2005 6:27 pm Post subject: |
|
|
For a file server you might want to read up on Samba. Useful for use with windows pcs, also you'll need to read up on NFS.
You *may* need to recompile your kernel for NFS, but that depends on your particular kernel setup. Both Samba and NFS are in the portage tree so you can pretty easily do an emerge for each. |
|
Back to top |
|
|
Phoenix5100 n00b
Joined: 11 May 2005 Posts: 12
|
Posted: Sun Jun 12, 2005 7:23 pm Post subject: |
|
|
contains an samba howto how i have to set up the rules (?) for my two ethernet cards? |
|
Back to top |
|
|
Phoenix5100 n00b
Joined: 11 May 2005 Posts: 12
|
Posted: Sun Jun 12, 2005 9:39 pm Post subject: |
|
|
My main problem is how to configure the two ethernet cards. I don't want samba, but i want to use ftp. But that is secondary.
Thanks for answering |
|
Back to top |
|
|
addeman Apprentice
Joined: 04 Nov 2004 Posts: 181 Location: Stockholm, Sweden
|
Posted: Mon Jun 13, 2005 9:07 am Post subject: |
|
|
I think you could read the "Home router Howto" here. That explains the most about setting up your ethernet cards.
Basicly you need to know what hardware you have, and compile support for them. To find out what hardware you have use lspci, which is part of the sys-apps/pciutils package in portage.
For an nfs server you can find some info here.
Basicly: enable NFS in your kernel, either modules or as built in. Compile and install the new kernel... If you built nfs as modules do
or if you choose to have nfs built in in your kernel you need to reboot. Then do the following
Code: | emerge nfs-utils
rc-update add portmap default
rc-update add nfs default |
Then edit/create the file /etc/exports and add your shares there, as follows:
Code: | /your/shared/dir ip_range/subnet(sync,no_root_squash,rw) |
Well, hope this helps somewhat.
Best regards
addeman |
|
Back to top |
|
|
|