LinuxQuestions.org
Register a domain and help support LQ
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 09-14-2003, 01:48 AM   #1
x4v013
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Unhappy Shell-Script Problem?


Hi, I had mandrake linux for a couple weeks, then i decided i wanted to give slackware a try, so I completely reformatted, installed win xp pro, then installed slackware without any problems...but when i try to run a shell script my screen goes black and I lose power to my keyboard the next time I turn on my computer...I tried both GNOME and KDE, and KDE with 800x600res...can anyone help?
 
Old 09-14-2003, 03:59 AM   #2
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
That script wouldn't look anything like this:
Code:
# !/bin/sh

shutdown -h now
Would it?

Enjoy!
--- Cerbere
 
Old 09-14-2003, 07:43 PM   #3
theSuperJason
LQ Newbie
 
Registered: Sep 2003
Location: Brisbane, AUS
Distribution: Slackware
Posts: 14

Rep: Reputation: 0
Love to help - but you need to help others help you.

(Read: post the script you're having trouble with)

TSJ
 
Old 09-15-2003, 12:13 AM   #4
x4v013
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
umm...I've tried

Code:
kdm
Code:
gdm
and


Code:
kdm  800x600 60
 
Old 09-15-2003, 04:31 AM   #5
theSuperJason
LQ Newbie
 
Registered: Sep 2003
Location: Brisbane, AUS
Distribution: Slackware
Posts: 14

Rep: Reputation: 0
Sheez, it's like blood from a stone ;-)

Are you running this code in your 'xinitrc' file? Or just typing it at the console in runlevel 3 (non-graphical login)?

If you want to start X after logging in to runlevel 3, just type 'startx' at the prompt, otherwise edit '/etc/inittab' to use runlevel 4 if you prefer a graphical login.

Is that what you were after?

TSJ
 
Old 09-16-2003, 12:00 AM   #6
x4v013
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
umm...I'm doing it at the non-graphical login, when I enter startx it goes black just like all the other times..
 
Old 09-16-2003, 12:12 AM   #7
theSuperJason
LQ Newbie
 
Registered: Sep 2003
Location: Brisbane, AUS
Distribution: Slackware
Posts: 14

Rep: Reputation: 0
Right. Sounds like it's an X config issue and not any problem with 'kdm' or 'gdm'.

Have a look at '/var/log/XFree86.0.log' and run '/usr/X11R6/bin/xf86config' as root if you're getting X startup errors.

HTH, TSJ
 
Old 09-17-2003, 12:15 AM   #8
x4v013
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thumbs up

w00t, after editing it, it works now, thanks a lot!
 
  


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
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
A problem about a shell script jpan Linux - General 2 01-19-2005 06:14 PM
Problem in shell script Kumar Programming 4 04-27-2004 08:48 AM
shell script problem steltner Linux - General 19 05-18-2003 02:42 PM
shell script problem steltner Programming 0 05-17-2003 03:26 PM


All times are GMT -5. The time now is 04:43 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