3、debian8安装和处理

 本博文仅作本人操作过程的记录,留作备忘。自强不息 QQ1222698

 

本文写于2016年1月10日09:35:45,首先向debian的创始人Ian Murdock表示沉痛惦念!

http://baike.baidu.com/link?url=JYLrVum3Xsck_-cjV3cpnl05_icjIpI3EbEDm5CSjpvpBE9To3d9_HbAnszinbFA_46ip9lCOQJt91gfsyc-qulJjzfBAS3TesUh5wTuuAa5XgWGtbHbfBerFGLe4W0lFDFkd2fX3l-xW9pHz1tdyq

Murdock 他在1993年于普渡大学攻读计算机科学学士课程期间写作Debian的定义文档《Debian宣言》。 他曾经受聘于太阳计算机系统公司(Sun Microsystems),在Sun被Oracle收购后辞职。他在印第安纳波利斯的ExactTarget公司担任平台和开发者社区的副总裁。[1]  美国时间 2015 年 12月 28日晚,著名 Linux发行版 DebianGNU/Linux 的创始人 Ian Murdock被发现在旧金山的家中离世,目前触发死亡的原因未知,包括 Debian社群在内的 全世界开源社区都陷入了巨大的悲痛之中。[2]

1、下载debian8.2(Jessie)

地址:https://www.debian.org/CD/http-ftp/

我选择的是i386版本:http://cdimage.debian.org/debian-cd/8.2.0/i386/iso-dvd/

地址:http://cdimage.debian.org/debian-cd/8.2.0/i386/iso-dvd/debian-8.2.0-i386-DVD-1.iso

只下载这一个光盘就行,其他的,可以用网络下载安装。

2、用vm安装debian

由于我的笔记本仅有8g内存,我就不使用庞大的g和k桌面了,使用xface桌面更加轻便。安装过程中不扫描其他cd,不使用网络下载,只安装这一个光盘,这样安装的速度快,半小时就搞定了。

3、配置网络,保证联网,我的vm使用直接桥接模式。

4、修改软件源

向网易、搜狐、阿里等国内开源公司致敬。

http://mirrors.163.com/

http://mirrors.aliyun.com/

http://mirrors.sohu.com

我使用网易的。

以Jessie(即debian8.2)为例, 编辑/etc/apt/sources.list文件, 在文件最前面添加以下条目(操作前请做好相应备份)  

deb http://mirrors.163.com/debian/ jessie main non-free contrib

deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib

deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib

deb-src http://mirrors.163.com/debian/ jessie main non-free contrib

deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib

deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib

deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib

deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib

操作步骤:

su

输入密码

mousepad /etc/apt/sources.list

删除所有,或者全部#注销掉,保存

更新软件源,打开新立得包管理器,编辑,重新载入软件包信息,就会把软件源更新一遍。

更新缺少的系统文件,

apt-get update#刷新系统

apt-get dist-upgrade#安装更新

5、安装必备软件。

打开新立得包管理器,选中autoconfg++,gdb,sudo, linux-headers-3.16.0.4-686-ape等,应用。

6、设置sudo免密码操作,/etc/sudoers这个文件比较特殊,必须在440模式下才能使用。

su

密码

chmod 777 /etc/sudoers

mousepad /etc/sudoers

在最下面添加一行,yt ALL=(ALL:ALL) NOPASSWD:ALL

保存后,chmod 440 /etc/sudoers

7、安装vmtools

 a、把vm11下的linux.iso导入光盘里,在debian下打开光盘,复制vmwaretools-9.6.0-1294478.tar.gz到/home/yt/tmp/下。

 b、解压安装,

tar zxvf vmwaretools-9.6.0-1294478.tar.gz

cd vmware-tools-distrib

sudo ./vmware-install.pl

一个劲的按回车,就安装完毕了,重启后,vm就可以全屏了,也可以在主机宿机之间复制了。

8、调整工具栏,上面的工具栏右键,面板,面板首选项

删除面板2,调整面板1,项目

添加项目,2个分隔符,6个启动器,移动到应用程序菜单下面。修改启动器的内容。

终端模拟器  使用命令行 exo-open --launch TerminalEmulator

文本 文本 mousepad %F

文件管理器 浏览文件系统 exo-open --launch FileManager %u

终端模拟器  使用命令行 sudo exo-open --launch TerminalEmulator

文本 文本 sudo mousepad %F

文件管理器 浏览文件系统 sudo exo-open --launch FileManager %u

测试一下,点击上面的按钮,会不会出现root权限的程序。

9、输入法

先安装基本的环境,sudo apt-get install fcitx fcitx-pinyin fcitx-table fcitx-frontend-qt5

下载搜狗输入法,http://pinyin.sogou.com/linux/?r=pinyin

安装 sudo dpkg -i sogoupinyin_2.0.0.0068_i386.deb

10、安装tftp服务,tftp-hpa是client,tftpd-hpa是server

sudo apt-get install tftp-hpa tftpd-hpa
sudo vim /etc/default/tftpd-hpa

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS=" -l -c -s"

sudo chmod 777 /srv/tftp

sudo service tftpd-hpa restart
ps -ef |grep tftp能看到tftpd-hpa进程

测试
tftp 192.168.0.9 get 1.txt

tftp 192.168.0.9 put 1.txt

11、安装NFS,sudo apt-get install nfs-kernel-server nfs-common

修改配置,sudo mousepad /etc/exports

最下面添加,/srv/nfs *(rw,sync,no_root_squash)

修改权限

sudo chmod -R 777 /srv/nfs
sudo chown -R nobody /srv/nfs

停止,sudo /etc/init.d/nfs-kernel-server stop

启动,sudo /etc/init.d/nfs-kernel-server start

在其他电脑上测试, mount –t nfs 192.168.0.9:/srv/nfs /yt/nfs –o nolock

 

posted on 2015-12-23 14:40  不回嵩山  阅读(747)  评论(0编辑  收藏  举报

导航