Start graphical user interface using startx and display manager
Can someone tell me what differents between starting graphical user interface using startx
command (which xinitrc
contains exec gnome-session
or exec xfce4-session
) and using an display manager? And can you explain me what the session
in gnome-session
or xfce4-session
mean?
linux arch-linux desktop-environment display-manager
add a comment |
Can someone tell me what differents between starting graphical user interface using startx
command (which xinitrc
contains exec gnome-session
or exec xfce4-session
) and using an display manager? And can you explain me what the session
in gnome-session
or xfce4-session
mean?
linux arch-linux desktop-environment display-manager
add a comment |
Can someone tell me what differents between starting graphical user interface using startx
command (which xinitrc
contains exec gnome-session
or exec xfce4-session
) and using an display manager? And can you explain me what the session
in gnome-session
or xfce4-session
mean?
linux arch-linux desktop-environment display-manager
Can someone tell me what differents between starting graphical user interface using startx
command (which xinitrc
contains exec gnome-session
or exec xfce4-session
) and using an display manager? And can you explain me what the session
in gnome-session
or xfce4-session
mean?
linux arch-linux desktop-environment display-manager
linux arch-linux desktop-environment display-manager
edited Jan 13 at 21:04
Rui F Ribeiro
39.5k1479133
39.5k1479133
asked Jan 20 '15 at 3:47
Bình NguyênBình Nguyên
15019
15019
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
This is just different methods of starting X system and DE/WM. When you add entries to ~/.xinitrc
you indicate what to run when program startx
(or xinit
) starts, which launches X11. I think that session
just means that you're going to run session of selected desktop environment, it's just a name for executable files (scripts) that developers chose (e.g. KDE doesn't have the word session
in /usr/local/bin/startkde
). So simply .xinitrc
is a bash script that runs other scripts. The "exec" prefix to this command tells the shell that this is the last command, so the shell does not need to wait to run a next command (exec
is optional in this case, since e.g. gnome-session
does not finish until you logout from GNOME).
When you enable display manager it can read available sessions from /usr/share/xsessions/
directory. It contains standard desktop entry files for each DM/WM (configuration files describing how a particular program is to be launched, how it appears in menus, etc). And then it can start session that you choose in graphical interface.
Guide to X11/Starting sessions |
Display managers arch wiki |
X terminology
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f179981%2fstart-graphical-user-interface-using-startx-and-display-manager%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is just different methods of starting X system and DE/WM. When you add entries to ~/.xinitrc
you indicate what to run when program startx
(or xinit
) starts, which launches X11. I think that session
just means that you're going to run session of selected desktop environment, it's just a name for executable files (scripts) that developers chose (e.g. KDE doesn't have the word session
in /usr/local/bin/startkde
). So simply .xinitrc
is a bash script that runs other scripts. The "exec" prefix to this command tells the shell that this is the last command, so the shell does not need to wait to run a next command (exec
is optional in this case, since e.g. gnome-session
does not finish until you logout from GNOME).
When you enable display manager it can read available sessions from /usr/share/xsessions/
directory. It contains standard desktop entry files for each DM/WM (configuration files describing how a particular program is to be launched, how it appears in menus, etc). And then it can start session that you choose in graphical interface.
Guide to X11/Starting sessions |
Display managers arch wiki |
X terminology
add a comment |
This is just different methods of starting X system and DE/WM. When you add entries to ~/.xinitrc
you indicate what to run when program startx
(or xinit
) starts, which launches X11. I think that session
just means that you're going to run session of selected desktop environment, it's just a name for executable files (scripts) that developers chose (e.g. KDE doesn't have the word session
in /usr/local/bin/startkde
). So simply .xinitrc
is a bash script that runs other scripts. The "exec" prefix to this command tells the shell that this is the last command, so the shell does not need to wait to run a next command (exec
is optional in this case, since e.g. gnome-session
does not finish until you logout from GNOME).
When you enable display manager it can read available sessions from /usr/share/xsessions/
directory. It contains standard desktop entry files for each DM/WM (configuration files describing how a particular program is to be launched, how it appears in menus, etc). And then it can start session that you choose in graphical interface.
Guide to X11/Starting sessions |
Display managers arch wiki |
X terminology
add a comment |
This is just different methods of starting X system and DE/WM. When you add entries to ~/.xinitrc
you indicate what to run when program startx
(or xinit
) starts, which launches X11. I think that session
just means that you're going to run session of selected desktop environment, it's just a name for executable files (scripts) that developers chose (e.g. KDE doesn't have the word session
in /usr/local/bin/startkde
). So simply .xinitrc
is a bash script that runs other scripts. The "exec" prefix to this command tells the shell that this is the last command, so the shell does not need to wait to run a next command (exec
is optional in this case, since e.g. gnome-session
does not finish until you logout from GNOME).
When you enable display manager it can read available sessions from /usr/share/xsessions/
directory. It contains standard desktop entry files for each DM/WM (configuration files describing how a particular program is to be launched, how it appears in menus, etc). And then it can start session that you choose in graphical interface.
Guide to X11/Starting sessions |
Display managers arch wiki |
X terminology
This is just different methods of starting X system and DE/WM. When you add entries to ~/.xinitrc
you indicate what to run when program startx
(or xinit
) starts, which launches X11. I think that session
just means that you're going to run session of selected desktop environment, it's just a name for executable files (scripts) that developers chose (e.g. KDE doesn't have the word session
in /usr/local/bin/startkde
). So simply .xinitrc
is a bash script that runs other scripts. The "exec" prefix to this command tells the shell that this is the last command, so the shell does not need to wait to run a next command (exec
is optional in this case, since e.g. gnome-session
does not finish until you logout from GNOME).
When you enable display manager it can read available sessions from /usr/share/xsessions/
directory. It contains standard desktop entry files for each DM/WM (configuration files describing how a particular program is to be launched, how it appears in menus, etc). And then it can start session that you choose in graphical interface.
Guide to X11/Starting sessions |
Display managers arch wiki |
X terminology
answered Jan 20 '15 at 8:59
kirill-akirill-a
2,15011021
2,15011021
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f179981%2fstart-graphical-user-interface-using-startx-and-display-manager%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown