# 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
该配置文件十分清晰,如上就能够以某个用户自动登陆到桌面