• 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
    

    建议直接写入配置文件

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

    Description='A more versatile static ethernet connection'

    Interface=eno16777736

    Connection=ethernet

    IP=static

    # Any valid iproute command can be placed in this array

    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')

    # Set a priority for automatic profile selection

    #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配置指南

  • 相关阅读:
    Linux命令-chmod、chown和chgrp
    UUID是如何保证全局唯一的
    Java实现HTML转换为PDF的常见方法
    Java内存溢出详解
    Java 版本6下载大全
    spring 标签
    java 静态成员访问
    Java开发之@PostConstruct执行顺序
    Java集合和数组的区别
    集合转数组的toArray()和toArray(T[] a)方法
  • 原文地址:https://www.cnblogs.com/lixuebin/p/10814248.html
Copyright © 2020-2023  润新知