# 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遠程登陸,修改/etc/ssh/sshd_config
PermitRootLogin yes
三.桌面環境
pacman -S xorg-server xorg-server-utils xorg-xinit
pacman -S xfce4 firefox fcitx
pacman -S mplayer moc speex ffmpeg taglib libmpcdec wavpack faad2 libmodplug
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme
提示:能夠隨機主題哦,默認是default
# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user
# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
auto_login
該配置文件十分清晰,如上就能夠以某個用戶自動登陸到桌面