Configuring xinitrc to spawn virtual term and display MOTD on Debian Stretch
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
Configuring xinitrc to spawn virtual term and display MOTD on Debian Stretch
Hey guys,
was wondering if anyone knew how to configure xinitrc in such a way that I could display some sort of MOTD in a virtual terminal that is spawned when x11 is started. The use case here is to display a todo list in the terminal when I startup X11.
What I actually meant by "virtual terminal" was "psuedo terminal". I was under the impression that when logging on through a virtual terminal (/dev/tty#) /etc/motd is read, however for any given psuedo terminal (/dev/pts/#) spawned under the virtual terminal /etc/motd
isn't read. I'm assuming rlogin reads from /etc/motd, which isn't called when spawning a new psuedo terminal.
I've tried to simulate some sort of MOTD within xinitrc by redirecting output to the appropriate /dev/pts/# but nothing shows up when done using xinitrc.
so you want that motto of the day only once after logging into the graphic session?
why don't you just open a terminal that executes a script that prints that out?
via xinitrc, or via your window manager's / desktop environment's startup mechanism?
Quote:
Originally Posted by dracut
I've tried to simulate some sort of MOTD within xinitrc by redirecting output to the appropriate /dev/pts/# but nothing shows up when done using xinitrc.
so you want that motto of the day only once after logging into the graphic session?
Exactly, it would be shown in the first psuedo terminal (/dev/pts/0).
Quote:
Originally Posted by ondoho
why don't you just open a terminal that executes a script that prints that out?
via xinitrc, or via your window manager's / desktop environment's startup mechanism?
This is what I am attempting to do, though I am not sure if I am doing it correctly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.