指点成金-最美分享吧

登录

在ubuntu 命令行下怎么打开图形界面

佚名 举报

篇首语:本文由小编为大家整理,主要介绍了在ubuntu 命令行下怎么打开图形界面相关的知识,希望对你有一定的参考价值。

1、首先启动ubuntu,等待进入系统,这里默认进入的是unbuntu的命令行界面:

2、在命令行界面,输入账号和密码,之后直接输入startx:

3、等待一会,就会进入ubuntu的图形界面了,此时不用输入账户密码就直接进入图形界面了:

参考技术A 1、安装Ubuntu服务器版的图形界面Ubuntu-desktop

在字符界面中输入执行命令:sudo apt-get install ubuntu-desktop
接着在字符界面输入命令: startx ,这就进入图形界面。

2、在Ubuntu服务器中开启VNC远程桌面服务

在Ubuntu中开启远程桌面控制是很容易的。点击 系统(System) —> 首选项(Preferences) —> 远程桌面(Remote Desktop)

在允许别人查看你的服务器和允许别人控制你的服务器前打√ 并设置密码。服务器端设置完成

3、可以在自己的机器上下载VNC客户端程序(例如RealVNC的VNC Viewer Free Edition for Windows),就可以使用远程桌面连接这个Ubuntu服务器了。

顺便提一句,如果想要在Ubuntu中远程连接Windows远程桌面的方法为:rdesktop ip -f -u XXX,例如rdesktop 192.168.0.1 -f -u hp本回答被提问者采纳
参考技术B

1、第一步先启动ubuntu,然后等待进入系统,然后可以看到unbuntu的命令行界面。

2、然后在命令行界面,将自己的账号和密码输入,然后再输入startx,如图所示。

3、输入完之后,等待一会,就会进入ubuntu的图形界面了,如下图中所示。



在ubuntu9.04的图形界面下似乎权限不够,打不开“用户和组”,而命令行下似乎有root权限

为了使用ubuntu9.04下“阿帖便签”的网络同步功能,在按照某位大虾的指点执行了这个命令
sudo usermod -G fuse shinegao(我的用户名)
结果再通过界面使用“用户和组”就提示权限不够了:系统管理员不允许我访问系统配置。

我反复尝试几个命令都不行:
sudo usermod -G root shinegao
sudo usermod -g 0 shinegao

但是在命令行下,我还是可以打开/sbin目录的
多谢关心!
查了log发现“用户和组”的程序名是“users-admin”,确实su之后就可以在命令行下执行“users-admin”,图形界面还是不行。

参考技术A 这个命令够呛的,楼主把我也害了!
不过我现在还可用root户 来打开 users-admin

su: Authentication failure
lsj@lsj-ubuntu:~$ su
Password: *******
To run a command as administrator (user "root"), use "sudo ".
See "man sudo_root" for details.

root@lsj-ubuntu:/home/lsj# users-admin

** (users-admin:5740): CRITICAL **: Cannot create session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)

以上是关于在ubuntu 命令行下怎么打开图形界面的主要内容,如果未能解决你的问题,请参考以下文章