日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

mac VirtualBox安装旧版ubuntu

發布時間:2024/1/1 Ubuntu 46 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mac VirtualBox安装旧版ubuntu 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1. 下載Ubuntu磁盤映像

查看Ubuntu版本,按linux內核版本匹配上(這里是ubuntu 10.04版),下載 ubuntu-10.04-desktop-amd64.iso,VirtualBox安裝,建議硬盤空間至少20G以上。下載鏈接:Index of /releases

安裝方法,參考:在Mac上 使用virtualbox虛擬機安裝ubuntu中的前兩步,由于實驗環境問題,這里需要使用上述ubuntu版本,與參考鏈接中的略有差別。

2.?Ubuntu和mac共享目錄

a. mac配置共享目錄

?

b. ubuntu安裝VBoxGuestAdditions.iso(在VirtualBox app目錄下有,可以find查一下),如:在終端中輸入 find /Applications -name VBoxGuestAdditions.iso

?

c. 進入ubuntu執行VBoxGuestAddition.run,具體操作可以參考【Virtualbox虛擬機Ubuntu系統安裝VBoxGuestAdditions.iso增強包解決辦法】_herongwei 的 BLOG-CSDN博客

d. ubuntu命令行支持mount命令掛載

sudo mount -t vboxsf shared_dir /shared_directory

3. ubuntu 安裝相應程序

a. 源整理

1)編輯source.list文件

sudo gedit /etc/apt/sources.list

2)替換source.list內容如下

## 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 multiverse

3)更新源

sudo apt-get update

b gcc源碼編譯

1)安裝基礎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壓縮包的時候,不能解壓到共享文件夾,需要解壓到本地文件夾才可以)

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 install

4) 安裝jdk

sudo apt-get install default-jdk

總結

以上是生活随笔為你收集整理的mac VirtualBox安装旧版ubuntu的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。