The system needs to be reinstalled every time the computer is switched, and various tools need to be installed after reinstalling the system. If you search the network for installation methods every time, a lot of time will be wasted. Here to share the installation methods of my commonly used tools.
Install Git before configuring oh-my-zsh
sudo apt-get install zsh
sudo apt-get install git
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O -| sh
Remember to switch the shell before using the chsh
command. But the latest version of ubuntu always needs to enter a password, and then an error occurs, and it is not found out how to solve this problem
chsh: PAM: Authentication failure
Therefore, a more violent solution is used here to directly modify the user's configuration.
sudo vim /etc/passwd/
Find your username, and change the column corresponding to the shell into the shell you need.
To view the shell path on the machine:
cat /etc/shells
sudo apt-get install guake
sudo apt-get install vim-gnome
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
git clone https://github.com/tomasr/molokai ~/molokai
cp molokai/colors/molokai.vim ~/.vim/colors/
sudo rm -r ~/molokai #Copy it out and delete it
" Color scheme
colorscheme molokai
set t_Co=256
" Show line number
set number
" Tab character is 4set tabstop=4
" The soft tab character is 4set softtabstop=4
" The number of indentation spaces is 4set shiftwidth=4
" Set automatic indentation, that is, the indentation of each line is equal to the previous line
" set autoindent
set expandtab
%ret!4
" Set C/C++Automatic indentation of language
set cindent
"""""""""""""""""""""""""""""""""""
" Tag list ctags
""""""""""""""""""""""""""""""""""
map <C-F12>:!ctags -R --c++-kinds=+p --fields=+ias --extra=+q .<CR>
nnoremap <silent><F8>:TlistToggle<CR>let Tlist_Show_One_File =1let Tlist_exit_onlyWindow =1let Tlist_Use_Right_Window =1"""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""
" NERDTree
"""""""""""""""""""""""""""""""""""
nnoremap <silent><F7>:NERDTree<CR>"""""""""""""""""""""""""""""""""""
filetype on
filetype plugin on
filetype indent on
syntax on
" The line where the cursor is highlighted
set cursorline
hi CursorLine NONE term=underline ctermbg=234 guibg=#293739
" git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
" vundle {set rtp+=~/.vim/bundle/vundle/
" If used under windows, set it to
" set rtp+=$HOME/.vim/bundle/vundle/
call vundle#rc()
" }
"
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles here:
"
" original repos on github
" Plug-ins written by users on github, using this username+way of repo name
" Bundle 'tpope/vim-fugitive'
" Bundle 'Lokaltog/vim-easymotion'
" Bundle 'rstacruz/sparkup',{'rtp':'vim/'}
" Bundle 'tpope/vim-rails.git'
" vim-scripts repos
" The repo of vimscripts uses the following format, which is directly the plug-in name
Bundle 'taglist.vim'
Bundle 'c.vim'
Plugin 'scrooloose/nerdTree'
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
" non github reposo
" For non-github plugins, you can use their git address directly
" Bundle 'git://git.wincent.com/command-t.git'
" ...
"
" Brief help
" : BundleList - list configured bundles
" : BundleInstall(!)-install(update) bundles
" : BundleSearch(!) foo -search(or refresh cache first)for foo
" : BundleClean(!)-confirm(or auto-approve) removal of unused bundles
" Vundle is mainly the above four commands, for example, BundleInstall is all reinstalled, BundleInstall!Update
" The general process of installing a plug-in is, first BundleSearch a plug-in, then select it in the list, and press i to install
" After installation, in vimrc, add Bundle'XXX'So that the bundle can be loaded, this plug-in, and if
" You need to configure this plug-in, which is also set in vimrc
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
" Turn off automatic folding of markdown
let g:vim_markdown_folding_disabled =1
" File type association
au BufNewFile,BufRead *.gradle setf groovy
au BufNewFile,BufRead *.md setf markdown
sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt-get update
sudo apt-get install shadowsocks-qt5
downloadurl : https://github.com/FelisCatus/SwitchyOmega/releases
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
sudo apt-get install lib32z1
sudo apt-get install python
sudo apt-get install python-pip
sudo apt-get install python-virtualenv
sudo apt-get install virtualenvwrapper
Modify the pip source (modified to Douban):
carried out:
cat >~/.pip/pip.conf
enter:
[ global]
trusted-host = pypi.douban.com
index-url = http://pypi.douban.com/simple
Ctrl + D
curl -s "https://get.sdkman.io"| bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install groovy #Rely on sdkman
sdk install gradle #Rely on sdkman
Download from here to use Thunder, bypassing the repo update. The speed is awesome, about 10M.
[ https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly]
Recommended Posts