SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i wanted to auto login as a normal user at boot time so i tried:
nano /etc/rc.d/rc.local
adding su - username
sucess
but i can`t run local commands here right?
but know i also want to be able tu run a program, noip+opendchub. tried that ~/.profile tip but did not work.
is there a way i can run programs/commands automatically?
because i just want to press the power button and then let the machine do its job...
thanks
Doesn't it work just putting the names of the programs in rc.local after su - <user>? IE:
su - dive
/usr/bin/noip
/usr/bin/opendchub
??
those are the programs that i am trying to run...
it won`t work if i try to run as a user, it will only work as a daemon...those su - user commands do not work...
/etc/rc.d/rc.local is like this know
Code:
noip
sleep 20
opendchub
i am running the programs as daemons, since i have not found a way to do run them trough a user
i am running the programs as daemons, since i have not found a way to do run them trough a user
The reason you have to run them as daemons is a normal user does not have permissions to execute binaries or scripts outside there home directory. The rc.local file is executed by root so everything placed in there will run with root permissions.
As for autologin, KDE and Gnome have an autologin feature, if you not using them you could try uing the /etc/inittab file to autologin
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.