Arch Linux installation Configuration

Source: Internet
Author: User
Tags arch linux
ArticleDirectory
    • Bash set locale Error
Grub4dos installation Configuration

Download grub4dos from SourceForge and find that there is a problem with chenall modification on Google. ntfs5 error will be reported during startup.

Place in C:

Edit menu. lst and add the following entries in grldr, grldr. MBR, and 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

Configure bcdedit and start the command line,

 
Bcdedit/create/D "grub4dos"/Application bootsector

Write down the global symbols returned.

 
Bcdedit/set {guid} device partition = C:
Bcdedit/set {guid} path \ grldr. MBR
Bcdedit/displayorder {guid}/addlast

Complete.

You can also edit boot. ini, you can refer to the blog http://www.kisa747.com/windows7-grub4dos.html.

Restart, select grub4dos from the Start menu, and the arch interface is displayed. If you select x64 or x32, loading the CD may cause problems,
Return to drop shell and do the following

 
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

If/dev/Disk/by-label/arch_201301 is reported, delete RM/dev/Disk/by-label/arch_201301 and create a soft link.

The installation is automatically started after exit. Refer to wiki for processing.

 

Network-Manager connection VPN

The default VPN settings cannot be opened. You can set NetworkManager-pptp vpn settings, but the connection button does not work.

You need to install NetworkManager-vpnc again.

Obtain Pacman Source code

1. Install ABS

 
Pacman-s ABS

2. Edit abs. conf.

As root, edit/etc/abs. conf to include your desired repositories:Vim/etc/abs. confOr:Nano/etc/abs. conf. Remove! In front of the appropriate repos, e.g .:Repos = (core Extra Community! Testing)

3. Download the ABS tree

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 (runABSFrom time to update the source tree though). Next, say if you want the source code of the Linux CommandFind

Find out which package the commandFindBelongs:

 
Pacman-Qo 'which find'

-Q indicates query, and-O indicates query owner.

 
Pacman-Qi coreutils

-I: the group to which the query belongs.

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 runMakepkg:

    • 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 Nic

The network card vboxnet0 of virutalbox is not managed by NetworkManager. It is in the down state every time it is viewed at startup. As a result, the VM is always inaccessible to the host, and the adjustment is as follows:
Sudo ip addr add 192.168.56.1/24 Dev vboxnet0
Sudo IP link set vboxnet0 up
View status
The ip addr or IP link command is normal,

PS: Command to adjust the Gateway:

IP Route add default via 192.168.56.1

Bash set locale Error

After an upgrade, the following error is reported during logon and Su switchover:

[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

The en_US.UTF-8 was specified in RC. conf, checking/etc/locale. Gen found that all locale were commented out.

Re-open the required entry and run the command to generate locale:

 
[Root @ arch-G ~] # Locale-gen
Generating locales...
En_US.UTF-8... Done
Zh_CN.UTF-8... Done
Zh_cn.gb2312... Done
Generation complete.

View available locale:

[Root @ arch-G ~] # Locale-acen_us.utf8posixzh_cnzh_cn.gb2312zh_cn.utf8
    • Virtualbox startup times
 
[Tiger @ Tg-arch ~] $ Virtualboxqt warning: qgtkstyle was unable to detect the current GTK+ Theme.

It can be started normally, but the interface will be ugly. Install the following package to solve the problem.

 
Pacman-s libgnomeui
    • Scientific calculators are not gcalctool,Galculator
    • Display the menu configuration/usr/share/applications/, followed by the. Desktop suffix. You can also edit the menu item through gmenu-simple-editor or alacarte.

 

 

 

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.