[ an / co / v / t ] [ e / r / sp ] [ p / s ] [ All / Recent / RSS ] [ FAQ / IRC / Rules / Legal / News ] [ Twitter ] [ Mod ]

/t/ - Technology

Gadzooks, Moosic, Compooters, and Cyberpunk
Name
Email
Subject
Comment
File
Embed
Password (For file deletion.)

File: 1516151211375.jpg (104.61 KB, 1280x720, 1.jpg)

 No.1570

Hey anons, there's a way to startx automatically on login? I've read that you have to modify /etc/inittab, but I don't have it. I also couldn't find ~/.bash_profile nor /etc/systemd/system/getty@tty1.service.d/override.conf.

 No.1571

First copy your default profile. (this is so you can restore it in a worst case scenario)

>sudo cp /etc/skel/.profile ~/


Then use your favorite editor to modify the profile. In this example we will use nano, because we aren't retards adamantly against the advancement of editors.

>nano ~/.profile


Then add the following somewhere in the document. Typically you want to place it at the end of the document, so it's easy to find and modify in case there are any errors. I won't use green text, so you can copy/paste it if that's your preference. The first line is a comment so that you can identify what the script below it does.

#Startx Automatically
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
. startx
logout
fi

 No.1572

>>1571

Also, in case it isn't obvious, you should reboot afterwards, so that x can start after login. Hope this helps.

 No.1573

>>1571
Thanks you anon, but unfortunately that didn't work.
I also read about installing gdm and then do
#update-rc gdm defaults
but I'm not sure about it, nor about:
"I think you should install and use nodm, “an automatic display manager which automatically starts an X session at system boot”. It is extremely lightweight and works like a charm.

Create the file /etc/sv/nodm/conf and add the configuration like this:
NODM_USER='{username}' NODM_XSESSION='/home/{username}/.xinitrc

Additionally, your .xinitrc has to be executable in order to work with nodm (chmod 555)."

 No.1574

>>1573
Have you tried Ubuntu ?

 No.1575

>>1574
I've installed a basic Debian.

 No.1576

>>1570
Use a display manager such as sddm, or install gentoo.

 No.1577

>>1575
https://askubuntu.com/questions/834003/how-to-get-lightdm-automatically-started-at-startup-after-disabling-it-in-ubunt/834009

you could try lightdm. this was helpful for me when i was getting it set up. systemctl enable lightdm is the command to enable the daemon, and subsequently an x session, all that you need to figure out is adding it to startup via systemctl



[Return][Go to top] [Catalog] [Post a Reply]
Delete Post [ ]
[ an / co / v / t ] [ e / r / sp ] [ p / s ] [ All / Recent / RSS ] [ FAQ / IRC / Rules / Legal / News ] [ Twitter ] [ Mod ]