ASUS-A501UB安装Debian后的一些配置

来源:互联网 发布:安卓ble蓝牙通信源码 编辑:程序博客网 时间:2024/06/06 19:08

在Debian官网可以下载稳定的版本,稳定版本很容易找到。但是稳定版本的内核和里面的软件通常比较老,如果你是用电脑比较新,那么还是用testing版本比较好。
这个页面可以获取testing版:
debian-installer
不同的电脑有不同的情况,下面是我的情况。
选择最新的稳定版8.7安装在华硕笔记本上。安装方法是把ISO镜像烧录到U盘中,利用U盘安装。
1.第一件事是修改sources.list(/etc/apt/sources.list).用Vi编辑器编辑,先把光盘的那个注释掉,然后在里面添加如下的内容:
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
(不同的版本代号不同,要修改为对应的代号)
2. 假入你的电脑现在没办法联网,但是你有可以联网的手机。那么可以用你的手机把网络共享给电脑。在手机的设置里一般可以用蓝牙或usb共享。推荐用usb共享网络。然后更新源:apt-get update.
如果已经习惯使用sudo了,那么安装sudo:
apt-get install sudo.
安装完后还要在sudoers(vim /etc/sudoers)中添加你的用户名。在%sudo那一栏下添加
用户名 ALL=(ALL:ALL) ALL

3.这个时候可以想办法让电脑自己联网了。如果你的上网方式是ADSL/PPPOE拨号,那么推荐下载pppoe pppoeconf.输入如下指令(root):
apt-get install pppoe pppoeconf
然后在终端输入:
pppoe
接着会出现一个对话框,一路OK下去,中途会遇到让你输入用户名和密码的界面,提示按提示输入就行。然后重启,就连上网了。

不知道为什么,我的华硕笔记本无论是安装Ubuntu还是Debian都会出现无线网不能用。找了很久,终于在国外的某个论坛上找到了一个解决办法,在终端输入
echo options asus_nb_wmi wapf = 1 | sudo tee /etc/modprobe.d/asus_nb_wmi.conf
注意这个方法只对华硕笔记本有效果。(作为初学者我不太懂为什么,有人知道为什么的话,请评论区留言。谢谢!)
连上网后就好办了。

4.添加中文支持
参考这位朋友的博客:Debian添加中文支持

5.安装中文输入法
在搜狗输入法官网下载linux版:http://pinyin.sogou.com/linux/?r=pinyin
安装的命令为:dpkg -i so**.deb
如果提示缺少库,我的解决办法是安装fcitx:
apt-get install fcitx.
如何安装fcitx不成功,安装提示输入apt-get -f install 后再安装搜狗输入法就成功了。重启后在fcitx管理程序中添加搜狗输入法就可以使用了。

6.在安装系统的过程中如果提示缺少rtl_nic/rtl8168f-2.fw 之类的固件(大概是无线网卡驱动之类的)可以用以下命令试试:
apt-get install firmware-realtek

7.如果要使用命令apt-add-responsitory 添加别的PPA源,可以试试如下命令:
apt-get install software-properties-common

8.关于显卡驱动(NVIDIA)的安装
在Linux系统下安装显卡驱动是一件很痛苦的事,大多数时候重新安装都是安装失败造成的。在安装了很多次后,我觉得官方方正的wiki是最好的指导。
nvidia显卡驱动安装(英文页面内容最新)
如果安装英伟达官方的驱动,而恰好你的电脑又是双显卡,支持双显卡切换。那么一定要注意以下这个:
As the nvidia driver is not autodetected by Xorg, a configuration file is required to be supplied. However, the configuration described below should not be applied to Nvidia Optimus systems; on such systems, the primary X display is driven by your Intel GPU, which is autodetected by X. See Bumblebee for more details on how to configure an Optimus system.
在/etc/X11/ 的目录下不能有名为xorg.conf的文件。而且最好不要使用NVIDIA X Sever Settings那个软件,在Ubuntu中这是可以的,但是在Debian 中这不行(就我的经验来看,论坛里很多电脑都会有这个问题)。
有一个叫Bumblebee的程序是一个可以尝试的办法:Bumblebee

1 0
原创粉丝点击