Topic: [Solved] Last minor issues with Ubuntu minimal install

I've done a minimal install of Ubuntu and I've set things up how I like them, but as always, I've got some minor issues which I haven't been able to solve.
I'll give you a list and hopefully with your help I can solve them:

  • Configuring and theming the xfce4-notifyd messages. I can't find a config file and I don't know where to make one. I found out I can change the theme with an automatically installed GUI - but where to get themes?

  • SOLVED! I installed volwheel using the latest package found on their website. Installed it correctly, but when I run volwheel I don't get the systemtray icon. When I run volwheel in terminal I get this message that is showed on bottom.
    Solution: I didn't solve this issue, but found an alternative instead.

  • SOLVED! My sound doesn't work. I ran alsamixer and unmuted the speakers, but still I got no sound. I haven't got the faintest idea on how to solve this.
    Solution: Take a look here.

  • SOLVED! I am currently dualbooting Ubuntu with Windows. On my HDD I have got one recovery partition and two Windows partitions (one for boot and one for rest). This gives me three Windows entries in grub - How can I edit the entries so I've got only one? (I'm using grub2)
    Solution: Editing a file like 30_os-prober isn't going to do the trick. To remove these entries, I have to manually edit /boot/grub/grub.cfg, which isn't advised by the wiki page found here. I'll live with multiple entries.

  • SOLVED! GDM currently looks very ugly. In #!, it's nicely themed. How can I theme my GDM? On the internet I found something telling me I had to put the theme in /usr/share/gdm/themes. Unfortunately this didn't work.
    Solution: The newer version of GDM can't use themes made for the older version. If you want to configure the newer GDM (autologin, hello messages, background, GTK theme) use this little tool: gdm2setup

I hope you guys can help me sorting this out. When something got sorted, I'll make it bold and note the solution so others can benefit from it as well.

Gtk-WARNING **: Unable to locate theme engine in module_path: "xfce", at /usr/lib/perl5/Gtk2.pm line 138.
Gtk-WARNING **: Unable to locate theme engine in module_path: "xfce", at /usr/lib/perl5/Gtk2.pm line 138.
Gtk-WARNING **: Unable to locate theme engine in module_path: "xfce", at /usr/lib/perl5/Gtk2.pm line 138.
Gtk-WARNING **: Unable to locate theme engine in module_path: "xfce", at /usr/lib/perl5/Gtk2.pm line 138.
Gtk-WARNING **: Unable to locate theme engine in module_path: "xfce", at /usr/lib/perl5/Gtk2.pm line 138.
Can't locate Alsa.pm in @INC (@INC contains: /usr/local/lib/volwheel /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/local/bin/volwheel line 24.
BEGIN failed--compilation aborted at /usr/local/bin/volwheel line 24.

Last edited by Unia (2010-10-12 13:56:58)

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

Unia wrote:

GDM currently looks very ugly. In #!, it's nicely themed. How can I theme my GDM? On the internet I found something telling me I had to put the theme in /usr/share/gdm/themes. Unfortunately this didn't work.

If you're using a newer version of Ubuntu (Karmic and up), then you also have a newer version of GDM. This version of GDM cannot use the old themes.

Try using the program:

https://launchpad.net/gdm2setup

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Last minor issues with Ubuntu minimal install

That application didn't really work, I couldn't select a background image and the selected GTK theme wasn't applied either, fox example. As for now, I'll go with SLiM. I've gotten a nice theme for this. Thanks Anonymous! smile

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

For your grub2, see if either of these pages helps:

https://help.ubuntu.com/community/Grub2
http://ubuntuforums.org/showthread.php?t=1195275

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Last minor issues with Ubuntu minimal install

Yes, I had already seen those, the info they give about removing entries is exactly the same and, unfortunately, not clear enough for me. I just can't find where the Windows entries are stored. (found by the first "update-grub" upon install)

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

What files do you have in /etc/grub.d/?

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Last minor issues with Ubuntu minimal install

http://omploader.org/tNWN6ZA

I think the entries are in "30_os-prober", but I can't find them and I'm afraid of deleting something that shouldn't be deleted

Last edited by Unia (2010-08-27 18:08:13)

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

If you want, just open the 30_os-prober file in a text editor and paste the contents here.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Last minor issues with Ubuntu minimal install

Sure,

#! /bin/sh -e

# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009  Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib

. ${libdir}/grub/grub-mkconfig_lib

found_other_os=

adjust_timeout () {
  if [ "x${found_other_os}" = "x" ] ; then
    if [ "x${GRUB_HIDDEN_TIMEOUT}" != "x" ] ; then
      if [ "x${GRUB_HIDDEN_TIMEOUT_QUIET}" = "xtrue" ] ; then
    verbose=
      else
    verbose=" --verbose"
      fi

      if [ "x${GRUB_HIDDEN_TIMEOUT}" = "x0" ] ; then
    cat <<EOF
if [ \${timeout} != -1 ]; then
  if keystatus; then
    if keystatus --shift; then
      set timeout=-1
    else
      set timeout=0
    fi
  else
    if sleep$verbose --interruptible 3 ; then
      set timeout=0
    fi
  fi
fi
EOF
      else
    cat << EOF
if [ \${timeout} != -1 ]; then
  if sleep$verbose --interruptible ${GRUB_HIDDEN_TIMEOUT} ; then
    set timeout=0
  fi
fi
EOF
      fi
    fi
  fi
}

if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
  adjust_timeout
  exit 0
fi

if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev/null`" ] ; then
  # missing os-prober and/or linux-boot-prober
  adjust_timeout
  exit 0
fi

OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`"
if [ -z "${OSPROBED}" ] ; then
  # empty os-prober output, nothing doing
  adjust_timeout
  exit 0
fi

osx_entry() {
        cat << EOF
menuentry "${LONGNAME} (${2}-bit) (on ${DEVICE})" {
EOF
    save_default_entry | sed -e "s/^/\t/"
    prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
    cat << EOF
        insmod ${GRUB_VIDEO_BACKEND}
        set do_resume=0
        if [ /var/vm/sleepimage -nt10 / ]; then
           if xnu_resume /var/vm/sleepimage; then
             set do_resume=1
           fi
        fi
        if [ \$do_resume == 0 ]; then
           xnu_uuid ${OSXUUID} uuid
           if [ -f /Extra/DSDT.aml ]; then
              acpi -e /Extra/DSDT.aml
           fi
           $1 /mach_kernel boot-uuid=\${uuid} rd=*uuid
           if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
              xnu_mkext /System/Library/Extensions.mkext
           else
              xnu_kextdir /System/Library/Extensions
           fi
           if [ -f /Extra/Extensions.mkext ]; then
              xnu_mkext /Extra/Extensions.mkext
           fi
           if [ -d /Extra/Extensions ]; then
              xnu_kextdir /Extra/Extensions
           fi
           if [ -f /Extra/devprop.bin ]; then
              xnu_devprop_load /Extra/devprop.bin
           fi
           if [ -f /Extra/splash.jpg ]; then
              insmod jpeg
              xnu_splash /Extra/splash.jpg
           fi
           if [ -f /Extra/splash.png ]; then
              insmod png
              xnu_splash /Extra/splash.png
           fi
           if [ -f /Extra/splash.tga ]; then
              insmod tga
              xnu_splash /Extra/splash.tga
           fi
        fi
}
EOF
}

for OS in ${OSPROBED} ; do
  DEVICE="`echo ${OS} | cut -d ':' -f 1`"
  LONGNAME="`echo ${OS} | cut -d ':' -f 2 | tr '^' ' '`"
  LABEL="`echo ${OS} | cut -d ':' -f 3 | tr '^' ' '`"
  BOOT="`echo ${OS} | cut -d ':' -f 4`"

  if [ -z "${LONGNAME}" ] ; then
    LONGNAME="${LABEL}"
  fi

  echo "Found ${LONGNAME} on ${DEVICE}" >&2
  found_other_os=1

  case ${BOOT} in
    chain)

      cat << EOF
menuentry "${LONGNAME} (on ${DEVICE})" {
EOF
      save_default_entry | sed -e "s/^/\t/"
      prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"

      case ${LONGNAME} in
    Windows\ Vista*|Windows\ 7*)
    ;;
    *)
      cat << EOF
    drivemap -s (hd0) \${root}
EOF
    ;;
      esac

      cat <<EOF
    chainloader +1
}
EOF
    ;;
    linux)
      LINUXPROBED="`linux-boot-prober ${DEVICE} 2> /dev/null | tr ' ' '^' | paste -s -d ' '`"
      prepare_boot_cache=

      for LINUX in ${LINUXPROBED} ; do
        LROOT="`echo ${LINUX} | cut -d ':' -f 1`"
        LBOOT="`echo ${LINUX} | cut -d ':' -f 2`"
        LLABEL="`echo ${LINUX} | cut -d ':' -f 3 | tr '^' ' '`"
        LKERNEL="`echo ${LINUX} | cut -d ':' -f 4`"
        LINITRD="`echo ${LINUX} | cut -d ':' -f 5`"
        LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`"

        if [ -z "${LLABEL}" ] ; then
          LLABEL="${LONGNAME}"
        fi

    if [ "${LROOT}" != "${LBOOT}" ]; then
      LKERNEL="${LKERNEL#/boot}"
      LINITRD="${LINITRD#/boot}"
    fi

        cat << EOF
menuentry "${LLABEL} (on ${DEVICE})" {
EOF
    save_default_entry | sed -e "s/^/\t/"
    if [ -z "${prepare_boot_cache}" ]; then
      prepare_boot_cache="$(prepare_grub_to_access_device ${LBOOT} | sed -e "s/^/\t/")"
    fi
    printf '%s\n' "${prepare_boot_cache}"
    cat <<  EOF
    linux ${LKERNEL} ${LPARAMS}
EOF
        if [ -n "${LINITRD}" ] ; then
          cat << EOF
    initrd ${LINITRD}
EOF
        fi
        cat << EOF
}
EOF
      done
    ;;
    macosx)
      OSXUUID="`grub-probe --target=fs_uuid --device ${DEVICE} 2> /dev/null`"
      osx_entry xnu_kernel 32
      osx_entry xnu_kernel64 64
    ;;
    hurd)
      cat << EOF
menuentry "${LONGNAME} (on ${DEVICE})" {
EOF
      save_default_entry | sed -e "s/^/\t/"
      prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
      grub_device="`${grub_probe} --device ${DEVICE} --target=drive`"
      mach_device="`echo "${grub_device}" | tr -d '()' | tr , s`"
      grub_fs="`${grub_probe} --device ${DEVICE} --target=fs`"
      case "${grub_fs}" in
    *fs)    hurd_fs="${grub_fs}" ;;
    *)    hurd_fs="${grub_fs}fs" ;;
      esac
      cat << EOF
    multiboot /boot/gnumach.gz root=device:${mach_device}
    module /hurd/${hurd_fs}.static ${hurd_fs} --readonly \\
            --multiboot-command-line='\${kernel-command-line}' \\
            --host-priv-port='\${host-port}' \\
            --device-master-port='\${device-port}' \\
            --exec-server-task='\${exec-task}' -T typed '\${root}' \\
            '\$(task-create)' '\$(task-resume)'
    module /lib/ld.so.1 exec /hurd/exec '\$(exec-task=task-create)'
}
EOF
    ;;
    *)
      echo "  ${LONGNAME} is not yet supported by grub-mkconfig." >&2
    ;;
  esac
done

adjust_timeout
Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

Well it seems like 30_os-prober is responsible for detecting your Windows but the actual entries are in /boot/grub/grub.cfg

The wiki however seems to advise against editing the file. If you really want to remove those entries though, then you have no choice but to edit it.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Last minor issues with Ubuntu minimal install

So I can't edit some file like 30_os-prober and then do an update-grub? I don't feel like messing up Grub

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

30_os-prober detects your Windows, but I have no idea how to make it only detect your primary installation.

I would just make a backup of /boot/grub/grub.cfg and go on editing it. Its contents are plain text and should be easily readable.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Last minor issues with Ubuntu minimal install

I think I'll live with multiple entries for the time. I really don't want to mess it all up again this time. Thanks for your help, again:)

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

Ok now for your sound, have you gone through this thread:

http://ubuntuforums.org/showthread.php?t=205449

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Last minor issues with Ubuntu minimal install

No I haven't. I get stuck at step 3. On step 2 I get this:

00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
    Subsystem: Acer Incorporated [ALI] Device 033e
    Flags: bus master, fast devsel, latency 0, IRQ 22
    Memory at f0600000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: HDA Intel
    Kernel modules: snd-hda-intel

Is that the correct one? If so, what should I be looking for in step 3?

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

Continue on to step four and do

sudo modprobe snd-hda-intel
Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Last minor issues with Ubuntu minimal install

Yea I tried that - no luck with playing any audio files nor videos on YouTube. In xfce4-mixer, it says "Realtek ALC272 (OSS Mixer)". Could that be of any help?

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

In xfce4-mixer I think there should be a drop-down where you can select other devices. Try checking all the devices and make sure the Master and PCM channels are unmuted.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Last minor issues with Ubuntu minimal install

Master and PCM are both unmuted. In xfce4-mixer I can not select any other devices.

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

Go on to the "Getting the ALSA drivers from a *fresh* kernel" step. Also if you have an account at the Ubuntu forums, it wouldn't hurt to post there too.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Last minor issues with Ubuntu minimal install

Thanks, I'll try that.

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

Yes, sound's working now! big_smile

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

Anyone on the first to issues?

Let's do it and don't screw it.
      Github || Deviantart

Re: [Solved] Last minor issues with Ubuntu minimal install

Did you try launching volwheel after you fixed the sound issue? Does it still throw those errors?

You can also try Volume Icon as an alternative:

http://www.softwarebakery.com/maato/volumeicon.html

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: [Solved] Last minor issues with Ubuntu minimal install

Yes I did, same errors. Volume Icon works fine, so I'll use that instead.

Everytime Anonymous replies on my topics, I just know my questions get answered big_smile

Let's do it and don't screw it.
      Github || Deviantart