Ubuntu
{% include JB/setup %}
User
Add User
w
userdel -f taohe
rm -rf /home/taohe
adduser taohe
visudo
vi /etc/sudoers
Under root ALL=(ALL) ALL
Add taohe ALL=(ALL) ALL
Delete User
userdel -f taohe
rm -rf /home/taohe/
Disable root Login SSH
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
sudo vim /etc/ssh/sshd_config
Add
PermitRootLogin no
Restart sshd
sudo service ssh restart
Editor
neovim
sudo apt-get install neovim
APT
Find installed files
sudo apt-get install apt-file
apt-file update
apt-file list libssh-dev
Clean unused files
apt-get autoclean
apt-get autoremove
Develop
Build
sudo apt-get install autoconf automake libtool curl make g++ unzip cmake
sudo apt-get install libssh-dev libz-dev libncurses-dev libreadline-dev
ctags
./configure --prefix=/home/walnuthe/usr --enable-etags
global
./configure --prefix=/home/walnuthe/usr --with-exuberant-ctags=/home/walnuthe/usr/bin/ctags
cscope
./configure --prefix=/home/walnuthe/usr
Debug
patchelf
http://nixos.org/patchelf.html
Shell
Git
sudo apt-get install git
Zsh
autojump
sudo apt-get install autojump
Add this line to ~/.bashrc
[[ -s /usr/share/autojump/autojump.sh ]] && source /usr/share/autojump/autojump.sh
fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
Language
Go
sudo apt-get install golang
Python
sudo apt install python-pip
sudo apt install python3-pip
R
sudo vim /etc/apt/sources.list
Add this line
deb http://cran.rstudio.com/bin/linux/ubuntu raring/
Then
sudo apt-get update
sudo apt-get install r-base
UI
Desktop Shoutcut
所有程序快捷方式都在/usr/share/applications/
下面,复制到桌面并且赋予执行权限就可以了
显示休眠菜单
PPA
Speed Up apt-get Downloads With apt-fast
How To Find Out To Which PPA Repository A Package Belongs To
compizconfig settings manager
设置显示特效(必备)
GLX-Dock
类苹果的Dock(推荐)
avant window navigator
类苹果的Dock
gnome-pie
环形程序启动器(推荐)
sudo add-apt-repository ppa:simonschneegans/testing
sudo apt-get update
sudo apt-get install gnome-pie
Ubuntu Tweak
sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak
Desktop
Terminator
Set copy and paste
vi ~/.config/terminator/config
[keybindings]
paste = <Control>v
copy = <Control>c
Browser
chromium(必备)
File
Ubuntu中Terminal和GNOME文件管理器的互通方法(貌似没效果)
FileZilla
Krusader -root-mode:双列文件管理(推荐)
vifm:类vi的双列文件管理(推荐)
emelfm2:双列,貌似还好
rox-filter:双列,不能mount
gnome commander:双列,界面恶心
konqueror:单列,界面臃肿
Process
状态管理
iotop:文件读写状态
htop:进程运行状态
Compatibility
exFAT
sudo apt-get install exfat-utils
How do I install and mount an exFAT partition?
wine
playonlinux
virtualbox
Window Manager
awesome
sudo apt-get install awesome awesome-extra
By default awesome is disabled, we have to enable it.
Starting the Awesome window manager on Ubuntu 13.04
vim /usr/share/xsessions/awesome.desktop
Set NoDisplay
to false
Add some start apps
mkdir ~/.config/awesome/
vim ~/.config/awesome/rc.lua
Edit as below
--auto run app
--awful.util.spawn_with_shell("ibus-daemon --xim")
--awful.util.spawn_with_shell("network-manager")
awful.util.spawn_with_shell("gnome-power-manager")
Run chromium
chromium-browser --proxy-pac-url=http://txp-01.tencent.com/proxy.pac
Player
Audacious
可换界面的音乐播放器
VLC media player
可换界面的视频播放器。可以在Preference中换界面
Windows
wine qq 2012 for linux Ubuntu 64位兼容(11月30号更新)
WineQQ2012-20121130-Longene.deb
sudo apt-get install ia32-libs
sudo dpkg -i WineQQ2012-20121130-Longene.deb
IDE
Oracle JDK
Java必备
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
详见
INSTALL ORACLE JAVA (JDK) 7 IN UBUNTU VIA PPA REPOSITORY
eclipse
Qt Creater
C++必备
KScope
Insight:gdb前端(推荐)
kdbg:gdb前端(推荐)
sudo apt-get install kdbg
Remote
Splashtop
Hadoop
cloudera
Cloudera CDH4 Installation Guide
Create a new file /etc/apt/sources.list.d/cloudera.list
with the following contents:
deb [arch=amd64] http://archive.cloudera.com/cdh4/ubuntu/precise/amd64/cdh precise-cdh4 contrib
deb-src http://archive.cloudera.com/cdh4/ubuntu/precise/amd64/cdh precise-cdh4 contrib
Then
sudo apt-get update
sudo apt-get install mahout