.xinitrc and new window manager not loading
I am trying to get a new wm (scrotwm) and added it to .xinitrc but it's not working. Every time I press ALT-CRTL-Backspace and log back again, I get landed on fvwm. Not sure what I'm doing wrong. The same .xinitrc works on another box running bash shell for a normal user. My shell is ksh, user chris is a normal user (user's group is user). The .xinitrc file is owned by chris:user and has permission: -rw-r--r-- Here's my .xinitrc file: #!/bin/sh userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/usr/X11R6/lib/X11/xinit/.Xresources sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap if [ -f $sysresources ]; then /usr/X11R6/bin/xrdb -merge $sysresources fi if [ -f $sysmodmap ]; then /usr/X11R6/bin/xmodmap $sysmodmap fi if [ -f $userresources ]; then /usr/X11R6/bin/xrdb -merge $userresources fi if [ -f $usermodmap ]; then /usr/X11R6/bin/xmodmap $usermodmap fi if [ -f $HOME/.bashrc ] then . $HOME/.bashrc fi if [ -f $HOME/.muttrc ] then . $HOME/.muttrc fi id1=$HOME/.ssh/identity id2=$HOME/.ssh/id_dsa id3=$HOME/.ssh/id_rsa if [ -x /usr/bin/ssh-agent ] [ -f $id1 -o -f $id2 -o -f $id3 ]; then eval `ssh-agent -s` ssh-add /dev/null fi /usr/local/bin/scrotwm if [ $SSH_AGENT_PID ]; then ssh-add -D /dev/null eval `ssh-agent -s -k` fi xidle -delay 3 -sw -program /usr/X11R6/bin/xlock -mode bat -timeout 5 -- I have also tried /usr/local/bin/scrotwm and exec /usr/local/bin/scrotwm but no luck. Thanks.
Re: .xinitrc and new window manager not loading
On Wed, Aug 19, 2009 at 11:32:05AM +, Chris wrote: I am trying to get a new wm (scrotwm) and added it to .xinitrc but it's not working. Every time I press ALT-CRTL-Backspace and log back again, I get landed on fvwm. Not sure what I'm doing wrong. The same .xinitrc works on another box running bash shell for a normal user. First, the obvious . . . is scrotwm installed? My shell is ksh, user chris is a normal user (user's group is user). The .xinitrc file is owned by chris:user and has permission: -rw-r--r-- Here's my .xinitrc file: #!/bin/sh /usr/local/bin/scrotwm montagueneal# whereis scrotwm /usr/X11R6/bin/scrotwm or try just exec scrotwm if [ $SSH_AGENT_PID ]; then ssh-add -D /dev/null eval `ssh-agent -s -k` fi xidle -delay 3 -sw -program /usr/X11R6/bin/xlock -mode bat -timeout 5 -- I have also tried /usr/local/bin/scrotwm and exec /usr/local/bin/scrotwm but no luck. Thanks.
Re: .xinitrc and new window manager not loading
What do you use? xdm or startx? if you use xdm - you should use .xsession instead On Wed, 19 Aug 2009 11:32:05 + Chris atst...@gmail.com wrote: I am trying to get a new wm (scrotwm) and added it to .xinitrc but it's not working. Every time I press ALT-CRTL-Backspace and log back again, I get landed on fvwm. Not sure what I'm doing wrong. The same .xinitrc works on another box running bash shell for a normal user. My shell is ksh, user chris is a normal user (user's group is user). The .xinitrc file is owned by chris:user and has permission: -rw-r--r-- Here's my .xinitrc file: #!/bin/sh userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/usr/X11R6/lib/X11/xinit/.Xresources sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap if [ -f $sysresources ]; then /usr/X11R6/bin/xrdb -merge $sysresources fi if [ -f $sysmodmap ]; then /usr/X11R6/bin/xmodmap $sysmodmap fi if [ -f $userresources ]; then /usr/X11R6/bin/xrdb -merge $userresources fi if [ -f $usermodmap ]; then /usr/X11R6/bin/xmodmap $usermodmap fi if [ -f $HOME/.bashrc ] then . $HOME/.bashrc fi if [ -f $HOME/.muttrc ] then . $HOME/.muttrc fi id1=$HOME/.ssh/identity id2=$HOME/.ssh/id_dsa id3=$HOME/.ssh/id_rsa if [ -x /usr/bin/ssh-agent ] [ -f $id1 -o -f $id2 -o -f $id3 ]; then eval `ssh-agent -s` ssh-add /dev/null fi /usr/local/bin/scrotwm if [ $SSH_AGENT_PID ]; then ssh-add -D /dev/null eval `ssh-agent -s -k` fi xidle -delay 3 -sw -program /usr/X11R6/bin/xlock -mode bat -timeout 5 -- I have also tried /usr/local/bin/scrotwm and exec /usr/local/bin/scrotwm but no luck. Thanks. -- With best regards, Gregory Edigarov
Re: .xinitrc and new window manager not loading
On Wed, Aug 19, 2009 at 11:32:05AM +, Chris wrote: I am trying to get a new wm (scrotwm) and added it to .xinitrc but it's not working. Every time I press ALT-CRTL-Backspace and log back ^^^ again, I get landed on fvwm. Not sure what I'm doing wrong. ^ The same .xinitrc works on another box running bash shell for a normal user. I assume you are using xdm(1). xinit(1) uses .xinitrc, but xdm uses .xsession. Converting to .xsession is rather straightforward (just 'exec scrotwm' is likely to suffice); just keep in mind that xdm runs some scripts in /etc/X11/xdm, in case something happens that you don't want to happen. The gory details are in the man page. Joachim
Re: .xinitrc and new window manager not loading
ln -s .xinitrc .xsession On 2009 Aug 19 (Wed) at 11:32:05 + (+), Chris wrote: :I am trying to get a new wm (scrotwm) and added it to .xinitrc but :it's not working. Every time I press ALT-CRTL-Backspace and log back :again, I get landed on fvwm. Not sure what I'm doing wrong. :The same .xinitrc works on another box running bash shell for a normal user. : -- The steady state of disks is full. -- Ken Thompson
Re: .xinitrc and new window manager not loading
keep it simple. #!/bin/sh # exec scrotwm # #exec /usr/X11R6/bin/scrotwm # 2009/8/19 Joachim Schipper joac...@joachimschipper.nl: On Wed, Aug 19, 2009 at 11:32:05AM +, Chris wrote: I am trying to get a new wm (scrotwm) and added it to .xinitrc but it's not working. Every time I press ALT-CRTL-Backspace and log back ^^^ again, I get landed on fvwm. Not sure what I'm doing wrong. ^ The same .xinitrc works on another box running bash shell for a normal user. I assume you are using xdm(1). xinit(1) uses .xinitrc, but xdm uses .xsession. Converting to .xsession is rather straightforward (just 'exec scrotwm' is likely to suffice); just keep in mind that xdm runs some scripts in /etc/X11/xdm, in case something happens that you don't want to happen. The gory details are in the man page. Joachim
Re: .xinitrc and new window manager not loading
On Wed, Aug 19, 2009 at 10:18 PM, Peter Hesslerphess...@theapt.org wrote: ln -s .xinitrc .xsession On 2009 Aug 19 (Wed) at 11:32:05 + (+), Chris wrote: :I am trying to get a new wm (scrotwm) and added it to .xinitrc but :it's not working. Every time I press ALT-CRTL-Backspace and log back :again, I get landed on fvwm. Not sure what I'm doing wrong. :The same .xinitrc works on another box running bash shell for a normal user. Thank you all. ln -s .xinitrc .xsession did the trick.