6/1/2023 0 Comments Centos7 nomachine use mateyou didn't customize the DefaultDesktopCommand key), you can define which desktop environment will be started for a certain user by configuring the. If NoMachine is configured to use the default desktop environment on the system (i.e. E.g:ĭefaultDesktopCommand "dbus-launch -exit-with-session gnome-session -session=ubuntu"ĭefaultDesktopCommand "dbus-launch -exit-with-session cinnamon-session"ĭefaultDesktopCommand "dbus-launch -exit-with-session startkde"ĭefaultDesktopCommand "dbus-launch -exit-with-session mate-session" To use dbus-launch, specify command to start the desktop in the dbus-launch -exit-with-session format. Specify this command in the DefaultDesktopCommand key in node.cfg:ĭefaultDesktopCommand "/usr/bin/startlxde"ĭefaultDesktopCommand "/usr/bin/startkde"ĭefaultDesktopCommand "/usr/bin/mate-session"ĭefaultDesktopCommand "/usr/bin/cinnamon"ĭefaultDesktopCommand "/etc/X11/Xsession 'gnome-session -session=ubuntu' "ĭefaultDesktopCommand "env GNOME_SHELL_SESSION_MODE=classic gnome-session -session gnome-classic" Such command is written in the *.desktop file in the line starting with Exec. To find the desktop environments installed on your system:Ģ) Then retrieve the command to start the desktop of your choice. How to find which desktop environments are already installed Yum install -y epel-release & yum groupinstall XfceĭefaultDesktopCommand "/usr/bin/startxfce4"Ģ.1. No need to restart NoMachine services.įor example, to run the Xfce lightweight desktop on CentOS 7: Set the proper command to start the desktop environment in the DefaultDesktopCommand key.Ĭhanges will be effective from the start of the next session. Third step - be sure that the DefaultDesktopCommand key is not commented (in case, remove the pre-pending #). Be sure you have administrative privileges for saving changes to this file. You can use a text editor like Emacs or Vi/Vim. Second step - edit the /usr/NX/etc/node.cfg file. How to run a non-default virtual desktop environment (some examples)įirst step - ensure that the desktop environment of your choice is installed. When creating the new custom session, specify /usr/bin/nxsession as command.Ģ. Place the nxsession file in the /usr/bin/ directory and add the execute permissions: This is an example of a wrapper script, named nxsession, suitable for launching LXDE on for example Ubuntu 16.04: You can also choose to save settings to re-use it at the next connection. In the 'Running the following command' field of the user's interface specify path to the wrapper script.īe sure to select the 'Run the command in a virtual desktop' option. How to launch a desktop environment in a custom sessionĬreate a wrapper script to launch the desktop of your choice.Ĭonnect to the server and choose to 'Create a new custom session'. How to install a desktop environment (some examples)ġ. How to list all the available desktop types configured on the systemĥ. How to run a specific virtual desktop environment on a per-user basisĤ. How to find out which desktop environments are already installedģ. How to run a non-default virtual desktop environmentĢ.1. How to launch a desktop environment in a custom sessionĢ. You can either choose to (i) run a custom session in virtual desktop mode after authentication: select the radio button 'Run the following command' and insert the path to the desired DE in the field provided.Īlternatively, (ii) the server or node host can be configured by making some changes to the node.cfg configuration file.īelow are the instructions on how to do (i) and (ii). There are two ways to run a session to a different desktop environment instead of the default one. When the user requests to create a new virtual desktop, the default desktop is launched automatically, in a transparent way for the user. 4 or later.ĭuring installation, NoMachine detects which is the default desktop environment set on the system and configures the node accordingly.
0 Comments
Leave a Reply. |