Ubuntu
Hints for user
Update packages
>sudo apt-get update
>sudo apt-get upgrade
>sudo apt-get autoremove
Fix system
>apt --fix-broken install
>apt –fix-missing
>sudo apt-get update
Wireless LAN connection
>sudo lsmod
>sudo lspci
>sudo lshw
>sudo lshw -C network
>sudo modprobe module
>sudo nano /etc/module
>sudo man lspci
>sudo ip address
>sudo service network-manager status
>sudo lwlist scan
>dmesg | grep iwl
>sudo rfkill list
For an example, in my notebook
Wi-fi information
Intel Centrino
Advanced-N 6205
WLp4s0
MTU=1500
ESSID: OUHK-Student
IEEE 802.11I/WPA2 version 1
Clipher: ccmp
JDK installation
>apt-get update && apt-get upgrade
>sudo apt-get install default-jdk
>java -version
(eg. openjdk “11.0.3” 2019-4-16)
Reinstall pip
>sudo apt-get install –reinstall python-pip
Uninstall pip
>sudo apt-get remove –purge python-pip
Run .sh file
>sh xxxx.sh
Display
To check display information
>sudo lshw -C display
(eg. GF119M(GeForce GT520M) , in my notebook 1)
or
>lspci-k | grep VGA
(check video card/driver)
To remove display driver
>sudo apt-get purge nvidia*
To search display driver
>apt search nvidia-driver
or
>apt-cache search nvidia-driver
>sudo apt install nvidia-driver-390
>reboot
To install display driver in ubuntu software updater
1. Go to Additional drivers
2. Select nivida-driver-390
3. Then, go to terminal type >sudo reboot
Must reboot to activate display driver
To check compiler version
>dpkg –list | grep compiler
(eg. GNU C++ compiler, GNNC compiler)
>gcc –version
>g –version
Apps update
To install Boinc
Method 1
>sudo apt-get install boinc-client
>sudo apt-get install boinc-manager
Then, go to “Activities” menu
Open Bonic manager
Method 2
>sudo aptitude install boinc-client boinc-manager
To install aptitude,
>sudo apt-get update
>sudo apt-get install aptitude
To view boinc control panel
Press Shift + CTRL + A
To view boinc tools
Press Shift + CTRL + E
To install Nvidia
>sudo apt-get update
>sudo apt-get install nividia-current
or
>sudo apt-get install nvidia-384
(for a specify version, 384.130)
or
>wget –no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-o- sudo apt-key add-
(where, o = oh)
To check Nvidia version
>nvidia-smi
(eg. version 390.132, GPU=0)
Selection between display driver
>sudo prime-select intel
>sudo prime-select nvidia
>sudo prime-select query
(to check which one display driver)
To install flash player
>sudo apt-get update
>sudo apt-get install flashplugin-installer
>sudo apt-get autoremove
To install Java
>sudo apt install openjdk-8-jdk
or
java-Home-java-8-openjdk-amd64
>sudo namo /etc/environment
OS recovery (Ubuntu 19.10)
Step 1
Press F2 to stop when entering Linux system
Step 2
Go to shell terminal
Step 3
Type
>sudo dpkg –configure -a
>sudo apt-get clean
>sudo apt-get update
Step 4
Reboot system
>reboot
To search display driver
>apt search nvidia-driver
or
>apt-cache search nvidia-driver
>sudo apt install nvidia-driver-390
>reboot
To reinstall current display driver
(eg. current use 5.3.0-29-generic)
Then, go to step 3.
Step 5
>apt –fix-broken install
For x server display
>gksu gedit /etc/x11/xorg.conf
Driver version: 390129
Server version: 11.0
Resolution: 108 x 108 dot per inch
Dept: 24
Configuration: X screen 0
(1366x768)
DFP-0 (auto)