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.
Question 1. Why don't I see these sayings that appear after logging in to Slack? I see only the "You have mail message" and nothing more. No that I can't live without them, but that's strange.
Question 2. If I change the default runlevel to 4, log in and try to switch to a virtual console (Ctrl+Alt+2,3,4,5). I see only a black screen and a blinking cursor. No prompt or anything. If I press Ctrl+Alt+1 I can see the system messages, and Ctrl+Alt+6 brings me to tty6. Why can't I see the 2nd, 3rd, etc. console?
Question 3: If the default runlevel is 3, how do I shutdown the computer without logging? I mean before I enter my login and password.
1) You should install fortune part of the bsd-games, so far it's the only thing found in the 'y' directory on the install disk 'slackware/y'.
For #2 and #3, open up '/etc/inittab'. Here are the relevant parts of mine:
2)
Code:
# Runlevel 4 used to be for an X window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
x1:4:respawn:/etc/rc.d/rc.4
That's the tty6 you see, the only one made available here for init level 4.
3)
Mine says:
Code:
# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -h now
which halts the machine on pressing 'Ctrl-Alt-Del'.
Yours probably says (the default):
Code:
# What to do at the "Three Finger Salute".
ca::ctrlaltdel:/sbin/shutdown -t5 -r now
which restarts the machine on pressing 'Ctrl-Alt-Del' after 5 sec pause.
That's the way I shutdown my machine from init level 3. Don't know about other people's solution.
Question 1. Why don't I see these sayings that appear after logging in to Slack? I see only the "You have mail message" and nothing more. No that I can't live without them, but that's strange.
(Asuming you are actually login through console, or are starting a login shell somehow) Make sure you installed the bsd-games package, and that /etc/profiles.d/bsd-games-login-fortune.sh is executable.
Quote:
Question 2. If I change the default runlevel to 4, log in and try to switch to a virtual console (Ctrl+Alt+2,3,4,5). I see only a black screen and a blinking cursor. No prompt or anything. If I press Ctrl+Alt+1 I can see the system messages, and Ctrl+Alt+6 brings me to tty6. Why can't I see the 2nd, 3rd, etc. console?
By default, slackware runlevel 4 only gives you a login on tty6. You can change this in the /etc/inittab file:
(starting at line ~50)
Code:
# These are the standard console login getties in multiuser mode:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
The parts in bold are what you need to add to enable logins in tty1-5 at runlevel 4.
Quote:
Question 3: If the default runlevel is 3, how do I shutdown the computer without logging? I mean before I enter my login and password.
If you have ACPI/APM enabled and properly working just press the power button.
Thank you, Alien_Hominid and Lufbery. One more question. What should I do to get a program start during Linux booting. As far as I understand, I should add some lines to a startup scenario. Where is this scenario? Is /etc/rc.d/rc.S what I need?
The file to put startup commands to be run is '/etc/rc.d/rc.local' for shutdown it is '/etc/rc.d/rc.local_shutdown'.
There are some exceptions in which you may need to put them elsewhere, but these are the recommended places for most things you would need to startup on booting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.