Re: [gentoo-user] Network manager for laptop
At Tue, 06 May 2008 13:48:46 +0800, William Kenworthy wrote: On Tue, 2008-05-06 at 01:42 -0300, Daniel da Veiga wrote: On Mon, May 5, 2008 at 7:12 PM, deface [EMAIL PROTECTED] wrote: snipped the frustration been there, done that ... and gave up. Write your own scripts and shortcut the frustration. Keep a directory with a subdirectory for each site. Have all config files needed properly configured and stored there. Lastly, a simple script just copies in the required files over the top of the last lot and restarts the services. I have a desktop icon and a GUI (using gtkdialog) so I can easily select the correct site. Ive tried a few like network manager, and also tried to get gentoo's networking to do it semi-automaticly to help, but all I ended up with was a frustratingly fragile mess. I have a laptop too, and I always found that the gentoo networking scripts where fully sufficient for keeeping me on-line. Okay, the wireless is a bit flaky, but only when connecting. Note: I do not use network manager. What exactly are your problems? Regards, Jan Seeger -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] to which package scrbook.cls belongs?
Dear all I just emerged lyx and it doesn't work. The issue is class files are missing (one example is scrbook.cls). It should be installed together with lyx but it didn't. I need to install a package containing this file. to which package this file belongs to? I googled around without luck Thanks. The complete description of the issue is as follows: G. Milde's suggestion on solving my lyx problem: On 6.05.08, Zhang Weiwu wrote: error message in opening tutorial with lyx. The opened tutorial is not printable. see below: ... Warning: Document class not available The layout file requested by this document, scrbook.layout, is not usable. This is probably because a LaTeX class or style file required by it is not available. ... [EMAIL PROTECTED]:~$ locate scrbook.layout /usr/share/lyx/layouts/scrbook.layout scrbook.layout is the LyX layout file, for printed output it requires the *LaTeX class file* ``scrbook.cls``: [EMAIL PROTECTED]:/tmp locate scrbook.cls /usr/share/texmf-texlive/tex/latex/koma-script/scrbook.cls Looking at HelpLaTeXConfig, you can find out which LaTeX classes and packages are found by the latest ToolsReconfigure run. Here I have: Found: scrartcl: yes, scrreprt: yes, scrbook: yes Fix: Find out which Gentoo package provides the file scrbook.cls and install it (or install all classes that are marked as required, recommended or suggested by LyX). -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] to which package scrbook.cls belongs?
Zhang Weiwu schrieb: Dear all I just emerged lyx and it doesn't work. The issue is class files are missing (one example is scrbook.cls). It should be installed together with lyx but it didn't. I need to install a package containing this file. to which package this file belongs to? I googled around without luck Thanks. The complete description of the issue is as follows: G. Milde's suggestion on solving my lyx problem: On 6.05.08, Zhang Weiwu wrote: error message in opening tutorial with lyx. The opened tutorial is not printable. see below: ... Warning: Document class not available The layout file requested by this document, scrbook.layout, is not usable. This is probably because a LaTeX class or style file required by it is not available. ... [EMAIL PROTECTED]:~$ locate scrbook.layout /usr/share/lyx/layouts/scrbook.layout scrbook.layout is the LyX layout file, for printed output it requires the *LaTeX class file* ``scrbook.cls``: [EMAIL PROTECTED]:/tmp locate scrbook.cls /usr/share/texmf-texlive/tex/latex/koma-script/scrbook.cls Looking at HelpLaTeXConfig, you can find out which LaTeX classes and packages are found by the latest ToolsReconfigure run. Here I have: Found: scrartcl: yes, scrreprt: yes, scrbook: yes Fix: Find out which Gentoo package provides the file scrbook.cls and install it (or install all classes that are marked as required, recommended or suggested by LyX). www.portagefilelist.de could answer these kinds of questions. But the package you are looking for is dev-texlive/texlive-latexrecommended-2007. signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] [OT] Which openoffice
On Monday 5 May 2008, 22:12, Alan McKinnon wrote: nazgul screenlets-0.0.2 # echo `uptime|grep days|sed 's/.*up \([0-9]*\) day.*/\1\/10+/'; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4/30 +;}';free|grep '^Mem'|awk '{print $3/1024/3+}'; df -P -k -x nfs -x smbfs | grep -v '1024-blocks' | awk '{if ($1 ~ /dev/(scsi|sd)){ s+= $2} s+= $2;} END {print s/1024/50/15 +70;}'`|bc|sed 's/\(.$\)/.\1cm/' 67.1cm Fascinating, most fascinating. I get 67.1cm! Longer than yours! Now, this command of your. Wazzitdo? It builds a bc expression, which is then fed to bc and the result is divided by 10 and has cm added to it. uptime|grep days|sed 's/.*up \([0-9]*\) day.*/\1\/10+/' This checks the uptime, and outputs n/10+, where n is the uptime in days. In my case, the expression is 2/10+. cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4/30 +;}' This outputs n/30 +, where n is the CPU speed in mhz. In my case (hyperthreding cpu) it outputs 3000.000/30 + 3000.000/30 + free|grep '^Mem'|awk '{print $3/1024/3+}' This outputs n/1024/3+, where n is the used memory from free's output. On my desktop, that is 1721716/1024/3+, but obvioulsy it changes almost every time you run the command. Not sure why the used memory is used instead of the total. df -P -k -x nfs -x smbfs | grep -v '1024-blocks' | awk '{if ($1 ~ /dev/(scsi|sd)){ s+= $2} s+= $2;} END {print s/1024/50/15 +70;}' This outputs n/15 +70, where n is the sum of the 1024-blocks as per df's output (excluding nfs and smbfs file systems), divided by 1024 and further divided by 50. The block count of /dev/scsi* or /dev/sd* devices is counted twice (not sure why though). On my system, the output is 5313.33/15 +70. So, the final expression fed to bc is 2/10+ 3000.000/30 + 3000.000/30 + 1721716/1024/3+ 5313.33/15 +70 bc does the math, and sed divides the result by 10 and adds cm to the result. For me, that gives 118.4cm. It would be interesting to know why Willie chose those values, those scaling factors, and what's the purpose of the constants. Nice script though! Thanks! -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] [OT] Which openoffice
On Tue, 6 May 2008 10:11:07 +0200, Etaoin Shrdlu wrote: cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4/30 +;}' This uses three commands when one will do, there's no need for cat or grep awk '/^cpu MHz/ {print $4/30 +;}' /proc/cpuinfo Similarly for the free command. Longer isn't always better ;-) -- Neil Bothwick God: What one human uses to persecute another. signature.asc Description: PGP signature
Re: [gentoo-user] [OT] Which openoffice
On Tuesday 6 May 2008, 10:39, Neil Bothwick wrote: On Tue, 6 May 2008 10:11:07 +0200, Etaoin Shrdlu wrote: cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4/30 +;}' This uses three commands when one will do, there's no need for cat or grep awk '/^cpu MHz/ {print $4/30 +;}' /proc/cpuinfo Similarly for the free command. Ah sure. I just wanted to explain what the commands do, and didn't even try to make corrections. Longer isn't always better ;-) But it produces better obfuscated code! :-) -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Which openoffice
Volker Armin Hemmann wrote: On Montag, 5. Mai 2008, Wolf Canis wrote: Volker Armin Hemmann wrote: On Montag, 5. Mai 2008, Wolf Canis wrote: Volker Armin Hemmann wrote: extremly long. So long that you have to start ooo several times a day for a year so that the saved startup time equalizes the time spent compiling it. ccache in make.conf is enabled and MAKEOPTS has a reasonable value, I have set it to -j2. I follow the rule MAKEOPTS=number CPUS. But in the case of openoffice, the ebuild overwrite this value with -j1. For the version 2.3.x I had set the variable WANT_MP but with version 2.4 it breaks the build. But how you can see in the following, that's only a minor problem. or not. So everything bigger than -j1 breaks the built. Which makes dual core cpus useless to speed up compilation. Not really, because if you have set -pipe in CFLAGS than you can easily, with top, check how the cpus are used. But that's it, of course. How I mentioned earlier with version 2.3.x I had set WANT_MP=true and MAKEOPTS=-j2 (and with my first builds -j4 and -j5 but that was pretty much useless, because the processes are hinder them self but they don't break the build) and that works for me. The only problem which occurred was this https://bugs.gentoo.org/show_bug.cgi?id=210065 wolf-di6400 0(0) 03:04 PM ~ # qlop -gH openoffice openoffice: Fri May 2 16:22:23 2008: 1 hour, 20 minutes, 38 seconds openoffice: Sat May 3 04:06:11 2008: 1 hour, 19 minutes, 12 seconds openoffice: 2 times emerge -p openoffice-bin|genlop -p These are the pretended packages: (this may take a while; wait...) [ebuild R ] app-office/openoffice-bin-2.4.0 Estimated update time: 2 minutes. Yeh, of course is that faster but why we use Gentoo? Because of the fast binary install? ;-) with packages that are only needed once in a while (ooo, frickelfox) binaries might be the right thing to do. How I said, everyone's own decision. I have compiled ooo in the past - on much, much slower machines. Ever compiled it on a 900mhz thunderbird? I did (and later faster cpus, of course). I don't know a machine with the name thunderbird :-[ . But I started with Gentoo on a Toshiba Tecra 8100, that's a PIII Copermine 800MHz and 512 MB RAM. In this respect, I can say: Yes, I did. :-) An emerge -e world lasted 11 hours, without OOO, OOO alone needs 16 hours to build, _but_ that, for me, was the fascinating thing - The build runs faultless, not even this strange segfaults of typesconfig. :-D Inclusive seeing it fail after 8h because the wrong java version was installed. It took less time to emerge ALL of kde than ooo. And one day I compared the differences. ooo started maybe 3 seconds faster than ooo-bin. As soon as started, no difference at all. That are bad experiences, but those things don't happened to me. Perhaps God has an eye on me. :-D For me isn't the start time of a program that important, but that all fits perfect together. That was not worth the trouble. In your case, maybe. Although I conduct all emerges at the console _not_ in X. Perhaps that's it. However, every user should do how he/she likes. it does not matter where - ooo is huge - bloated. And whereever you emerge it, it is the package needing the most time. That's absolutely right. W. Canis signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Which openoffice
I don't know a machine with the name thunderbird :-[ . But I started with Gentoo on a Toshiba Tecra 8100, that's a PIII Copermine 800MHz and 512 MB RAM. In this respect, I can say: Yes, I did. :-) An emerge -e world lasted 11 hours, without OOO, OOO alone needs 16 hours to build, _but_ that, for me, was the fascinating thing - The build runs faultless, not even this strange segfaults of typesconfig. :-D Cool! One of my first compilations of OOo was on old Intel Celeron 400 for my parents and it took 44hours, and whole system (w/ X, FF, Tb, OOo) from stage1 exactly 5days (nearly 5x24 hours ;) Sweet old times :D It's loosing it's magic, when u can make it in 3 hours now ;-) On my laptop (Dell Inspiron 6000) with [EMAIL PROTECTED], it still takes me around 13hours though... I guess that encrypted root (with /var/tmp) and swap does take it's price ;-) But even though I need to compile it overnight, it's still worth it. It's just the Right Gentoo Way (tm) :-D Although I conduct all emerges at the console _not_ in X. Perhaps that's it. However, every user should do how he/she likes. it does not matter where - ooo is huge - bloated. And whereever you emerge it, it is the package needing the most time. That's absolutely right. +1 P.S. 389.9cm :-)) Sincerely Zdenek Travnicek Institute of Intermedia Faculty of Electrical Engineering, Czech Technical University Prague -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Which openoffice
Zdenek Travnicek wrote: I don't know a machine with the name thunderbird :-[ . But I started with Gentoo on a Toshiba Tecra 8100, that's a PIII Copermine 800MHz and 512 MB RAM. In this respect, I can say: Yes, I did. :-) An emerge -e world lasted 11 hours, without OOO, OOO alone needs 16 hours to build, _but_ that, for me, was the fascinating thing - The build runs faultless, not even this strange segfaults of typesconfig. :-D Cool! Yeah, and all couple of hours, I very carefully looked at the progress. ;-) One of my first compilations of OOo was on old Intel Celeron 400 for my parents and it took 44hours, and whole system (w/ X, FF, Tb, OOo) from stage1 exactly 5days (nearly 5x24 hours ;) And all the time the fear that the machine breaks or the build. ;-) Sweet old times :D It's loosing it's magic, when u can make it in 3 hours now ;-) Yup, but today we have to do other things too. My Gentoo box is my working machine too, therefore I'm really happy about the shorter build times. On my laptop (Dell Inspiron 6000) with [EMAIL PROTECTED], it still takes me around 13hours though... I guess that encrypted root (with /var/tmp) and swap does take it's price ;-) But even though I need to compile it overnight, it's still worth it. It's just the Right Gentoo Way (tm) :-D That's what I'm talking about. 8-) Although I conduct all emerges at the console _not_ in X. Perhaps that's it. However, every user should do how he/she likes. it does not matter where - ooo is huge - bloated. And whereever you emerge it, it is the package needing the most time. That's absolutely right. +1 P.S. 389.9cm :-)) 114.2cm Have fun, W. Canis signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] [OT] Which openoffice
Am Montag, 5. Mai 2008 22:00:37 schrieb Willie Wong: echo `uptime|grep days|sed 's/.*up \([0-9]*\) day.*/\1\/10+/'; cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4/30 +;}';free|grep '^Mem'|awk '{print $3/1024/3+}'; df -P -k -x nfs -x smbfs | grep -v '1024-blocks' | awk '{if ($1 ~ /dev/(scsi|sd)){ s+= $2} s+= $2;} END {print s/1024/50/15 +70;}'`|bc|sed 's/\(.$\)/.\1cm/' fixed some bugs: echo `uptime|sed 's/.*up\s*\([0-9]*\).*/\1\/10+/';grep '^cpu MHz' /proc/cpuinfo|awk '{print $4/30+;}';free|grep '^Mem'|awk '{print $3/1024/3+}';df -P -k -x nfs -x smbfs|awk '{if ($1 ~ /dev/(scsi| sd)){ s+= $2} s+= $2;} END {print s/1024/50/15+70;}'`|sed 's/,/./'| bc|sed 's/\(..$\)/.\1cm/' Regards, Joe User -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] to which package scrbook.cls belongs?
On Tue, 6 May 2008, Zhang Weiwu wrote: I need to install a package containing this file. to which package this file belongs to? I googled around without luck equery b scrbook.cls returns dev-texlive/texlive-latexrecommended-2007 (/usr/share/texmf-dist/tex/latex/koma-script/scrbook.cls) -- Ian Graeme Hilt ian.hilt (at) gmail.com GnuPG key: 0x4AFC1EE3 -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Re: tar a brand new Gentoo install to a USB drive for safe keeping?
Neil Bothwick [EMAIL PROTECTED] wrote: On Mon, 5 May 2008 00:04:44 -0400, Ian Graeme Hilt wrote: tar xvfp SYSTEM.tar.bz2 To extract bzip2 files with tar, you need to add the j option. That hasn't been needed for a long time. Tar is able to detect bzip2 and gzip compression and handle it automatically. That's only true for GNU tar. If you're also dealing with other systems where you might not have GNU tar, you might be surprised to find that tar xvf file.tgz doesn't work. Hence I think, that it is a good idea to keep on using z or j. Michael -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] [OT] Which openoffice
On Tue, May 06, 2008 at 10:45:23AM +0200, Penguin Lover Etaoin Shrdlu squawked: On Tuesday 6 May 2008, 10:39, Neil Bothwick wrote: On Tue, 6 May 2008 10:11:07 +0200, Etaoin Shrdlu wrote: cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4/30 +;}' This uses three commands when one will do, there's no need for cat or grep awk '/^cpu MHz/ {print $4/30 +;}' /proc/cpuinfo Similarly for the free command. Ah sure. I just wanted to explain what the commands do, and didn't even try to make corrections. Longer isn't always better ;-) But it produces better obfuscated code! :-) Yay! Free bug-fixing! I love this list. Actually, I have that script sitting on my computer since some time in 2002. I didn't write it: it was written by a friend of mine and posted to the college unix users group mailing list, with comments as to what the proper scaling factors are all around. The scaling factors for the various components were chosen at that time because it seemed to be good, realistic numbers to compare performances of then-current desktop boxes. At least *we* felt it works better than bogomips. As to the part of looking at used memory instead of total memory: I don't remember it doing that, I have to go back to check. The double counting of scsi disks is a bug, mostly because this script was written before UDEV when it wasn't an issue. Lastly: this is just some good, not-too-clean locker-room-style fun. Don't take it too seriously! Regards, W -- In this course we will of course make use of God's Units, namely h-bar = c = 1 but occasionally I will indulge myself in my personal addition to those units, in the form of 2 = -1 = pi = i = 1 please feel free to interject whenever you feel confused, and I will make my best effort to clarify things. ~Prof. Herman Verlinde explaining the things. PHY 509, Intro to QFT, first lecture 09-12-03 Sortir en Pantoufles: up 515 days, 11:57 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] [OT] Which openoffice
On Mon, May 05, 2008 at 10:11:41PM +0200, Penguin Lover Justin squawked: your virtual p*n*s length: This should answer your question below. But just in case you are one of those male geeks who never get to experience the joy that is the American high school locker room: yes, the jocks do go around comparing how well endowed they are. my desktop only gets its 65.3cm because of its 514 day uptime. Your desktop has an uptime of 1 and half year? Yes, and? It runs a kernel old enough that the most recent exploits don't apply (and since I am the only local user, I don't worry too much about local priviledge escalation). It is on an UPS, so even when the power goes off in the neighborhood, it is still on (though I get no internet when that happens). :) There really isn't any need for me to reboot, so I don't. What does this XXcm value mean? (loop back to top) W -- It is said that papers in string theory are published at a rate greater than the speed of light. This, however, is not problematic since no information is being transmitted. ~Prof. Dr. phil. habil. Hagen Michael Kleinert Sortir en Pantoufles: up 515 days, 12:05 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] epson printers using avasys drivers. anyone?
On 6 May 2008, at 04:32, Chuck Robey wrote: ... I've been trying (with no success excepting this longshot, the Epson RX680), to get a Inkjet printer that has duplex (doublesided) printing to admit they have working Linux drivers (really, Gentoo ones). I've found both the Canon PIXMA (the MP830 and MX850 printers, and the HP C7280, but the Linuxprinting database shows no support for those yet. ... Hi there, I've got an older Canon inkjet printer, the Pixma iP300. I guess I don't use it that intensively, because ink cartridges last me about a year, but it has served me very well the last 3 years or so and now I always recommend Canon inkjets to my customers. I am very pleased with the output and the there is no electronics in the ink tanks, which are separate from the head; I believe the head can be replaced as a separate item, if necessary, but I have had no problems with mine. The Pixmas seem to be well-supported on the Mac, and if I look at http://127.0.0.1:631 I find duplexing options there (for both short- and long-sided binding). Likewise /etc/cups/ppd/iP3000.ppd mentions these same duplexing options. I don't know how much help this is to you, but if it helped you to choose Canon I would be pleased, because I have had nothing but satisfaction from their products. Stroller. -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Where is elog documentation
Where do I learn how to use elog? googling with `site:gentoo.org elog' only turned up forum conversations. And bug reports... Is there no HOWTO about elog? `man portage' and search on elog shows nothing whatever. Isn't the elog stuff part of portage? -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Where is elog documentation
On Tuesday 06 May 2008, [EMAIL PROTECTED] wrote: Where do I learn how to use elog? googling with `site:gentoo.org elog' only turned up forum conversations. And bug reports... Is there no HOWTO about elog? `man portage' and search on elog shows nothing whatever. Isn't the elog stuff part of portage? man 5 ebuild for the syntax of how to use it in an ebuild /etc/make.conf.conf for examples of configuring it for use on your box -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] stuck with Mysql --config
Hello, I emerged mysql-5.0.54 and when running emerge --config =dev-db/mysql-5.0.54 * * ERROR: dev-db/mysql-5.0.54 failed. * Call stack: * ebuild.sh, line 49: Called pkg_config * environment, line 3312: Called mysql_pkg_config * environment, line 3019: Called die * The specific snippet of code: * die Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log; * The die message: * Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND /var/tmp/portage/dev-db/mysql-5.0.54/temp/mysql_install_db.log * * 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/dev-db/mysql-5.0.54/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.0.54/temp/environment'. * This ebuild is from an overlay: '/var/db/pkg/' * Using the steps for password recovery: mysqld_safe --user=mysql --skip-grant-tables --skip-networking mysql -u root mysql I can access but when updating: UPDATE user SET Password=PASSWORD('mypassword') where user='root'; Query OK, 0 rows affected (0.05 sec) Rows matched: 0 Changed: 0 Warnings: 0 I can create a user but I can't seem to get root privileges on it; Any information around this would be greatly appreciated. Regards. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Where is elog documentation
On Tue, 6 May 2008, [EMAIL PROTECTED] wrote: Where do I learn how to use elog? This may help get you started. http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3chap=1 /etc/make.conf.example has some nice ... examples. -- Ian Graeme Hilt ian.hilt (at) gmail.com GnuPG key: 0x4AFC1EE3 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Network manager for laptop
On Tue, May 6, 2008 at 3:51 AM, Jan Seeger [EMAIL PROTECTED] wrote: At Tue, 06 May 2008 13:48:46 +0800, William Kenworthy wrote: On Tue, 2008-05-06 at 01:42 -0300, Daniel da Veiga wrote: On Mon, May 5, 2008 at 7:12 PM, deface [EMAIL PROTECTED] wrote: snipped the frustration been there, done that ... and gave up. Write your own scripts and shortcut the frustration. Keep a directory with a subdirectory for each site. Have all config files needed properly configured and stored there. Lastly, a simple script just copies in the required files over the top of the last lot and restarts the services. I have a desktop icon and a GUI (using gtkdialog) so I can easily select the correct site. Ive tried a few like network manager, and also tried to get gentoo's networking to do it semi-automaticly to help, but all I ended up with was a frustratingly fragile mess. I have a laptop too, and I always found that the gentoo networking scripts where fully sufficient for keeeping me on-line. Okay, the wireless is a bit flaky, but only when connecting. Note: I do not use network manager. What exactly are your problems? Gentoo networking configuration is OK. It works for the most part, but you just need something were you can quickly type a password for a protected WPA network and it connects. Yes, you CAN edit the files by hand and provide the information, but that just makes your net configuration file a mess. I ended up with a pretty mess of over a dozen networks, most of them I used only once. I'm all for the console and editing configuration files, but a laptop or notebook is meant to be a fast tool to be connected everywhere, isnt it? Right now I'm switching to XFCE and I'll try more stuff, like pynetworkmanager... -- Daniel da Veiga -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Network manager for laptop
At Tue, 6 May 2008 12:42:15 -0300, Daniel da Veiga wrote: snip, snip Gentoo networking configuration is OK. It works for the most part, but you just need something were you can quickly type a password for a protected WPA network and it connects. Yes, you CAN edit the files by hand and provide the information, but that just makes your net configuration file a mess. I ended up with a pretty mess of over a dozen networks, most of them I used only once. I'm all for the console and editing configuration files, but a laptop or notebook is meant to be a fast tool to be connected everywhere, isnt it? Yeah, that's true. I still bite the bullet and edit wpa_supplicant.conf by hand. Add it once, and from then on, it works pretty automatically. However, when you connect to a *lot* of networks, I can imagine that this quickly gets ugly. Maybe write a script which uses something like sqlite to store your configuration? Alternatively, use the emacs outline mode to fold the lines^^ Regards, Jan -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] [OT] Which openoffice
On Tuesday 6 May 2008, 13:37, Joe User wrote: fixed some bugs: echo `uptime|sed 's/.*up\s*\([0-9]*\).*/\1\/10+/';grep '^cpu MHz' /proc/cpuinfo|awk '{print $4/30+;}';free|grep '^Mem'|awk '{print $3/1024/3+}';df -P -k -x nfs -x smbfs|awk '{if ($1 ~ /dev/(scsi| sd)){ s+= $2} s+= $2;} END {print s/1024/50/15+70;}'`|sed 's/,/./'| bc|sed 's/\(..$\)/.\1cm/' As Neil sed, almost everything can be done with awk. Then, Willie said that the double count for devices is a bug. Thus: echo `uptime|awk '{print $3/10+}'; awk '/^cpu MHz/{print $4/30+}' /proc/cpuinfo; free|awk '/^Mem/{print $3/1024/3+}'; df -Pk -x nfs -x smbfs|awk 'NR1{s+=$2} END{print s/1024/50/15+70}'`| bc|sed 's/.$/.cm/' which shortens my length to 105.0cm :-( -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] stuck with Mysql --config
On Tuesday 06 May 2008, Ivan Alden wrote: Hello, I emerged mysql-5.0.54 and when running emerge --config =dev-db/mysql-5.0.54 * * ERROR: dev-db/mysql-5.0.54 failed. * Call stack: * ebuild.sh, line 49: Called pkg_config * environment, line 3312: Called mysql_pkg_config * environment, line 3019: Called die * The specific snippet of code: * die Failed to run mysql_install_db. Please What's in this file? review /var/log/mysql/mysqld.err -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Install Windows XP on Gentoo Laptop
On Sat, 3 May 2008 10:44:01 +0100 Stroller [EMAIL PROTECTED] wrote: On 2 May 2008, at 19:03, Mark Knecht wrote: On Fri, May 2, 2008 at 10:52 AM, Michael Higgins [EMAIL PROTECTED] wrote: (Saw a similar thread, going the wrong way.) I have a laptop with a spare partition waiting for WinXP, to install from Dell OEM disks that came originally. I would be very careful about installing from OEM disks. My HP OEM disks will actually blow ALL the partitions on the drive away, repartition and reformat the whole drive back to the way it was shipped from the factory. What he said. Better if you can find a regular retail copy of XP. Better if he can find a regular _OEM_ copy of XP. Note that in the case of this HP Vista license it only works with the OEM install. The license is no good with a normal copy of Vista. Right. Same with XP. [8] The OEM license numbers don't work with a retail installation CD vice-versa. So what Michael needs is a Microsoft-branded OEM installation CD. These work with any OEM license number (even if the sticker says Dell or HP on it), as long as the Home / Professional versioning is correct. I would suggest - as long as you live in Sweden - the famous 9-in-1 OEM CD, from your favourite swashbuckling sea-dog. Ar, me hearties! This be perfectly legal because the the sticker on the underside of the the laptop is the license for XP, not the CD itself. Stroller. Thanks to you folks for all the great info. Just happen to have an OEM copy of XP Pro kicking about and a sticker on the bottom of the laptop with a product key for the same. Looks like I'm good to go. Cheers, -- |\ /|| | ~ ~ | \/ ||---| `|` ? ||ichael | |iggins\^ / michael.higgins[at]evolone[dot]org -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Install Windows XP on Gentoo Laptop
On Tue, May 6, 2008 at 10:24 AM, Michael Higgins [EMAIL PROTECTED] wrote: On Sat, 3 May 2008 10:44:01 +0100 Stroller [EMAIL PROTECTED] wrote: SNIP I would suggest - as long as you live in Sweden - the famous 9-in-1 OEM CD, from your favourite swashbuckling sea-dog. Ar, me hearties! This be perfectly legal because the the sticker on the underside of the the laptop is the license for XP, not the CD itself. Again, to be careful, make sure that OEM copy has a license number. do not depend on your laptop's install CD's license number ot work. My HP license numbers didn't work with the M$/EOM disks. Thanks to you folks for all the great info. Just happen to have an OEM copy of XP Pro kicking about and a sticker on the bottom of the laptop with a product key for the same. Looks like I'm good to go. Good luck. After backing up my Gentoo laptop install I can confirm that the HP Recovery Disk that comes with the laptop blows the whole disk away and reformats it like it was new from the factory. With this disk anyway there was no way to get Vista onto the disk and save the existing Gentoo install. that will have to be reloaded form backups. Have fun! - Mark -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] aufs and gentoo-sources
In [EMAIL PROTECTED] [EMAIL PROTECTED] (Alan McKinnon) writes: On Monday 05 May 2008, Konstantinos Agouros wrote: Hi, I am looking for a way to make aufs work with current gentoo-sources. Unfortunately there is no ebuild available (or I didnt' find it). It's in the sunrise overlay: [EMAIL PROTECTED] ~ $ eix aufs * sys-fs/aufs [1] Available versions: (~)20070402 (~)20080422 {debug fuse hinotify ksize nfs nfsexport robr} Homepage:http://aufs.sourceforge.net/ Description: An entirely re-designed and re-implemented Unionfs. * sys-fs/aufs-utils [1] Available versions: (~)0.1_pre20080121 [M](~) Homepage:http://aufs.sourceforge.net/ Description: Userspace utilities for aufs. [1] sunrise /var/portage/local/layman/sunrise To get it: emerge layman configure layman layman -a sunrise emerge aufs Thanks right the answer I needed! Konstantin Trying the procedure described in the readme the kernel would fail to build. Should this work? Konstantin P.S.: I don't necessarily need aufs but an alternative with the same functionality would also be fine. -- Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: [EMAIL PROTECTED] Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185 - --- Captain, this ship will not survive the forming of the cosmos. B'Elana Torres -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list -- Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: [EMAIL PROTECTED] Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185 Captain, this ship will not survive the forming of the cosmos. B'Elana Torres -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Install Windows XP on Gentoo Laptop
On Tuesday 06 May 2008, Mark Knecht wrote: Good luck. After backing up my Gentoo laptop install I can confirm that the HP Recovery Disk that comes with the laptop blows the whole disk away and reformats it like it was new from the factory. With this disk anyway there was no way to get Vista onto the disk and save the existing Gentoo install. that will have to be reloaded form backups. Piffle, that's nothing. At least your Windows installer would have given you a prompt. At my last job I got given a brand new Dell notebook with Windows on it. I had it 10 minutes when I took it into my Red Hat course room and switched on. A student was asking questions and I got distracted, so absent-mindedly got into the BIOS setup and changed the boot order. Next time I looked, Windows was *gone* and a full default RHEL 4 install was in place (!). No prompt, no warning, nadda, zip. The absence of Windows was welcome, the absence of a prompt was less so. Then again, I should have known better seeing as the idiot who set up the PXE server originally was me :-) -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Install Windows XP on Gentoo Laptop
On Tue, May 6, 2008 at 11:48 AM, Alan McKinnon [EMAIL PROTECTED] wrote: On Tuesday 06 May 2008, Mark Knecht wrote: Good luck. After backing up my Gentoo laptop install I can confirm that the HP Recovery Disk that comes with the laptop blows the whole disk away and reformats it like it was new from the factory. With this disk anyway there was no way to get Vista onto the disk and save the existing Gentoo install. that will have to be reloaded form backups. Piffle, that's nothing. At least your Windows installer would have given you a prompt. I don't follow Alan. The HP recovery disk boots and asks somethng like 'Do you want to restore the disk to the way it was shipped from HP? Answer no and it does nothing. Answer yes and if blows away all partitions, builds two new partitions, and puts the HP image on the disk. I don't follow what you mean? - Mark -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Install Windows XP on Gentoo Laptop
On Tuesday 06 May 2008, Mark Knecht wrote: On Tue, May 6, 2008 at 11:48 AM, Alan McKinnon Piffle, that's nothing. At least your Windows installer would have given you a prompt. I don't follow Alan. The HP recovery disk boots and asks somethng like 'Do you want to restore the disk to the way it was shipped from HP? Answer no and it does nothing. Answer yes and if blows away all partitions, builds two new partitions, and puts the HP image on the disk. I don't follow what you mean? His bloody PXE server installed RH silently without ever asking anything. Jeez. It gives me ideas, though. One could do that for Linux as well. But then, Who would have their Windows laptop set to boot from the network first? Still, tempting. ;-) Uwe -- Ignorance killed the cat, sir, curiosity was framed! -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] What version of netscape-flash to use with konqueror?
On Monday 05 May 2008 18:04:42 Robin Atwood wrote: I have just brought my laptop (x86 arch) up to date and so I have KDE 3.5.9 and netscape-flash-9.0.124.0. Now whenever I go to a web page with embedded flash I get a segfault. I seem to remember that something got broken wrt konqueror and my amd64 system is using netscape-flash-9.0.48.0-r1; however, that version now seems to have been removed. So what version are people using? TIA -Robin -- Taken, sucessfully, from http://mikearthur.co.uk/2007/12/konqueror-with-latest-adobe-flash-howto/ KMPlayer is my media player of choice as it allows you to trivially switch between XINE, MPlayer and GStreamer backends and, as of version 0.10.0, has a nifty backend that allows you to use XEmbed-supporting plugins, including Adobe’s Flash plugin, which can then be embedded in Konqueror to allow Flash to work trivially. HOWTO: Install KMPlayer. It is included in all the major distributions I’ve ever used. Ensure it is installed/compiled with the “NPP” backend enabled which allows the playback of Netscape XEmbed plugins Run KMPlayer so it creates its config file. Close it. (This step probably isn’t necessary but it won’t do any harm) Open “~/.kde/share/config/kmplayerrc” in a text editor of your choice. Add the following to the end of the file: [application/x-shockwave-flash] player=npp plugin=/opt/netscape/plugins/libflashplayer.so Change the “plugin=” line depending on where the Adobe Flash plugin was installed on your distribution. The above example is where it is installed on Gentoo. (If people could reply with the location of it on their distribution that would be great, thanks!). Open Konqueror and click “Settings Configure Konqueror…”. In the new window navigate to “File Associations” in the left-hand panel and select “application/x-shockwave-flash“. Click the “Embedding” tab and click “Add..“. Select “Embedded MPlayer for KDE” from the new window. If it is not there then you may need to restart KDE or run “kbuildsycoca” from a terminal. Close all the opened windows. Enjoy a working Flash in Konqueror! === As at least one of the commenters from the blog, I didn't habe an application/x-shockwave-flash association, so had to create it. -- Mike Williams -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Install Windows XP on Gentoo Laptop
On Tuesday 06 May 2008, Mark Knecht wrote: On Tue, May 6, 2008 at 11:48 AM, Alan McKinnon [EMAIL PROTECTED] wrote: On Tuesday 06 May 2008, Mark Knecht wrote: Good luck. After backing up my Gentoo laptop install I can confirm that the HP Recovery Disk that comes with the laptop blows the whole disk away and reformats it like it was new from the factory. With this disk anyway there was no way to get Vista onto the disk and save the existing Gentoo install. that will have to be reloaded form backups. Piffle, that's nothing. At least your Windows installer would have given you a prompt. I don't follow Alan. The HP recovery disk boots and asks somethng like 'Do you want to restore the disk to the way it was shipped from HP? Answer no and it does nothing. Answer yes and if blows away all partitions, builds two new partitions, and puts the HP image on the disk. I don't follow what you mean? It's a bizarre joke after a bizarre day :-) The Windows recovery disk at least prompts you to answer yes. The Red Hat PXE server doesn't. The joke's on me - I was the one who installed that PXE server ... -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Install Windows XP on Gentoo Laptop
On Tuesday 06 May 2008, Uwe Thiem wrote: It gives me ideas, though. One could do that for Linux as well. But then, Who would have their Windows laptop set to boot from the network first? Still, tempting. ;-) OK let's see. Wake on LAN tightly coupled to a hacked PXE? I feel a Pinky and The Brain moment coming on... -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Install Windows XP on Gentoo Laptop
On Tue, May 6, 2008 at 12:53 PM, Alan McKinnon [EMAIL PROTECTED] wrote: On Tuesday 06 May 2008, Mark Knecht wrote: On Tue, May 6, 2008 at 11:48 AM, Alan McKinnon [EMAIL PROTECTED] wrote: On Tuesday 06 May 2008, Mark Knecht wrote: Good luck. After backing up my Gentoo laptop install I can confirm that the HP Recovery Disk that comes with the laptop blows the whole disk away and reformats it like it was new from the factory. With this disk anyway there was no way to get Vista onto the disk and save the existing Gentoo install. that will have to be reloaded form backups. Piffle, that's nothing. At least your Windows installer would have given you a prompt. I don't follow Alan. The HP recovery disk boots and asks somethng like 'Do you want to restore the disk to the way it was shipped from HP? Answer no and it does nothing. Answer yes and if blows away all partitions, builds two new partitions, and puts the HP image on the disk. I don't follow what you mean? It's a bizarre joke after a bizarre day :-) The Windows recovery disk at least prompts you to answer yes. The Red Hat PXE server doesn't. The joke's on me - I was the one who installed that PXE server ... OK, thanks to you and Uwe for explaining. - Mark -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] WTF? VMWare server modules blocks :/
/etc/init.d/vmware start * VMware Server is installed, but it has not been (correctly) configured * for the running kernel. * Please ensure that the modules have been compiled for this kernel: * emerge --oneshot vmware-modules * Also ensure VMware Server has been configured: * /opt/vmware/server/bin/vmware-config.pl * VMware is not properly configured! See above. [ !! ] * ERROR: vmware failed to start --- These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N] app-emulation/vmware-modules-1.0.0.17-r1 0 kB [blocks B ] =app-emulation/vmware-modules-1.0.0.16 (is blocking app-emulation/vmware-server-1.0.5.80187) Total: 1 package (1 new, 1 block), Size of downloads: 0 kB !!! Error: The above package list contains packages which cannot be installed !!!at the same time on the same system. For more information about Blocked Packages, please refer to the following section of the Gentoo Linux x86 Handbook (architecture is irrelevant): http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked What is that block? This should be installed? What is done with portage, that blocks exists when I try to install software that is part of other package (and higher package depend on it)? -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] WTF? VMWare server modules blocks :/
On Tuesday 06 May 2008, Mateusz A. Mierzwiński wrote: Calculating dependencies... done! [ebuild N ] app-emulation/vmware-modules-1.0.0.17-r1 0 kB [blocks B ] =app-emulation/vmware-modules-1.0.0.16 (is blocking app-emulation/vmware-server-1.0.5.80187) Total: 1 package (1 new, 1 block), Size of downloads: 0 kB !!! Error: The above package list contains packages which cannot be installed !!! at the same time on the same system. For more information about Blocked Packages, please refer to the following section of the Gentoo Linux x86 Handbook (architecture is irrelevant): http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked What is that block? This should be installed? What is done with portage, that blocks exists when I try to install software that is part of other package (and higher package depend on it)? Maybe you don't understand what blockers are and how they work - go read the referenced page in the Gentoo manual. What is happening is quite simple: On a code level, or file-collision level, you cannot have a version of vmware-modules greater than or equal to 1.0.0.16 on a machine that already has vmware-server-1.0.5.80187 installed. But this is precisely what you are trying to do, it's a side effect of running ~arch in this case. The vmware-server ebuild has this inside: RDEPEND= ~app-emulation/vmware-modules-1.0.0.15 !app-emulation/vmware-modules-1.0.0.15 !=app-emulation/vmware-modules-1.0.0.16 For whatever reason (and it will be a good technical one) the only version of vmware-modules you can use is 1.0.0.15*. So, you need to: cd /etc/portage echo =app-emulation/vmware-modules-1.0.0.16 package.use emerge -avuND world -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: tar a brand new Gentoo install to a USB drive for safe keeping?
On Tue, 06 May 2008 14:40:08 +0200, Michael Schmarck wrote: That hasn't been needed for a long time. Tar is able to detect bzip2 and gzip compression and handle it automatically. That's only true for GNU tar. If you're also dealing with other systems where you might not have GNU tar, you might be surprised to find that tar xvf file.tgz doesn't work. However, this thread is specifically about using tar on /Gentoo, which does use GNU tar. Hence I think, that it is a good idea to keep on using z or j. That really depends on the level of portability your scripts need. Using z or j is more portable, but also more complex for scripting. -- Neil Bothwick Top Oxymorons Number 46: Found missing signature.asc Description: PGP signature
Re: [gentoo-user] [OT] Which openoffice
On Tue, 6 May 2008 18:19:22 +0200, Etaoin Shrdlu wrote: As Neil sed GROAN! -- Neil Bothwick If it isn't broken, I can fix it. signature.asc Description: PGP signature
Re: [gentoo-user] Where is elog documentation
On Tue, 06 May 2008 09:17:43 -0500, [EMAIL PROTECTED] wrote: googling with `site:gentoo.org elog' only turned up forum conversations. And bug reports... Google with site:www.gentoo.org or site:www/gentoo.org/doc for a better signal-to-noise ratio. -- Neil Bothwick ...context... signature.asc Description: PGP signature
[gentoo-user] back up gentoo system
Hi, I was thinking on making regular backup of my gentoo partition. I'm not interested in incremental backups, just a mirror image of the root filesystem. I've prepared some scripts using dd for the first copy and rsync to keep it updated. How do you make your backups? Any improvements?. Thanks in advance signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] back up gentoo system
+++ David [gentoo-user] [Tue, May 06, 2008 at 11:44:46PM +0200]: Hi, I was thinking on making regular backup of my gentoo partition. I'm not interested in incremental backups, just a mirror image of the root filesystem. I've prepared some scripts using dd for the first copy and rsync to keep it updated. How do you make your backups? Any improvements?. I've used bacula in the past to do backups. It's very full featured but also rather complicated for simple backups. These days I use an rsync-based backup script I wrote called 'yarbs' (yet another rsync backup system). It uses rsync and hard links to keep X days of backups. Easy to use, easy to recover from, easy to setup. I can make it available if anyone's interested. If you're using 'dd' does that mean you're copying the entire filesystem and not just the files? I believe that can run you into some issues if the FS isn't read-only... -- // Andrew MacKenzie | http://www.edespot.com // GPG public key: http://www.edespot.com/~amackenz/public.key // Some programming languages manage to absorb change, but withstand // progress. // - Alan Perlis pgpTdZQLVSXBN.pgp Description: PGP signature
Re: [gentoo-user] back up gentoo system
On Tue, May 6, 2008 at 2:44 PM, David [EMAIL PROTECTED] wrote: Hi, I was thinking on making regular backup of my gentoo partition. I'm not interested in incremental backups, just a mirror image of the root filesystem. I've prepared some scripts using dd for the first copy and rsync to keep it updated. How do you make your backups? Any improvements?. Thanks in advance See my recent (over the weekend) thread entitled tar a brand new Gentoo install to a USB drive for safe keeping? about using tar to save a brand new system. In that thread one person pointed me toward this page: http://blinkeye.ch/mediawiki/index.php/GNU/Linux_System_Backup_Script_(stage4) which I tried out. It seemed to work OK for me. I had to edit jsut a coupl eof lines to work with my setup but other than that I got a number of backups created. Not too difficult. - Mark -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] back up gentoo system
On Dienstag, 6. Mai 2008, David wrote: Hi, I was thinking on making regular backup of my gentoo partition. I'm not interested in incremental backups, just a mirror image of the root filesystem. I've prepared some scripts using dd for the first copy and rsync to keep it updated. How do you make your backups? Any improvements?. Thanks in advance tar -c -b 128 / --exclude=/proc --exclude=/dev --exclude=/sys | mbuffer -m 800M -p 95 -s 65536 -D 32G -A mtx -f /dev/sg2 next -f -o /dev/st0 -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] back up gentoo system
On Tuesday 06 May 2008 23:54:08 Andrew MacKenzie wrote: +++ David [gentoo-user] [Tue, May 06, 2008 at 11:44:46PM +0200]: Hi, I was thinking on making regular backup of my gentoo partition. I'm not interested in incremental backups, just a mirror image of the root filesystem. I've prepared some scripts using dd for the first copy and rsync to keep it updated. How do you make your backups? Any improvements?. I've used bacula in the past to do backups. It's very full featured but also rather complicated for simple backups. These days I use an rsync-based backup script I wrote called 'yarbs' (yet another rsync backup system). It uses rsync and hard links to keep X days of backups. Easy to use, easy to recover from, easy to setup. I can make it available if anyone's interested. If you're using 'dd' does that mean you're copying the entire filesystem and not just the files? I believe that can run you into some issues if the FS isn't read-only... What kind of issues? The idea is to copy the whole filesystem to another disk and keep it sync. And in case of crisis use dd from the backup to the original disk. signature.asc Description: This is a digitally signed message part.
[gentoo-user] OT: Looking for SATA controller recommendation
Howdy, I'm looking to add three more drives to my system for a software RAID5 media volume. I've used all my motherboard SATA ports so need a SATA controller. I don't want a hardware RAID controller (been there, burned when controller died). 4 SATA2 ports is the minimum required. I have both PCIe and PCI slots available. I do not need high performance as the RAID will just contain media files for access in my home. I would prefer a controller supported by normal kernel drivers. My preference is to keep costs down (3 x 1 TB drives are costly enough :). Any recommendations? FYI, system is gentoo ~x86, Intel Q9300, Gigabyte GA-X48-DQ6. TIA, Roy -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] back up gentoo system
+++ David [gentoo-user] [Wed, May 07, 2008 at 12:18:58AM +0200]: On Tuesday 06 May 2008 23:54:08 Andrew MacKenzie wrote: If you're using 'dd' does that mean you're copying the entire filesystem and not just the files? I believe that can run you into some issues if the FS isn't read-only... What kind of issues? The idea is to copy the whole filesystem to another disk and keep it sync. And in case of crisis use dd from the backup to the original disk. There is the possibility that something changes on disk and you've already copied the 'references' to it in the journal or index. Thus making your image inconsistent or corrupted. You also have files cached in memory not yet written to disk, etc. It's also very inefficient copying all the empty parts of your file system as well. At the least you'll want to mount your file system read-only if you're going to use dd to make a copy. -- // Andrew MacKenzie | http://www.edespot.com // GPG public key: http://www.edespot.com/~amackenz/public.key // You have acquired a scroll entitled 'irk gleknow mizk'(n).--More-- // // This is an IBM Manual scroll.--More-- // // You are permanently confused. // -- Dave Decot pgp7WxODNz4zM.pgp Description: PGP signature
Re: [gentoo-user] back up gentoo system
+++ David [gentoo-user] [Wed, May 07, 2008 at 12:18:58AM +0200]: What kind of issues? The idea is to copy the whole filesystem to another disk and keep it sync. And in case of crisis use dd from the backup to the original disk. I should note I'm assuming you're backing up a mounted filesystem. If not then there's nothing wrong with dd. -- // Andrew MacKenzie | http://www.edespot.com // GPG public key: http://www.edespot.com/~amackenz/public.key // Whoever has lived long enough to find out what life is, knows how deep a debt // of gratitude we owe to Adam, the first great benefactor of our race. He // brought death into the world. // -- Mark Twain, Pudd'nhead Wilson's Calendar pgpIEB72Vd0Cg.pgp Description: PGP signature
Re: [gentoo-user] back up gentoo system
On Mittwoch, 7. Mai 2008, David wrote: On Tuesday 06 May 2008 23:54:08 Andrew MacKenzie wrote: +++ David [gentoo-user] [Tue, May 06, 2008 at 11:44:46PM +0200]: Hi, I was thinking on making regular backup of my gentoo partition. I'm not interested in incremental backups, just a mirror image of the root filesystem. I've prepared some scripts using dd for the first copy and rsync to keep it updated. How do you make your backups? Any improvements?. I've used bacula in the past to do backups. It's very full featured but also rather complicated for simple backups. These days I use an rsync-based backup script I wrote called 'yarbs' (yet another rsync backup system). It uses rsync and hard links to keep X days of backups. Easy to use, easy to recover from, easy to setup. I can make it available if anyone's interested. If you're using 'dd' does that mean you're copying the entire filesystem and not just the files? I believe that can run you into some issues if the FS isn't read-only... What kind of issues? The idea is to copy the whole filesystem to another disk and keep it sync. And in case of crisis use dd from the backup to the original disk. Andrew has a point. dd is not a good choice. FS don't like it if some parts of them are in a different state than others. Also, with dd, everytime you restore, you also restore fragmentation - oh and a bigger partition? Can be tricky. There is nothing wrong with tar. In fact tar is great for this job. dd not. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] grub weirdness
On Tue, 6 May 2008, »Q« wrote: When I try to boot, the word GRUB gets written to the screen over and over and over, filling the screen. Pressing keys, AFAICT so far, doesn't stop this. The screen is just filled with GRUB, and I think it's an ongoing thing because of a little flicker at the bottom right. quote href=http://www.gentoo.org/doc/en/grub-error-guide.xml#doc_chap7; 7. GRUB GRUB GRUB GRUB GRUB ... Situation Code Listing 7.1: Grub Output GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB ... Solution According to airhead this can be caused by having your bios detect your disks automatically. Try to set your bios entry to User Type HDD. Another possibility is that you had Grub installed on your MBR and tried reinstalling it (for instance due to hard disk changes) but used the wrong setup and root commands. /quote -- Ian Hilt ian.hilt (at) gmail.com GnuPG key: 0x4AFC1EE3
[gentoo-user] Re: grub weirdness
When you emerged grub-0.97-r5, this was displayed on your console: WARN: postinst *** IMPORTANT NOTE: you must run grub and install the new version's stage1 to your MBR. Until you do, stage1 and stage2 will still be the old version, but later stages will be the new version, which could cause problems such as an unbootable system. Yes, the ebuild writes that to the screen. But silently, in the background (because every output is piped to /dev/null - how evil!), the ebuild calls grub with some commands inside your grub.conf. If there's a setup-command in your grub.conf, it is indeed executed. So if that command is outdated (something you won't notice, since that command is not used by grub in any situation i know), the ebuild will execute that setup-command and write to some device's boot sector. How evil, again! Regards, Sven P.S.: here's the code from grub-0.97-r5.ebuild: if [[ -e ${dir}/grub.conf ]] ; then egrep \ -v '^[[:space:]]*(#|$|default|fallback|initrd|password|splashimage|timeout|title)' \ ${dir}/grub.conf | \ /sbin/grub --batch \ --device-map=${dir}/device.map \ /dev/null fi signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: grub weirdness
Sven Köhler wrote: When you emerged grub-0.97-r5, this was displayed on your console: WARN: postinst *** IMPORTANT NOTE: you must run grub and install the new version's stage1 to your MBR. Until you do, stage1 and stage2 will still be the old version, but later stages will be the new version, which could cause problems such as an unbootable system. Yes, the ebuild writes that to the screen. But silently, in the background (because every output is piped to /dev/null - how evil!), the ebuild calls grub with some commands inside your grub.conf. I just updated grub to version 0.97-r5 and this was, at the end, displayed: To avoid automounting and autoinstalling with /boot, just export the DONT_MOUNT_BOOT variable. Your boot partition was not mounted as /boot, but portage was able to mount it without additional intervention. Files will be installed there for grub to function correctly. *** IMPORTANT NOTE: you must run grub and install the new version's stage1 to your MBR. Until you do, stage1 and stage2 will still be the old version, but later stages will be the new version, which could cause problems such as an unbootable system. Copying files from /lib/grub and /usr/lib/grub to //boot/grub To install grub files to another device (like a usb stick), just run: emerge --config =grub-0.97-r5 If there's a setup-command in your grub.conf, it is indeed executed. So if that command is outdated (something you won't notice, since that command is not used by grub in any situation i know), the ebuild will execute that setup-command and write to some device's boot sector. How evil, again! Regards, Sven P.S.: here's the code from grub-0.97-r5.ebuild: if [[ -e ${dir}/grub.conf ]] ; then egrep \ -v '^[[:space:]]*(#|$|default|fallback|initrd|password|splashimage|timeout|title)' \ ${dir}/grub.conf | \ /sbin/grub --batch \ --device-map=${dir}/device.map \ /dev/null fi And following the code of the functions which does the job: found in ebuild: /usr/portage/sys-boot/grub/grub-0.97-r5.ebuild setup_boot_dir() { local boot_dir=$1 local dir=${boot_dir} [[ ! -e ${dir} ]] die ${dir} does not exist! [[ ! -L ${dir}/boot ]] ln -s . ${dir}/boot dir=${dir}/grub if [[ ! -e ${dir} ]] ; then mkdir ${dir} || die ${dir} does not exist! fi # change menu.lst to grub.conf if [[ ! -e ${dir}/grub.conf ]] [[ -e ${dir}/menu.lst ]] ; then mv -f ${dir}/menu.lst ${dir}/grub.conf ewarn ewarn *** IMPORTANT NOTE: menu.lst has been renamed to grub.conf ewarn fi if [[ -e ${dir}/stage2 ]] ; then mv ${dir}/stage2{,.old} ewarn *** IMPORTANT NOTE: you must run grub and install ewarn the new version's stage1 to your MBR. Until you do, ewarn stage1 and stage2 will still be the old version, but ewarn later stages will be the new version, which could ewarn cause problems such as an unbootable system. ebeep fi einfo Copying files from /lib/grub and /usr/lib/grub to ${dir} for x in ${ROOT}/lib*/grub/*/* ${ROOT}/usr/lib*/grub/*/* ; do [[ -f ${x} ]] cp -p ${x} ${dir}/ done if [[ -e ${dir}/grub.conf ]] ; then egrep \ -v '^[[:space:]]*(#|$|default|fallback|initrd|password|splashimage|timeout|title)' \ ${dir}/grub.conf | \ /sbin/grub --batch \ --device-map=${dir}/device.map \ /dev/null fi # the grub default commands silently piss themselves if # the default file does not exist ahead of time if [[ ! -e ${dir}/default ]] ; then grub-set-default --root-directory=${boot_dir} default fi } How you can see isn't the message piped to /dev/null, only the command /sbin/grub -batch -device-map Have fun, W. Canis signature.asc Description: OpenPGP digital signature
[gentoo-user] Re: grub weirdness [solved]
Peter Ruskin [EMAIL PROTECTED] wrote: On Wednesday 07 May 2008, »Q« wrote: Earlier today, I emerged grub-0.97-r5 on my x86 laptop, replacing 0.97-r4. I didn't run grub and didn't expect anything to be done to my boot partition. Now I've read http://bugs.gentoo.org/show_bug.cgi?id=218599, and I suspect my current problem has to do with that, though I don't recall anything in grub.conf that would lead to trouble. I can't access the boot partition right now, and I'm posting this in hopes of pointers for what to look at once I get the chance to boot from a livecd. When I try to boot, the word GRUB gets written to the screen over and over and over, filling the screen. Pressing keys, AFAICT so far, doesn't stop this. The screen is just filled with GRUB, and I think it's an ongoing thing because of a little flicker at the bottom right. When you emerged grub-0.97-r5, this was displayed on your console: WARN: postinst *** IMPORTANT NOTE: you must run grub and install the new version's stage1 to your MBR. Until you do, stage1 and stage2 will still be the old version, but later stages will be the new version, which could cause problems such as an unbootable system. Thanks. I had assumed (d'oh!) that I could wait and read the elog if I ever decided to install the new grub to my boot partition. I'm not so happy with the boot partition being mounted and screwed with by the ebuild, especially given I was using a grub from Fedora, not Gentoo. Now I've got DONT_MOUNT_BOOT=yes in make.conf, so I should never have this kind of problem again. Once I booted a livecd, running the setup command within grub fixed the problem. Then once I booted Gentoo, I did it again, to get whatever goodness is in this latest revision. To make life easier for situations like this, you could install grub on a floppy. Even if I had a floppy drive, I'm not sure portage wouldn't find the floppy and overwrite it. ;) I usually have a livecd or two in my bag, but of course not when I most need one. -- gentoo-user@lists.gentoo.org mailing list
[SOLVED] Re: [gentoo-user] to which package scrbook.cls belongs?
Justin said: www.portagefilelist.de could answer these kinds of questions. But the package you are looking for is dev-texlive/texlive-latexrecommended-2007. Ian Hilt wrote: On Tue, 6 May 2008, Zhang Weiwu wrote: I need to install a package containing this file. to which package this file belongs to? I googled around without luck equery b scrbook.cls returns dev-texlive/texlive-latexrecommended-2007 (/usr/share/texmf-dist/tex/latex/koma-script/scrbook.cls) Thanks:) -- Real Softservice Huateng Tower, Unit 1788 Jia 302 3rd area of Jinsong, Chao Yang Tel: +86 (10) 8773 0650 ext 603 Mobile: 135 9950 2413 http://www.realss.com -- gentoo-user@lists.gentoo.org mailing list