Ubuntu development environment configuration

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.

Shell

zsh & oh-my-zsh

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

Guake

sudo apt-get install guake

vim

sudo apt-get install vim-gnome

vundle

git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Colors:

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

Config:

" 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

Shadowsocks

sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt-get update
sudo apt-get install shadowsocks-qt5

SwitchOmega

downloadurl : https://github.com/FelisCatus/SwitchyOmega/releases

jdk

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

adb 32-bit environment##

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
sudo apt-get install lib32z1

python

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

sdkman

curl -s "https://get.sdkman.io"| bash
source "$HOME/.sdkman/bin/sdkman-init.sh"

groovy

sdk install groovy #Rely on sdkman

gradle

sdk install gradle #Rely on sdkman

Android source code###

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

Ubuntu configuration development environment
Ubuntu development environment configuration
ubuntu build python development environment
ubuntu builds common development environment
Ubuntu environment variables and ADB configuration
Ubuntu 19.1 installation and configuration Chinese environment
ubuntu 18.04 early configuration
Ubuntu nfs configuration
Ubuntu20.04 configuration notes
Ubuntu 14.04 configuration record
JDK environment variable configuration method under ubuntu
Configure Java development environment in Ubuntu20.04 LTS
Build a python development environment under Ubuntu
ubuntu16.04 deploy GPU environment
ubuntu configuration python, Red
Ubuntu 18.04 network card configuration
Network configuration under Ubuntu
Python virtual environment: Ubuntu16.04
023. Ubuntu common personalized configuration
Ubuntu Touch environment setup
Ubuntu18.10 configure Java environment
ubuntu environment deployment project
Embedded Linux development environment to build and configure Ubuntu
Django&amp;MySQL environment deployment under Ubuntu 14.04
CentOS 7.2 deploy Node.js development environment
ubuntu14.0464 Ros environment install halcon13.01
Ubuntu16.04 installation and simple configuration
Ubuntu16.04 install SVN and configuration
Ubuntu PostgreSQL installation and configuration
ubuntu offline installation python environment
Ubuntu 18.04.1 build Java environment and HelloWorld
CentOS 7 configure Java language development environment
Deploy JobConverter + Ibreoffice environment on Ubuntu
Ubuntu 20.04 best configuration guide for engineers
Ubuntu 20.04 best configuration guide for engineers
CentOS 7 configure Ruby language development environment
CentOS 7 configure php language development environment
Docker ubuntu: install python-PIL-image environment on 14.04
Ubuntu16.04 configuration OpenCV3.4.2 and basic use
Install Python virtual environment on Ubuntu 18.04
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
Install Spark stand-alone environment on Spark Ubuntu18
Install Hadoop system environment on Ubuntu 18.04
Ubuntu configuration source and installation software
CentOS 7 configure Python language development environment
Tomcat configuration JMX in centos 6.5 environment
Deep learning environment configuration guide! (Full explanation on Windows, Mac and Ubuntu)
Linux development preparation-install VMware and run Ubuntu
Centos7.5 configuration java environment installation tomcat explanation
Ubuntu 20.04 best configuration guide (required for newbies)
Build the C++ compilation environment under ubuntu
Tencent Cloud ubuntu 16.04 ZenTao integrated environment construction
About installing node environment in Ubuntu server
Steps to build LNMP environment on ubuntu 20.04
Build arm virtual operating environment on Ubuntu
Ubuntu17.04 configuration method to replace domestic sources
Ubuntu install PHP and PHP Nginx configuration method
Download OpenJDK11 source code in Ubuntu environment
Ubuntu Server builds Hyperledger Fabric 2.1 learning environment
Ubuntu 18.04 LTS configuration network tutorial through Netplan