Re: [gentoo-user] Open Source DSP tools for learning?
On 6 May, Mark Knecht wrote: Hi, Does anyone possibly know of any tools in Open Source for exploring DSP filter design? Something that might allow me to write equations, stimulate the filter, see the results in a GUI? Have a look at Scilab and Xcos (www.scilab.org) Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany
[gentoo-user] logrotate - strange error message
Hi, I have the following file as /etc/logrotate.d/denyhosts /var/log/denyhosts { missingok notifempty create 0640 root root sharedscripts prerotate /etc/init.d/denyhosts stop endscript postrotate /etc/init.d/denyhosts start endscript } But this causes errors reading config info for /var/log/denyhosts error: denyhosts:1 lines must begin with a keyword or a filename (possibly in double quotes) error: denyhosts:2 unexpected text error: denyhosts:3 unexpected text error: denyhosts:4 unexpected text error: denyhosts:5 unexpected text error: denyhosts:prerotate or postrotate without endscript I appreciate any help on this. Many thanks, Helmut.
Re: [gentoo-user] Re: libpng12 is missing
On Sun, 09 May 2010 18:11:06 -0700, walt wrote: This worked very well for a few months, and then those suggestions suddenly stopped coming. Since then, emerge @preserved-rebuild (or @preserved-libs) says this: #emerge @preserved-rebuild !!! '@preserved-rebuild' is not a valid package atom. !!! Please check ebuild(5) for full details. portage 2.2 was masked to force testing of the older version. Unless you unmasked it, you will have downgraded to a version that does not support sets, which would give this message. -- Neil Bothwick Set phasers to extreme itching! signature.asc Description: PGP signature
Re: [gentoo-user] logrotate - strange error message
On Monday 10 May 2010 09:46:11 Helmut Jarausch wrote: Hi, I have the following file as /etc/logrotate.d/denyhosts /var/log/denyhosts { missingok notifempty create 0640 root root sharedscripts prerotate /etc/init.d/denyhosts stop endscript postrotate /etc/init.d/denyhosts start endscript } But this causes errors reading config info for /var/log/denyhosts error: denyhosts:1 lines must begin with a keyword or a filename (possibly in double quotes) error: denyhosts:2 unexpected text error: denyhosts:3 unexpected text error: denyhosts:4 unexpected text error: denyhosts:5 unexpected text error: denyhosts:prerotate or postrotate without endscript That file is correct, so I'd first check the file that is read *before* that one, looking for things like missing end braces etc etc logrotate -d /etc/logrotate.conf will show the read order -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] logrotate - strange error message
On 10 May, Alan McKinnon wrote: On Monday 10 May 2010 09:46:11 Helmut Jarausch wrote: Hi, I have the following file as /etc/logrotate.d/denyhosts /var/log/denyhosts { missingok notifempty create 0640 root root sharedscripts prerotate /etc/init.d/denyhosts stop endscript postrotate /etc/init.d/denyhosts start endscript } But this causes errors reading config info for /var/log/denyhosts error: denyhosts:1 lines must begin with a keyword or a filename (possibly in double quotes) error: denyhosts:2 unexpected text error: denyhosts:3 unexpected text error: denyhosts:4 unexpected text error: denyhosts:5 unexpected text error: denyhosts:prerotate or postrotate without endscript That file is correct, so I'd first check the file that is read *before* that one, looking for things like missing end braces etc etc logrotate -d /etc/logrotate.conf will show the read order Thanks, Alan, the file before is indeed a bit different # $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate,v 1.2 2004/07/18 02:25:02 dragonheart Exp $ # # cups logrotate snippet for Gentoo Linux # /var/log/cups/error_log /var/log/cups/access_log /var/log/cups/page_log { sharedscripts postrotate /etc/init.d/syslog-ng reload /dev/null 21 || true endscript } It has multiple file names in the first line. Is this OK? Helmut.
Re: [gentoo-user] logrotate - strange error message
On Monday 10 May 2010 11:40:29 Helmut Jarausch wrote: On 10 May, Alan McKinnon wrote: On Monday 10 May 2010 09:46:11 Helmut Jarausch wrote: Hi, I have the following file as /etc/logrotate.d/denyhosts /var/log/denyhosts { missingok notifempty create 0640 root root sharedscripts prerotate /etc/init.d/denyhosts stop endscript postrotate /etc/init.d/denyhosts start endscript } But this causes errors reading config info for /var/log/denyhosts error: denyhosts:1 lines must begin with a keyword or a filename (possibly in double quotes) error: denyhosts:2 unexpected text error: denyhosts:3 unexpected text error: denyhosts:4 unexpected text error: denyhosts:5 unexpected text error: denyhosts:prerotate or postrotate without endscript That file is correct, so I'd first check the file that is read *before* that one, looking for things like missing end braces etc etc logrotate -d /etc/logrotate.conf will show the read order Thanks, Alan, the file before is indeed a bit different # $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate,v 1.2 2004/07/18 02:25:02 dragonheart Exp $ # # cups logrotate snippet for Gentoo Linux # /var/log/cups/error_log /var/log/cups/access_log /var/log/cups/page_log { sharedscripts postrotate /etc/init.d/syslog-ng reload /dev/null 21 || true endscript } It has multiple file names in the first line. Is this OK? Yes, that's fine - logrotate supports that. Please hash out all the lines in the denyhosts rotate file and run logrotate -d /etc/logrotate.conf Then let's see what error comes up. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] logrotate - strange error message
2010/5/10 Alan McKinnon alan.mckin...@gmail.com: Please hash out all the lines in the denyhosts rotate file and run logrotate -d /etc/logrotate.conf Then let's see what error comes up. -- alan dot mckinnon at gmail dot com I hit the same problem few days ago but I didn't look for a solution until today. When I tried to run logrotate -d /etc/logrotate.d/denyhosts, it still fails with the same error. Finally I took a close look at the file /etc/logrotate.d/denyhosts and I discovered that it contains CRLF as line separators. Converting them to LF has solved the problem. I just file a bug about it. See http://bugs.gentoo.org/show_bug.cgi?id=319133 Hope this helps. Tomáš
Re: [gentoo-user] x86 boot failure [solved]
Walter Dnes waltd...@waltdnes.org writes: On Thu, May 06, 2010 at 11:49:01AM -0230, Roger Mason wrote Egg on face. The processor is listed in the bios as Intel EM64T. Does that mean I should re-build this as an amd64 system? No, it's not necessary. 64-bit Intel and AMD cpus will run 32-bit mode without problems. It's your decision which one to use. General rule of thumb... - If you have 4 gigs or more of RAM, the 64-bit OS will take better advantage of it than a 32-bit OS. - If you have 3 gigs or less of RAM, stick with 32-bit. I'm running 32-bit mode on an Intel(R) Core(TM)2 Duo CPU E4600 and it works fine. I did some reading and found that Grub does not work on this hardware. I installed and configured lilo and the system booted. Cheers, Roger
Re: [gentoo-user] Re: can't create file but disk isn't full
On Sun, May 09, 2010 at 07:39:01PM -0300, Crístian Viana wrote: what exactly is this reserved block count? is it about the number of inodes? does that mean that, by default, regular users can only use 95% of the inodes? and why did I use all these inodes? I don't think I have that many small files on this partition... When the filesystem fills up, services can start failing left and right because they cannot write logs, cannot write temp files, etc. At this point human intervention is necessary: root has to log in and clear out the disk. But if the $ROOT filesystem is completely full, one may not even be able to log in and/or that one cannot do any sort of maintenance that is needed. So you have some sort of circularity. (In which case you have to reboot, perhaps using another medium...) The way out is to reserve some breathing room for root so that when everybody else is having problems he can still get in and fix the problem. The 5% is historical from days when disks are much smaller. If you have a sensible partition scheme you only really need to reserve the blocks on the $ROOT filesystem. If the partition in question (IIRC) is only for /home, then you can just turn off the reserved blocks all together. Cheers, W -- Willie W. Wong ww...@math.princeton.edu Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton
Re: [gentoo-user] Boot gentoo with GTP Disk label
On Sat, May 8, 2010 at 9:16 AM, claude angéloz claude.ange...@bluewin.ch wrote: Hello, I installed a gentoo on a very recent system (efi support) . AT the reception of the laptop it was a disk label msdos, with a boot partition w** installer ... I changed that against a GPt disk label. I can install without problem the gentoo , but now it doenst boot. I read some docs about gpt,mbr,boot principles and tried some tools - install the grub2 masked package and grub-install. - a special partion bios_grub as 1st bootable partition. but actually no succesful... but in the parted i did not see this bios_grub as flag... I found some tips from the web , but i guess that was only valid for a macintel system, not a normal pc with a disk labeled gpt and an efi support. I know that it is not required an efi partiton to boot the os with pc/bios and gpt disk. Or is it false ? If anybody has an other idea. Or I must abandon the gpt disk label ? Is there an equivalent refitr in OS x86 ? I'm using GPT partitions and with the grub-0.97-r9 in Gentoo it has patches to boot from GPT disks. I just did normal grub install as usual and everything seems to work. I'm not using the partition label, though, but only root (hd0,0)
Re: [gentoo-user] Re: Kernel upgrade and now LUKS failure.
On 05/07/2010 11:14 PM, Stefan G. Weichinger wrote: Am 07.05.2010 16:24, schrieb Stefan G. Weichinger: Am 07.05.2010 10:53, schrieb Stefan G. Weichinger: I think I am gonna file a bug for this now. http://bugs.gentoo.org/show_bug.cgi?id=318865 Aside from the potential bug: As I store the verysekrit.key on the same hdd as the encrypted device and use the rather simple shadowed password to decrypt that key ... isn't that just plain stupid? The overall security is just as good as my password. Cracking it with john opens the key to decrypting the LUKS-volume ... Yes, if I would store the key on another volume (stick or something) as mentioned in that howto it would make sense but in my case ... *scratches head* ;-) Stefan I prefer to encrypt my entire harddisk. Well - a hugh partition (excl. only Windows and Solaris :) which I encrypt, then the decrypted partition is used as a PV for LVM and all OS and partitions an in LVs. This way I have to type in the password to decrypt the PV once, and all LVs are decrypted. Then I have to use a second PW to login of course. As all Linux destros support encrypted roots and LVM nowadays I have Gentoo, Fedora and Ubuntu all in the same VG. The speed disadvantage is small, as my CPU+RAM is so much faster than the HDD. But in terms of security it's better to have everything encrypted, because it makes it more difficult to manipulate your system to get the key (the kernel is still unencrypted), and no possibly private information can be obtained from /tmp and /var. I compile all needed modules into the kernel, so I don't need to recreate my initrd for every new kernel. Bye, Daniel -- PGP key @ http://pgpkeys.pca.dfn.de/pks/lookup?search=0xBB9D4887op=get # gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887 signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: libpng12 is missing
On Sonntag 09 Mai 2010, Rudmer van Dijk wrote: On Sunday 09 May 2010, Volker Armin Hemmann wrote: On Sonntag 09 Mai 2010, Rudmer van Dijk wrote: On Sunday 09 May 2010, walt wrote: This looks to me like a major portage screwup. I see that on my ~amd64 machine I have both versions of libpng, but the 1.2.43-r1 doesn't install a pkg-config file because 1.4.2 installs one with the same name, and just as bad, version 1.2.43-r1 removed the libpng12 header files. For now, I'd suggest just going back to to 1.2.43 if you can -- maybe mask 1.2.43 in package.mask? Meanwhile I'm trying to fix firefox so I can read the bug report mentioned by Andras. well I'm getting into a .la hell... you need to rebuild packages which are themselves not invalid and therefore can't be found by revdep-rebuild... searching with grep png12 `find /usr/lib64/ -name '*.la'` lists all .la files with a bad png version, rebuilding those will fix the system. after that all packages found by revdep-rebuild can be emerged. Rudmer run la fixer ah, yes I knew there was something easier 8-) well running `lafilefixer --justfixit` did not find anything so I got them all thanks! Rudmer sadly, it does not get them all. The only save way: grep -R for png12 and remerge all packages whose files pop up. For example revdep-rebuilt failed to rebuild pygtk - because of glade. But it never tried to rebuild glade...
[gentoo-user] Is this a bug of runscript? (status will not turn to started)
hi, all, i had write a #!/sbin/runscript script, but status will not turn to started, is there some error in this script or this is a bug? THX all of you. source code first (i want to start a bash script with runscript): +--- |#!/sbin/runscript |#file name: test |.in start() { |start-stop-daemon -S -p ${PIDFILE} -m -b -a ${EXECFILE} -- --Pidfile ${PIDFILE} |. +--- sudo ./test start * Starting Test ... [ ok ] sudo ./test start * Starting Test ... process already running. sudo ./test stop * WARNING: test has not yet been started. sudo ./test status * status: stopped but the bash script is running, and the $PIDFILE had filled with correct pid number, so ,i can;t stop it with runscript. in another way to write this script, but use bash this time, it totaly OK. [FULL source code of these scripts] +--- | | #file name: test | #!/sbin/runscript | PIDFILE=/tmp/runsc/pid/test.pid | EXECFILE=/tmp/runsc/testbash1 | | depend() { | need net | } | | start() { | ebegin Starting Test | start-stop-daemon -S -p ${PIDFILE} -m -b -a ${EXECFILE} -- --Pidfile ${PIDFILE} | eend $? | #return 0 | } | | stop() { | echo stop daemon | ebegin Stopping Test | start-stop-daemon -K -p ${PIDFILE} -a ${EXECFILE} | #cat ${PIDFILE} | xargs -i kill '{}' | eend $? | | } | | status() { | if [ -a ${PIDFILE} ]; then | echo exit file | return 0; | else | echo not exit file | return 1; | fi | } | +--- | | #file name: test.sh | #!/bin/bash | PIDFILE=/tmp/runsc/pid/test.pid | EXECFILE=/tmp/runsc/testbash1 | | start() { | echo Starting Test | echo start-stop-daemon -S -p ${PIDFILE} -m -b -a ${EXECFILE} -- --Pidfile ${PIDFILE} | #return 0 | } | | stop() { | echo stop daemon | echo Stopping Test | #start-stop-daemon -K -o -p ${PIDFILE} | cat ${PIDFILE} | xargs -i kill '{}' | } | | status() { | if [ -a ${PIDFILE} ]; then | echo exit file | return 0; | else | echo not exit file | return 1; | fi | } | | case $1 in | start) | start | ;; | stop) | stop | ;; | status) | status | ;; | *) | echo Usage: $0 {start|stop|restart|force-reload|make} 2 | exit 1 | ;; | esac | +--- | | #file name: testbash1 | #!/bin/bash | while true; do | #echo '$pid_file='$pid_file | echo a /tmp/runsc/pid/output.log; sleep 1 | echo aa /tmp/runsc/pid/output.log; sleep 1 | echo aaa /tmp/runsc/pid/output.log; sleep 1 | echo /tmp/runsc/pid/output.log; sleep 1 | echo a /tmp/runsc/pid/output.log; sleep 1 | done | +---
[gentoo-user] gnome 2.28
Saw the news announcement that gnome 2.28 is stabilized - however looking at the header of gnome-base/gnome-2.28.2 (only 2.28 ebuild present) still shows ~x86 - do I have update problems or are there delays? Is this for amd64 only or has x86 just been overlooked? BillK KEYWORDS=amd64 ~x86 troll ~ # eselect news read 2010-05-02-gnome-228 Title Upgrade to GNOME 2.28 AuthorPacho Ramos pa...@gentoo.org Posted2010-04-23 Revision 1 We are pleased to announce the stabilization of GNOME-2.28. Users are strongly encouraged to read the GNOME 2.28 Upgrade Guide, to avoid any possible issues relating to the upgrade, such as Applications menu items disappearing, missing icons, or mouse interaction problems. Please read the Gnome 2.28 Upgrade Guide: http://gnome.gentoo.org/howtos/gnome-2.28-upgrade.xml
Re: [gentoo-user] Re: can't create file but disk isn't full
thanks! I'll set it to 0% then. On Mon, May 10, 2010 at 12:48 PM, Willie Wong ww...@math.princeton.eduwrote: On Sun, May 09, 2010 at 07:39:01PM -0300, Crístian Viana wrote: what exactly is this reserved block count? is it about the number of inodes? does that mean that, by default, regular users can only use 95% of the inodes? and why did I use all these inodes? I don't think I have that many small files on this partition... When the filesystem fills up, services can start failing left and right because they cannot write logs, cannot write temp files, etc. At this point human intervention is necessary: root has to log in and clear out the disk. But if the $ROOT filesystem is completely full, one may not even be able to log in and/or that one cannot do any sort of maintenance that is needed. So you have some sort of circularity. (In which case you have to reboot, perhaps using another medium...) The way out is to reserve some breathing room for root so that when everybody else is having problems he can still get in and fix the problem. The 5% is historical from days when disks are much smaller. If you have a sensible partition scheme you only really need to reserve the blocks on the $ROOT filesystem. If the partition in question (IIRC) is only for /home, then you can just turn off the reserved blocks all together. Cheers, W -- Willie W. Wong ww...@math.princeton.edu Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton
[gentoo-user] I've been hacked.
I nmap'ed one of my remote Gentoo servers today and besides the expected open ports were these: 1080/tcp open socks 3128/tcp open squid-http 8080/tcp open http-proxy I'm not running any sort of proxy software that I know of and I should be the only person whatsoever with access to the machine. 'netstat -l' doesn't show any info on those ports at all so I suppose it's been hacked as well? I installed and ran 'rkhunter --check' (what happened to the chrootkit ebuild?) but it doesn't seem to be much use since I hadn't established a file of stored file properties. What do you guys think is going on? What should I do from here? - Grant
[gentoo-user] Gentoo decapitated
About a week ago, my Gentoo box was in a bad state where there were some packages that would not install, so I was carefully emerging what I could and filed a bug about one in particular that I could not emerge. Then I got a new kernel, 2.6.32-gentoo-r7, and I booted from it. Eeeek. No X11 at all. The logs informed me about some things to do, and I did them, re-emerging a number of things. I paid particular attention to emerging anything with x11 or xorg in its name. Long wait. I got to a point somewhere in there where X11 started, but would recognize neither keyboard nor mouse. I kept going. The keyboard started to work. I could actually log in, but that's not all that useful without a mouse. Then I started getting complaints about USE flags needed to make some particular packages support some other packages. I did those too. Now I'm at the state where emerge -aDNvu denies there's any work to do, and revdep-rebuild reports health. Still no mouse. Fortunately, I have a laptop that can ssh into the box and I can work with it, but it's still essentially headless. Anybody run into this state recently? If there's a quick fix, I'd rather not make another bug. -- Kevin O'Gorman, PhD
Re: [gentoo-user] Gentoo decapitated
have you tried emergeing x11-drivers/xf86-input-evdev and x11-drivers/xf86-input-mouse on their own without xorg? Cheers Kad On Mon, May 10, 2010 at 9:59 PM, Kevin O'Gorman kogor...@gmail.com wrote: About a week ago, my Gentoo box was in a bad state where there were some packages that would not install, so I was carefully emerging what I could and filed a bug about one in particular that I could not emerge. Then I got a new kernel, 2.6.32-gentoo-r7, and I booted from it. Eeeek. No X11 at all. The logs informed me about some things to do, and I did them, re-emerging a number of things. I paid particular attention to emerging anything with x11 or xorg in its name. Long wait. I got to a point somewhere in there where X11 started, but would recognize neither keyboard nor mouse. I kept going. The keyboard started to work. I could actually log in, but that's not all that useful without a mouse. Then I started getting complaints about USE flags needed to make some particular packages support some other packages. I did those too. Now I'm at the state where emerge -aDNvu denies there's any work to do, and revdep-rebuild reports health. Still no mouse. Fortunately, I have a laptop that can ssh into the box and I can work with it, but it's still essentially headless. Anybody run into this state recently? If there's a quick fix, I'd rather not make another bug. -- Kevin O'Gorman, PhD
Re: [gentoo-user] I've been hacked.
On Tuesday 11 May 2010 05:58:28 Grant wrote: I nmap'ed one of my remote Gentoo servers today and besides the expected open ports were these: 1080/tcp open socks 3128/tcp open squid-http 8080/tcp open http-proxy I'm not running any sort of proxy software that I know of and I should be the only person whatsoever with access to the machine. 'netstat -l' doesn't show any info on those ports at all so I suppose it's been hacked as well? I installed and ran 'rkhunter --check' (what happened to the chrootkit ebuild?) but it doesn't seem to be much use since I hadn't established a file of stored file properties. What do you guys think is going on? What should I do from here? What does lsof (I'd reinstall it afresh) show with regards to strange users? What users the above services run under. If indeed they are not legitimate and you confirm that they are not being run as packages that you installed, then I'm afraid the only sane option is to reinstall. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: libpng12 is missing
On Monday 10 May 2010 23:27:12 Volker Armin Hemmann wrote: On Sonntag 09 Mai 2010, Rudmer van Dijk wrote: On Sunday 09 May 2010, Volker Armin Hemmann wrote: On Sonntag 09 Mai 2010, Rudmer van Dijk wrote: On Sunday 09 May 2010, walt wrote: This looks to me like a major portage screwup. I see that on my ~amd64 machine I have both versions of libpng, but the 1.2.43-r1 doesn't install a pkg-config file because 1.4.2 installs one with the same name, and just as bad, version 1.2.43-r1 removed the libpng12 header files. For now, I'd suggest just going back to to 1.2.43 if you can -- maybe mask 1.2.43 in package.mask? Meanwhile I'm trying to fix firefox so I can read the bug report mentioned by Andras. well I'm getting into a .la hell... you need to rebuild packages which are themselves not invalid and therefore can't be found by revdep-rebuild... searching with grep png12 `find /usr/lib64/ -name '*.la'` lists all .la files with a bad png version, rebuilding those will fix the system. after that all packages found by revdep-rebuild can be emerged. Rudmer run la fixer ah, yes I knew there was something easier 8-) well running `lafilefixer --justfixit` did not find anything so I got them all thanks! Rudmer sadly, it does not get them all. The only save way: grep -R for png12 and remerge all packages whose files pop up. For example revdep-rebuilt failed to rebuild pygtk - because of glade. But it never tried to rebuild glade... Shall I wait to update my box until a safe way through all this is established? I can't afford to break things right now. -- Regards, Mick signature.asc Description: This is a digitally signed message part.