Posts

Showing posts with the label Ubuntu

How to mount LVM partition in Debian/Ubuntu

How to mount LVM partition that just appended into system? Just follow below steps and get it! Install package:lvm2 if you did not enable it. $ sudo apt-get install lvm2 Load the necessary module: dm-mod. $ sudo modprobe dm-mod Scan LVM volumes in your system. $ sudo vgscan or $ sudo pvs Activate the LVM volume. $ sudo vgchange -a y [LVM Group] Find the logical volume. $ sudo lvs or $ sudo lvdisplay /dev/[LVM_group_name] Mount the logical volume you want access it. $ sudo mount /dev/mapper/[LVM_group_name]-[LVM-logical-volume-name] /mnt -o ro,user You can access the LVM partition now in /mnt. Enjoy it. :-)

Resolution change manually on Ubuntu 10.04

Show current setting $ xrandr -q Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192 VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 338mm x 270mm 1024x768 60.0* 800x600 60.3 56.2 848x480 60.0 640x480 59.9 Get new mode line with new resolution $ cvt 1280 1024 60 # 1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz Modeline "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync Create a new mode for new resolution $ sudo xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync Add the new mode $ sudo xrandr --addmode VGA1 "1280x1024_60.00" Check if new mode exist? $ xrandr -q Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192 VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 338mm x 270mm 1024x768 60.0* 800x600 60.3 56.2 848x480 ...

LibreOffice installation with PPA on Ubuntu

I love to use LibreOffice on my linux desktop, so I always replace OpenOffice.org with LibreOffice when the desktop was newly installed. $ sudo add-apt-repository ppa:libreoffice/ppa $ sudo apt-get update && sudo apt-get install libreoffice Now I can use it!

equinox-theme installation on Ubuntu/Debian

Please follow steps below: Find equinox project on launchpad.net, then you can see the ppa path in the page. Install Ubuntu sudo add-apt-repository ppa:tiheum/equinox Debian sudo vim /etc/apt/sources.list Add a line: deb http://ppa.launchpad.net/tiheum/equinox/ubuntu lucid main sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4631BBEA sudo apt-get update sudo apt-get install equinox-theme faenza-icon-theme Open preference/appearence and change theme to Equinox Evolution Then, you can enjoy it!

UNetbootin installation on Ubuntu 9.10 (Karmic) and later

$ sudo add-apt-respository ppa:gezakovacs/ppa $ sudo apt-get update $ apt-cache search unetbootin --> To check if we can find unetbootin $ sudo apt-get install unetbootin

LaTeX installation with beamer class on Ubuntu

$ sudo apt-get install latex-cjk-chinese latex-beamer Then, you can create slide with LaTeX beamer class.

Rename folders from Chinese to English in Ubuntu/Debian

$ export LANG=en_US $ xdg-user-dirs-gtk-update A dialog will popup and change it. Non-empty folders will be keep. Move all files to new folders named in English from original folders. $ export LANG=zh_TW.UTF-8