Debian 9.3 安装笔记

修改源

配置文件:/etc/apt/sources.list

deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

安装无线网卡驱动

添加源: /etc/apt/sources.list

# Debian 9 "Stretch"
deb http://httpredir.debian.org/debian/ stretch main contrib non-free

安装包:# apt-get update && apt-get install firmware-iwlwifi
载入使用: modprobe -r iwlwifi ; modprobe iwlwifi

安装输入法

root 下安装

# apt-get install ibus-sunpinyin
# apt-get install ibus-pinyin
# apt-get install fcitx-sunpinyin
# apt-get install ibus-table-wubi
# apt-get install fcitx-ui-classic && apt-get install fcitx-ui-light

执行完毕后重启系统,在设置->区域和语言->输入源处 可找到:汉语(SunPinyin),点击添加即可。

安装sudo 添加用户

切到root用户,安装sudo
修改配置/etc/sudoers

解决lantern在debian报错问题缺少libappindicator3.so.1

apt-get install gir1.2-appindicator3-0.1

卸载自带openjdk

sudo apt-get purge openjdk-*

配置java环境变量

root用户

update-alternatives --install /usr/bin/java java /home/xuduo/jdk-9.0.4/bin/java 100
update-alternatives --install /usr/bin/javac javac /home/xuduo/jdk-9.0.4/bin/javac 100
update-alternatives --config java
update-alternatives --config javac

查看系统已安装内核

dpkg --get-selections|grep linux
sudo apt purge xxx

debian安装字体

  1. 在/usr/share/fonts/truetype/下建立文件夹myfonts,然后拷贝上述字体到改文件夹下。

    sudo mkdir /usr/share/fonts/truetype/myfonts
    cp *.ttf  /usr/share/fonts/truetype/myfonts/
    
  2. 更改myfonts和该目录下面的权限,可以都设成777

    sudo chmod -c 777 /usr/share/fonts/truetype/myfonts
    sudo chmode -c 777 /usr/share/fonts/truetype/myfonts/*
    
  3. 最后就是注册新添加字体了,执行如下命令

    sudo mkfontscale
    sudo mkfontdir
    sudo fc-cache -fv

你可能感兴趣的:(Debian 9.3 安装笔记)