This post is used to record some tips I can’t categorize in ubuntu.
i. automatically load some shell scripts
In my system ubuntu 14.04, I can find the file .bashrc
in my home directory.
Since I want ubuntu to load intel complier and mkl parameter automatically, all I need to do is to add the two lines in the end of that file: (mint 17: gedit /etc/bash.bashrc
)
1 | source /opt/intel/composer_xe_2015/mkl/bin/mklvars.sh intel64 |
Then I success!!
ii. cannot install ubuntu or Mint
With the options - acpi=off nolapic noapic, I finally install ubuntu successfully.
iii. cannot boot without nolapic, however, it only recognize one cpu with nolapic
I solved this problem by Dual core recognized as single core because of nolapic?.
I edited the grub file with following commands:
1 | sudo bash |
And replace nolapic
with pci=assign-busses apicmaintimer idle=poll reboot=cold,hard
, the grub file would be contain this two lines:
1 | GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=linux" |
Then use following command to update grub. And the problem is fixed.
1 | sudo update-grub |
iv. to get the permission of ntfs disks, you can edit the fstab in /etc as following:
1 | sudo gedit /etc/fstab |
And you can find the uuid by using the command ls -l /dev/disk/by-uuid
. To add the disk and set the permission in the file fstab like this:
1 | UUID=1c712d26-7f9d-4efc-b796-65bee366c8aa / ext4 noatime,nodiratime,discard,errors=remount-ro 0 1 |
Then you can access your ntfs disk and set an alias for each disk.
v. use grub comstomer to edit the boot order. Installation:
1 | sudo add-apt-repository ppa:danielrichter2007/grub-customizer |
vi. Install font Inconsolata
Download Here and unity tweak tool (sudo apt-get install unity-tweak-tool
).
vii. Install the chinese input fcitx
and language Chinese Traditional
.
1 | sudo apt-get install fcitx fcitx-chewing fcitx-config-gtk fcitx-frontend-all fcitx-module-cloudpinyin fcitx-ui-classic fcitx-frontend-qt4 fcitx-frontend-qt5 fcitx-frontend-gtk2 fcitx-frontend-gtk3 |
viii. Install ruby, jekyll and git.
1 | sudo apt-get install software-properties-common |
(To be continued.)