Difference between revisions of "Talk:Automatic login to virtual console"

From ArchWiki
Jump to: navigation, search
($TERM: new section)
 
(31 intermediate revisions by 11 users not shown)
Line 1: Line 1:
== <s> Killing X </s> ==
+
== Instructions here won't work ==
  
I don't have any problems with X automatically restarting after I kill it. I have autologin configured and then I start X using {{ic|startx}}. Maybe this user is running a graphical display manager or a default target of {{ic|graphical.target}}?<br>
+
Basically nothing happens, I'm not logined automatically. -- [[User:Arokux|Arokux]] ([[User talk:Arokux|talk]]) 20:26, 22 September 2013‎ (UTC)
-- [[User:Jstjohn|Jstjohn]] ([[User talk:Jstjohn|talk]]) 21:51, 20 December 2012 (UTC)
+
  
:That sounds about right. If an autologin is also triggering gdm, or even just calling startx automatically, that would be an issue. However, that's not exactly important to the article as a whole. Stopping X from booting is only an issue if you've already set up X to automatically boot, which, as stated in the article, is discussed elsewhere.
+
:Please be more specific about your problem, if any - I can see that you made [https://wiki.archlinux.org/index.php?title=Automatic_login_to_virtual_console&diff=276380&oldid=276375 some edits] to the page just a few hours later, so is the issue solved? -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 12:28, 29 December 2013 (UTC)
  
:-- [[User:Willrandship|Willrandship]] ([[User talk:Willrandship|talk]]) 12:24, 26 January 2013 (UTC)
+
:this did not work for me either. I found that this did: http://unix.stackexchange.com/questions/42359/how-can-i-autologin-to-desktop-with-systemd update this page? --[[User:Wash|Wash]] ([[User talk:Wash|talk]]) 03:16, 2 October 2014 (UTC)
:: It is removed. Close. -- [[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 12:54, 12 February 2013 (UTC)
+
 
 +
::The page you provided links back to this page as a primary resource, so the instructions are virtually the same. What is the difference that this page is missing? -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 20:31, 18 October 2014 (UTC)
 +
 
 +
:::Same here, I use the stackexchange page to get it working. The service file in the SE page has some differences with the one described in the wiki: the path is different and the service is not written from scratch but is a modified version of /usr/lib/systemd/system/getty@.service. I can sketch an update for this page if needs be. [[User:Jnbd|Jnbd]] ([[User talk:Jnbd|talk]]) 08:57, 25 October 2014 (UTC)
 +
 
 +
::::I still do not understand what is wrong with the instructions on this page, they work for me:
 +
::::# {{ic|(tty1) $ mkdir /etc/systemd/system/getty@tty2.service.d/}}
 +
::::# {{ic|(tty1) $ vim /etc/systemd/system/getty@tty2.service.d/autologin.conf}} and paste the suggested content, remember to edit the {{ic|''username''}}.
 +
::::# {{ic|(tty1) $ systemctl daemon-reload}}
 +
::::# {{ic|(tty1) $ systemctl stop getty@tty2.service}}
 +
::::Now, when I switch to tty2, I am automatically logged in.
 +
::::-- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 18:14, 25 October 2014 (UTC)
 +
 
 +
== $TERM ==
 +
 
 +
[https://wiki.archlinux.org/index.php?title=Automatic_login_to_virtual_console&diff=next&oldid=411976 This edit] added {{ic|$TERM}} to the agetty's command line. It is also present in {{ic|/usr/lib/systemd/system/getty@.service}}, but as far as I can see, it is unused, in which case I don't see a reason to keep {{ic|$TERM}} on the wiki page for the sake of simplicity. The two relevant commits [https://github.com/systemd/systemd/commit/7cae38c4fa51a56cd13ff028278efe7fae3c222c], [https://github.com/systemd/systemd/commit/ccf22d4a104e6ed2666d6c5b4031981a84787790] are rather confusing, because in the first commit {{ic|$TERM}} is used only in the commit message. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 20:11, 19 January 2016 (UTC)

Latest revision as of 20:11, 19 January 2016

Instructions here won't work

Basically nothing happens, I'm not logined automatically. -- Arokux (talk) 20:26, 22 September 2013‎ (UTC)

Please be more specific about your problem, if any - I can see that you made some edits to the page just a few hours later, so is the issue solved? -- Lahwaacz (talk) 12:28, 29 December 2013 (UTC)
this did not work for me either. I found that this did: http://unix.stackexchange.com/questions/42359/how-can-i-autologin-to-desktop-with-systemd update this page? --Wash (talk) 03:16, 2 October 2014 (UTC)
The page you provided links back to this page as a primary resource, so the instructions are virtually the same. What is the difference that this page is missing? -- Lahwaacz (talk) 20:31, 18 October 2014 (UTC)
Same here, I use the stackexchange page to get it working. The service file in the SE page has some differences with the one described in the wiki: the path is different and the service is not written from scratch but is a modified version of /usr/lib/systemd/system/getty@.service. I can sketch an update for this page if needs be. Jnbd (talk) 08:57, 25 October 2014 (UTC)
I still do not understand what is wrong with the instructions on this page, they work for me:
  1. (tty1) $ mkdir /etc/systemd/system/getty@tty2.service.d/
  2. (tty1) $ vim /etc/systemd/system/getty@tty2.service.d/autologin.conf and paste the suggested content, remember to edit the username.
  3. (tty1) $ systemctl daemon-reload
  4. (tty1) $ systemctl stop getty@tty2.service
Now, when I switch to tty2, I am automatically logged in.
-- Lahwaacz (talk) 18:14, 25 October 2014 (UTC)

$TERM

This edit added $TERM to the agetty's command line. It is also present in /usr/lib/systemd/system/getty@.service, but as far as I can see, it is unused, in which case I don't see a reason to keep $TERM on the wiki page for the sake of simplicity. The two relevant commits [1], [2] are rather confusing, because in the first commit $TERM is used only in the commit message. -- Lahwaacz (talk) 20:11, 19 January 2016 (UTC)