标签:
1.源下载地址:http://mirrors.aliyun.com/ubuntu-releases/
2.在虚拟机上安装完后
(1)查看IP地址:ifconfig
(2)SercureCRT上连接,提示“The remote system refused the connection.”
没安装ssh,安装ssh:apt-get install ssh
查看ssh进程是否存在:ps -e |grep ssh
安装完后,SercureCRT就能连接上了。
(3)查看安装了什么软件:dpkg -l
(4)取得超级权限:sudo nsenter -t 0
3.安装docker容器:apt-get install docker
没安装 成功,应该这样安装
apt-get install docker.io
运行docker:service docker start
4.安装smaba
apt-get install samba
配置文件目录:/etc/samba/smb.conf
(1)备份配置文件: cp smb.conf smb.conf.bak
(2)配置文件:
5.apt-get install 安装软件太慢了
更新源:
(1)备份: cp /etc/apt/sources.list /etc/apt/sources.list.old
(2)添加资源地址:
vi /etc/apt/sources.list
写入:
deb http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
(3)更新: sudo apt-get update
标签:
原文地址:http://www.cnblogs.com/a963383404/p/5699306.html