一、安装开源显卡Debian9 wiki https://wiki.debian.org/AtiHowTo
1.Add "contrib" and "non-free" components to /etc/apt/sources.list, for example:
deb http://httpredir.debian.org/debian/ stetch main contrib non-free
2.安装过程
# apt-get update
# apt-get upgrade
# apt-get install firmware-linux-nonfree libgl1-mesa-dri xserver-xorg-video-ati
Restart your system to load GPU device firmware.
3.设定
xrandr --listproviders
$ xrandr --setprovideroffloadsink radeon Intel
$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
二、安装iwlwifi无线网卡https://wiki.debian.org/iwlwifi
# apt-get update && apt-get install firmware-iwlwifi
# modprobe -r iwlwifi ; modprobe iwlwifi
三、卸载一些不需要的软件:
方法一:
# apt-get --purge remove five-or-more gnome-games four-in-a-row gnome-klotski gnome-mahjongg gnome-mines gnome-nibbles gnoem-robots gnome-sudoku gnome-taquin gnome-tetravex hitori iagno lightsoff
quadrapassel swell-foop gnome-chess tali
上面删除的是内置的游戏,我不玩游戏,所以全部删除。
方法二:
找到--软件--己安装--删除。相对于第一种方法,这里不需要知道软件的英文名,但是用命令快速但是一些软件不容易确定它的名字,比如tali--掷骰子,它根本不是英文名,所以用这个方法还是比较方便的。
四、安装一些我需要的软件
# apt-get --purge rmove gnome-dictionary goldendict evolution gnome-maps torem gnash
系统默认安装的一些有用命令:
zip p7zip openssl
上面删除系统版自带的字典、邮件客户端、地图、视频播放器,分别代之以我习惯的软件
# apt-get install stardict thunderbird vlc unar vim fcitx-table-wbpy make pdftk
# mkdir /usr/share/fonts/truetype/win_fonts
# cp ./fonts /usr/share/fonts/truetype/win_fonts %%在./fonts 中已经含有wps所需字体
# fc-cache -vf
安装texlive2017
下载地址:http://mirrors.ctan.org/systems/texlive/Images/texlive2017.iso
iso2017
# apt-get install libdigest-perl-md5-perl perl-tk
# mount -o loop texlive2017.iso /mnt/
# cd /mnt/
# ./install-tl
在当前用户的 ~/.bashrc 中加入如下语句:
# TeX Live 2017
export MANPATH=${MANPATH}:/usr/local/texlive/2017/texmf-dist/doc/man
export INFOPATH=${INFOPATH}:/usr/local/texlive/2017/texmf-dist/doc/info
export PATH=${PATH}:/usr/local/texlive/2017/bin/x86_64-linux
$ cd ~
$ unmount /mnt/
# tlmagr --self
# tlmagr --all
五、配置vim-latexsuite
# apt-get install vim-latexsuite
查阅文件/usr/share/doc/vim-latexsuite/README.Debian完成配置
Dear user, this package provides the vim addon latex-suite, but it is not enabled
per default. If you want to enable it for your user account execute:
vim-addons install latex-suite
Similarly, to enable it for all users of this system execute (as root):
vim-addons -w install latex-suite
vim-addons is provided by the vim-addon-manager package, have a look at its
manpage for more information.
Additionally, you need to add the following lines
filetype plugin on
set grepprg=grep\ -nH\ $*
filetype indent on
let g:tex_flavor='latex'
to ~/.vimrc (or to /etc/vim/vimrc as root) for full usability.
For more info about this lines, type ":help ls_1" in vim (after enabling this
plugin with vim-addons).
六、安装一些闭源软件
1、wps http://community.wps.cn/download/
wps-office_10.1.0.5672~a21_amd64.deb
下载依懒
libpng12-0_1.2.49-1+deb7u2_amd64.deb
执行后,如果还有一些依懒,则执行
# apt-get -f install
# cd ./wps
# dpkg -i *.deb
2.PCS 百度云
程序依赖于 libcurl。
1. 安装依赖
# apt-get install build-essential libcurl4-openssl-dev libssl-dev
2. 获取源代码
# git clone https://github.com/GangZhuo/BaiduPCS.git
3. 编译源代码
# cd BaiduPCS
# make clean
# make
# make install #将安装到/usr/local/bin下
4. 手动安装到其他目录,例如 /usr/bin 下
# cp ./bin/pcs /usr/bin/
红包分享
钱包管理

