通过U盘装debian 笔记

一,装debian

1,获取debian iso

Index of /cdimage/unofficial/non-free/cd-including-firmware/11.6.0-live+nonfree/amd64/iso-hybrid

2,制作启动光盘,可以格式化U盘成fat32类型

a,Linux 执行 mkfs -t vfat /dev/sdb1

/dev/sdb1为u盘在linux系统的地址,可以通过fdisk -l查询到

b,sudo dd if=debian.iso of=/dev/sdb1 bs=16M status=progress oflag=sync

这个可以参考Frequently Asked Questions about Debian CD/DVD/USB images

3,设置从u盘启动,插U盘重启电脑进行安装。

二,配置debian

安装和设置一些常用的工具。

使用sudo

1、安装sudo

apt-get install sudo

2、修改 /etc/sudoers 文件属性为可写

chmod +w /etc/sudoers

3、编辑 /etc/sudoers ,添加

user ALL=(ALL) ALL

4、修改/etc/sudoers 文件属性为只读

chmod -w /etc/sudoers

配置tab补全

1,apt-get install bash-completion

2,编辑~/.bashrc,添加

if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

你可能感兴趣的:(玩转linux,debian,linux,运维)