1、安装相关软件包

sudo apt-get install tftpd (服务端)
sudo apt-get install tftp (客户端)
sudo apt-get install xinetd

2、建立配置文件

cd /etc/xinetd.d/
vi tftp
输入





QUOTE:




service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}


存盘退出

3、建立tftp服务文件目录

sudo mkdir /tftpboot
 sudo chmod 777 tftpboot/

4、从新启动服务

/etc/init.d/xinetd restart

安装完成!测试方法:


檢查一下tftp是否真的在運作

$ sudo netstat -anp | grep tftp
udp 0 0 0.0.0.0:69 0.0.0.0:* 5249/in.tftpd
unix 2 [ ] DGRAM 17654 5249/in.tftpd



在/tftpboot 目录下随便放个文件abc,然后运行tftp 192.168.123.202 进入tftp命令行,输入get abc看看是不是能把文件下下来,如果可以就可以了,也可以put文件上去。



7、测试tftpd服务是否成功
tftp localhost


 


 


 


一、安裝OpenSSH server(遠端存取伺服器):
由於沒有安裝X環境,coLinux本身console終端機colinux-console-nt和colinux-console-fltk比較醜,個人建議用SSH登入,這就必須安裝openssh-server(遠端存取伺服器,前一篇已略述):
1.安裝openssh-server:


root@ubuntu:~# apt-get install openssh-server

2.下載PuTTY
3.設定PuTTY登入Ubuntu。

arrow
arrow
    全站熱搜

    立你斯 發表在 痞客邦 留言(0) 人氣()