LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-15-2007, 09:31 AM   #1
Sanborn
Member
 
Registered: Jun 2007
Distribution: Suse 10.1
Posts: 40

Rep: Reputation: 15
Where does GUI get executed ?


Specifically, is there a file that tells the init to load the interface so I can do some testing before/after it loads?
 
Old 06-15-2007, 10:36 AM   #2
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
The GUI is started at run level 5. So, if you boot to run level 3 you will have a running system before the GUI starts. Typing telinit 5 as root will "finish" the job.

Is this what you meant?
 
Old 06-15-2007, 12:10 PM   #3
Sanborn
Member
 
Registered: Jun 2007
Distribution: Suse 10.1
Posts: 40

Original Poster
Rep: Reputation: 15
Yes partially. I was just wonder if there was some kind of folder/file that listed in what order everything started.

I have a feeling the answer is the rc5.d folder where all the processes are listed as like S01, S02, etc. Is this a correct assumption?
 
Old 06-15-2007, 12:17 PM   #4
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
I think so. On my system (10.2) I have the file(s)

Code:
/etc/init.d/rc5.d/S10xdm
and

Code:
/etc/init.d/rc5.d/K13xdm
(actually, they are symbolic links) which are responsible for starting the graphical login.

If I remember correctly, the "S" versions are for start-up and the "K" versions for shut-down and the number gives the order to run things.
 
Old 06-15-2007, 12:19 PM   #5
Sanborn
Member
 
Registered: Jun 2007
Distribution: Suse 10.1
Posts: 40

Original Poster
Rep: Reputation: 15
Ok, so I made my script and what not what I wanted to run at bootup. I put it in runlevel 5 and changed the file to S99 and K99. Was I correct in assuming this would be the last process to start/stop during boot up?

I am absolutely bewildered why this won't work.
 
Old 06-15-2007, 12:25 PM   #6
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
That would have been my assumption too. First, a silly question; you have made your script executable, right?

Assuming you have, a little more detail on what you are trying to do would be helpful.
 
Old 06-15-2007, 12:51 PM   #7
Sanborn
Member
 
Registered: Jun 2007
Distribution: Suse 10.1
Posts: 40

Original Poster
Rep: Reputation: 15
Pretty sure I did, I followed some thing online (this is my first week with Linux in about 5-6 years) and did like chmod 775 something. Then I believe I typed another command to link it?

Does it sounds like I did the right part? (I dont have it in front of me)

All I am trying to do is setup a persistant route, so when the pc boots up the command 'route add 192.168.0.1 gw 30.38.72.50' and then 'echo Hello > diditwork.txt

Those are the only 2 lines I have it in the fine, along with #!/bin/bash
 
Old 06-15-2007, 02:08 PM   #8
statguy
Member
 
Registered: Sep 2004
Location: Ontario, Canada
Distribution: Slackware 14.2, current
Posts: 416

Rep: Reputation: 36
Quote:
Originally Posted by Sanborn
All I am trying to do is setup a persistant route, so when the pc boots up the command 'route add 192.168.0.1 gw 30.38.72.50' and then 'echo Hello > diditwork.txt

Those are the only 2 lines I have it in the fine, along with #!/bin/bash
Hmm. When I saw this I noticed your related thread. I know it can be hard at times, but it is best to stick to a single thread.

Anyway, I don't know why the attempts you have made are not working, but here are some other suggestions.

It seems that in SuSE, configuration is best done via the tools in YaST.

I noted that you are on 10.1. In 10.2 the default for network configuration is NetworkManager. I believe this program was in 10.1 also. See if it is being used in your system. Start the Network Devices tool from YaST. The first screen (on 10.2 anyway) asks if you want to use NetworkManager or the traditional ifup to manage network connections. Choose ifup and then proceed with adding the desired route. I suggest this since I have noticed the occasional oddity with NetworkManager. With ifup you are 100% in control of the network settings.

Make sure you remove your custom script from the init.d area to test this.
 
  


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
how to see which command has been executed ? Volcano Linux - Newbie 4 12-11-2006 08:48 AM
How to get next executed line phuna Programming 2 07-08-2005 12:05 AM
.bashrc not being executed, why? realos Linux - Newbie 1 12-20-2003 07:46 PM
.bash_logout does not get executed nearfar Linux - Newbie 3 10-17-2003 11:40 AM
.xinitrc isn't executed hampel Linux - Software 5 08-06-2003 03:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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