【Python開發實戰】Windows7+VirtualBox+Ubuntu環境配置,virtualboxubuntu

來源:互聯網
上載者:User

【Python開發實戰】Windows7+VirtualBox+Ubuntu環境配置,virtualboxubuntu

1. VirtualBox的安裝

參考常規安裝方式即可。

VirtualBox 4.3.14 for Windows hosts:http://download.virtualbox.org/virtualbox/4.3.14/VirtualBox-4.3.14-95030-Win.exe

 

2. Ubuntu server的安裝

ubuntu-14.04-server-amd64(http://www.ubuntu.com/download/server)

  • 配置中文環境

安裝過程,最初選擇“English”,安裝完畢後配置中文。避免VirtualBox終端中文顯示異常。

sudo apt-get install language-pack-zh-hans;
sudo local-gen zh_CN.GBK;
sudo dpkg-reconfigure locales;
export LANG="zh_CN.UTF-8";
export LANGUAGE="zh_CN:zh:en_US:en"

  • 安裝Open SSH Server


3. 備份虛擬機器

 

4. 使用Putty建立宿主機與虛擬客機之間串連。

SSH用來建立伺服器之間的串連。
檢查SSH守護線程:ps aux |grep sshd
如果出現“/usr/bin/sshd -D”,說明正常啟動。

putty是ssh的一個用戶端。在VirtualBox需要配置串連連接埠,這裡將HostOS的2222連接埠映射到Guest OS上的SSH連接埠(預設22)。
“設定”—>“網路”—>“網卡1”—>“連接埠映射”。

 

 

5. 宿主機與虛擬客機之間共用資料夾

 



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.