Tag: virtualbox
-
VirtualBox在Ubuntu下無法安裝Guest Additions
剛剛在VirtualBox 4.2.4裝了Ubuntu 12.10,安裝完畢後要安裝Guest Additions卻發生錯誤,按照console的提示把訊息印出來 /var/log/vboxadd-install.log 錯誤大概是這樣的: Error: unable to find the sources of your current Linux kernel. Google後發現這篇討論串。 然後發現先安裝下列的套件然後再安裝Guest Additions,就可以了! sudo apt-get install dkms build-essential linux-headers-generic
-
解決VirtualBox的共用資料夾無法建立軟連結
我的電腦我習慣上桌面還是用Windows,但是開Server下指令還是Linux系統方便多了,所以開發時需要執行東西我會用VirtualBox開Ubuntu來進行。 VirtualBox有個方便的功能稱為共用資料夾(shared folder),因此我習慣將在Windows的workspace利用共用資料夾分享到Ubuntu (VM)裡面,然後由Ubuntu來開server。 但是最近開始玩Node.js發現,VirtualBox共用資料夾安裝是無法增加軟連結(Symbolic link)。因為安裝npm package的時候經常需要增加軟連結的權限,因此安裝的最後就會出現錯誤訊息! npm ERR! Error: EROFS, symlink '../express/bin/express' npm ERR! If you need help, you may report this log at: npm ERR! npm ERR! or email it to: npm ERR! npm ERR! System Linux 2.6.38-13-generic npm ERR! command "/PATH-To-NODE/bin/node" "/PATH-To-NODE/bin/npm" "install" "express" npm ERR! cwd /media/sf_SHARED_FOLDER/test npm ERR! node -v…