This is a discussion on fortunes within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, There is one thing in Slackware that irritates me, the fortunes I get in my terminal. How to ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| On 2005-10-27, ad heijblom <ahey36@wanadoo.nl> wrote: > Hi, > > There is one thing in Slackware that irritates me, the fortunes I get in > my terminal. How to get rid of it? probably a grep of the /etc/rc.d directory will give you the answer. cd /etc/rc.d grep -iR fortune * > And one other question, why is there no bashrc? (Sorry, a Slackware newbie > as you see). There is no bashrc, there is, however a .bashrc in your home directory....if not just make one....but there should be one. ken |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 No_One wrote: > On 2005-10-27, ad heijblom <ahey36@wanadoo.nl> wrote: > >>Hi, >> >>There is one thing in Slackware that irritates me, the fortunes I get in >>my terminal. How to get rid of it? > > > probably a grep of the /etc/rc.d directory will give you the answer. > > cd /etc/rc.d > grep -iR fortune * No. fortune is in /etc/profile, or one (or more) of the /etc/profile.d/ files (depending on the age of your Slackware installation). > >>And one other question, why is there no bashrc? (Sorry, a Slackware newbie >>as you see). > > > There is no bashrc, there is, however a .bashrc in your home directory....if > not just make one....but there should be one. ..bashrc is just one of the 4 or 5 initialization files that bash uses. The bash(1) manpage ("man 1 bash") tells you all the files that are (or can be) used for initialization. They include /etc/profile ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc ~/.bash_logout - -- Lew Pitcher IT Specialist, Enterprise Data Systems, Enterprise Technology Solutions, TD Bank Financial Group (Opinions expressed are my own, not my employers') -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) iD8DBQFDYRkCagVFX4UWr64RAjDcAJ9APMYLsU2llIIwh/2qq/9vShisYACgyTcz mYvHZ82NbM3buksuPIVNH5w= =wtID -----END PGP SIGNATURE----- |
| |||
| On 2005-10-27, ad heijblom <ahey36@wanadoo.nl> wrote: > > There is one thing in Slackware that irritates me, the fortunes I get in > my terminal. How to get rid of it? http://wombat.san-francisco.ca.us/cgi-bin/fom?file=16 > And one other question, why is there no bashrc? (Sorry, a Slackware newbie > as you see). Because Slackware lets you make your own if you want it. Make sure you understand when each .bash* file is called (.bash_profile, .bashrc, ..profile, /etc/profile, /etc/bashrc); this is in the man page for bash, but post if you don't understand it. --keith -- kkeller-usenet@wombat.san-francisco.ca.us (try just my userid to email me) AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom see X- headers for PGP signature information |
| |||
| On 2005-10-27, Lew Pitcher <Lew.Pitcher@td.com> wrote: > > No_One wrote: >> On 2005-10-27, ad heijblom <ahey36@wanadoo.nl> wrote: >> >>>Hi, >>> >>>There is one thing in Slackware that irritates me, the fortunes I get in >>>my terminal. How to get rid of it? >> >> >> probably a grep of the /etc/rc.d directory will give you the answer. >> >> cd /etc/rc.d >> grep -iR fortune * > > No. fortune is in /etc/profile, or one (or more) of the /etc/profile.d/ files > (depending on the age of your Slackware installation). Yep, grep -i /etc would have been correct, nopt grep -i /etc/rc.d > > .bashrc is just one of the 4 or 5 initialization files that bash uses. > The bash(1) manpage ("man 1 bash") tells you all the files that are (or can be) > used for initialization. They include > /etc/profile > ~/.bash_profile > ~/.bash_login > ~/.profile > ~/.bashrc > ~/.bash_logout > He asked specifically about the bashrc, I pointed him to the .bashrc in his home directory...I'm aware of the other files. I answered the question as it was posed, why confuse a newbie with other start up files. To my knowledge, slack doesn't use a /etc/bashrc (at least now)...however, distros like mandrake do or did ... hence the pointer to .bashrc. ken |
| |||
| ad heijblom wrote: > Sorry, a Slackware newbie as you see Then let me introduce you to the "Good Book": <URL: http://www.slackbook.org/> And of cause the FAQ of this group: <URL: http://wombat.san-francisco.ca.us/faqomatic/cache/1.html> Two entries of interest from the FAQ: <URL: http://wombat.san-francisco.ca.us/faqomatic/cache/114.html> <URL: http://wombat.san-francisco.ca.us/faqomatic/cache/16.html> -- Thomas O. This area is designed to become quite warm during normal operation. |
| |||
| Lew Pitcher wrote: pgp trash troll delete Could you please place your pgp headers and sig in your message's X-header? For an example on how to do this, you could look at Keith Milner's postings. I think you will find that if you do bury your pgp info then you will find more knowledgeable people will be ready to discuss your problems with you. Thank you for your consideration. cordially, as always, rm |
| |||
| Thomas Overgaard wrote: > ad heijblom wrote: > >> Sorry, a Slackware newbie as you see > > Then let me introduce you to the "Good Book": > <URL: http://www.slackbook.org/> The "Good Book" is not a very good back, in reality, so don't feel alone in your disappointment. The "Good Book" was put together by a couple of trolls who have shown us a merely intermediate knowledge of linux. There is a lot of monkey-see-monkey-do in the "good book" and that kind of "thought" leads to lots of mistakes. cordially, as always, rm |
| |||
| Hi I have got a simple question. I have a slackware powered small server, I use old mono 14" CRT so each time I login on my machine I must export TERM=linux-m to see anything (`mc` etc):-) I know that .bashrc will do the job BUT... I also login remotly via ssh (putty) and this would affect putty session too :-( Login at the computer - term linux-m Login via SSH - term linux-color How can I do that? TIA |
| ||||
| Please put the subject of your post in the Subject: of your post. On 2005-10-27, Krzysiek <none@none.nieto.pl> wrote: > > I have a slackware powered small server, I use old mono 14" CRT so each time > I login on my machine I must export TERM=linux-m to see anything (`mc` > etc):-) > > I know that .bashrc will do the job BUT... I also login remotly via ssh > (putty) and this would affect putty session too :-( > > Login at the computer - term linux-m > Login via SSH - term linux-color > > How can I do that? You might be able to look for SSH_ variables in your environment and set term depending on whether you see those variables or not. If, say, local is more predominant than remote, set your term to linux-m in ..bashrc (or .bash_profile or .profile), then test for SSH_CLIENT (for example) and, if it exists, set terminal to linux-color. There may be a better way, too. --keith -- kkeller-usenet@wombat.san-francisco.ca.us (try just my userid to email me) AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom see X- headers for PGP signature information |