2013年9月27日 星期五

Ubuntu 12.04/14.04 install looks like 10.04

1. update sabertooth z87 bios to latest version in boot setup menu

2. install ubuntu 12.04.5 or 14.04.2
http://releases.ubuntu.com/12.04/
http://old-releases.ubuntu.com/releases/14.04.2/

ubuntu 14.04.2 linux kernel version is 3.16.0-xxx

3. burn iso file in DVD

4. setting DVD first boot in motherboard bios

5. create primary partition assign mount / ([/] = root directory)
My PC: 1Tb Hard disk and 8gb real ram
size         : 496gb
type         : Primary
use as      : Ext4
Mount point : /

6. create swap partition on logical
size     : 8gb
type     : Logical
use as  : swap area

7. create extend partition on logical (option)
size     : 512gb
type     : Logical
use as  : Ext4
Mount point : (assign later)

Example:
http://ivanblagojevic.com/how-to-install-ubuntu-14-04-lts-on-an-empty-hard-disk-tutorial

8. update the lastest package in ubuntu 12.04
//ver 12.04
sudo aptitude update
sudo aptitude dist-upgrade
lsb_release -a can see the version

If show follows error->
W: GPG error: http://ppa.launchpad.net jaunty Release: 由於無法取得它們的公鑰,
以下簽章無法進行驗證: NO_PUBKEY 71240B8FB3641232
then execute
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 71240B8FB3641232

//ver 14.04
software-properties-gtk -> other software
enable all itmes

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get upgrade

9. install nvdia driver (option)
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-current-updates

http://www.upubuntu.com/2012/05/how-to-install-nvidia-linux-display_17.html

10. install gnome compiz
sudo apt-get install gnome-session-fallback (option)

11. enable root (option)
//ver 12.04
sudo passwd root
sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'

//ver 14.04
sudo passwd root
sudo sh -c 'echo "greeter-show-manual-login=true" >> /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf'

12. root login error message fix (option)
sudo gedit /root/.profile
mesg n
change to
tty -s && mesg n

13. set root default session
gedit /etc/lightdm/lightdm.conf

[SeatDefaults]
user-session=gnome-fallback
greeter-show-manual-login=true

and save it

14. enable frame buffer mode (option for 14.04)
gedit /etc/default/grub
quiet splash
change to
quiet splash vga=792

http://pierre.baudu.in/other/grub.vga.modes.html

gedit /etc/modprobe.d/blacklist-framebuffer.conf
blacklist vesafb
to
#blacklist vesafb

update-grub
reboot

15. aptitude install can fixed depends problem
sudo apt-get install aptitude

16. install tools depends lib
sudo aptitude install gcc-multilib (-> n -> y second solution can be installed)

17. right click open terminal in folder
apt-get install nautilus-open-terminal
nautilus -q

18. show trash icon on desktop
gsettings set org.gnome.nautilus.desktop trash-icon-visible true

19. show right click menu icon
gsettings set org.gnome.desktop.interface menus-have-icons true

20. menu icon change press Alt + mouse-R

21. add/remove shortcut on Nautilus file browser
mkdir $HOME/Downloads //no need to make Desktop
gedit ~/.config/user-dirs.dirs
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"

gedit /etc/xdg/user-dirs.defaults //prevent restore from system restart
DESKTOP=Desktop
DOWNLOAD=Downloads

nautilus -q

22. add/remove bookmark of Nautilus files browser
gedit ~/.config/gtk-3.0/bookmarks

23. change printscreen save path
gsettings set "org.gnome.gnome-screenshot" "auto-save-directory" "file:///$USER/Desktop"

24. disable overlay scroll bars to normal
gsettings set com.canonical.desktop.interface scrollbar-mode normal

25. big-5 code input
software-properties-gtk
enable all canonical
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 835AB0E3
apt-get install gcin
/usr/bin/gnome-language-selector -> gcin -> face setting
disable popup input window
disable gcin window position use
edit area select both show
disable tray
reboot

26.
If boot ubuntu meet - tsc: Fast TSC calibration failed
cat /sys/devices/system/clocksource/clocksource0/available_clocksource
show [tsc hpet acpi_pm] and we select acpi_pm

gedit /etc/default/grub
change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vga=792"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vga=792 clocksource=acpi_pm"
update-grub
reboot

27.
If task bar disappear or gsettings -> Using the 'memory' GSettings backend
mv /etc/ld.so.conf.d/libc.conf /etc/ld.so.conf.d/xi386-linux-gnu.conf
ldconfig
reboot

28. samba share file
aptitude install samba
gedit /etc/samba/smb.conf

//after
# with the net usershare command.
//add
usershare owner only = false

//modify
usershare allow guests = no
//to
usershare allow guests = yes

/etc/init.d/samba restart

29. root enable audio
pulseaudio -D

30. firefox new version
apt-get purge firefox
add-apt-repository ppa:mozillateam/ppa
apt-get update
apt-get install firefox-esr

31.notepadqq
//notepad need qt 5.4.2
http://download.qt.io/archive/qt/5.4/5.4.2/qt-opensource-linux-x64-5.4.2.run
sudo chmod +x qt-opensource-linux-x64-5.4.2.run
sudo ./qt-opensource-linux-x64-5.4.2.run

//un-install if need
folder location -> /opt/Qt
/opt/Qt/MaintenanceTool

//notepad++
sudo add-apt-repository ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqq

//for root
gedit /usr/share/applications/notepadqq.desktop
Exec=notepadqq %U
to
Exec=notepadqq %U --allow-root

32. Chinese words keyin
software-properties-gtk
enable all canonical
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 835AB0E3
apt-get install gcin
/usr/bin/gnome-language-selector
gcin -> appearance setting ->
disable popup input window
disable gcin window position use
edit area select both show
disable tray
reboot

33. install libgtk2.0-dev
apt-get install gdebi aptitude

//download libglib2.0-dev updates version
https://packages.ubuntu.com/zh-tw/trusty-updates/libglib2.0-dev
gdebi ./libglib2.0-dev_2.40.2-0ubuntu1_amd64.deb

aptitude install libgtk2.0-dev
use downgrade solution to install libgtk2.0-dev


Ref: http://snoopymemory.blogspot.com/2016/03/ubuntu-1404-root.html

沒有留言:

張貼留言