VirtualBox 装配 Debian 6.0.1 (Squeeze)
VirtualBox 安装 Debian 6.0.1 (Squeeze)
VirtualBox虚拟机安装:
至少40G,动态扩展硬盘
分区,整个盘做一个分区
用ISO安装,暂时避免用网站镜像更新
安装英文版
Debian 6.01 Squeeze source list
$su
$cp /etc/apt/sources.list /etc/apt/sources.list.old
$vi /etc/apt/source.list
deb http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
解决Debian Gnome中文乱码
config Local
$aptitude install locales
$dpkg-reconfigure locales
空格选择
en_US.UTF-8 UTF-8
zh_CN.GBK GBK
zh_CN.GB2312
zh_CN.UTF-8 UTF-8
$vi /etc/default/locale
LANG=en_US.UTF-8
$reboot
Use Static IP
$vi /etc/network/interfaces
# Theloopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
#设置eth0为固定IP
address 192.168.1.101
#ip地址
netmask 255.255.255.0
#子网掩码
gateway 192.168.1.1
#网关( 重要)
Use DHCP
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
DNS
$vim /etc/resolv.conf
nameserver 192.168.1.1 #因为我这里网关就是DNS服务器所以是相同的
restart Network
$/etc/init.d/networking restart #重启
$ping baidu.com
$df -h #查看磁盘空间 G
$df -m #查看磁盘空间 MB
Install Virtual Box addtions on Debian
$su
$cd /media/cdrom0/
$sh ./VBoxLinuxAdditions-x86.run
Debian 为xx添加 sudo权限
$su
$chmod u+w /etc/sudoers
$vi /etc/sudoers
xx ALL=(ALL) All
$chmod u-w /etc/sudoers
Debian install
vim/sudo/git-core
Debian 修改主机名
$sudo vim /etc/hostname
$sudo /etc/init.d/hostname.sh start
tftpd 方便开发板,下载数据
参考:
https://wangyan.org/blog/debian5-install-config-notes.html
http://www.hostloc.com/thread-46447-1-1.html
http://richardma.yo2.cn/articles/debian%E4%B8%AD%E4%BF%AE%E6%94%B9%E4%B8%BB%E6%9C%BA%E5%90%8D%EF%BC%88hostname%EF%BC%89.html
VirtualBox虚拟机安装:
至少40G,动态扩展硬盘
分区,整个盘做一个分区
用ISO安装,暂时避免用网站镜像更新
安装英文版
Debian 6.01 Squeeze source list
$su
$cp /etc/apt/sources.list /etc/apt/sources.list.old
$vi /etc/apt/source.list
deb http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian squeeze-proposed-updates main contrib non-free
解决Debian Gnome中文乱码
config Local
$aptitude install locales
$dpkg-reconfigure locales
空格选择
en_US.UTF-8 UTF-8
zh_CN.GBK GBK
zh_CN.GB2312
zh_CN.UTF-8 UTF-8
$vi /etc/default/locale
LANG=en_US.UTF-8
$reboot
Use Static IP
$vi /etc/network/interfaces
# Theloopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
#设置eth0为固定IP
address 192.168.1.101
#ip地址
netmask 255.255.255.0
#子网掩码
gateway 192.168.1.1
#网关( 重要)
Use DHCP
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
DNS
$vim /etc/resolv.conf
nameserver 192.168.1.1 #因为我这里网关就是DNS服务器所以是相同的
restart Network
$/etc/init.d/networking restart #重启
$ping baidu.com
$df -h #查看磁盘空间 G
$df -m #查看磁盘空间 MB
Install Virtual Box addtions on Debian
$su
$cd /media/cdrom0/
$sh ./VBoxLinuxAdditions-x86.run
Debian 为xx添加 sudo权限
$su
$chmod u+w /etc/sudoers
$vi /etc/sudoers
xx ALL=(ALL) All
$chmod u-w /etc/sudoers
Debian install
vim/sudo/git-core
Debian 修改主机名
$sudo vim /etc/hostname
$sudo /etc/init.d/hostname.sh start
tftpd 方便开发板,下载数据
参考:
https://wangyan.org/blog/debian5-install-config-notes.html
http://www.hostloc.com/thread-46447-1-1.html
http://richardma.yo2.cn/articles/debian%E4%B8%AD%E4%BF%AE%E6%94%B9%E4%B8%BB%E6%9C%BA%E5%90%8D%EF%BC%88hostname%EF%BC%89.html