Unix Technical Forum

fortunes

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 11:47 AM
ad heijblom
 
Posts: n/a
Default fortunes

Hi,

There is one thing in Slackware that irritates me, the fortunes I get in
my terminal. How to get rid of it?
And one other question, why is there no bashrc? (Sorry, a Slackware newbie
as you see).

With kind regards,
ad heijblom.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 11:47 AM
No_One
 
Posts: n/a
Default Re: fortunes

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 11:47 AM
Lew Pitcher
 
Posts: n/a
Default Re: fortunes

-----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-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 11:47 AM
Keith Keller
 
Posts: n/a
Default Re: fortunes

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 11:47 AM
No_One
 
Posts: n/a
Default Re: fortunes

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 11:47 AM
Thomas Overgaard
 
Posts: n/a
Default Re: fortunes

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 11:47 AM
Realto Margarino
 
Posts: n/a
Default Re: fortunes

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 11:47 AM
Realto Margarino
 
Posts: n/a
Default Re: fortunes

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 11:47 AM
Krzysiek
 
Posts: n/a
Default Re: fortunes

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 11:47 AM
Keith Keller
 
Posts: n/a
Default setting terminal

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com