硬盘安装Debian7(Wheezy)以及初级配置
引子:记得本科二年级的时候开始在Redhat-Enterprise-5下折腾嵌入式,然后在开源社区的影响下迷恋fedora和它的激进气质。然后的然后,逐渐觉得数学和算法才是王道,准备在一个机器学习和计算机视觉的科研团队上研究生,师兄推荐使用debian,它的种种优点我就不赘述了。我想debian是稳定性和用户体验的一种折中吧,保守是稳定的代价,但是从用户体验上,debian确实堪称完美。
# NeoSmart NeoGrub Bootloader Configuration File
#
# This is the NeoGrub configuration file, and should be located at C:\NST\menu.lst
# Please see the EasyBCD Documentation for information on how to create/modify entries:
# http://neosmart.net/wiki/display/EBCD/
title install debian7--wheezy!
root (hd0,2)
kernel /vmlinuz root=casper iso-scan/filename=/debian-7.0.0-amd64-DVD-1.iso
initrd /initrd.gz
boot
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# This is an autoconfigured IPv6 interface
#allow-hotplug eth0
#iface eth0 inet6 auto
# Static IP Address
auto eth0
iface eth0 inet static
address 222.25.135.119
netmask 255.255.255.0
gateway 222.25.135.251
dns-search somedomain.org
dns-nameservers 8.8.8.8 202.117.112.3
代码中的auto表示启动中自动被激活,如果不想激活这里可以不设置auto,对于任何一台有TCP/IP网络支持的主机,都有一个IP地址作为本机地址,即127.0.0.1,这个接口的存在为很多程序的运行都提供了便利,是不可或缺的。使用DHCP的网络接口进行设置的时候,往往可以从DHCP服务器获取可用的域名解析(DNS)服务器,用来进行域名解析,对于享受不到DHCP服务的主机,如果想解析域名,需要通过/etc/resolv.conf来指定域名服务器。
nameserver 202.117.112.3
nameserver 8.8.8.8
#deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official amd64 DVD Binary-1 20130504-14:44]/ wheezy contrib main
#deb http://security.debian.org/ wheezy/updates main contrib
#deb-src http://security.debian.org/ wheezy/updates main contrib
# wheezy-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
# deb http://ftp.debian.org/debian/ wheezy-updates main contrib
# deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib
## 163
deb http://mirrors.163.com/debian wheezy main contrib non-free
deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
## china
#deb http://ftp.cn.debian.org/debian/ wheezy main contrib non-free
#deb-src http://ftp.cn.debian.org/debian/ wheezy main contrib non-free
#debian security updates
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
#multimedia
deb http://deb-multimedia.org wheezy main non-free
#virtualbox
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
然后apt-get update, apt-get upgrade对安装的程序包进行升级后,就可以通过APT安装和卸载软件工具了。
(2)语言和输入法
我的系统是在中文环境下安装的,有中文文字包,将系统改成英文可以选择/etc/default/locale修改为LANG=en_US.UTF-8 LANGUAGE="en_US:en" 然后重新启动Gnome选择update即可。$dpkg-reconfigure locales可以选择系统的基础环境语言,$locale -a 可以观察修改结果。但是这样造成一个问题,即在Console和gedit打开文本发现都是乱码,我们可以输入命令gsettings set org.gnome.gedit.preferences.encodings auto-detected "['GB18030', 'UTF-8', 'GB2312', 'GBK', 'BIG5', 'CURRENT', 'UTF-16']"
也可以通过图形界面,运行$dconf-editor展开/org/gnome/gedit/preference/encodings在auto-detected里面current前面加上GB18030,GB2312即可。可以通过以下方式添加拼音输入法,个人推荐ibus,很好用!
$apt-get install ibus ibus-cluster ibus-gtk ibus-gtk3 ibus-qt4
$apt-get install ibus-pinyin
为了可以使得启动时ibus自动启动,可以在$HOME/.bashrc中添加
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
然后在preference中设置以下个人喜好就可以了,具体安装字体包,影音,压缩工具和文档工具安装如下
#apt-get install ttf-arphic-gbsn00lp
#apt-get install ttf-arphic-gkai00mp
#apt-get install ttf-wqy-zenhei(安装字体)
#apt-get install ibus ibus-gtk ibus-pinyin(安装输入法)
#apt-get install xfonts-intl-chinese wqy*
#apt-get install chromium-browser chromium-browser-l10n
#apt-get install flashplugin-nonfree
#apt-get install ca-certificates libcurl3-gnutls
#apt-get install mplayer smplayer
#apt-get install unrar
#apt-get install unzip
#apt-get install p7zip-full
#apt-get install chmsee
硬盘安装Debian7(Wheezy)以及初级配置相关推荐
- Win7下硬盘安装Ubuntu 12.04.4 LTS双系统
Win7下硬盘安装Ubuntu 12.04.4 LTS双系统 71158992014年4月13日 Heepo银牌会员 本帖最后由 Heepo 于 2014-04-12 18:31 编辑 小菜上次在论坛 ...
- linux debian硬盘安装,硬盘安装linux debian如何配置grub文件
本文来自 www.020fix.com 自己手动源码安装gtk,可能改变了一些依赖包,从而导致系统自动升级后桌面系统Natilus出现了一点小问题.后来越弄越糟,直到整个桌面崩溃.于是乎,改用硬盘安装 ...
- 64位 Fedora 11 硬盘安装 配置全解
64位 Fedora 11 硬盘安装 配置全解 转贴: http://www.ubuntuchina.com/viewthread.php?tid=7428&extra=page%3D1 硬盘 ...
- ubuntu 7.04 硬盘安装与安装后的常用软件的安装与配置 [zz]
硬盘安装先下载光盘映像 然后再下载引导文件 注意千万不能用光盘自带的vmlinuz和initrd.gz 网上google一下就可以找到可以硬盘安装的这两个文件 下面安装就和以前的一样了也可以去goo ...
- 新装固态硬盘SSD,在安装WIN10,显示一直请稍后及Windows安装程序无法将Windows配置为此计算机的解决方法(网上都是胡诌)
(破博客限制图片最大为2M ,无奈上传不了图片) 显示-Windows安装程序无法将Windows配置为此计算机的硬件运行 shift+F10进入cmd输入 cd oobe 再输入 msoobe 之后 ...
- DS918二合一硬盘安装,配置Oenwrt做软路由
序言: 硬盘安装建议选二合一的,要不然nas得插U盘进行引导,不插U盘不能启动,很麻烦. 引导文件还得和群晖系统一致,有些教程只给系统是什么意思,还得自己找引导文件,还不一定有和对 而且还需要U盘的V ...
- 双硬盘安装双系统,配置显卡驱动,安装cuda,pycuda
本文主要记录了在双硬盘笔记本电脑自带的Windows10之外安装ubuntu18.04,并安装NVIDIA显卡驱动与cuda 和 pycuda 的步骤和注意事项. 软硬件清单: 128G SSD + ...
- u盘装puppy linux,U盘及硬盘安装、配置、中文化 Puppy linux 4.00
之前由我写的<将 Puppy Linux 4.00 安装在U盘里 打造随身系统>一文中的安装法就是将Puppy Linux 4.00的ISO 镜像文件刻录到光盘上再将 Puppy Linu ...
- 红旗linux 装xp,XP下硬盘安装红旗LINUX
XP下硬盘安装红旗LINUX---转自红旗社区2008-12-02 23:41拒绝黑屏-红旗Linux硬盘安装简单教程 作者: topeak 初级会员(IPLogged) 日期: 2008-10-23 ...
最新文章
- BIEE建模参考规范
- 老男孩python全栈开发视频教程_老男孩Python全栈开发(92天全)视频教程 自学笔记16...
- java.lang包含_原因:java.lang.IllegalArgumentException:包含(1)...
- 解决Vue跳转到当前路由报错问题
- python format 冒号_python之格式化输出
- PostgreSQL的clog—从事务回滚速度谈起
- Linux下 JNI的使用
- linux系统怎么访问u盘文件系统,linux如何挂载U盘和文件系统
- 450g带盖吐司配方_【配方分享】预祝冬安 明石克彦老师的提子吐司
- hannoi塔java程序_基于Java实现的Hannoi汉诺塔自动演示程序
- optuna 自动化调参利器
- [转]Javascript 调用MSAgent(Desc:网页中出现魔法巫师)
- Windows下Node_OneBot配置方法
- xvideos打开显示服务器出错,为什么打开xvideo显示网页
- 线性规划问题的目标函数灵敏度分析
- python中delay__python delay函数
- Supervisor进程管理详解
- 丹佛大学计算机专业,丹佛大学计算机工程排名第81(2018年TFE美国排名)
- 在线计算机表格制作,excel表格制作,教您excel怎么制作表格
- 12306中/otn/HttpZF/logdevice?algID 与 /otn/HttpZF/GetJS 的关系