Wednesday, November 16, 2005

Install RHEL AS3 notes:
1. Install with SATA hard drive:
The install programme cann't recognize the SATA hard drive, you should get into the BIOS when booting, change the SATA to legacy parrallel ATA(or PATA), maybe your motherbord support it. After that
, proceding the installation.
When completed installation, we can rebuild the kernel to support our SATA drive. see the reference:
http://linuxmafia.com/faq/Hardware/sata.html
2. config vsftp
a. create a ftp user, can't login, home directory is /ftp when logining with ftp client tool, group is ftp, don't create home directory for this user.
useradd -d /ftp -G ftp -M -s /sbin/nologin sudy
b. edit /etc/vsftpd/vsftpd.conf:
anonymous_enable=no #deny anonymous login
local_enable=yes #enable local user to login in
local_umask=022 #the uploaded file's properity is 755
chroot_local_user=yes #restrict user in there home directory.
userlist_enable=yes
userlist_deny=no # conjunction with userlist_enable and userlist_deny, can specifiy which local user can login or not. if userlist_enable=yes,userlist_deny=no, local users list in userlist_file can login. if userlist_enable=yes,userlist_deny=yes, local users list in userlist_file cann't login. userlist_deny is yes default
userlist_file=/etc/vsftpd.user_list
c. /etc/init.d/vsftpd restart
3. config NFS:
a. /etc/init.d/nfs start and /etc/init.d/nfslock start
can use nfs tools see the result, "rpcinfo -p", "ps aux |grep rpc*"
the rpc.statd, rpc.mountd, portmap, nlockmgr must be in the list.
b. edit /etc/exports on nfs server
/share/download eda5(rw,sync,no_root_squash)
this means we will share /share/download with eda5(can use ip address or domain name), eda5 have read and write rights. treate remote root as local root, this enable remote root mount file on the server.
c. exportfs -rv
every time, when change the /etc/exports, must run this command to allow our changed to be effective.
d. mount eda1:/share/download /mnt/
this mount file from nfs server eda1 to local /mnt. we can edit /etc/fstab to allow auto mount when booting. add this line : eda1:/share/download /mnt nfs rw,hard,intr 0 0
4. share home directory on nfs server
we can put the home directory of every user on local machine to a centered server, thus login from every machine, every user have the same home directory.
a. in every local machine, mount a directory from server, which directory store home directory of local users. eg. in server eda1, nfs share the directory /export/workspace. in local machine eda5, mount it in /mnt/workspace.
b. useradd sudy in every local machine, specifying the home directory is /mnt/workspace.
c. on every local machine, edit /etc/profile.d/gnome-ssh-askpass.sh, add export GCONF_LOCAL_LOCKS=1

0 Comments:

Post a Comment

<< Home