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.
yes, edit your inittab. instead of getty you can run your own program on any tty.
putting top there makes some sense. next to it you could pipe your syslog messages.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Hi gbowden, can't really help but would like to know how you send messages and your firewall logs to other virtual consoles. If I am thinking correctly you would hit Alt-Ctrl-F9 to get to the virtual console.
I'm using Arno's iptables so it might be different for you.
Here is the parts from my /etc/rc.d/rc.local file:
Code:
# Set tty10 to full screen.
stty -F /dev/tty10 rows 48 columns 128
# Start logging of firewall on tty10.
echo "Firewall logging show on tty10."
tail --follow /var/log/firewall | arno-fwfilter >/dev/tty10 &
# Set tty9 to full screen.
stty -F /dev/tty9 rows 48 columns 128
# Start logging of /var/log/messages on tty9.
echo "/var/log/messages shown on tty9."
tail --follow /var/log/messages >/dev/tty9 &
# Set tty11 to full screen.
stty -F /dev/tty11 rows 48 columns 128
# Start tcpdump on tty11
echo "tcpdump shown on tty11."
tcpdump -vv >/dev/tty11 &
I had to use the stty command to set the virtual terminals to the correct rows and columns.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Thanks for the info. Just playing around I can send top to tty2 using the command ' top -s > /dev/tty ' like you tried in the first post except you used tty12. As long as the tty is already defined I think it should work. Working from a centos system my tty's are defined in /etc/inittab. Not sure where Slackware is doing it. I have the default 6 defined 1-6 and the gui for the 6 at 7-12. How the 7-12 are defined I am not sure. To me once you have all tty defined. Just a thought there might be something other that just a plain tty there on 12. A thught it might be attached to a second gui tty.
If you are not using tty2 or something try sending it to one of the lower ones and see if it works. You could kill one of the tty9 or 10 ones and send to one of them.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Have you tried this. Send what ever is going to tty10 to tty12 and what you want on tty12 to tty10. If it does the same either way not using tty12 for either I am at a lost then.
Haven't seen anything different in your rc.local file. Does creating a basic tty12 and then using rc.local to start top and redirect it to tty12 work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.