启动相关
// boot repair
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair
sudo boot-repair
// edit grub boot menu
$ sudo add-apt-repository ppa:danielrichter2007/grub-customizer
$ sudo apt-get update
$ sudo apt-get install grub-customizer
// Change Plymouth Graphical boot animation Themes in Ubuntu:
sudo update-alternatives --config default.plymouth //select a theme number
sudo update-initramfs -u
包管理
// manage ppa repository
Install:
sudo apt-add-repository ppa:user/repository
Uninstall:
sudo apt-add-repository -r ppa:user/repository
// unpack deb
dpkg-deb -R ibm-notes-9.0.i586.deb ./tmp
vi ./tmp/DEBIAN/control
dpkg-deb --build ./notes_rebuild
GUI相关
// gnome desktop
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get install ubuntu-gnome-desktop ubuntu-gnome-default-settings
sudo apt-get install gnome-documents gnome-boxes
sudo apt-get install full-gnome3-experience // option for gnome3
sudo apt-get remove ubuntu-settings // this will remove 'ubuntu-desktop'
sudo dpkg-reconfigure gdm
sudo service gdm/lightdm status
// install MS TrueType core fonts
sudo apt-get install ttf-mscorefonts-installer
//Firewall gui in Ubuntu
sudo apt-get install gufw
文件系统
//fs mount in fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/DevClient--vg-root / ext4 errors=remount-ro 0 1
/dev/sda3 /media/other ext3 rw, default 0 0# mount ntfs
/dev/sda5 /media/USER ntfs rw,nosuid,nodev,default_permissions 0 0
/dev/sdb6 /media/WORKS ntfs-3g silent,umask=0 0 0
//ext4 filesystem file restore
文件恢复:
extundelete /dev/sdaX --restore-file /*/*....*/file
目录恢复:
extundelete /dev/sdaX --restore-directory /*/*....*/dir
恢复近期被删的所有:
extundelete /dev/sdaX --restore-all
VMware虚拟化
// start VMWare Workstation in Ubuntu 13.04
$sudo apt-get install build-essential linux-headers-$(uname -r)
$sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
// change vmware S/N under cli
/usr/lib/vmware/bin/vmware-vmx --new-sn NY0K2-2ULDJ-LZUP1-MV154-8363F
设置优化
// edit dns server
sudo gedit /etc/resolvconf/resolv.conf.d/head
sudo gedit /etc/resolvconf/resolv.conf.d/tail
sudo resolvconf –u
// add rar support
sudo apt-get install p7zip-rar
// unzip
unzip -O CP936 xxx.zip ( -O GBK / GB18030 / gb2312)
// powersave for laptop
sudo apt-get install laptop-mode-tools
// Enable hibernate
sudo apt-get install hibernate
or
sudo gedit /var/lib/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
// remove old kernel ubuntu
uname -a
dpkg --get-selections|grep linux
sudo apt-get remove linux-image-2.6.15-23-386rpm -q kernel
rpm -e kernel-xxx
Comments
Post a Comment