SSH SFTP
sudo apt-get update
sudo apt install openssh-server
ssh -V
sudo nano /etc/ssh/sshd_config
改成:
Subsystem sftp /usr/lib/openssh/sftp-server
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
PasswordAuthentication yes
# PAM authentication via ChallengeResponseAuthentication may bypass
PermitRootLogin yes
# If you just want the PAM account and session checks to run without
PasswordAuthentication yes
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
然后:
service ssh restart
常用软件
nodejs:
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
VIM
参考:
http://blog.csdn.net/a464057216/article/details/52821171
http://www.linuxprobe.com/easymake-vim8.html
https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source
http://h-miyako.hatenablog.com/entry/2014/02/09/082445
debian系不能同时支持py2与py3,所以只编译py3支持。
开发环境:
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \
python3-dev ruby-dev lua5.1 lua5.1-dev git
依赖:
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
git clone https://github.com/vim/vim.git
cd vim
编译设定:
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-python3interp=yes \
--with-python3-config-dir=/usr/lib/python3.5/config \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-gui=gtk2 --enable-cscope --prefix=/usr
先不编译2了,所以去掉了这些:
--enable-pythoninterp=yes \
--with-python-config-dir=/usr/lib/python2.7/config \
为了轻松卸载 vim,使用 checkinstall来安装 。
sudo apt-get install checkinstall
cd ~/vim
sudo checkinstall
让 vim 成为你默认的编辑器,使用 update-alternative。
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
sudo update-alternatives --set editor /usr/bin/vim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
sudo update-alternatives --set vi /usr/bin/vim
http://vim.spf13.com/
sudo apt-get install curl
curl http://j.mp/spf13-vim3 -L -o - | sh
坚果云
https://www.jianguoyun.com/s/downloads/linux
科学上网
PPA源的ss-qt5,proxychains:
sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt-get update
sudo apt-get install shadowsocks-qt5 proxychains
sudo vim /etc/proxychains.conf
添加:
socks5 127.0.0.1 1080
测试:
sudo proxychains pip3 install PyQt5 you-get
设置别名
少打字
sudo nano ~/.bashrc
加入:
play () {
smplayer *${1}*;
}
play-url(){
you-get -p smplayer ''${1}'';
}
you-pl(){
proxychains you-get -p smplayer ''${1}'';
}
you-dl(){
proxychains you-get ''${1}'';
}
you-get -x 127.0.0.1:1080
source ~/.bashrc
播放器
sudo apt-get install vlc browser-plugin-vlc
oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/powerline/fonts/tree/master/DejaVuSansMono
windows双击字体文件,预览安装字体
git clone https://github.com/powerline/fonts
sudo ./install.sh
安卓开发工具
下载地址:
https://developer.android.com/studio/index.html
依赖:
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
下载:
wget https://dl.google.com/dl/android/studio/ide-zips/2.2.3.0/android-studio-ide-145.3537739-linux.zip
命令备忘
//查看命令路径
which vim
//用人话显示磁盘信息
df -h
其他
sudo apt-get install byobu
byobu
sudo apt-get install git emacs mplayer aria2 python-pip python-gevent python-m2crypto fcitx fcitx-googlepinyin fcitx-module-cloudpinyin fcitx-sunpinyin xrdp tightvncserver apache2 samba samba-common-bin ttf-wqy-zenhei ntfs-3g p7zip-full htop screen libreadline-dev smplayer terminator moc ttf-wqy-zenhei fcitx scim-pinyin ttf-wqy-microhei nodejs npm python-pygame zsh proxychains minidlna ffmpeg python3-pip
galliumOS自动登录:
sudo nano /etc/lxdm/lxdm.conf
no_password=1