筆記本使用linux問題總結

來源:互聯網
上載者:User

win7 和 linux雙系統的安裝可以參考這裡: http://blog.csdn.net/cidisk/article/details/8693773

1   為外接顯示器新增解析度. 

外接的顯示器沒有識別,顯示的解析度太小。

$ xrandr
 Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096
 LVDS1 connected (normal left inverted right x axis y axis)
    1024x600       60.0 +
    800x600        60.3     56.2
    640x480        59.9
 VGA1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
    1024x768       60.0 *
    800x600        60.3     56.2
    848x480        60.0
    640x480        59.9

標星號的那行就是我正在使用的解析度。
 下面用cvt命令產生一個modeline,為後續添加解析度作準備:
 $ cvt 1440 900
 # 1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz
 Modeline "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
 再運行xrandr --newmode來建立一個解析度模式,使用“Modeline”後的內容(--rmmode刪除這個模式):
 $ xrandr --newmode "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
 接著用xrandr --addmode把這個模式添加到顯示器上(--delmode把這個模式從該顯示器上移除):
 $ xrandr --addmode VGA1 "1440x900_60.00"
 最後是應用這個模式:
 $ xrandr --output VGA1 --mode "1440x900_60.00"

這種更改貌似在每次重啟後又失效了,我的解決辦法所把上面的內容寫到一個shell指令碼中,每次開機後運行一下

2  設定虛擬記憶體(swap分區)

1,使用dd命令,在/tmp下新增一個64M的檔案:
dd if=/dev/zero of=/tmp/swap bs=4k count=16382
2,使用mkswap將/tmp/swap檔案格式化為虛擬記憶體檔案格式:
mkswap /tmp/swap
3,使用swapon啟動/tmp/swap
swapon /tmp/swap
好了,你現在再使用free命令查看一下你的swap分區是不是增大了64M。

3  安裝wine(centos 6.4)

安裝的時候會報錯,說沒有安裝 X software development. 運行下面即可

yum groupinstall "Additional Development" "Development tools" "Desktop Platform Development" "Server Platform Development"

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.