文章目录
一.debian介绍
1.特点
1.Debian 是精简的 Linux 发行版,有着干净的作业环境。
2.安装步骤简易有效,大部分情况下只要<Enter>、<Enter>一直按下去便可以顺利安装。
3.拥有方便高效的软体包管理程序和 deb 软体包,可以让用户容易的查找、安装、移除、更新程序,或系统昇级。
4.健全的软件管理制度,包括了 Bug 汇报、包维护人等制度,让 Debian 所收集的软件品质在其它的 Linux 发行包之上。
5.拥有庞大的包库,令用户只需通过其自身所带的软件管理系统便可下载并安装包,不必再在网络上查找。
6.包库分类清楚,用户可以明确地选择安装自由软件、半自由软件或闭源软件。
2. debian 和 ubnutu 的关系
Ubuntu 与 Debian 使用相同的 deb 软件包格式,可以安装绝大多数为 Debian 编译的软件包,虽然不能保证完全兼容,但大多数情况是
3. debian 和 Centos 的关系
没什么关系.Debian 名字比较难念正确.
Debian 的版本命名更好玩一些,以电影<玩具总动员里>的人物命令
二.debian的安装
1.新建虚拟机
2.进入安装界面
3.配置网络
4.设置用户名和密码
5.磁盘分区
6.配置软件包管理器
问题及反思
1.解决root用户没法连接xshell的问题
systemctl restart sshd
2.在安装的时候不配置网络速度会更快,
1)中途退出安装重新安装的方法
按F10,再次进入安装界面,配置网络那里选择”现在不进行网络配置“
2)进行网卡配置
vim /etc/network/interfaces
#The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.100
netmask 255.255.255.0
gateway 10.0.0.2
ifup eth0
3)配置dns
vim /etc/resolv.conf
search unassigned-domain
nameserver 10.0.0.2
4)连接网卡
5)启动网络
/etc/init.d/networking restart
三.debian配置
1.更新软件源
https://mirrors.tuna.tsinghua.edu.cn/help/debian/
root@debian:~# vi /etc/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security jessie/updates main contrib non-free
root@debian:~# apt install apt-transport-https
root@debian:~# apt-get update
2.安装常用软件
root@debian:~# apt-get install vim lsof tree -y
3.使用ll命令
root@debian:~# vim .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022
**网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。**
**[需要这份系统化的资料的朋友,可以点击这里获取!](https://bbs.csdn.net/topics/618542503)**
**一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**