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.
Yesterday I've finally installed Slackware 12.0, and it looks GREAT
I would like to configure a couple of things to make it perfect:
- When I start the PC I need to press ENTER for the boot to start when it prompts me for "boot:". How can I skip this and make the Slackware start automatically?
- After Slackware loads it remains in command-line mode, which makes me login and then execute startx. How can I make startx to start automacally before I login, when Slackware finished loading?
- Since this PC is meant to be a remote station without any screen, keyboard or mouse, I need VNC to control it. But currently I need to login and then start vncserver. How can I start vncserver automatically before I login, and login only though the VNC?
For the first problem, you'll need to edit /etc/lilo.conf and change the timeout field to 0. After doing this, you'll need to run /sbin/lilo for the changes to take effect. Both editing the file and running lilo will need to be done as root.
For the second problem, you'll need to change your default runlevel to 4. This can be done by editing /etc/inittab and changing the line "id:3:initdefault:" to "id:4:initdefault:". Again, you'll need to be root to edit the file.
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
Quote:
- Since this PC is meant to be a remote station without any screen, keyboard or mouse, I need VNC to control it. But currently I need to login and then start vncserver. How can I start vncserver automatically before I login, and login only though the VNC?
You will need to add the command that start vnc to /etc/rc.d/rc.local
for e.g if it is 'vncserver'
do in bash shell
Quote:
#which vncserver
#vim /etc/rc.d/rc.local
add the output of which vncserver to a new line in rc.local
- Since this PC is meant to be a remote station without any screen, keyboard or mouse, I need VNC to control it. But currently I need to login and then start vncserver. How can I start vncserver automatically before I login, and login only though the VNC?
I've never done this, but I would think adding the appropriate vncserver command to /etc/rc.d/rc.local would do the trick (make sure /etc/rc.d/rc.local is executable). Then, the command will be executed when the machine is turned on, allowing you to connect remotely.
For the first problem, you'll need to edit /etc/lilo.conf and change the timeout field to 0. After doing this, you'll need to run /sbin/lilo for the changes to take effect. Both editing the file and running lilo will need to be done as root.
You may want to set it to 5 or 10, to give you a chance to boot a different kernel or different OS on the same machine. On the other hand if 5 seconds is too long...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.