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

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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 1 year ago.
Improve this question
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:
startWayland
So that I have a seconday desktop with gnome running with wayland.
Is this possible? (A near-alternative is also welcome)

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
From docs:
https://wiki.archlinux.org/index.php/GNOME#Wayland_sessions

Never mind, I found the solution:
gnome-session --session gnome-wayland
Source:
GNOME / Wayland in Fedora | Goings on
https://blogs.gnome.org/mclasen/2013/10/03/gnome-wayland-in-fedora/
[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.

Related

libinput-gestures on wayland: can't get 'super' key [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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 3 years ago.
Improve this question
I'm trying to configure libinput-gestures by editing /etc/libinput-gestures.conf.
I'm using gnome 3.28.1 on Linux Mint 19 and I want to trigger 'activities overview' with a given multi-touch trackpad gesture.
Libinput-gestures is working for switching desktops using
_internal ws_up &
_internal ws_down in the config file.
The way I got into overview in Linux Mint 18.03 is by sending a key via
xdotool key super for 'activities overview' &
xdotool key super+a for 'show applications'.
From my research I have found that the version of gnome I had in mint 18 used x11 as it's display manager and the version of gnome in mint 19 uses wayland. Wayland has I believe deprecated the ability to 'send keys' for security reasons.
Solutions to this problem might be:
A way to trigger the 'activities overview' from the terminal.
A way around waylands blocking of 'send key'.
All insights are appreciated.
Thanks :)
I know this is an old post. However, I've also been looking for a solution in using different gestures in Wayland. There's an example of the op's post right in the libinput-gestures.conf file.
gesture swipe up 3 dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
This is effectively the equivalence of pressing the Super_L key.
What I'd like to know is if there's a similar command for "Show Applications" that might be compatible with Wayland. What other possibilities using "dbus" are there? I've researched for days and have found little information on the topic.
The quickest way would be to have gjs call Main.overview.toggle() though I'm on mobile right now, so I don't have access to it.
I'll edit this in the next hour or so for a complete answer, when I can confirm the exact syntax

startx /bin/bash in fullscreen without desktop [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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 5 years ago.
Improve this question
Ok so I know it's a weird case but hang in here with me.
So the thing is I've got an very old laptop running ubuntu 14.04 server without any desktop aka shell only. BUT the laptop also has a touch screen so we want to be able to use the "mouse"/touchscreen/touchpad to select text inside the terminal and/or click/copy/paste/cut/etc. It's part of art project with some students and also one of the tasks is to run as less as possible. So running a desktop in the background is not really an option. My question is:
Is there a way to start the Ubuntu terminal as UI application in fullscreen without the actual desktop in the background but giving the functionality of an mouse cursor.
(If someone knows a even better solution for adding a mouse without starting the desktop its appreciated)
Try this: create a ~/.xinitrc with content : exec gnome-terminal, then run startx
Or another solution is to stay in tty and install gpm for mouse control

Linux mint screen not showing correctly with nvidia gpu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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 8 years ago.
Improve this question
I downloaded Linux mint KDE 16 64 bit iso.
but when i boot with it, after 10 sec screen blink continuously i cant even see anything on the desktop except few Linux on Linux mint default wallpaper.
I am getting too much irritated and disappointed from Linux pls help.
I have Amd athlon x2 process with inbuilt nvidia 7025 graphics.
Having 4 GB DDR2 ram of Kingston.
any help pls ?
Nikhil, i can know your pain. lets follow some steps, see if they work.
At your desktop just navigate your mouse on the desktop bottom left corner, keep navigating you will get some content there.
click on start menu launcher
search for system settings.
click on Desktop effect in the second line first option.
Go to Advance
in composting type switch to OPENGL 1.2 (Default was OPENGL 2.0).
click on apply on the bottom left and then everything is fine now you can proceed further.
you should install your graphic driver for permanent solution
System setting >> Driver manager >> click on your nvidia card and then Apply changes.
And one more thing Linux isn't irritating ;)

How to open applications after booting a purely Command line interface of Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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 8 years ago.
Improve this question
After booting linux in purly command line mode how can I open an application eg web browser or Libra Office?
For example if I use the command "play" with any audio file it starts to play it. I want to know commands for other applications
You have to start an X Window session before you can open those applications because they depend on it to render the GUI. To do this you can use the startx command.
There is a good description here on how to use startx.
However, doing it this way can be a lot of manual and tedious work. That's why most linux distros have packaged full window managers like Gnome, Xcfe, etc for you to install with a single command. If what you really want is a minimal one you might look at Fluxbox or Openbox. You can learn a lot about the guts of X by installing and configuring them on your own.
I suspect what you may really need is just to edit text files and get resources from the internet while logged into a Linux box that is command line only. If so, you can check out these command line only tools.
Lynx command line browser
WGet internet file retriever
EMacs text editor
Vim text editor

AwesomeWM wallpaper change [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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 4 years ago.
Improve this question
When I am using Awesome-WM under Linux Mint 13 "Maya" MATE, sometimes I need to open the File Manager "Caja". But when I launch caja, the wallpaper changes to the one I set under MATE instead of the one in rc.lua. I have tried
sudo gsettings set org.gnome.desktop.background draw-background false
but it seems useless.
How can I keep my settings under awesome-wm? Or I should set the 2 backgrounds the same?
You could try setting your wallpaper using feh.
Create a .fehbg file in your $HOME and put this in:
feh --bg-scale '/path/to/wallpaper.jpg'
..then save it.
Then in your autostart script just add sh $HOME/.fehbg & then try restarting your DE. If it still persists after opening Caja, then I am not sure about that since I am totally unfamiliar with Caja, rather, I am not familiar with MATE at all.
I think what's happening is that caja is set to 'manage' your desktop. That means it'll change your wallpaper to the one set in MATE, and probably display desktop icons as well, e.g., Computer, Home, etc. This has always been a problem for me when using alternative window managers on Ubuntu, because nautilus does it as well. With nautilus the behaviour can be turned off using the terminal flag --no-desktop. caja seems to be a descendant of nautilus and a quick Google shows references to the same terminal option for it as well. So I suggest you try
caja --no-desktop
and see if that works for you.

Resources