Some basic operation notes under ubuntu16.04


                Some basic operation notes under ubuntu16.04        
                             
1. Use Firefox browser to
enter the home page -> settings -> search drop down and click ADD more search engines.. -> find Baidu, and then add it to the search engine, you can go online
————— ——————————————————————————————————————————————————— ———————————————————————————————————————
2. Install system software update:

sudo apt-get update
The above information appears when running sudo apt-get update, the solution is as follows:
$ sudo pkill -KILL appstreamcli
$ wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4 -1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
$ sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4 -1ubuntu1_amd64.deb
is running:
sudo apt-get update
_____________________________________________________________________________________________
3. Install vim:
sudo apt-get install vim
error, execute:
sudo apt-get -f install
——————————————————————————— ——————————————————————————————————————————————————— —————————————————
4. The boot display: System program problem detected is very annoying, the solution:
sudo gedit /etc/default/apport Change  
enabled=1 to enabled=0 Save and exit

———————————————————————————————————————————————— ——————————————————————————————————————————
5. Writing the script is to automatically enter the password through the pipeline Or command:
echo 'your password'|sudo -S execute command
echo 'command'|sudo -S execute command
———————————————————————— ——————————————————————————————————————————————————— ———————————
6. Install Sogou input method and enter
in the browser: sougushurufa for linux
Enter the download directory and use the installation command: sudo dpkg -i nameofpackage.deb
If an error is reported:
chucuo:No such key 'Gtk/IMModule' in schema 'org.gnome.settings-daemon.plugins.xset
sudo add-apt-repository ppa: fcitx-team/nightly
sudo apt-get update
sudo apt-get install fcitx
sudo apt-get install fcitx-config-gtk
sudo apt-get install fcitx-table-all
sudo apt-get install im-switch
sudo dpkg -i nameofpackage. Deb

installation is successful restart the computer, click the keyboard on the upper right, set the input method

———————————————————————————————————— ——————————————————————————————————————————————————— —————————
7. There is no boost library solution when installing some platforms

sudo apt-cache search boost
sudo apt-get install libboost-dev

error occurs, execute:
rm /var/cache/apt/ archives/lock
sudo rm /var/lib/dpkg/lock
sudo apt-get install libboost-dev

still has an error, execute:
sudo dpkg --configure -a
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get install libboost-dev
success!

————————— ——————————————————————————————————————————————————— ————————————————————————————————————
8. Install qt4: Go
to the webpage to download the installation package:
http:// download.qt.io/archive/qt/4.4/
Unzip the file
into the
folder./configure
make
sudo make install

——————————————————————————— ——————————————————————————————————————————————————— ——————————————————
9. Install the qt4 link library in the terminal:
sudo apt-get install libqt4-dev
sudo apt-get install g++ automake
sudo apt-get install qt4-dev -tools qt4-designer qt4-doc
sudo apt-get install libqt4-opengl-dev
sudo apt-get install libqt4-sql-mysql libqt4-sql-odbc libqt4-sql-psql libqt4-sql-sqlite
sudo install libiodbc2-dev libmysqlclient15-dev libsqlite3-dev
sudo aptitude search qt4

——————————————————————————————————————————————————— ——————————————————————————————————————————

10.vim configuration file
into home/username
$ touch .vimrc
$ vim .vimrc
in the file add
——————————————————————————————————————— ——————————————————————————————————————————————————— —
set history=500 "Keep history
set guifont=Monaco:h10 "Set font to Monaco, size 10
set tabstop=4 "Set tab hops
set backspace=2 "Set backspace key available
set nu! "Set display line No.
set wrap "set automatic line wrap"
set nowrap "set does not automatically wrap
set linebreak "Wrap whole words, use with word wrap
set list "Show tabs
set listchars=tab:>-,trail:- "Show tabs as >-
set expandtab "Convert tabs to spaces when entering tabs
:retab "Convert existing tabs into spaces
set autochdir "Automatically set the current directory to the directory being edited
set hidden "Automatically hide unsaved buffers, and do not give a prompt to save the current buffer when switching buffers
set scrolloff=5 " When the cursor is near the bottom or top, scroll down or up automatically
" Toggle Menu and Toolbar "Hide the menu bar and toolbar
" set guioptions-=m
"set guioptions-=T
set showtabline=2 "Set the tab bar to be displayed.
set autoread "Set to automatically update the file when the file is modified externally
set mouse=a "Set the mouse to be available in any mode
set nobackup "Set to not generate a backup file

" ============= =============
"Find/Replace related settings
" ===========================
set hlsearch "Highlight search results
set incsearch "Incremental search

" ===========================
Font settings: If there is a space in the font, use an underline to represent the space. : after the sign indicates options





















——————————————————————————————————————————————————— ——————————————————————————————————————————
11. Install qt5.8:

open the web page to download Package http://download.qt.io/archive/qt/5.8/5.8.0/
Enter the directory where you downloaded this file, enter the following command
chmod +x qt-opensource-linux-x64-5.8.0.run
./qt -opensource-linux-x64-5.8.0.run
enter the visual interface to install

Qt cannot input Chinese, the solution
<1> copy /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so
<2 >Copy libfcitxplatforminputcontextplugin.so to the following two paths (look in the Qt installation path)
path 1
~/Qt5.8/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts
path 2
~/Qt5.8/5.8/gcc_64 /plugins/platforminputcontexts
restart, success
————————————————————————————————————————————— ————————————————————————————————————————————————
12. Modify the user password

passwd usrname
(current) UNIX password: <Enter the current password>
Enter the new UNIX password: <Enter the new password>
Re-enter the new UNIX password: <Re-enter the new password>
——————— ——————————————————————————————————————————————————— ————————————————————————————————————
13. After starting the root account
and executing the sudo passwd root command in the terminal, the system will You are prompted to set a new root account password.
If you want to disable the root account again, you can execute sudo passwd -l root

###The ordinary user password of this machine is: yushan2d

###The permission user password is: yushan2d

—————————————— ——————————————————————————————————————————————————— —————————————————————————— 14. The software in Ubuntu16.04 cannot be used, you need to install the gdebi installation tool
<1>. Install gdebi:
sudo apt install gdebi
After downloading the installation package, right-click to open and select gdebi to open

<2>. Or use other installation methods:
enter the directory of the downloaded file deb
sudo dpkg -i nameofpackage.deb

——————————————————————————————————————————————————— ——————————————————————————————————————————
15. Install the pip installation tool

wget https:// bootstrap.pypa.io/get-pip.py --no-check-certificate
sudo python get-pip.py
Install Python third-party libraries:
pip install bs4
pip install numpy
pip install pandas  
pip install matplotlib  
pip install scipy  
pip install -U wxpython
//Error while executing python program ImportError: No module named matplotlib.pyplot
input: sudo apt-get install python-matplotlib
 
——————————————————————— ——————————————————————————————————————————————————— ———————————————
16. Install mysql:
sudo apt-get install mysql-server
apt-get install mysql-client
sudo apt-get install libmysqlclient-dev

Install: mysql-workbench:
sudo apt-get install mysql-workbench

———————————————————————————————————— ——————————————————————————————————————————————————— ———
17. Set the position of the icon bar

gsettings set com.canonical.Unity.Launcher launcher-position Bottom

gsettings set com.canonical.Unity.Launcher launcher-position Left

———————————— ——————————————————————————————————————————————————— ———————————————————————————
18. Replace the jack string in a file with tom

sed -i "s/jack/tom/ g" test.txt
———————————————————————————————————————————————— —————————————————————————————————————————————
19. Because under windows If you write programs in the IDE, you will be accustomed to use Ctrl+s to save the program.
When writing programs in vim, I sometimes used to press Ctrl+s, and I was stunned after pressing it. The terminal seemed to be stuck and didn't respond.

The problem is that Ctrl+s acts as a lock screen under vim, and you can unlock it by pressing Ctrl+q. Tears fell from me knowing the truth. .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324611612&siteId=291194637