Re: [gentoo-user] boot specific service in sequence
On 02/26/2010 06:14 AM, Kaushal Shriyan wrote: On Thu, Feb 25, 2010 at 7:03 PM, Xavier Parizet x...@gentooist.com wrote: On 02/25/2010 02:12 PM, Neil Bothwick wrote: On Thu, 25 Feb 2010 13:15:57 +0100, Xavier Parizet wrote: The syntax is: rc_need_[name of the service]=[list of space-separated services you want [name of the service] to depend on] According to the man page, the syntax is rc_SERVICENAME_need=list of services although I've never used this myself. You're right, i write the mail then checked the man pages and corrected only the first rc_ example but forgot about this one. My apologizes. Hi, I did ran the below command. Ran or written in /etc/rc.conf ? rc_scriptrunner_need=configserver rc_tomcat_need=scriptrunner is there a way to check and verify it ? You can stop tomcat, scriptrunner and configserver services, then start only tomcat and see if this start other two services. If it works, then two other services should be started in the same time. Thanks and Regards, Kaushal -- Xavier Parizet YaGB : http://gentooist.com GPG :C7DC B10E FC21 63BE B453 D239 F6E6 DF65 1569 91BF signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: How should I clean up my broken system?
On 23 February 2010 02:06, Harry Putnam rea...@newsguy.com wrote: Volker Armin Hemmann volkerar...@googlemail.com writes: well, cfg-update keeps a backup. It detects manual edits and try to resolve conflicts resulting from that automatically. Which works surprisingly well. If Volker gave me that same advice long ago, I've used cfg-update ever since. Its capable of dispatching meaningless file updates in the blink of an eye, and offers several well known methods for resolving those that need it. I personally use vimdiff with it, but there are several other options. Its just a good solid tool. Better than my first days of gentoo when I just either manually deleted the files or copied them to the new ones as portage complained. I'd just search for ._ files in /etc. Yeah, that sucked Then I was like oh, etc-update, this is great. Then I was like dispatch-conf, thats greater! So now that I've got a lot of crap to clean out again...I emerged both of these guys. I'll probably add some extra superlatives. Hah! ~daid
Re: [gentoo-user] openvpn static ip
On 02/25/2010 11:21 PM, Joseph wrote: On 02/25/10 22:17, Xavier Parizet wrote: [snip] I added full path to the server for ccd: /etc/openvpn/ccd Now I'm getting consistent IP: 192.168.139.2 every-time I restart openvpn.client_clinic2 but I'm not getting what I requested in ccd/syscon9: ifconfig-push 192.168.139.15 255.255.255.0 retry ifconfig-push 192.168.139.15 192.168.139.1 . Also post /etc/openvpn/ipp.txt content and try removing it and restart openvpn server keep the full log level 4, and restart openvpn client, keep the full log level 4. I'm starting to be out of ideas ^^ The client runs openvpn as user root, the server runs openvpn as user openvpn. -- Xavier Parizet YaGB : http://gentooist.com GPG :C7DC B10E FC21 63BE B453 D239 F6E6 DF65 1569 91BF signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] boot specific service in sequence
On Fri, Feb 26, 2010 at 12:55 PM, Xavier Parizet x...@gentooist.com wrote: On 02/26/2010 06:14 AM, Kaushal Shriyan wrote: On Thu, Feb 25, 2010 at 7:03 PM, Xavier Parizet x...@gentooist.com wrote: On 02/25/2010 02:12 PM, Neil Bothwick wrote: On Thu, 25 Feb 2010 13:15:57 +0100, Xavier Parizet wrote: The syntax is: rc_need_[name of the service]=[list of space-separated services you want [name of the service] to depend on] According to the man page, the syntax is rc_SERVICENAME_need=list of services although I've never used this myself. You're right, i write the mail then checked the man pages and corrected only the first rc_ example but forgot about this one. My apologizes. Hi, I did ran the below command. Hi Xavier, Ran or written in /etc/rc.conf ? Do i need to write the below line in /etc/rc.conf and any services need to be restarted to take the changes into effect ? rc_tomcat_need=configserver Please suggest. Thanks, Kaushal
Re: [gentoo-user] Re: Is there a lock daemon for managing file locking on an NFS server?
Neil Walker wrote: I use http-proxy now. Sorry, that should be http-replicator. Be lucky, Neil http://www.neiljw.com
Re: [gentoo-user] openvpn static ip
On Friday 26 February 2010 01:39:55 Joseph wrote: On 02/25/10 22:17, Xavier Parizet wrote: From what i can see, please try to add full path to the ccd directory in client-config-dir directive on the server path. Also check permissions on that directory. On which user are you running openvpn on the server ? On the client ? On client: drwxr-xr-x 2 root root 4096 Feb 24 18:49 ccd -rw-r--r-- 1 root root 45 Feb 25 12:13 syscon9 so this looks OK, From this, it looks like the syscon9 file is not in the .../ccd/ directory? Also, isn't this file supposed to be on the server? Can you increase verbosity and see if there is no open fails on the server ? If it works, you should have the following line in server logs: OPTIONS IMPORT: reading client specific options from: [path to ccd]/syscon9 MULTI: Learn: [192.168.139.15] - syscon9/[ip source:port source] I've increased verbosity on server to 9 but I can not find any phrase in the serer log file: fails IMPORT but I've noticed this section on the server log: ...syscon9/68.148.245.78:56172 TEST FILE '/etc/openvpn/ccd/syscon9' [0] ...syscon9/68.148.245.78:56172 TEST FILE '/etc/openvpn/ccd/DEFAULT' [0] ...syscon9/68.148.245.78:56172 MULTI: Learn: 192.168.139.2 - syscon9/68.148.245.78:56172 If I change the directory to ccd the log just shows: ...syscon9/68.148.245.78:56172 TEST FILE 'ccd/syscon9' [0] ...syscon9/68.148.245.78:56172 TEST FILE 'ccd/DEFAULT' [0 This seems to indicate it can't actually find the file /etc/openvpn/ccd/syscon9 This file needs to be located on the server, not on the client, as it's the server that determines the IP-address for the client. -- Joost
Re: [gentoo-user] libtool 2.x upgrade
On Fri, 26 Feb 2010 02:15:09 +0100, bn wrote: I have a stable x86 system that requires still a bit of updating, among those libtool and gcc. Since I need the system to be usable *now* for work reasons, I don't feel like updating gcc and rebuilding it all with an emerge -e system / emerge -e world, but more and more packages want to upgrade to libtool 2.x GCC is slotted, so you can install the latest version but switch back to the old version instantly if it gives you problems. Unless the is an ABI change, which hasn't happened for a while, it is not necessary to rebuild everything. -- Neil Bothwick There's no place like ~ signature.asc Description: PGP signature
Re: [gentoo-user] recovery from /var corruption?
On Thu, 25 Feb 2010 19:33:23 -0800, Mark Knecht wrote: So I got my wife's machine booted today using a install disk and played a bit with e2fsck. The machine stopped being happy last night due to some sort of corruption on the /var partition. e2fsck complained about 3 or 4 files and then repaired the partition. The machine booted cleanly as far as I can tell. So, something went bad and I managed to sneak around it for a while and now I'm sort of living with the machine wondering what to do. Check the disk with smartmontools. -- Neil Bothwick All mail what i send is thoughly proof-red, definately! signature.asc Description: PGP signature
Re: [gentoo-user] recovery from /var corruption?
Mark Knecht writes: Do I just watch the logs looking for problems? I have no way of knowing right now whether this was a disk problem that's going to come back, a 1 time deal due to power, or something else entirely. As these cheap machines that don't use RAID what's the right way to go? emerge -e @world and then wait for the next event? Do nothing and wait? Emerge smartmontools, then: smartctl -h /dev/sda # get overview of what the drive thinks about itself smartctl -t short /dev/sda # start short self test Wait smartctl -l selftest /dev/sda # see results smartctl -t long /dev/sda # start long self test Wait a lot longer smartctl -l selftest /dev/sda # see results You can continue working in the meanwhile, there will be no performance impact. You will see something like this in the log: === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed without error 00%2275 - # 2 Extended offline Completed without error 00%2270 - # 3 Extended offline Completed without error 00%1799 - # 4 Extended offline Completed without error 00% 197 - # 5 Extended offline Completed without error 00% 26 - I you have a '-' in the right column, the disk has found no errors. If there is a number, than it's the position of the first error. There's also badblocks, this will check every block and output the bad ones: badblocks -sv /dev/sda badblocks -svn /dev/sda will do a read-write test. In case of a bad block, the drive should exchange it with a spare one. Maybe this happens already in read-only mode, I am not sure. Also watch for errors in syslog or via dmesg, there should be some when bad blocks are being accessed. Wonko
Re: [gentoo-user] boot specific service in sequence
On 02/26/2010 09:19 AM, Kaushal Shriyan wrote: On Fri, Feb 26, 2010 at 12:55 PM, Xavier Parizet x...@gentooist.com wrote: On 02/26/2010 06:14 AM, Kaushal Shriyan wrote: On Thu, Feb 25, 2010 at 7:03 PM, Xavier Parizet x...@gentooist.com wrote: On 02/25/2010 02:12 PM, Neil Bothwick wrote: On Thu, 25 Feb 2010 13:15:57 +0100, Xavier Parizet wrote: The syntax is: rc_need_[name of the service]=[list of space-separated services you want [name of the service] to depend on] According to the man page, the syntax is rc_SERVICENAME_need=list of services although I've never used this myself. You're right, i write the mail then checked the man pages and corrected only the first rc_ example but forgot about this one. My apologizes. Hi, I did ran the below command. Hi Xavier, Ran or written in /etc/rc.conf ? Do i need to write the below line in /etc/rc.conf and any services need to be restarted to take the changes into effect ? rc_tomcat_need=configserver Indeed you need to write the line above to /etc/rc.conf. Of course, the concerned services need to be restarted to take changes into effect. Please suggest. Thanks, Kaushal -- Xavier Parizet YaGB : http://gentooist.com GPG :C7DC B10E FC21 63BE B453 D239 F6E6 DF65 1569 91BF signature.asc Description: OpenPGP digital signature
[gentoo-user] /var/lib/init.d/exclusive/netmount
Hello, after updating a few packages, some init scripts got stuck when starting services (at least mysql and apache). Doing /etc/init.d/mysql --verbose --debug start revealed that they got stuck doing cat /var/lib/init.d/exclusive/netmount. Sounds like something related to nfs, and I had indeed updated some nfs packages, so this probably had something to do with that. I couldn't find information on what that netmount pipe is or how to fix the problem, but I just removed the pipe and the init scripts started to work again. Could you tell more about that pipe and how should I have fixed the situation? Will it cause any trouble now that the pipe doesn't exist any more? Best regards, Jarno Portage 2.1.7.16 (default/linux/amd64/2008.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.23-hardened-r7 x86_64) = System uname: linux-2.6.23-hardened-r7-x86_64-intel-r-_xeon-r-_cpu_51...@_1.60ghz-with-gentoo-1.12.11.1 Timestamp of tree: Sat, 20 Feb 2010 03:00:01 + app-shells/bash: 3.2_p39 dev-lang/python: 2.6.4 dev-python/pycrypto: 2.1.0_beta1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox:1.6-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.1.2, 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2
Re: [gentoo-user] Re: libtool 2.x upgrade
Nikos Chantziaras ha scritto: On 02/26/2010 03:15 AM, bn wrote: Hi, I have a stable x86 system that requires still a bit of updating, among those libtool and gcc. Since I need the system to be usable *now* for work reasons, I don't feel like updating gcc and rebuilding it all with an emerge -e system / emerge -e world, but more and more packages want to upgrade to libtool 2.x Is it safe to upgrade libtool without (1)rebuilding gcc too and (2)rebuilding system/world? I don't know, but for this type of scenario you are better off building binary packages of everything that need to be updated without actually installing any of it on the machine. At the end, when all binaries have been created by portage, you can install them in one go at a convenient point. Look up the --buildpkgonly option of emerge for this. Looks like an excellent suggestion, I didn't think of that. Thanks! Anyway, if someone else knows the answer to the libtool question, I'd be happy, if only for learning purposes :) m.
Re: [gentoo-user] recovery from /var corruption?
On 26 February 2010 12:33, Mark Knecht markkne...@gmail.com wrote: So I got my wife's machine booted today using a install disk and played a bit with e2fsck. The machine stopped being happy last night due to some sort of corruption on the /var partition. e2fsck complained about 3 or 4 files and then repaired the partition. The machine booted cleanly as far as I can tell. Hey buddy! This happened to me, too! See below for my savage ranting for a good laugh. My rule for this is rsnapshot my present system as it is, grab a disk image backup (taken less frequently), and then go to town with portage. I emerged 620 packages today. (Much more in fact if I count rebuilding and stuff.) Only OO.o update is remaining in world. I don't think there's a good and safe way around it. I find inode corruption can be sneaky and hit other stuff. Assuming your backs all exist and stuff, then you can hit up stuff like rsync with the update flag for your personal files between newest and safest backups. Rant: Okay, so Mac OS is getting it to the face now, officially, and forever in my world. I've almost kind of said this before, and I can't remember why I don't follow my own advice, but nothing can be worse than twice-monthly 10% inode corruption. Now check this out: The e2fs program is told do not mount sda3 and if you ever do, mount it ro. Even though Mac OS is crazy enough not to use /etc/fstab, it will still (supposedly) listen to rules in here. I found some very retarded way of effectively serial-device referencing sda3, and I said, do not mount this drive at boot, and if you do, do it ro. Then I went into a Disk Utility thing. I told that the same thing. So that's three times I've said, Never touch this drive with a 10 foot pole, plz thx! Yeah, please explain to me how an unmounted, only ro drive can receive rectal examination of 11.4% inode corruption. Others, please take this as a lesson (in some form or another). I think it's the badly coded e2fs program, but that thing is so bad that if it is to blame, it happened after I tried to uninstall the program too, so who knows. So I'm going to put a tiny Tiger install this weekend so I can get nice boot, a few firmware accesses (kill the silly booting sound, and delay an annoying 20 second boot delay in the case there is no EFI partition...ugh). And then I am going to never look at it's ugly face again. System Rescue CD, partimage, and rsnapshot are my friends! (I had so many packages because over the holidays I didn't do sync and world updates, and then I decided to go back to the wonderful ~x86, but since I was super busy and I don't like backing up a system that's untested, then I didn't have good backups of the updates. Maybe a poor choice, but in any case, that was not the reason I was trying to kick myself in the face. Be bloody lucky, or don't use retarded softwarez--- daid So, something went bad and I managed to sneak around it for a while and now I'm sort of living with the machine wondering what to do. Do I just watch the logs looking for problems? I have no way of knowing right now whether this was a disk problem that's going to come back, a 1 time deal due to power, or something else entirely. As these cheap machines that don't use RAID what's the right way to go? emerge -e @world and then wait for the next event? Do nothing and wait? We've got decent personal data backups as well as basic /etc data. Thanks, Mark
Re: [gentoo-user] When copying an os to new disk
On 26 February 2010 10:06, Stroller strol...@stellar.eclipse.co.uk wrote: On 25 Feb 2010, at 17:59, daid kahl wrote: ... As a side note, I tried dd piped through ssh and my router (with firewall) was resetting the connection after around 4GB, and I don't know of anyway to resume a dd. NAME dd - convert and copy a file SYNOPSIS dd [OPERAND]... dd OPTION DESCRIPTION Copy a file, converting and formatting according to the operands. bs=BYTES read and write BYTES bytes at a time (also see ibs=,obs=) ... skip=BLOCKS skip BLOCKS ibs-sized blocks at start of input HTH, Stroller. Hey, shiny! I opted to reinstall from source that machine, which wasn't exactly a bad choice anyway. But as always, rtfm is good advice! Thanks (not sarcastic, except to mock myself). ~daid
Re: [gentoo-user] Portage GUI interfaces...
On Thursday 25 February 2010 19:40:17 Dale wrote: Could you post the message for us? I would like a fix for this as well. Hmm. I can't find it now either. Anyway, this is what I did: Right-click in the Konsole window, select Edit Current Profile, open the Tabs tab and add : %w to the string in Tab Title Format. Now I think about it, this doesn't sound as though it will do what I want, but nothing else comes to mind at the moment. I never use tabs in Konsole, preferring to have several instances running so that I can see what they're up to. HTH - it's worth a try I suppose. -- Rgds Peter.
[gentoo-user] What is the proper fstab line for shm memory (tmpfs)
I have a number of systems with different shm lines in fstab - but which is correct? - I think they all work, but which is best (and why)? The main use I am concerned about is a PXE system with root over nfs where I am putting the portage tmp and some other stuff in tmpfs for speed. tmpfs /dev/shmtmpfs defaults0 0 shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 none/dev/shmtmpfs defaults0 0 I suspect the middle line is correct. BillK -- William Kenworthy bi...@iinet.net.au Home in Perth!
Re: [gentoo-user] Portage GUI interfaces...
On Fri, 26 Feb 2010 11:59:37 +, Peter Humphrey wrote: Now I think about it, this doesn't sound as though it will do what I want, but nothing else comes to mind at the moment. I never use tabs in Konsole, preferring to have several instances running so that I can see what they're up to. With KDE 4 you can split a single console window do display the content of multiple tabs at once. -- Neil Bothwick Accordion: a bagpipe with pleats. signature.asc Description: PGP signature
[gentoo-user] alsamixer transparent, should submit feature to bugzilla?
Hello, I've been converting myself over to console applications when possible now. I think it has a sleek look, and it ought to reduce my overhead. So on my mutlimedia workspace, I'd considered running a nearly full screen terminal of alsamixer with a command line music player in a smaller terminal that is normally on top. However, for my pseduo-transparent terminals, this was a major eyesore to have a solid black background for alsamixer. Before I investigated other mixer option, google fu could produce a patch for alsa-utils to make alsamixer run transparent. So, with this patch in hand, then I could easily make a local overlay of alsa-utils, patch the ebuild, and get my desired result. The patch isn't for the latest ~x86 alsa-utils, so I may need to tweak it for more recent versions. My question is if anyone is going to accept this as a reasonable feature addition to alsa-mixer on the main portage tree. I assume perhaps not, but I can't really see almost any advantage of the forced black background. If you want a black background, I say run the terminal that way. I didn't make the patch, so I have no intention to take the credit myself, but I didn't want to look like a dunce on bugzilla, but I've never submitted a feature request that didn't make me look like a dunce, hence polling opinion here. You can see the patch below. In any case, of course ebuild patching plugins ~daid This idea came from https://www.prof-maad.org/blog/2009/11/11/transparent-alsamixer/ (and the website had some apparent security issues the other week when I found this, just fyi). d...@flux /usr/local/portage/media-sound/alsa-utils/files $ cat alsa-utils-1.0.20-transparency.patch --- alsa-utils-1.0.20/alsamixer/alsamixer.c 2009-05-06 15:07:24.0 +0800 +++ alsa-utils-1.0.20-profmaad1/alsamixer/alsamixer.c 2009-11-11 21:33:14.242278621 +0800 @@ -150,7 +150,7 @@ #define MIXER_CBAR_STD_HGT (10) #defineMIXER_MIN_Y (MIXER_TEXT_Y + 6) /* abs minimum: 16 */ -#define MIXER_BLACK(COLOR_BLACK) +#define MIXER_BLACK(-1) #define MIXER_DARK_RED (COLOR_RED) #define MIXER_RED (COLOR_RED | A_BOLD) #define MIXER_GREEN (COLOR_GREEN | A_BOLD) @@ -320,7 +320,9 @@ dc_fg[n] = f; dc_attrib[n] = a; dc_char[n] = c; - if (n 0) + if(b==-1) +init_pair (n, dc_fg[n] 0xf, b); + else if (n 0) init_pair (n, dc_fg[n] 0xf, b 0x0f); } @@ -339,6 +341,7 @@ mixer_init_draw_contexts (void) { start_color (); + use_default_colors(); mixer_init_dc ('.', DC_BACK, MIXER_WHITE, MIXER_BLACK, A_NORMAL); mixer_init_dc ('.', DC_TEXT, MIXER_YELLOW, MIXER_BLACK, A_BOLD);
Re: [gentoo-user] What is the proper fstab line for shm memory (tmpfs)
On Freitag 26 Februar 2010, William Kenworthy wrote: I have a number of systems with different shm lines in fstab - but which is correct? - I think they all work, but which is best (and why)? The main use I am concerned about is a PXE system with root over nfs where I am putting the portage tmp and some other stuff in tmpfs for speed. tmpfs /dev/shmtmpfs defaults0 0 shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 none /dev/shmtmpfs defaults0 0 I suspect the middle line is correct. BillK I have shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 for ages in fstab. If it is wrong, I am living a lie for years now.
Re: [gentoo-user] What is the proper fstab line for shm memory (tmpfs)
On Fri, 2010-02-26 at 13:28 +0100, Volker Armin Hemmann wrote: On Freitag 26 Februar 2010, William Kenworthy wrote: I have a number of systems with different shm lines in fstab - but which is correct? - I think they all work, but which is best (and why)? The main use I am concerned about is a PXE system with root over nfs where I am putting the portage tmp and some other stuff in tmpfs for speed. tmpfs /dev/shmtmpfs defaults0 0 shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 none/dev/shmtmpfs defaults0 0 I suspect the middle line is correct. BillK I have shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 for ages in fstab. If it is wrong, I am living a lie for years now. Thanks, the reason I am not sure is I often copy fstab between machines to speed up configuration, and I suspect the lines with defaults trace back to circa 1989 (my first gentoo - over dialup modem with 7 days of downloading/compiling on a 200Mhz K6 :) or whenever tmpfs appeared in the kernel. BillK
Re: [gentoo-user] alsamixer transparent, should submit feature to bugzilla?
On 26 Feb 2010, at 12:19, daid kahl wrote: ... My question is if anyone is going to accept this as a reasonable feature addition to alsa-mixer on the main portage tree. I assume perhaps not, but I can't really see almost any advantage of the forced black background. If you want a black background, I say run the terminal that way. I didn't make the patch, so I have no intention to take the credit myself, but I didn't want to look like a dunce on bugzilla, but I've never submitted a feature request that didn't make me look like a dunce, hence polling opinion here. ... https://www.prof-maad.org/blog/2009/11/11/transparent-alsamixer/ The first thing I would do is contact upstream (their -dev mailing list?) and ask if they're aware of the patch. If know about it, but refuse to integrate it they may be able to give a good reason. Stroller.
Re: [gentoo-user] rsync backup system
On Thu, Feb 25, 2010 at 18:50, daid kahl daid...@gmail.com wrote: As a simple idea, cron task starts rsnapshot configured however. When this is done, backup is tarballed, and tarball is given as like, say, 440 permissions, where users are in some useful 'backup' group, then while tarball can be read to be passed across server, if tarball is extracted, user has no more privs then they have on the system anyway (I'm not saying chmod -R). Then local tarball can be removed or whatever. It's not a bad idea, but you need enough free space on the client to backup the entire system (which for me is not the case). Secondly, every backup you do is a full backup as rsnapshot needs to access a backup todo a incremental backup. You could mess around with something like sshfs but's it's not great either. A straight rsync between client and server could do it but it would suprise me if this doesn't already exist in some form. Regards, Ward
Re: [gentoo-user] libtool 2.x upgrade
Neil Bothwick ha scritto: On Fri, 26 Feb 2010 02:15:09 +0100, bn wrote: I have a stable x86 system that requires still a bit of updating, among those libtool and gcc. Since I need the system to be usable *now* for work reasons, I don't feel like updating gcc and rebuilding it all with an emerge -e system / emerge -e world, but more and more packages want to upgrade to libtool 2.x GCC is slotted, so you can install the latest version but switch back to the old version instantly if it gives you problems. Unless the is an ABI change, which hasn't happened for a while, it is not necessary to rebuild everything. That's exactly what I wanted to know. But it strikes me that from libtool 1.x to 2.x there's no ABI change. Is this correct? I don't know exactly what libtool does (I'm not a C programmer -well, apart from very basic stuff), but in general major version updates break compatibility, therefore my concern. m.
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
- Original Message From: Dale rdalek1...@gmail.com To: gentoo-user@lists.gentoo.org chrome://messenger/locale/messengercompose/composeMsgs.properties: On 02/26/2010 06:06 AM, BRM wrote: I am quite happy with KDE4 - presently using KDE 4.3.5. I still have KDE 3.5.10 installed, and am wondering how much longer I need to keep it around...I probably use all KDE4 apps, though there might be a few here or there that I use on a rare occasion that are still KDE3 based...may be...and no, I don't plan on using KDE Sunset Overlay[1] Any how...I'm wondering what the best method to remove KDE3.5 safely is: 1) Just leave it and may be it'll just get removed? 2) Found this entry on removing it http://linuxized.blogspot.com/2008/10/how-to-unmerge-kde-3-packages-if-their.html But nothing registers as a 'dup' even though qlist does show a lot of KDE 3.5.10 packages installed. (Yeah, I'd need to modify the line to ensure it doesn't remove KDE 4.3.5). 3) Gentoo KDE4 guide suggests a method, but it seems to be more related to removing KDE entirely... http://www.gentoo.org/proj/en/desktop/kde/kde4-guide.xml If you keep your world file (/var/lib/portage/world) tidy, simply deleting all lines with KDE3 packages and running emerge -a --depclean will take care of it. You *do* keep your world file tidy, don't you? :P That would be the easiest method. If you use the kde-meta package like I do, just remove the one for KDE 3 and let --depclean do its thing. It should get all of it. I actually don't touch the world file, and just do the 'emerge world -vuDNa' for updates. From my POV, that is emerge/Portage's job - not mine. Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. Having just done a compiler upgrade, I can say that there are roughly 1100 packages (emerge -eav) in world that were recompiled. I was just contemplating - KDE4 is stable, and I don't see myself running KDE3 again; so why keep it around. If 'emerge world -vuDNa' will remove it when it gets pushed off the main trunk, then that's probably fine with me - since that seems to not be very far out now. If not, then I definitely want to remove it now as there is no other reason for keeping it around. If you want to keep something tho, you need to add it to the world file first and then run --depclean. That way it will keep the program(s) you want and the things they depend on but remove everything else. This will save you from having to reinstall those packages. You may even have to get them from the overlay at that point. So don't uninstall something you want to keep. That's the only issue. My only concern is software (e.g. KDevelop) that may not have been updated to KDE4 yet. (Not a fan of KDevelop3; waiting to see how KDevelop4 is going to shape up.) If you have the drive space, you can leave it there for a while longer tho. Just keep in mind that there are no security updates or anything like that. If you add the overlay, you will get a few updates at least. I do have the disk space on the systems I have KDE3 and KDE4 on; so that's not a concern. Ben
Re: [gentoo-user] Portage GUI interfaces...
On Friday 26 February 2010 12:17:11 Neil Bothwick wrote: With KDE 4 you can split a single console window do display the content of multiple tabs at once. Really? I can't see how to do that. It could be useful. -- Rgds Peter.
Re: [gentoo-user] Portage GUI interfaces...
On Friday 26 February 2010 15:39:52 Peter Humphrey wrote: On Friday 26 February 2010 12:17:11 Neil Bothwick wrote: With KDE 4 you can split a single console window do display the content of multiple tabs at once. Really? I can't see how to do that. It could be useful. In the menu: View - Split View Then you can choose to split it horizontally or vertically. To undo, close the active view HTH, Joost
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
BRM writes: If you keep your world file (/var/lib/portage/world) tidy, simply deleting all lines with KDE3 packages and running emerge -a -- depclean will take care of it. You *do* keep your world file tidy, don't you? :P That would be the easiest method. If you use the kde-meta package like I do, just remove the one for KDE 3 and let --depclean do its thing. It should get all of it. I actually don't touch the world file, and just do the 'emerge world -vuDNa' for updates. From my POV, that is emerge/Portage's job - not mine. I'd also leave the world file alone, and emerge -C the packages I want removed. Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. Having just done a compiler upgrade, I can say that there are roughly 1100 packages (emerge -eav) in world that were recompiled. I was just contemplating - KDE4 is stable, and I don't see myself running KDE3 again; so why keep it around. If 'emerge world -vuDNa' will remove it when it gets pushed off the main trunk, then that's probably fine with me - since that seems to not be very far out now. If not, then I definitely want to remove it now as there is no other reason for keeping it around. KDE3 is no longer in the portage tree, it's in the kde-sunset overlay. World updates do not remove things, you need to use emerge --depclean for this. It will probably want to remove a lot when you never depcleaned before, so be sure to check. Put the stuff you want to keep in your world file with emerge -n, then depclean the rest. I guess it will remove your whole KDE3 that is no longer in portage. If you like to keep it, add the kde-sunset overlay with laymanl, and maybe emerge kde-base/kde-meta:3.5. That's the only issue. My only concern is software (e.g. KDevelop) that may not have been updated to KDE4 yet. (Not a fan of KDevelop3; waiting to see how KDevelop4 is going to shape up.) The KDE4 version is in the kde overlay, but I do not know if it is usable already. Wonko
Re: [gentoo-user][SOLVED] openvpn static ip
On 02/26/10 09:33, J. Roeleveld wrote: [snip] ...syscon9/68.148.245.78:56172 TEST FILE '/etc/openvpn/ccd/syscon9' [0] ...syscon9/68.148.245.78:56172 TEST FILE '/etc/openvpn/ccd/DEFAULT' [0] ...syscon9/68.148.245.78:56172 MULTI: Learn: 192.168.139.2 - syscon9/68.148.245.78:56172 If I change the directory to ccd the log just shows: ...syscon9/68.148.245.78:56172 TEST FILE 'ccd/syscon9' [0] ...syscon9/68.148.245.78:56172 TEST FILE 'ccd/DEFAULT' [0 This seems to indicate it can't actually find the file /etc/openvpn/ccd/syscon9 This file needs to be located on the server, not on the client, as it's the server that determines the IP-address for the client. -- Joost Yes, that was it :-/; I don't know what to say. Such a simple mistake. Just taking on a simple logic it make sense. I was thinking about it how it works that the client can request its own IP from the server; something didn't make sense. Thank you for all your help. -- Joseph
Re: [gentoo-user] recovery from /var corruption?
On Fri, Feb 26, 2010 at 1:46 AM, Alex Schuster wo...@wonkology.org wrote: Mark Knecht writes: Do I just watch the logs looking for problems? I have no way of knowing right now whether this was a disk problem that's going to come back, a 1 time deal due to power, or something else entirely. As these cheap machines that don't use RAID what's the right way to go? emerge -e @world and then wait for the next event? Do nothing and wait? Emerge smartmontools, then: smartctl -h /dev/sda # get overview of what the drive thinks about itself smartctl -t short /dev/sda # start short self test Wait smartctl -l selftest /dev/sda # see results smartctl -t long /dev/sda # start long self test Wait a lot longer smartctl -l selftest /dev/sda # see results You can continue working in the meanwhile, there will be no performance impact. You will see something like this in the log: === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed without error 00% 2275 - # 2 Extended offline Completed without error 00% 2270 - # 3 Extended offline Completed without error 00% 1799 - # 4 Extended offline Completed without error 00% 197 - # 5 Extended offline Completed without error 00% 26 - I you have a '-' in the right column, the disk has found no errors. If there is a number, than it's the position of the first error. There's also badblocks, this will check every block and output the bad ones: badblocks -sv /dev/sda badblocks -svn /dev/sda will do a read-write test. In case of a bad block, the drive should exchange it with a spare one. Maybe this happens already in read-only mode, I am not sure. Also watch for errors in syslog or via dmesg, there should be some when bad blocks are being accessed. Wonko Hi Wonko, Yes, I do use smartctl on some other machines although I'm not very good about it and your write-up is helpful so thanks for that. My wife's machines is older and and I don't think SMART is supported on her drive. Note the lack of a * on the SMART line in hdparm -I: dragonfly ~ # hdparm -I /dev/hda /dev/hda: ATA device, with non-removable media Model Number: WDC WD1600BB-00FTA0 Serial Number: WD-WMAES2091586 Firmware Revision: 15.05R15 Standards: Supported: 6 5 4 Likely used: 6 Configuration: Logical max current cylinders 16383 16383 heads 16 16 sectors/track 63 63 -- CHS current addressable sectors: 16514064 LBAuser addressable sectors: 268435455 LBA48 user addressable sectors: 312581808 Logical/Physical Sector size: 512 bytes device size with M = 1024*1024: 152627 MBytes device size with M = 1000*1000: 160041 MBytes (160 GB) cache/buffer size = 2048 KBytes (type=DualPortCache) Capabilities: LBA, IORDY(can be disabled) Standby timer values: spec'd by Standard, with device specific minimum R/W multiple sector transfer: Max = 16 Current = 16 Recommended acoustic management value: 128, current value: 254 DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: SMART feature set Security Mode feature set *Power Management feature set *Write cache *Look-ahead *Host Protected Area feature set *WRITE_BUFFER command *READ_BUFFER command *DOWNLOAD_MICROCODE SET_MAX security extension Automatic Acoustic Management feature set *48-bit Address feature set *Device Configuration Overlay feature set *Mandatory FLUSH_CACHE *FLUSH_CACHE_EXT *SMART error logging *SMART self-test Security: supported not enabled not locked not frozen not expired: security count not supported: enhanced erase HW reset results: CBLID- above Vih Device num = 0 determined by CSEL Checksum: correct dragonfly ~ # dragonfly ~ # smartctl -H /dev/hda smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ SMART Disabled. Use option -s with argument 'on' to enable it. dragonfly ~ # smartctl -s on /dev/hda smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is
Re: [gentoo-user] When copying an os to new disk
I opted to reinstall from source that machine, which wasn't exactly a bad choice anyway. But as always, rtfm is good advice! Thanks (not sarcastic, except to mock myself). Another option other than rsync or dd is to use tar: tar cf - $old_dir | ( cd $new_dir: tar xf - ) tar cf - $old_dir | ssh $other_host ( cd $new_dir: tar xf - ) -- Kyle
Re: [gentoo-user] When copying an os to new disk
Kyle Bader writes: I opted to reinstall from source that machine, which wasn't exactly a bad choice anyway. But as always, rtfm is good advice! Thanks (not sarcastic, except to mock myself). Another option other than rsync or dd is to use tar: Yeah, that's what I usually do.n The fastest method probably is star, but the syntax is a little different. tar cf - $old_dir | ( cd $new_dir: tar xf - ) tar cf - $old_dir | ssh $other_host ( cd $new_dir: tar xf - ) ^ The ':' separating commands should be a ';'. Using the -C option would be a little easier, but your method also would work for star. This piping through ssh is quite cool, isn't it. If $old_dir is the root partition, I would bin-mount it first to somewhere else, so other directories mounted to it (especially/dev, /proc and /sys) are not copied: mount -o bind / /mnt old_dir=/mnt Wonko
Re: [gentoo-user] recovery from /var corruption?
Mark Knecht writes: Yes, I do use smartctl on some other machines although I'm not very good about it and your write-up is helpful so thanks for that. My wife's machines is older and and I don't think SMART is supported on her drive. Note the lack of a * on the SMART line in hdparm -I: Okay, but it still states: *SMART error logging *SMART self-test So maybe smartctl -t long /dev/hda still works? Just give it a try. dragonfly ~ # smartctl -H /dev/hda smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ SMART Disabled. Use option -s with argument 'on' to enable it. dragonfly ~ # smartctl -s on /dev/hda smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF ENABLE/DISABLE COMMANDS SECTION === Error SMART Enable failed: Input/output error Smartctl: SMART Enable Failed. A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. dragonfly ~ # I've not tried the -T permissive options. I would :) There is also a BIOS setting for SMART, but I think this does not matter here, and it's only for being able to report a failing drive before booting. I've never used badblocks as it seems I should only do that off-line. This might be a good time to boot with a CD and try it out. In read-only mode, you can use it when the system is running. Only the write test (option -n) refuses to run if partitions are mounted from the drive. So I'd do the 'badblocks -sv /dev/hda' right now, if you do not need the drive at full speed for a while. You can interrupt it at any point with Ctrl-Z and continue with the fg command. Maybe I should just get a new drive that supports SMART? When the drive is that old it does not support SMART, you probably can get one ten times as huge for much less than it had cost you. And I would trust a new drive much more than such an old one. Depends on how important the data is, if a total loss would not be too painful and I had backups, and I would not need more speed and size, I would keep it if it shows no errors. Wonko
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
- Original Message From: Alex Schuster wo...@wonkology.org To: gentoo-user@lists.gentoo.org BRM writes: If you keep your world file (/var/lib/portage/world) tidy, simply deleting all lines with KDE3 packages and running emerge -a -- depclean will take care of it. You *do* keep your world file tidy, don't you? :P That would be the easiest method. If you use the kde-meta package like I do, just remove the one for KDE 3 and let --depclean do its thing. It should get all of it. I actually don't touch the world file, and just do the 'emerge world -vuDNa' for updates. From my POV, that is emerge/Portage's job - not mine. I'd also leave the world file alone, and emerge -C the packages I want removed. Yep, that's what I do. Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. Having just done a compiler upgrade, I can say that there are roughly 1100 packages (emerge -eav) in world that were recompiled. I was just contemplating - KDE4 is stable, and I don't see myself running KDE3 again; so why keep it around. If 'emerge world -vuDNa' will remove it when it gets pushed off the main trunk, then that's probably fine with me - since that seems to not be very far out now. If not, then I definitely want to remove it now as there is no other reason for keeping it around. KDE3 is no longer in the portage tree, it's in the kde-sunset overlay. World updates do not remove things, you need to use emerge --depclean for this. It will probably want to remove a lot when you never depcleaned before, so be sure to check. Put the stuff you want to keep in your world file with emerge -n, then depclean the rest. I guess it will remove your whole KDE3 that is no longer in portage. If you like to keep it, add the kde-sunset overlay with laymanl, and maybe emerge kde-base/kde-meta:3.5. Thanks. That's what I needed to know. That's the only issue. My only concern is software (e.g. KDevelop) that may not have been updated to KDE4 yet. (Not a fan of KDevelop3; waiting to see how KDevelop4 is going to shape up.) The KDE4 version is in the kde overlay, but I do not know if it is usable already. For now, I'll wait. I mostly use vim; and having done a lot of Windows stuff for work I am familiar with VS. While there are a lot of things I don't like about VS, nothing else seems to quite compare. KDevelop3 at least drove me nuts; and Eclipse just doesn't do well when you're not programming in Java - I have yet to get CDT to work, though I've mostly tried on Windows. QtCreator seems to be on the right track, though it's still quite early. I'm interested to see how KDevelop4 is going to turn out, but I'll certainly wait for it to reach the mainline tree. Thanks for the info. Ben
Re: [gentoo-user] recovery from /var corruption?
On Fri, Feb 26, 2010 at 8:01 AM, Alex Schuster wo...@wonkology.org wrote: Mark Knecht writes: Yes, I do use smartctl on some other machines although I'm not very good about it and your write-up is helpful so thanks for that. My wife's machines is older and and I don't think SMART is supported on her drive. Note the lack of a * on the SMART line in hdparm -I: Okay, but it still states: * SMART error logging * SMART self-test So maybe smartctl -t long /dev/hda still works? Just give it a try. No, -t long fails the same way. Basically every time I try to use smartctl on the drive it seems to issue one of these 3-line reports about SectorIDNotFound in dmesg. My other machines don't do this. Not a good sign I think... hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error } hda: task_no_data_intr: error=0x10 { SectorIdNotFound }, LBAsect=16777008, sector=18446744073709551615 hda: possibly failed opcode: 0xb0 hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error } hda: task_no_data_intr: error=0x10 { SectorIdNotFound }, LBAsect=262192, sector=18446744073709551615 hda: possibly failed opcode: 0xb0 hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error } hda: task_no_data_intr: error=0x10 { SectorIdNotFound }, LBAsect=48, sector=18446744073709551615 hda: possibly failed opcode: 0xb0 These command create the same sort of lines in dmesg: dragonfly ~ # smartctl -i /dev/hda smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Model Family: Western Digital Caviar family Device Model: WDC WD1600BB-00FTA0 Serial Number:WD-WMAES2091586 Firmware Version: 15.05R15 User Capacity:160,041,885,696 bytes Device is:In smartctl database [for details use: -P show] ATA Version is: 6 ATA Standard is: Exact ATA specification draft version not indicated Local Time is:Fri Feb 26 08:49:00 2010 PST SMART support is: Available - device has SMART capability. SMART support is: Disabled SMART Disabled. Use option -s with argument 'on' to enable it. dragonfly ~ # smartctl -P show /dev/hda smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Drive found in smartmontools Database. Drive identity strings: MODEL: WDC WD1600BB-00FTA0 FIRMWARE: 15.05R15 match smartmontools Drive Database entry: MODEL REGEXP: ^WDC WD(2|3|4|6|8|10|12|16|18|20|25)00BB-.*$ FIRMWARE REGEXP:.* MODEL FAMILY: Western Digital Caviar family ATTRIBUTE OPTIONS: None preset; no -v options are required. dragonfly ~ # SNIP I've not tried the -T permissive options. I would :) There is also a BIOS setting for SMART, but I think this does not matter here, and it's only for being able to report a failing drive before booting. Tried -T permissive and -T verypermissive. Same result. More lines and told it's not turning on. Could this have ANYTHING to do with kernel configuation? Is there anything required at the kernel level that I might not have turned on? I've never used badblocks as it seems I should only do that off-line. This might be a good time to boot with a CD and try it out. In read-only mode, you can use it when the system is running. Only the write test (option -n) refuses to run if partitions are mounted from the drive. So I'd do the 'badblocks -sv /dev/hda' right now, if you do not need the drive at full speed for a while. You can interrupt it at any point with Ctrl-Z and continue with the fg command. OK, I've started that test and will report back later what it says. Thanks! - Mark
Re: [gentoo-user] recovery from /var corruption?
Mark Knecht writes: On Fri, Feb 26, 2010 at 8:01 AM, Alex Schuster wo...@wonkology.org wrote: Okay, but it still states: *SMART error logging *SMART self-test So maybe smartctl -t long /dev/hda still works? Just give it a try. No, -t long fails the same way. Basically every time I try to use smartctl on the drive it seems to issue one of these 3-line reports about SectorIDNotFound in dmesg. My other machines don't do this. Not a good sign I think... hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error } hda: task_no_data_intr: error=0x10 { SectorIdNotFound }, LBAsect=16777008, sector=18446744073709551615 hda: possibly failed opcode: 0xb0 Uh-oh. Okay, I guess it just won't work then. Could this have ANYTHING to do with kernel configuation? Is there anything required at the kernel level that I might not have turned on? I'm pretty sure it has nothing to do with the kernel, but with your drive being incapable of the SMART commands. But I guess using badblocks is not that different in the end. The SMART selftest runs in the background and does not create disk I/O, but I think it does nothing so much different from badblocks. Wonko
Re: [gentoo-user] rsync backup system
On 26 February 2010 22:23, Ward Poelmans wpoel...@gmail.com wrote: On Thu, Feb 25, 2010 at 18:50, daid kahl daid...@gmail.com wrote: As a simple idea, cron task starts rsnapshot configured however. When this is done, backup is tarballed, and tarball is given as like, say, 440 permissions, where users are in some useful 'backup' group, then while tarball can be read to be passed across server, if tarball is extracted, user has no more privs then they have on the system anyway (I'm not saying chmod -R). Then local tarball can be removed or whatever. It's not a bad idea, but you need enough free space on the client to backup the entire system (which for me is not the case). Secondly, every backup you do is a full backup as rsnapshot needs to access a backup todo a incremental backup. You could mess around with something like sshfs but's it's not great either. A straight rsync between client and server could do it but it would suprise me if this doesn't already exist in some form. Regards, Ward Thanks for the feedback. For now, as you may easily guess, this case does not apply to me personally since I mostly just admin my own personal machine. But I think you raise very relevant difficulties with my suggestion for a practical administrative case for multiple machines. ~daid
Re: [gentoo-user] recovery from /var corruption?
On 26 February 2010 12:33, Mark Knecht markkne...@gmail.com wrote: So I got my wife's machine booted today using a install disk and played a bit with e2fsck. The machine stopped being happy last night due to some sort of corruption on the /var partition. e2fsck complained about 3 or 4 files and then repaired the partition. The machine booted cleanly as far as I can tell. So, something went bad and I managed to sneak around it for a while and now I'm sort of living with the machine wondering what to do. Do I just watch the logs looking for problems? I have no way of knowing right now whether this was a disk problem that's going to come back, a 1 time deal due to power, or something else entirely. As these cheap machines that don't use RAID what's the right way to go? emerge -e @world and then wait for the next event? Do nothing and wait? We've got decent personal data backups as well as basic /etc data. Thanks, Mark I reconsidered your problem, and I actually wonder if emerging world is a valid notion in this case, as the world file is under /var and this is reported as corrupt. In this sense, it may be entirely non-trivial to regenerate (without backup) the correct world-file for a system. Am I out in the deep end, or is this, in fact, the critical point that needs consideration here? ~daid
Re: [gentoo-user] Portage GUI interfaces...
On Friday 26 February 2010 15:08:29 J. Roeleveld wrote: In the menu: View - Split View Then you can choose to split it horizontally or vertically. To undo, close the active view Ah, I see. I don't usually have a visible menu so I didn't see it. Thanks. I still prefer to place my three console windows where I want them, but it was worth having a look. -- Rgds Peter.
Re: [gentoo-user] recovery from /var corruption?
On Fri, Feb 26, 2010 at 9:27 AM, Alex Schuster wo...@wonkology.org wrote: Mark Knecht writes: On Fri, Feb 26, 2010 at 8:01 AM, Alex Schuster wo...@wonkology.org wrote: Okay, but it still states: * SMART error logging * SMART self-test So maybe smartctl -t long /dev/hda still works? Just give it a try. No, -t long fails the same way. Basically every time I try to use smartctl on the drive it seems to issue one of these 3-line reports about SectorIDNotFound in dmesg. My other machines don't do this. Not a good sign I think... hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error } hda: task_no_data_intr: error=0x10 { SectorIdNotFound }, LBAsect=16777008, sector=18446744073709551615 hda: possibly failed opcode: 0xb0 Uh-oh. Okay, I guess it just won't work then. Could this have ANYTHING to do with kernel configuation? Is there anything required at the kernel level that I might not have turned on? I'm pretty sure it has nothing to do with the kernel, but with your drive being incapable of the SMART commands. But I guess using badblocks is not that different in the end. The SMART selftest runs in the background and does not create disk I/O, but I think it does nothing so much different from badblocks. Wonko The machine _mostly_ crashed while running badblocks. I say mostly because the mouse is still alive but I can no longer ssh in and cannot open a terminal on my wife's desktop or get to the console. I tried to Ctrl-C out out of badblocks here (this is running shelled in) before I figured out it was a total crash which messed up the terminal a bit but you can see what it was reporting before the crash dragonfly ~ # badblocks -sv /dev/hda Checking blocks 0 to 156290903 Checking for bad blocks (read-only test): 89360960done, 35:00 elapsed 89360961done, 35:09 elapsed 89360962 89360963 ^C^C18% done, 35:27 elapsed So, there seem to be problems, possibly with the drive, or maybe it's some sort of overheating problem on the processor and this was just the way the processor failed before the crash? I ran memtest86 night before last for 8 hours and had no memory problems. I'll remove memory and PCI cards, reseat everything, and then see what happens. - Mark
[gentoo-user] Advice/best practices for a new Gentoo installation
Hi, I'm building a new personal computer. I respect the opinion and experience of the people on this list and am interested in anyone's advice on the best way to set up my new Gentoo installation. Things that you say I wish I set mine up this way the first time... or have learned from experience how to do it right the first time already. :) Some topics I'm thinking about (comments welcome): - be aware of cylinder boundaries when partitioning (thanks to the recent thread) - utilizing device labels and/or volume labels instead of hoping /dev/sda stays /dev/sda always - initrd - I've never used one, but maybe it's needed if root is on software RAID? - grub/kernel parameter tips and tricks... i'm already using uvesafb, and don't dual-boot with MSWin or anything, just Gentoo - better partitioning scheme than my current root, boot, home (need portage on its own, maybe /var as well?) - some kind of small linux emergency/recovery partition? equivalent to a liveCD maybe. - best filesystem for portage? something compressed or with small cluster size maybe. - SSD vs 1rpm vs big-and-cheap hard drive for rootfs/system files. I lean toward the latter since RAM caches it anyway. - omit/reduce number of reserved-for-root blocks on partitions where it's not necessary. - I have never used LVM and don't really know about it. Should I use it? will it make life easier someday? or more difficult? - Is RAID5 still a good balance for disk cost vs usable space vs data safety? I can't/don't want to pay for full mirroring of all disks. Or any other tips that apply to things which are difficult to change once the system is in use. It will be ~amd64 Gentoo using Intel Core i7 920 with 12GiB RAM. No disks have been purchased yet. Thanks
Re: [gentoo-user] recovery from /var corruption?
On Freitag 26 Februar 2010, Mark Knecht wrote: The machine _mostly_ crashed while running badblocks. I say mostly because the mouse is still alive but I can no longer ssh in and cannot open a terminal on my wife's desktop or get to the console. because it is not crashed but waiting for the ide timeouts. I tried to Ctrl-C out out of badblocks here (this is running shelled in) before I figured out it was a total crash which messed up the terminal a bit but you can see what it was reporting before the crash dragonfly ~ # badblocks -sv /dev/hda Checking blocks 0 to 156290903 Checking for bad blocks (read-only test): 89360960done, 35:00 elapsed 89360961done, 35:09 elapsed 89360962 89360963 ^C^C18% done, 35:27 elapsed So, there seem to be problems, possibly with the drive, or maybe it's some sort of overheating problem on the processor and this was just the way the processor failed before the crash? I ran memtest86 night before last for 8 hours and had no memory problems. I'll remove memory and PCI cards, reseat everything, and then see what happens. protip: if you are running badblocks (or ddrescue) on a probably damaged device - attach it with an usb adapter. That way your box is still usable. /me hates linux kernel for making processes in D unkillable and sucking very much on diskio.
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
chrome://messenger/locale/messengercompose/composeMsgs.properties: - Original Message From: Dalerdalek1...@gmail.com To: gentoo-user@lists.gentoo.org chrome://messenger/locale/messengercompose/composeMsgs.properties: On 02/26/2010 06:06 AM, BRM wrote: I am quite happy with KDE4 - presently using KDE 4.3.5. I still have KDE 3.5.10 installed, and am wondering how much longer I need to keep it around...I probably use all KDE4 apps, though there might be a few here or there that I use on a rare occasion that are still KDE3 based...may be...and no, I don't plan on using KDE Sunset Overlay[1] Any how...I'm wondering what the best method to remove KDE3.5 safely is: 1) Just leave it and may be it'll just get removed? 2) Found this entry on removing it http://linuxized.blogspot.com/2008/10/how-to-unmerge-kde-3-packages-if-their.html But nothing registers as a 'dup' even though qlist does show a lot of KDE 3.5.10 packages installed. (Yeah, I'd need to modify the line to ensure it doesn't remove KDE 4.3.5). 3) Gentoo KDE4 guide suggests a method, but it seems to be more related to removing KDE entirely... http://www.gentoo.org/proj/en/desktop/kde/kde4-guide.xml If you keep your world file (/var/lib/portage/world) tidy, simply deleting all lines with KDE3 packages and running emerge -a --depclean will take care of it. You *do* keep your world file tidy, don't you? :P That would be the easiest method. If you use the kde-meta package like I do, just remove the one for KDE 3 and let --depclean do its thing. It should get all of it. I actually don't touch the world file, and just do the 'emerge world -vuDNa' for updates. From my POV, that is emerge/Portage's job - not mine. Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. Having just done a compiler upgrade, I can say that there are roughly 1100 packages (emerge -eav) in world that were recompiled. I was just contemplating - KDE4 is stable, and I don't see myself running KDE3 again; so why keep it around. If 'emerge world -vuDNa' will remove it when it gets pushed off the main trunk, then that's probably fine with me - since that seems to not be very far out now. If not, then I definitely want to remove it now as there is no other reason for keeping it around. If you want to keep something tho, you need to add it to the world file first and then run --depclean. That way it will keep the program(s) you want and the things they depend on but remove everything else. This will save you from having to reinstall those packages. You may even have to get them from the overlay at that point. So don't uninstall something you want to keep. That's the only issue. My only concern is software (e.g. KDevelop) that may not have been updated to KDE4 yet. (Not a fan of KDevelop3; waiting to see how KDevelop4 is going to shape up.) If you have the drive space, you can leave it there for a while longer tho. Just keep in mind that there are no security updates or anything like that. If you add the overlay, you will get a few updates at least. I do have the disk space on the systems I have KDE3 and KDE4 on; so that's not a concern. Ben Another reason the question of keeping your world file clean could come up, do you use the --oneshot option when needed? This can really junk up a world file. Let's say kde-meta pulls in konqueror. For some reason, you need to re-emerge konqueror and do so without the --oneshot option. Now, konqueror is listed in the world file when it really shouldn't be there. This can happen with hundreds of other packages as well. I fell for this ages ago myself because I didn't know about this. So, even tho you may not touch the world file, it could still have packages listed in there that are not needed. It sort of creeps up on you if you are not careful. The biggest thing portage does with world is add stuff and keep it in alphabetical order. There are some things that should be done to keep a sane system in my opinion. --depclean is one of them. Running revdep-rebuild is another. I even go look at my world file from time to time to see if I forgot to use the --oneshot option myself. Gentoo is like anything else, it has to be maintained. The better maintenance you do the better things will be. After all, there will be problems no matter what you do but keeping it sane helps. Your mileage may vary tho. If you want to keep the Kdevelop 3 around, just add it to world. Portage will do this with the -n option if you would rather portage did it. Then you can unmerge kde-meta or whatever you use to install KDE 3 and run --depclean -p. I would run with the -p option first since
Re: [gentoo-user] When copying an os to new disk
tar cf - $old_dir | ( cd $new_dir: tar xf - ) tar cf - $old_dir | ssh $other_host ( cd $new_dir: tar xf - ) ^ The ':' separating commands should be a ';'. Using the -C option would be a little easier, but your method also would work for star. This piping through ssh is quite cool, isn't it. whoops, good catch! If $old_dir is the root partition, I would bin-mount it first to somewhere else, so other directories mounted to it (especially/dev, /proc and /sys) are not copied: mount -o bind / /mnt old_dir=/mnt that too, copying over /proc/kcore is never fun ;P -- Kyle
Re: [gentoo-user] recovery from /var corruption?
On Fri, Feb 26, 2010 at 11:59 AM, Volker Armin Hemmann volkerar...@googlemail.com wrote: protip: if you are running badblocks (or ddrescue) on a probably damaged device - attach it with an usb adapter. That way your box is still usable. +1, i had a bad drive and it's so much easier to unplug/replug the USB instead of rebooting and etc.
Re: [gentoo-user] Advice/best practices for a new Gentoo installation
- be aware of cylinder boundaries when partitioning (thanks to the recent thread) +1 - utilizing device labels and/or volume labels instead of hoping /dev/sda stays /dev/sda always +1 - initrd - I've never used one, but maybe it's needed if root is on software RAID? It's not technically needed and boot times are faster without them. I'm a fan of statically compiled kernels too but that's more to prevent malicious LKMs. - grub/kernel parameter tips and tricks... i'm already using uvesafb, and don't dual-boot with MSWin or anything, just Gentoo - better partitioning scheme than my current root, boot, home (need portage on its own, maybe /var as well?) putting portage on it's on partition is a good idea imo, I usually use reiserfs because it handles large amounts of small files well. - some kind of small linux emergency/recovery partition? equivalent to a liveCD maybe. I usually keep a bootable usb in my bag for recovery, which also works if there is a problem with the disk/raid. - best filesystem for portage? something compressed or with small cluster size maybe. reiserfs - SSD vs 1rpm vs big-and-cheap hard drive for rootfs/system files. I lean toward the latter since RAM caches it anyway. SSDs can make things snappier for boot times. Having lots of ram for disk cache eliminates the benefit after booted since ram is even faster than a SSD. - omit/reduce number of reserved-for-root blocks on partitions where it's not necessary. I never get close to filling my disks so never have bothered with this - I have never used LVM and don't really know about it. Should I use it? will it make life easier someday? or more difficult? I'm not a fan, if you don't plan on changing your partition sizes I don't see a lot of utility in adding the extra layer of complexity. - Is RAID5 still a good balance for disk cost vs usable space vs data safety? I can't/don't want to pay for full mirroring of all disks. It's better than no raid but as you probably know it will only allow for a single disk failure. Getting drives from different lots (but same geometry) is recommended. -- Kyle
Re: [gentoo-user] recovery from /var corruption?
On Fri, Feb 26, 2010 at 9:59 AM, Volker Armin Hemmann volkerar...@googlemail.com wrote: On Freitag 26 Februar 2010, Mark Knecht wrote: The machine _mostly_ crashed while running badblocks. I say mostly because the mouse is still alive but I can no longer ssh in and cannot open a terminal on my wife's desktop or get to the console. because it is not crashed but waiting for the ide timeouts. So if I let it continue running is it going to come back in the next hour or two? I am assuming the IDE timeouts are because the drive is having trouble, correct? That's the theory here? If so then unless the software can mark them bad and somehow create good files out of bad then I'm still left with a machine that is going to need serious work done before it's a happy box again, correct? On the other hand, because I have reasonably good user backups (although no real system backups) right now if I bite the bullet and build the machine then when my wife gets it back it's hopefully going to be more reliable, wouldn't it? I'm thinking that maybe I just copy a little stuff off the box - /etc and the like - and then boot the machine with the Gentoo install CD or System Resuce CD and see what the drive is doing? That doesn't cost me anything to look around, but if SMART won't turn on and badblocks is suggesting the drive is having trouble maybe running something like badblocks and actually __marking__ blocks as bad and then reloading Gentoo would work in the long run? (A lot of work though.) I'm really not interested in buying new drive because the machine is ATA100/133 and if it's not the drive then the money is wasted for a new machine. The cheapest at NewEgg is about $40. Why spend the buck for an old Intel Centrino machine? I tried to Ctrl-C out out of badblocks here (this is running shelled in) before I figured out it was a total crash which messed up the terminal a bit but you can see what it was reporting before the crash dragonfly ~ # badblocks -sv /dev/hda Checking blocks 0 to 156290903 Checking for bad blocks (read-only test): 89360960done, 35:00 elapsed 89360961done, 35:09 elapsed 89360962 89360963 ^C^C18% done, 35:27 elapsed So, there seem to be problems, possibly with the drive, or maybe it's some sort of overheating problem on the processor and this was just the way the processor failed before the crash? I ran memtest86 night before last for 8 hours and had no memory problems. I'll remove memory and PCI cards, reseat everything, and then see what happens. protip: if you are running badblocks (or ddrescue) on a probably damaged device - attach it with an usb adapter. That way your box is still usable. /me hates linux kernel for making processes in D unkillable and sucking very much on diskio. Good inputs. Thanks! Cheers, Mark
[gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
On 02/26/2010 06:10 PM, BRM wrote: [...] From: Alex Schusterwo...@wonkology.org That's the only issue. My only concern is software (e.g. KDevelop) that may not have been updated to KDE4 yet. (Not a fan of KDevelop3; waiting to see how KDevelop4 is going to shape up.) The KDE4 version is in the kde overlay, but I do not know if it is usable already. For now, I'll wait. I mostly use vim; and having done a lot of Windows stuff for work I am familiar with VS. While there are a lot of things I don't like about VS, nothing else seems to quite compare. KDevelop3 at least drove me nuts; and Eclipse just doesn't do well when you're not programming in Java - I have yet to get CDT to work, though I've mostly tried on Windows. QtCreator seems to be on the right track, though it's still quite early. I'm interested to see how KDevelop4 is going to turn out, but I'll certainly wait for it to reach the mainline tree. The KDevelop 4 is actually in Portage (dev-util/kdevelop:4), not only in the kde overlay. I have both Kdev4 and Qt Creator installed. I ended up going with Creator, but I'm still keeping an eye on Kdev4.
Re: [gentoo-user] How should I clean up my broken system?
On Sunday 14 February 2010 11:32:12 Neil Bothwick wrote: On Sun, 14 Feb 2010 12:03:40 +0100, Volker Armin Hemmann wrote: On a more serious note, conf-update automatically merges trivial changes, so any configs you ran at the default, which is probably the majority, won't be flaged at all. so does cfg-update Every now and then, someone mentions cfg-update - usually you :) - and I give it another try, but I don't really get on with it and always go back to conf-update. There's nothing specific wrong with it, I just prefer (or am used to) conf-update. I expect that if I were still using etc-update or dispatch-conf I would welcome it with open arms though. I'm still using etc-update, which seems adequate except when squid is upgraded, but I thought I'd try cfg-update. Problem though: it demands dev-util/xxdiff which doesn't exist. What's a suitable substitute? -- Rgds Peter.
Re: [gentoo-user] recovery from /var corruption?
On Freitag 26 Februar 2010, Mark Knecht wrote: On Fri, Feb 26, 2010 at 9:59 AM, Volker Armin Hemmann volkerar...@googlemail.com wrote: On Freitag 26 Februar 2010, Mark Knecht wrote: The machine _mostly_ crashed while running badblocks. I say mostly because the mouse is still alive but I can no longer ssh in and cannot open a terminal on my wife's desktop or get to the console. because it is not crashed but waiting for the ide timeouts. So if I let it continue running is it going to come back in the next hour or two? yes I am assuming the IDE timeouts are because the drive is having trouble, correct? That's the theory here? yes If so then unless the software can mark them bad and somehow create good files out of bad then I'm still left with a machine that is going to need serious work done before it's a happy box again, correct? and with 'serious work' you mean 'replace the harddisk' ... On the other hand, because I have reasonably good user backups (although no real system backups) right now if I bite the bullet and build the machine then when my wife gets it back it's hopefully going to be more reliable, wouldn't it? yes I'm thinking that maybe I just copy a little stuff off the box - /etc and the like - and then boot the machine with the Gentoo install CD or System Resuce CD and see what the drive is doing? you could do that. That doesn't cost me anything to look around, but if SMART won't turn on and badblocks is suggesting the drive is having trouble maybe running something like badblocks and actually __marking__ blocks as bad and then reloading Gentoo would work in the long run? (A lot of work though.) you would need to save the badblocks to a file, than feed that file to mkfs. And you are not even save - because when a drive starts to have bad blocks the chance that more are popping up some is pretty high. So you might be lucky and the drive is able to run for a long while (even maybe mapping out bad blocks while testing them - so always run badblocks twice), but you have at least a as a good chance that the whole thing starts over in a couple of weeks. I'm really not interested in buying new drive because the machine is ATA100/133 and if it's not the drive then the money is wasted for a new machine. The cheapest at NewEgg is about $40. Why spend the buck for an old Intel Centrino machine? you could take the drive with you when you buy a new machine. Moving harddisks is not that hard. Or put it in an usb enclosure when you don't need it anymore. ide-usb enclosures are cheap.
[gentoo-user] [OT] attach a perl script to daemon services
ALERT [ This is a slightly rewritten repost from `gmane.[...].perl.beginners', where it got no responses] ---- ---=--- - My subject line is probably not really that good at describing what I want advice on but here it is: I've setup one linux (gentoo) box as a logserver running rsyslog and several other linux boxes sending syslog info to it. I want to set the server rsyslog.conf so that in addition to normal logging to /var/log/whateverlogs it also writes everything to a named pipe (fifo). Then tap into the fifo with a perl script that is written to be able to sort and write the syslog output according to various regex that may be part of startup cmd or fed in later during the running script. I think I can manage the sorting/writing and maybe reading regex into the running process. (Just by an awkward funky method of having the script reread a file on disk every 5 minutes, and put what ever regex become necessary there). There are probably cleaner better ways... and I may be back asking about that but right now, where I have no real idea is how to attach the perl script to a service like the system logger. I mean so the script starts and stops with system logger and somehow alerts the system logger (and sysadmin) if it (the script) for some reason is killed or dies on its own while the system logger is still running. I imagine getting the perl script to start/stop with the logger daemon on boot up would be simple enough by inserting something into the init script that starts the logger. From there I'm just drawing blanks as to how a script would know if the system logger stopped, and further some kind of `trap' that would send out info to be logged by the logger and to the system admin if the script itself died or was killed. I'm slightly familiar with shell script traps but haven't encountered or had need of such in a perl script. But really I suspect I'm going at this wrong right from the start and there is a better plan to be had. I'm hoping someone with that kind of experience can outline how this might be done. I can handle most of the perl scripting but not sure about coding a `trap' style function.. That I can get from the perl.beginners group. so here I'm looking for an overview of how to go at this. I'm thinking an experienced sysadmin here will have at the top of there head.. the basic outline of how something like this might be done. So to summarize I want to: Attach a perl script to a service daemon (rsyslog) so it starts/stops with the daemon, and has some code that will put something into syslog output and notify the admin in the event the script itself is terminated unexpectedly. Something along the line of a bash/ksh exit `trap' It would also need to check when being started, that the system logger is running else fail and send notice to admin.
Re: [gentoo-user] How should I clean up my broken system?
Peter Humphrey writes: I'm still using etc-update, which seems adequate except when squid is upgraded, but I thought I'd try cfg-update. Problem though: it demands dev-util/xxdiff which doesn't exist. What's a suitable substitute? Whatever you like. Just edit the MERGETOOL definition in /etc/cfg- update.conf: # +--+ # | MERGETOOL \ # ++---+ # |The recommended tool for merging is beediff but you can also use other| # |tools if you don't like beediff. The Supported tools are listedbelow:| # +--+-+--+--+ # | beediff | GUI | QT | | # | kdiff3 | GUI | KDE (or Gnome with QT) | | # | meld | GUI | Gnome (or KDE with GTK) | | # | gtkdiff | GUI | Gnome (or KDE with GTK) | STAGE 3 not supported! | # | gvimdiff | GUI | Gnome (or KDE with GTK) | STAGE 3 not supported! | # | tkdiff | GUI | Gnome (or KDE with TK) | | # | vimdiff | CLI | Systems without X| STAGE 3 not supported! | # | sdiff| CLI | Systems without X| STAGE 3 not supported! | # | imediff2 | CLI | Systems without X| STAGE 3 not supported! | +--+-+--++ MERGE_TOOL = /usr/bin/kdiff3 Wonko
Re: [gentoo-user] recovery from /var corruption?
On Fri, Feb 26, 2010 at 10:26 AM, Mark Knecht markkne...@gmail.com wrote: SNIP On the other hand, because I have reasonably good user backups (although no real system backups) right now if I bite the bullet and build the machine then when my wife gets it back it's hopefully going to be more reliable, wouldn't it? I'm thinking that maybe I just copy a little stuff off the box - /etc and the like - and then boot the machine with the Gentoo install CD or System Resuce CD and see what the drive is doing? SNIP As a related idea I dug out an old copy of Spinrite which I'll run on all the partitions just to see what it says. However if the problem is currently 1 partition (/var) which is still mostly readable, could I not just create a new var partition - the drive has space free - and then copy important stuff from old var to new var, change fstab and then basically just go on from there? Cheers, Mark
[gentoo-user] openvpn - Socket bind failed on local address [undef]:1194
I have one client and trying to connect to two openvpn servers (both servers are behind same IP address): client1 remote 208.38.31.237 9000 client2 remote 208.38.31.237 9050 I can connect to them one at a time but not both at the same time. If I try to start the second connection I get: TCP/UDP: Socket bind failed on local address [undef]:1194: Address already in use I was able to connect to both servers at the same time when the servers were on my local subnet: 10.0.0.150 (simulated) But if I try real world scenario, it I get Address already in use What is the difference? -- Joseph
Re: [gentoo-user] recovery from /var corruption?
On Fri, Feb 26, 2010 at 9:38 AM, daid kahl daid...@gmail.com wrote: On 26 February 2010 12:33, Mark Knecht markkne...@gmail.com wrote: So I got my wife's machine booted today using a install disk and played a bit with e2fsck. The machine stopped being happy last night due to some sort of corruption on the /var partition. e2fsck complained about 3 or 4 files and then repaired the partition. The machine booted cleanly as far as I can tell. So, something went bad and I managed to sneak around it for a while and now I'm sort of living with the machine wondering what to do. Do I just watch the logs looking for problems? I have no way of knowing right now whether this was a disk problem that's going to come back, a 1 time deal due to power, or something else entirely. As these cheap machines that don't use RAID what's the right way to go? emerge -e @world and then wait for the next event? Do nothing and wait? We've got decent personal data backups as well as basic /etc data. Thanks, Mark I reconsidered your problem, and I actually wonder if emerging world is a valid notion in this case, as the world file is under /var and this is reported as corrupt. In this sense, it may be entirely non-trivial to regenerate (without backup) the correct world-file for a system. Am I out in the deep end, or is this, in fact, the critical point that needs consideration here? ~daid Hi daid, In general you are correct. If I didn't have a copy of the world file then it would be a bit hit and miss. In this case I do have it saved elsewhere so it's actually quite easy. This failure is more (it seems) a few bad blocks on one partition and not a total drive failure. I'm leaning toward a new /var partition and just ignoring the partition that has problems. It will sit on the disk but it's only 10GB out of 160GB so it's not the end of the world by any means. Thanks! - Mark
Re: [gentoo-user][SOLVED] openvpn - Socket bind failed on local address [undef]:1194
On 02/26/10 11:50, Joseph wrote: I have one client and trying to connect to two openvpn servers (both servers are behind same IP address): client1 remote 208.38.31.237 9000 client2 remote 208.38.31.237 9050 I can connect to them one at a time but not both at the same time. If I try to start the second connection I get: TCP/UDP: Socket bind failed on local address [undef]:1194: Address already in use I was able to connect to both servers at the same time when the servers were on my local subnet: 10.0.0.150 (simulated) But if I try real world scenario, it I get Address already in use What is the difference? -- Joseph SOLVED I had to add to my client/server config file the same port number, eg. proto udp port 9050 -- Joseph
Re: [gentoo-user] Advice/best practices for a new Gentoo installation
On Fri, Feb 26, 2010 at 11:54:13AM -0600, Paul Hartman wrote: - better partitioning scheme than my current root, boot, home (need portage on its own, maybe /var as well?) /var if you are worried about log files piling up. I don't put portage on its own, but I use reiserfs for / - some kind of small linux emergency/recovery partition? equivalent to a liveCD maybe. Isn't that what busybox is for? - best filesystem for portage? something compressed or with small cluster size maybe. Reiserfs. That's more because of the tail-packing then anything else. - omit/reduce number of reserved-for-root blocks on partitions where it's not necessary. Yep. On a 200G drive, 10% is 20G: that's 4 movies! Or any other tips that apply to things which are difficult to change once the system is in use. Pay attention to your make.conf? Make sure you get CHOST right. If you are dealing with unfamiliar options in the kernel, always start at the bare minimum and make sure you keep a working copy around. W -- Willie W. Wong ww...@math.princeton.edu Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton
Re: [gentoo-user] Advice/best practices for a new Gentoo installation
- Original Message From: Paul Hartman paul.hartman+gen...@gmail.com To: gentoo-user@lists.gentoo.org Some topics I'm thinking about (comments welcome): - be aware of cylinder boundaries when partitioning (thanks to the recent thread) - utilizing device labels and/or volume labels instead of hoping /dev/sda stays /dev/sda always I've never had an issue with /dev/sda changing, but I don't change out hard drives a lot either. If you're doing hot-pluggable systems may be. But it typically does the right thing. I haven't gotten around to do doing it yet, but one thing I did think about was setting up udev to recognize certain external hard drives for use - e.g. always mapping a backup hard drive to a certain location for backups instead of the normal prompting. - initrd - I've never used one, but maybe it's needed if root is on software RAID? You only need initrd if you can't build a kernel with everything needed to boot up - namely, when you need to load specialized firmware to access the hard drive or if you are doing net-booting. - grub/kernel parameter tips and tricks... i'm already using uvesafb, and don't dual-boot with MSWin or anything, just Gentoo I typically make sure to alias or map a default that should always work. It's my standard boot up unless Im testing out a new kernel build. When I do an update, I add the update to the list without modifying the default until I've verified that the updated kernel is working. Works better under LILO than grub if I recall. - better partitioning scheme than my current root, boot, home (need portage on its own, maybe /var as well?) I have taken to putting portage on its own partition to keep from filling up the root partition, which I've done on a few systems more than once. So yes, definately +5. - best filesystem for portage? something compressed or with small cluster size maybe. 1. Stay away from reiserfs. Yeah, I know there's a big fan base for it; but it's not so big in the recovery distro area. 2. Ext2/3 are now more than sufficient and supported out-of-the-box by nearly all recovery distros. I haven't tried Ext4 yet, but it seems very able as well. From various things I've seen, XFS or JFS is about the only real FS to offer benefits where it kind of makes sense. But for the most part, Ext2/3/4 will probably more than suffice for most everyone's need; and when it doesn't - you're typically doing something where you need to find the right one out of numerous for a specialized area of use, in which case, general recommendations don't cut it. (Why care about recovery disks: B/c you never know when you're going to need to access that partition.) - SSD vs 1rpm vs big-and-cheap hard drive for rootfs/system files. I lean toward the latter since RAM caches it anyway. I lean towards just going the standard 10k hard drives with lots of cache; though I typically only buy the middle-line Western Digitals (upper-line being the server hard drives). - omit/reduce number of reserved-for-root blocks on partitions where it's not necessary. - I have never used LVM and don't really know about it. Should I use it? will it make life easier someday? or more difficult? I tried out LVM (LVM2) thinking it would kind of make sense. I still have one system using it; but I ended up abandoning it. Why? Recovery is a pita when something goes wrong. Not to say it isn't flexible, but for most people LVM is unnecessary, kind of like RAID. - Is RAID5 still a good balance for disk cost vs usable space vs data safety? I can't/don't want to pay for full mirroring of all disks. RAID is not really necessary for most people. Save it for sections on doing backups - e.g. setting up a drive to backup to that gets mirrored off - or server support, where RAID is necessary. But most users don't need RAID. Or any other tips that apply to things which are difficult to change once the system is in use. KISS. Ben
[gentoo-user] KDE4 applications are spamming stderr to death
Is it normal that every KDE (4.4.0) application is generating an awful lot of debug messages on stderr? When I start one from the terminal (be it Dolphin, Konqueror or whatever) the output generated is pretty much gigantic. It's stuff like this: QPainter::setPen: Painter not active QPainter::font: Painter not active QPainter::font: Painter not active QPainter::setFont: Painter not active QPainter::setPen: Painter not active QPainter::font: Painter not active konqueror(12426)/kio (Slave) KIO::Slave::createSlave: createSlave file for KUrl(file:///usr/share/apps/kdeui/about/box-top- middle.png) konqueror(12426)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on local:/tmp /ksocket-realnc/konquerorb12426.slave-socket kio_file(12429)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12431)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12433)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12435)/kio (kioslave) KIO::SlaveBase::mimeType: image/png konqueror(12426)/kio (Slave) KIO::Slave::createSlave: createSlave file for KUrl(file:///usr/share/apps/kdeui/about/box-middle- left.png) kio_file(12443) kdemain: Starting 12443 [...] [etc, etc, ad infinitum] Currently, after about 2 hours of uptime, my ~/.xsession-errors is about 12MB big and full with those debug messages. The debug USE flag is globally disabled. What's going on? I doubt this is intended behavior.
Re: [gentoo-user] [OT] attach a perl script to daemon services
On Friday 26 February 2010 20:40:40 Harry Putnam wrote: ALERT [ This is a slightly rewritten repost from `gmane.[...].perl.beginners', where it got no responses] ---- ---=--- - My subject line is probably not really that good at describing what I want advice on but here it is: I've setup one linux (gentoo) box as a logserver running rsyslog and several other linux boxes sending syslog info to it. I want to set the server rsyslog.conf so that in addition to normal logging to /var/log/whateverlogs it also writes everything to a named pipe (fifo). Then tap into the fifo with a perl script that is written to be able to sort and write the syslog output according to various regex that may be part of startup cmd or fed in later during the running script. I don't know rsyslog at all (I use syslog-ng), but certain concepts are stable and universal. Any log daemon must receive logs from somewhere and send them somewhere, and almost all support the notion of sending logs to a process instead of a file- like destination. Does rsyslog not support something like this: destination | /path/to/script.pl -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Advice/best practices for a new Gentoo installation
Paul Hartman wrote: - some kind of small linux emergency/recovery partition? equivalent to a liveCD maybe. Tiny core linux on the boot folder/part. Its all in a single small file. Or any other tips that apply to things which are difficult to change once the system is in use. I moved distfiles onto my home partition (bacause its huge), my root fs is 5GB ext3, it never really changes much. -- Regards, Roundyz
Re: [gentoo-user] KDE4 applications are spamming stderr to death
On Freitag 26 Februar 2010, Nikos Chantziaras wrote: Is it normal that every KDE (4.4.0) application is generating an awful lot of debug messages on stderr? When I start one from the terminal (be it Dolphin, Konqueror or whatever) the output generated is pretty much gigantic. It's stuff like this: QPainter::setPen: Painter not active QPainter::font: Painter not active QPainter::font: Painter not active QPainter::setFont: Painter not active QPainter::setPen: Painter not active QPainter::font: Painter not active konqueror(12426)/kio (Slave) KIO::Slave::createSlave: createSlave file for KUrl(file:///usr/share/apps/kdeui/about/box-top- middle.png) konqueror(12426)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on local:/tmp /ksocket-realnc/konquerorb12426.slave-socket kio_file(12429)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12431)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12433)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12435)/kio (kioslave) KIO::SlaveBase::mimeType: image/png konqueror(12426)/kio (Slave) KIO::Slave::createSlave: createSlave file for KUrl(file:///usr/share/apps/kdeui/about/box-middle- left.png) kio_file(12443) kdemain: Starting 12443 [...] [etc, etc, ad infinitum] Currently, after about 2 hours of uptime, my ~/.xsession-errors is about 12MB big and full with those debug messages. The debug USE flag is globally disabled. What's going on? I doubt this is intended behavior. the debug flag has nothing to do with this. Why don't you open a nice bug at bugs.kde.org?
[gentoo-user] Re: KDE4 applications are spamming stderr to death
On 02/26/2010 10:32 PM, Volker Armin Hemmann wrote: On Freitag 26 Februar 2010, Nikos Chantziaras wrote: Is it normal that every KDE (4.4.0) application is generating an awful lot of debug messages on stderr? When I start one from the terminal (be it Dolphin, Konqueror or whatever) the output generated is pretty much gigantic. It's stuff like this: QPainter::setPen: Painter not active QPainter::font: Painter not active QPainter::font: Painter not active QPainter::setFont: Painter not active QPainter::setPen: Painter not active QPainter::font: Painter not active konqueror(12426)/kio (Slave) KIO::Slave::createSlave: createSlave file for KUrl(file:///usr/share/apps/kdeui/about/box-top- middle.png) konqueror(12426)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on local:/tmp /ksocket-realnc/konquerorb12426.slave-socket kio_file(12429)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12431)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12433)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12435)/kio (kioslave) KIO::SlaveBase::mimeType: image/png konqueror(12426)/kio (Slave) KIO::Slave::createSlave: createSlave file for KUrl(file:///usr/share/apps/kdeui/about/box-middle- left.png) kio_file(12443) kdemain: Starting 12443 [...] [etc, etc, ad infinitum] Currently, after about 2 hours of uptime, my ~/.xsession-errors is about 12MB big and full with those debug messages. The debug USE flag is globally disabled. What's going on? I doubt this is intended behavior. the debug flag has nothing to do with this. Why don't you open a nice bug at bugs.kde.org? I wanted to make sure first that this isn't some sort of configuration problem on my end. Can you confirm that this happens on your system too?
[gentoo-user] source repository could not be determined
I'm trying to re-emerge package kbarcode but it keeps complaing: that the source repository could not be determined emerge -pv kbarcode These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-text/kbarcode-2.0.7 USE=-debug% -doc -xinerama% 0 kB [?=1] Total: 1 package (1 reinstall), Size of downloads: 0 kB Portage tree and overlays: [0] /usr/portage [1] /usr/local/portage/layman/kde-sunset [?] indicates that the source repository could not be determined How to fix it? -- Joseph
Re: [gentoo-user] Re: KDE4 applications are spamming stderr to death
On Freitag 26 Februar 2010, Nikos Chantziaras wrote: On 02/26/2010 10:32 PM, Volker Armin Hemmann wrote: On Freitag 26 Februar 2010, Nikos Chantziaras wrote: Is it normal that every KDE (4.4.0) application is generating an awful lot of debug messages on stderr? When I start one from the terminal (be it Dolphin, Konqueror or whatever) the output generated is pretty much gigantic. It's stuff like this: QPainter::setPen: Painter not active QPainter::font: Painter not active QPainter::font: Painter not active QPainter::setFont: Painter not active QPainter::setPen: Painter not active QPainter::font: Painter not active konqueror(12426)/kio (Slave) KIO::Slave::createSlave: createSlave file for KUrl(file:///usr/share/apps/kdeui/about/box-top- middle.png) konqueror(12426)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on local:/tmp /ksocket-realnc/konquerorb12426.slave-socket kio_file(12429)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12431)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12433)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12435)/kio (kioslave) KIO::SlaveBase::mimeType: image/png konqueror(12426)/kio (Slave) KIO::Slave::createSlave: createSlave file for KUrl(file:///usr/share/apps/kdeui/about/box-middle- left.png) kio_file(12443) kdemain: Starting 12443 [...] [etc, etc, ad infinitum] Currently, after about 2 hours of uptime, my ~/.xsession-errors is about 12MB big and full with those debug messages. The debug USE flag is globally disabled. What's going on? I doubt this is intended behavior. the debug flag has nothing to do with this. Why don't you open a nice bug at bugs.kde.org? I wanted to make sure first that this isn't some sort of configuration problem on my end. Can you confirm that this happens on your system too? oh yes. It does. If you open a bug, post the link please. ls -lhtr .xsession-errors -rw--- 1 energyman users 345M 26. Feb 22:15 .xsession-errors
Re: [gentoo-user] source repository could not be determined
On Friday 26 February 2010 23:12:18 Joseph wrote: I'm trying to re-emerge package kbarcode but it keeps complaing: that the source repository could not be determined emerge -pv kbarcode These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-text/kbarcode-2.0.7 USE=-debug% -doc -xinerama% 0 kB [?=1] Total: 1 package (1 reinstall), Size of downloads: 0 kB Portage tree and overlays: [0] /usr/portage [1] /usr/local/portage/layman/kde-sunset [?] indicates that the source repository could not be determined How to fix it? The error means that the package is no longer in portage or any of the overlays you are using. It's probably dead. Is it a KDE-3.5 package? If so, it will be in the kde-sunset overlay. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Re: KDE4 applications are spamming stderr to death
On Friday 26 February 2010 23:08:58 Nikos Chantziaras wrote: On 02/26/2010 10:32 PM, Volker Armin Hemmann wrote: On Freitag 26 Februar 2010, Nikos Chantziaras wrote: Is it normal that every KDE (4.4.0) application is generating an awful lot of debug messages on stderr? When I start one from the terminal (be it Dolphin, Konqueror or whatever) the output generated is pretty much gigantic. It's stuff like this: QPainter::setPen: Painter not active QPainter::font: Painter not active QPainter::font: Painter not active QPainter::setFont: Painter not active QPainter::setPen: Painter not active QPainter::font: Painter not active konqueror(12426)/kio (Slave) KIO::Slave::createSlave: createSlave file for KUrl(file:///usr/share/apps/kdeui/about/box-top- middle.png) konqueror(12426)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on local:/tmp /ksocket-realnc/konquerorb12426.slave-socket kio_file(12429)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12431)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12433)/kio (kioslave) KIO::SlaveBase::mimeType: image/png kio_file(12435)/kio (kioslave) KIO::SlaveBase::mimeType: image/png konqueror(12426)/kio (Slave) KIO::Slave::createSlave: createSlave file for KUrl(file:///usr/share/apps/kdeui/about/box-middle- left.png) kio_file(12443) kdemain: Starting 12443 [...] [etc, etc, ad infinitum] Currently, after about 2 hours of uptime, my ~/.xsession-errors is about 12MB big and full with those debug messages. The debug USE flag is globally disabled. What's going on? I doubt this is intended behavior. the debug flag has nothing to do with this. Why don't you open a nice bug at bugs.kde.org? I wanted to make sure first that this isn't some sort of configuration problem on my end. Can you confirm that this happens on your system too? Happens here too. My error file is 38M -- alan dot mckinnon at gmail dot com
[gentoo-user] Re: [OT] attach a perl script to daemon services
Alan McKinnon alan.mckin...@gmail.com writes: Then tap into the fifo with a perl script that is written to be able to sort and write the syslog output according to various regex that may be part of startup cmd or fed in later during the running script. I don't know rsyslog at all (I use syslog-ng), but certain concepts are stable and universal. Please reread my OP or maybe I should attempt to clarify what must be a poorly written question. I'm not asking help on anything about writing to a named pipe or anything about the functioning of rsyslog... I know that part. Not asking about the bulk of the perl scripting, such as sorting by regex, reading from fifo, etc (are all understood [at least well enough]). I want an overview/outline of how one goes about attaching a script to the operations such as start/stop of a daemon Even there... the additions necessary to the scripts in /etc/init.d... are understood. I guess I want to know if its even advisable to attach custom scripting to a daemon or if there is a well worn path for doing that. Assuming its not clear off the wall then: Where I'm weak is the part where the custom script checks if the daemon is running, before the script itself starts. That part would need to be something pretty fool proof... maybe just grep ps output for the daemon? And where the custom script sends syslog (and sysadmin) a message in the event the script itself is killed or dies for some unexpected reason. Something like an EXIT `trap' in shell scripting... (how its done is perl)
Re: [gentoo-user] Re: KDE4 applications are spamming stderr to death
problem on my end. Can you confirm that this happens on your system too? Happens here too. My error file is 38M -- alan dot mckinnon at gmail dot com I wanted to make sure first that this isn't some sort of configuration Me++ -- Kevin O'Gorman, PhD
[gentoo-user] Re: KDE4 applications are spamming stderr to death
On 02/26/2010 11:16 PM, Volker Armin Hemmann wrote: On Freitag 26 Februar 2010, Nikos Chantziaras wrote: On 02/26/2010 10:32 PM, Volker Armin Hemmann wrote: On Freitag 26 Februar 2010, Nikos Chantziaras wrote: Is it normal that every KDE (4.4.0) application is generating an awful lot of debug messages on stderr? When I start one from the terminal (be it Dolphin, Konqueror or whatever) the output generated is pretty much gigantic. [...] Currently, after about 2 hours of uptime, my ~/.xsession-errors is about 12MB big and full with those debug messages. [...] the debug flag has nothing to do with this. Why don't you open a nice bug at bugs.kde.org? I wanted to make sure first that this isn't some sort of configuration problem on my end. Can you confirm that this happens on your system too? oh yes. It does. If you open a bug, post the link please. ls -lhtr .xsession-errors -rw--- 1 energyman users 345M 26. Feb 22:15 .xsession-errors Someone else did file one about this a few days ago: http://bugs.kde.org/show_bug.cgi?id=227089
Re: [gentoo-user] source repository could not be determined
On 02/26/10 23:22, Alan McKinnon wrote: On Friday 26 February 2010 23:12:18 Joseph wrote: I'm trying to re-emerge package kbarcode but it keeps complaing: that the source repository could not be determined emerge -pv kbarcode These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-text/kbarcode-2.0.7 USE=-debug% -doc -xinerama% 0 kB [?=1] Total: 1 package (1 reinstall), Size of downloads: 0 kB Portage tree and overlays: [0] /usr/portage [1] /usr/local/portage/layman/kde-sunset [?] indicates that the source repository could not be determined How to fix it? The error means that the package is no longer in portage or any of the overlays you are using. It's probably dead. Is it a KDE-3.5 package? If so, it will be in the kde-sunset overlay. -- alan dot mckinnon at gmail dot com Fix it. I don't know what had happened but I run digest on the overlay ebuild and it emerged OK. -- Joseph
Re: [gentoo-user] Re: KDE4 applications are spamming stderr to death
chrome://messenger/locale/messengercompose/composeMsgs.properties: problem on my end. Can you confirm that this happens on your system too? Happens here too. My error file is 38M -- alan dot mckinnon at gmail dot com I wanted to make sure first that this isn't some sort of configuration Me++ -- Kevin O'Gorman, PhD Mine is not as big as yours. lol That sort of sounds funny to me. r...@smoker ~ # ls -al /home/dale/.xsession-errors -rw--- 1 dale users 876694 Feb 26 16:35 /home/dale/.xsession-errors r...@smoker ~ # It does have a lot of those errors tho. I just logged in a bit ago so maybe I should give it time to grow. Dale :-) :-)
Re: [gentoo-user] source repository could not be determined
Le 26/02/2010 23:33, Joseph a écrit : On 02/26/10 23:22, Alan McKinnon wrote: On Friday 26 February 2010 23:12:18 Joseph wrote: I'm trying to re-emerge package kbarcode but it keeps complaing: that the source repository could not be determined emerge -pv kbarcode These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-text/kbarcode-2.0.7 USE=-debug% -doc -xinerama% 0 kB [?=1] Total: 1 package (1 reinstall), Size of downloads: 0 kB Portage tree and overlays: [0] /usr/portage [1] /usr/local/portage/layman/kde-sunset [?] indicates that the source repository could not be determined How to fix it? The error means that the package is no longer in portage or any of the overlays you are using. It's probably dead. Is it a KDE-3.5 package? If so, it will be in the kde-sunset overlay. Fix it. I don't know what had happened but I run digest on the overlay ebuild and it emerged OK. From what i can see, i understand that kbarcode was removed from /usr/portage overlay (that's the source of ?, as it's no more in /usr/portage, then portage cannot determine the source of the ebuild), but add in kde-sunset overlay. It's not an error, just an information message. It doesn't need any fix. Just doing a emerge kbarcode should have done the trick. HTH. -- Xavier Parizet YaGB : http://gentooist.com GPG :C7DC B10E FC21 63BE B453 D239 F6E6 DF65 1569 91BF signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: [OT] attach a perl script to daemon services
On Friday 26 February 2010 23:44:03 Harry Putnam wrote: Where I'm weak is the part where the custom script checks if the daemon is running, before the script itself starts. That part would need to be something pretty fool proof... maybe just grep ps output for the daemon? Maybe I'm misunderstanding you, but I don't understand this approach. If the daemon is not running there's nothing in the fifo. Why got to all the complexity of writing an independent program that checks if something is running then does various actions? The script necessarily depends on the daemon running so instead of checking if it is, simply have the daemon start the script. No daemon running = no script launched = no complexity. The script will simply accept what is it is given, no complex checks needed. Seeing as the input is from a logger, chances are you are inserting logs to a db, or launching a log analyser, right? Modern loggers support launching child scripts as a matter of routine. If I'm still off-bat and this approach cannot work for solid technical reasons, then I'll go away and shut if if you say so :-) -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
On Fri, 26 Feb 2010 06:34:18 -0800 (PST), BRM wrote: Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. You should still run --depclean as dependencies change and you could still have plenty of no longer needed ones installed. -- Neil Bothwick A seminar on time travel will be held 2 weeks ago. signature.asc Description: PGP signature
Re: [gentoo-user] When copying an os to new disk
On Fri, 26 Feb 2010 17:00:22 +0100, Alex Schuster wrote: If $old_dir is the root partition, I would bin-mount it first to somewhere else, so other directories mounted to it (especially/dev, /proc and /sys) are not copied: mount -o bind / /mnt old_dir=/mnt Or use the --one-file-system option for tar. -- Neil Bothwick I locked my coathanger in my car; good thing I had a key. signature.asc Description: PGP signature
Re: [gentoo-user] Re: [OT] attach a perl script to daemon services
On Sat, 27 Feb 2010 01:00:43 +0200 Alan McKinnon alan.mckin...@gmail.com wrote: Where I'm weak is the part where the custom script checks if the daemon is running, before the script itself starts. That part would need to be something pretty fool proof... maybe just grep ps output for the daemon? I have a perl fastAGI script that launches in /etc/init.d/ I just cribbed some code from something there... in my perl script: log_file='Sys::Syslog', pid_file='/var/run/evolone_agi.pid'; Sys::Syslog is an interface to the UNIX syslog(3) program. from /etc/init.d/evolone_agi depend() { need net asterisk postgresql-8.4 } As for reading new information, there are a gazillion ways. Trap a signal to reread the configs? reload() { ebegin Reloading evolone_agi configuration start-stop-daemon --signal 1 --pidfile /var/run/evolone_agi.pid eend $? Error reloading evolone_agi } .. for example. Hope this helps. '-) -- |\ /|| | ~ ~ | \/ ||---| `|` ? ||ichael | |iggins\^ / michael.higgins[at]evolone[dot]org
[gentoo-user] FreeNX password vs. ssh-key
I'm installing Freenx and it will not install unless I enable in sshd_conf UsePAM yes (password authentication) What is the use use of ssh-key if I have to enable PAM? -- Joseph
[gentoo-user] Who believes in cylinders?
There's been some talk here recently about partitions versus cylinder boundaries, and when or even if they need to line up properly. I'm confused. For many years now I've ignored cylinders completely because I've read that modern disks are addressed by sector number only, and disks don't know or care about cylinders. The cylinder seems to be a fiction that sticks around like a drunk who refuses to leave when the party is over. The recent thread about the new disks with 1024-byte sectors has me even more confused. IIUC the new disks *do* care (at least) about where a partition begins relative to it's own 1024-byte hardware sectors, and that part makes perfect sense. But, to me, that still leaves the cylinder as a completely useless fiction that needs to join MSDOS in the scrap heap of history. Am I right to separate the 1024-byte sector problem from cylinders as being two entirely different and orthogonal ideas? Is there really any need for the cylinder these days? Happy Friday :)
Re: [gentoo-user] Who believes in cylinders?
On Samstag 27 Februar 2010, walt wrote: There's been some talk here recently about partitions versus cylinder boundaries, and when or even if they need to line up properly. I'm confused. For many years now I've ignored cylinders completely because I've read that modern disks are addressed by sector number only, and disks don't know or care about cylinders. The cylinder seems to be a fiction that sticks around like a drunk who refuses to leave when the party is over. The recent thread about the new disks with 1024-byte sectors has me even more confused. IIUC the new disks *do* care (at least) about where a partition begins relative to it's own 1024-byte hardware sectors, and that part makes perfect sense. But, to me, that still leaves the cylinder as a completely useless fiction that needs to join MSDOS in the scrap heap of history. Am I right to separate the 1024-byte sector problem from cylinders as being two entirely different and orthogonal ideas? Is there really any need for the cylinder these days? Happy Friday :) no. Until you have to beat fdisk into submission. Yes, cylinders are anachronistic crap. Sadly a lot of tools (and the kernel) are still infected.
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
chrome://messenger/locale/messengercompose/composeMsgs.properties: On Fri, 26 Feb 2010 06:34:18 -0800 (PST), BRM wrote: Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. You should still run --depclean as dependencies change and you could still have plenty of no longer needed ones installed. This is very true. I would say that 90% or so of the things --depclean removes are not related to packages I removed but what has been moved to another package or otherwise satisfied. Lately, there are several packages that have had parts move somewhere else. Then the old package is no longer needed and should be removed. After all, if it doesn't depend on something in the world file, it will never be updated again. It's just sitting there doing nothing but taking up space. Wasn't there a thread a year or so ago that listed the commands that should be run from time to time to keep portage healthy? I seem to recall one but it was a while back, maybe a year or more. Now to go do my sync and check to see what needs updating. Dale :-) :-)
Re: [gentoo-user] How should I clean up my broken system?
On Friday 26 February 2010 18:47:40 Alex Schuster wrote: What's a suitable substitute? Whatever you like. Just edit the MERGETOOL definition in /etc/cfg- update.conf: # +--+ # | MERGETOOL \ # ++--- + # |The recommended tool for merging is beediff but you can also use other| # |tools if you don't like beediff. The Supported tools are listedbelow:| # +--+-+--+--- ---+ # | beediff | GUI | QT | | # | kdiff3 | GUI | KDE (or Gnome with QT) | | # | meld | GUI | Gnome (or KDE with GTK) | | # | gtkdiff | GUI | Gnome (or KDE with GTK) | STAGE 3 not supported! | # | gvimdiff | GUI | Gnome (or KDE with GTK) | STAGE 3 not supported! | # | tkdiff | GUI | Gnome (or KDE with TK) | | # | vimdiff | CLI | Systems without X| STAGE 3 not supported! | # | sdiff| CLI | Systems without X| STAGE 3 not supported! | # | imediff2 | CLI | Systems without X| STAGE 3 not supported! | +--+-+--+--- -+ MERGE_TOOL = /usr/bin/kdiff3 OK. Thanks. I'll try kdiff3. -- Rgds Peter.
[gentoo-user] Re: FreeNX password vs. ssh-key
On 02/27/2010 01:52 AM, Joseph wrote: I'm installing Freenx and it will not install unless I enable in sshd_conf UsePAM yes (password authentication) What is the use use of ssh-key if I have to enable PAM? FreeNX does not support SSH keys. It only uses one for its control user. For an NX-based client/server that supports SSH keys, you might want to look at x2go instead. Furthermore, FreeNX seems to be quite inactive upstream (last update in 2008.) x2go is in the nx overlay.
Re: [gentoo-user] Re: FreeNX password vs. ssh-key
On 02/27/10 03:15, Nikos Chantziaras wrote: On 02/27/2010 01:52 AM, Joseph wrote: I'm installing Freenx and it will not install unless I enable in sshd_conf UsePAM yes (password authentication) What is the use use of ssh-key if I have to enable PAM? FreeNX does not support SSH keys. It only uses one for its control user. For an NX-based client/server that supports SSH keys, you might want to look at x2go instead. Furthermore, FreeNX seems to be quite inactive upstream (last update in 2008.) x2go is in the nx overlay. Do you know if x2go runs XFCE4? I installed Freenx but I'm not able to log-in :-( Do I login with user: NX or normal my user name to the server? Info: Proxy running in client mode with pid '27801'. Session: Starting session at 'Fri Feb 26 18:14:16 2010'. Info: Connecting to remote host '127.0.0.1:5000'. Info: Aborting the procedure due to signal '15'. Session: Session terminated at 'Fri Feb 26 18:14:51 2010'. If x2go supports XFCE4 I will go with it :- -- Joseph
Re: [gentoo-user] Who believes in cylinders?
On Fri, Feb 26, 2010 at 4:09 PM, walt w41...@gmail.com wrote: SNIP The recent thread about the new disks with 1024-byte sectors has me even more confused. hehe Very sorry. ;-) IIUC the new disks *do* care (at least) about where a partition begins relative to it's own 1024-byte hardware sectors, and that part makes perfect sense. And that is really the important point from that thread. But, to me, that still leaves the cylinder as a completely useless fiction that needs to join MSDOS in the scrap heap of history. I believe you're correct. Am I right to separate the 1024-byte sector problem from cylinders as being two entirely different and orthogonal ideas? Yes. Cylinders do exist on the disk but they are not something to be used anymore. Is there really any need for the cylinder these days? No, not as I understand it. There may be some bits of software that suggest they can use them, but I think with the advent of LBA directly addressing CHS is now retired with only sector addressing being important due to the way the data is physically placed on the drive. Who cares what cylinder it's on, and who cares which head is getting the data? It doesn't matter to us users... Cheers, Mark
[gentoo-user] Re: FreeNX password vs. ssh-key
On 02/27/2010 03:30 AM, Joseph wrote: On 02/27/10 03:15, Nikos Chantziaras wrote: On 02/27/2010 01:52 AM, Joseph wrote: I'm installing Freenx and it will not install unless I enable in sshd_conf UsePAM yes (password authentication) What is the use use of ssh-key if I have to enable PAM? FreeNX does not support SSH keys. It only uses one for its control user. For an NX-based client/server that supports SSH keys, you might want to look at x2go instead. Furthermore, FreeNX seems to be quite inactive upstream (last update in 2008.) x2go is in the nx overlay. Do you know if x2go runs XFCE4? I installed Freenx but I'm not able to log-in :-( Do I login with user: NX or normal my user name to the server? You login with the normal user. It's been a long time since I used FreeNX though and don't remember its server configuration details. If x2go supports XFCE4 I will go with it :- The drop-down list here on the client shows Gnome, KDE, LXDE, Windows terminal server (lol), and Custom. I suppose you need to select Custom and provide the command that starts the XFCE desktop.
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
- Original Message From: Neil Bothwick n...@digimed.co.uk To: gentoo-user@lists.gentoo.org On Fri, 26 Feb 2010 06:34:18 -0800 (PST), BRM wrote: Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. You should still run --depclean as dependencies change and you could still have plenty of no longer needed ones installed. Okay - so I ran emerge --depclean -a and got the below. I tried running emerge world -vuDNa as specified, but that didn't resolve it either. I tried looking in the world file (/var/lib/portage/world) but didn't find any entries that felt safe to remove. So, how do I resolve? TIA, Ben Calculating dependencies... done! * Dependencies could not be completely resolved due to * the following required packages not being installed: * * ~x11-libs/qt-test-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-sql-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-webkit-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-assistant-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-gui-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-xmlpatterns-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~dev-libs/poppler-0.10.7 pulled in by: * virtual/poppler-0.10.7 * * ~x11-libs/qt-opengl-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-qt3support-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-dbus-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-svg-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-script-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * Have you forgotten to run `emerge --update --newuse --deep world` prior * to depclean? It may be necessary to manually uninstall packages that no longer * exist in the portage tree since it may not be possible to satisfy their * dependencies. Also, be aware of the --with-bdeps option that is documented * in `man emerge`.
Re: [gentoo-user] Who believes in cylinders?
- Original Message From: Mark Knecht markkne...@gmail.com To: gentoo-user@lists.gentoo.org On Fri, Feb 26, 2010 at 4:09 PM, walt wrote: Is there really any need for the cylinder these days? No, not as I understand it. There may be some bits of software that suggest they can use them, but I think with the advent of LBA directly addressing CHS is now retired with only sector addressing being important due to the way the data is physically placed on the drive. Who cares what cylinder it's on, and who cares which head is getting the data? It doesn't matter to us users... True user's don't care. However, Boot Loader writers (e.g. grub) need to care about it since LBA is not quite available right away - you have to focus on other things until you can load the rest of the boot loader. So it's not 100% dead, but yes - most things no longer need to care about it. Ben
Re: [gentoo-user] Re: FreeNX password vs. ssh-key
On 02/27/10 04:13, Nikos Chantziaras wrote: On 02/27/2010 03:30 AM, Joseph wrote: On 02/27/10 03:15, Nikos Chantziaras wrote: On 02/27/2010 01:52 AM, Joseph wrote: I'm installing Freenx and it will not install unless I enable in sshd_conf UsePAM yes (password authentication) What is the use use of ssh-key if I have to enable PAM? FreeNX does not support SSH keys. It only uses one for its control user. For an NX-based client/server that supports SSH keys, you might want to look at x2go instead. Furthermore, FreeNX seems to be quite inactive upstream (last update in 2008.) x2go is in the nx overlay. Do you know if x2go runs XFCE4? I installed Freenx but I'm not able to log-in :-( Do I login with user: NX or normal my user name to the server? You login with the normal user. It's been a long time since I used FreeNX though and don't remember its server configuration details. I was able to make it to work, under setting = advanced the encryption has to be enabled or it will not connect. I'm just wandering if it is possible to connect to existing user session not generating a new session. -- Joseph
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
chrome://messenger/locale/messengercompose/composeMsgs.properties: - Original Message From: Neil Bothwickn...@digimed.co.uk To: gentoo-user@lists.gentoo.org On Fri, 26 Feb 2010 06:34:18 -0800 (PST), BRM wrote: Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. You should still run --depclean as dependencies change and you could still have plenty of no longer needed ones installed. Okay - so I ran emerge --depclean -a and got the below. I tried running emerge world -vuDNa as specified, but that didn't resolve it either. I tried looking in the world file (/var/lib/portage/world) but didn't find any entries that felt safe to remove. So, how do I resolve? TIA, Ben Calculating dependencies... done! * Dependencies could not be completely resolved due to * the following required packages not being installed: * * ~x11-libs/qt-test-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-sql-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-webkit-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-assistant-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-gui-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-xmlpatterns-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~dev-libs/poppler-0.10.7 pulled in by: * virtual/poppler-0.10.7 * * ~x11-libs/qt-opengl-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-qt3support-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-dbus-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-svg-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-script-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * Have you forgotten to run `emerge --update --newuse --deep world` prior * to depclean? It may be necessary to manually uninstall packages that no longer * exist in the portage tree since it may not be possible to satisfy their * dependencies. Also, be aware of the --with-bdeps option that is documented * in `man emerge`. I ran into this a long time ago and I added this to my make.conf so that I don't forget. Try running this: emerge -uvDNa --with-bdeps y world Then see what that does. That added bit makes it look deeper into dependencies. Like you, I thought that was what the -D did but apparently that only goes to a certain depth then stops. If you want to add that to make.conf like I did, this is what goes there: EMERGE_DEFAULT_OPTS=--with-bdeps y It's your choice whether to add that or not. It will make emerge process what needs to be updated a while longer tho. Dale :-) :-)
[gentoo-user] Showing installed packages that aren't in portage tree(s)
I used to think that eix did that. After eixing back and forth for some non-existent app-office/{kugar,koshell,kexi} (wouldn't show up on my eixes) that was holding back my --depcleans of kdelibs:3.5 and koffice-{libs,data}:3.5, then doubling back on the manual page, I discovered it didn't :D Is there an option or filter I could pass to qlist to find out which packages are installed but not in the portage tree(s)? The qlist -ICv suggestion from the eix man page only shows all installed packages. My goal is to either remove them or put them in the local overlay. -- This email is:[ ] actionable [ ] fyi[ ] social Response needed: [ ] yes [x] up to you [ ] no Time-sensitive: [ ] immediate[ ] soon [x] none
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
chrome://messenger/locale/messengercompose/composeMsgs.properties: On 02/27/2010 04:15 AM, BRM wrote: - Original Message From: Neil Bothwickn...@digimed.co.uk To: gentoo-user@lists.gentoo.org On Fri, 26 Feb 2010 06:34:18 -0800 (PST), BRM wrote: Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. You should still run --depclean as dependencies change and you could still have plenty of no longer needed ones installed. Okay - so I ran emerge --depclean -a and got the below. I tried running emerge world -vuDNa as specified, but that didn't resolve it either. I tried looking in the world file (/var/lib/portage/world) but didn't find any entries that felt safe to remove. Safe as to what? If something is in the world file that you didn't explicitly request, then it doesn't belong there. For example, if you have x11-libs/qt-gui in world, you should delete it. The world file should not contain dependencies, it should only contain the stuff you emerged directly. To give an example, if you emerge media-video/smplayer, then that one will end up in the world file. But smplayer will also pull-in qt and mplayer. Those do not go in the world file. When you unmerge smplayer again, qt and mplayer will not be unmerged unless you run emerge --depclean. However, if qt and mplayer end up being in the world file anyway, it means you made a mistake at some point; like emerging something that is a dependency but forgot to specify the -1 (or --oneshot) option to emerge. So if you see something in the world file that you know don't need directly (and I doubt you need qt directly; KDE for example needs it, you, as a person, don't) it's safe to remove. Of course always make a backup first :P If I edit the world file and I am not sure, I always run -p --depclean. That should tell you if you are about to make a boo boo. The package you removed will be cleaned out but so will other things. If it starts to remove something that you know you want to keep, then you need to figure out why that entry was there and what can be put in the world file to keep the things you do want. The example Nikos used is a good one. If you decide you don't want smplayer but want to use mplayer, then you would need to add mplayer to the world file so that it will stay but --depclean will remove smplayer when you run --depclean. Nikos is correct on the -1 option tho. That is the same as --oneshot by the way. That is the biggest reason that something ends up in the world file that shouldn't be there. I would just about bet that we have all forgot the -1 option more than once. It doesn't matter how long a person has used Gentoo, it just happens. Dale :-) :-)
Re: [gentoo-user] Showing installed packages that aren't in portage tree(s)
chrome://messenger/locale/messengercompose/composeMsgs.properties: I used to think that eix did that. After eixing back and forth for some non-existent app-office/{kugar,koshell,kexi} (wouldn't show up on my eixes) that was holding back my --depcleans of kdelibs:3.5 and koffice-{libs,data}:3.5, then doubling back on the manual page, I discovered it didn't :D Is there an option or filter I could pass to qlist to find out which packages are installed but not in the portage tree(s)? The qlist -ICv suggestion from the eix man page only shows all installed packages. My goal is to either remove them or put them in the local overlay. I think eix-test-obsolete -d will do that. I don't have any installed that are not in portage at the moment so I can't test it to be sure. Be warned, this thing can output a LOT of stuff. If you are in a console, you may want to pipe to a text file or to less or something. Dale :-) :-)
Re: [gentoo-user] Portage GUI interfaces...
On Thu, Feb 25, 2010 at 10:40 AM, BRM bm_witn...@yahoo.com wrote: I am interested in finding a GUI interface for working with portage, preferably for KDE4. Namely b/c I am getting a little tired of having konsole windows open and not being able to keep track of where I am in the emerge update process - something a GUI _ought_ to be able to resolve. This is one place where those quake-like terminals comes in handy. I use tilda, for KDE there's yakuake. Basically they allow you to press a single key and a terminal pops down from the top of the screen. I usually have one of those running all the time: I have a tab or two devote to emerges, another tab handling an SSH -X session to some other computer, and maybe a tab or two devoted to some command line tasks. Press a single key and it all goes out of sight. You'll probably want to run the compile in one screen session, then tail -f the emerge log in one of the tabs. -- This email is:[ ] actionable [x] fyi[x] social Response needed: [ ] yes [x] up to you [ ] no Time-sensitive: [ ] immediate[ ] soon [x] none
[gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
On 02/27/2010 04:15 AM, BRM wrote: - Original Message From: Neil Bothwickn...@digimed.co.uk To: gentoo-user@lists.gentoo.org On Fri, 26 Feb 2010 06:34:18 -0800 (PST), BRM wrote: Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. You should still run --depclean as dependencies change and you could still have plenty of no longer needed ones installed. Okay - so I ran emerge --depclean -a and got the below. I tried running emerge world -vuDNa as specified, but that didn't resolve it either. I tried looking in the world file (/var/lib/portage/world) but didn't find any entries that felt safe to remove. Safe as to what? If something is in the world file that you didn't explicitly request, then it doesn't belong there. For example, if you have x11-libs/qt-gui in world, you should delete it. The world file should not contain dependencies, it should only contain the stuff you emerged directly. To give an example, if you emerge media-video/smplayer, then that one will end up in the world file. But smplayer will also pull-in qt and mplayer. Those do not go in the world file. When you unmerge smplayer again, qt and mplayer will not be unmerged unless you run emerge --depclean. However, if qt and mplayer end up being in the world file anyway, it means you made a mistake at some point; like emerging something that is a dependency but forgot to specify the -1 (or --oneshot) option to emerge. So if you see something in the world file that you know don't need directly (and I doubt you need qt directly; KDE for example needs it, you, as a person, don't) it's safe to remove. Of course always make a backup first :P
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
- Original Message From: Dale rdalek1...@gmail.com - Original Message From: Neil Bothwick To: gentoo-user@lists.gentoo.org On Fri, 26 Feb 2010 06:34:18 -0800 (PST), BRM wrote: Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. You should still run --depclean as dependencies change and you could still have plenty of no longer needed ones installed. Okay - so I ran emerge --depclean -a and got the below. I tried running emerge world -vuDNa as specified, but that didn't resolve it either. I tried looking in the world file (/var/lib/portage/world) but didn't find any entries that felt safe to remove. So, how do I resolve? Calculating dependencies... done! * Dependencies could not be completely resolved due to * the following required packages not being installed: * * ~x11-libs/qt-test-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-sql-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-webkit-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-assistant-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-gui-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-xmlpatterns-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~dev-libs/poppler-0.10.7 pulled in by: * virtual/poppler-0.10.7 * * ~x11-libs/qt-opengl-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-qt3support-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-dbus-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-svg-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-script-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * Have you forgotten to run `emerge --update --newuse --deep world` prior * to depclean? It may be necessary to manually uninstall packages that no longer * exist in the portage tree since it may not be possible to satisfy their * dependencies. Also, be aware of the --with-bdeps option that is documented * in `man emerge`. I ran into this a long time ago and I added this to my make.conf so that I don't forget. Try running this: emerge -uvDNa --with-bdeps y world Then see what that does. That added bit makes it look deeper into dependencies. Okay, tried that. I did install 7 more packages (1 new, 6 rebuilds/updates). But it didn't resolve the problem. I'm trying to determine if qt-4.4.2 is even installed. Looking at /usr/lib there doesn't appear to be any qt-4.4.2 libs, only qt-4.5.3. qlist -Ia | grep x11-libs | grep qt only returns the following: /usr/qt/3/etc/settings/.keep_x11-libs_qt-3 /etc/qt4/.keep_x11-libs_qt-core-4 Also, find | grep libQt | grep 4\.4 didn't return anything, while find | grep libQt | grep 4\.5 returned what I saw in /usr/lib/qt4. So, then is x11-libs/qt-4.4.2 even installed? If not, how do I get rid of this? TIA, Ben Like you, I thought that was what the -D did but apparently that only goes to a certain depth then stops. If you want to add that to make.conf like I did, this is what goes there: EMERGE_DEFAULT_OPTS=--with-bdeps y It's your choice whether to add that or not. It will make emerge process what needs to be updated a while longer tho. Dale :-) :-)
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
chrome://messenger/locale/messengercompose/composeMsgs.properties: - Original Message From: Dalerdalek1...@gmail.com - Original Message From: Neil Bothwick To: gentoo-user@lists.gentoo.org On Fri, 26 Feb 2010 06:34:18 -0800 (PST), BRM wrote: Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. You should still run --depclean as dependencies change and you could still have plenty of no longer needed ones installed. Okay - so I ran emerge --depclean -a and got the below. I tried running emerge world -vuDNa as specified, but that didn't resolve it either. I tried looking in the world file (/var/lib/portage/world) but didn't find any entries that felt safe to remove. So, how do I resolve? Calculating dependencies... done! * Dependencies could not be completely resolved due to * the following required packages not being installed: * * ~x11-libs/qt-test-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-sql-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-webkit-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-assistant-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-gui-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-xmlpatterns-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~dev-libs/poppler-0.10.7 pulled in by: * virtual/poppler-0.10.7 * * ~x11-libs/qt-opengl-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-qt3support-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-dbus-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-svg-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * ~x11-libs/qt-script-4.4.2 pulled in by: * x11-libs/qt-4.4.2 * * Have you forgotten to run `emerge --update --newuse --deep world` prior * to depclean? It may be necessary to manually uninstall packages that no longer * exist in the portage tree since it may not be possible to satisfy their * dependencies. Also, be aware of the --with-bdeps option that is documented * in `man emerge`. I ran into this a long time ago and I added this to my make.conf so that I don't forget. Try running this: emerge -uvDNa --with-bdeps y world Then see what that does. That added bit makes it look deeper into dependencies. Okay, tried that. I did install 7 more packages (1 new, 6 rebuilds/updates). But it didn't resolve the problem. I'm trying to determine if qt-4.4.2 is even installed. Looking at /usr/lib there doesn't appear to be any qt-4.4.2 libs, only qt-4.5.3. qlist -Ia | grep x11-libs | grep qt only returns the following: /usr/qt/3/etc/settings/.keep_x11-libs_qt-3 /etc/qt4/.keep_x11-libs_qt-core-4 Also, find | grep libQt | grep 4\.4 didn't return anything, while find | grep libQt | grep 4\.5 returned what I saw in /usr/lib/qt4. So, then is x11-libs/qt-4.4.2 even installed? If not, how do I get rid of this? TIA, Ben I don't know about the command you use but you may want to try this: equery list x11-libs/qt See if that lists the package you are looking for. Dale :-) :-)
Re: [gentoo-user] Showing installed packages that aren't in portage tree(s)
Just what I needed. Thanks! On Sat, Feb 27, 2010 at 11:51 AM, Dale rdalek1...@gmail.com wrote: chrome://messenger/locale/messengercompose/composeMsgs.properties: I used to think that eix did that. After eixing back and forth for some non-existent app-office/{kugar,koshell,kexi} (wouldn't show up on my eixes) that was holding back my --depcleans of kdelibs:3.5 and koffice-{libs,data}:3.5, then doubling back on the manual page, I discovered it didn't :D Is there an option or filter I could pass to qlist to find out which packages are installed but not in the portage tree(s)? The qlist -ICv suggestion from the eix man page only shows all installed packages. My goal is to either remove them or put them in the local overlay. I think eix-test-obsolete -d will do that. I don't have any installed that are not in portage at the moment so I can't test it to be sure. Be warned, this thing can output a LOT of stuff. If you are in a console, you may want to pipe to a text file or to less or something. Dale :-) :-) -- This email is:[ ] actionable [ ] fyi[ ] social Response needed: [ ] yes [ ] up to you [ ] no Time-sensitive: [ ] immediate[ ] soon [ ] none
Re: [gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
- Original Message From: Dale rdalek1...@gmail.com On 02/27/2010 04:15 AM, BRM wrote: From: Neil BothwickTo: (PST), BRM wrote: Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. You should still run --depclean as dependencies change and you could still have plenty of no longer needed ones installed. Okay - so I ran emerge --depclean -a and got the below. I tried running emerge world -vuDNa as specified, but that didn't resolve it either. I tried looking in the world file (/var/lib/portage/world) but didn't find any entries that felt safe to remove. Safe as to what? If something is in the world file that you didn't explicitly request, then it doesn't belong there. For example, if you have x11-libs/qt-gui in world, you should delete it. The world file should not contain dependencies, it should only contain the stuff you emerged directly. Okay...that kind of makes more sense now. From what I've read in the past, modifying 'world' would be a big no-no, and very risky - so I never touched it - also why I never really ran 'emerge --depclean', which is reporting some 400 packages to remove now that I've got that cleaned up. To give an example, if you emerge media-video/smplayer, then that one will end up in the world file. But smplayer will also pull-in qt and mplayer. Those do not go in the world file. When you unmerge smplayer again, qt and mplayer will not be unmerged unless you run emerge --depclean. However, if qt and mplayer end up being in the world file anyway, it means you made a mistake at some point; like emerging something that is a dependency but forgot to specify the -1 (or --oneshot) option to emerge. So if you see something in the world file that you know don't need directly (and I doubt you need qt directly; KDE for example needs it, you, as a person, don't) it's safe to remove. Of course always make a backup first :P If I edit the world file and I am not sure, I always run -p --depclean. That should tell you if you are about to make a boo boo. The package you removed will be cleaned out but so will other things. If it starts to remove something that you know you want to keep, then you need to figure out why that entry was there and what can be put in the world file to keep the things you do want. The example Nikos used is a good one. If you decide you don't want smplayer but want to use mplayer, then you would need to add mplayer to the world file so that it will stay but --depclean will remove smplayer when you run --depclean. Nikos is correct on the -1 option tho. That is the same as --oneshot by the way. That is the biggest reason that something ends up in the world file that shouldn't be there. I would just about bet that we have all forgot the -1 option more than once. It doesn't matter how long a person has used Gentoo, it just happens. True. I never really understood the --oneshot thing before, but now that makes sense. I did it when directions said to, but not really otherwise. Well, now I know... TIA, Ben
Re: [gentoo-user] Showing installed packages that aren't in portage tree(s)
chrome://messenger/locale/messengercompose/composeMsgs.properties: Just what I needed. Thanks! Let me also add that the output has changed. I tried to clean up some package.* files a while back and it turned into a mess. Before you change a file, make a backup just in case. It seems to list some things that maybe it shouldn't. Maybe I am missing something somewhere but it isn't the way it used to be. I need to run it and just sit and study the list and test some things. There may be some rhyme or reason for what it is doing that I just don't see yet Dale :-) :-)
[gentoo-user] Re: Removing KDE 3.5? Or reason to keep it around?
On 02/27/2010 07:21 AM, BRM wrote: - Original Message From: Dalerdalek1...@gmail.com On 02/27/2010 04:15 AM, BRM wrote: From: Neil BothwickTo: (PST), BRM wrote: Aside from that, I'm not sure I have ever really run emerge --depclean, but I also rarely uninstall anything, but don't install things left or right to try out either, so typically upgrades are all I need to do. You should still run --depclean as dependencies change and you could still have plenty of no longer needed ones installed. Okay - so I ran emerge --depclean -a and got the below. I tried running emerge world -vuDNa as specified, but that didn't resolve it either. I tried looking in the world file (/var/lib/portage/world) but didn't find any entries that felt safe to remove. Safe as to what? If something is in the world file that you didn't explicitly request, then it doesn't belong there. For example, if you have x11-libs/qt-gui in world, you should delete it. The world file should not contain dependencies, it should only contain the stuff you emerged directly. Okay...that kind of makes more sense now. From what I've read in the past, modifying 'world' would be a big no-no, and very risky - so I never touched it - also why I never really ran 'emerge --depclean', which is reporting some 400 packages to remove now that I've got that cleaned up. emerge -C does the same. It's just that I find it easier to edit the world file directly (it's just a text file, after all, no magic in there) if I want to clean up stuff. If you don't want to delete something from world by hand, simply copypasting the line you want removed to emerge -C pasted line will have the same result. Of course there might be special cases I simply don't know about; so simply emerge -C instead of removing lines from world if you want to play it safe.