制作启动盘时用的usbwriter
http://www.linuxidc.com/Linux/2014-10/108015.htmUbuntu 中英文切换
http://blog.chinaunix.net/uid-26495963-id-3064653.html
http://blog.csdn.net/bingospunky/article/details/52912574 添加locale编码
sudo vim /var/lib/locales/supported.d/local sudo locale-gen #修改缺少的编码 vi /etc/default/locale vim ~/.vimrc代理服务器 ccproxy
http://jingyan.baidu.com/article/8275fc86d0564546a03cf623.html
设置Ubuntu用代理服务器上网 http://jingyan.baidu.com/article/a501d80cf424c2ec630f5e35.html 点击桌面右上角面板上的用户图标-> 选中菜单中的 系统设置 -> 进入 系统设置 点击 网络 图标 -> 点击网络后 我们就进入了 网络 界面 -> 点选 网络代理 ->方法 中把 无 更换为 手动 ->填写相关代理服务器配置 应用到系统就完成了网络代理的配置
设置apt-get代理 http://blog.csdn.net/liang_henry/article/details/52472544 如果只是希望apt-get使用代理,可以这样: 在终端下编辑/etc/apt/apt.conf加入下面这行, Acquire::http::Proxy “http://yourproxyaddress:proxyport”; 保存退出apt.conf。 有账号和密码的情况: Acquire::http::Proxy “http://username:password@proxy_server:proxy_port/“;
#apt-get也有一个“-o”选项,直接跟apt-get的设置变量,就不用指定配置文件了 sudo apt-get -o Acquire::http::proxy="http://127.0.0.1:8000/" update安装openssh-server时
正在读取软件包列表… 完成 john@Ubuntu:~$ sudo apt-get install openssh-server 正在读取软件包列表… 完成 正在分析软件包的依赖关系树 正在读取状态信息… 完成 现在没有可用的软件包 openssh-server,但是它被其它的软件包引用了。 这可能意味着这个缺失的软件包可能已被废弃, 或者只能在其他发布源中找到
E: 软件包 openssh-server 没有可供安装的候选者
http://www.cnblogs.com/xiaoyangerlaoshi/p/6168411.html
分析原因可能是因为apt-get 的源列表里边找不到我想要的openssh,解救而上述问题的方法就是更新你的sources.list,位于/etc/apt/sources.list 。 现介绍一种简便的更新源的方法,具体方法如下:
打开设置》》软件和更新在下载自->下拉框中,直接点击”选择最佳服务器”,系统会自动测试最优的服务器源。更新系统,终端命令行输入: sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade下列软件包有未满足的依赖关系: openssh-server : 依赖: openssh-client (= 1:6.6p1-2ubuntu1)
这是因为,openssh-server是依赖于openssh-client的,那ubuntu不是自带了openssh-client吗?原因是自带的openssh-clien与所要安装的openssh-ser ver所依赖的版本不同,这里所依赖的版本是1:6.6p1-2ubuntu1,所以要安装对应版本的openssh-clien,来覆盖掉ubuntu自带的。
方法:
sudo apt-get install openssh-client=1:6.6p1-2ubuntu1可以看到,提示了系统中openssh-client被降级,这样再安装openssh-server就可以成功了!
ubuntu安装openssh Ubuntu缺省安装了openssh-client, 但是没有openssh-server,远程主机是连不上本机的。需要再安装openssh-server。 http://jingyan.baidu.com/article/9c69d48fb9fd7b13c8024e6b.html
sudo apt-get update #更新源列表 sudo apt-get install openssh-server #安装ssh sudo ps -e |grep ssh #查看ssh服务是否启动 #有sshd,就表明已经启动,否则就输入下面这条命令 sudo service ssh start ssh # 服务就会启动。 #使用gedit修改配置文件"/etc/ssh/sshd_config" 允许root用户登陆 sudo gedit /etc/ssh/sshd_config 把配置文件中的"PermitRootLogin without-password"加一个"#"号,把它注释掉-->再增加一句"PermitRootLogin yes"-->保存,修改成功。Ubuntu配置动态ip地址 http://blog.csdn.net/zhuyingqingfen/article/details/6582411 http://blog.csdn.net/yongan1006/article/details/8118810
Ubuntu下添加新用户 https://www.douban.com/note/338488349/
新安装的Ubuntu,root密码默认是随机的,需要自己设一个,第一个user是在admin组的,所以他可以给root设置密码。
sudo passwd root给wget设置代理 http://www.jb51.net/LINUXjishu/331842.html 在~/.wgetrc中设定代理: vi ~/.wgetrc
http_proxy = http://ip_or_domainname:80/ ftp_proxy = http://ip_or_domainname:80/ use_proxy = on wait = 15给curl设置代理
curl -x 10.0.0.172:80 www.wo.com.cn此命令使用10.0.0.172:80这个代理服务器IP和端口访问站点www.wo.com.cn
通过设置代理环境变量:
临时设置:在终端中输入命令export http_proxy=http://usr:pwd@proxy_addr:proxy_port/ 或 export https_proxy=http://proxy_addr:proxy_port/
永久设置:在~/.bashrc或/etc/profile等启动文件中添加export http_proxy=http://usr:pwd@proxy_addr:proxy_port/
经测试,使用环境变量设置代理,仅root用户可以联网。猜测应该是sudo权限的问题。
注意:在系统设置中设置代理的原理就是设置代理变量,所以系统设置会覆盖掉此变量,重新启动终端生效。
参考文献: http://www.cnblogs.com/supernalsnow/p/5542724.html