markdown ArchLinux的

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown ArchLinux的相关的知识,希望对你有一定的参考价值。

AnarchyLinux What to Do?

# Boot and on

Can be live, by CD, by virtualbox, doesn't matter

# Mess with your disks/partitions

### To check the current disks
`fdisk -l`  

###  You are going to need the '/' separated from '/home' by partitions, so, we will create two partitions in /dev/sda disk
`parted /dev/sda mklabel gpt/msdos`  
`parted -a opt /dev/sda mkpart primary ext4 0% 50%`  
`parted -a opt /dev/sda mkpart primary ext4 50% 100%`  

###  Now you should have sda1 and sda2 partitions
`fdisk -l`  

### Format the two of them as ext4
`mkfs.ext4 /dev/sda1`  
`mkfs.ext4 /dev/sda2`  

###  Mount the partitions
`mkdir /mnt`  
`mount /dev/sda1 /mnt`  
`mkdir /mnt/home`  
`mount /dev/sda2 /mnt/home`  

# Install the system it self on /mnt
### Edit the mirror file to get the closest server possible, you can achieve this putting the selected server in the top of the other 'servers'
`vim /etc/pacman.d/mirrorlist`  
`pacstrap -i /mnt base`  

# Configure your current File Systems Table

`genfstab -U -p /mnt >> /mnt/etc/fstab`  
`cat /mnt/etc/fstab`  

# Configure other minor stuff
### Locale: uncomment the needed line
`arch-chroot /mnt`  
`vim /etc/locale.gen`  
`locale-gem`  
`echo LANG=pt_BR.UTF-8 > /etc/locale.conf`  
`export LANG=pt_BR.UTF-8`  

### Set your location
`ln -sf /usr/share/zoneinfo/Brazil/East /etc/localtime`  

# Configure your internet
### If wired:
`systemctl enable dhcpcd.service`  

### If wi-fi:
`pacman -S wireless_tools wpa_supplicant wpa_actiond dialog`  
`wifi-menu`  
`systemctl enable net-auto-wireless.service`  

# Configure pkg manager
### Uncomment '[multilib]'
`vim /etc/pacman.conf`  
`pacman -Sy`  

### Create an user \o
`useradd -m -g users -G wheel,storage,power -s /bin/bash vsantos`  
`passwd vsantos`  

# Setting up sudo
`pacman -S sudo`  
### uncomment line that sets 'wheel' group to use sudo
`visudo`  

# Additional packages
### Add some audio pkg. First two packages for deeping GUI
`pacman -Sy pulseaudio pulseaudio-alsa alsa-utils`  
### Unmute sound
`alsamixer`  
### Test sound
`speaker-test -c 2`  
### Install some fonts
`sudo pacman -Sy tff-dejavu`  

# Bootloader
`pacman -S grub-bios`  
`grub-install --target=i386-pc --recheck /dev/sda`  

### If duo boot:
`pacman -S os-prober`  
`grub-mkconfig -o /boot/grub/grub.cfg`  

### Unmount volumes
### Exit form chroot
`umount /mnt/home`  
`umount /mnt/opt`  
`umount /mnt`  
`reboot`  

# Run the system with the created user and test some funcionalities

### Install X window for getting some graphics up

`sudo pacman -S xorg-server xorg-xinit`  
`sudo pacman -S mesa`  

### To get driver for trackpad in a notebook:
`sudo pacman -S xf86-input-synaptics`  

### Test if we can get a graphical environment

`sudo pacman -S xorg-twm xorg-clock xterm`  
`startx`  

# Changing default shell - zsh
Maybe you will want an zsh as shell instead of bash

### Installation
`sudo pacman -Sy zsh`  

### Changing the default shell it self
List installed shells  
`chsh -l`  
`chsh -s /bin/zsh`  
## Installing X Windows Server

$ pacman -Sy xorg xorg-server

## Installing deepin it self

$ pacman -Sy deepin  
$ pacman -Sy deepin-extra

## Edit lightdm Display Manager conf: /etc/lightdm/lightdm.conf

s/#greeter-session=example-gtk-gnome/greeter-session=lightdm-deepin-greeter  

## Enable service

sudo systemctl enable lightdm.service
sudo reboot / sudo systemctl start lightdm.service

以上是关于markdown ArchLinux的的主要内容,如果未能解决你的问题,请参考以下文章

markdown 在Archlinux上安装Hearthstone

关于archlinux的安装

archlinux安装问题,大神进

archlinux 无法更新签名 gpg

archlinux 休眠 耗电吗

archLinux安装(基础篇)