LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-02-2004, 12:17 PM   #1
Abe_the_Man
Member
 
Registered: Jul 2003
Location: Oshawa, Ontario, Canada
Distribution: ?????
Posts: 324

Rep: Reputation: 30
.xinitrc fluxbox question


I want to make gkrellm start in the fluxbox slit on startup, everywhere i've read it says you add the app names to your ~/.xinitrc. Only problem is that my user account has no .xinitrc. I coppied the one from the root account , but it was for windowmaker, so i changed the last line to say fluxbox instead and added gkrellm -w to the line above.

#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

# If the user lacks $HOME/GNUstep, install it:
if [ ! -f $HOME/GNUstep/Defaults/WindowMaker ]; then
wmaker.inst
fi

# Test for cpp, which wmaker uses to process config files:
if [ ! -x /usr/bin/cpp ]; then
NOCPP="--no-cpp"
fi

gkrellm -w

# Start the window manager:
exec fluxbox

I have no idea what i'm doing as i've only ever run just plane gnome before. So please be gentle.
 
Old 01-02-2004, 12:27 PM   #2
luxitan
Member
 
Registered: Aug 2003
Location: Portugal
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
i changed my /etc/X11/XSession to load all progs before calling fluxbox
this assuming you use gdm, if you use another graphical login the process should be similar
 
Old 01-02-2004, 04:30 PM   #3
AxeZ
Member
 
Registered: Sep 2002
Location: Novi Sad, Vojvodina
Distribution: Slackware, FreeBSD
Posts: 386

Rep: Reputation: 32
jesus...just create file .xinitrc in your home dir with one line ( well, two ).

#!/bin/sh
exec fluxbox

save it and make it executable
 
Old 01-03-2004, 01:24 AM   #4
Abe_the_Man
Member
 
Registered: Jul 2003
Location: Oshawa, Ontario, Canada
Distribution: ?????
Posts: 324

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by AxeZ
jesus...just create file .xinitrc in your home dir with one line ( well, two ).

#!/bin/sh
exec fluxbox

save it and make it executable
oh..... right on. Thanks both of you.
 
Old 01-03-2004, 01:30 AM   #5
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
You did fine doing what you did...nothing wrong with that.

Another option, if you're running Fluxbox 0.9.6, is to use the ~/.fluxbox/apps file. In this you can specify programs to start only in fluxbox, but not in other window managers.
 
Old 01-08-2004, 05:45 AM   #6
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 759

Rep: Reputation: 65
-jesus...just create file .xinitrc in your home dir with one line ( well, two ).
-
-#!/bin/sh
-exec fluxbox
-
-save it and make it executable

I read this thread with great interest since I also want to startup some apps while using fluxbox. However, whatever suggestion I follow, nothing seems to happen. Is there a way to check whether my .xsession is actually accessed?

And another thing: to test it, do I have to reboot, or is log off/on enough?

Thanks, Leon.
 
Old 01-08-2004, 12:31 PM   #7
Abe_the_Man
Member
 
Registered: Jul 2003
Location: Oshawa, Ontario, Canada
Distribution: ?????
Posts: 324

Original Poster
Rep: Reputation: 30
i figured it out LJSBrokken! just create the file /home/youruser/.fluxbox/apps and add whatever programs you want. I run gkrellm and fbdesk at startup so i just use this

[startup] {gkrellm -w}
[startup] {fbdesk}

just change it to programs you want.
 
Old 01-09-2004, 03:22 AM   #8
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 759

Rep: Reputation: 65
Abe I thought you relieved me from this annoying thing, but also this doesn't work for me. I must be doing something completely wrong?!
I wish I could give more details but I have no clue which. I have tried adding the startup progs to .xinitrc, .xsession, and now this apps file.

About apps: doesn't fluxbox have to know somehow that it should look in that file? I added the line session.appsFile: ~/.fluxbox/apps to the ~/.fluxbox/init file, but no luck with that either.

Anyone, anything?
 
Old 01-09-2004, 03:33 AM   #9
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
apps is a new addition....if you're using Fluxbox stable it's not available.
 
Old 01-09-2004, 03:48 AM   #10
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current
Posts: 759

Rep: Reputation: 65
Thanx mikshaw, that explains it :-(

Is there a way to 'upgrade' to the latest development version? Or should I first get rid of the stable version and than compile the new one?

But anyway, does anyone have an idea why making a .xsession file does not seem to have any effect?
 
Old 04-28-2004, 08:06 PM   #11
RaulConQ
Member
 
Registered: Feb 2003
Location: Chicago, IL
Distribution: slackware
Posts: 36

Rep: Reputation: 15
Lightbulb

Re: upgrading to development version, Slack 9.1 comes with the stable, but I just did the standard ./configure, make, make install on fluxbox 0.9.9 and it works fine. I don't know if 0.1.14 is still hanging around somewhere, but I'll deal with it later... still tweaking my slit... for some reason, it doesn't load the apps in the order that I want... *grumble*
 
Old 04-29-2004, 12:05 AM   #12
|2ainman
Member
 
Registered: Mar 2004
Distribution: Slackware current, DSL 0.9.2
Posts: 133

Rep: Reputation: 15
I'm pretty sure that the reason .xinitrc does not work for you, is that your using a graphical login such as kdm or gdm. The .xinitrc works only when u start in runlevel 3, then type startx.
 
Old 06-19-2004, 07:50 PM   #13
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Rep: Reputation: 31
Quote:
The .xinitrc works only when u start in runlevel 3, then type startx.
just stmbled on this...

so how does one get this(/home/.jerkface/.xinitrc) to load at kdm or gdm
or should i say the executions within /home/.jerkface/.xinitrc) at kdm or gdm
login?

thanks !!
slackin and fluxin !
 
Old 06-28-2004, 08:25 AM   #14
Ninaw
Member
 
Registered: Jun 2004
Location: QC, Philippines
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
i had this problem before and then discovered that the culprit is.....the ampersand!!
it seems you need to add an ampersand ( & ) at the end of additional programs you want to run

here's my .xinitrc file

Code:
#!/bin/sh
exec wmxmms &
exec wmcpuload &
exec wmupmon &
exec gaim &
exec fluxbox

Last edited by Ninaw; 06-28-2004 at 08:27 AM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fluxbox and .xinitrc Eterm, Esetroot at 1280*1024 res darkleaf Linux - Software 11 03-06-2005 06:55 AM
fluxbox and .xinitrc littlemidget Linux - Software 18 01-02-2005 05:40 PM
.xinitrc, fluxbox, startup programs jdier Linux - Newbie 4 08-26-2004 03:41 PM
.xinitrc/.xsession - Where are they? Fluxbox the_rydster Slackware 3 03-07-2004 02:45 PM
xinit / .xinitrc / xdm / fluxbox kater Slackware 0 02-28-2003 07:03 PM


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