Unix Technical Forum

Linux startup scripts

This is a discussion on Linux startup scripts within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello ! Hi thr .. im using slack 11 . with blackbox and xfce4-panle . But i have a ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 04:42 AM
lorenzu
 
Posts: n/a
Default Linux startup scripts

Hello !
Hi thr .. im using slack 11 . with blackbox and xfce4-panle . But i
have a small problem . Which is i do not know how to configure a
startup script for linux . Other wise every time i log in to my wm i
have to run xfce4-panel plus the backgroung image command .. and other
programs which i want the OS to start automatically . Please advise ..
Thank you !!!
Gayan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 04:42 AM
Niki Kovacs
 
Posts: n/a
Default Re: Linux startup scripts

Le Fri, 14 Dec 2007 08:35:15 -0800, lorenzu a écritÂ*:

> Hello !
> Hi thr .. im using slack 11 . with blackbox and xfce4-panle . But i
> have a small problem . Which is i do not know how to configure a startup
> script for linux . Other wise every time i log in to my wm i have to run
> xfce4-panel plus the backgroung image command .. and other programs
> which i want the OS to start automatically . Please advise .. Thank you
> !!!
> Gayan


Advice: install Slack 12.0. XFCE has gone a long way since 11.0.

cheers,

Niki (just finished building XFCE 4.4.2 D)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 04:42 AM
federico savini
 
Posts: n/a
Default Re: Linux startup scripts

I hope Lorenzu is not italian because xfce4
is bugged for the italian language....
the Frenchmen can't lose

On Fri, 14 Dec 2007 16:47:05 +0000, Niki Kovacs wrote:

>
> Advice: install Slack 12.0. XFCE has gone a long way since 11.0.
>
> cheers,
>
> Niki (just finished building XFCE 4.4.2 D)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 04:42 AM
Richard James
 
Posts: n/a
Default Re: Linux startup scripts

lorenzu wrote:

> Hello !
> Hi thr .. im using slack 11 . with blackbox and xfce4-panle . But i
> have a small problem . Which is i do not know how to configure a
> startup script for linux . Other wise every time i log in to my wm i
> have to run xfce4-panel plus the backgroung image command .. and other
> programs which i want the OS to start automatically . Please advise ..
> Thank you !!!
> Gayan


Normally you would insert those commands into the .xinitrc file in your home
directory. They need to go before the window manager and some need to be
put as background processes using & for example I just ran xwmconfig select
xfce and then edited the .xinitrc file.

Before the line that says # Run xfce4-session if installed

I put

xterm &
xterm &

Now when I run X, xfce loads with two xterms in the background.

You might have to fiddle a bit to get what you want running.

Richard James
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 04:42 AM
Tom N
 
Posts: n/a
Default Re: Linux startup scripts

On 2007-12-15, Richard James <IWillGetOne@here> wrote:
> lorenzu wrote:
>
>> Hello !
>> Hi thr .. im using slack 11 . with blackbox and xfce4-panle . But i
>> have a small problem . Which is i do not know how to configure a
>> startup script for linux . Other wise every time i log in to my wm i
>> have to run xfce4-panel plus the backgroung image command .. and other
>> programs which i want the OS to start automatically . Please advise ..
>> Thank you !!!
>> Gayan

>
> Normally you would insert those commands into the .xinitrc file in your home
> directory. They need to go before the window manager and some need to be
> put as background processes using & for example I just ran xwmconfig select
> xfce and then edited the .xinitrc file.
>
> Before the line that says # Run xfce4-session if installed
>
> I put
>
> xterm &
> xterm &
>
> Now when I run X, xfce loads with two xterms in the background.
>
> You might have to fiddle a bit to get what you want running.


Doesn't blackbox/xfce have its own rc file? With ratpoison, you just put:

exec /usr/local/bin/ratpoison

in your xinitrc and rp takes over from there.

Tom

--
simpleman.s43
That would be at gee male

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 04:42 AM
Keith Keller
 
Posts: n/a
Default Re: Linux startup scripts

On 2007-12-14, Tom N <tom@somewhere.invalid> wrote:
> Doesn't blackbox/xfce have its own rc file?


Not blackbox. You need to add your clients to .xinitrc or
..xsession. (Don't know about xfce.)

--keith


--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 04:42 AM
Tom N
 
Posts: n/a
Default Re: Linux startup scripts

On 2007-12-15, Keith Keller <kkeller-usenet@wombat.san-francisco.ca.us> wrote:
> On 2007-12-14, Tom N <tom@somewhere.invalid> wrote:
>> Doesn't blackbox/xfce have its own rc file?

>
> Not blackbox. You need to add your clients to .xinitrc or
> .xsession. (Don't know about xfce.)


Not a big deal, I did that with ratpoison until I got a handle
on the rc file.

I guess you could just put all the blackbox stuff in a seperate file,
name it ~/.blackboxrc, and call that from xinitrc.

Then it would have an official rc file! :-\

Sure like the name "blackbox". Beats "ratpoison" all to hell.

Tom

--
simpleman.s43
That would be at gee male

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 04:42 AM
Tom N
 
Posts: n/a
Default Re: Linux startup scripts

On 2007-12-15, Richard James <IWillGetOne@here> wrote:
> Tom N wrote:


....

>> Doesn't blackbox/xfce have its own rc file? With ratpoison, you just put:
>>
>> exec /usr/local/bin/ratpoison
>>
>> in your xinitrc and rp takes over from there.

>
> As far as I have read the ~/.blackboxrc is not the place to put these things
> they go either in your ~/.xinitrc or ~/.xsession file right before blackbox
> is loaded.
>
> Blackbox's and Fluxbox's rc files seem to be for configuration of the WM
> only.
>
> I just used wmconfig to get a blackbox .xinitrc and in it I edited it from
> # Start the window manager:
> exec /usr/X11R6/bin/blackbox
>
> to
> # Start the window manager:
> rxvt &
> rxvt &
> xterm &
> firefox &
> exec /usr/X11R6/bin/blackbox
>
> and three terms open up and firefox loads on startup


You can do that with rp. Or you can put lines like this in your ratpoisonrc

exec rxvt
exec firefox

It's better to configure the xterms a little, though:

exec rxvt -ls -title foo -bg white -fg brown -cr black -sl 200 +sb -C

-ls login shell
-cr color of cursor
-bg background color
-fg color of font
-sl number of lines in scrollback buffer
-C display system messages
+sb no scrollbar

And if you want the xterm to run an app:

exec rxvt -ls -title slrn +sb -e /usr/bin/slrn

Then, though, if you kill slrn the xterm goes too.

Must be a way around that, but I don't know it.

Tom

--
simpleman.s43
That would be at gee male

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 04:42 AM
Keith Keller
 
Posts: n/a
Default Re: Linux startup scripts

On 2007-12-15, Tom N <tom@somewhere.invalid> wrote:
>
> I guess you could just put all the blackbox stuff in a seperate file,
> name it ~/.blackboxrc, and call that from xinitrc.


No, you can't. .blackboxrc is the config file for blackbox, not a shell
script. And blackbox is not meant to use a separate startup script:
you're *supposed* to put blackbox into .xinitrc or .xsession.

--keith

--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 04:42 AM
Richard James
 
Posts: n/a
Default Re: Linux startup scripts

Tom N wrote:

> And if you want the xterm to run an app:
>
> exec rxvt -ls -title slrn +sb -e /usr/bin/slrn
>
> Then, though, if you kill slrn the xterm goes too.
>
> Must be a way around that, but I don't know it.


The only way I can think of is to write a wrapper script like this
#!/bin/sh
/usr/bin/slrn
bash

then
exec rxvt -ls -title slrn +sb -e /path/to/script/wrapperscript.sh

This makes the term run the script
The script then runs slrn
When slrn exits the script goes to the next line and executes bash
leaving the user in a shell. If they exit the shell the xterm will close

Richard James
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com