LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-26-2002, 08:52 PM   #1
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Rep: Reputation: 15
Finally installed Slackware - Many questions


Ok, so I finally deticated myself to swtiching to Slackware. I tried a month or two ago, but found I didn't have to time to configure everything the way I wanted- so I went back with Redhat for the time being. But now I installed Slackware 8.1 once again, and I plan on giving it a few days to see if I can get everything running smothley... so here is a list of problems/obsticles I have ran into so far:
  • There doesn't seem to be any available mixers available, so kmix is not working... though I have gotten my sound to work fine
  • Why doesn't it clear everything when u exit a shell... like if I log off root everything I did that was last on the screen is still there... how can I get it to clear the screen before it prompts for a new login
  • When executing a PHP script I get this error -- /usr/bin/php: error while loading shared libraries: libmm.so.11: cannot open shared object file: No such file or directory
  • I believe that is it for right now, I am still trying to get used to the placement of config files and such
 
Old 08-26-2002, 10:30 PM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
1) Check for the device link /dev/mixer. Mine points to /dev/mixer0 but I am using the ALSA sound drivers. But I do not know if ALSA makes any difference though. I was using kernel builtin support for my sound card and the mixer was working, but I do not remember what the link was set too.

2) When I am in console mode on a tty and I log off; the screen is cleared as a part of the getty that is running when it reinits. If you use "su" or "login" commands then follow with "exit" or "logoff" then it doesn't clear the screen. At least until you logoff the main process.

3) libmm.so is located in /usr/lib for me. It is a sym link that points to /usr/lib/libmm.so.11.0.23. Sorry, but I do not know what package it is part of.
 
Old 08-26-2002, 11:26 PM   #3
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
Thanks for your reply.
  • My problem with the mixer was my permissions on /dev/mixer, so that is solved
  • It doesn't clear when I logoff when on console on a tty
  • well, I am going to update my php package so lets see what happens after that, it is currently downloading
 
Old 08-27-2002, 12:12 AM   #4
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
See if you have lines in the /etc/inittab file that match these.

c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux

These are the commands that start the getty's on the tty consoles. The second group of numbers are the runlevels. Runlevel 4 only has only one getty on tty6. Runlevel 1,2,3,5 have all six. I would think that "respawn" would clear the terminal screen and restart agetty when you logout and it is terminated. Then it should display /etc/issue file and then run /bin/login command and wait for a login attempt.
 
Old 08-27-2002, 01:15 PM   #5
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
  • Well everything looks fine in the inittab, infact I commented out tty 5 & 6 because I never use more than 3 or 4 at a time.
    Does it also clear the screen for you after the boot scripts run, because that is still displayed when is prompts for login. I'm still trying to figure this out.
  • I removed the tarball package for php, and compiled & installed it from source - it doesn't give me the same error messages, but acts funky. It doesn't seem to read argv[ ] . I am using php for some system scripts, not for web scripting. I might just re-write them in perl

Last edited by wickdgin; 08-27-2002 at 01:16 PM.
 
Old 08-27-2002, 01:59 PM   #6
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
When I was running at run level 3, the initial boot messages were not cleared prior to the login prompt. Currently I use run level 4 with only tty6 available. However, I think I recall other distros clearing the screen on boot before the login, like RedHat if I recall. That may also be a part of using frame buffers as well though. Didn't use it long enough to know much about it. Anyway, you might be able to add some codes to the /etc/issue file, like a [ESC]2J sequence, I think that resets the display. I know bash allows the "reset" command to clear the screen and reset the prompt, etc. I do not know if it could be added to a logout sequence or not.

To my knowledge, I do not use php myself. But it was installed as a part of full Slack install on my system. So my install should probably be considered untested. Since I do not know what it does, difficult to test it. If you know of a method to test it, I would be glad to for your comparison sake.

Perhaps it has helped in some way.
 
Old 08-27-2002, 02:34 PM   #7
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Excalibur
Anyway, you might be able to add some codes to the /etc/issue file, like a [ESC]2J sequence, I think that resets the display. I know bash allows the "reset" command to clear the screen and reset the prompt, etc. I do not know if it could be added to a logout sequence or not.
  • That might have worked too, but I found this as a better work around... I edited my inittab from something like this:

    c1:1235:respawn:/sbin/agetty 38400 tty1 linux
    to
    c1:1235:respawn:/sbin/agetty -I '\033[2J\033[f' 38400 tty1 linux

    which is the ascii equivelent to ESC[2J to clear the screen and ESC[f to reposition the cursor to the upper left hand corner
  • The exact script I've been trying to use is this:

    #!/usr/bin/php
    <?php

    $rcpt = $argv[1];
    $subject = "";
    $message = "$argv[2]";

    mail ("$argv[1]@mobile.att.net", $subject, $argv[2]);
    ?>

    I've been using it to send text messages to my cell in the past. It originally was not passing argv[ ], and give me the error '@mobile.att.net... User address required'
 
Old 08-27-2002, 03:24 PM   #8
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
Well I tested what you have provided, and I think I received the same results. It complained about the argv variable not being defined. When I hard coded in my address and a subject and message, the mail () statement worked OK though. Even with the argv errors being reported.

Perhaps the docs in the /usr/docs/phpxxxx directory might help to explain the problems and/or changes.

Good to hear that you got your screen to clear like you wanted. But I guess it still doesn't explain why it didn't work to begin with.
 
Old 08-27-2002, 06:00 PM   #9
Marshall
LQ Newbie
 
Registered: Jul 2002
Posts: 11

Rep: Reputation: 0
Your solution to the login looks like it works, but just as an alternative, I just put the following line it /etc/rc.d/rc.local

clear

That simply clears the screen. This way just before the user logs in, rc.local clears the display.

I'm not at my linux box now (at work), but there is a way you can have it clear the screen any time someone logs out just like you are used to with RedHat. I thought it was in /etc/profile or something like that.... not sure. If I track it down I'll post it later tonight.

Good luck!
 
Old 08-28-2002, 11:26 PM   #10
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
Well, I've gotten just about everything setup (well, except for my printer which I should probably do before my semester starts next week).

But I am still having problems with that php script, even if I make a script to just use the mail() function with hard coded values - it seems that php would hang for 10 -15 seconds, sendmail proccess is listed immediatly after executing the script - but no mail ... All I want to do is send e-mail from the command line, without having to run sendmail as a dameon.
 
Old 08-29-2002, 06:54 AM   #11
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
If my message body is a text file, I just use sendmail by itself. Example:

cat message_body.txt | /usr/bin/sendmail -fmachine_name@mydomain.com my_email_address@mydomain.com

The sendmail daemon is not required to be running all the time to send the message. But if it cannot deliver on the first attempt, it will not retry without the daemon running scheduled to reattempt.

Also, If you want a Subject line in the message, it needs to be imbedded in the message body file. I echo the line in on the first line when I create the file.

echo "Subject: This is the subject line." > message_body.txt

Perhaps it will help you in the short time until you can get the php issues worked out.
 
  


Reply



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
Just installed Slackware 10! Just a few questions on mouse, and kernel, and so forth. RHLinuxGUY Slackware 7 09-12-2004 01:03 AM
Finally installed Fedora and its up and running. NYAndy Linux - Newbie 10 02-11-2004 10:05 AM
Whew!! finally got compiler installed BajaNick General 3 10-06-2003 09:51 AM
Real Player 8 installed finally, but ......... troycus Linux - Newbie 4 09-27-2003 03:17 PM
Finally got my suse8.1 nvidia installed? MadKatMk2 Linux - Newbie 0 12-08-2002 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:22 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration