文章目錄
Grub4dos 安裝配置
從sourceforge 下載 grub4dos,發現google上 chenall修改的有問題,啟動時會報NTFS5錯誤。
在C:放置
grldr、grldr.mbr、menu.lst三個檔案,編輯 menu.lst ,增加如下條目
title install Arch Linuxfind --set-root /archlinux-2013.01.04-dual.isomap --mem --heads=0 --sectors-per-track=0 /archlinux-2013.01.04-dual.iso (0xff)map --hookchainloader (0xff)boot
接下來配置 bcdedit,啟動命令列,
bcdedit /create /d "Grub4dos" /application bootsector
記下返回的全域符號。
bcdedit /set {GUID} device partition=c:
bcdedit /set {GUID} path \grldr.mbr
bcdedit /displayorder {GUID} /addlast
完成。
也可以編輯 boot.ini,可以參考 http://www.kisa747.com/windows7-grub4dos.html 這個部落格。
重啟,啟動菜單選擇 grub4dos,就有Arch介面了。選擇 X64 或者 X32,載入光碟片會有問題,
返回到 drop shell ,做如下處理
mkdir isomount -t ntfs -o ro /dev/sda3 isomodprobe looplosetup /dev/loop2 iso/archlinux-2013.01.04-dual.isoln -s /dev/loop2 /dev/disk/by-label/ARCH_201301
exit
如果報 /dev/disk/by-label/ARCH_201301,則先移除 rm /dev/disk/by-label/ARCH_201301,再建立軟連結。
exit 後會自動啟動安裝。參考wiki處理即可。
network-manager 串連 vpn
預設vpn設定打不開,安裝 networkmanager-pptp vpn設定可以設定上,但是連線按鍵點了沒效果。
需要再安裝 networkmanager-vpnc 才可以。
pacman 擷取原始碼
1.安裝 abs
pacman -S abs
2.編輯 abs.conf
As root, edit /etc/abs.conf to include your desired repositories: vim /etc/abs.conf
or: nano /etc/abs.conf
. Remove the ! in front of the appropriate repos, e.g.: REPOS=(core extra community !testing)
3.下載ABS樹
Download the ABS tree As root, run:
[gaohu@vb-arch ~]$ sudo abs
Your ABS tree is now created under /var/abs. The above step is done once for all (run abs
from time to time to update the source tree though). Next,say if you want the source code of the linux command find
find out which package the command find
belongs to:
pacman -Qo `which find`
-Q表示查詢, -o 表示查詢所有者
pacman -Qi coreutils
-i 查詢所在的組。
The result is "/usr/bin/find is owned by findutils 4.4.2-4".
cp -r /var/abs/core/findutils /home/gaohu/t_srccd /home/gaohu/t_src
Then run makepkg
:
If you want to install the package you've built, run
pacman -U name-of-package.xz
virtualbox 的網卡
virutalbox的網卡vboxnet0不受 networkmanager 管理,每次開機查看,都是 down 的狀態,導致虛擬機器使用是老是訪問不到主機,調整如下:
sudo ip addr add 192.168.56.1/24 dev vboxnet0
sudo ip link set vboxnet0 up
查看狀態
ip addr 或者 ip link 命令正常了,
PS: 調整網關的命令:
ip route add default via 192.168.56.1
bash set locale 報錯
一次升級後,在登入以及su切換時,報如下錯誤:
[tigertall@arch-g ~]$ su - rootPassword: -bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory-bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory-bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory-bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory
在 rc.conf 中指定的是 en_US.UTF-8,檢查 /etc/locale.gen 發現,所有的 locale 都被注釋掉了。
重新開啟需要的條目,執行命令產生 locale:
[root@arch-g ~]# locale-gen
Generating locales...
en_US.UTF-8... done
zh_CN.UTF-8... done
zh_CN.GB2312... done
Generation complete.
查看可用的locale:
[root@arch-g ~]# locale -aCen_US.utf8POSIXzh_CNzh_CN.gb2312zh_CN.utf8
[tiger@tg-arch ~]$ virtualboxQt WARNING: QGtkStyle was unable to detect the current GTK+ theme.
能正常啟動,但是介面會比較醜陋,安裝如下包解決
pacman -S libgnomeui
科學計算機,不是 gcalctool,而是
galculator
- 顯示菜單的配置 /usr/share/applications/,後面 .desktop 尾碼的就是功能表項目;也可以通過 gmenu-simple-editor 、或者 alacarte 編輯。