Linux应用随笔(三)命名行下连接WIFI并解决A卡驱动问题
2016-09-30 00:46
423 查看
最近linux经常出现开机进入不了图形界面的情况,startx会卡住,reboot也会卡住,最后发现是ati开源驱动的问题,换成fglrx闭源驱动问题就都解决了。
在这过程中,图形出不来,除非grub时设置成nomodeset。那么如何在命令行下连接WIFI呢?
vim /etc/wpa_supplicant/wpa_supplicant.conf写入以下内容:
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf连上后按Ctrl+Z挂起
dhclient wlan0自动获取IP
这样就有网了,接下来就要下载fglrx-*驱动了,直接apt-get install就行了。
安装后需要生成xorgl.conf文件,使用aticonfig –initial,这样startx就能进入图形界面了。不过,有时我们需要用两个屏幕,这时就应该用:
这样开机后VGA屏自动扩展。
这里和ATI驱动对比一下:ati驱动通过xrandr –output VGA-0 –right-of LVDS命令实现双屏显示,而fglrx则是aticonfig自动生成xorg.conf文件。xorg.conf内容如下:
需要注意的是“ServerLayout”中Option “Xinerama” “on”要自己加上,否则相当于又开了一个工作空间,不过不可以拖窗口进去。
我安装Debian只装最基本的系统而不选择utuntu,虽然会比较麻烦,不过遇到问题也就能找到是什么原因,还是值得的。
在这过程中,图形出不来,除非grub时设置成nomodeset。那么如何在命令行下连接WIFI呢?
vim /etc/wpa_supplicant/wpa_supplicant.conf写入以下内容:
ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 update_config=1 network={ ssid="WIFI名称" psk="WIFI密码" priority=1 }
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf连上后按Ctrl+Z挂起
dhclient wlan0自动获取IP
这样就有网了,接下来就要下载fglrx-*驱动了,直接apt-get install就行了。
安装后需要生成xorgl.conf文件,使用aticonfig –initial,这样startx就能进入图形界面了。不过,有时我们需要用两个屏幕,这时就应该用:
aticonfig --initial=dual-head --screen-layout=right
这样开机后VGA屏自动扩展。
这里和ATI驱动对比一下:ati驱动通过xrandr –output VGA-0 –right-of LVDS命令实现双屏显示,而fglrx则是aticonfig自动生成xorg.conf文件。xorg.conf内容如下:
Section "ServerLayout" Identifier "aticonfig Layout" Screen 0 "aticonfig-Screen[0]-0" 0 0 Screen "aticonfig-Screen[0]-1" RightOf "aticonfig-Screen[0]-0" Option "Xinerama" "on" EndSection Section "Module" EndSection Section "Monitor" Identifier "aticonfig-Monitor[0]-0" Option "VendorName" "ATI Proprietary Driver" Option "ModelName" "Generic Autodetecting Monitor" Option "DPMS" "true" EndSection Section "Monitor" Identifier "aticonfig-Monitor[0]-1" Option "VendorName" "ATI Proprietary Driver" Option "ModelName" "Generic Autodetecting Monitor" Option "DPMS" "true" EndSection Section "Device" Identifier "aticonfig-Device[0]-0" Driver "fglrx" BusID "PCI:0:1:0" EndSection Section "Device" Identifier "aticonfig-Device[0]-1" Driver "fglrx" BusID "PCI:0:1:0" Screen 1 EndSection Section "Screen" Identifier "aticonfig-Screen[0]-0" Device "aticonfig-Device[0]-0" Monitor "aticonfig-Monitor[0]-0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Section "Screen" Identifier "aticonfig-Screen[0]-1" Device "aticonfig-Device[0]-1" Monitor "aticonfig-Monitor[0]-1" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection
需要注意的是“ServerLayout”中Option “Xinerama” “on”要自己加上,否则相当于又开了一个工作空间,不过不可以拖窗口进去。
我安装Debian只装最基本的系统而不选择utuntu,虽然会比较麻烦,不过遇到问题也就能找到是什么原因,还是值得的。
相关文章推荐
- Linux应用随笔(五)64位Debian8兼容运行32位adb开发android应用,并解决手机驱动问题
- Linux下解决Qt连接MySql找不到驱动的问题
- linux折腾日记:解决无线wifi的连接问题 (Broadcom 802.11)
- Ubuntu 无线网络连接WIFI(b43驱动出现DMA问题的解决)
- Linux应用随笔(四)文件换行问题解决方案
- Windows-驱动-解决Thinkpad e470c在Win8.1下WiFi无法连接的问题
- 解决ubuntu无法连接wifi的问题: 安装无线网卡驱动
- wind10系统 Atheros AR9271 Wireless Network Adapter USBwifi无线网卡的驱动安装解决无法搜索wifi信号,连接wifi信号无法上网的问题
- Ubuntu 无线网络连接WIFI(b43驱动出现DMA问题的解决)
- 创建并部署一个连接SQLAzure的WindowsAzure应用遇到的问题及解决办法
- 禁用驱动签名强制,解决x64位Win7连接Google G1的驱动问题
- Linux下g++编译C++连接oracle(OCCI)出现的问题及解决方式
- LINUX下解决time_wait连接过多和同一IP连接过多的问题
- [经验随笔]大量close_wait状态连接问题的分析与解决
- linux下c++使用occi连接oracle数据库步骤,及出现的问题和解决
- Linux移植随笔:终于解决Tslib的问题了
- SecureCRT连接Linux,终端显示中文乱码问题,全方面解决
- linux2.6.24下usb驱动完成情况及问题解决
- 在windows下使用putty连接虚拟中的linux出现主机拒绝的问题(已解决)
- 解决使用MySQL C-API开发应用时的连接超时问题