2010年1月31日 星期日

setup ubuntu environment

* setup ubuntu environment
1. ssh :
#sudo apt-get install openssh-server
check ssh server
#ps aux | grep ssh
stop and start ssh daemon
#sudo /etc/init.d/ssh stop #sudo /etc/init.d/ssh start

2. Install vim
#sudo apt-get install vim
Then, edit ~/.bashrc
added
alias ll='ls -l'
alias vi='vim'

3. tftp server:
#sudo apt-get install xinetd tftp-hpa tftpd-hp

安裝TFTP server
修改設定檔/etc/default/tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -c -s /tftpboot"
也修改/etc/inetd.conf
tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -c -s /tftpboot
參數:
-c 讓client可以修改server內的檔案
-s 指定server的資料夾

重新啟動ttftp server
#sudo /etc/init.d/tftpd-hpa restart

安裝client
#sudo apt-get install tftp

4. Install nfs server
$sudo apt-get install nfs-common nfs-kernel-server
$ sudo vi /etc/exports
/work/MVP 192.168.*.*(rw,no_root_squash,nohide,insecure,no_subtree_check,async)

啟動nfs
$/etc/init.d/nfs-kernel-server restart

檢查
$showmount -e

掛載
$mount -t nfs 192.168.xxx.xxx:/work /mnt/nfs


5.Edit screen setting at ~/.screenrc

6.Install samba
#sudo apt-get install samba

Edit vi /etc/samba/smb.conf
Add:
[SHARE] path = /work browseable = yes read only = no create mask = 0644 directory mask = 0755
-------------------------------------------------
Added User
#sudo smbpasswd -a username
Restart samba server
#sudo /etc/init.d/samba restart







沒有留言:

張貼留言