How to make auto login work in Ubuntu? (no display manager)How to run scripts on start up?Cannot login to...
Play Zip, Zap, Zop
Should I reinstall Linux when changing the laptop's CPU?
Has any human ever had the choice to leave Earth permanently?
What incentives do banks have to gather up loans into pools (backed by Ginnie Mae)and selling them?
Quickly creating a sparse array
How do you funnel food off a cutting board?
Gear reduction on large turbofans
Which one of these password policies are more secure?
Does a phylactery of a lich have to be a box?
Why are the books in the Game of Thrones citadel library shelved spine inwards?
Can you tell from a blurry photo if focus was too close or too far?
Difference between i++ and (i)++ in C
Why is Agricola named as such?
Publishing research using outdated methods
What is a good reason for every spaceship to carry a weapon on board?
Consequences of lack of rigour
Why do neural networks need so many training examples to perform?
kill -0 <PID> は何をするのでしょうか?
Positioning node within rectangle Tikz
If I delete my router's history can my ISP still provide it to my parents?
SET NOCOUNT Error in handling SQL call after upgrade
Using only 1s, make 29 with the minimum number of digits
Why did Democrats in the Senate oppose the Born-Alive Abortion Survivors Protection Act (2019 S.130)?
Is there a weight limit to Feather Fall?
How to make auto login work in Ubuntu? (no display manager)
How to run scripts on start up?Cannot login to ubuntu after startx commandHow to make auto login work, “choose language” comes up?Programmaticaly change lightdm autologin session typeAuto Login not workingThunar not authorized to acces mounted volumesUbuntu 14.10 Auto LoginUbuntu can't login after disabling auto loginHow to auto-login in text mode?How can I log in to Ubuntu 18.04 without a password? Setting auto login doesn't workUbuntu 18 Disable Auto Loginauto login with AD user 16.04
I am trying to autologin and auto startx on my ubuntu minimal installation
(15.04 Vivid Velvet 32bits, mini.iso)
I am following several guides that I found but none of them work (the startx part works, but not the autologin)
For example:
https://rowen121.wordpress.com/2011/09/14/enable-automatic-login-and-startx-in-ubuntu/
https://wiki.ubuntuusers.de/autologin
One of the problems is everytime I go and look for the file they tell me to edit, it's not there.
When I do sudo nano whatever the file, it is empty (tty1.conf for example, or inittab)
In all the guides they say to uncomment a line and add another, but all those files are empty for me.
Maybe it is because they refer to Debian and things change.
I have managed to make it work installing nodm.
Then I don't need to write my username nor password, and then, it auto startx (I added startx in .bash_profile), and finally takes me to i3-wm. I haven't installed a display manager (well, just nodm as the last option to try) nor desktop environment.
I would like to get it working without the need of installing a display manager (rungetty/mingetty/getty/whatever works and it's easy on resources)
Please if you know the steps that work for you and ubuntu, or a guide that I can follow I would appreciate it.
Thanks in advance
Note: nothing is encrypted
15.04 ubuntu-minimal auto-login
|
show 2 more comments
I am trying to autologin and auto startx on my ubuntu minimal installation
(15.04 Vivid Velvet 32bits, mini.iso)
I am following several guides that I found but none of them work (the startx part works, but not the autologin)
For example:
https://rowen121.wordpress.com/2011/09/14/enable-automatic-login-and-startx-in-ubuntu/
https://wiki.ubuntuusers.de/autologin
One of the problems is everytime I go and look for the file they tell me to edit, it's not there.
When I do sudo nano whatever the file, it is empty (tty1.conf for example, or inittab)
In all the guides they say to uncomment a line and add another, but all those files are empty for me.
Maybe it is because they refer to Debian and things change.
I have managed to make it work installing nodm.
Then I don't need to write my username nor password, and then, it auto startx (I added startx in .bash_profile), and finally takes me to i3-wm. I haven't installed a display manager (well, just nodm as the last option to try) nor desktop environment.
I would like to get it working without the need of installing a display manager (rungetty/mingetty/getty/whatever works and it's easy on resources)
Please if you know the steps that work for you and ubuntu, or a guide that I can follow I would appreciate it.
Thanks in advance
Note: nothing is encrypted
15.04 ubuntu-minimal auto-login
So you're saying/etc/init/tty1.conf
is empty for you ? that's weird . . . It's not a difference between Debian or Ubuntu. By default there always should be init files. And autologin is simple just alter the lineexec /sbin/getty -8 38400 tty1
toexec /sbin/getty -a username -8 38400 tty1
– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:26
Yup, read that german wiki a little. The step is correct. Perhaps you are doing something wrong. Also , inAutomatischer Oberflächenstart nach Login
part I think it should be changed tostartx xfce4
notstartxfce4
, cuz that last command is non-existent
– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:29
By minimal installation, I should have specified that I am in fact using ubuntu mini.iso (MinimalCD). Yes, I am sure tty.conf was empty, and inittab empty too.
– tom_len
Sep 28 '15 at 19:37
Serg: I tried what you suggest but it doesn't work, I find myself in tty1 but I have to write my username and password. I re-tried the german wiki, but nothing. I have to write name and password
– tom_len
Sep 28 '15 at 20:00
Ok. So another possibility is that Ubuntu uses different system to start processes as of 15.04 . Init files belong to Upstart system but 15.04 uses systemd. Try this wiki.archlinux.org/index.php/Automatic_login_to_virtual_console
– Sergiy Kolodyazhnyy
Sep 28 '15 at 20:12
|
show 2 more comments
I am trying to autologin and auto startx on my ubuntu minimal installation
(15.04 Vivid Velvet 32bits, mini.iso)
I am following several guides that I found but none of them work (the startx part works, but not the autologin)
For example:
https://rowen121.wordpress.com/2011/09/14/enable-automatic-login-and-startx-in-ubuntu/
https://wiki.ubuntuusers.de/autologin
One of the problems is everytime I go and look for the file they tell me to edit, it's not there.
When I do sudo nano whatever the file, it is empty (tty1.conf for example, or inittab)
In all the guides they say to uncomment a line and add another, but all those files are empty for me.
Maybe it is because they refer to Debian and things change.
I have managed to make it work installing nodm.
Then I don't need to write my username nor password, and then, it auto startx (I added startx in .bash_profile), and finally takes me to i3-wm. I haven't installed a display manager (well, just nodm as the last option to try) nor desktop environment.
I would like to get it working without the need of installing a display manager (rungetty/mingetty/getty/whatever works and it's easy on resources)
Please if you know the steps that work for you and ubuntu, or a guide that I can follow I would appreciate it.
Thanks in advance
Note: nothing is encrypted
15.04 ubuntu-minimal auto-login
I am trying to autologin and auto startx on my ubuntu minimal installation
(15.04 Vivid Velvet 32bits, mini.iso)
I am following several guides that I found but none of them work (the startx part works, but not the autologin)
For example:
https://rowen121.wordpress.com/2011/09/14/enable-automatic-login-and-startx-in-ubuntu/
https://wiki.ubuntuusers.de/autologin
One of the problems is everytime I go and look for the file they tell me to edit, it's not there.
When I do sudo nano whatever the file, it is empty (tty1.conf for example, or inittab)
In all the guides they say to uncomment a line and add another, but all those files are empty for me.
Maybe it is because they refer to Debian and things change.
I have managed to make it work installing nodm.
Then I don't need to write my username nor password, and then, it auto startx (I added startx in .bash_profile), and finally takes me to i3-wm. I haven't installed a display manager (well, just nodm as the last option to try) nor desktop environment.
I would like to get it working without the need of installing a display manager (rungetty/mingetty/getty/whatever works and it's easy on resources)
Please if you know the steps that work for you and ubuntu, or a guide that I can follow I would appreciate it.
Thanks in advance
Note: nothing is encrypted
15.04 ubuntu-minimal auto-login
15.04 ubuntu-minimal auto-login
edited 10 mins ago
tom_len
asked Sep 28 '15 at 19:10
tom_lentom_len
982210
982210
So you're saying/etc/init/tty1.conf
is empty for you ? that's weird . . . It's not a difference between Debian or Ubuntu. By default there always should be init files. And autologin is simple just alter the lineexec /sbin/getty -8 38400 tty1
toexec /sbin/getty -a username -8 38400 tty1
– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:26
Yup, read that german wiki a little. The step is correct. Perhaps you are doing something wrong. Also , inAutomatischer Oberflächenstart nach Login
part I think it should be changed tostartx xfce4
notstartxfce4
, cuz that last command is non-existent
– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:29
By minimal installation, I should have specified that I am in fact using ubuntu mini.iso (MinimalCD). Yes, I am sure tty.conf was empty, and inittab empty too.
– tom_len
Sep 28 '15 at 19:37
Serg: I tried what you suggest but it doesn't work, I find myself in tty1 but I have to write my username and password. I re-tried the german wiki, but nothing. I have to write name and password
– tom_len
Sep 28 '15 at 20:00
Ok. So another possibility is that Ubuntu uses different system to start processes as of 15.04 . Init files belong to Upstart system but 15.04 uses systemd. Try this wiki.archlinux.org/index.php/Automatic_login_to_virtual_console
– Sergiy Kolodyazhnyy
Sep 28 '15 at 20:12
|
show 2 more comments
So you're saying/etc/init/tty1.conf
is empty for you ? that's weird . . . It's not a difference between Debian or Ubuntu. By default there always should be init files. And autologin is simple just alter the lineexec /sbin/getty -8 38400 tty1
toexec /sbin/getty -a username -8 38400 tty1
– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:26
Yup, read that german wiki a little. The step is correct. Perhaps you are doing something wrong. Also , inAutomatischer Oberflächenstart nach Login
part I think it should be changed tostartx xfce4
notstartxfce4
, cuz that last command is non-existent
– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:29
By minimal installation, I should have specified that I am in fact using ubuntu mini.iso (MinimalCD). Yes, I am sure tty.conf was empty, and inittab empty too.
– tom_len
Sep 28 '15 at 19:37
Serg: I tried what you suggest but it doesn't work, I find myself in tty1 but I have to write my username and password. I re-tried the german wiki, but nothing. I have to write name and password
– tom_len
Sep 28 '15 at 20:00
Ok. So another possibility is that Ubuntu uses different system to start processes as of 15.04 . Init files belong to Upstart system but 15.04 uses systemd. Try this wiki.archlinux.org/index.php/Automatic_login_to_virtual_console
– Sergiy Kolodyazhnyy
Sep 28 '15 at 20:12
So you're saying
/etc/init/tty1.conf
is empty for you ? that's weird . . . It's not a difference between Debian or Ubuntu. By default there always should be init files. And autologin is simple just alter the line exec /sbin/getty -8 38400 tty1
to exec /sbin/getty -a username -8 38400 tty1
– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:26
So you're saying
/etc/init/tty1.conf
is empty for you ? that's weird . . . It's not a difference between Debian or Ubuntu. By default there always should be init files. And autologin is simple just alter the line exec /sbin/getty -8 38400 tty1
to exec /sbin/getty -a username -8 38400 tty1
– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:26
Yup, read that german wiki a little. The step is correct. Perhaps you are doing something wrong. Also , in
Automatischer Oberflächenstart nach Login
part I think it should be changed to startx xfce4
not startxfce4
, cuz that last command is non-existent– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:29
Yup, read that german wiki a little. The step is correct. Perhaps you are doing something wrong. Also , in
Automatischer Oberflächenstart nach Login
part I think it should be changed to startx xfce4
not startxfce4
, cuz that last command is non-existent– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:29
By minimal installation, I should have specified that I am in fact using ubuntu mini.iso (MinimalCD). Yes, I am sure tty.conf was empty, and inittab empty too.
– tom_len
Sep 28 '15 at 19:37
By minimal installation, I should have specified that I am in fact using ubuntu mini.iso (MinimalCD). Yes, I am sure tty.conf was empty, and inittab empty too.
– tom_len
Sep 28 '15 at 19:37
Serg: I tried what you suggest but it doesn't work, I find myself in tty1 but I have to write my username and password. I re-tried the german wiki, but nothing. I have to write name and password
– tom_len
Sep 28 '15 at 20:00
Serg: I tried what you suggest but it doesn't work, I find myself in tty1 but I have to write my username and password. I re-tried the german wiki, but nothing. I have to write name and password
– tom_len
Sep 28 '15 at 20:00
Ok. So another possibility is that Ubuntu uses different system to start processes as of 15.04 . Init files belong to Upstart system but 15.04 uses systemd. Try this wiki.archlinux.org/index.php/Automatic_login_to_virtual_console
– Sergiy Kolodyazhnyy
Sep 28 '15 at 20:12
Ok. So another possibility is that Ubuntu uses different system to start processes as of 15.04 . Init files belong to Upstart system but 15.04 uses systemd. Try this wiki.archlinux.org/index.php/Automatic_login_to_virtual_console
– Sergiy Kolodyazhnyy
Sep 28 '15 at 20:12
|
show 2 more comments
1 Answer
1
active
oldest
votes
It seems you were right Serg, Ubuntu 15.04 now uses systemd, and apparently things have changed.
So I kept on searching now for systemd autologin and got it working.
I found this guide that served me well:
http://memo-linux.com/debian-8-systemd-autologin-sans-display-manager/
This is what I did:
sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/
sudo nano /etc/systemd/system/getty@tty1.service.d/autologin.conf
and edited the file as follows:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin username --noclear %I 38400 linux
Change "username" with yours.
Save and close (CTRL+O, CTRL+X)
Now:
systemctl enable getty@tty1.service
Write your password (I was asked twice)
That would be for the autologin part.
Next, to start X automatically, continue with this:
sudo nano ~/.bash_profile
and edit that file so it reads:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
Save and close (CTRL+O, CTRL+X)
(Source: wiki archlinux Autostart_X_at_login)
At this point I found another possibility for that file here:
https://unix.stackexchange.com/questions/42359/how-can-i-autologin-to-desktop-with-systemd
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx
fi
But I haven't tested it and I don't really know the difference, sorry.
In this last link they advised to do a last step
"You will have to modify your ~/.xinitrc to start your desktop environment, how to do that depends on the DE"
So I did:
sudo nano ~/.xinitrc
and added this line
exec i3
Save and close (CTRL+O, CTRL+X)
Last thing to do:
sudo reboot
Now it auto logins and auto starts X, and no display manager was needed.
I think I read if you already have a display manager you have to remove it first.
I hope this can be useful for you. Feel free to comment and improve it.
why is thereExecStart
twice? I've tested it with only oneExecStart
and it did not work. I'm curious
– Jossef Harush
yesterday
To tell you the truth, no idea. My answer was a compilation of the info I gathered when I was having this problem. I described what I tried and worked for me at the time. Maybe you can contact the creator of this blog here: link
– tom_len
15 mins ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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%2faskubuntu.com%2fquestions%2f679419%2fhow-to-make-auto-login-work-in-ubuntu-no-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
It seems you were right Serg, Ubuntu 15.04 now uses systemd, and apparently things have changed.
So I kept on searching now for systemd autologin and got it working.
I found this guide that served me well:
http://memo-linux.com/debian-8-systemd-autologin-sans-display-manager/
This is what I did:
sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/
sudo nano /etc/systemd/system/getty@tty1.service.d/autologin.conf
and edited the file as follows:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin username --noclear %I 38400 linux
Change "username" with yours.
Save and close (CTRL+O, CTRL+X)
Now:
systemctl enable getty@tty1.service
Write your password (I was asked twice)
That would be for the autologin part.
Next, to start X automatically, continue with this:
sudo nano ~/.bash_profile
and edit that file so it reads:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
Save and close (CTRL+O, CTRL+X)
(Source: wiki archlinux Autostart_X_at_login)
At this point I found another possibility for that file here:
https://unix.stackexchange.com/questions/42359/how-can-i-autologin-to-desktop-with-systemd
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx
fi
But I haven't tested it and I don't really know the difference, sorry.
In this last link they advised to do a last step
"You will have to modify your ~/.xinitrc to start your desktop environment, how to do that depends on the DE"
So I did:
sudo nano ~/.xinitrc
and added this line
exec i3
Save and close (CTRL+O, CTRL+X)
Last thing to do:
sudo reboot
Now it auto logins and auto starts X, and no display manager was needed.
I think I read if you already have a display manager you have to remove it first.
I hope this can be useful for you. Feel free to comment and improve it.
why is thereExecStart
twice? I've tested it with only oneExecStart
and it did not work. I'm curious
– Jossef Harush
yesterday
To tell you the truth, no idea. My answer was a compilation of the info I gathered when I was having this problem. I described what I tried and worked for me at the time. Maybe you can contact the creator of this blog here: link
– tom_len
15 mins ago
add a comment |
It seems you were right Serg, Ubuntu 15.04 now uses systemd, and apparently things have changed.
So I kept on searching now for systemd autologin and got it working.
I found this guide that served me well:
http://memo-linux.com/debian-8-systemd-autologin-sans-display-manager/
This is what I did:
sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/
sudo nano /etc/systemd/system/getty@tty1.service.d/autologin.conf
and edited the file as follows:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin username --noclear %I 38400 linux
Change "username" with yours.
Save and close (CTRL+O, CTRL+X)
Now:
systemctl enable getty@tty1.service
Write your password (I was asked twice)
That would be for the autologin part.
Next, to start X automatically, continue with this:
sudo nano ~/.bash_profile
and edit that file so it reads:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
Save and close (CTRL+O, CTRL+X)
(Source: wiki archlinux Autostart_X_at_login)
At this point I found another possibility for that file here:
https://unix.stackexchange.com/questions/42359/how-can-i-autologin-to-desktop-with-systemd
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx
fi
But I haven't tested it and I don't really know the difference, sorry.
In this last link they advised to do a last step
"You will have to modify your ~/.xinitrc to start your desktop environment, how to do that depends on the DE"
So I did:
sudo nano ~/.xinitrc
and added this line
exec i3
Save and close (CTRL+O, CTRL+X)
Last thing to do:
sudo reboot
Now it auto logins and auto starts X, and no display manager was needed.
I think I read if you already have a display manager you have to remove it first.
I hope this can be useful for you. Feel free to comment and improve it.
why is thereExecStart
twice? I've tested it with only oneExecStart
and it did not work. I'm curious
– Jossef Harush
yesterday
To tell you the truth, no idea. My answer was a compilation of the info I gathered when I was having this problem. I described what I tried and worked for me at the time. Maybe you can contact the creator of this blog here: link
– tom_len
15 mins ago
add a comment |
It seems you were right Serg, Ubuntu 15.04 now uses systemd, and apparently things have changed.
So I kept on searching now for systemd autologin and got it working.
I found this guide that served me well:
http://memo-linux.com/debian-8-systemd-autologin-sans-display-manager/
This is what I did:
sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/
sudo nano /etc/systemd/system/getty@tty1.service.d/autologin.conf
and edited the file as follows:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin username --noclear %I 38400 linux
Change "username" with yours.
Save and close (CTRL+O, CTRL+X)
Now:
systemctl enable getty@tty1.service
Write your password (I was asked twice)
That would be for the autologin part.
Next, to start X automatically, continue with this:
sudo nano ~/.bash_profile
and edit that file so it reads:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
Save and close (CTRL+O, CTRL+X)
(Source: wiki archlinux Autostart_X_at_login)
At this point I found another possibility for that file here:
https://unix.stackexchange.com/questions/42359/how-can-i-autologin-to-desktop-with-systemd
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx
fi
But I haven't tested it and I don't really know the difference, sorry.
In this last link they advised to do a last step
"You will have to modify your ~/.xinitrc to start your desktop environment, how to do that depends on the DE"
So I did:
sudo nano ~/.xinitrc
and added this line
exec i3
Save and close (CTRL+O, CTRL+X)
Last thing to do:
sudo reboot
Now it auto logins and auto starts X, and no display manager was needed.
I think I read if you already have a display manager you have to remove it first.
I hope this can be useful for you. Feel free to comment and improve it.
It seems you were right Serg, Ubuntu 15.04 now uses systemd, and apparently things have changed.
So I kept on searching now for systemd autologin and got it working.
I found this guide that served me well:
http://memo-linux.com/debian-8-systemd-autologin-sans-display-manager/
This is what I did:
sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/
sudo nano /etc/systemd/system/getty@tty1.service.d/autologin.conf
and edited the file as follows:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin username --noclear %I 38400 linux
Change "username" with yours.
Save and close (CTRL+O, CTRL+X)
Now:
systemctl enable getty@tty1.service
Write your password (I was asked twice)
That would be for the autologin part.
Next, to start X automatically, continue with this:
sudo nano ~/.bash_profile
and edit that file so it reads:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
Save and close (CTRL+O, CTRL+X)
(Source: wiki archlinux Autostart_X_at_login)
At this point I found another possibility for that file here:
https://unix.stackexchange.com/questions/42359/how-can-i-autologin-to-desktop-with-systemd
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx
fi
But I haven't tested it and I don't really know the difference, sorry.
In this last link they advised to do a last step
"You will have to modify your ~/.xinitrc to start your desktop environment, how to do that depends on the DE"
So I did:
sudo nano ~/.xinitrc
and added this line
exec i3
Save and close (CTRL+O, CTRL+X)
Last thing to do:
sudo reboot
Now it auto logins and auto starts X, and no display manager was needed.
I think I read if you already have a display manager you have to remove it first.
I hope this can be useful for you. Feel free to comment and improve it.
edited Apr 13 '17 at 12:37
Community♦
1
1
answered Sep 28 '15 at 22:27
tom_lentom_len
982210
982210
why is thereExecStart
twice? I've tested it with only oneExecStart
and it did not work. I'm curious
– Jossef Harush
yesterday
To tell you the truth, no idea. My answer was a compilation of the info I gathered when I was having this problem. I described what I tried and worked for me at the time. Maybe you can contact the creator of this blog here: link
– tom_len
15 mins ago
add a comment |
why is thereExecStart
twice? I've tested it with only oneExecStart
and it did not work. I'm curious
– Jossef Harush
yesterday
To tell you the truth, no idea. My answer was a compilation of the info I gathered when I was having this problem. I described what I tried and worked for me at the time. Maybe you can contact the creator of this blog here: link
– tom_len
15 mins ago
why is there
ExecStart
twice? I've tested it with only one ExecStart
and it did not work. I'm curious– Jossef Harush
yesterday
why is there
ExecStart
twice? I've tested it with only one ExecStart
and it did not work. I'm curious– Jossef Harush
yesterday
To tell you the truth, no idea. My answer was a compilation of the info I gathered when I was having this problem. I described what I tried and worked for me at the time. Maybe you can contact the creator of this blog here: link
– tom_len
15 mins ago
To tell you the truth, no idea. My answer was a compilation of the info I gathered when I was having this problem. I described what I tried and worked for me at the time. Maybe you can contact the creator of this blog here: link
– tom_len
15 mins ago
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f679419%2fhow-to-make-auto-login-work-in-ubuntu-no-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
So you're saying
/etc/init/tty1.conf
is empty for you ? that's weird . . . It's not a difference between Debian or Ubuntu. By default there always should be init files. And autologin is simple just alter the lineexec /sbin/getty -8 38400 tty1
toexec /sbin/getty -a username -8 38400 tty1
– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:26
Yup, read that german wiki a little. The step is correct. Perhaps you are doing something wrong. Also , in
Automatischer Oberflächenstart nach Login
part I think it should be changed tostartx xfce4
notstartxfce4
, cuz that last command is non-existent– Sergiy Kolodyazhnyy
Sep 28 '15 at 19:29
By minimal installation, I should have specified that I am in fact using ubuntu mini.iso (MinimalCD). Yes, I am sure tty.conf was empty, and inittab empty too.
– tom_len
Sep 28 '15 at 19:37
Serg: I tried what you suggest but it doesn't work, I find myself in tty1 but I have to write my username and password. I re-tried the german wiki, but nothing. I have to write name and password
– tom_len
Sep 28 '15 at 20:00
Ok. So another possibility is that Ubuntu uses different system to start processes as of 15.04 . Init files belong to Upstart system but 15.04 uses systemd. Try this wiki.archlinux.org/index.php/Automatic_login_to_virtual_console
– Sergiy Kolodyazhnyy
Sep 28 '15 at 20:12