You will have to modify your ~/.xinitrc to start your desktop environment, how to do that depends on the DE and is probably described in the ArchWiki as well. If you then want to automatically start X, insert the following snippet into your ~/.bash_profile (taken from the wiki again): if ] & ] then Systemctl start not sure if the service will start properly if you're already logged in on tty1, the safest way is probably to just reboot instead of starting the service). Now you only have to tell systemd to reload its daemon files and start the service: systemctl daemon-reload The difference between the ExecStart line in and is only the -a USERNAME which tells agetty to log the user with the username USERNAME in automatically. To do that, you only need to change the ExecStart line to read ExecStart=-/sbin/agetty -a USERNAME %I 38400 You will then have to symlink that to the getty service for the tty on which you want to autologin, for examply for tty1: ln -s to now, this is still the same as the usual file, but the most important part is to modify the to actually log you in automatically. usr/lib/systemd/system contains unit files provided by packages so you shouldn't change anything in there. It is copied to /etc/systemd/system because that's where site-specific unit files are stored. Create a new service file similar to by copying it to /etc/systemd/system/ cp basically copies the already existing to a new file which can be freely modified.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |