Windows的PHP又出問題了,所以弄了一個VMWare來跑Debian,並且打算作為開發環境。
VMWare和Debian ISO
我使用的是VMWare Workstation 12,可以直接讀出debian的ISO。系統ISO在中科大的鏡像https://mirrors.ustc.edu.cn/可以下載到。
安裝Debian
直接新建虛擬機器,掛載ISO,使用Graphical install安裝即可。
VMWare設置中使用NAT網路橋接。
不需要使用網路鏡像。
初始化
安裝中文字體
apt-get install ttf-wqy-*
更改默認源到中科大源
vi /etc/apt/sources.list
添加或者替換為
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
詳見https://lug.ustc.edu.cn/wiki/mirrors/help/debian
更新軟體,安裝常用軟體
apt-get update
apt-get upgrade
apt-get install vnstat vim git curl sudo #...此處隨意