Debian 8安装、配置

2023-05-16

win10下双系统安装Debian 8

1. 安装Debian 8

  • 首先在Debian官网https://www.debian.org/CD/上下载网络安装CD或者完整DVD镜像,DVD镜像只需DVD-1即可。
  • 下载好镜像后做成U盘启动盘,从U盘启动开机。
  • 在引导界面选择Graphical install(图形化安装)或者直接install,进入安装过程。

2.解决源配置问题

  • 对于安装、更新软件出现unable to locate package时的问题,配置apt-get源来解决
    root@debian:~$ cp /etc/apt/sources.list /etc/apt/sources.listbak #备份原有配置文件
    root@debian:~$ vi /etc/apt/sources.list #编辑
  • 注释掉本地光盘源这两行(“#”用来注释):
    deb cdrom:[Debian GNU/Linux 8.7.1 Jessie - Official i386 DVD Binary-1 20170116-10:09]/ jessie contrib main
    deb cdrom:[Debian GNU/Linux 8.7.1 Jessie - Official i386 DVD Binary-1 20170116-10:09]/ jessie contrib main

  • 添加以下代码:

deb http://mirrors.163.com/debian/ squeeze main non-free contrib 
deb http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free 
deb http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free 
deb-src http://mirrors.163.com/debian/ squeeze main non-free contrib 
deb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free 
deb-src http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free 
deb http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib 
deb http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main contrib non-free 
deb http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-free 
deb-src http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib 
deb-src http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main contrib non-free 
deb-src http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-free

root@debian:~$ apt-get update #更新源
root@debian:~$ apt-get upgrade #更新系统

  • 再次安装、更新软件就不会出现上述问题

3.安装、配置sudo

  • root用户下安装sudo
    root@debian:~$ apt-get install sudo
  • 使用sudo时出现错误Error: xxx is not in the sudoers file. This incident will be reported.的解决办法,配置sudoers,给用户添加sudo权限。
    root@debian:~$ vi /etc/sudoers
  • 找到一 行:”root ALL=(ALL) ALL”在下面一行插入”xxx ALL=(ALL) ALL”(xxx是你的用户名),然后保存退出。
  • 再次使用sudo,就不会出现这种错误

4.解决vim在insert模式下面用backspace键无法删除的问题

  • 配置vimrc.tiny 文件
    root@debian:~$ vi /etc/vim/vimrc.tiny
  • 将set compatible 设置成set nocompatible ,添加 set backspace=2

5.安装无线网卡驱动

  1. 因为安装Debian 8的时候,不能自动识别和安装无线网卡驱动,所以自己安装无线网卡的驱动。
  2. 安装无线网卡驱动
    root@debian:~$ aptitude install firmware-iwlwifi
  3. 安装完后启动wifi模块
    root@debian:~$ modprobe -r iwlwifi ; modprobe iwlwifi
  4. 安装结束后,点击屏幕右上角的倒三角,就应该能出现无线的标识,如果没有,请重启电脑,在查看能否使用无线。

6.安装配置Fcitx

  1. locales设置:语言设置选项
    • locale -a 查看当前的locale环境,也就是当前的语言环境。
  2. 区域设置
    xxx@debian:~$ sudo dpkg-reconfigure locales
  3. 安装Fcitx
    xxx@debian:~$ sudo apt-get install fcitx-sunpinyin fcitx-table
  4. Fcitx配置
    打开fcitx配置,出现好几个输入法,可自行选择输入法 ,使用ctrl+shift切换输入法
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Debian 8安装、配置 的相关文章

随机推荐