硬盘安装设置Debian8.2小记
2005年元旦长沙购买的华硕ASUS M2Ne老笔记本,如今装上XP基本上还能用,为了发挥其功能,决定给其安装Debian8。一开始用UltraISO把安装镜像写入U盘启动,提示需要安装光驱驱动,或者干脆不能启动,再后来用Grub2或Grub启动从硬盘安装,安装镜像跟以前一样放在fat32盘,安装程序提示始终打不到ISO镜像文件,把镜像文件拷到U盘,终于找到,成功安装。
由于个人不太喜欢GNOME3和KDE界面,桌面环境选择了LXDE(XFCE也挺不错,但后来使用过程中发现一些小bug,目前在Lxde中没遇到)。
安装成功后,登录系统进行设置安装:
源设置
用文本编辑器打开 /etc/apt/sources.list编辑修改,建议备份原文件。
附:选择源,请参阅netselect和netselect-apt使用,用netselect-apt自动生成sources.list文件,然后复制到/etc/apt/目录下。(最新版debian8.2中已经默认没有apt-spy软件包)。另外也可以创建本地软件包。
您可以选择如下源并且我个人推荐您使用testing源来获取更新的软件。当然如果您选择unstable的话只要把源中的testing改成unstable即可。以下是我的设置:
把sources.list中所有内容删除,添加如下内容:
| |
在您设置完源后,强烈的建议您使用一下命令来更新软件列表和系统
后两步可能花的时间比较长,看你的网速了。更新后,您就可以获得最新的testing系统了。
让自己能用sudo
debian默认没有把安装时创建的普通用户放入/etc/sudoers,所以,你虽然输入了你的密码,仍然不能使用sudo命令,提示“xxx is not in the sudoers file. This incident will be reported.”。
其中,xxx是你的用户名。
在/etc/sudoers中加入一下内容:
xxx ALL=(ALL) ALL
其中,xxx是你的用户名。
普通用户没有对这个文件的写权限,怎么办呢?
a)先su,转换成root帐户,然后编辑该文件;
b)用visudo命令。
我修改的时候,第一种不能保存文件,第二种成功。
安装WPS
个人不太喜欢系统自带LibreOffice,于是完全卸载掉LibreOffice:
sudo aptitude purge libreoffice?
不要漏掉通配符“?”,否则无法清除/卸载全部 LibreOffice 软件包
或者
sudo apt-get remove --purge libreoffice*
从WPS官网或者( http://wps-community.org/download.html )下载WPS deb包,用dpkg -i安装。
安装后,打开WPS如出现缺少字体提示,从百度上下载相应字体ttf文件,在自己用户目录下新建.fonts文件夹(如无),将字体文件拷到该目录下即可。
安装flash插件
(1)Ensure your /etc/apt/sources.list file includes the contrib section ( for more information see sources.list )
(2)Install flashplugin-nonfree (from section contrib):
apt-get install flashplugin-nonfree
(3)Update
How to update the Adobe Flash Player:
update-flashplugin-nonfree --install
(4)Uninstall
How to Uninstall the Adobe Flash Player, and the flashplugin-nonfree package:
#update-flashplugin-nonfree --uninstall
#apt-get remove flashplugin-nonfree
或者,直接从( http://archive.canonical.com/pool/partner/a/adobe-flashplugin/ )下载最新deb版安装。
安装为知笔记wiznote
(1)第一种方法
a.从为知官网( http://blog.wiz.cn/downloads-mac-linux.html )下载源码包( https://github.com/WizTeam/WizQTClient ,右边Download ZIP)。下载后解压。
b.准备编译环境
安装编译工具:
sudo apt-get install build-essential
安装cmake:
sudo apt-get install cmake
安装qt4:
sudo apt-get install libqt4-dev
sudo apt-get install qtcreator
安装zlib:
sudo apt-get install zlib1g-dev
c.cd到解压所在build目录,在终端输入并运行:
cmake ..
d.输入运行:
make
e.继续输入运行:
sudo make install
完成。
(2)第二种方法
其实可以从( https://launchpad.net/~wiznote-team/+archive/ubuntu/ppa/+packages )点进具体版本后在打开页面最下面下载Deb包直接安装。
(3)第三种方法,建议
通过PPA方式安装:(仔细看 https://launchpad.net/~wiznote-team/+archive/ubuntu/ppa 页面说明)
a.终端下,su用root用户登录;
b.执行命令:(下面代码中 xenial 改 ubuntu 版本号)
| |
(4)安装iceweasel firefox 为知插件:
找开( http://www.firefoxfan.com/Firefox-Extension/Webclipper-For-Firefox.html )页面最下端有下载安装链接。
打开( http://www.wiz.cn/downloads-webclipperfirefox.html )页面下载并手动安装即可。
安装文件浏览器
(1)Double Commander ( http://sourceforge.net/p/doublecmd/ ) //个人推荐使用
从官网( http://sourceforge.net/p/doublecmd/wiki/Download/ )下载Deb qt4包( http://software.opensuse.org/download.html?project=home%3AAlexx2000&package=doublecmd-qt ,对照说明手动安装:
a.终端下,su用root用户登录;
b.执行命令:
您可以把软件源金钥添加到 apt。记住该金钥的拥有者将能够分发您的系统将会信任的更新、软件包和软件源 (更多信息)。要添加该金钥,请运行:
wget http://download.opensuse.org/repositories/home:Alexx2000/Debian_8.0/Release.keyapt-key add - < Release.key
此处加载的密钥uid为home:Alexx2000 OBS Project
**备注:**201705 现在可以在testing版本中直接 aptitude install doublecmd-qt安装。
(2)muCommander ( http://www.mucommander.com/ ) //不推荐使用,可以借鉴添加源方法
To install muCommander and receives automatic updates using APT, add either of the following lines to your /etc/apt/sources.list :
Stable releases:
deb http://apt.mucommander.com stable main non-free contrib
Nightly builds (unstable):
deb http://apt.mucommander.com unstable main non-free contrib
echo "deb http://apt.mucommander.com unstable main non-free contrib" >> /etc/apt/sources.list.d/mucommander.list
You’ll also need to add the repository’s GPG key to your APT keychain. If you get an error, try running apt-key with root privileges:
wget -O - http://apt.mucommander.com/apt.key | apt-key add -
此处加载的密钥uid为Maxence Bernard
Finally, you can install muCommander by issuing:
apt-get update
apt-get install mucommander
如上述安装有错误直接从官网( http://www.mucommander.com/ )下载DEB包安装。
安装pdf等阅读器okular
直接
aptitude install okular
安装chm等阅读器kchmviewer
直接
aptitude install kchmviewer
安装gThumb图片浏览器
直接
aptitude install gthumb
,卸载掉其他图片浏览器
安装截图软件shutter
直接
aptitude install shutter
,卸载掉其他载图软件
安装百度云linux版bcloud(简直就是神器)
直接
aptitude install bcloud
介绍网页( http://www.mintos.org/skill/baidu-bcloud-linux.html ),作者开发主页( https://github.com/LiuLang/bcloud-packages ),个人测试不太好用
安装linux小迅雷uget+aria2
直接
aptitude install garia2 uget
介绍页面( http://www.mintos.org/skill/uget-aria2-tweak.html ),浏览器要安装flashgot插件
设置goldendict词典软件
系统已经默认安装好goldendict软件,按介绍页面( http://www.360doc.com/content/14/0317/20/14641369_361393326.shtml )下载词库和构词库。
设置安装金山快盘同步软件
从(
http://www.kuaipan.cn/d/linux
)下载软件用dpkg -i安装。
附:如需多文件夹同步,在home目录下新建“Litanid同步盘”文件夹作为同步文件夹,启动快盘时选择此文件夹。在此文件夹下建立符合连接ln -s 至home下的文档、下载、图片等需要同步的文件夹,设置快盘选择性同步。
设置自动切换壁纸
(1)从( http://www.lovebizhi.com/ )下载安装爱壁纸。壁纸下载目录选择“home\图片\Wallpaper”。 //爱壁纸在xfce,mate,lxde下不起作用,不建议使用
(2)通过PPA方式安装wallch:(仔细看 https://launchpad.net/~wallch/+archive/ubuntu/wallch-4.0 页面说明)
a.终端下,su用root用户登录;
b.执行命令:
| |
(3)通过PPA方式安装variety:(仔细看 https://launchpad.net/~peterlevi/+archive/ubuntu/ppa 页面说明)
a.终端下,su用root用户登录;
b.执行命令:
| |
官方主页: https://vrty.org/
安装p7zip
直接aptitude install p7zip-full 和rar插件(p7zip-rar),或者直接下载最新版p7zip(
http://sourceforge.net/projects/p7zip/?source=typ_redirect
),然后