http://www.ubuntu-tw.com/modules/newbb/viewtopic.php?topic_id=20514&viewmode=flat&order=ASC&type=&mode=0&start=0&menumode=2
(要改的東東在 wubi 的 img檔裡,還要做掛 img檔的步驟…)
按ctrl+alt+F1進入文字介面
sudo nano /etc/X11/xorg.conf
看看有沒有內容,沒有的話Ctrl+X跳出
照順序執行:
sudo /etc/init.d/gdm stop
sudo X -configure
sudo mv /root/xorg.conf.new /etc/X11/xorg.conf
sudo nano /etc/X11/xorg.conf
到此xorg.conf已有內容,
找出"Monitor"這一個區塊
加入HorizSync和VertRefresh兩項,
數值請參照螢幕說明書找 水平同步 跟 垂直更新
然後Ctrl+X按y存檔,
最後sudo /etc/X11/gdm start
改完類似這樣:
Section "Monitor"
Identifier "Monitor0"
HorizSync 30.0 - 80.0
VertRefresh 60.0 - 75.0
EndSection
2011年6月12日 星期日
mount wubi disk
http://ubuntuforums.org/showthread.php?t=1564156
Code:If you have problems mounting it, you can fsck it (don't do it if you mounted it already):
http://ubuntuforums.org/showthread.php?t=1037874
Make a new text file:
Save this as mountwubi.sh. Right click this new file, select Permissions tab and put a tick in the Execute box.
Create another text file:
Save this as umountwubi.sh. Right click this new file, select Permissions tab and put a tick in the Execute box.
Double clicking mountwubi.sh and selecting Run in Terminal will mount your old wubi install and open a root nautilus for full access to the files.
The function of umountwubi.sh is pretty obvious
Code:
sudo mount -o loop //root.disk /mnt nautilus /mnt # to browse
Code:
sudo fsck //root.disk
http://ubuntuforums.org/showthread.php?t=1037874
Make a new text file:
Code:
#!/bin/sh sudo mkdir -p /media/WindowsXP echo "Mounting NTFS Partition" sudo mount -t ntfs /dev/sda1 /media/WindowsXP sleep 1 sudo mkdir -p /media/root.disk echo "Mounting Wubi Disk" sudo mount -o loop /media/WindowsXP/ubuntu/disks/root.disk /media/root.disk sleep 1 echo "Done :)" gksu nautilus /media/root.disk exit 0 &
Create another text file:
Code:
#!/bin/sh echo "Unmounting Wubi Disk" sudo umount /media/root.disk sleep 1 echo "Unmounting NTFS Partition" sudo umount /media/WindowsXP sleep 1 echo "Done :)" exit 0 &
Double clicking mountwubi.sh and selecting Run in Terminal will mount your old wubi install and open a root nautilus for full access to the files.
The function of umountwubi.sh is pretty obvious
2011年4月2日 星期六
掛載 wubi 做的 disk
sudo mount -o loop /dev/sda8/root.disk /mnt/123/
因为以前的系统出现了问题,在原来的root.disk里有些重要文件,想拷出来,可是现在挂载不上。
我把root.disk文件放到了F 盘,linux下的编号是sda8
我用命令:sudo mount /dev/sda8/root.disk /mnt /123/ -o loop
挂载失败,提示:/dev/sda8/root.disk 不是目录!
因为以前的系统出现了问题,在原来的root.disk里有些重要文件,想拷出来,可是现在挂载不上。
我把root.disk文件放到了F 盘,linux下的编号是sda8
我用命令:sudo mount /dev/sda8/root.disk /mnt /123/ -o loop
挂载失败,提示:/dev/sda8/root.disk 不是目录!
2011年2月16日 星期三
[盜貼]清理 Debian/Ubuntu 儲存空間
http://people.debian.org.tw/~chihchun/2011/02/11/cleanup-your-debian-ubuntu-disk-with-bleachbit/
du --max-depth=1 -x |sort -n
# apt-get autoclean
# apt-get clean
apt-tools dependency
deborphan -a -n |sort -n
bleachbit (ccleaner for Linux)
雖然新的 Linux 軟體,已經逐漸使用 .local .cache, .config 等目錄設定方式,但是還是有許多軟體會把快取存在 .config 或自己的目錄中,像是 .gnome2, .firefox 等。結果是使用者很難找到快取檔案,若使用 UbuntuOne, Dropbox 等等雲端備份工具,常常連不重要的快取都一起備份了,費時費錢。
上述或指令或工具,看似十分繁複,而且只能管理系統檔案。從 Windows 跳船過來的使用者一定想,是否有類似 CCleaner 的工具,點一點就可以把垃圾檔案清乾淨?
你可以使用 BleachBit (跨平臺),BleachBit 設計了一套相當有彈性的設定描述語言 – CleanerML,支援了許多常見軟體的清除功能,非常類似 CCleaner,軟體會自動偵測可清楚的軟體列表,只消點選要清除的檔案類型,BleachBit 就會自動刪除並計算所騰出空間。沒有 X 圖形界面時,也可以用 bleachbit_cli 指令列。
du --max-depth=1 -x |sort -n
# apt-get autoclean
# apt-get clean
apt-tools dependency
deborphan -a -n |sort -n
bleachbit (ccleaner for Linux)
雖然新的 Linux 軟體,已經逐漸使用 .local .cache, .config 等目錄設定方式,但是還是有許多軟體會把快取存在 .config 或自己的目錄中,像是 .gnome2, .firefox 等。結果是使用者很難找到快取檔案,若使用 UbuntuOne, Dropbox 等等雲端備份工具,常常連不重要的快取都一起備份了,費時費錢。
上述或指令或工具,看似十分繁複,而且只能管理系統檔案。從 Windows 跳船過來的使用者一定想,是否有類似 CCleaner 的工具,點一點就可以把垃圾檔案清乾淨?
你可以使用 BleachBit (跨平臺),BleachBit 設計了一套相當有彈性的設定描述語言 – CleanerML,支援了許多常見軟體的清除功能,非常類似 CCleaner,軟體會自動偵測可清楚的軟體列表,只消點選要清除的檔案類型,BleachBit 就會自動刪除並計算所騰出空間。沒有 X 圖形界面時,也可以用 bleachbit_cli 指令列。
2010年10月26日 星期二
Ubuntu 9.10 固定ip網路設定檔
http://163.23.89.100/~chi/blog/index.php?load=read&id=215
原發問內容為
『最近安裝Ubuntu 9.10,在設定網路(學網固定IP)時,一直無法成功連線,線路確定通的。』
個人答覆如下:
-----------------------------------------------
管理機制有2個
一個是靠interfaces服務為/etc/init.d/networking
通常用於主機
一個靠NetworkManager設定檔在
/etc/NetworkManager/nm-system-settings.conf
通常用於桌面環境
兩個取用一個,不然會相咬
A.使用networking
1.先設定NetworkManager停用
修改 /etc/NetworkManager/nm-system-settings.conf
將 managed=true 改為managed=false
2.如您所提,去修改您的網路設定
/etc/network/interfaces
3.停用NetworkManager
/etc/init.d/network-manager stop
ifdown eth0
4.啟用networking
/etc/init.d/networking restart
5.設定DNS解析
修改 /etc/resolv.conf
加入nameserver IP
B.使用NetworkManager
1.修改設定檔
修改 /etc/NetworkManager/nm-system-settings.conf
將 managed=false 改為managed=true
2.停用networking
/etc/init.d/networking stop
ifdown eth0
3.啟用NetworkManager
/etc/init.d/network-manager start
上述均以root/sudo 執行
這樣應該比書上提的還詳細了
原發問內容為
『最近安裝Ubuntu 9.10,在設定網路(學網固定IP)時,一直無法成功連線,線路確定通的。』
個人答覆如下:
-----------------------------------------------
管理機制有2個
一個是靠interfaces服務為/etc/init.d/networking
通常用於主機
一個靠NetworkManager設定檔在
/etc/NetworkManager/nm-system-settings.conf
通常用於桌面環境
兩個取用一個,不然會相咬
A.使用networking
1.先設定NetworkManager停用
修改 /etc/NetworkManager/nm-system-settings.conf
將 managed=true 改為managed=false
2.如您所提,去修改您的網路設定
/etc/network/interfaces
3.停用NetworkManager
/etc/init.d/network-manager stop
ifdown eth0
4.啟用networking
/etc/init.d/networking restart
5.設定DNS解析
修改 /etc/resolv.conf
加入nameserver IP
B.使用NetworkManager
1.修改設定檔
修改 /etc/NetworkManager/nm-system-settings.conf
將 managed=false 改為managed=true
2.停用networking
/etc/init.d/networking stop
ifdown eth0
3.啟用NetworkManager
/etc/init.d/network-manager start
上述均以root/sudo 執行
這樣應該比書上提的還詳細了
訂閱:
文章 (Atom)