LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fedora Core 3 Enlightenment e17 Integration Guide (http://www.linuxquestions.org/questions/linux-software-2/fedora-core-3-enlightenment-e17-integration-guide-294378/)

richone 02-24-2005 11:58 AM

Fedora Core 3 Enlightenment e17 Integration Guide
 
Start by installing the e17 rpms from the yum respository. What? There is an e17 yum repository. Sure, right here:

hxxp://sps.nus.edu.sg/~didierbe/

replace the hxxp with http

Now let's integrate Enlightenment (e17) and Entrance into our environment.

I made the following change to /etc/X11/xdm/Xsession:
Code:

# now, we see if xdm/gdm/kdm has asked for a specific environment
case $# in
1)
    if [ -x "$SWITCHDESKPATH/Xclients.$1" ]; then
      exec -l $SHELL -c "$SWITCHDESKPATH/Xclients.$1";
    fi;

    case "$1" in
    failsafe)
      exec -l $SHELL -c "xterm -geometry 80x24-0-0"
      ;;
    gnome)
      exec -l $SHELL -c "$DBUS_LAUNCH gnome-session"
      ;;
# Added this line, the capital E in Enlightenment is important
    Enlightenment)
      exec -l $SHELL -c "$DBUS_LAUNCH enlightenment"
      ;;
# end of changes
    kde|kde1|kde2)
      exec -l $SHELL -c "$DBUS_LAUNCH $SWITCHDESKPATH/Xclients.kde"
      ;;
    twm)
        # fall back to twm
      exec -l $SHELL -c "$DBUS_LAUNCH $SWITCHDESKPATH/Xclients.twm"
      ;;
    *)
      # GDM provies either a command line as the first argument or
      # provides 'failsafe', 'default' or 'custom'.  KDM will do the
      # same at some point
      if [ "$1" != "default" -a "$1" != "custom" ]; then
          exec -l $SHELL -c "$DBUS_LAUNCH $1"
      fi
      ;;
    esac
esac

This change will allow Enlightenment to run from any login manager, but you are running e17 and want the whole ride. So let's configure the Entrance Login Manager as well:

I made these changes to /etc/X11/prefdm:
Code:

# Run preferred X display manager
preferred=
if [ -f /etc/sysconfig/desktop ]; then
        . /etc/sysconfig/desktop
        if [ "$DISPLAYMANAGER" = GNOME ]; then
                preferred=gdm
        elif [ "$DISPLAYMANAGER" = KDE ]; then
                preferred=kdm
        elif [ "$DISPLAYMANAGER" = XDM ]; then
                preferred=xdm
# Changed Start Here the E17 can be anything you want but needs to match the /etc/sysconfig/desktop file as well
        elif [ "$DISPLAYMANAGER" = E17 ]; then
                preferred="/usr/sbin/entranced -nodaemon"
# End of changes
        fi
fi
shopt -s execfail

[ -n "$preferred" ] && exec $preferred $* >/dev/null 2>&1

# Fallbacks, in order
# This makes Entrance also the default
exec /usr/sbin/entranced -nodaemon $* >/dev/null 2>&1
# End of changes
exec gdm $* >/dev/null 2>&1
exec kdm $* >/dev/null 2>&1
exec xdm $* >/dev/null 2>&1

And then change /etc/sysconfig/desktop to have just this line:
Code:

DESKTOP="E17"
Reboot and you should be good. If these changes cause any problems, you can back out easily by booting into runlevel 3 via grub. When grub shows up, edit the kernel you want to boot into (press 'e') and modify the kernel boot line removing the 'rhgb quiet' and replacing it with '3'. This change is not permanent, just for this session. Do not modify the grub.conf, you can do this change within the grub bootloader. The backout of the change made above and reboot of 'init 5'.

t3gah 04-03-2005 04:29 AM

Coool.

You should put this in the Linux Tutorials section here at LQ.org.

Look at the Main Menu panels for the link.........

stevsmit 04-29-2005 02:05 PM

lost sound with Entrance
 
Thanks for the help.

Used the guidance to get E17 Entrance working on RHEL 4. Entrance works fine, but with a couple of quickly identified problems.

1) I now have to be logged in as su to mount usb devices (hard drive, pendrive) and /dev/cdrom and

2) have to be logged in as su to use xmms and gmplayer.

Starting xmms from a terminal as normal user produces the following error:

** WARNING **: alsa_get_mixer(); Attaching to mixer hw:0 failed: Permission denied

trying to play a file results in

** WARNING ** : alsa_setup(): Failed to open pcm device (default): Permission denied

Starting gmplayer as normal user provides the following:

Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup

Everything works fine without Entrance. I appears that Entrance 'changes' some permissions???? I am at a loss. Any help out there would be appreciated.


All times are GMT -5. The time now is 07:43 PM.