Auto-login straight into desktop on Debian 7 with LXDE
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
Yesterday I have installed Debian on a virtual machine.
I have SSH configured and everything set up.
I don't like developing inside a VM.
It doesn't help to resize the browser and test everything the way I want.
So, I decided to connect using Xming and PuTTY, which works flawlessly.
The boring stuff is that I have to always choose a username and password to be able to use the machine.
How can I set it to automatically login into the desktop without asking username or password?
EDIT
Author says re ssh keys "It's not that. I just want that when I boot the VM, it goes straight to the desktop instead of the LXDE login screen. Everything else is working perfectly. "
debian lxde auto-login
|
show 6 more comments
Yesterday I have installed Debian on a virtual machine.
I have SSH configured and everything set up.
I don't like developing inside a VM.
It doesn't help to resize the browser and test everything the way I want.
So, I decided to connect using Xming and PuTTY, which works flawlessly.
The boring stuff is that I have to always choose a username and password to be able to use the machine.
How can I set it to automatically login into the desktop without asking username or password?
EDIT
Author says re ssh keys "It's not that. I just want that when I boot the VM, it goes straight to the desktop instead of the LXDE login screen. Everything else is working perfectly. "
debian lxde auto-login
@barlop I was explaining WHY I want to do on this way. I can remove those lines if needed. The question itself might be badly worded, but it is no reason to downvote. I just want to skip the login screen and go to the desktop.
– Ismael Miguel
Jan 9 '15 at 11:05
+1 yeah I removed the downvote even before your comment, 'cos at least the question is interesting..but it's annoying that your question looked like you might've needed to know about ssh keys (talking about ssh and wanting to log in automatically) when you later say you weren't asking about ssh keys. Also at least you responded fast to say you didn't
– barlop
Jan 9 '15 at 11:27
@barlop I'm really sorry for the wording. Your edit looks great! Can you please remove the line saying "I have SSH configured and everything set up."? And change "The boring stuff is that I have to always choose a username and password to be able to use the machine." to "The boring part is that I have to login first to the desktop to use it."? That might help a lot more to define what I want.
– Ismael Miguel
Jan 9 '15 at 11:40
ok but first, to clarify, which machine is it that you have to use the username and password to get into? can you provide a screenshot (could be a pic taken from your phone), or something from google images, that shows the user/pass screen that you need to automatically get through? ('cos I guess you have a windows system a linux system and ssh and a pic would clarify what you mean)
– barlop
Jan 9 '15 at 11:49
1
@barlop If you have any doubt and you want to try it yourself, and you find any doubt, you can ask here and I will happily answer.
– Ismael Miguel
Jan 9 '15 at 15:46
|
show 6 more comments
Yesterday I have installed Debian on a virtual machine.
I have SSH configured and everything set up.
I don't like developing inside a VM.
It doesn't help to resize the browser and test everything the way I want.
So, I decided to connect using Xming and PuTTY, which works flawlessly.
The boring stuff is that I have to always choose a username and password to be able to use the machine.
How can I set it to automatically login into the desktop without asking username or password?
EDIT
Author says re ssh keys "It's not that. I just want that when I boot the VM, it goes straight to the desktop instead of the LXDE login screen. Everything else is working perfectly. "
debian lxde auto-login
Yesterday I have installed Debian on a virtual machine.
I have SSH configured and everything set up.
I don't like developing inside a VM.
It doesn't help to resize the browser and test everything the way I want.
So, I decided to connect using Xming and PuTTY, which works flawlessly.
The boring stuff is that I have to always choose a username and password to be able to use the machine.
How can I set it to automatically login into the desktop without asking username or password?
EDIT
Author says re ssh keys "It's not that. I just want that when I boot the VM, it goes straight to the desktop instead of the LXDE login screen. Everything else is working perfectly. "
debian lxde auto-login
debian lxde auto-login
edited Jan 9 '15 at 13:07
barlop
15.7k2590150
15.7k2590150
asked Jan 9 '15 at 10:09
Ismael MiguelIsmael Miguel
1871215
1871215
@barlop I was explaining WHY I want to do on this way. I can remove those lines if needed. The question itself might be badly worded, but it is no reason to downvote. I just want to skip the login screen and go to the desktop.
– Ismael Miguel
Jan 9 '15 at 11:05
+1 yeah I removed the downvote even before your comment, 'cos at least the question is interesting..but it's annoying that your question looked like you might've needed to know about ssh keys (talking about ssh and wanting to log in automatically) when you later say you weren't asking about ssh keys. Also at least you responded fast to say you didn't
– barlop
Jan 9 '15 at 11:27
@barlop I'm really sorry for the wording. Your edit looks great! Can you please remove the line saying "I have SSH configured and everything set up."? And change "The boring stuff is that I have to always choose a username and password to be able to use the machine." to "The boring part is that I have to login first to the desktop to use it."? That might help a lot more to define what I want.
– Ismael Miguel
Jan 9 '15 at 11:40
ok but first, to clarify, which machine is it that you have to use the username and password to get into? can you provide a screenshot (could be a pic taken from your phone), or something from google images, that shows the user/pass screen that you need to automatically get through? ('cos I guess you have a windows system a linux system and ssh and a pic would clarify what you mean)
– barlop
Jan 9 '15 at 11:49
1
@barlop If you have any doubt and you want to try it yourself, and you find any doubt, you can ask here and I will happily answer.
– Ismael Miguel
Jan 9 '15 at 15:46
|
show 6 more comments
@barlop I was explaining WHY I want to do on this way. I can remove those lines if needed. The question itself might be badly worded, but it is no reason to downvote. I just want to skip the login screen and go to the desktop.
– Ismael Miguel
Jan 9 '15 at 11:05
+1 yeah I removed the downvote even before your comment, 'cos at least the question is interesting..but it's annoying that your question looked like you might've needed to know about ssh keys (talking about ssh and wanting to log in automatically) when you later say you weren't asking about ssh keys. Also at least you responded fast to say you didn't
– barlop
Jan 9 '15 at 11:27
@barlop I'm really sorry for the wording. Your edit looks great! Can you please remove the line saying "I have SSH configured and everything set up."? And change "The boring stuff is that I have to always choose a username and password to be able to use the machine." to "The boring part is that I have to login first to the desktop to use it."? That might help a lot more to define what I want.
– Ismael Miguel
Jan 9 '15 at 11:40
ok but first, to clarify, which machine is it that you have to use the username and password to get into? can you provide a screenshot (could be a pic taken from your phone), or something from google images, that shows the user/pass screen that you need to automatically get through? ('cos I guess you have a windows system a linux system and ssh and a pic would clarify what you mean)
– barlop
Jan 9 '15 at 11:49
1
@barlop If you have any doubt and you want to try it yourself, and you find any doubt, you can ask here and I will happily answer.
– Ismael Miguel
Jan 9 '15 at 15:46
@barlop I was explaining WHY I want to do on this way. I can remove those lines if needed. The question itself might be badly worded, but it is no reason to downvote. I just want to skip the login screen and go to the desktop.
– Ismael Miguel
Jan 9 '15 at 11:05
@barlop I was explaining WHY I want to do on this way. I can remove those lines if needed. The question itself might be badly worded, but it is no reason to downvote. I just want to skip the login screen and go to the desktop.
– Ismael Miguel
Jan 9 '15 at 11:05
+1 yeah I removed the downvote even before your comment, 'cos at least the question is interesting..but it's annoying that your question looked like you might've needed to know about ssh keys (talking about ssh and wanting to log in automatically) when you later say you weren't asking about ssh keys. Also at least you responded fast to say you didn't
– barlop
Jan 9 '15 at 11:27
+1 yeah I removed the downvote even before your comment, 'cos at least the question is interesting..but it's annoying that your question looked like you might've needed to know about ssh keys (talking about ssh and wanting to log in automatically) when you later say you weren't asking about ssh keys. Also at least you responded fast to say you didn't
– barlop
Jan 9 '15 at 11:27
@barlop I'm really sorry for the wording. Your edit looks great! Can you please remove the line saying "I have SSH configured and everything set up."? And change "The boring stuff is that I have to always choose a username and password to be able to use the machine." to "The boring part is that I have to login first to the desktop to use it."? That might help a lot more to define what I want.
– Ismael Miguel
Jan 9 '15 at 11:40
@barlop I'm really sorry for the wording. Your edit looks great! Can you please remove the line saying "I have SSH configured and everything set up."? And change "The boring stuff is that I have to always choose a username and password to be able to use the machine." to "The boring part is that I have to login first to the desktop to use it."? That might help a lot more to define what I want.
– Ismael Miguel
Jan 9 '15 at 11:40
ok but first, to clarify, which machine is it that you have to use the username and password to get into? can you provide a screenshot (could be a pic taken from your phone), or something from google images, that shows the user/pass screen that you need to automatically get through? ('cos I guess you have a windows system a linux system and ssh and a pic would clarify what you mean)
– barlop
Jan 9 '15 at 11:49
ok but first, to clarify, which machine is it that you have to use the username and password to get into? can you provide a screenshot (could be a pic taken from your phone), or something from google images, that shows the user/pass screen that you need to automatically get through? ('cos I guess you have a windows system a linux system and ssh and a pic would clarify what you mean)
– barlop
Jan 9 '15 at 11:49
1
1
@barlop If you have any doubt and you want to try it yourself, and you find any doubt, you can ask here and I will happily answer.
– Ismael Miguel
Jan 9 '15 at 15:46
@barlop If you have any doubt and you want to try it yourself, and you find any doubt, you can ask here and I will happily answer.
– Ismael Miguel
Jan 9 '15 at 15:46
|
show 6 more comments
1 Answer
1
active
oldest
votes
This is really easy to do.
Open the file /etc/lightdm/lightdm.conf
and navigate to line 78 (you can enable line numbers on Leafpad).
It should be saying #autologin-user=
.
Remove the #
and change it to have your username after (for example: autologin-user=test
).
Reboot your machine and wait a little.
For more informations, you can also check https://askubuntu.com/questions/426831/lxde-auto-login
If you are using Debian 9, check https://superuser.com/a/1337778/777328
(Thank you Adrian W for the link!)
I've installed debian 8.5 and LXDE and there is no /etc/lightdm/lightdm.conf file
– integratorIT
Aug 23 '16 at 14:05
1
@infografik I know. This is specific to Debian 7. On Debian 8.5, it is a bit different. I can't say now because I don't remember how it is, but as soon as I get home (in 5 hours), I can tell how I've done with Debian 8.5. I have it working without GUI, and the setting to run GUI-less is on the same file.
– Ismael Miguel
Aug 23 '16 at 14:08
1
For newer Debian versions, see superuser.com/a/1337778/777328
– Adrian W
Feb 4 at 17:36
@AdrianW Done, added to the post. Thank you!
– Ismael Miguel
Feb 5 at 9:47
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2fsuperuser.com%2fquestions%2f862581%2fauto-login-straight-into-desktop-on-debian-7-with-lxde%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 really easy to do.
Open the file /etc/lightdm/lightdm.conf
and navigate to line 78 (you can enable line numbers on Leafpad).
It should be saying #autologin-user=
.
Remove the #
and change it to have your username after (for example: autologin-user=test
).
Reboot your machine and wait a little.
For more informations, you can also check https://askubuntu.com/questions/426831/lxde-auto-login
If you are using Debian 9, check https://superuser.com/a/1337778/777328
(Thank you Adrian W for the link!)
I've installed debian 8.5 and LXDE and there is no /etc/lightdm/lightdm.conf file
– integratorIT
Aug 23 '16 at 14:05
1
@infografik I know. This is specific to Debian 7. On Debian 8.5, it is a bit different. I can't say now because I don't remember how it is, but as soon as I get home (in 5 hours), I can tell how I've done with Debian 8.5. I have it working without GUI, and the setting to run GUI-less is on the same file.
– Ismael Miguel
Aug 23 '16 at 14:08
1
For newer Debian versions, see superuser.com/a/1337778/777328
– Adrian W
Feb 4 at 17:36
@AdrianW Done, added to the post. Thank you!
– Ismael Miguel
Feb 5 at 9:47
add a comment |
This is really easy to do.
Open the file /etc/lightdm/lightdm.conf
and navigate to line 78 (you can enable line numbers on Leafpad).
It should be saying #autologin-user=
.
Remove the #
and change it to have your username after (for example: autologin-user=test
).
Reboot your machine and wait a little.
For more informations, you can also check https://askubuntu.com/questions/426831/lxde-auto-login
If you are using Debian 9, check https://superuser.com/a/1337778/777328
(Thank you Adrian W for the link!)
I've installed debian 8.5 and LXDE and there is no /etc/lightdm/lightdm.conf file
– integratorIT
Aug 23 '16 at 14:05
1
@infografik I know. This is specific to Debian 7. On Debian 8.5, it is a bit different. I can't say now because I don't remember how it is, but as soon as I get home (in 5 hours), I can tell how I've done with Debian 8.5. I have it working without GUI, and the setting to run GUI-less is on the same file.
– Ismael Miguel
Aug 23 '16 at 14:08
1
For newer Debian versions, see superuser.com/a/1337778/777328
– Adrian W
Feb 4 at 17:36
@AdrianW Done, added to the post. Thank you!
– Ismael Miguel
Feb 5 at 9:47
add a comment |
This is really easy to do.
Open the file /etc/lightdm/lightdm.conf
and navigate to line 78 (you can enable line numbers on Leafpad).
It should be saying #autologin-user=
.
Remove the #
and change it to have your username after (for example: autologin-user=test
).
Reboot your machine and wait a little.
For more informations, you can also check https://askubuntu.com/questions/426831/lxde-auto-login
If you are using Debian 9, check https://superuser.com/a/1337778/777328
(Thank you Adrian W for the link!)
This is really easy to do.
Open the file /etc/lightdm/lightdm.conf
and navigate to line 78 (you can enable line numbers on Leafpad).
It should be saying #autologin-user=
.
Remove the #
and change it to have your username after (for example: autologin-user=test
).
Reboot your machine and wait a little.
For more informations, you can also check https://askubuntu.com/questions/426831/lxde-auto-login
If you are using Debian 9, check https://superuser.com/a/1337778/777328
(Thank you Adrian W for the link!)
edited Feb 5 at 9:47
answered Jan 9 '15 at 13:55
Ismael MiguelIsmael Miguel
1871215
1871215
I've installed debian 8.5 and LXDE and there is no /etc/lightdm/lightdm.conf file
– integratorIT
Aug 23 '16 at 14:05
1
@infografik I know. This is specific to Debian 7. On Debian 8.5, it is a bit different. I can't say now because I don't remember how it is, but as soon as I get home (in 5 hours), I can tell how I've done with Debian 8.5. I have it working without GUI, and the setting to run GUI-less is on the same file.
– Ismael Miguel
Aug 23 '16 at 14:08
1
For newer Debian versions, see superuser.com/a/1337778/777328
– Adrian W
Feb 4 at 17:36
@AdrianW Done, added to the post. Thank you!
– Ismael Miguel
Feb 5 at 9:47
add a comment |
I've installed debian 8.5 and LXDE and there is no /etc/lightdm/lightdm.conf file
– integratorIT
Aug 23 '16 at 14:05
1
@infografik I know. This is specific to Debian 7. On Debian 8.5, it is a bit different. I can't say now because I don't remember how it is, but as soon as I get home (in 5 hours), I can tell how I've done with Debian 8.5. I have it working without GUI, and the setting to run GUI-less is on the same file.
– Ismael Miguel
Aug 23 '16 at 14:08
1
For newer Debian versions, see superuser.com/a/1337778/777328
– Adrian W
Feb 4 at 17:36
@AdrianW Done, added to the post. Thank you!
– Ismael Miguel
Feb 5 at 9:47
I've installed debian 8.5 and LXDE and there is no /etc/lightdm/lightdm.conf file
– integratorIT
Aug 23 '16 at 14:05
I've installed debian 8.5 and LXDE and there is no /etc/lightdm/lightdm.conf file
– integratorIT
Aug 23 '16 at 14:05
1
1
@infografik I know. This is specific to Debian 7. On Debian 8.5, it is a bit different. I can't say now because I don't remember how it is, but as soon as I get home (in 5 hours), I can tell how I've done with Debian 8.5. I have it working without GUI, and the setting to run GUI-less is on the same file.
– Ismael Miguel
Aug 23 '16 at 14:08
@infografik I know. This is specific to Debian 7. On Debian 8.5, it is a bit different. I can't say now because I don't remember how it is, but as soon as I get home (in 5 hours), I can tell how I've done with Debian 8.5. I have it working without GUI, and the setting to run GUI-less is on the same file.
– Ismael Miguel
Aug 23 '16 at 14:08
1
1
For newer Debian versions, see superuser.com/a/1337778/777328
– Adrian W
Feb 4 at 17:36
For newer Debian versions, see superuser.com/a/1337778/777328
– Adrian W
Feb 4 at 17:36
@AdrianW Done, added to the post. Thank you!
– Ismael Miguel
Feb 5 at 9:47
@AdrianW Done, added to the post. Thank you!
– Ismael Miguel
Feb 5 at 9:47
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f862581%2fauto-login-straight-into-desktop-on-debian-7-with-lxde%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
@barlop I was explaining WHY I want to do on this way. I can remove those lines if needed. The question itself might be badly worded, but it is no reason to downvote. I just want to skip the login screen and go to the desktop.
– Ismael Miguel
Jan 9 '15 at 11:05
+1 yeah I removed the downvote even before your comment, 'cos at least the question is interesting..but it's annoying that your question looked like you might've needed to know about ssh keys (talking about ssh and wanting to log in automatically) when you later say you weren't asking about ssh keys. Also at least you responded fast to say you didn't
– barlop
Jan 9 '15 at 11:27
@barlop I'm really sorry for the wording. Your edit looks great! Can you please remove the line saying "I have SSH configured and everything set up."? And change "The boring stuff is that I have to always choose a username and password to be able to use the machine." to "The boring part is that I have to login first to the desktop to use it."? That might help a lot more to define what I want.
– Ismael Miguel
Jan 9 '15 at 11:40
ok but first, to clarify, which machine is it that you have to use the username and password to get into? can you provide a screenshot (could be a pic taken from your phone), or something from google images, that shows the user/pass screen that you need to automatically get through? ('cos I guess you have a windows system a linux system and ssh and a pic would clarify what you mean)
– barlop
Jan 9 '15 at 11:49
1
@barlop If you have any doubt and you want to try it yourself, and you find any doubt, you can ask here and I will happily answer.
– Ismael Miguel
Jan 9 '15 at 15:46