ubuntu- used to set a reminder

surroundings

System platform: Ubuntu 16.04.6

Other versions set almost

vim preference settings

System installation vim

sudo apt-get install vim

Vi editor provided by modifying the / etc vim / vimrc file / some common settings

sudo  vi / etc / vim / vimrc

Add later in this document

" Displayed in the window title bar of the file name of 
the SET title
 " the Tab number of spaces to 
the SET the TabStop = 4 
" set the number of auto-align space 
the SET shiftwidth = 4 
" display line numbers 
the SET Number The
 " search to highlight 
the SET hlsearch
 " case-insensitive 
the SET ignorecase
 " syntax highlighting 
syntax on

 

Common embedded development environment configuration and installation tool

In order to facilitate the recording and the new system environment to quickly build, write sh script execution environment to build

Named ubuntu_env_install.sh

The sh file continuously updated

#symbol#! The latter parameter is used to tell the system to execute the program program 
# / bin /! SH 

the sudo APT- GET Update 
# the sudo the Add-APT-Repository PPA: the toolchain-R & lt Ubuntu-/ Test 
# the sudo APT- GET Update 

# install compiler environment Build -essential, its dependent-dev libc6 gcc G ++ the make dpkg- dev will install
 echo the y-| sudo APT-GET install Build- Essential 
# compiler installed multi-platform dependencies 
echo the y-| sudo APT-GET install  gcc -multilib ++ G - the multilib 
# 32-bit compatibility libraries, Ubuntu16.04 version does not support IA32 -Packages libs, but the use of lib32ncurses5, lib32z1 package as an alternative 
# echo the y-| sudo APT-GET install ia32- libs
 echo the y-| sudo APT-GET install lib32ncurses5 lib32z1 

# when the following Linux debugging using a common tool 
# installation SSH server 
echo the y-| sudo APT-GET install openssh- server 
# install the NFS server 
echo the y-| sudo APT-GET install nfs-kernel- server
 echo the y-| sudo APT-GET install NFS-safe locking the Common 
# install the TFTP 
echothe y-| sudo APT-GET install the tftpd-tftp-HPA HPA 


# install gawk, text processing report generator 
echo the y-| sudo APT-GET install  gawk 
# installation diffstat, file compare statistics 
echo the y-| sudo APT-GET install diffstat 
# install wget , file downloads 
echo the y-| sudo APT-GET install  wget 
# install unzip ZIP the unzip 
echo the y-| sudo APT-GET install  ZIP  the unzip 
#Texinfo is a file system that can be used to create PDF, HTML and other documents 
echo the y-| sudo APT-GET installtexinfo 
# archive file backup tool 
echo the y-| sudo APT-GET install cpio 
# DLL file modification tool dependent 
echo the y-| sudo APT-GET install chrpath 
# install git 
echo the y-| sudo APT-GET install git GIT- Core 
# installation socat, is a versatile tool for network 
echo the y-| sudo APT-GET install socat 
# install xterm, a terminal emulator, generally have been installed ubuntu 
echo the y-| sudo APT-GET install xterm 
# installation libsdl1. 2 - dev, multimedia development files
 echothe y-| sudo APT-GET install . libsdl1 2 - dev 

# install python support, python3 -pip: python package installation, python3- pexpect: startup routines and its automatic control of pure Python modules, similar to the SSH
 echo the y-| sudo APT -get install Python python3 python3-PIP python3- pexpect 


# development tools installed eclipse, eclipse -cDT: C / C ++ development environment plug-in
 echo the y-| sudo APT-GET install eclipse eclipse-cdt-Platform

 

Global environment variable example

To cross-compile environment variable, for example

gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf.tar.xz

In / home / wangh / Tools /

tar -xvf gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabihf.tar.xz

Add Variable path environment variable settings in the user file, so as not to affect all users

sudo  vi ~ / .bashrc

Add later in the file

#export PATH = $ PATH: / cross compiler path 
Export the PATH = $ the PATH: / Home / Wangh / Tools / GCC -linaro- 4.9 - 2014.11 -x86_64_arm-Linux-gnueabihf / bin

 

Guess you like

Origin www.cnblogs.com/silencehuan/p/11005654.html