June 29th, 2010 • 14:06
Ubuntu Installing Note
- 首先保证两个机器位于同一网段。
- 下载必须的文件:http://archive.ubuntu.com/ubuntu/dists/maverick/main/installer-i386/current/images/netboot/ 中的 mini.iso,netboot.tar.gz,pxelinux.0, pxelinux.cfg 文件夹及其下的 default 文件。解压 netboot.tar.gz,注意不要给 netboot.tar.gz 中的 pxelinux.0 和 pxelinux.cfg 覆盖下载回来的同名文件。这里是下载 Ubuntu Maverick,时间不同了可能选择的版本也不同了。
- 下载 TFTPD32 的最新版本:http://tftpd32.jounin.net/tftpd32.html。
- TFTPD32 与前述下载的文件必须存于同一文件夹中。打开后点击 DHCP Server 的选项卡,IP Pool starting address 填入通过 netboot 安装 ubuntu 的机器(Target PC)的 IP,Boot File 填 pxelinux.0,WING/DNS Server、Default Router、Mask 按照实际情况填写,保存。
- 启动 Target PC,注意打开并设定网络启动,然后看看 TFTPD32 中显示的机器 MAC 地址是否 Target PC 的 MAC 地址。多看 Log viewer 中的信息。在文件复制完毕后,在 Target PC 上开始安装 Ubuntu。
- 务必使用 LVM。这次安装的 500GB 硬盘分区方案:
- /boot – 250M, ext2(还会选择其他 filesystem 么?)
- /swap – 3G
- / – 30G, btrfs
- /home – 200G, /ext4
- /var – 分配所有的剩余空间,/ext4
- 修改 /etc/apt/sources.list,
sudo apt-get update && sudo apt-get upgrade sudo apt-get install openssh-server. See also: Top 20 OpenSSH Server Best Security Practicessudo apt-get install mysql-server apache2 libapache2-mod-php5 php5 php5-cli php5-mcrypt php5-curl php5-gd php5-mysql php5-sqlite php-pearsudo apt-get install dnsmasq sysstat
No Comment