| 1 |
missing tray icon when closing skype |
sudo apt-get install sni-qt:i386 |
| 2 |
fix dependencies |
sudo apt-get install -f |
| 3 |
lookup all files |
grep -r “regular expression” * |
| 4 |
CANNOT change pwd [recovery mode] |
mount -rw -o remount / |
| 5 |
Create boot USB in linux |
sudo apt-get install unetbootin |
| 6 |
Mount read-only dev |
mount -t ntfs-3g /dev/sda2 /mnt/ -ro force |
| 7 |
Cannot resolve DNS |
cat /etc/resolv.conf |
| |
|
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) |
| |
|
# DO NOT EDIT THIS FILE BY HAND – YOUR CHANGES WILL BE OVERWRIT |
| |
solution 1 |
/etc/network/interfaces |
| |
solution 1 |
# Add Google DNS && reboot && the servername appears in /etc/resolv.conf |
| |
solution 1 |
dns-nameservers 8.8.8.8 |
| |
solution 2 |
/etc/resolvconf/resolv.conf.d/base |
| |
solution 2 |
# Add DNS |
| |
solution 2 |
nameserver 8.8.8.8 |
| |
solution 2 |
nameserver 8.8.4.4 |
| |
solution 2 |
resolvconf -u |
| |
CentOS |
/etc/resolv.conf |
| |
CentOS |
nameserver 8.8.8.8 & nameserver 8.8.4.4 & nameserver 114.114.114.114 |
| 8 |
Docker: FATA[0000] |
sudo service docker restart |
| 9 |
set up ~/bin |
vim /etc/environment |
| 10 |
update core with cmd |
sudo apt-get dist-upgrade |
| 11 |
check system info |
uname -a && cat /etc/lsb-release |
| 12 |
ubuntu mp3 plugin |
sudo apt-get install ubuntu-restricted-extras |
| 13 |
Step 1: format USB |
sudo umount /media/[name]/dev |
| |
Step 2: format USB |
lsblk && sudo fdisk -l |
| |
Step 3: format USB erase |
sudo dd if=/dev/zero of=/dev/sdb bs=4k && sync |
| |
Step 4: format USB |
sudo mkfs.ext4 /dev/sd[x] |
| |
Step 4: format USB |
sudo eject /dev/sd[x] |
| 14 |
Ubuntu nameserver 1 |
sudo vim /etc/resolvconf/resolv.conf.d/base |
| |
Ubuntu nameserver 2 |
nameserver 114.114.114.114 |
| |
Ubuntu nameserver 3 |
sudo service resolvconf restart |