Create efficient ubuntu

Keywords: Programming sudo vim git Ubuntu

virtualbox

Installation of virtual machine under windows brings infinite convenience for learning ubuntu, and saves computer money at the same time uuuuuuuuuuu

ubuntu

Ubununtu is installed in the virtual machine. There are many teaching materials on the internet.

Note: Storage space can not be the default 10G, it is easy to run out of space and crash. I set 100G.

Boot on ubuntu basic settings:

#update and upgrade linux
sudo apt-get update
sudo apt-get upgrade

#add shared file mode to user Robin
whoami
#:robin
cat /etc/group | grep vbox
#:vboxsf:x:999:robin
sudo usermod -a -G vboxsf robin

#copy config file from shared path
cp -r /media/sf_other/conf_ubt ./
#if want to execute the file
chmod +x conf_ubt
./conf_ubt

Install vim, git, guake...

sudo apt-get install ack ctags wmctrl vim vim-gnome guake
#dos and unix format switch
sudo apt-get install dos2unix
#astyle
sudo apt-get install astyle
#minicom
sudo apt-get install minicom

#install git and vundle
sudo apt-get install git-core
#my self files include shell script and vim script
cp -r /media/sf_other/.vim ./
cp -r /media/sf_other/shell ./

Install YoucompleteMe

#install youcompleteMe
sudo apt install build-essential cmake python3-dev
#install vim plugin
put .vimrc into /home/robin
cd ~/.vim/bundle
git clone https://github.com/Valloric/YouCompleteMe.git
cd ~/.vim/bundle/YouCompleteMe
git submodule update --init --recursive
python3 install.py --clang-completer

Configure guake

#config guake terminal
#preference->appearance->font:Monospace 14 & schemes:Monokai
#guake open when pc start
#startup application->add /usr/bin/guake

Install gcc-arm-none-eabi

#install gcc-arm none-eabi
#(should NOT install apt-get for not the latest one, for printf not working)
sudo apt-get install lsb-core
sudo cp -r /media/sf_other/gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2 ./library
cd library/ ;
tar -jxvf ../gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2 ./
#add path to /etc/profile
export PATH=$PATH:/home/robin/library/gcc-arm-none-eabi-5_4-2016q3/bin
source /etc/profile
#check install success
arm-none-eabi-gcc -v

Install libusb

#install libusb
#first way
sudo apt-cache search libusb
sudo apt-get install libusb-1.0-x
#second way
sudo cp -r /media/sf_other/libusb-1.0.22.tar.bz2 ./library
tar -jxvf libusb-1.0.22.tar.bz2
cd library/libusb-1.0.22
./configure
make
sudo make install

Install openocd

#install openocd
#first way
sudo apt-cache search openocd
sudo apt-get install openocd libusb++-dev
#second way
sudo cp -r /media/sf_other/openocd-0.10.0.zip ./library
unzip openocd-0.10.0.zip
cd library/openocd-0.10.0
./configure
make
sudo make install

Configuring Chinese Input Method

##setting language
#Setting ->> Region&Language ->>Manage Installed Language
#->>Keyboard input Method system:fcitx
#install fcitx
sudo apt-get install fcitx-table-wbpy
sudo apt-get update
sudo apt-get upgrade
#restart PC
#config input
#configure input Method only keep 2 ways: English and Pinyin

Screenshot tool

# handle images
sudo apt-get install shutter

Blogging in vim

#handle website
sudo apt-get install ruby
sudo gem install jekyll
sudo apt-get install python-pip
pip install pyments

Configure Chinese and English fonts in vim

#install yahei_consolas_hybird in gvim

Tools for Intercepting Dynamic Graphs

# install gif make
sudo add-apt-repository ppa:djcj/hybrid
sudo apt-get update
sudo apt-get install ffmpeg

# install gif make
sudo add-apt-repository ppa:peek-developers/stable
sudo apt update
sudo apt install peek

Install hacker-level chrome plug-ins

#install vimium
sudo apt-get install npm
sudo npm install --global coffeescript
sudo npm install --global coffeescript@1.12.7
cd vimium
cake build
#Chrome/Chromium
Navigate to chrome://extensions
Toggle into Developer Mode
Click on "Load Unpacked Extension..."
Select the Vimium directory.
#Firefox
Open Firefox
Enter "about:debugging" in the URL bar
Click "Load Temporary Add-on"
Open the Vimium directory and select any file inside.

Install list

Posted by Floetic on Thu, 24 Jan 2019 01:21:15 -0800