This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget http://old-releases.ubuntu.com/releases/9.10/ubuntu-9.10-server-i386.iso | |
$ mkdir /media/cdrom0 | |
$ sudo mount -o loop /path/to/alternate-cd.iso /media/cdrom0 | |
$ cd /media/cdrom0 | |
$ sudo ./cdromupgrade --frontend=DistUpgradeViewText | |
# 注意事项: | |
# 下面问题一定要回答:n | |
# Include latest updates from the Internet? | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ lsb_release -a | |
No LSB modules are available. | |
Distributor ID:Ubuntu | |
Description:Ubuntu 9.04 | |
Release:9.04 | |
Codename:jaunty | |
$ cat /etc/lsb-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo vim /etc/apt/sources.list | |
# /etc/apt/sources.list | |
# Required | |
deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted universe multiverse | |
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse | |
deb http://old-releases.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse | |
$ sudo aptitude update && sudo aptitude safe-upgrade | |
$ sudo do-release-upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install update-manager-core | |
$ sudo vim /etc/update-manager/release-upgrades | |
# /etc/update-manager/release-upgrades | |
set Prompt=lts | |
$ do-release-upgrade | |
参考资料: | |
https://help.ubuntu.com/community/PreciseUpgrades |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install update-manager-core | |
$ sudo vim /etc/update-manager/release-upgrades | |
# /etc/update-manager/release-upgrades | |
set Prompt=normal | |
$ do-release-upgrade | |
参考资料: | |
https://help.ubuntu.com/community/QuantalUpgrades |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install update-manager-core | |
$ sudo do-release-upgrade | |
参考资料: | |
https://help.ubuntu.com/community/SaucyUpgrades |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install update-manager-core | |
$ sudo do-release-upgrade | |
参考资料: | |
https://help.ubuntu.com/community/TrustyUpgrades |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd ~ | |
$ wget http://curl.haxx.se/ca/cacert.pem | |
$ vim ~/.profile | |
# ... | |
export CURL_CA_BUNDLE="~/cacert.pem" | |
$ . ~/.profile | |
参考资料 | |
http://curl.haxx.se/docs/sslcerts.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export VAGRANT_HOME='~/vagrant' | |
cd $VAGRANT_HOME | |
# install VirtualBox 4.3.12 on Mac OSX | |
wget http://download.virtualbox.org/virtualbox/4.3.12/VirtualBox-4.3.12-93733-OSX.dmg | |
# install Vagrant 1.6.2 on Mac OSX | |
https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.2.dmg | |
# install Ubuntu OS on VirtualBox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $VAGRANT_HOME # exists, the file Vagrantfile | |
vagrant help | |
vagrant up # 启动Ubuntu系统 | |
vagrant ssh # 进入Ubuntu系统 | |
pwd # /home/vagrant | |
cd /vagrant # 相当于本地目录$VAGRANT_HOME | |
exit # 从Ubuntu系统返回本地 | |
vagrant suspend # 关闭Ubuntu系统 |
OlderNewer