Arch Linux VMware
Arch linux
1.
.isohttp://mirror.bjtu.edu.cn
“创建虚拟机”按钮
.
1VMware
64
# fdisk /dev/sda
·Command (m for help): o Enter
1.Command (m for help): n Enter
2.Partition type: Select (default p): Enter
3.Partition number (1-4, default 1): Enter
4.First sector (2048-209715199, default 2048): Enter
5.Last sector, +sectors or +size{K,M,G} (2048-209715199….., default 209715199): +15G Enter
1.Command (m for help): n Enter
2.Partition type: Select (default p): Enter
3.Partition number (1-4, default 2): Enter
4.First sector (31459328-209715199, default 31459328): Enter
5.Last sector, +sectors or +size{K,M,G} (31459328-209715199….., default 209715199): Enter
:
·Command (m for help): p Enter
Disk /dev/sda: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5698d902
Device Boot Start End Blocks Id System
/dev/sda1 2048 31459327 15728640 83 Linux
/dev/sda2 31459328 209715199 89127936 83 Linux
·Command (m for help): w Enter
fdisk
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
fdisk q
/boot,/home/,/,/var
3
# mkfs.ext4 /dev/sda1
# mkfs.ext4 /dev/sda2
x
# mkswap /dev/sdaX
# swapon /dev/sdaX
/mnt
# mount /dev/sda1 /mnt
/home /boot/var
# mkdir /mnt/home
# mount /dev/sda2 /mnt/home
pacmanarchwiki,
1/etc/pacman.d/mirrorlist,
# nano /etc/pacman.d/mirrorlist
##
## Arch Linux repository mirrorlist
## Sorted by mirror score from mirror status page
## Generated on 2012-MM-DD
##
Server = http://mirror.bjtu.edu.cn/archlinux/$repo/os/$arch
…
# pacman -Syy
# pacstrap -i /mnt base
pacstrap failed retrieving file ‘core.db’ from mirror…: Connection time-out
2fstab
# genfstab -U -p /mnt >> /mnt/etc/fstab
3
# arch-chroot /mnt /bin/bash
# nano /etc/locale.gen
en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
zh_TW.UTF-8 UTF-8
locale-genlocale
# locale-gen
locale.conf
# echo LANG=en_US.UTF-8 > /etc/locale.conf
5
# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
6
# hwclock –systohc –utc
7
# echo 主机名 > /etc/hostname
/etc/hosts
# nano /etc/hosts
#
# /etc/hosts: static lookup table for host names
#
#
127.0.0.1 localhost.localdomain localhost 主机名
::1 localhost.localdomain localhost
# End of file
8root密码
# passwd
9grub:
grub-install MBR:
# pacman -S grub
# grub-install –target=i386-pc –recheck /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg
/dev/sda,
/dev/sda1
10
chroot
# exit
# reboot
livecd中一般会自动联网
# ip link
enp0s3
# ip link set enp0s3 up
# dhcpcd enp0s3
# systemctl enable
archwiki。
# pacman -Syu
x window:
# pacman -S xorg
# pacman -S xf86-video-vesa # 通用显卡驱动,不提供任何2D和3D加速功能
# pacman -S xf86-video-intel # Intel
# pacman -S xf86-video-nouveau # Nvidia
# pacman -S nouveau-dri
# pacman -S xf86-video-ati # Ati
#
# : pcaman -S xf86-video-vesa
# pacman -S alsa-utils
XFCE4 桌面套件
# pacman -S xfce4
,X,,slim:
# pacman -S slim
sudo,root:
# pacman -S sudo
# pacman -S wqy-zenhei(–
,kimolte
# useradd -m -s /bin/bash kimolate
# passwd kimolate
sudo
# visudo
kimolate
~/.xinitrc
#cp /etc/skel/.xinitrc ~
#touch ~/.xinitrc
.xinitrc
#cd ~
#sudo nano .xinitrc
#exec gnome-session
#exec startkde
#exec startlxde
#exec startxfce4
………
exec startxfce4或直接去掉你对应桌面的语句前面的#
#sudo chmod +x ~/.xinitrc
slim登陆器
#sudo systemctl enable slim.service
#nano /etc/locale.conf
LANG
# export LANG=zh_CN.UTF-8
# export LC_ALL=”zh_CN.UTF-8″
fcitx输入法
#sudo pacman -S fcitx-im fcitx-configtool
KDM startx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=”@im=fcitx”
XDG , , , ,
#fcitx
:http://www.linuxidc.com/Linux/2017-12/149118.htm