LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2005, 10:18 PM   #1
thefiz
LQ Newbie
 
Registered: Mar 2005
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
runlevel 4 script


i am using fluxbox. each time i start the computer up i enter runlevel 3, then do a startx. i then have to do 5 different things to get it working the way I like it. is there a default script for this? i just need a place to put my commands so they will execute after I "startx"

-thanks in advance and please excuse my typing
 
Old 03-18-2005, 10:26 PM   #2
xowl
Member
 
Registered: Jan 2005
Distribution: Slackware current (and others)
Posts: 188

Rep: Reputation: 30
I dont understand U with



i then have to do 5 different things to get it working the way I like it. is there a default script for this? i just need a place to put my commands so they will execute after I "startx"



but If Iam not wrong U may want to try
xwmconfig

or edit the /etc/inittab and change

id:3:initdefault:

to
id:4:initdefault:


Luck
 
Old 03-19-2005, 11:43 AM   #3
thefiz
LQ Newbie
 
Registered: Mar 2005
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
ahh what I mean is I need some commands to execute after I login (startx). i want gkrellm to run, I want my background set, I want SQL started. i want a script to do this for me
 
Old 03-19-2005, 12:12 PM   #4
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
you can put "startx" into ~/.bash_profile, which will load X as soon as you log in.
gkrellm can be added to ~/.xinitrc.
set the background either in ~/.fluxbox/init or whatever style file is loaded. It's the "rootcommand" line.
SQL will probably be started from /etc/rc.d/something. There may already be a startup script for it. If so, just make it executable. If not, you can add your startup command(s) to /etc/rc.d/rc.local
 
Old 03-19-2005, 12:21 PM   #5
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
If you are in run level 3 and run startx, your still in runlevel 3. If you just want some stuff to start up with fluxbox either edit ~/.xinitrc or ~/.fluxbox/startup
If you edit ~/.fluxbox/startup make sure in .xinitrc your runnning exec startfluxbox and not just exec fluxbox. Either way just add the stuff you want run somewhere before you start fluxbox. ex.

gkrellm &
exec fluxbox
 
  


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
What's the difference between runlevel 2 and runlevel 5 in Debian? davidas Linux - Newbie 2 01-05-2012 02:10 PM
Which runlevel for iptables script with update-rc.d? Moloko Debian 9 06-29-2004 06:59 AM
runlevel 4 and rc.M blian Slackware 5 05-11-2004 02:27 PM
Is there any way to temporarily prevent a script from loading in certain runlevel? davidas Debian 5 04-12-2004 10:12 AM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration