Ubuntu日常问题搜集和解决办法

搜集了日常工作中linuxmint的使用的命令备份和遇到的问题以及解决办法.(持续更新中)

保持ssh链接超时不自动断开

用ssh链接服务端,一段时间不操作或屏幕没输出(比如复制文件)的时候,会自动断开.

在客户端~/.ssh/config文件(没有则新建)添加配置ServerAliveInterval 30

1
2
3
4
5
6
7
Host github.com
     IdentityFile ~/.ssh/id_rsa_github
Host git.oschina.net
     IdentityFile ~/.ssh/id_rsa_gitosc
Host 192.168.1.72
     IdentityFile ~/.ssh/id_rsa_deploy
 ServerAliveInterval 30

常用软件源

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//git
sudo add-apt-repository ppa:git-core/ppa
//atom
sudo add-apt-repository ppa:webupd8team/atom
//wiz
sudo add-apt-repository ppa:wiznote-team
//telegram
sudo add-apt-repository ppa:atareao/telegram
//nodev7
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
//nodev6
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
//nginx  --stable
//下载此key文件
http://nginx.org/keys/nginx_signing.key
//然后
sudo apt-key add nginx_signing.key
//firefox stable
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
//firefox beta
sudo add-apt-repository ppa:mozillateam/firefox-next
//touchpad-indicator
sudo add-apt-repository ppa:atareao/atareao

Oh-My-Zsh

1
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Docker

1
curl -fsSL https://get.docker.com/ | sh

cnpm

1
npm install -g cnpm --registry=https://registry.npm.taobao.org

必备软件

1
2
3
4
5
6
//apt 安装
sudo apt install git subversion wget zsh wiznote hexo-cli guake atom rar unrar p7zip-full gshutdown
//flash
aptitude install pepperflashplugin-nonfree browser-plugin-freshplayer-pepperflash
//需要下载deb安装的软件:
bracketsmysqljd-guifilezilla, smartsvn, smartgit,smartsynchronize,DBeaver

Sublime Text 3输入中文办法

** 使用这里的方法 **

Built with Hugo
Theme Stack designed by Jimmy