Debian8初始配置


安装sudo


debian默认没有sudo用户,这对于安装软件及一些需特权的操作很不方便,安装sudo指定普通用户有系统管理的权限。

首先,切换到root用户下

root# su root

确定后输入root密码

输入以下指令

root#aptitude install sudo                //安装sudo
root# chmod +w /etc/sudoers        //授予sudoers写的权限,否则为只读。
root#vi etc/sudoers                         // 或者gedit/etc/sudoers编辑etc/sudoers
找到root行并在下行输入你的账户,

%sudo    ALL=(ALL:ALL) ALL      //%sudo表示你的账户名称
root#chmod -w /etc/sudoers 去掉sudoers写的权限改为只读。
root#exit 退到普通账户。

这样需要临时特权时可以用sudo命令来获取权限了。


更新apt


Debian默认从CD/DVD安装软件,对于有光驱的电脑用光盘装是很方便的,对于没有光驱的电脑可以通过网络安装软件。

用编辑器打开/etc/apt/sources.list,用#注释掉带有cdrom的行。之后添加下面的源

deb http://httpredir.debian.org/debian jessie main
deb-src http://httpredir.debian.org/debian jessie main

deb http://httpredir.debian.org/debian jessie-updates main
deb-src http://httpredir.debian.org/debian jessie-updates main

deb http://ftp.debian.org/debian/ jessie-updates main contrib
deb-src http://ftp.debian.org/debian/ jessie-updates main contrib
deb http://mirrors.163.com/debian jessie main non-free contrib
deb http://mirrors.163.com/debian jessie-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security jessie/updates main contrib non-free  
#deb-src http://mirrors.163.com/debian jessie main non-free contrib
deb http://security.debian.org/ jessie/updates main contrib non-free
deb http://http.debian.net/debian/ jessie main contrib non-free

保存退出。

更新源sudo apt-get update 或者sudo aptitude update。

之后可以用apt-get install 或者aptitude install从网络安装软件了。


安装Fcitx输入法

输入安装命令:sudo apt-get install fcitx-table-wbpy或者sudo apt-get install fcitx-pinyin     //wbpy为五笔拼音    pinyin为拼音

安装完毕后注销再登录,应该就可以看到输入法。

找到Applications-->System tools-->Fcitx configuration点击打开fcitx配置面板,可以对输入法进行配置,包括输入法顺序、快捷键等等。

安装显卡驱动(ATI)

显卡驱动有官方的和开源的,官方的显卡驱动可以到相关网站下载,但是ATI官方显卡驱动不支持Gnome桌面环境,如果强行安装则无法启动桌面环境了。开源驱动没有这些问题,所以推荐安装开源显卡驱动。

可以参考官网的安装:https://wiki.debian.org/AtiHowTo

添加源deb http://http.debian.net/debian/ jessie main contrib non-free,(更新源部分已经添加)

# sudo apt-get install firmware-linux-nonfree libgl1-mesa-dri xserver-xorg-video-ati
重启后电脑的分辨率会达到最佳效果。 

安装adobe flash player

参考官方wiki:https://wiki.debian.org/FlashPlayer

# apt-get install flashplugin-nonfree
启动浏览器就可以看视频了。

到这里,Debian 8的基本初始配置就完成了,之后的软件就需要根据自己的需求安装了。qq现在只能通过wine安装了,由于webqq不能用了,所以所有基于webqq库开发的插件都不能用了。dota2玩家可以装steam安装dota2,不过服务器不是完美的,都是国外的,玩起来异常卡,而且貌似显示也不是很完美,所以想玩游戏还是到windows下吧。OK,Enjoying  your Debian!

猜你喜欢

转载自blog.csdn.net/G_Crisis/article/details/49584955