mac VirtualBox安装旧版ubuntu
1. 下載Ubuntu磁盤(pán)映像
查看Ubuntu版本,按linux內(nèi)核版本匹配上(這里是ubuntu 10.04版),下載 ubuntu-10.04-desktop-amd64.iso,VirtualBox安裝,建議硬盤(pán)空間至少20G以上。下載鏈接:Index of /releases
安裝方法,參考:在Mac上 使用virtualbox虛擬機(jī)安裝ubuntu中的前兩步,由于實(shí)驗(yàn)環(huán)境問(wèn)題,這里需要使用上述ubuntu版本,與參考鏈接中的略有差別。
2.?Ubuntu和mac共享目錄
a. mac配置共享目錄
?
b. ubuntu安裝VBoxGuestAdditions.iso(在VirtualBox app目錄下有,可以find查一下),如:在終端中輸入 find /Applications -name VBoxGuestAdditions.iso
?
c. 進(jìn)入ubuntu執(zhí)行VBoxGuestAddition.run,具體操作可以參考【Virtualbox虛擬機(jī)Ubuntu系統(tǒng)安裝VBoxGuestAdditions.iso增強(qiáng)包解決辦法】_herongwei 的 BLOG-CSDN博客
d. ubuntu命令行支持mount命令掛載
sudo mount -t vboxsf shared_dir /shared_directory3. ubuntu 安裝相應(yīng)程序
a. 源整理
1)編輯source.list文件
sudo gedit /etc/apt/sources.list2)替換source.list內(nèi)容如下
## Major bug fix updates produced after the final release of the ## distribution. deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted deb-src http://old-releases.ubuntu.com/ubuntu/ maverick main restricted deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://old-releases.ubuntu.com/ubuntu/ maverick universe deb-src http://old-releases.ubuntu.com/ubuntu/ maverick universe deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://old-releases.ubuntu.com/ubuntu/ maverick multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ maverick multiverse deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse3)更新源
sudo apt-get updateb gcc源碼編譯
1)安裝基礎(chǔ)g++
sudo apt-get install g++2)下載 gcc4.9.0源碼 (gcc-4.9.0.tar.gz)
Index of /gnu/gcc/gcc-4.9.0
3)源碼編譯(注意解壓gcc壓縮包的時(shí)候,不能解壓到共享文件夾,需要解壓到本地文件夾才可以)
tar xvf gcc-4.9.0.tar.gz cd gcc-4.9.0 ./contrib/download_prerequisites ./configure --prefix=/usr/local/gcc-4.9.0 --enable-threads=posix --disable-checking --disable-multilib make make install4) 安裝jdk
sudo apt-get install default-jdk總結(jié)
以上是生活随笔為你收集整理的mac VirtualBox安装旧版ubuntu的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 炎黄子孙解释
- 下一篇: OpenPdf组件替换Itext方案