Announcement

Collapse
No announcement yet.

Installing GENTOO 2008.0 on a QEMU DISK IMAGE (and KDE4).

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    Thanks for relinking the page.

    Comment


    • #12
      Originally posted by Jade View Post
      Why is this still delinked from the front page?
      Do you mean the "Popular in the Forums" section, which I assume is automatically generated based on posting or reading activity ? If the thread is delinked from there it probably just means the thread was not sufficiently popular at that moment. I imagine the "relinking" happened as a result of your own posts to the thread.
      Test signature

      Comment


      • #13
        Originally posted by bridgman View Post
        Do you mean the "Popular in the Forums" section, which I assume is automatically generated based on posting or reading activity ? If the thread is delinked from there it probably just means the thread was not sufficiently popular at that moment. I imagine the "relinking" happened as a result of your own posts to the thread.
        Yes, I mean the "Popular in the Forums" section, which is automatically generated after 5 replies are recorded by a thread.

        In this thread there were 12 replies (2 were just checks to see if the thread had been relinked and have been deleted) before it appeared on the "Popular in the Forums" section.

        Comment


        • #14
          For those who just want to see what the script does, here are the commands:

          echo -e "n\np\n1\n\n8\nn\np\n2\n\n70\nn\np\n3\n\n\nt\n2\n8 2\na\n1\np\nw"|fdisk /dev/hda
          (partitions the virtual harddisk)
          mkfs.ext2 /dev/hda1 (formats the boot partition)
          mkswap /dev/hda2 (sets up the swap area)
          mkfs.ext3 /dev/hda3 (formats the Gentoo 2008 partition)
          mkdir /1 (creates a mount point for the 3rd partition)
          mount /dev/hda3 /1 (mounts the 3rd partition)
          cd /mnt/livecd
          tar -cpf - * | tar -C /1 -xpf - (copies the LiveCD)
          rm -f /1/usr/portage/{eclass,profiles} (removes some links)
          tar -xjpf /b/portage*.tar.* -C /1/usr/ (unpacks the copy of portage in /b)
          rm -f /1/etc/gconf /1/var/db (removes more links)
          mv /1/usr/livecd/gconf /1/etc (copies configuration files)
          mv /1/usr/livecd/db /1/var (copies emerge database)
          rm -fr /1/usr/livecd (some house-keeping)
          rm -f /1/home/gentoo/Desktop/* (more house-keeping)
          rm -f /1/etc/runlevels/default/{autoconfig,local} (important)
          awk '{print gensub(/cirrus/,"vesa","g")}' /etc/X11/xorg.conf > /1/etc/X11/xorg.conf
          (corrects the graphics configuration)
          cp /etc/profile.csh /1/etc/profile.csh (copies eselect configuration)
          cp /etc/ld.so.conf /1/etc/ld.so.conf (adds /usr/local/lib to ld.so.conf)
          echo -e "ACCEPT_KEYWORDS=\"~amd64\"
          GENTOO_MIRRORS=\"http://distfiles.gentoo.org\"
          FETCHCOMMAND=\"/usr/bin/wget -t 2 -T 30 --passive-ftp \\\${URI} -P \\\${DISTDIR}\"
          USE=\"arts xcomposite htmlhandbook mplayer ffmpeg flac a52 aac cdparanoia cdr dv dvd dvdr
          dvdread gimp imagemagick gif ncurses gcj fortran zlib cups curl curlwrappers doc nls\"
          VIDEO_CARDS=\"cirrus fbdev glint i810 mach64 mga neomagic nv r128 radeon s3virge savage
          sis tdfx trident vesa vga via vmware voodoo\"
          CAMERAS=\"adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev
          dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120
          kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm
          mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859
          pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3
          samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55
          soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11\"
          " | tee -a /1/etc/make.conf (adds USE-variables, etc, to the make.conf file)
          echo -e "#filesystem mount type options dump fsck-order
          /dev/hda1 /boot ext2 defaults 1 2
          /dev/hda2 swap swap defaults 0 0
          /dev/hda3 / ext3 noatime 0 1
          none /proc proc defaults 0 0
          none /dev/shm tmpfs defaults 0 0
          /dev/fd0 /a vfat user,noauto 0 0
          /dev/cdrom /cd iso9660 user,noauto,ro,exec 0 0
          " | tee /1/etc/fstab (creates a new fstab file)
          chroot /1 /bin/bash << EOG (change-roots to the new system)
          mount /dev/hda1 /boot (mounts the boot partition)
          grub-install /dev/hda1 (installs the grub machinary)
          /sbin/grub --batch << EOB (configures the grub machinary)
          root (hd0,0)
          setup (hd0)
          quit
          EOB
          passwd << EOP (sets the root password as the single letter p)
          p
          p
          EOP
          umount /boot (unmounts the boot partition)
          emerge -C qt:4 (emerge --unmerge qt:4)
          exit (exits the change root environment)
          EOG
          mount /dev/hda1 /1/boot (mounts the boot partition)
          cp -r /boot/* /1/boot/ (copies the boot machinary)
          echo -e "default 0
          timeout 5
          title GENTOO 2008.0 kernel-genkernel-x86_64-2.6.24-gentoo-r7 /dev/hda3
          kernel (hd0,0)/kernel-genkernel-x86_64-2.6.24-gentoo-r7 root=/dev/ram0 real_root=/dev/hda3 udev ro
          initrd (hd0,0)/initramfs-genkernel-x86_64-2.6.24-gentoo-r7
          " | tee -a /1/boot/grub/menu.lst (adds a boot entry to the menu.lst file)
          echo -e "8139too\nsnd_ens1370" >> /1/etc/modules.autoload.d/kernel-2.6
          (makes sure the ethernet & sound drivers are loaded at boot)

          Comment


          • #15
            This may be of some interest:

            Compiling the Kernel Virtual Machine (version 71).

            How to Make a Website with free web hosting services & cheap web hosting for ecommerce & small business hosting. Create & Make a Free Website with Affordable web hosting provider free website promotion tools & web stats. Free Website Builder, Templates, & Best Free Web Hosting. How to Create a Website

            Comment


            • #16
              Oh,... Come on,.. someone must have some comments/improvements to the script.

              Comment


              • #17
                Pretty bad style, better would be:

                sfdisk ...<EOT
                ...
                EOT

                instead of echo|fdisk at least. makes it more readable. Next thing is: do not hardcode devices, thats stupid - especially that hda is not used in newer kernels with libata. You can always use the same marker, it is not needed to use differnent ones with every use. Instead of echo "..." > use:

                cat > filename <<EOT
                ...
                EOT

                In case you do not need vars in it you can use a trick that you do not need to escape chars, when you use:

                cat > file <<'EOT'
                ...
                EOT

                Comment


                • #18
                  Thanks for the tips Kano.

                  Comment


                  • #19
                    Anyone know of a guide for a more recent KVM version?

                    Comment


                    • #20
                      Originally posted by Jade View Post
                      Anyone know of a guide for a more recent KVM version?
                      Yeah,... here is a guide for KVM 86

                      Comment

                      Working...
                      X