Need help adding arch to my grub menu.lst

I am posting a link to my thread on the ubuntu forums in hopes of getting better help here.
some additional info: My arch install is located at /dev/hda3. My main ubuntu install is on /dev/hda3 (fyi)
http://ubuntuforums.org/attachment.php? … 1184986730 (picture)
http://ubuntuforums.org/showthread.php?t=505561
Last edited by theringmaster (2007-07-21 03:01:16)

right now my grub's menu.lst looks like this. What needs to be done?
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default        0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout        3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
# examples
# title        Windows 95/98/NT/2000
# root        (hd0,0)
# makeactive
# chainloader    +1
# title        Linux
# root        (hd0,1)
# kernel    /vmlinuz root=/dev/hda2 ro
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=e5c2526c-3751-430f-bd51-74e906ac80ca ro
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## ## End Default Options ##
title        Ubuntu, kernel 2.6.20-16-generic
root        (hd0,0)
kernel        /boot/vmlinuz-2.6.20-16-generic root=UUID=e5c2526c-3751-430f-bd51-74e906ac80ca ro quiet splash
initrd        /boot/initrd.img-2.6.20-16-generic
quiet
savedefault
title        Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root        (hd0,0)
kernel        /boot/vmlinuz-2.6.20-16-generic root=UUID=e5c2526c-3751-430f-bd51-74e906ac80ca ro single
initrd        /boot/initrd.img-2.6.20-16-generic
title        Ubuntu, kernel 2.6.20-15-generic
root        (hd0,0)
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=e5c2526c-3751-430f-bd51-74e906ac80ca ro quiet splash
initrd        /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title        Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root        (hd0,0)
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=e5c2526c-3751-430f-bd51-74e906ac80ca ro single
initrd        /boot/initrd.img-2.6.20-15-generic
title        Ubuntu, memtest86+
root        (hd0,0)
kernel        /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST

Similar Messages

  • Need help adding Arch to Grub

    I am trying to dual boot Arch Linux and Ubuntu. When I try to boot there is no option for Arch. I have added it to the menu.lst file in ubuntu. Arch is installed on sdb1 according to sudo fdisk -l  I need help!

    Fdisk -l
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xb38ab38a
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        9544    76662148+  83  Linux
    /dev/sda2            9545        9729     1486012+   5  Extended
    /dev/sda5            9545        9729     1485981   82  Linux swap / Solaris
    Disk /dev/sdb: 40.9 GB, 40992473088 bytes
    255 heads, 63 sectors/track, 4983 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0002eb1f
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1        4891    39286926   83  Linux
    Disk /dev/sdc: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000ea9be
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1               1       30401   244196001    7  HPFS/NTFS
    I think Arch is on the 40GB partition
    Menu.lst
    # menu.lst - See: grub(8), info grub, update-grub(8)
    #            grub-install(8), grub-floppy(8),
    #            grub-md5-crypt, /usr/share/doc/grub
    #            and /usr/share/doc/grub-doc/.
    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not use 'savedefault' or your
    # array will desync and will not let you boot your system.
    default        0
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout        0
    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    hiddenmenu
    # Pretty colours
    #color cyan/blue white/blue
    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line)  and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    ## password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret
    # examples
    # title        Windows 95/98/NT/2000
    # root        (hd0,0)
    # makeactive
    # chainloader    +1
    # title        Linux
    # root        (hd0,1)
    # kernel    /vmlinuz root=/dev/hda2 ro
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below
    ## DO NOT UNCOMMENT THEM, Just edit them to your needs
    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ##      kopt_2_6_8=root=/dev/hdc1 ro
    ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=ce3a864f-3f72-480b-96b3-54516b307170 ro
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=ce3a864f-3f72-480b-96b3-54516b307170
    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ##      alternative=false
    # alternative=true
    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ##      lockalternative=false
    # lockalternative=false
    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash
    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ##      lockold=true
    # lockold=false
    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=
    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0
    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ##      altoptions=(recovery) single
    # altoptions=(recovery mode) single
    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ##      howmany=7
    # howmany=all
    ## specify if running in Xen domU or have grub detect automatically
    ## update-grub will ignore non-xen kernels when running in domU and vice versa
    ## e.g. indomU=detect
    ##      indomU=true
    ##      indomU=false
    # indomU=detect
    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ##      memtest86=false
    # memtest86=true
    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false
    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false
    ## ## End Default Options ##
    title        Ubuntu 9.04
    uuid        ce3a864f-3f72-480b-96b3-54516b307170
    kernel        /boot/vmlinuz-2.6.28-11-generic root=UUID=ce3a864f-3f72-480b-96b3-54516b307170 ro quiet splash
    initrd        /boot/initrd.img-2.6.28-11-generic
    quiet
    #title        Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
    #uuid        ce3a864f-3f72-480b-96b3-54516b307170
    #kernel        /boot/vmlinuz-2.6.28-11-generic root=UUID=ce3a864f-3f72-480b-96b3-54516b307170 ro  single
    #initrd        /boot/initrd.img-2.6.28-11-generic
    #title        Ubuntu 9.04, memtest86+
    #uuid        ce3a864f-3f72-480b-96b3-54516b307170
    #kernel        /boot/memtest86+.bin
    #quiet
    # (0) Arch Linux
    title  Arch Linux 
    root   (hd1,0)
    kernel /vmlinuz26 root=/dev/sda3 ro
    initrd /kernel26.img
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    title Arch
    rootnoverify (hd0,1)
    chainloader +1

  • I need help adding a mouse motion listner to my game. PLEASE i need it for

    I need help adding a mouse motion listner to my game. PLEASE i need it for a grade.
    i have a basic game that shoots target how can use the motion listner so that paint objects (the aim) move with the mouse.
    i am able to shoot targets but it jus clicks to them ive been using this:
    public void mouse() {
    dotX = mouseX;
    dotY = mouseY;
    int d = Math.abs(dotX - (targetX + 60/2)) + Math.abs(dotY - (targetY + 60/2));
    if(d < 15) {
    score++;
    s1 = "" + score;
    else {
    score--;
    s1 = "" + score;
    and here's my cross hairs used for aiming
    //lines
    page.setStroke(new BasicStroke(1));
    page.setColor(Color.green);
    page.drawLine(dotX-10,dotY,dotX+10,dotY);
    page.drawLine(dotX,dotY-10,dotX,dotY+10);
    //cricle
    page.setColor(new Color(0,168,0,100));
    page.fillOval(dotX-10,dotY-10,20,20);
    please can some1 help me

    please can some1 help meNot when you triple post a question:
    http://forum.java.sun.com/thread.jspa?threadID=5244281
    http://forum.java.sun.com/thread.jspa?threadID=5244277

  • Need help adding schedule to xcode 4

    I need help adding a tour schedule for an iphone app building an app for 13 djs and they want thier tour schedules added these need to be updated monthly is there a way to add this????

    I don't know if this is the easiest way but it works for me. I connect the DVD player to my camcorder (so it's the 3 plugs yellow/red/white on one end and a single jack into the camera). Then I connect my camcorder to the computer (I think it's through a firewire port). Then I just play the DVD and the footage is digitized via the camcorder and I import it into iMovie 4 as it's playing. I believe the camcorder is just in VCR mode.
    I have also used this method to transfer VHS tapes onto DVDs via the camera by connecting the VCR to the camera.
    I haven't had much luck with movies over about 40 minutes on iMovie. But if it's home movies, there may be a logical break. Do maybe 20 minute segments (it's also really easy on iMovie to add a soundtrack if these are OLD films with no sound.
    As you can see, I'm low tech!
    Good luck!
    Powerbook G4   Mac OS X (10.3.9)  

  • Grub/Menu.lst

    Hello people ..i am new to arch linux .. with the help of wikiarch .. i installed arch linux and am in the stage of setting up grub .. well in the grub/menu.lst ..i see arch and windows .. but i also have a fedora 10 insalled on my system.. well i want to know if i have to add that in the menu.lst ??? if so pls direct me in the right direction as to how !!!
    THank YOU in advance

    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl %u > %o
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #NoPassiveFtp
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # Testing is disabled by default. To enable, uncomment the following
    # two lines. You can add preferred servers immediately after the header,
    # and they will be used before the default mirrors.
    #[testing]
    #Include = /etc/pacman.d/mirrorlist
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    yes my network is working as i did a full sysem updgrade using pacman -Syu

  • [SOLVED]Unable to install grub "couldn't find /mnt/boot/grub/menu.lst"

    Ok so I was trying to install windows after I had arch installed, used an ubuntu cd to use gparted to create a partition, tried to go to the windows installation but it would endlessly send me back to restart the installation even after succesfully writting all files...
    So now I decided to not install it, went back into ubuntu/gparted, deleted the partition and rejoined the space with my main arch partition and then selected the "boot" flag to boot...
    Cannot boot, grub its still on /boot/ but the MBR its obviously tempered with by windows ( which coincidentally couldn't even find itself after writing mbr to its liking....*sigh* ).
    So I try to use my arch install cd to reinstall grub but i get this:
    "couldn't find /mnt/boot/grub/menu.lst is grub installed?"
    I tried to use the select packages thing to make sure the cd is mounted and mounts fine but it keeps getting me that error message. I managed to boot to my system just fine with arch root=/dev/sda1 but obviosly the kernell does not has my nvidia module which means I can't get into x which means i am using links and since my grub is not loaded i can't even get framebuffer so this is rather inconvenient.
    Im sure im missing a very simple and stupid thing but im so annoyed my brain must be saying "ok im done somebody else figure it out". I still have a backup copy of my grub menu.lst I made before. Do I just delete /bood/grub/ and try again? Am I missing something on the install procedure to be able to rewrite grub? Can I just do it from the command line or with pacman? Any help appreciate it thanks.
    Last edited by Misanthrope (2008-06-01 17:22:32)

    If you can get into your arch and cli then you should just be able to reinstall grub with
    install-grub /dev/sda
    or reinstall grub with
    pacman -S grub
    if the package is messed up or missing.

  • What command to start kernel 3.0 in /boot/grub/menu.lst? [solved]

    Currently I have:
    # (0) Arch Linux
    title Arch Linux
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/disk/by-uuid/b37afb64-426a-4f68-81eb-a2b3eaa1df73 ro
    initrd /kernel26.img
    Last edited by carebearboy (2011-07-28 02:30:25)

    karol wrote:
    Why not use the new kernel from the testing repo?
    http://projects.archlinux.org/svntogit/ … nux.preset
    I'm not sure what
    ALL_kver="/boot/vmlinuz-linux"
    does, the presets looked a bit different for kernel26 http://projects.archlinux.org/svntogit/ … l26.preset
    I'll try to boot without that line. I noticed that too.
    As for installing the kernel from [testing], I get this:
    [root@myhost user]# pacman -Syu
    :: Synchronizing package databases...
    testing is up to date
    core is up to date
    extra is up to date
    community is up to date
    multilib is up to date
    :: Starting full system upgrade...
    :: Replace kernel26 with testing/linux? [Y/n] y
    :: Replace kernel26-headers with testing/linux-headers? [Y/n] y
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: audit: requires kernel26-headers>=2.6.30
    [root@myhost user]# pacman -S linux linux-headers
    resolving dependencies...
    looking for inter-conflicts...
    :: linux and kernel26 are in conflict. Remove kernel26? [y/N] y
    :: linux-headers and kernel26-headers are in conflict. Remove kernel26-headers? [y/N] y
    error: failed to prepare transaction (could not satisfy dependencies)
    :: audit: requires kernel26-headers>=2.6.30
    :: nvidia: requires kernel26>=2.6.39
    :: nvidia: requires kernel26<2.6.40
    [root@myhost user]#
    [root@myhost user]# pacman -Qi kernel26-headers
    Name : kernel26-headers
    Version : 2.6.39.3-1
    URL : http://www.kernel.org
    Licenses : GPL2
    Groups : None
    Provides : None
    Depends On : None
    Optional Deps : None
    Required By : audit
    Conflicts With : None
    Replaces : None
    Installed Size : 42316.00 K
    Packager : Thomas Bächler <[email protected]>
    Architecture : x86_64
    Build Date : Sat 09 Jul 2011 09:02:41 AM EDT
    Install Date : Wed 27 Jul 2011 03:03:45 PM EDT
    Install Reason : Installed as a dependency for another package
    Install Script : No
    Description : Header files and scripts for building modules for kernel26
    [root@myhost user]#
    Should I 'Pacman Rdd kernel26-headers', or is that a bad idea?
    * EDIT *
    Compiling just finished:
    *Summary of Changes - File(s) Created and/or Deleted*
    8 File(s) Created:
    /usr/src/linux-3.0-KNL/
    /boot/vmlinuz-3.0-ARCH
    /boot/kernel30-3.0-ARCH.img
    /lib/modules/3.0.0-ARCH/
    /usr/src/linux
    /usr/src/linux-3.0
    /boot/System.map-3.0
    /boot/System.map
    *No Files Were Deleted*
    *SUCCESS - Main Processes COMPLETE*
    *NVIDIA users, please make additional NECESSARY adjustments*
    *Please Configure /boot/grub/menu.lst accordingly and you are done. Then REBOOT & TEST!*
    It's probably better just to use the compiled image now that I know it's successful.
    Last edited by carebearboy (2011-07-27 19:23:50)

  • Grub menu.lst generator

    Hello archlinux fans,
    is there a script or something else, that generates a "good" grub menu.lst ?
    thx
    ogu

    Here's the update-grub script from Debian's grub package - does what you're looking for.
    #!/bin/sh
    # Insert a list of installed kernels in a grub menu.lst file
    # Copyright 2001 Wichert Akkerman <[email protected]>
    # This file 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 2 of the License, or
    # (at your option) any later version.
    # This program 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 this program; if not, write to the Free Software
    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    # Contributors:
    # Jason Thomas <[email protected]>
    # David B.Harris <[email protected]>
    # Marc Haber <[email protected]>
    # Crispin Flowerday <[email protected]>
    # Abort on errors
    set -e
    abort() {
    message=$@
    echo >&2
    echo -e "$message" >&2
    echo >&2
    exit 1
    find_grub_dir ()
    echo -n "Searching for GRUB installation directory ... " >&2
    for d in $grub_dirs ; do
    if [ -d "$d" ] ; then
    grub_dir="$d"
    break
    fi
    done
    if [ -z "$grub_dir" ] ; then
    abort "No GRUB directory found.n To create a template run 'mkdir /boot/grub' first.n To install grub, install it manually or try the 'grub-install'
    command.n ### Warning, grub-install is used to change your MBR. ###"
    else
    echo "found: $grub_dir ." >&2
    fi
    echo $grub_dir
    find_device ()
    mount_point=$1
    # Autodetect current root device
    device=
    if [ -f /etc/fstab ] ; then
    script='
    /^#/ { next }
    $2 == "'"$mount_point"'" { print $1 ; exit }
    device=`awk "$script" /etc/fstab`
    fi
    if [ -n "$device" ] ; then
    case "$device" in
    LABEL=* | UUID=*)
    device=`readlink -f "$(findfs $device)"`
    device=`readlink -f "$device"`
    esac
    fi
    echo $device
    find_root_device ()
    device=$(find_device "/")
    if [ -z "$device" ]; then
    echo "$PROG: Cannot determine root device. Assuming /dev/hda1" >&2
    echo "This error is probably caused by an invalid /etc/fstab" >&2
    device=/dev/hda1
    fi
    echo $device
    # Usage: convert os_device
    # Convert an OS device to the corresponding GRUB drive.
    # This part is OS-specific.
    convert () {
    # First, check if the device file exists.
    if test -e "$1"; then
    else
    echo "$1: Not found or not a block device." 1>&2
    exit 1
    fi
    host_os=`uname -s | tr '[A-Z]' '[a-z]'`
    # Break the device name into the disk part and the partition part.
    case "$host_os" in
    linux)
    tmp_disk=`echo "$1" | sed -e 's%([sh]d[a-z])[0-9]*$%1%'
    -e 's%(fd[0-9]*)$%1%'
    -e 's%/part[0-9]*$%/disc%'
    -e 's%(c[0-7]d[0-9]*).*$%1%'`
    tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]([0-9]*)$%1%'
    -e 's%.*/fd[0-9]*$%%'
    -e 's%.*/floppy/[0-9]*$%%'
    -e 's%.*/(disc|part([0-9]*))$%2%'
    -e 's%.*c[0-7]d[0-9]*p*%%'`
    gnu)
    tmp_disk=`echo "$1" | sed 's%([sh]d[0-9]*).*%1%'`
    tmp_part=`echo "$1" | sed "s%$tmp_disk%%"` ;;
    freebsd|*/kfreebsd)
    tmp_disk=`echo "$1" | sed 's%r{0,1}([saw]d[0-9]*).*$%r1%'
    | sed 's%r{0,1}(da[0-9]*).*$%r1%'`
    tmp_part=`echo "$1"
    | sed "s%.*/r{0,1}[saw]d[0-9](s[0-9]*[a-h])%1%"
    | sed "s%.*/r{0,1}da[0-9](s[0-9]*[a-h])%1%"`
    netbsd|*/knetbsd)
    tmp_disk=`echo "$1" | sed 's%r{0,1}([sw]d[0-9]*).*$%r1d%'
    | sed 's%r{0,1}(fd[0-9]*).*$%r1a%'`
    tmp_part=`echo "$1"
    | sed "s%.*/r{0,1}[sw]d[0-9]([abe-p])%1%"`
    echo "update-grub does not support your OS yet." 1>&2
    exit 1 ;;
    esac
    # Get the drive name.
    tmp_drive=`grep -v '^#' $device_map | grep "$tmp_disk *$"
    | sed 's%.*(([hf]d[0-9][a-g0-9,]*)).*%1%'`
    # If not found, print an error message and exit.
    if test "x$tmp_drive" = x; then
    echo "$1 does not have any corresponding BIOS drive." 1>&2
    exit 1
    fi
    if test "x$tmp_part" != x; then
    # If a partition is specified, we need to translate it into the
    # GRUB's syntax.
    case "$host_os" in
    linux)
    echo "$tmp_drive" | sed "s%)$%,`expr $tmp_part - 1`)%" ;;
    gnu)
    if echo $tmp_part | grep "^s" >/dev/null; then
    tmp_pc_slice=`echo $tmp_part
    | sed "s%s([0-9]*)[a-g]*$%1%"`
    tmp_drive=`echo "$tmp_drive"
    | sed "s%)%,`expr "$tmp_pc_slice" - 1`)%"`
    fi
    if echo $tmp_part | grep "[a-g]$" >/dev/null; then
    tmp_bsd_partition=`echo "$tmp_part"
    | sed "s%[^a-g]*([a-g])$%1%"`
    tmp_drive=`echo "$tmp_drive"
    | sed "s%)%,$tmp_bsd_partition)%"`
    fi
    echo "$tmp_drive" ;;
    freebsd|*/kfreebsd)
    if echo $tmp_part | grep "^s" >/dev/null; then
    tmp_pc_slice=`echo $tmp_part
    | sed "s%s([0-9]*)[a-h]*$%1%"`
    tmp_drive=`echo "$tmp_drive"
    | sed "s%)%,`expr "$tmp_pc_slice" - 1`)%"`
    fi
    if echo $tmp_part | grep "[a-h]$" >/dev/null; then
    tmp_bsd_partition=`echo "$tmp_part"
    | sed "s%s{0,1}[0-9]*([a-h])$%1%"`
    tmp_drive=`echo "$tmp_drive"
    | sed "s%)%,$tmp_bsd_partition)%"`
    fi
    echo "$tmp_drive" ;;
    netbsd|*/knetbsd)
    if echo $tmp_part | grep "^[abe-p]$" >/dev/null; then
    tmp_bsd_partition=`echo "$tmp_part"
    | sed "s%([a-p])$%1%"`
    tmp_drive=`echo "$tmp_drive"
    | sed "s%)%,$tmp_bsd_partition)%"`
    fi
    echo "$tmp_drive" ;;
    esac
    else
    # If no partition is specified, just print the drive name.
    echo "$tmp_drive"
    fi
    # Usage: convert_default os_device
    # Convert an OS device to the corresponding GRUB drive.
    # Calls OS-specific convert, and returns a default of
    # (hd0,0) if anything goes wrong
    convert_default () {
    if tmp=$(convert $1 2>/dev/null) ; then
    echo $tmp
    else
    echo "(hd0,0)"
    fi
    ## Configuration Options
    # directory's to look for the grub installation and the menu file
    grub_dirs="/boot/grub /boot/boot/grub"
    # The grub installation directory
    grub_dir=$(find_grub_dir)
    # Full path to the menu.lst
    menu_file=$grub_dir/menu.lst
    # the device for the / filesystem
    root_device=$(find_root_device)
    # the device for the /boot filesystem
    boot_device=$(find_device "/boot")
    # Full path to the device.map
    device_map=$grub_dir/device.map
    # Default kernel options, overidden by the kopt statement in the menufile.
    kopt="root=$root_device ro"
    # Drive(in GRUB terms) where the kernel is located. Overridden by the
    # kopt statement in menufile.
    # if we don't have a device.map then we can't use the convert function.
    if test -f "$device_map" ; then
    if test -z "$boot_device" ; then
    grub_root_device=$(convert_default "$root_device")
    else
    grub_root_device=$(convert_default "$boot_device")
    fi
    else
    grub_root_device="(hd0,0)"
    fi
    # should grub create the alternative boot options in the menu
    alternative="true"
    # should grub lock the alternative boot options in the menu
    lockalternative="false"
    # options to use with the alternative boot options
    altoptions="(recovery mode) single"
    # controls howmany kernels are listed in the menu.lst,
    # this does not include the alternative kernels
    howmany="all"
    # should grub create a memtest86 entry
    memtest86="true"
    # stores the command line arguments
    command_line_arguments=$1
    # Default options to use in a new menu.lst . This will only be used if menu.lst
    # doesn't already exist. Only edit the lines between the two "EOF"s. The others are
    # part of the script.
    newtemplate=$(tempfile)
    cat > "$newtemplate" <<EOF
    # menu.lst - See: grub(8), info grub, update-grub(8)
    # grub-install(8), grub-floppy(8),
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.
    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    default 0
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 5
    # Pretty colours
    color cyan/blue white/blue
    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line) and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret
    # examples
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
    EOF
    ## End Configuration Options
    # Make sure we use the standard sorting order
    LC_COLLATE=C
    # Magic markers we use
    start="### BEGIN AUTOMAGIC KERNELS LIST"
    end="### END DEBIAN AUTOMAGIC KERNELS LIST"
    startopt="## ## Start Default Options ##"
    endopt="## ## End Default Options ##"
    # Extract options from menu.lst
    ExtractMenuOpt()
    opt=$1
    sed -ne "/^$start$/,/^$end$/ {
    /^$startopt$/,/^$endopt$/ {
    /^# $opt=/ {
    s/^# $opt=(.*)$/1/
    p
    }" $menu
    GetMenuOpts()
    opt=$1
    sed -ne "/^$start$/,/^$end$/ {
    /^$startopt$/,/^$endopt$/ {
    /^# $opt=/ {
    p
    }" $menu
    ExtractMenuOpts()
    opt=$1
    GetMenuOpts $opt | sed "s/^# $opt=(.*)$/1="4"/"
    GetMenuOpt()
    opt=$1
    value=$2
    tmp=$(ExtractMenuOpt "$opt")
    [ -z "$tmp" ] || value="$tmp"
    echo $value
    # Compares two version strings A and B
    # Returns -1 if A<B
    # 0 if A==B
    # 1 if A>B
    # This compares version numbers of the form
    # 2.4.14-random > 2.4.14-ac10 > 2.4.14 > 2.4.14-pre2 >
    # 2.4.14-pre1 > 2.4.13-ac99
    CompareVersions()
    # First split the version number and remove any '.' 's or dashes
    v1=$(echo $1 | sed -e 's![-.]+! !g' -e 's![.-]!!g')
    v2=$(echo $2 | sed -e 's![-.]+! !g' -e 's![.-]!!g')
    if echo $v1 | grep -q "smp"; then
    v1smp=1
    else
    v1smp=0
    fi
    if echo $v2 | grep -q "smp"; then
    v2smp=1
    else
    v2smp=0
    fi
    v1words=$(echo $v1 | wc -w)
    v2words=$(echo $v2 | wc -w)
    # we weight different kernel suffixes here
    # ac = 50
    # pre = -50
    # rc = -40
    # test = -60
    # others are given 99
    v1=$(echo $v1 | sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]+!99!g')
    v2=$(echo $v2 | sed -e 's! k7! 786 !g' -e 's! ac! 50 !g' -e 's! rc! -40 !g' -e 's! pre! -50 !g' -e 's! test! -60 !g' -e 's![^-0-9 ]+!99!g')
    # this code only works if you stay only with kernel-image kernels.
    if ( [ ! $v1words -eq 6 ] && [ $v1smp -eq 0 ] ) || ( [ ! $v1words -eq 7 ] && [ $v1smp -eq 1 ] ); then
    v1=$(echo $v1| cut -d" " -f1-4)" 0 "$(echo $v1| cut -d" " -f5-)
    fi
    if ( [ ! $v2words -eq 6 ] && [ $v2smp -eq 0 ] ) || ( [ ! $v2words -eq 7 ] && [ $v2smp -eq 1 ] ); then
    v2=$(echo $v2| cut -d" " -f1-4)" 0 "$(echo $v2| cut -d" " -f5-)
    fi
    result=0; v1finished=0; v2finished=0;
    while [ $result -eq 0 ] && [ $v1finished -eq 0 ] && [ $v2finished -eq 0 ];
    do
    if [ "$v1" = "" ]; then
    v1comp=0; v1finished=1
    else
    set -- $v1; v1comp=$1; shift; v1=$*
    fi
    if [ "$v2" = "" ]; then
    v2comp=0; v2finished=1
    else
    set -- $v2; v2comp=$1; shift; v2=$*
    fi
    if [ $v1comp -gt $v2comp ]; then result=1
    elif [ $v1comp -lt $v2comp ]; then result=-1
    fi
    done
    # finally return the result
    echo $result
    # looks in the directory specified for an initrd image with the version specified
    FindInitrdName()
    # strip trailing slashes
    directory=$(echo $1 | sed -e 's#/*$##')
    version=$2
    # initrd
    # initrd.img
    # initrd-lvm
    # .*.gz
    initrdName=""
    names="initrd initrd.img initrd-lvm"
    compressed="gz"
    for n in $names ; do
    # make sure we haven't already found it
    if [ -z "$initrdName" ] ; then
    if [ -f "$directory/$n$version" ] ; then
    initrdName="$n$version"
    break
    else
    for c in $compressed ; do
    if [ -f "$directory/$n$version.$c" ] ; then
    initrdName="$n$version.$c"
    break
    fi
    done
    fi
    else
    break
    fi
    done
    # return the result
    echo $initrdName
    get_kernel_opt()
    kernel_version=$1
    version=$(echo $kernel_version | sed 's/[^0-9]*([0-9]+).([0-9]+).([0-9]+).*/1_2_3/')
    if [ -n "$version" ] ; then
    while [ -n "$version" ] ; do
    currentOpt="$(eval "echo $kopt_$version")"
    if [ -n "$currentOpt" ] ; then
    break
    fi
    version=$(echo $version | sed 's/_?[0-9]*$//')
    done
    fi
    if [ -z "$currentOpt" ] ; then
    currentOpt=$kopt
    fi
    echo $currentOpt
    write_kernel_entry()
    kernel_version=$1
    recovery_desc=$2
    lock_alternative=$3
    grub_root_device=$4
    kernel=$5
    kernel_options=$6
    recovery_suffix=$7
    initrd=$8
    echo "title Debian GNU/Linux, kernel $kernel_version $recovery_desc" >> $buffer
    # lock the alternative options
    if test x"$lock_alternative" = x"true" ; then
    echo "lock" >> $buffer
    fi
    echo "root $grub_root_device" >> $buffer
    echo "kernel $kernel $kernel_options $recovery_suffix" >> $buffer
    if [ -n "$initrd" ]; then
    echo "initrd $initrd" >> $buffer
    fi
    echo "savedefault" >> $buffer
    echo "boot" >> $buffer
    echo >> $buffer
    echo -n "Testing for an existing GRUB menu.list file... "
    # Test if our menu file exists
    if [ -f "$menu_file" ] ; then
    menu="$menu_file"
    unset newtemplate
    echo "found: $menu_file ."
    cp -f "$menu_file" "$menu_file~"
    else
    # if not ask user if they want us to create one
    menu="$menu_file"
    echo
    echo
    echo -n "Could not find $menu_file file. "
    if [ "-y" = "$command_line_arguments" ] ; then
    echo
    echo "Generating $menu_file"
    answer=y
    else
    echo -n "Would you like $menu_file generated for you? "
    echo -n "(y/N) "
    read answer
    fi
    case "$answer" in
    y* | Y*)
    cat "$newtemplate" > $menu_file
    unset newtemplate
    abort "Not creating $menu_file as you wish"
    esac
    fi
    # Extract the kernel options to use
    kopt=$(GetMenuOpt "kopt" "$kopt")
    # Extract options for specific kernels
    eval $(ExtractMenuOpts "(kopt_[0-9](_[0-9]{1,2}(_[0-9]{1,2})?)?)")
    CustomKopts=$(GetMenuOpts "(kopt_[0-9](_[0-9]{1,2}(_[0-9]{1,2})?)?)")
    # Extract the grub root
    grub_root_device=$(GetMenuOpt "groot" "$grub_root_device")
    # Extract the old recovery value
    alternative=$(GetMenuOpt "recovery" "$alternative")
    # Extract the alternative value
    alternative=$(GetMenuOpt "alternative" "$alternative")
    # Extract the lockalternative value
    lockalternative=$(GetMenuOpt "lockalternative" "$lockalternative")
    # Extract the howmany value
    howmany=$(GetMenuOpt "howmany" "$howmany")
    # Extract the memtest86 value
    memtest86=$(GetMenuOpt "memtest86" "$memtest86")
    # Generate the menu options we want to insert
    buffer=$(tempfile)
    echo $start >> $buffer
    echo "## lines between the AUTOMAGIC KERNELS LIST markers will be modified" >> $buffer
    echo "## by the debian update-grub script except for the default optons below" >> $buffer
    echo >> $buffer
    echo "## DO NOT UNCOMMENT THEM, Just edit them to your needs" >> $buffer
    echo >> $buffer
    echo "## ## Start Default Options ##" >> $buffer
    echo "## default kernel options" >> $buffer
    echo "## default kernel options for automagic boot options" >> $buffer
    echo "## If you want special options for specifiv kernels use kopt_x_y_z" >> $buffer
    echo "## where x.y.z is kernel version. Minor versions can be omitted." >> $buffer
    echo "## e.g. kopt=root=/dev/hda1 ro" >> $buffer
    echo "# kopt=$kopt" >> $buffer
    if [ -n "$CustomKopts" ] ; then
    echo "$CustomKopts" >> $buffer
    fi
    echo >> $buffer
    echo "## default grub root device" >> $buffer
    echo "## e.g. groot=(hd0,0)" >> $buffer
    echo "# groot=$grub_root_device" >> $buffer
    echo >> $buffer
    echo "## should update-grub create alternative automagic boot options" >> $buffer
    echo "## e.g. alternative=true" >> $buffer
    echo "## alternative=false" >> $buffer
    echo "# alternative=$alternative" >> $buffer
    echo >> $buffer
    echo "## should update-grub lock alternative automagic boot options" >> $buffer
    echo "## e.g. lockalternative=true" >> $buffer
    echo "## lockalternative=false" >> $buffer
    echo "# lockalternative=$lockalternative" >> $buffer
    echo >> $buffer
    echo "## altoption boot targets option" >> $buffer
    echo "## multiple altoptions lines are allowed" >> $buffer
    echo "## e.g. altoptions=(extra menu suffix) extra boot options" >> $buffer
    echo "## altoptions=(recovery mode) single" >> $buffer
    if ! grep -q "^# altoptions" $menu ; then
    echo "# altoptions=$altoptions" >> $buffer
    else
    grep "^# altoptions" $menu >> $buffer
    fi
    echo >> $buffer
    echo "## controls how many kernels should be put into the menu.lst" >> $buffer
    echo "## only counts the first occurence of a kernel, not the" >> $buffer
    echo "## alternative kernel options" >> $buffer
    echo "## e.g. howmany=all" >> $buffer
    echo "## howmany=7" >> $buffer
    echo "# howmany=$howmany" >> $buffer
    echo >> $buffer
    echo "## should update-grub create memtest86 boot option" >> $buffer
    echo "## e.g. memtest86=true" >> $buffer
    echo "## memtest86=false" >> $buffer
    echo "# memtest86=$memtest86" >> $buffer
    echo >> $buffer
    echo "## ## End Default Options ##" >> $buffer
    echo >> $buffer
    echo -n "Searching for splash image... "
    if [ -f /boot/grub/splash.xpm.gz ]; then
    echo "found: /boot/grub/splash.xpm.gz ."
    echo "splashimage=${grub_root_device}${grub_dir}/splash.xpm.gz" >> $buffer
    echo >> $buffer
    else
    echo "none found, skipping..."
    fi
    sortedKernels=""
    for kern in $(/bin/ls -1vr /boot/vmlinuz-* | grep -v dpkg-*) ; do
    # found a kernel
    newerKernels=""
    for i in $sortedKernels ; do
    res=$(CompareVersions "$kern" "$i")
    if [ "$kern" != "" ] && [ "$res" -gt 0 ] ; then
    newerKernels="$newerKernels $kern $i"
    kern=""
    else
    newerKernels="$newerKernels $i"
    fi
    done
    if [ "$kern" != "" ] ; then
    newerKernels="$newerKernels $kern"
    fi
    sortedKernels="$newerKernels"
    done
    if test -f "/boot/vmlinuz.old" ; then
    sortedKernels="/boot/vmlinuz.old $sortedKernels"
    fi
    if test -f "/boot/vmlinuz" ; then
    sortedKernels="/boot/vmlinuz $sortedKernels"
    fi
    # figure out where grub looks for the kernels at boot time
    kernel_dir=/boot
    if [ -n "$boot_device" ] ; then
    kernel_dir=
    fi
    ## heres where we start writing out the kernel entries
    counter=0
    for kern in $sortedKernels ; do
    counter=$(($counter + 1))
    if test ! x"$howmany" = x"all" ; then
    if [ $counter -gt $howmany ] ; then
    break
    fi
    fi
    kernelName=$(basename $kern)
    kernelVersion=$(echo $kernelName | sed -e 's/vmlinuz//')
    initrdName=$(FindInitrdName "/boot" "$kernelVersion")
    initrd=""
    kernel=$kernel_dir/$kernelName
    if [ -n "$initrdName" ] ; then
    initrd=$kernel_dir/$initrdName
    fi
    echo "Found kernel: $kernel"
    if [ "$kernelName" = "vmlinuz" ]; then
    if [ -L "/boot/$kernelName" ]; then
    kernelVersion=`readlink -f "/boot/$kernelName"`
    kernelVersion=$(echo $kernelVersion | sed -e 's/.*vmlinuz-//')
    kernelVersion="$kernelVersion Default"
    else
    kernelVersion="Default"
    fi
    fi
    if [ "$kernelName" = "vmlinuz.old" ]; then
    if [ -L "/boot/$kernelName" ]; then
    kernelVersion=`readlink -f "/boot/$kernelName"`
    kernelVersion=$(echo $kernelVersion | sed -e 's/.*vmlinuz-//')
    kernelVersion="$kernelVersion Previous"
    else
    kernelVersion="Previous"
    fi
    fi
    kernelVersion=$(echo $kernelVersion | sed -e 's/^-//')
    currentOpt=$(get_kernel_opt $kernelVersion)
    write_kernel_entry "$kernelVersion" "" "" "$grub_root_device" "$kernel"
    "$currentOpt" "" "$initrd"
    # insert the alternative boot options
    if test ! x"$alternative" = x"false" ; then
    # for each altoptions line do this stuff
    sed -ne 's/# altoptions=(.*)/1/p' $buffer | while read line; do
    descr=$(echo $line | sed -ne 's/(([^)]*))[[:space:]](.*)/1/p')
    suffix=$(echo $line | sed -ne 's/(([^)]*))[[:space:]](.*)/2/p')
    write_kernel_entry "$kernelVersion" "$descr" "$lockalternative"
    "$grub_root_device" "$kernel" "$currentOpt" "$suffix" "$initrd"
    done
    fi
    done
    memtest86names="memtest86 memtest86+"
    if test ! x"$memtest86" = x"false" ; then
    for name in $memtest86names ; do
    if test -f "/boot/$name.bin" ; then
    kernelVersion="$name"
    kernel="$kernel_dir/$name.bin"
    currentOpt=
    initrd=
    echo "Found kernel: $kernel"
    write_kernel_entry "$kernelVersion" "" "" "$grub_root_device"
    "$kernel" "$currentOpt" "" "$initrd"
    fi
    done
    fi
    echo $end >> $buffer
    echo -n "Updating $menu ... "
    # Insert the new options into the menu
    if ! grep -q "^$start" $menu ; then
    cat $buffer >> $menu
    else
    umask 077
    sed -e "/^$start/,/^$end/{
    /^$start/r $buffer
    d
    " $menu > $menu.new
    cat $menu.new > $menu
    rm -f $buffer $menu.new
    fi
    echo "done"
    echo

  • Need help with installing Yahoo style flash menu CS5

    I downloaded the Yahoo style menu bar from the the available widgets.  I got the menu bar to show in Dreamweaver, but need help:
    I have trouble understanding how to use the f-source  flash editor to edit the links.
    I don't seem to be able to drop the  f-source.com button from the menu bar.
    The bar  shows up as a tiny bar in IE8, not as I had programmed it in the widget programmer.
    I was instructed to Insert ==> f-source menus ==> Edit menu in Dreamweaver.  Doing this leads to the following message: "Install at least one f-source menu'.  I did install the f-source-UI G file in the Adobe Extension Manager CS5.  What else needs to be installed?  
    My OS is Windows7 and I am working with Dreamweaver CS5.  Please help.
    Thanks,
    Tony Uythoven

    Flash menus (Flash navigation, period) is a terrible thing from a functional standpoint. It looks really nice, but the honeymoon ends there. As far as SEO goes, your entire site, beyond the landing page, is invisible. A search robot will only see an embeded Flash object.
    You have to ask yourself a basic question.
    1. What is the purpose of building a website and putting it online?
    If it's for your own personal enjoyment and nothing more, then a Flash menu may be for you. If it's for a business or band, or a political group or social group, and you want people to be able to find it in Google, Yahoo, Bing, etc. then you want as many indexible links as possible on your landing page so they will show up in related searches like schedules, articles, galleries, etc.

  • ComboBox (dropdown) Need Help Adding URL links!!!

    I am somewhat of a newbie....Anybody know how to use URL
    links in a ComboBox dropdown menu? NEED HELP!!!!!!! I'm trying to
    make it so that after selecting an option, the user is directed to
    another URL within the same browser window. Using flash 8!
    Thanks,

    Im a bit a newbie myslef but i think you make flash
    commuincate to javascript wich will make the browser goto the URL.
    do a search on getURL and javascript together and i am sure
    you will find something.
    And when slecting to redirct i think its on?(onPress)
    something so maybe look throught the help section in flash 8 and
    look at componets. I think there is some actionscript help there.
    Sorry i could not be more helpful.

  • I have a godaddy website with a welcome page- I need help adding a few additional pages with a hyperlink to my welcome page.

    I need help attaching a few hyperlinks my godaddy welcome page. I have 2 more ipages articles, I also converted them to pdf. Godaddy only helped (last year) with the 1st article.  I do not know how to attach a hyperlink to the artlcles and add the hyperlinks to my welcome page.

    The program is called Pages not iPages. Just let us know if you do not speak English and what language you do speak so we can adjust for that.
    The issues are to do with your web page not with Pages.
    I think you are asking how to link from your web page to your pdf articles. You must first copy those pdfs to your web server, or some other web location, and then provide html links on your welcome page to those pdf files.
    The pdfs themselves may contain links to other locations but I can not see that that is what you are asking for.
    Nor to what those links would be to.
    From your heading I think you may have confused the name of Pages, the word processing program, with web pages which are two different things.
    Peter

  • Need help adding links to carousel menu

    Here is the code I have now:
    var numOfItems:Number = 4;
    var radiusX:Number = 150;
    var radiusY:Number = 55;
    var centerX:Number = Stage.width/2;
    var centerY:Number = Stage.height/2 + 30;
    var speed:Number = 0.05;
    for(var i=1;i<numOfItems+1;i++) {
            var t = this.attachMovie("item"+i,"item"+i,i+1);
            t.angle = i * ((Math.PI*2)/numOfItems);
            t.onEnterFrame = mover;
    function mover() {
            this._x = Math.cos(this.angle) * radiusX + centerX;
            this._y = Math.sin(this.angle) * radiusY + centerY;
            var s:Number = this._y / (centerY + radiusY);
            this._xscale = this._yscale = s * 110;
            this.angle += this._parent.speed;
            this.swapDepths(Math.round(this._xscale) + 100);
    this.onMouseMove = function() {
            speed = (this._xmouse - centerX) / 3700;
    this code adds an item to the carousel menu. what im looking for is to create those items linkable to a different page. I think i should do it in the first part:
    for(var i=1;i<numOfItems+1;i++) {
             var t = this.attachMovie("item"+i,"item"+i,i+1);
             t.angle = i * ((Math.PI*2)/numOfItems);
             t.onEnterFrame = mover;
    but im not to sure. Also it doesn't matter what the url is so if I have to create inside that loop to make the urls go like this: page1.html page2.html page3.html page4.html beacuse it increments in the loop and add those links to each item on the fly. I can create the html pages to match the links later on so it doesn't matter at all what the urls turn out to be as long as they are all different. can I just use an onClick even on the tm like t.onClick = "page" + x + ".html"..... where x increments each time?
    does anyone have any suggestions on where to start? this code above was made from a tutorial and im new to flash so its a little hard for me to know where to start at.
    ~Kyle

    Here is the code I have now:
    var numOfItems:Number = 4;
    var radiusX:Number = 150;
    var radiusY:Number = 55;
    var centerX:Number = Stage.width/2;
    var centerY:Number = Stage.height/2 + 30;
    var speed:Number = 0.05;
    for(var i=1;i<numOfItems+1;i++) {
            var t = this.attachMovie("item"+i,"item"+i,i+1);
            t.angle = i * ((Math.PI*2)/numOfItems);
            t.onEnterFrame = mover;
    function mover() {
            this._x = Math.cos(this.angle) * radiusX + centerX;
            this._y = Math.sin(this.angle) * radiusY + centerY;
            var s:Number = this._y / (centerY + radiusY);
            this._xscale = this._yscale = s * 110;
            this.angle += this._parent.speed;
            this.swapDepths(Math.round(this._xscale) + 100);
    this.onMouseMove = function() {
            speed = (this._xmouse - centerX) / 3700;
    this code adds an item to the carousel menu. what im looking for is to create those items linkable to a different page. I think i should do it in the first part:
    for(var i=1;i<numOfItems+1;i++) {
             var t = this.attachMovie("item"+i,"item"+i,i+1);
             t.angle = i * ((Math.PI*2)/numOfItems);
             t.onEnterFrame = mover;
    but im not to sure. Also it doesn't matter what the url is so if I have to create inside that loop to make the urls go like this: page1.html page2.html page3.html page4.html beacuse it increments in the loop and add those links to each item on the fly. I can create the html pages to match the links later on so it doesn't matter at all what the urls turn out to be as long as they are all different. can I just use an onClick even on the tm like t.onClick = "page" + x + ".html"..... where x increments each time?
    does anyone have any suggestions on where to start? this code above was made from a tutorial and im new to flash so its a little hard for me to know where to start at.
    ~Kyle

  • Need Help To Create a Subpicture For Menu Buttons

    I've looked online, and Adobe and other sources say to create a custom subpicture (as in an animation to highlight my buttons not provided by default) and they all say the same thing: Open the menu in Photoshop, select the button folder and create the new layer in each named (=1) and making a shape.
    The only problem is, Photoshop doesn't allow me to open layers up as it wants me to simplify them, as it claims they are "not compatible". I'm still a bit of a newbie with Photoshop, but I am pretty sure I've done everything as instructed and I am genuinely at a loss as to what to do now...
    Any help would be appreciated! Why oh why can't Encore be more intuitive...

    I am not sure what you are doing. Opening a layer should not be a problem.
    So let's get on the same page...
    Open Encore, create a new test project for a DVD, add a menu. Doesn't matter which one.
    Right click on the menu you added, and pick "edit menu in photoshop." You can "open the menu" in photoshop (outside Encore), but it will be simpler in the long run to edit from Encore.
    You will see the button groups with a + symbol in front. And a triangle (showing a closed button group) to the left. Click that triangle, and you should see the layers in the group. Does that work?
    Now try what you were doing before, but in this menu. Does it work or ...?

  • Need help adding video to a site

    Hi Everyone:
    I really need some help please. The owner of a site I am
    working on sent me a DVD with video's he has taken and wants them
    put on his site.
    The files are VIDEO_TS and are MPEG files. How can I add the
    video's to the site so that when I user clicks on the link, they
    are able to either view the site or download the video to watch
    later. I have other video's added to the site but I was able to
    copy them and safe them the way there were added. The owner sells
    products from the site I copied them from.
    The site I am working on is www.buggyworld.net. Most of the
    individual pages for the vehilces have videos on them and I am
    trying to add these new ones the same way. I have never done this
    before so really not sure how to. The videos that are already added
    at Windows Media Audio/Video Files and that is how I would like to
    convert this video to.
    Any help would be so greatly appreciated.. thank you
    Linda

    Best bet would be to make Flash video so that everyone who
    wants to (and has
    the Flash Player plugin) can see them. Do you have Flash?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Frank Branker" <[email protected]> wrote in
    message
    news:f4ph73$rcd$[email protected]..
    > What?s the size of your MPG file?
    >
    > It?s better if you convert your file to a wmv file
    format because it?s
    > important to keep your file size under 6 Megs. Do you
    have the software to
    > do
    > this?
    > Windows Movie maker might be able to do this you can
    find it in your
    > program
    > files on your computer.
    >
    > If not we will have to work with what you have and do a
    quick and dirty
    > but I
    > don?t advise that.
    >
    > Below is a list of tools you may want to consider
    owning.
    >
    > Ripping Software
    > This software will rip from a dvd to just about any
    format including WMV
    >
    http://www.imtoo.com/dvd-ripper.html
    >
    > Compressing software
    > Sorenson Squeeze Suite 4.5 is the industry-leading video
    encoding tool
    >
    http://www.sorensonmedia.com/pages/?pageID=2
    >
    >
    >

  • Need help adding AM/PM to my clock program

    Hi everyone
    I would be grateful if you could help me adding AM/PM to my clockDisplay program, been trying but i'm not very familiar with Java.
    Thanks
    I have used 2 classes:
    NumberDisplay and ClockDisplay
    the clock automatically convert hours after 12 noon such as 14:34 to 02:34 so all i need is to add PM and AM accordingly.
    NumberDisplay classs:
    public class NumberDisplay
        private int limit;
        private int value;
        public NumberDisplay(int rollOverLimit)
            limit = rollOverLimit;
            value = 0;
        public int getValue()
            return value;
        public String getDisplayValue()
            if(value < 10)
                return "0" + value;
            else
                return "" + value;
        public void setValue(int replacementValue)
            if((replacementValue >= 0) && (replacementValue < limit))
                value = replacementValue;
            else if ( (replacementValue>=limit) && (replacementValue>=0) )
               value=replacementValue-12;
        public void increment()
            value = (value + 1) % limit;
    }ClockDisplay class:
    public class ClockDisplay
        private NumberDisplay hours;
        private NumberDisplay minutes;
        private String displayString;    // simulates the actual display
        public ClockDisplay()
            hours = new NumberDisplay(12);
            minutes = new NumberDisplay(60);
            updateDisplay();
        public ClockDisplay(int hour, int minute)
            hours = new NumberDisplay(12);
            minutes = new NumberDisplay(60);
            setTime(hour, minute);
        public void timeTick()
            minutes.increment();
            if(minutes.getValue() == 0) {
                hours.increment();
            updateDisplay();
        public void setTime(int hour, int minute)
            hours.setValue(hour);
            minutes.setValue(minute);
             updateDisplay(); 
        public String getTime()
            return displayString;
        private void updateDisplay()
            displayString = hours.getDisplayValue() + ":" +
                            minutes.getDisplayValue();
    }As you see value=replacementValue-12; do the job.
    i tried do this:
    if(hours.setValue(hour)>=12)
    updateDisplayPm();
    else
    updateDisplay();
    and for
    private void updateDisplayPm()
    displayString = hours.getDisplayValue() + ":" +
                            minutes.getDisplayValue() + "PM";but it didnt work.
    so should iwrite if statemnt in NumberDisplay class and refer it to ClockDisplay or i can do something in clockDisplay.
    Looking forward to hear from you
    thanks

    solved
    public class NumberDisplay
        private int limit;
        private int value;
        private boolean isam;
        public NumberDisplay(int rollOverLimit)
            limit = rollOverLimit;
            value = 0;
        public int getValue()
            return value;
          public boolean getAm()
                 return isam;
        public String getDisplayValue()
            if(value < 10)
                return "0" + value;
            else
                return "" + value;
        public void setValue(int replacementValue)
            if((replacementValue >= 0) && (replacementValue < limit))
                value = replacementValue;
                isam=true;
            else if ( (replacementValue>=limit) && (replacementValue>=0) )
               value=replacementValue-12;
               isam=false;
        public void increment()
            value = (value + 1) % limit;
    public class ClockDisplay
        private NumberDisplay hours;
        private NumberDisplay minutes;
        private String displayString;    // simulates the actual display
        private NumberDisplay amCheck;
        public ClockDisplay()
            hours = new NumberDisplay(12);
            minutes = new NumberDisplay(60);
            updateDisplay();
        public ClockDisplay(int hour, int minute)
            hours = new NumberDisplay(12);
            minutes = new NumberDisplay(60);
            setTime(hour, minute);
        public void timeTick()
            minutes.increment();
            if(minutes.getValue() == 0) {
                hours.increment();
            updateDisplay();
        public void setTime(int hour, int minute)
            hours.setValue(hour);
            minutes.setValue(minute);
           updateDisplay(); 
        public String getTime()
            return displayString;
        private void updateDisplay()
            if(hours.getAm())
            displayString = hours.getDisplayValue() + ":" +  minutes.getDisplayValue() + "AM";
            else
             displayString = hours.getDisplayValue() + ":" +  minutes.getDisplayValue() + " PM";
    }

Maybe you are looking for

  • How to synchronize my Imac at work and macbook at home

    I use a iMac at work and just got a Macbook to use at home. I am wondering if there is a way to make the two computers synchronized to each other, such as folders, files... Also, I want to get the 10.6 for my new Macbook, but my iMac still runs 10.5.

  • ITunes 7 fixed itself!

    I was having the static issue at first, like so many other people. Then I used the "volume slider all the way to the right" trick to fix it. Then I restarted, and it no longer worked, the static was back no matter where the slider was. I fiddled with

  • Will a Radeon 9600XT from a G5 DP 2.5GHz fit in a G4 450MHz 3,1

    Dear All, I know this is rather a legacy question what with us being on the brink of Snow Leopard and Power PC being put out to pasture but I've managed to salvage an unloved G4 from the Office dead pile and get it running again. Here's the specs: Mo

  • MacBook - right for me?

    Hello, I was wondering if any of you with MacBooks could help me out. I am trying to find out if the $1299 MacBook would be able to do what I need it to. I am huge on documentary-making and am about to upgrade to FinalCut Express. Would the $1299 Mac

  • How to install Ricoh mp 4000 on my mac ?

    How to install Ricoh mp 4000 on my mac ?