切換
舊版
前往
大廳
主題

Ubuntu 資料整理

皓月當空 | 2009-11-27 17:02:00 | 巴幣 0 | 人氣 696

使用root權限:
 
預設root帳號是關閉的
若要使用root權限
以安裝時帳號登入
在終端機輸入sudo -i
打入密碼OK
-------------------------------------------------------------------------------------------------------------------
VirtualBox裡的Ubuntu系統使用分享資料夾:
 
在ubuntu上安裝VirtualBox Guest Addition(ubuntu才會認得vboxsf)
掛載VirtualBox安裝的資料夾中的VBoxGuestAdditions.iso
進入ubuntu後以root帳號執行sudo /cdrom/VBoxLinuxAdditions-x86.run
跑完後重開機
 
VirtualBox設好分享資料夾後
在ubuntu中建立一個用來共用的資料夾
終端機執行sudo mount -t vboxsf share /home/username/share
前面的share是指在Host OS開出分享的資料夾
後面的/home/username/share是指在ubuntu中mount上的資料夾
 
自動掛載
在/etc/fstab中加下一行
share /home/username/share vboxsf defaults 0 0
可是我試不成功=__=
-------------------------------------------------------------------------------------------------------------------
使用 Times New Roman及標楷體:
 
將windows中fonts資料夾中的times.ttf與kaiu.ttf複製到/usr/share/fonts/truetype底下
終端機執行sudo fc-cache -f -v
重登即可
-------------------------------------------------------------------------------------------------------------------
啟動網路:sudo /etc/init.d/networking start
關閉網路:sudo /etc/init.d/networking stop
重啟網路:sudo /etc/init.d/networking restart
 
編輯網路設定:gedit /etc/network/interfaces
 
一般DHCP設定:
auto eth0
iface eth0 inet dhcp

Static IP 設定:
auto eth0
iface eth0 inet static
address 192.168.*.*
netmask 255.255.255.0
gateway 192.168.*.*

創作回應

LOSTONE
掛載不成功應該是
分享的資料夾 share 與
掛載的資料夾 /home/username/share 同名的緣故
改個名子或換成大寫字母試試看
2009-12-27 21:58:45
皓月當空
後來很久沒用了
老闆嫌麻煩就換了WIN
謝謝你的建議
改天有空試試^^
2010-01-14 18:04:55

更多創作