Перейти к содержимому

Как запустить gnome из командной строки

  • автор:

Sorry, you have been blocked

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

Cloudflare Ray ID: 7f0566d06a757899 • Your IP: Click to reveal 178.132.111.46 • Performance & security by Cloudflare

How to start GNOME Wayland session from command line/tty? [closed]

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 2 years ago .

I’m experimenting with wayland.

You can start Gnome with X through startx command. Is there an way to start Gnome with wayland through some command?

I would like to be able to run Gnome/X on my main display. Then switch to display :2 (Ctrl+alt+win+F2/F3) and then run something like:

So that I have a seconday desktop with gnome running with wayland.

Is this possible? (A near-alternative is also welcome)

Scrooge McDuck's user avatar

4 Answers 4

A working solution per Jonas Ådahl a mutter developer:

Usually what I do is switch to a VT and run:

dbus-run-session — gnome-shell —display-server —wayland

XDG_SESSION_TYPE=wayland dbus-run-session gnome-session

to force firefox and QT applications as well to wayland, in 2019-12-31 they do not respect XDG_SESSION_TYPE=wayland:

MOZ_ENABLE_WAYLAND=1 QT_QPA_PLATFORM=wayland XDG_SESSION_TYPE=wayland dbus-run-session gnome-session

if it should log out the command line session after pressing «logout» in the gnome GUI, add an exec : XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session

Never mind, I found the solution:

[EDIT] This no longer seems to work with recent fedora (24). At the moment I haven’t found a solution for this. The only way I get Wayland working these days is to use the gear at login and set the system to log into wayland. If anyone has a solution to this.

Note that the following video drivers do not work with Wayland: nvidia, cirrus, Hi1710.

I discovered this after several days of trying to get Wayland to work with my Nvidia video device until I saw this comment buried in the ArchLinux Wiki for GDM. ArchLinux GDM Wiki

The file that controls this is /usr/lib/udev/rules.d/61-gdm.rules

This script sets /usr/lib/gdm3/gdm-disable-wayland which tells gdm not to show the /usr/share/wayland-sessions on the session menu for these device drivers. (I am using Ubuntu Focal/20.04)

I was able to get Wayland working by uninstalling the nvidia drivers, and although I was pleased to get it working I went back to using the X/Nvidia setup as I preferred the smoother look and performance.

Run gnome — command

I just installed some packages and after restart GUI won’t show. I can login in terminal but I need command to start Gnome or better let it start automatically.

/.xsession-errors to a pastebin (for example paste.debian.net)? That might show something which is going wrong.

3 Answers 3

If you want GNOME to start automatically, try installing gdm. GDM is the default X display manager (which provides the login screen, and launches GNOME on login), and it should automatically start on boot.

You can use these 3 commands:

To restart Gnome:

Edit: What you’re looking for is called a "Display Manager".

I will leave my old answer for posterity, but it has flaws and is not good advice.

The startx command will start up the X server (Base GUI component of Ubuntu), or will probably give you a specific error message as to why it’s not starting up.

If you’re left at the command line after each reboot, but are able to get to your desktop using startx , you can create a text file called ".bash_profile" in your home directory. Add startx to that file, and it should be executed every time you log in.

Как установить и запустить рабочий стол Gnome из командной строки Xenial 16.04?

Я установил Xenial 16.04 (только для командной строки) и хочу попробовать рабочий стол Gnome. Я считаю, что Gnome 3.18 — это версия, которая поставляется с выпуском 16.04.

Как я могу установить, а затем запустить среду рабочего стола Gnome с моего терминала?

2 ответа

Вам нужно добавить репозитории gnome.

sudo add-apt-repository ppa:gnome3-team/gnome3-staging

А затем установите его:

Проверка доступности из источников по умолчанию

Помимо установки из ppa вы можете просто использовать метапакет ubuntu-gnome-desktop который доступен в источниках по умолчанию 16.04 — по крайней мере, в соответствии с apt-cache policy

Проверка версии оболочки gnome

Снова используя apt-cache policy :

Установка Gnome из исходных кодов

Так что — для установки просто запустите.

Выбор Gnome в качестве сеанса при входе в систему

Игнорируя тот факт, что вы используете Lightdm или GDM или что-либо еще в качестве диспетчера входа — во всех случаях вы должны иметь возможность выбрать тип сеанса (здесь Gnome) на экране входа в систему.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *