您的位置:首页 > 编程语言 > PHP开发

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

2017-02-10 20:46 316 查看
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登录看看
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: