标签:mct oba syn profile ati void virt prim sda
目录
ping baidu.com
cfdisk
Create 2GB SWAP partition
The same as above steps to partition Swap partition except RAM is 2048M.
Create 8GB Logcial partition
Reference to Create 10GB Hard disk partition. RAM is 8GB.
final select Quit option to quit.
Format the three partition
mkfs.ext4 /dev/sda1 // sda1 is name of Root partition
mkfs.ext4 /dev/sda3 // sda3 is name of Logical partition
mkswap /dev/sda2 // Format the swap partition with mkswap
swapon /dev/sda2
c mount /dev/sda1 /mnt /* /dev/sda1 and /mnt are two directories */
pacstrap /mnt base base-devel
genfstab /mnt>> /mnt/etc/fstab
arch-chroot /mnt /bin/bash
nano /etc/local.gen
en_US.UTF-8 UTF-8
to file. Press Control + X , y to save it. Press Enter.en_US.UTF-8 UTF-8
in the open file, Delete #
symbol at head and save.locale-gen
nano /etc/locale.conf
LANG=en_US.UTF-8
to open file and save.ls user/share/zoneinfo
nano /etc/hostname
systemctl enable dhcpcd
c pacman -S grub os-rober // If prompted incorrectly use the following command pacman -S grub os-prober
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
reboot
Enter Robot Logic: root
Password:
Arch Linux installed successfully !
pacman -S vim
Configuration Vim
vim /etc/profile
and add following command to the end of open file
```
export LS_OPTIONS="--color=auto -N -T 0"
alias ls="ls $LS_OPTIONS"
alias ll="ls -l"
alias lf="ls -F"
alias la="ls -a"
alias lt="ls -t"
alias lx="ls -X"
alias l="ls -lA"
alias l.="ls -d .*"
`vim /etc/vimrc` and add following command to the end of open file
set nocp
set ru
set background=dark
"set columns=80
set nobk
set is
syn on
set backspace=indent,eol,start
set whichwrap=b,s,<,>,[,]
set sw=4
set ts=4
set lbr
set sm
set cin
set softtabstop=4
set autoindent
set number
set hls
set fo+=mB
set vb t_vb=
set nobackup
```
cd /home
Vim a.c
c #include<stdio.h> int main(void) { printf("hello world\n"); return 0; }
gcc a.c
./a.out
if the terminal appears ==hello world==, it means success. Congratulations.
This article is organized by Chanmo.
因为自己英文不好,想通过这种写英文技术文档的方式来提高自己的英语水平
标签:mct oba syn profile ati void virt prim sda
原文地址:https://www.cnblogs.com/Fsiswo/p/11525347.html