Re: [gentoo-user] Transferring an existing install to new disk
Dirk Uys wrote: On Wed, Nov 12, 2008 at 9:35 AM, Harry Putnam [EMAIL PROTECTED] wrote: I should know how to do this but so many changes have happened recently and I haven't done anything like this for a very long time. My desktop version of gentoo is pretty far out of date. And I think there have been enough changes that I don't even want to try to get it cleaned up. Rather, I'd like to build up a newly installed gentoo to the point where it has all the stuff I want. But do it inside a vmware virtual machine. I'm trying to keep my working desktop in place until such time as the vmware gentoo setup is ready Once that install is up to speed with all my preferred apps in place. And any kinks worked out... Only then use it to overwrite my desktop OS. Or reformat that disk and move the vmware gentoo version to it. The vmware gentoo would be guest on a windows XP pro machine. I'd like to hear any comments concerning what problems I might run into or whether the plan is likely to be a serious mess. Also wouldn't mind seeing a rough outline of how to make that kind of move. I've thought about this myself, but I think there are some issues. The hardware that vmware can simulate are limited and may not match your actual hardware. This does not mean it's impossible, but you may need to set network, graphics ,etc up again once the system is transferred. Guess the steps will be pretty much the same as for transferring between partitions or similar machines - make sure all the required modules for the target system is compiled in the kernel. - Update /etc/fstab to point to the correct devices. - Update the grub.conf to pass the correct root. (btw, does anyone use anything other than grub these days?) - Use tar (with appropriate flags to keep permissions and symlinks in place) to transfer all the files - Install the bootloader on the target MBR I may have missed a few things, but that's everything I currently remember. Harry was asking about going between two machines. I did something similar recently ((http://blog.garrysmith.net/?p=62#more-62) and used the following command to pass the output from tar directly to the destination machine over SSH: tar -cvzpf - ./bin ./boot ./dev ./etc ./lib ./lost+found ./media ./mnt ./opt ./proc ./root ./sbin ./sys ./usr ./var | ssh -p8889 [EMAIL PROTECTED] “cd /mnt/gentoo; tar -xzpf -” Unfortunately the symbolic links all came out as 0 byte files (not sym links), so in the end I fell back on rsync (over SSH) which did the job. How do you normally preserve symlinks using tar piped over SSH? An example of the rsync command I used was: rsync -avpe ssh -p 8889 /home [EMAIL PROTECTED]:/mnt/gentoo The next time that I do this, I will just use rsync straight away and not use tar. The Gentoo Live CD has rsync (the Gentoo minimal install doesn't), so you should use the former (I booted both machines (one of them within VMWare fusion) from live the CD in order to do the copy. cheers Garry
Re: [gentoo-user] DVD burner recomendation
Hi James Also, I have a series of files as a result of starting and stopping a sony video camera at football games: At the very least, I need to be be able to combine them: M2U1.MPG . M2U00043.MPG into a single image How about, e.g.: [EMAIL PROTECTED] /tmp $ cat m2u00068.mpg new.mpg [EMAIL PROTECTED] /tmp $ cat m2u00058.mpg new.mpg You could script this for a large number of files of course. regards Garry -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Re: OT :video cameras and gentoo
Hi James i have a sony digital camera that takes movies, and it just shows up as a usb drive. Well, I went ahaed and purchased a sony DCR SR42. It does not show up with usbview, ivman or in the dmesg if I reboot and leave it attached via usb. I have a Sony DCR-SR32 that I use with my Gentoo Thinkpad. This is a great little camera that works well with Linux (i.e. shows up as a USB mass storage device). Your model is in the same range so I would imaging the following would work for you as well. To get the video off the camera, I do the following: 1. Plug the docking station into the wall socket and turn the wall power on. Plug the USB lead into the laptop. 2. Attach the camera to the docking station and switch the camera on. 3. Open up the LCD display. Select the computer hard disk button. 4. At that point /var/log/messages shows something like: Aug 13 10:07:59 obufki usb 1-2: new high speed USB device using ehci_hcd and address 4 Aug 13 10:07:59 obufki usb 1-2: configuration #1 chosen from 1 choice Aug 13 10:07:59 obufki scsi4 : SCSI emulation for USB Mass Storage devices Aug 13 10:07:59 obufki usb-storage: device found at 4 Aug 13 10:07:59 obufki usb-storage: waiting for device to settle before scanning Aug 13 10:08:04 obufki Vendor: Sony Model: Camcorder Rev: 1.00 Aug 13 10:08:04 obufki Type: Direct-Access ANSI SCSI revision: 00 Aug 13 10:08:04 obufki SCSI device sdb: 58605120 512-byte hdwr sectors (30006 MB) Aug 13 10:08:04 obufki sdb: Write Protect is on Aug 13 10:08:04 obufki sdb: Mode Sense: 00 32 00 80 Aug 13 10:08:04 obufki sdb: assuming drive cache: write through Aug 13 10:08:04 obufki SCSI device sdb: 58605120 512-byte hdwr sectors (30006 MB) Aug 13 10:08:04 obufki sdb: Write Protect is on Aug 13 10:08:04 obufki sdb: Mode Sense: 00 32 00 80 Aug 13 10:08:04 obufki sdb: assuming drive cache: write through Aug 13 10:08:04 obufki sdb: sdb1 Aug 13 10:08:04 obufki sd 4:0:0:0: Attached scsi removable disk sdb Aug 13 10:08:04 obufki sd 4:0:0:0: Attached scsi generic sg1 type 0 Aug 13 10:08:04 obufki usb-storage: device scan complete Aug 13 10:08:05 obufki scsi.agent[7784]: disk at /devices/pci:00/:00:1d.7/usb1/1-2/1-2:1.0/host4/target4:0:0/4:0:0:0 5. The LCD shows: Connecting... Do not unplug the USB cable. Do not turn off the power. There is also an END button that you press after you have finished transfering the video. 6. Mount the device under Linux: e.g. mount /mnt/camcorder My /etc/fstab entry looks like: /dev/sdb1 /mnt/camcorder autonoauto,ro,user 0 0 7. cp /mnt/camcorder/mp_root/101pnv01/* ~/video 8. After video has finished transferring, umount /mnt/camcorder 9. Press the 'END' button on the camera LCD display and follow any instructions. The only gotcha for me was, the first time I tried this I hadn't connected the camera to the docking station properly. You really need to give it a good shove to make sure the connection is good. Did you activate anything special in your kernel? [EMAIL PROTECTED] /usr/src/linux $ grep -i USB .config |grep -v 'is not set' CONFIG_BT_HCIUSB=y CONFIG_BT_HCIUSB_SCO=y CONFIG_BT_HCIBFUSB=y # Supported USB Adapters # USB devices CONFIG_SND_USB_AUDIO=m # USB support CONFIG_USB_ARCH_HAS_HCD=y CONFIG_USB_ARCH_HAS_OHCI=y CONFIG_USB_ARCH_HAS_EHCI=y CONFIG_USB=y # Miscellaneous USB options CONFIG_USB_DEVICEFS=y # USB Host Controller Drivers CONFIG_USB_EHCI_HCD=y CONFIG_USB_UHCI_HCD=y # USB Device Class drivers CONFIG_USB_PRINTER=y # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' # may also be needed; see USB_STORAGE Help for more information CONFIG_USB_STORAGE=y # USB Input Devices CONFIG_USB_HID=y CONFIG_USB_HIDINPUT=y # USB Imaging devices # USB Network Adapters # USB port drivers # USB Serial Converter support CONFIG_USB_SERIAL=m CONFIG_USB_SERIAL_GENERIC=y CONFIG_USB_SERIAL_FTDI_SIO=m CONFIG_USB_SERIAL_VISOR=m CONFIG_USB_SERIAL_MCT_U232=m # USB Miscellaneous drivers # USB DSL modem support # USB Gadget Support i would assume that the video recorders would work the same way. maybe you can take a laptop to a store that sells them and check to see if it works that way or find someone that has one and borrow it. if you dont want sony recorders im sure you can find another brand with the same interface. Well, If I cannot get it to at least mount the 30Gig HD like most usb devices, I might just return it for another model... ideas on things to try to get this DCR SR42 to work? Try the above. This is a great little camera and I am really glad I bought it. Good luck Garry -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Ganglia fails to compile
Hi guys, Thanks for the replies Bo Ørsted Andresen wrote: Or it could be because Garry used USE=~x86 rather than ACCEPT_KEYWORDS=~x86. With ACCEPT_KEYWORDS, testing versions are shown. Curses! Fingers and brain were not connected when I typed that ;-( Thanks again. regards Garry -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Ganglia fails to compile
Hi, Bo Ørsted Andresen wrote: On Saturday 23 June 2007 12:41:27 Garry Smith wrote: Ganglia fails to compile. Any ideas? You could try again with v3.0.3 or possibly v3.0.4 (bug #172206 [1])... [1] https://bugs.gentoo.org/show_bug.cgi?id=172206 obufki gms # USE=~x86 emerge -s ganglia Searching... [ Results for search key : ganglia ] [ Applications found : 1 ] * sys-cluster/ganglia Latest version available: 2.5.7 Latest version installed: [ Not Installed ] Size of files: 485 kB Homepage: http://ganglia.sourceforge.net/ Description: Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids License: BSD How do I find the v3.0.n versions? Thanks regards Garry -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] no images displayed in Konqueror or Gwenview
Hi, My Konqueror and Gwenview applications are not displaying images (no thumbnails or images displayed) Gwenview 1.3.1 (Using KDE 3.5.5) What library do I need to be looking at to get png, gif, jpeg support for these two applications? you need to rebuild qt with support for all of them. Check your useflags! Thanks for the replies. I recompiled QT but still no joy with either Konqueror or gwenview displaying images. I did: USE=opengl png zlib gif emerge -av x11-libs/qt emerge -av media-gfx/gwenview Use flags for these packages are: obufki gms # emerge -av x11-libs/qt Calculating dependencies... done! [ebuild R ] x11-libs/qt-4.2.3-r1 USE=cups dbus doc examples jpeg mysql opengl png zlib -accessibility -debug -firebird -gif* -glib -mng -nas -nis -odbc -pch -postgres -qt3support -sqlite -sqlite3 -xinerama INPUT_DEVICES=-wacom 0 kB obufki gms # emerge -av konqueror Calculating dependencies... done! [ebuild R ] kde-base/konqueror-3.5.5 USE=java -arts -debug -kdeenablefinal -kdehiddenvisibility -xinerama 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB obufki gms # emerge -av gwenview Calculating dependencies... done! [ebuild R ] media-gfx/gwenview-1.3.1-r1 USE=-arts -debug -kdehiddenvisibility -kipi -xinerama 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB Any other ideas? Thanks in advance Garry -- [EMAIL PROTECTED] mailing list
[gentoo-user] no images displayed in Konqueror or Gwenview
Hi all, My Konqueror and Gwenview applications are not displaying images (no thumbnails or images displayed) Gwenview 1.3.1 (Using KDE 3.5.5) What library do I need to be looking at to get png, gif, jpeg support for these two applications? Many thanks regards Garry -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] How do I detect that I'm on Gentoo?
Hi How about cat /etc/gentoo-release cheers Garry Jules Colding wrote: Hi, The question might seem silly, but I'm writing a few lines in my 'configure.in' that should detect which distribution the package is being build on. This is for making distribution dependent modifications in the source/build scripts. So, how do I detect that I'm on gentoo? Anything like lsb_release here?? I can see that lsb in masked so I'm preferably looking for something that is present in most gentoo installations. Thanks, jules -- gentoo-user@gentoo.org mailing list
[gentoo-user] glas-check: Cannot find $EPATCH_SOURCE!
Hi all, sudo emerge --sync sudo glsa-check -f $(glsa-check -t all) I get the following error for openldap-2.3.27: !!! ERROR: net-nds/openldap-2.3.27-r3 failed. Call stack: ebuild.sh, line 1614: Called dyn_unpack ebuild.sh, line 751: Called qa_call 'src_unpack' environment, line 4079: Called src_unpack openldap-2.3.27-r3.ebuild, line 205: Called epatch '/usr/portage/net-nds/openldap/files/openldap-2.3.27-CVE-2006-5779.patch' eutils.eclass, line 198: Called die !!! Cannot find $EPATCH_SOURCE! Any ideas? Further details below. Thanks and regards Garry [EMAIL PROTECTED] /etc $ cat gentoo-release Gentoo Base System version 1.12.6 [EMAIL PROTECTED] /etc/conf.d $ emerge --version Portage 2.1.2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.17.13 i686) [EMAIL PROTECTED] /etc $ uname -a Linux obufki 2.6.17.13 #5 SMP PREEMPT Sun Dec 17 21:22:10 GMT 2006 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz GenuineIntel GNU/Linux sudo glsa-check -f $(glsa-check -t all) Emerging (1 of 1) net-nds/openldap-2.3.27-r3 to / Downloading 'http://gentoo.blueyonder.co.uk/distfiles/openldap-2.3.27.tgz' --10:47:30-- http://gentoo.blueyonder.co.uk/distfiles/openldap-2.3.27.tgz = `/usr/portage/distfiles/openldap-2.3.27.tgz' Resolving gentoo.blueyonder.co.uk... 194.117.143.70, 194.117.143.71, 194.117.143.72, ... Connecting to gentoo.blueyonder.co.uk|194.117.143.70|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://gentoo.virginmedia.com/distfiles/openldap-2.3.27.tgz [following] --10:47:30-- http://gentoo.virginmedia.com/distfiles/openldap-2.3.27.tgz = `/usr/portage/distfiles/openldap-2.3.27.tgz' Resolving gentoo.virginmedia.com... 194.117.143.71, 194.117.143.72, 194.117.143.69, ... Connecting to gentoo.virginmedia.com|194.117.143.71|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3,757,519 (3.6M) [application/x-tar] 100%[] 3,757,519348.72K/sETA 00:00 10:47:41 (335.21 KB/s) - `/usr/portage/distfiles/openldap-2.3.27.tgz' saved [3757519/3757519] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking openldap-2.3.27.tgz ;-) ... [ ok ] * * Scanning datadir(s) from slapd.conf and * the default installdir for Versiontags * (/var/lib/openldap-data may appear twice) * * - Checking /var/lib/openldap-data... *Found Versiontag in /var/lib/openldap-data *Versiontag is fine here :) * * - Checking /var/lib/openldap-data... *Found Versiontag in /var/lib/openldap-data *Versiontag is fine here :) * * * All datadirs are fine, proceeding with merge now... * Unpacking source... Unpacking openldap-2.3.27.tgz to /var/tmp/portage/net-nds/openldap-2.3.27-r3/work * Applying openldap-2.2.14-perlthreadsfix.patch ... [ ok ] * Applying openldap-2.2.6-ntlm.patch ... [ ok ] * Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is: * * /usr/portage/net-nds/openldap/files/openldap-2.3.27-CVE-2006-5779.patch * ( openldap-2.3.27-CVE-2006-5779.patch ) !!! ERROR: net-nds/openldap-2.3.27-r3 failed. Call stack: ebuild.sh, line 1614: Called dyn_unpack ebuild.sh, line 751: Called qa_call 'src_unpack' environment, line 4079: Called src_unpack openldap-2.3.27-r3.ebuild, line 205: Called epatch '/usr/portage/net-nds/openldap/files/openldap-2.3.27-CVE-2006-5779.patch' eutils.eclass, line 198: Called die !!! Cannot find $EPATCH_SOURCE! !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/net-nds/openldap-2.3.27-r3/temp/build.log'. - [EMAIL PROTECTED] /usr/portage/net-nds/openldap/files $ ls DB_CONFIG.fast.example digest-openldap-2.3.30-r2 openldap-2.3.21-ppolicy.patch slurpd-initd digest-openldap-2.1.30-r10 digest-openldap-2.3.33 openldap-2.3.24-contrib-smbk5pwd.patch digest-openldap-2.2.28-r7 openldap-2.2.14-perlthreadsfix.patch slapd-confd digest-openldap-2.3.27-r3 openldap-2.2.6-ntlm.patch slapd-initd -- gentoo-user@gentoo.org mailing list
[gentoo-user] xorg: Failed to load module: glx fglrx
Hi, I am trying to configure a Thinkpad T60 2500 with xorg and the ATI X1400 driver. What do I need to do to get xorg to pickup up the glx and fglrx modules? Further details below. Many thanks in advance. regards Garry obufki log # startx xauth: creating new authority file /root/.serverauth.6589 X Window System Version 7.1.1 Release Date: 12 May 2006 X Protocol Version 11, Revision 0, Release 7.1.1 Build Operating System: Linux 2.6.17.13 i686 Current Operating System: Linux obufki 2.6.17.13 #4 SMP PREEMPT Sun Nov 26 12:59:25 GMT 2006 i686 Build Date: 25 November 2006 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: /var/log/Xorg.0.log, Time: Sun Nov 26 13:20:32 2006 (==) Using config file: /etc/X11/xorg.conf (EE) Failed to load module glx (module does not exist, 0) (EE) Failed to load module fglrx (module does not exist, 0) (EE) No drivers available. Fatal server error: no screens found XIO: fatal IO error 104 (Connection reset by peer) on X server :0.0 after 0 requests (0 known processed) with 0 events remaining. From Xorg.0.log: (II) LoadModule: freetype (II) Loading /usr/lib/xorg/modules/fonts/libfreetype.so (II) Module freetype: vendor=X.Org Foundation the After X-TT Project compiled for 7.1.1, module version = 2.1.0 Module class: X.Org Font Renderer ABI class: X.Org Font Renderer, version 0.5 (II) Loading font FreeType (II) LoadModule: glx (WW) Warning, couldn't open module glx (II) UnloadModule: glx (EE) Failed to load module glx (module does not exist, 0) . . . (II) Module vbe: vendor=X.Org Foundation compiled for 7.1.1, module version = 1.1.0 ABI class: X.Org Video Driver, version 1.0 (II) LoadModule: fglrx (WW) Warning, couldn't open module fglrx (II) UnloadModule: fglrx (EE) Failed to load module fglrx (module does not exist, 0) . . . (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so (II) Module synaptics: vendor=X.Org Foundation compiled for 4.3.99.902, module version = 1.0.0 Module class: X.Org XInput Driver ABI class: X.Org XInput driver, version 0.6 (EE) No drivers available. Fatal server error: no screens found Further details: --- obufki log # cat /etc/gentoo-release Gentoo Base System version 1.12.1 uname -a: Linux obufki 2.6.17.13 #4 SMP PREEMPT Sun Nov 26 12:59:25 GMT 2006 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz GNU/Linux obufki log # lspci 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03) 00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02) 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02) 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02) 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02) 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02) 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility X1400 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller 03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02) 15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller obufki log # lsmod Module Size Used by fglrx 394220 0 capability 5768 0 commoncap 8064 1 capability evdev 10880 0 ati_agp10124 0 agpgart33868 2 fglrx,ati_agp emerge -s xorg includes the following: * x11-base/xorg-server Latest version available:
Re: [gentoo-user] xorg: Failed to load module: glx fglrx
Hi Mick, Mick wrote: On Saturday 25 November 2006 13:25, Garry Smith wrote: Hi, I am trying to configure a Thinkpad T60 2500 with xorg and the ATI X1400 driver. What do I need to do to get xorg to pickup up the glx and fglrx modules? You need to remerge ati-drivers every time after you compile a new kernel. That got it :-) Thank you. For the record I did the following: 1. Recompile kernel 2. Re emerge Xorg (deep with new use flags): emerge -DvatN xorg-x11 3. Remerge the ati drivers again emerge -av x11-drivers/ati-drivers emerge -av x11-apps/ati-drivers-extra etc-update source /etc/profile eselect opengl set ati modprobe fglrx startx Thank you. regards Garry -- gentoo-user@gentoo.org mailing list