如何更新ubuntu的软件+samba+secure+ftp

1,apt-get:(你是可以上网的)
这是一个ubuntu给在线更新软件的一个命令
当你新安装一个ubuntu的时候,你需要更改ubuntu软件源
vi /etc/apt/source.list
国内首选用搜狐或者是网易的源,主要原因是因为,比较快


apt-get update:更新软件源


2,如何安装我们制定的软件
apt-get install samba

apt-get remove ... 


1.sudo apt-get install samba


2.
[shared]
path=/home/zhang
writable=yes
public=yes
browseable=yes
available=yes
3. sudo service smbd reload
sudo service smba restart
4.win 7 运行 \\192.168.1.122 可以看到ubuntu的/home/zhang目录






3,用deb的安装包直接安装
dpkg -i *.deb








4,更新ssh
apt-get install openssh-server


vim /etc/ssh/ssh_config
更改一下内容
# Site-wide defaults for various options
Host *
ForwardAgent no
ForwardX11 no
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication yes
PasswordAuthentication yes
FallBackToRsh no
UseRsh no
BatchMode no
CheckHostIP yes
StrictHostKeyChecking no
IdentityFile ~/.ssh/identity
Port 22
Cipher blowfish


重启ssh:
/etc/ini.d/ssh restart

sshd:使能ssh
netstat -vat:查看状态


使用CRT登录看看
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值