LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-21-2002, 02:59 AM   #1
pathogenik
LQ Newbie
 
Registered: Apr 2002
Location: OHIO
Distribution: slackware 8.0
Posts: 26

Rep: Reputation: 15
couple O' questions


hello,

these should be pretty easy to answer for whoever decides to partake in this thread.
you know when ya log into slack and under your last login time it says "you have mail"...? well i was just wondering how i *read* that mail. i can't help it i was born a .
next up , when my login promp pops up after either i boot up or i logout, i would like it to clear the screen befor asking me to login. Is there a file i could modify to add a simple *clear* command to? (running bash)
Thanks a lot in advance to whoever jumps in. It took me 20 minutes just to write my cdrom and floppy into /etc/fstab, but I *refuse* to give up.

p.s you guys were right...i like slack *way* better than mandrake....and i cant even get X to install!!! ...it's more hands on...(this doesn't count...)

{pathogenik};
 
Old 04-21-2002, 03:11 AM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
On my system you just run the program "mail"
 
Old 04-21-2002, 09:49 AM   #3
SticklerThe1st
Member
 
Registered: Apr 2002
Location: Missouri
Distribution: Slackware 8.0
Posts: 46

Rep: Reputation: 15
Clear

To clear the screen on first login just edit /etc/rc.d/rc.local and add clear
rc.local will run anything you tell it to on bootup.
I have it run ppp-go, and I have it load a few modules etc.

Last edited by SticklerThe1st; 04-21-2002 at 09:50 AM.
 
Old 04-21-2002, 12:19 PM   #4
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
no, i thinnk what he meant is to clear the screen when he logouts, so the person who logins after him cant see what was the last thing he did. A script that should run on logout, after BASH is closed and before the login respawns, something that will clear the screen, so no one can see last couple of commands entered by the person who just logged out.
I was looking for something like that too, cuz its really annoying having to clear screen before logging out...
Any ideas how to do this?
-nskl
 
Old 04-21-2002, 12:55 PM   #5
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Er... mail is the oldest, meanest e-mail client left. You might want to try: pine, elm or mutt... all of which usually turn up as defaults on my systems.

A call to clearscreen on exit is probably somewhere in init... It bothered me too when I switched to Slack... I just looked around for it and gave up rather quickly. Hmm...


Cheers,

Finegan
 
Old 04-21-2002, 01:30 PM   #6
pathogenik
LQ Newbie
 
Registered: Apr 2002
Location: OHIO
Distribution: slackware 8.0
Posts: 26

Original Poster
Rep: Reputation: 15
'mail' was the first thing i tried..."command not found" tried typing pine, elm, and mutt and got the same thing...maybe they're not installed..?

added 'clear' to rc.local, that fixed it THANKS

i will try and look around for that logout file...

Got another quick question too...
is it possible to edit my *user's* $PATH so that i could type 'halt' and 'reboot' without having to login as root? if so..what path would i include..?

--pathogenik
 
Old 04-21-2002, 02:07 PM   #7
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
/usr/sbin/shutdown is what get's called... however, from the console itself, the 3 finger salute calls shutdown properly under any user, but its set for -r (reboot). That is in one of the rc's too.

Cheers,

Finegan
 
Old 04-21-2002, 02:12 PM   #8
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
As for mail, you will want to install those email packages since it seems you don't have them. Just pop in the install CD, look at the FILE_LIST and find wich dir and filname you will want to install by doing installpkg filename.tgz
As for halt and reboot, that's a permission thing. Only root can do that, unless decide to add a user to the sudoers file and let them have the correct permissions to do this. Type man sudoers to get the low-down on that.
 
Old 04-21-2002, 02:15 PM   #9
alim
Member
 
Registered: Mar 2001
Location: Frankfurt
Distribution: slackware-current
Posts: 50

Rep: Reputation: 15
Lightbulb

Try 'mailx'. I used to read mail using it on a crazy ol' machine at university. Very gnarly. Obviously I don't use it now, but it may be what you're looking for to read your mail spool, although any other program like mutt should do it.

ciao
 
Old 04-21-2002, 07:16 PM   #10
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Taz, dude, no kidding; any user, or even the machine just sitting there like a wet sock, can give the machine the 3 finger salute. It runs by keytrap. I know RH and Slack both have this feature. I think most of the other distro's do as well.

Word,

Finegan
 
Old 04-22-2002, 02:42 AM   #11
pathogenik
LQ Newbie
 
Registered: Apr 2002
Location: OHIO
Distribution: slackware 8.0
Posts: 26

Original Poster
Rep: Reputation: 15
Thumbs up thank ya

mail packages weren't installed...one is now.

changed inittab to
ca::ctrlaltdel:/sbin/shutdown -h now
all by myself!!!

...mother would be proud

still gonna mess with 'visudo' for the hell of it

thanks for the help boys/girls

--pathogenik
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Couple questions. kuplo Linux - Newbie 0 11-26-2005 11:48 AM
couple of questions?? Lucas10 Linux - Newbie 23 06-04-2005 06:45 PM
a Couple of questions! Nik0s Linux - Newbie 14 01-25-2004 12:01 PM
Just a couple of questions... LI-6Y LUCY Linux - Newbie 4 09-07-2003 10:33 AM
A couple questions aceman817 Linux - Networking 2 04-25-2001 07:02 PM


All times are GMT -5. The time now is 06:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration