Arch Linux 安裝配置

來源:互聯網
上載者:User
文章目錄
  • bash set locale 報錯
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 only want to get the sources and don't want to build the package you can run 

    makepkg -od
  • otherwise run

    makepkg -s

    which will then handle all the package's dependencies automatically

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
  •  virtualbox  啟動時報
[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 編輯。

 

 

 

 

 

 

 

 

 

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.