LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-20-2003, 06:01 AM   #1
Infinite_Pizza
Member
 
Registered: Mar 2003
Posts: 47

Rep: Reputation: 15
Fvwm2


I have a mandrake 9 installed without fvwm so I went to compile from source downloaded from fvwm.org

the compile all went well but I am having trouble changing from gnome to fvwm

this is what I trace how to change window maker in mandrake

all the system Xclients and xinit point to the file (exec /etc/X11/Xsession)

this is what they have in Xsession :
1. I add a file and make chmod a+x FVWM in /etc/X11/gdm/FVWM2

2. I add this in but donno if that helps because when I restart the x window it has yellow background and a watch replace mouse cursor indicating system is busy for a long time
case
FVWM2)
exec /usr/local/bin/fvwm2

I am just wondering if I am doing the right thing.

ps I can see that FVWM is added in the session durign startup login



#!/bin/sh
# Modification for Mandrake Linux by Chmouel Boudjnah <chmouel@mandraksoft.com>
#
# $Id: Xsession,v 1.37 2002/09/10 05:57:55 flepied Exp $

# read the user (~/.i18n) or system-wide (/etc/sysconfig/i18n) i18n settings
. /etc/profile.d/10lang.sh

# redirect errors to a file in user's home directory if we can
for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
do
if ( cp /dev/null "$errfile" 2> /dev/null )
then
chmod 600 "$errfile"
exec > "$errfile" 2>&1
break
fi
done

# Mandrake default background
if [ "`whoami`" = root ]; then
xsetroot -solid "#B20003"
IS_ROOT=1
else
IS_ROOT=
# Load the color only when not called from gdm/kdm
if [ -z "$1" ]; then
xsetroot -solid "#21449C"
fi
fi

xsetroot -cursor_name watch

AGENT=$(type -p ssh-agent)
if [ -x "$AGENT" -a -z "$SSH_AUTH_SOCK" ]; then
if [ -r $HOME/.ssh/identity -o -r $HOME/.ssh2/identification -o -r $HOME/.ssh/id_dsa -o -r $HOME/.ssh/id_rsa ]; then
SSH_AGENT="$AGENT --"
fi
fi

# clean up after xbanner
if [ -f /usr/X11R6/bin/freetemp ]; then
freetemp
fi

userresources=$HOME/.Xresources
userresources2=$HOME/.Xdefaults
sysresources=/etc/X11/Xresources

# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

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

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

if [ -x /etc/X11/xinit/fixkeyboard ]; then
/etc/X11/xinit/fixkeyboard
fi

if [ -z "$BROWSER" ] ; then
# we need to find a browser on this system
BROWSER=`which mozilla 2> /dev/null`
if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
# not found yet
BROWSER=
fi
fi

if [ -z "$BROWSER" ] ; then
# we need to find a browser on this system
BROWSER=`which netscape 2> /dev/null`
if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
# not found yet
BROWSER=
fi
fi

if [ -z "$BROWSER" ] ; then
# we need to find a browser on this system
BROWSER=`which lynx 2> /dev/null`
if [ -z "$BROWSER" ] || [ ! -e "$BROWSER" ] ; then
# not found yet
BROWSER=
else
BROWSER="xvt -e lynx"
fi
fi
export BROWSER

export HELP_BROWSER="$BROWSER"

# run scripts in /etc/X11/xinit.d
for i in /etc/X11/xinit.d/* ; do
[ -d $i ] && continue
# Don't run ??foo.{rpmsave,rpmorig,rpmnew} scripts
[ "${i%.rpmsave}" != "${i}" ] && continue
[ "${i%.rpmorig}" != "${i}" ] && continue
[ "${i%.rpmnew}" != "${i}" ] && continue

if [ -x $i ]; then
$i &
fi
done

# now, we see if xdm/gdm/kdm has asked for a specific environment
if [ $# = 1 ]; then
DESKTOP=$1
else
# use default DESKTOP from config file
# users may want to choose their own desktop
# even when x-session is started by startx command.
# -- Jaegeum --
if [ -f $HOME/.desktop ]; then
. $HOME/.desktop >/dev/null 2>&1
elif [ -f /etc/sysconfig/desktop ]; then
. /etc/sysconfig/desktop >/dev/null 2>&1
fi
fi

### Launch an XIM input server if needed
# it must be after definition of DESKTOP variable; but before any
# program that may want user input
if [ -x /etc/X11/xinit/XIM ]; then
. /etc/X11/xinit/XIM
fi

### Launch first time wizard if needed
if [ -z "$IS_ROOT" -a ! -e $HOME/.drakfw ] && type drakfw > /dev/null 2>&1 && touch $HOME/.drakfw > /dev/null 2>&1; then
xsetroot -cursor_name left_ptr
exec $SSH_AGENT drakfw
fi

if [ -n "$DESKTOP" ]; then
case $DESKTOP in
failsafe)
xsetroot -cursor_name left_ptr
exec $SSH_AGENT xvt -geometry 80x24-0-0
exec $SSH_AGENT xterm -geometry 80x24-0-0
exec $SSH_AGENT twm
;;
default)
;;
FVWM2)
exec /usr/local/bin/fvwm2
;;
*)
exec $SSH_AGENT /bin/sh -c "$(/usr/sbin/chksession -x=$DESKTOP)"
;;
esac
fi

# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
xsetroot -cursor_name left_ptr
exec $SSH_AGENT "$HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
xsetroot -cursor_name left_ptr
exec $SSH_AGENT "$HOME/.Xclients"
fi

# We may try with chksession
if [ -x /usr/sbin/chksession ];then
#get the first available
SESSION=$(/usr/sbin/chksession -F)
[ -n "$SESSION" -a "$SESSION" != Default ] && exec $SSH_AGENT sh -c "$(/usr/sbin/chksession -x=$SESSION)"
fi

# Argh! Nothing good is installed. Fall back to icewm
if [ -x /usr/X11R6/bin/icewm ];then
exec $SSH_AGENT /usr/X11R6/bin/icewm
else
# gosh, neither icewm is available;
# fall back to failsafe settings
xsetroot -cursor_name left_ptr
xclock -geometry 100x100-5+5 &
xvt -geometry +0+50 &
if [ -x "$BROWSER" -a -f /usr/doc/HTML/index.html ]; then
$BROWSER /usr/share/doc/HTML/index.html &
fi
if [ -x /usr/X11R6/bin/icewm-light ];then
exec $SSH_AGENT icewm-light
elif [ -x /usr/X11R6/bin/twm ];then
exec $SSH_AGENT twm
else
exec $SSH_AGENT xsm
fi
fi
 
Old 06-05-2003, 09:12 PM   #2
rkane
Member
 
Registered: May 2003
Location: Ohio
Distribution: Slackware
Posts: 47

Rep: Reputation: 15
Do you boot up in a shell or do you boot up with a login gui and choice of window manager?
 
Old 06-13-2003, 07:35 AM   #3
Infinite_Pizza
Member
 
Registered: Mar 2003
Posts: 47

Original Poster
Rep: Reputation: 15
I use config the GDM to make another list option for FVWM2
I think I get in but something is missing because other ppl's config in uni has fvwm executable in /etc/X11R/fvwm or something
 
Old 06-13-2003, 07:37 AM   #4
Infinite_Pizza
Member
 
Registered: Mar 2003
Posts: 47

Original Poster
Rep: Reputation: 15
maybe I should install fvwm from mandrake instead of compile it from source
 
  


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
Where should I install fvwm2 scc28y Linux - Newbie 1 03-15-2005 10:51 PM
How to remove fvwm2 nacha Slackware 12 03-05-2005 10:07 PM
fvwm2 configuration help DOA Linux - General 0 10-25-2004 05:26 PM
Transparency on FVWM2 oneandoneis2 Slackware 0 04-22-2004 03:25 AM
Configuring FVWM2 tarballedtux Linux - Software 2 06-12-2003 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:13 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
Open Source Consulting | Domain Registration