zoukankan      html  css  js  c++  java
  • 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配置指南

  • 相关阅读:
    【转】IntelliJ IDEA2017.3激活
    【转】构建Maven项目自动下载jar包
    【转】Intellij idea 的maven项目如何通过maven自动下载jar包
    【转】在IDEA中创建maven项目
    【转】maven的安装、配置以及下载jar包
    【转】git修改文件后,提交到远程仓库
    基于MbedTLS的AES加密实现,含STM32H7和STM32F4的实现例程
    Cortex-M7,A8,A9,A15与ADI的BlackFin以及SHARC的DSP性能PK
    基于V6的中移动物联测试例子,当前测试还挺稳定
    中移动物联手机端APP软件
  • 原文地址:https://www.cnblogs.com/lixuebin/p/10814248.html
Copyright © 2011-2022 走看看