LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-07-2008, 07:41 AM   #1
jay159
LQ Newbie
 
Registered: Oct 2008
Posts: 9

Rep: Reputation: 0
linux network linux


i have a problem here i am trying to setup a linux network such that i have 4-5 linux pcs and they should be able to login each other i.e if my user1 has some settings in computerc1 and other files he should be able to access from any computer from c2-c5 and that should happen for all users if any user tries to access files from other pc than his he should get that option with all his own settings..
how can we do that i am new with linux but would like to know what all things(softwares/hardwares if any) would be required and some procedure to do that..

moreover i dont want to use remote desktop any other procedure than that would be fine as well, if remote desktop can do he same, i still need to know the exact commands and materials required..
need help with any of these topics would be fine
 
Old 10-07-2008, 08:03 AM   #2
Interflex
Member
 
Registered: Aug 2008
Posts: 52

Rep: Reputation: 15
options are:

*make 1 computer very powerful (server) and set up xdmcp to connect the others to it. This would mean all work is done on 1 pc with the others acting as dumb terminals

*set up an ldap server to share login information. the files will need to be on a file server probably on the ldap server.
then use a script to each users home directory over when logging in and back again on logout.

*have a computer per user and remote login to your computer each time.


The top option will be the easiest to run but the second will be the best performance.
 
Old 10-07-2008, 07:47 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Another alternative to the 'central server' option: ltsp.org
 
Old 10-07-2008, 11:49 PM   #4
jay159
LQ Newbie
 
Registered: Oct 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Interflex View Post
options are:

*make 1 computer very powerful (server) and set up xdmcp to connect the others to it. This would mean all work is done on 1 pc with the others acting as dumb terminals

*set up an ldap server to share login information. the files will need to be on a file server probably on the ldap server.
then use a script to each users home directory over when logging in and back again on logout.

*have a computer per user and remote login to your computer each time.


The top option will be the easiest to run but the second will be the best performance.
i'l try thanks but..

Last edited by jay159; 10-08-2008 at 12:08 AM.
 
Old 10-08-2008, 12:06 AM   #5
jay159
LQ Newbie
 
Registered: Oct 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Interflex View Post
options are:

*make 1 computer very powerful (server) and set up xdmcp to connect the others to it. This would mean all work is done on 1 pc with the others acting as dumb terminals

*set up an ldap server to share login information. the files will need to be on a file server probably on the ldap server.
then use a script to each users home directory over when logging in and back again on logout.

*have a computer per user and remote login to your computer each time.


The top option will be the easiest to run but the second will be the best performance.
exactly i wanna do something like option1 only but how will i manage to do it i am a bit slow on linux not much idea as started using it since 4-5 days only can u help me with the exact process and commands or procedure to do it pls

even if option2 sounds like thats good too can be done let me know the exact process

i have already done opt 3 didnt like it much though
pls mention any links ad softwares that may be reqd

Last edited by jay159; 10-08-2008 at 12:09 AM.
 
Old 10-08-2008, 03:09 AM   #6
Interflex
Member
 
Registered: Aug 2008
Posts: 52

Rep: Reputation: 15
firstly what distribution are you using?

and secondly what login manager (gdm,kdm xdm or something else).
 
Old 10-08-2008, 04:47 AM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Having the home directory mounted on an nfs server would be the easiest way of doing what you want to do. Then all you need is to have the nfs home share mounted when the computer boots up. You might want to read the Linux Filesystem Hierachy Standard. It contains a discription on which directories can be mounted statically (read-only) and shared. This would allow you to install packages or perform security updates on one machine (the one with write access) and have the changes reflected on all of the machines. The LFHS file is on the www.tldp.org website.

The determinate on what approach to use may depend on the types of applications run and whether having apps running on the the server and displaying locally eats up more band width then the fileserver approach. Also an application server would need more horsepower to run several users apps, and need to display screen info as well. The advantage is that the client machines don't need to be powerful and a low power diskless system would suffice.

One thing that can eat a lot of network bandwidth is a non postscript printer. From what I've read, thin clients are popular in Libraries. The network activity suffers when someone prints to a windows printer because the GDI graphics traffic the network instead of a post script file being sent to the print server.
 
Old 10-08-2008, 06:27 AM   #8
jay159
LQ Newbie
 
Registered: Oct 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Interflex View Post
firstly what distribution are you using?

and secondly what login manager (gdm,kdm xdm or something else).
not much idea what are u talking about what distribution or login manager would be suitable
 
Old 10-08-2008, 06:29 AM   #9
jay159
LQ Newbie
 
Registered: Oct 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal View Post
Having the home directory mounted on an nfs server would be the easiest way of doing what you want to do. Then all you need is to have the nfs home share mounted when the computer boots up. You might want to read the Linux Filesystem Hierachy Standard. It contains a discription on which directories can be mounted statically (read-only) and shared. This would allow you to install packages or perform security updates on one machine (the one with write access) and have the changes reflected on all of the machines. The LFHS file is on the www.tldp.org website.

The determinate on what approach to use may depend on the types of applications run and whether having apps running on the the server and displaying locally eats up more band width then the fileserver approach. Also an application server would need more horsepower to run several users apps, and need to display screen info as well. The advantage is that the client machines don't need to be powerful and a low power diskless system would suffice.

One thing that can eat a lot of network bandwidth is a non postscript printer. From what I've read, thin clients are popular in Libraries. The network activity suffers when someone prints to a windows printer because the GDI graphics traffic the network instead of a post script file being sent to the print server.
didnt get what u trying to say
 
Old 10-08-2008, 08:52 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The home partition mounted in /etc/fstab on each partition could be an nfs share. Then a person's home directory would be located on a central server. A person could log into any of the computers and be using the same directory on the share. You would need an entry in /etc/password for each user on all of the computers.
 
Old 10-10-2008, 12:25 AM   #11
jay159
LQ Newbie
 
Registered: Oct 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal View Post
The home partition mounted in /etc/fstab on each partition could be an nfs share. Then a person's home directory would be located on a central server. A person could log into any of the computers and be using the same directory on the share. You would need an entry in /etc/password for each user on all of the computers.
ok so basically i have to put all 5 comps on share and then share directories on a central server can u suggest some server and protocols needed and some more detailed help as i am still a newbie to networking too
 
Old 10-10-2008, 02:33 AM   #12
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Your descriptions sounds a bit strange "put all 5 comps on share". I'm just suggesting using an nfs share and mounting it on the /home directory of each computer. From the users standpoint, there is a /home directory that contains their home directory.

On the server you would configure nfs with the /etc/exports file. Here is a part of mine from my desktop:
Code:
/home/jschiwal/podcasts 192.168.1.0/255.255.255.0(fsid=0,rw,root_squash,sync,no_subtree_check)
/home/jschiwal/music    192.168.1.0/255.255.255.0(rw,root_squash,sync,no_subtree_check)
/home/jschiwal/Documents 192.168.1.0/255.255.255.0(rw,root_squash,sync,no_subtree_check)
Here is the corresponding /etc/fstab entries on my laptop:
Code:
hpmedia:/home/jschiwal/podcasts  /mnt/hpmedia/podcasts   nfs     defaults,user,_netdev 0 0
hpmedia:/home/jschiwal/music     /mnt/hpmedia/music      nfs     defaults,user,_netdev 0 0
hpmedia:/home/jschiwal/Documents /mnt/hpmedia/Documents  nfs     defaults,user,_netdev 0 0
Instead you would have something like this on the server:
Code:
/srv/nfs/home 192.168.1.0/255.255.255.0(fsid=0,root_squash,sync,no_subtree_check)
/srv/nfs/common 192.168.1.1/255.255.255.0(root_squash,sync,no_subtree_check)
And one the users' clients you would have an entry in /etc/fstab like this:
Code:
servername:/srv/nfs/home  /home   nfs     defaults,_netdev 0 0
servername:/srv/nfs/common /home/common nfs defaults,_netdev 0 0
There are other mount & export options you may want. See the manpages for mount, nfs, mount.nfs.

You would then merge the user entries in /etc/password and /etc/shadow, making sure that each user has a unique UID. Then copy the new passwd and shadow file to each computer. The net effect is as if each computer had a number of users.
(note: the second share, I added as an example of a shared directory everyone can access to save or load files. It would have root ownership and "ugo=rwxt" permissions)
---
Another thing to consider is to have each host run an nfs server and export the users own home directory. Then the /etc/fstab file would have entries like:
johnscomputer:/home/johnb /home/johnb nfs defaults,_netdev 0 0
jillscomputer:/home/jills /home/jills nfs defaults,_netdev 0 0

Again, you would need to have entries for each user in /etc/passwd, /etc/shadow and this time /etc/fstab as well.
This way you don't need a central fileserver (NAS).

The first method has an advantage of being able to backup everyone's home directories from one location.

----
One thing I haven't given enough though to is preventing users from modifying /etc/passwd (if they have root access or a live distro) so that they an access someone elses files. But the same thing would be true of someone in a windows network with network admin rights logging in. They could open any directory. NFS v4 has more security options using gssd. I don't have experience with it however. I run nfs v3.
----
You can get fancy and run an NIS server for authentication. The /etc/exports file can contain netgroups instead of hostnames or ip addresses.
 
Old 10-10-2008, 03:22 AM   #13
Interflex
Member
 
Registered: Aug 2008
Posts: 52

Rep: Reputation: 15
The nfs option would be easier to implement and give you more performance.

you would have to install a version of linux on each computer.
then set up the nfs share as described above
then replace the /etc/passwd and /etc/shadow files of each computer with the servers. This will need to be done as root.

adding
/srv/nfs/home 192.168.1.0/255.255.255.0(fsid=0,root_squash,sync,no_subtree_check)
/srv/nfs/common 192.168.1.1/255.255.255.0(root_squash,sync,no_subtree_check)
to /etc/exports file on the server

and

servername:/srv/nfs/home /home nfs defaults,_netdev 0 0
servername:/srv/nfs/common /home/common nfs defaults,_netdev 0 0

to the /etc/fstab on all the other computers.
 
Old 10-16-2008, 01:29 AM   #14
jay159
LQ Newbie
 
Registered: Oct 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Interflex View Post
The nfs option would be easier to implement and give you more performance.

you would have to install a version of linux on each computer.
then set up the nfs share as described above
then replace the /etc/passwd and /etc/shadow files of each computer with the servers. This will need to be done as root.

adding
/srv/nfs/home 192.168.1.0/255.255.255.0(fsid=0,root_squash,sync,no_subtree_check)
/srv/nfs/common 192.168.1.1/255.255.255.0(root_squash,sync,no_subtree_check)
to /etc/exports file on the server

and

servername:/srv/nfs/home /home nfs defaults,_netdev 0 0
servername:/srv/nfs/common /home/common nfs defaults,_netdev 0 0

to the /etc/fstab on all the other computers.

i have linux on each computer but in my network the dns and other things in main LAN is windows Os hope that doesnt creat problems and i can do it simply by entering the commands u have given me in terminals

so in short i need to run the command with IP address in all 5 computers to get it done isnt it??
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Zoom modem/switch & linux<->linux network: DHCP / Static ? tredegar Linux - Networking 8 11-11-2007 03:41 AM
Crossover network! Linux PC to Linux Laptop! Also what about bluetooth wireless usb?? kane hart Linux - Wireless Networking 2 10-16-2003 06:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration