LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-09-2007, 11:51 PM   #16
anon210
LQ Newbie
 
Registered: Jan 2007
Posts: 4

Rep: Reputation: Disabled

(Posting in this thread since its a related problem.)
Hello guys, thanks for all that info, I'm saving it on a thumdrive to transfer over to my Slackware partition so I can hopefully get my internet working. I just thought I would post asking if the steps are any different for people with cable internet, and modems that connect via ethernet cables. Well, I'm off to try all this out, if I get it working I'll be sure to mention here.
 
Old 01-10-2007, 12:48 AM   #17
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by darylicious
About the thumb drive: after umount, why is my thumbdrive's LED still on? Does this mean I can't take it out yet? And after umount, why can i still find the files in it? Will these files still be here the next time I boot up Linux?
I think it is safe to take it out. You can check if Linux still considers the drive connected by doing

df -mh

in a terminal. This will list all connected drives. If you see the /dev/sda1 (or whatever your flashdrive device is) mountpoint still listed, the drive is still mounted and you should NOT just pull it of the USB port.

Note that is if a disk does not want to unmount, you can force-unmount it with the -l option:

umount -l /mnt/flashdisk

This is not recommended though. I sometimes do get this (that a flashdrive won't unmount - for no reason I can determine) and it seems that waiting a few minutes and trying to unmount "conventionally" again seems to work. Use -l only if you are in a hurry, or you have already waited a while and the drive still won't unmount.

Quote:
How can I create a shortcut to a directory? It seems to be very time consuming to go through the same folders over and over again. ^_^
On the desktop? I see another poster has already supplied the ln -s example. On the KDE desktop I click right then select "Create New" then "Link to Location".
 
Old 01-10-2007, 07:10 AM   #18
darylicious
LQ Newbie
 
Registered: Jan 2007
Location: Cebu City, Philippines
Distribution: Slackware 11
Posts: 15

Original Poster
Rep: Reputation: 0
I encountered this problem just now:

Last night, after configuring my audio, mounting my thumbdrive, and sccessing the internet for the first time in one session, my PC hanged while trying to shut down. Today, I booted up Slackware then there was an error. I guess it's the equivalent of Window's ScanDisk(pardon me, it's still Wednesday - I still haev a lot to learn hehehehe). Then I was given the option to press Ctrl+D or enter as root. I logged in as root then everything seemed fine until I tried to log out of KDE. My PC hung up again. So I turned it off manually then turned it back on. This time, I couldn't go in. This was displayed:

Code:
/etc/rc.d/rc.ine : line1 : eth_up command not found
/etc/rc.d/rc.ine : line2 : eth_up command not found
Then after a few tries of getting pretty much the same thing, I found a little message that said "Run fsck manually without -p" or something like that. And all is well now. But I'm afraid that my PC might hang up again once I try to log-off or shutdown.

What caused the problem? And how may I avoid it?
 
Old 01-10-2007, 08:11 AM   #19
darylicious
LQ Newbie
 
Registered: Jan 2007
Location: Cebu City, Philippines
Distribution: Slackware 11
Posts: 15

Original Poster
Rep: Reputation: 0
It's official. My PC hangs every time I try to log off or turn it off.

Help.
 
Old 01-10-2007, 09:35 AM   #20
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
In Linux, "hanging" is a pretty odd occurance, but thankfully fairly easy to debug!

First, you need to go and learn about run levels (in general, then the exact ones Slack uses):
Generally speaking, this is pretty good: http://en.wikipedia.org/wiki/Runlevel

Then, we need to do some experimenting as to *where* the lock occurs (we'll come back to run levels in a bit, promise!).

Step 1 is to have a look through some of your logs, see what's happening at the point of lock up. Logs you should peruse include ...

/var/log/messages
/var/log/messages.1

/var/log/syslog
/var/log/syslog.1

And if you were in X when you tried to shut down, then you should look at:

/var/log/Xorg.0.log
/var/log/Xorg.0.log.old

I would expect some of these other particularly smart guys can tell you what each log should contain (and what it all means!), but both messages and syslog are timestamped, so have a look at what's going around that stamp and familiarise yourself with the logs themselves, since you're about to start some debugging and I would bet your left leg, someone will ask to see those logs it helps enourmously if you can omit the worthless stuff - as i'm sure a smart guy like you is well aware (Slack since Sunday! I am in awe!) =D

You could also try doing some run-level debugging. Drop down one run level at a time and see what happens, where the lock occurs.

I would start at the top (Slack defaults to run level 3 ... you haven't specified what you're in ...) and move down until your PC is off.

So, from 3:

Code:
su
init 1  # single user mode
init 0  # PC off =)
You can also do some trial & error work on services, by chmod -x 'ing some of the /etc/rc.d/rc.* scripts. Leave the run level ones like rc.S, rc.inet* and rc.sysvinit and so on, but the services like: samba, cups, udev, etc etc etc can be tweaked ...

Or a more sensible approach to turning off services may be to run:

Code:
su
pkgtool
And head to Setup --> Services, which won't break your startup scripts =D

So, not really a solution, but possibly a way of finding some information that we can use to find a solution. Keep at it!
- Piete.
 
Old 01-10-2007, 11:22 PM   #21
darylicious
LQ Newbie
 
Registered: Jan 2007
Location: Cebu City, Philippines
Distribution: Slackware 11
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by piete
You could also try doing some run-level debugging. Drop down one run level at a time and see what happens, where the lock occurs.

I would start at the top (Slack defaults to run level 3 ... you haven't specified what you're in ...) and move down until your PC is off.
How do I do this?

Uhm, I still haven't tried installing or uninstalling stuff yet. So I'm not yet familiar with packages. But I'll read up on it when I get home. ^_^

Thanks Piete.
 
Old 01-12-2007, 03:29 AM   #22
darylicious
LQ Newbie
 
Registered: Jan 2007
Location: Cebu City, Philippines
Distribution: Slackware 11
Posts: 15

Original Poster
Rep: Reputation: 0
*UPDATE*

These are my new observations...

-If I logoff from KDE using the start menu while using root, it freezes.

-If I shutdown while inside KDE through Konsole while using root, it also freezes.

-If I logoff as another user, it does what it's supposed to and goes back to the terminal. From there, I logout then login as root(w/o starting up the window manager again). Then type "shutdown -h now" without any trouble.

I guess the problem has to do with root logging off from KDE.
 
Old 01-12-2007, 05:17 AM   #23
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
You shouldn't be logging in to KDE as root anyway. It's bad for security. Use kdesu to run graphical applications as root, if you need to.
 
Old 01-12-2007, 04:08 PM   #24
darylicious
LQ Newbie
 
Registered: Jan 2007
Location: Cebu City, Philippines
Distribution: Slackware 11
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Gethyn
You shouldn't be logging in to KDE as root anyway. It's bad for security. Use kdesu to run graphical applications as root, if you need to.
I'll keep this in mind. Thanks.
 
Old 01-13-2007, 03:47 AM   #25
gawain
Member
 
Registered: Dec 2006
Location: Italy -Rome
Distribution: Slackware 11.0
Posts: 55

Rep: Reputation: 15
Quote:
Originally Posted by Gethyn
You shouldn't be logging in to KDE as root anyway. It's bad for security. Use kdesu to run graphical applications as root, if you need to.
I don't understand: from the shell I should type
Code:
kdesu
. Is this what you mean?
 
Old 01-13-2007, 09:38 AM   #26
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
No, you need to type kdesu and then the command that you want to run. For example, if I wanted to modify my fstab using kwrite, I'd use the following command at the shell: 'kdesu kwrite /etc/fstab &'.

Under GNOME it's possible to do the same thing using gksu or gksudo. Note that you only need these commands for graphical programs. If you were editing fstab with a text mode editor such as nano then you'd either need to use sudo or change to root using su and then run the editor, e.g.
Code:
user@host:~$ sudo nano /etc/fstab
or
Code:
user@host:~$ su
Password: (password goes here)
root@host:~# nano /etc/fstab
Another alternative if you want to edit a file that belongs to root is to find the file in Konqueror, right click on it and select "Actions->Edit as Root".

Hope that helps.

Last edited by Gethyn; 01-13-2007 at 09:41 AM.
 
Old 01-14-2007, 04:44 AM   #27
gawain
Member
 
Registered: Dec 2006
Location: Italy -Rome
Distribution: Slackware 11.0
Posts: 55

Rep: Reputation: 15
Thanks a lot
Quote:
Originally Posted by Gethyn
Hope that helps.
It helps, it helps a lot
 
  


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
newbie - connecting to internet with ssh, is there a better way? brandonweinberg Linux - Networking 6 01-14-2011 12:14 AM
Newbie: Connecting to Internet with SuSE 10.0 pgcrockhead Linux - Networking 3 01-18-2006 04:36 PM
Connecting to Internet (Newbie Problem) Fiddlinboy Linux - Newbie 4 07-24-2005 09:09 PM
Newbie need help w/ USR 56K voice Faxmodem Ext. (connecting to the internet) infernozrage Linux - Newbie 0 11-02-2003 01:37 AM

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

All times are GMT -5. The time now is 10:02 PM.

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