Arch linux配置指南

Arch linux配置指南


一.配置網絡
命令行
# ip link set eth0 up
# ip addr add 192.168.1.2/24 broadcast 192.168.1.255 dev eth0
# ip route add default via 192.168.1.1

建議直接寫入配置文件php

[root@jlive ~]# cat /etc/netctl/ethernet-customlinux

Description='A more versatile static ethernet connection'vim

Interface=eno16777736網絡

Connection=ethernetdom

IP=staticssh

# Any valid iproute command can be placed in this arrayide

IPCustom=('addr add dev eno16777736 192.168.130.10/24 brd +' 'route add default via 192.168.130.2')工具

DNS=('114.114.114.114' '8.8.8.8')this

# Set a priority for automatic profile selectionspa

#Priority=10

#ExcludeAuto=no

[root@jlive ~]# netctl restart ethernet-custom
請必定加入開機啓動 
systemctl enable netctl
systemctl enable sshd

容許root遠程登陸,修改/etc/ssh/sshd_config

PermitRootLogin yes


二.系統工具
pacman -Syu
pacman -S xf86-video-vmware xf86-input-evdev  mesa
pacman -S cronie
注:顯示卡驅動,請根據環境來定,我用的是vmware虛擬機

三.桌面環境

pacman -S xorg-server xorg-server-utils xorg-xinit alsa-utils 

pacman -S xfce4 firefox fcitx fcitx-fbterm fcitx-cloudpinyin fcitx-gtk2 fcitx-gtk3 wqy-zenhei flashplugin leafpad slim archlinux-themes-slim archlinux-wallpaper sudo 


四.影音組件

pacman -S mplayer moc speex ffmpeg taglib libmpcdec wavpack faad2 libmodplug


五.配置
1.新建普通用戶
useradd -m jlive
passwd jlive
2.給予sudo權限
visudo
3.配置slim主題
vim /etc/slim.conf

# current theme, use comma separated list to specify a set to

# randomly choose from

current_theme       default,archlinux-simplyblack

提示:能夠隨機主題哦,默認是default

4.開機啓動項
早期版本(/etc/rc.conf)
DAEMONS=(syslog-ng network crond dbus alsa slim)
最新版本,採用systemd
systemctl enable slim
5.配置桌面及輸入法
su - jlive
cat > .xinitrc <<HERE
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im-fcitx"
killall fcitx
fcitx &
exec dbus-launch startxfce4
HERE
6.重啓
reboot

補充:
1.自動登陸
vim /etc/slim.conf

# default user, leave blank or remove this line

# for avoid pre-loading the username.

default_user        jlive


# Focus the password field on start when default_user is set

# Set to "yes" to enable this feature

#focus_password      no


# Automatically login the default user (without entering

# the password. Set to "yes" to enable this feature

 

auto_login          yes

該配置文件十分清晰,如上就能夠以某個用戶自動登陸到桌面




Arch <wbr>linux配置指南

Arch <wbr>linux配置指南

相關文章
相關標籤/搜索