You are not logged in.
Pages: 1
Hello, I remember that when I was running some other distro I got some random quote every time i logged in, I thought this would be a nice thing to have, but i can't find anything because when i search for things about quotes i only find things bout programming and the " mark.
Does anybody know how to do this?
Offline
There's a program called fortune that prints a random quote every time you run it. There's also lots of mods with different quotations to download. You can add it in your .bashrc or .profile file to have it run every time you log in.
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
man motd
Offline
However, unless I'm wrong, you can't display a random quote with motd. I remember adding some command only to have the command printed at login. Actually, coming to think about it, I didn't tell it to run with an interpreter. I'll try it out and get back to you.
[edit]
Nope. Couldn't get it to work. I think you have to do it with an external program.
[/edit]
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
Fortune seemed fine, but i don't want it every time i start a terminal.
only way i could find to make motd show a fortune message was to run 'fortune > /etc/motd' at startup, but that will only give me a new quote every time i reboot.
Offline
Then put it in /etc/profile. That script only runs every time you login.
If you must have must. Have must.
- DKE supporters about this wonderful swedish soda.
Offline
ah, perfect, thanks!
Offline
Pages: 1