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

From ArchWiki
Jump to: navigation, search
(I have agetty in a different place: Close.)
($TERM: new section)
 
(26 intermediate revisions by 8 users not shown)
Line 1: Line 1:
== <s> I have agetty in a different place </s> ==
+
== Instructions here won't work ==
  
In case anyone else had trouble with these instructions, I had to modify them slightly to get it to work. This might be because my installation is a few years old and predates systemd, but I do not have anything at /usr/bin/agetty. I just replaced it with /sbin/agetty, and I was good to go.
+
Basically nothing happens, I'm not logined automatically. -- [[User:Arokux|Arokux]] ([[User talk:Arokux|talk]]) 20:26, 22 September 2013‎ (UTC)
--[[User:Quickthom|Quickthom]] ([[User talk:Quickthom|talk]]) 00:19, 22 July 2013 (UTC)
+
 
: sbin is merget to /usr/bin. See [https://www.archlinux.org/news/binaries-move-to-usrbin-requiring-update-intervention/ this]. -- [[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 02:01, 3 August 2013 (UTC)
+
: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)
 +
 
 +
: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)
 +
 
 +
::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)