Debian安装图形界面详解-Linux服务器可以使用图形界面吗?可以使用浏览器吗?

九狐昊 IT评论103阅读模式

一、安装Debian操作系统

1、首先从Debian官网下载最新版的Debian系统镜像文件,根据实际需求选择下载的镜像文件(如:amd64、i386等);

2、在计算机上使用软碟通等工具将下载的镜像文件制作成安装盘或者U盘启动盘;

3、插入安装盘或者U盘启动盘,选择进入Debian安装系统选项,按照安装步骤完成系统的基本安装。

二、为Debian操作系统添加软件源

1、在Debian安装完毕后,可以使用apt-get命令进行软件包安装,但是默认情况下只能从CD-ROM安装,因此需要添加软件源来方便安装软件包;

2、编辑/etc/apt/sources.list文件,使用root用户打开该文件;

sudo vim /etc/apt/sources.list

3、在文件中添加Debian官方软件源镜像地址(这里以aliyun为例):

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

4、保存文件并退出。

三、更新软件的源和系统

1、在终端中运行更新命令,更新软件源信息:

sudo apt-get update

2、然后再使用以下命令将系统中的软件包更新到最新版本:

sudo apt-get upgrade

四、安装图形界面

1. 使用tasksel安装

1、在终端中输入以下命令安装tasksel:

sudo apt-get install tasksel

2、然后使用tasksel命令进行图形用户界面的安装:

sudo tasksel install desktop

2. 使用apt-get安装

1、在终端中输入以下命令安装Debian桌面环境:

sudo apt-get install x-window-system-core gnome-core

五、启动图形界面

1、在终端中输入以下命令:

sudo systemctl set-default graphical.target

2、重启计算机即可启动图形界面。

六、小结

本文主要介绍了如何在Debian操作系统中安装图形界面,通过添加软件源、更新系统,安装桌面环境等步骤,可以很方便地将Debian系统装成一个具有图形界面的操作系统,在使用Debian时更加方便。

扩展:
1.查看当前默认启动界面命令
systemctl get-default

2.修改默认启动界面为图形界面
systemctl set-default graphical.target

3.修改默认启动界面为命令界面
systemctl set-default multi-user.target

Debian安装图形界面详解-Linux服务器可以使用图形界面吗?可以使用浏览器吗?

买韩国游戏账号加微信vvv333客服,开黑啦KOOK文字聊天频道群:https://kook.top/kivKZA 支持电脑网页端和手机端。
weinxin
微信公众号
微信扫一扫
  • 本文由 发表于 2023年11月14日 21:19:28
  • 转载请务必保留本文链接:https://www.jiufox.com/5932.html
评论  0  访客  0

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: