Re: md5sum lots of files
On Oct 20, 2006, at 6:58 AM, Grok Mogger wrote: I have about 36 GB of files on a hard disk that I've transfered to another disk. I'd like to cksum or md5sum the files just to make sure that they were all copied well. I can't seem to find a way to recurse through the directories and do this to a lot of files. I've looked around a lot, and finding nothing I'm about to start writing my own script, but I thought I'd ask here first. It just seems like something that there would be a way to do already, and I'm just missing it. cd /source/dir find . -type f -print0 | xargs -0 md5sum /tmp/source.sums cd /dest/dir find . -type f -print0 | xargs -0 md5sum /tmp/dest.sums diff -u /tmp/source.sums /tmp/dest.sums -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudeog.org PGP.sig Description: This is a digitally signed message part
Re: md5sum lots of files
On Oct 20, 2006, at 8:19 AM, David Hart wrote: On Fri, Oct 20, 2006 at 11:10:12AM -0400, Grok Mogger wrote: How should I go about sorting it? Pipe it though 'sort'. find . -type f -print0 | sort | xargs -0 md5sum /tmp/source.sums Actually that won't work because print0 is not line-oriented. Instead, you should sort the output: find . -type f -print0 | xargs -0 md5sum | sort -k 2 /tmp/source.sums -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudeog.org PGP.sig Description: This is a digitally signed message part
Re: find by year
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Oct 3, 2006, at 11:41 AM, Curtis Vaughan wrote: Sorry for asking such amateur questions but I want to find all files created in 2003 under a directory. I know there's an easy way to do this and I've seen it before, but I can't figure it out myself. Could someone please tell me the exact command line for that? The most precise way is to use the -newer function to compare it to files that bracket your start and end of your search: touch --date=2003-01-01 /tmp/start touch --date=2004-01-01 /tmp/end find . -newer /tmp/start -a ! -newer /tmp/end - -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudeog.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFI76bf1psBSgxx0sRAvyMAKCXpcWlb37WYRsAtw+GtiTf4hpOSwCfVDif kDbRso6N1T0OnLdj5H8ZnbY= =AgJn -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: OT: Some advice on perl: read byte to hex string
On Tuesday 19 September 2006 23:29, Welly Hartanto wrote: for ($i=0; $i (length($gotit)); $i++) { my $c = substr($gotit, $i, 1); $c1 = $c 0xF0; #get the high nibble $c1 = $c1 4; # $c1 = $c1 0x0F; # $c is not a byte; it is a variable that contains a 1-byte string. So doing bitwise operations like on it won't do what you expect. What it will do is convert $c to a numeric value (if possible) and then perform the . For most of the data you are probably reading, it's converting it to 0 because it's not numeric to begin with. The rest of the time, it would convert it to some number between 1 and 9. Presumably, what you want is the value of the byte from 0 to 255. So, you first need to convert $c to that value using the ord function. $c1 = ((ord($c) 0xf0) 4) 0x0f; $str1 = hex($c1); #convert to hex I don't know what this hex function is supposed to do. Most likely, you want $str1 = sprintf(%02x, $c1); $c2 = $c 0x0F; #get the low nibble $str2 = hec($c2); #convert to hex $str2 = sprintf(%02x, ord($c) 0x0f); -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix Dave is currently listening to John Doe - She's Not (Forever Hasn't Happened Yet) pgp7is9FeX2un.pgp Description: PGP signature
Re: Flatbed Scanner
On Thursday 29 June 2006 11:29, Redefined Horizons wrote: Cany anyone recommend a good flatbed scanner for under $200.00 that they are currently using with a Debian box? I use an Epson Perfection 2480 Photo and it works flawlessly for regular scans, although I haven't had as much luck with scanning negatives (although I haven't tried lately, so maybe the scanning software has improved). -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix Dave is currently listening to Crash Vegas - Stone (Stone) pgpcUmkIV3ost.pgp Description: PGP signature
Re: repetitive apt-get upgrade
On Friday 26 May 2006 04:21, Daniel D Jones wrote: What causes a package to be listed everytime you run apt-get upgrade? Specifically, mailman is constantly listed for upgrade. It appears to go through the upgrade process but if I immediately rerun apt-get upgrade it's listed again. Is this a problem with the package or something on my machine? It's fixed with recent versions of apt: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=363389 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=363385 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=366437 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=366438 -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix Dave is currently listening to Jason Ringenberg - Bible And A Gun (All Over Creation) pgpvzFLw0vvYU.pgp Description: PGP signature
Apt keeps wanting to upgrade mailman
I'm not sure if this is a problem with mailman or dpkg, but apt continually wants to upgrade mailman, even though I'm at the most recent version: # apt-get -s upgrade Reading package lists... Done Building dependency tree... Done The following packages will be upgraded: mailman 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. Inst mailman [2.1.8-1] (0:2.1.8-1 Debian:unstable) Conf mailman (0:2.1.8-1 Debian:unstable) # apt-cache policy mailman mailman: Installed: 2.1.8-1 Candidate: 0:2.1.8-1 Version table: 0:2.1.8-1 0 500 http://debian-mirror.mirror.umn.edu unstable/main Packages 0:2.1.7-2.1.8rc1-1 0 500 http://debian-mirror.mirror.umn.edu testing/main Packages *** 2.1.8-1 0 100 /var/lib/dpkg/status 2.1.5-8sarge2 0 500 http://debian-mirror.mirror.umn.edu stable/main Packages # dpkg-deb -I /var/cache/apt/archives/mailman_0%3a2.1.8-1_i386.deb | grep '^ Version' Version: 0:2.1.8-1 # dpkg -i /var/cache/apt/archives/mailman_0%3a2.1.8-1_i386.deb | grep '^ Version' snip successful install # dpkg --status mailman | grep ^Version Version: 2.1.8-1 # apt-get -s upgrade Reading package lists... Done Building dependency tree... Done The following packages will be upgraded: mailman 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. Inst mailman [2.1.8-1] (0:2.1.8-1 Debian:unstable) Conf mailman (0:2.1.8-1 Debian:unstable) It's getting very annoying. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix pgpiMEPVHGHZa.pgp Description: PGP signature
Re: default group ownership of a file
On Thursday 06 April 2006 08:01, ChadDavis wrote: Hello. I need to know how the group ownership of a file is decided in debian. Also, is it the same for all linux systems? The group of the new file depends on the directory it was created in. If the directory is setgid, then the group will be the same group as the group of the directory. If the group is not setgid, then the group will be the user's effective group id. Your effective group id starts out as the gid listed in your entry in the passwd file. You can change your effective group id with the newgrp command, which is nearly identical to the basic su command, but for groups. The id command will tell you what your uid and gid is, and also what groups you are a member of. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix pgp7fsfcGfjQC.pgp Description: PGP signature
Re: What filesystems does LVM (lvm2?) support?
Yu,Glen [Ontario] wrote: I've googled this but never actually got a definite answer... What I want to know is: What filesystems does lvm (or lvm2) support? A LVM volume is just a block device so you can put any filesystem on there that you want. However, since one of the benefits of LVM is that the volume can be resized, you may want to limit yourself to filesystems can be easily resized. Ext2/3 can be resized but the filesystem has to be unmounted and fscked so it can't be done without downtime. I seem to recall that you can only grow XFS, but you don't have to unmount it to do so. Reiserfs can grow and shrink, but again it has to be unmounted to do so. All that is mostly from memory so YMMV. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix signature.asc Description: OpenPGP digital signature
Re: virtual machine
On Fri, Jan 20, 2006 at 02:24:19PM +0100, Ismael Valladolid Torres wrote: roberto escribe: is there anyone who has already did it and what has been his/her experience? apt-cache show qemu qemu is not at the state where you can do practical work on the emulated machine. If you just need a simple way to do a one-shot windows thing, qemu would be fine, but for real work, vmware is about the only practical solution. As to the original question, I use vmware every day in my job to run a range of Windows programs, including Visual Studio. With an appropriately beefy machine (mine is an a64 with 2G of memory), you will find the performance of the virtual machine to be more than adequate without adversely affecting the performance of the host machine. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix signature.asc Description: Digital signature
Re: IMAP Server Requirement
On Thu, Jan 19, 2006 at 05:06:03PM -0500, Ropetin wrote: I'd like to then setup an IMAP server on another machine, with more storage, and have it pull email from the regular POP server and make it available to a limited number of users. It will be hosted inside our network, with no outside access, except through already configured remote means. What software do I need to use to make this happen? I've read about a number of different pieces of software but can't figure out what would be best. I don't want you to walk me through it step by step, just point me in the right direction and give me a push! Use fetchmail to collect the mail from the POP server and inject it into the local SMTP server, which will then inject into your imap system. Use whatever imap server you most feel comfortable with. For your needs, cyrus is probably good because it doesn't require local user accounts. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix Dave is currently listening to Camper Van Beethoven - A. C. Cover (Camper Vantiquities) signature.asc Description: Digital signature
Re: .ape files
On Tue, Jan 10, 2006 at 10:29:19AM +0200, Meni Shapiro wrote: What player plays .ape files? Which pkg should i install? It's a lossless codec called Monkey's Audio. There is no official package in Debian that plays it as far as I know. You can find Debian packages that handle it at http://www.rarewares.org/. I would recommend decoding them and re-encoding them in something that is free. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix signature.asc Description: Digital signature
Re: Why is 2.95 still around?
On Wed, Nov 09, 2005 at 02:08:22PM +0200, Tshepang Lekhonkhobe wrote: I'm curious why gcc-2.95 or even gcc-3.3 is still in the archives? Is there a mistrust for newer stuff or something related to stability as is the case with 2.4 and 2.6 kernels? Thanks... Because some people may still have legacy source code that requires one of those versions to build, and they aren't yet ready to port that code to a newer compiler. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix signature.asc Description: Digital signature
Re: Tape Backup advice needed - dump, tar etc.
On Fri, Sep 16, 2005 at 11:13:31AM -0500, J French wrote: We are setting up Debian Linux on a new server for a PostGreSQL database. In the past, on FreeBSD, I used the dump utility with the live filesystem (snapshot) switch to backup the running database. Does dump on linux support live filesystem backups as well? How are most people backing up to tape with Debian (or linux in general)? I need a robust backup because this will be a production server. Advice is appreciated. First, migrate your partitions to LVM. Then use snapshot to take a snapshot of the postgres partition, then use the backup tool of your choice to backup the snapshot to tape. I use bacula for that because it lets you do backup schedules and it can call scripts before and after to create/delete the snapshot. This solution will give you the smallest downtime for your postgres database, without worrying about data integrity issues. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL-Postfix signature.asc Description: Digital signature
Re: OT - Unwanted mail
On Mon, Aug 08, 2005 at 12:54:14AM +0100, Doofus wrote: windows box), my point is that I can't see any reason for paypal or ebay coming up at all in message headers or bodies on a debian linux discussion group, and so why not ditch the lot at source? Perhaps you should have checked the archives first. I did a search for ebay and paypal and found dozens of on-topic posts containing those keywords. So blocking emails containing those words would be censoring legitimate debian-user email. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: Why has find ... -exec rm -i '{}' ';' stopped working?
On Tue, Jul 05, 2005 at 05:51:07AM -0400, Andrew Schulman wrote: find ... -print0 | xargs -0r rm -i This won't work because rm -i reads for confirmation from stdin and rm has no stdin when it's run via xargs. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: [OT] splitting files based on keyword
On Tue, Jun 21, 2005 at 09:57:07PM -0400, kamaraju kusumanchi wrote: Is there any tool which will split the above file and give me three smaller files 1-1-2005.txt, 1-2-2005.txt, 1-3-2005.txt etc., where perl -pe 'open STDOUT, $1.txt if /^date (.*)/' the-big-file -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: Good backup software for Linux
On Mon, Jun 20, 2005 at 01:57:56PM +0100, Dave Howorth wrote: This is just a fact of life, true for any backup system. It depends what guarantees of integrity you need and what table types you're using. I use InnoDB and want error-free backups so I just send '/etc/init.d/mysql stop' as my 'pre-client' command and '/etc/init.d/mysql start' afterwards. For high availability systems where you don't want to stop mysql, use the LVM to take a snapshot of the database partition. Just flush the mysql tables (flush tables with read lock), take the snapshot then unlock the tables. Now, you can back up the snapshot at your leisure without worrying about an inconsistent database. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: Good backup software for Linux
On Mon, Jun 20, 2005 at 09:20:59AM +0200, Maurits van Rees wrote: I read this as: you make a backup on Monday. You delete some files on Tuesday. You restore from backup on Wednesday and this will restore all files including the deleted ones. Usually getting back a deleted file is why you backup in the first place. So this seems normal behaviour. What about the scenario where you make a backup on Monday, delete some files on Tuesday, and then you have a disk crash on Wednesday. So you go to backup to restore the disk. You want the disk to be restored to the state it was as of the last backup, which means you don't want the file that was deleted on Tuesday. I don't know how every backup program manages differential backups and if they take note when a file or directory has been deleted. I would suggest a full daily backup if possible. But that depends on how much data you have. The VMS backup facility did this correctly -- you took a full backup once a month and incrementals every day (this was back in the days where 9 track tape was most common). If you had a disk crash, you did a restore starting with the last incremental tape and working backwards to the full tape. At the end of it all, your disk contained just the files that existed prior to the disk crash, not every file that had been created since the last full backup. With limited disk space, this was pretty important -- you probably wouldn't have had enough room to do the restore if it didn't do it that way. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: OT: Safe Type (was Re: DVORAK)
On Tue, Jun 07, 2005 at 06:53:23PM -0500, Alex Malinovich wrote: How does the safe type feel for you? As I say, it's the only way I can type comfortably for longer than an hour or so. I've used many other keyboards - plain flat ones, low-end ergonomic ones and high-end ergonomic ones like the Kinesis. Anything that requires pronation of my wrists will give me problems. However, that's the nature of my injury; YMMV. Just looking at it, it certainly looks strange with the vertical layout, but I could certainly see where it could be comfortable. And by the looks of it, the number pad is BETWEEN the two upright sections? That seems rather cumbersome. The number pad is cumbersome. I'm an emacs guy, so I rarely use the arrow keys anyway, but when I have to use them, it's a PITA. However, that was easily solved for me by buying a USB number pad; it works fine with X, and it even works fine in Windows XP running inside VMWare. If you're very used to hitting your arrow keys and home/end etc., you will find the Safetype not very usable without an external keypad. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: DVORAK
On Mon, Jun 06, 2005 at 07:41:09PM -0500, Steve Block wrote: a) the myth that qwerty was designed to slow you down is a lie. qwerty was designed to keep mechanical keys from binding, which is more layout related than speed related. Maybe, maybe not. However, I do type faster on Dvorak than I did on Qwerty. I switched to Dvorak about 7 years ago, and had been touch-typing on qwerty for 15 years before that. b) almost everyone's keyboard is qwerty or some very similar variation. When you sit down at someone else's machine or a public machine you'll just be at the wrong key layout, which will mess with your dvorak learning. No, I can switch-hit on a qwerty keyboard in a pinch, although I am somewhat slower. It takes about 10 minutes for the muscle memory to reset. Still, I will remap the keys to dvorak if I can (and map them back when I'm done) since it really isn't difficult to change the mapping on most modern PCs. c) if anyone ever has need to use your machine they will be pretty much out of luck unless you reorder your key caps so they can find the keys. Ever try to log into a dvorak machine when you remember your network password by key position and not the actual letters? Most graphical environments the ability to switch between keyboard layouts with the mouse. In Windows and KDE, these are tray icons. d) the myth that dvorak is faster than qwerty is just that, as any decent amount of searching will show. You are repeating yourself. And contrary to what you say, I am a faster typist since switching. I also make fewer typos. e) if you are already an accomplished touch typer in the qwerty system you'll have to relearn your typing skills pretty much from scratch. Yes, you will, but not from scratch, not by a long shot. It took me about a month to reach the speed I had pre-switch. It took me probably two years to start getting to that speed when I was learning touch-typing with qwerty. Not because qwerty is harder - it would have probably taken a similar amount of time if I had started with dvorak. Most of your touch-typing skills easily transfer to dvorak. In short, change if you want to, but I found the effort much too high for any percieved potential reward. I am happy I switched. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: DVORAK
On Mon, Jun 06, 2005 at 09:57:30PM -0400, Hal Vaughan wrote: Questions for you and others now using Dvorak: I could change my own keyboard to whatever I want, but I know I'll still have to use other keyboards, and I've been using QWERTY for close to 30 years. So: 1) How hard is it to change over?, It took me about a month to get to the point where I no longer had to think about where the keys were. I did do regular drills and was reasonably proficient after a couple of weeks. 2) Once you've changed over, how hard is it if you have to use Qwerty on someone else's computer?, Not hard, I do it all the time. Also, it's quite easy to remap the keyboard on any modern PC. 3) Does anyone know if it reduces problems like RSI or CT for one's wrists? That's difficult to say. I have chronic tendinitis in my right hand. It's possible that I wouldn't have it if I used qwerty. It's also possible that it would be much worse if I used qwerty. 4) I use a natural keyboard, which helps a lot. Does that make a difference with Dvorak? Dunno. I use a Safeytpe; any keyboard that requires me to rotate my hands even semi-flat exacerbates the tendinitis to the point where I can't type after an hour or two. With a Safetype, I can type all day, but you pretty much have to be a touch typist since you can't see the keys. However, I doubt that dvorak/qwerty makes much of a difference. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: Where to put the PDA ?
On Sat, Jan 01, 2005 at 11:27:19AM -0500, J.F.Gratton wrote: Besides trying my PDA into each and every USB port (trial/error), is there a way to know which port is actually ttyUSB[01] ? The USB ports on your computer do not actually correspond to specific devices. The device nodes are mapped to actual devices when the device (i.e., your PDA) registers itself on the USB bus. The first serial USB device that registers will be ttyUSB0, the second will be ttyUSB1, etc. This means that you can plug your PDA into any port and it will always be the same device (assuming that you don't have any other serial USB devices). Clies and other Palm devices actually register two USB devices, so when a Clie registers, it will use up the next two free device nodes (i.e., ttyUSB0 and ttyUSB1). For hotsyncing, you generally use the second node that gets registered, so you would use ttyUSB1 (assuming that your Clie is the only serial USB device on the bus). Some Palms (T|T maybe?) did it backwards, and you would hotsync them using ttyUSB0. Finally, the device doesn't actually register itself until you press the hotsync button, so programs won't actually be able to open ttyUSB1 until after you press the hotsync button. Using devfs (on 2.4 kernels) or udev (on 2.6 kernels) can make it easier to do this, because the device nodes won't actually be created until you press the hotsync button, and they're removed when the hotsync stops, so it's immediately apparent what devices the PDA has registered itself as. With udev you can even make it so that it creates custom device files. For my system, I have udev configured to create devices called /dev/palmv, /dev/t3, /dev/t5, /dev/clie, depending on which PDA is currently trying to sync. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to The Plimsouls - Not Of This World (Kool Trash) signature.asc Description: Digital signature
Re: OT: down with memory protection!
On Sat, Dec 04, 2004 at 12:36:23AM +1100, Sam Watkins wrote: This is provably impossible. Reference the halting problem. Turing showed only that it is possible to construct an program which cannot be proven either to halt or not to halt. The vast majority of real-world programs are not like this. No, what he proved is that you cannot construct a general algorithm that will determine if a program will halt. That is very different. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Joe Strummer and the Mescaleros - Nitcomb (Rock Art the X-Ray Style) signature.asc Description: Digital signature
Re: TV Tuner / Sound Card issues
On Mon, Nov 29, 2004 at 01:50:12PM -0600, Chad Davis wrote: How do I get the line out jack to work on the back of this pc? A lot of those via-based onboard sound cards actually assign a dual purpose to the line-in jack. On mine, it doubles as a line-out jack, I think for surround sound or something. Anyway, with alsa, in order to make it act as a line-in, I had to switch one of the mixer controls. If I recall correctly, on mine it was the IEC958 In Select control - 0 means use the jack is line in, 1 means use it as line out. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to New Model Army - Lights Go Out (The Ghost Of Cain) signature.asc Description: Digital signature
Re: TV Tuner / Sound Card issues
On Mon, Nov 29, 2004 at 02:59:54PM -0600, Chad Davis wrote: Okay, I seem to have gotten it to work through the mic line. Should I let this be? Is Mic really the same as another line in? Don't use the mic in, the sound will suck. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to New Model Army - Western Dream (The Ghost Of Cain) signature.asc Description: Digital signature
Re: devfs vs. udev
On Mon, Nov 22, 2004 at 02:50:44PM -0500, Christian Convey wrote: Can anyone help clarify the relationship between any of the following things that may or may not be on my computer? hotplug When an event happens on any of the various buses (pci, usb, firewire, etc.) such as device connection, removal, etc., the kernel that supports hotplug will call /sbin/hotplug, which is a user-space program that will do something based on the events. The standard hotplug program that most people use is at linux-hotplug.sourceforge.net, but you could always write your own. udev Udev plugs in to the standard hotplug program and responds to hotplug events by creating or destroying device nodes in /dev, based on policies that you define. devfs Devfs is a kernel module that implements a filesystem. Modules register with devfs to tell it what devices nodes they need, and devfs creates and destroys the device nodes as the modules are loaded/unloaded. Devfsd adds extra policy information, such as device permissions and adding symlinks to devices. automount autofs Automounters watch for access to a directory, and automatically mount a filesystem on that directory when a process tries to access it. They are used mostly for automatically mounting NFS filesystems, but can be used to mount anything. I'm not sure what automount program you are referring to, but historically, automount (and amd) were user-level automounters, while autofs is a kernel-level automounter. user-level automounters manage a special hidden directory of mountpoints and create symlinks into that directory when a mount happens. Autofs can mount things in-place without the need for symlinks, which is generally better. HAL Hardware abstraction layer. Would need more context as to whose HAL you're talking about. sysfs procfs Both of these are methods for kernel subsystems to export information to userspace, and for userspace to change operation of the kernel subsystems. Procfs has been around for quite a while, and I believe it was originally used just to export information about processes. Other modules started adding their own files into /proc, and the format of these items was all very ad hoc. Sysfs is an attempt to formalize this into a consistent hierarchy, and to separate process information from device information into two different filesystems. Note that udev needs sysfs in order to work properly. - Does hotplug inform udev when a new device connects to the computer? Yes, assuming that you're using the Debian hotplug package. - Does udev make use of devfs? No, udev is designed as a replacement for devfs that doesn't have any kernel-level coupling. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to The Replacements - Takin' A Ride (Live, 1982-10-01) signature.asc Description: Digital signature
Re: Will debian grow and stay
On Wed, Nov 17, 2004 at 12:36:03AM -0800, ken keanon wrote: I'm not for or against free software, just thinking aloud. I think I'll get the best of both worlds. I'll go for a dual-OS system, both commercial and free software in one box. More about this in another thread. Please don't. Take it to some newsgroup that wants to debate it, not here. Besides, all of your thinking out loud was already done to death and more years ago. Hell, Eric Raymond's Cathedral and the Bazaar talked about a lot of your supposed insights, and that was back in the 20th century. Try doing a little basic research and leave this mailing list for actually discussing issues to users of Debian. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: amd64 build necessary to get nvidia nforce3 mobo working?
On Tue, Nov 16, 2004 at 10:41:18PM +0100, Alexandru Cabuz wrote: My question is this: Is there any way to get the ethernet and the sound going on nforce3 in Sarge 386, that is, without installing the true amd64 port which is not yet finished, and which therefore might be more trouble than it's worth? I'm running Debian/i386 on a Shuttle SN85G4V2, which is a nForce 3 150. Sound and network work fine. Network did not work fine with the 2.6.7 kernels and below, but I believe the latest sarge installers use 2.6.8. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: Sarge: nVidia proprietary driver vs. udev
On Tue, Nov 16, 2004 at 09:55:10AM -0500, Christian Convey wrote: - The FC3-style fix mentioned above seemed to do nothing. IIRC, Sarge didn't even *have* a /etc/udev/devices directory initially, which makes me suspect that FC3 and Sarge do udev somewhat differently. A quick look at /etc/init.d/udev suggests that the way to pre-create device nodes when udev starts is to edit the file /etc/udev/links.conf. Or just do what I did for vmware and create an init.d script that runs just after udev that creates the device nodes that vmware needs. FWIW, I am not having this problem. I have nvidia in my /etc/modules file and the real /dev (which is there before udev starts up) contains the nvidia0 device, so my nvidia driver gets loaded pretty early in the boot. That would be another way to skin the cat; your real /dev is moved (via a bind mount) to /.dev, so make sure the nvidia0 device exists in that directory, and add nvidia to your /etc/modules file, and it should load for you at boot time. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: AMD 64 build absolutely necessary for install on Athlon 64?
On Tue, Nov 16, 2004 at 05:47:14PM +0100, Alexandru Cabuz wrote: I am trying for a few days here to boot my brand new Athlon 64 box on a Sarge Installation CD. But since sarge is not yet ported to AMD 64 (http://www.debian.org/devel/debian-installer/ports-status) I tried IA 64. IA64 is not AMD64. It's not surprising that it won't boot. You can get the AMD64 installer from alioth or you can just install a 32-bit version. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: upgrading KDE
On Wed, Nov 10, 2004 at 08:15:49PM -0600, downtime null wrote: I would like to upgrade to at least KDE 3 (3.3 would be nice), but apt is giving me fits. I'm sure it's something simple that I'm just overlooking. When I type the command 'apt-get -f install kde', I get : Sorry, but the following packages have unmet dependencies: kde: Depends: kde-core but it is not going to be installed Depends: kde-amusements but it is not going to be installed E: Sorry, broken packages The only line I have in my sources.list is : deb http://ftp.us.debian.org/debian/ testing main non-free contrib I'm using testing because stable seems to use thoroughly tested but very outdated packages. Shouldn't the '-f' switch cause apt-get to resolve the dependencies?n The -f switch just tells apt to ignore existing dependency problems so that it can do more work; it won't help when trying to install new packages. While I usually just used aptitude for drilling around the dependency issuse, I have solved them at the apt-get level by adding more and more packages onto the apt-get line. So for you, try to do apt-get install kde kde-core kde-amusements That will either work or give you more packages that won't be installed. Keep adding the packages and eventually you'll figure out the one package that is keeping everything else back. If you're using a desktop system, you might want to consider using unstable rather than testing. As an alternative, and I hate to even suggest this, is it generally considered a Bad Thing (tm) to use RPMs in Debian? It will cause you all kinds of grief. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to The Pogues - Modern World (Waiting For Herb) signature.asc Description: Digital signature
Re: libapache-auth-ldap with SSL not compiling
On Mon, Nov 08, 2004 at 02:45:01PM +0100, Matthias Eichler wrote: - for using libapache-auth-ldap with SSL I have to recompile the source as the binary package does not support SSL/TLS Now I am confused, because: - the dpkg-buildpackage of libapache-auth-ldap has to be made with the option --with-ldap-sdk=netscape as the package does not support the openldap environment for SSL support. Is this right?!? I have definitely openldap running WITH SSL support. You don't need the Netscape SDK; auth_ldap supports TLS with the OpenLDAP SDK, but it requires a patch. I don't know if that patch has been applied to the Debian package or not. The patch itself is available if you search the mailing list archives at www.rudedog.org/auth_ldap. Alternatively, you could use something like stunnel to do secure LDAP and you wouldn't have to patch and recompile the ldap module. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Tom Robinson Band - All Right All Night (TRB Two) signature.asc Description: Digital signature
Re: Ether-what? Where is the coming from?
On Sun, Oct 31, 2004 at 05:55:53PM -0500, Robert Tilley wrote: GKrellm indicates that something is pumping data through my ethernet pipe. How can I discover the culprit? This is affecting my CPU usage... Run tcpflow in an empty directory for a couple of minutes and look at the size of the resulting files. The biggest file is the culprit. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to The Sugarcubes - Hot Meat (Here Today, Tomorrow, Next Week) signature.asc Description: Digital signature
Re: Sound recording in ALSA
On Tue, Oct 05, 2004 at 03:35:05PM -0500, Kirk Strauser wrote: I'm using Sid with Debian's 2.6.8-1-686 kernel package on a Dell PC with an Intel 8x0 sound device and ALSA. My ultimate goal is to get liveice to read from the line in on my sound card, but I'm trying to take baby steps to get there. Right now I'm attempting to record by: 1) Going into KMix and selecting Line as the capture device (verified with amixer). 2) Using something like arecord -t wav -d 10 /tmp/foo.wav to attempt to record the sound that's being played through my speakers to a file. Make sure both the line device and the master capture device are enabled and have a non-zero input volume. In kmix for my sound card, the capture device is on the far right. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Levellers - Three Friends (A Weapon Called The Word) signature.asc Description: Digital signature
Re: Run script as often as possible
On Tue, Sep 28, 2004 at 11:23:15AM +0200, Jacob Larsen wrote: I have a script that I'd like to run as often as possible. The script may only run in 1 instance. My idea is to have a cron script to start it once every hour. The script should write a run file, and if the run file exists, exit. Is this the best way? Run it from init by putting an entry into your inittab. As soon as it exits, init will respawn it. The upside is that there is no need to do locking or process synchronization. The following inittab entry would work. mysc:2345:respawn:/path/to/myscript -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Creedence Clearwater Revival - Travellin' Band (Chronicle) signature.asc Description: Digital signature
Re: Run script as often as possible
On Tue, Sep 28, 2004 at 04:49:49PM +, Adam Funk wrote: That runs the script as root, right? If you wanted to run it with as another user, would you just stick a bit of sudo in that inittab entry? Sure: mysc:2345:respawn:su - someuser -c /path/to/myscript -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Hunters Collectors - Everything's On Fire (Human Frailty) signature.asc Description: Digital signature
Re: APIC: what is it good for? Can I switch it off?
On Thu, Sep 23, 2004 at 05:10:38PM +0200, Stefan Gößling-Reisemann wrote: I am trying to find the reason for our fileserver to shutdown unexpectedly (and without any warning entries in the logs). I have come across a warning during bootup: Spurious 8259A interrupt: IRQ7 This particular message is probably because you have nothing connected to your parallel port. Disable your parallel port in your BIOS or connect something to the parallel port, and you should see that go away. However, it can just as safely be ignored; it's not likely to be the cause of your problems. Disabling APIC may help with your system instability and won't cause you any issues on a fileserver. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Cracker - Duty Free (Live, 2003-05-03) signature.asc Description: Digital signature
Re: Junk flags in firefox
On Wed, Sep 22, 2004 at 05:30:10AM -0400, Tom Allison wrote: I'm noticing that the imap server FLAGS under thunderbird are coming in with the flag Junk. This is from the client side filtering code that Thunderbird has (I assume). I thought IMAP Flags where more fixed than that, or can any client create any Flags within syntactical reason for the IMAP server to store? Imap supports system flags and keyword flags. System flags (\Seen, \Deleted, etc.) are defined by the IMAP specification and always begin with a \. Keyword flags are server-specific. Some servers allow the client to define new keyword flags, but it is not a requirement for a server. See section 2.3.2 of RFC 3501. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: upgrade to 2.4.27 kills VMWare?
On Mon, Aug 23, 2004 at 01:53:33PM +0100, James Cummings wrote: Hi, I was running VMWare on kernel 2.4.26 and now that I seem to have apt-get upgrade'd myself into 2.4.27 VMWare won't run. I says I should reconfigure it, but when I do I get the following error: What is the location of the directory of C header files that match your running kernel? [/lib/modules/2.4.27-1-686/build/include] This is not the location of your kernel headers; it's a best guess by vmware, but it's wrong. You must install the kernel-headers-2.4.27-1-686 package, then you tell vmware that your kernel headers are in /usr/src/kernel-headers-2.4.27-1-686/include -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Jayhawks - Sixteen Down (Live, 2003-11-15) signature.asc Description: Digital signature
Re: Recommendations on SCSI controller for Debian desktop
On Thu, Jul 01, 2004 at 10:45:00PM -0500, Nick Lidakis wrote: I was looking into replacing the hard disk on my debian box with a 36GB 15k Fujitsu SCSI disk. I was hoping that by doing this I would be able to reduce boot times and increase system responsiveness. I would like to hear about people's experience with SCSI disk on the desktop, and hope they could make recommendations on controllers that work well with debian. With a single disk, you're unlikely to see any significant difference in performance between SCSI and EIDE, and you'll be spending a premium to use SCSI. SCSI really shines when multiple devices are contending for the bus. If you want to spend your money making you system faster, buy as much RAM as your system can hold. That being said, pretty much any Adaptec card will work well for you. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: How long can we avoid using kernel 2.6.x ?
On Mon, May 24, 2004 at 04:56:16PM +0100, Anthony Campbell wrote: I've tried kernel 2.6.6 and encounter various problems: one is that magicfilter no longer works properly and another is that I don't find a config entry for my usb Epson scanner. Others will probably emerge later. No doubt I can find solutions to all such problems with a lot of work but why should I bother, considering that 2.4.26 is working perfectly well for me? Is it going to become essential or at least highly desirable to shift to the new kernels in the near future? I personally don't anticipate upgrading any of my production kernels for 6 months to a year, or even longer. From a security perspective, the 2.4 kernels will continue to be actively maintained, so the only reason to switch is if you need something in the 2.6 kernel that the 2.4 kernel doesn't provide. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: Stable vs. Testing Vs. Unstable
On Sat, Apr 17, 2004 at 10:29:15PM -0700, Loren M. Lang wrote: I'm curious about how many people are actually using Debian Unstable or Testing to Stable for normal desktop use or even a production server. I've being using Gentoo lately, and I love how nice the newer software is like KDE 3.2.1 or Gnome 2.4 and I don't want to go back to Gnome 1.x just because I want a stable debian system, where gentoo seems to run fine with the latest. I run unstable and do aptitude upgrades every day on all three of my home systems (server, firewall, desktop). Systems I manage for my work generally run stable (except for a couple of desktop systems that run unstable and get upgraded once a week). I've never run into any significant problems that left my system in an completely unusable state, although I am careful to run apt-listbugs before my upgrades. I also know how to downgrade stuff from snapshot.debian.net, and have done so on many occasions when an update from unstable has broken something. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Rheostatics - The Wreck of the Edmund Fitzgerald (Melville) signature.asc Description: Digital signature
Re: Moving from XP and looking for replacement programs
On 04/17/04 10:00, Penbrock wrote: Creative PlayStation ( Used to rip audio CDs) cdrecord Weather Bug (Local weather on the task bar) kweather MailWasher (anti spam program) Lots. What kind of filtering do you want to do? Bayesian, rules-based, blacklist, server side, client side, etc. Ad-aware (spy ware remover) Not needed. Nero Burn (CD/DVD bruning program) cdrecord Norton Anti-virus ( Is this even needed with Linux?) Not strictly needed, but there is a version of f-prot for linux that scans files for Windows viruses. Soundblaster Audigy ALSA Lexmark Z13 Not well supported under linux, but see http://www.linuxprinting.org/show_printer.cgi?recnum=Lexmark-Z13 Canon i560 Dunno. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: [OT] How big are Logitech's balls?
On Fri, Mar 26, 2004 at 01:29:03AM +, Pigeon wrote: Logitech do some rather neat optical trackballs, called Marble, with a speckledy ball to give the optical sensor something to work on. Unfortunately they are all very decidedly asymmetrical and right-handed only. Not true. My Logitech marble trackball is symmetrical; I use it left-handed all the time. http://www.logitech.com/index.cfm/products/details/GB/EN,CRID=6,CONTENTID=5145 If anyone on the list has one of the Logitech devices, could you please measure the diameter of the ball and let me know? It's 40mm. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Big Country - One In A Million (Why The Long Face) signature.asc Description: Digital signature
Re: [OT] How big are Logitech's balls?
On Thu, Mar 25, 2004 at 10:52:15PM -0500, sloopy wrote: although i dont know the size of the logitech ball, i personally prefer the the kensington 'Turbo Mouse' which uses an ambidexterous design which i prefer, i use it both left and right handed without any problems, and the linux kernel recognizes it specifically... I like the Kensington Export Mouse, which is a 4-button optical trackball (USB) with a nice big ball, plus a spinning disc around the ball that acts like the wheel in a wheel mouse. It's also symmetrical. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: IMAP server to fit this bill?
On Thu, Mar 18, 2004 at 06:07:33PM -0800, Steve Lamb wrote: I'm loking for shared folders so I can offer global spam/ham folders for my users. I know this is generally a nono but in this instance I am willing to run with it given two facts. The first is that spam scanning happens at SMTP. Per user bayes filters do not apply at that time, it has to be global. Second my user base is minute. I have maybe 6 active mail accounts spread across 3 people. As such a global bayes DB isn't really going to degreade resolution enough for me to worry about it. However presently my users have no way to submit their own messages for training. Shared folders seems to be the way to go. Maybe you need no re-think the requirement to scan at SMTP time. I also prefer that, but statistical scanning is so much more powerful than anything else that I finally gave up on SMTP scanning and moved to delivery-agent scanning, just so I could use statistical methods. Ham/Spam reporting is done by forwarding false positives/negatives to a special address. Is there a particular reason that you need SMTP scanning? That being said, Cyrus fits the bill for everything you want except the mbox requirement. But, there are plenty of scripts around that can migrate mbox onto an IMAP server, so that's not necessarily a showstopper. Cyrus 2.1 works just fine with Squirrelmail, and it supports shared folders with full ACLs. Plus, after you move your mbox messages into the Cyrus message store, they're available from anywhere. I personally hate mbox; it's slow, especially for large mailboxes (the uw-imap trick of putting a fake index message at the top is an ugly hack); its format is brittle (the From escape is another ugly hack); it's dangerous (better hope everything accessing the mbox is using - and honoring - the same locking scheme). Did I mention that it's slow yet? -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: IMAP server to fit this bill?
On Fri, Mar 19, 2004 at 08:03:47AM -0800, Steve Lamb wrote: It also relies on the person knowing how to forward in a particular format. The scanner I use (DSPAM) doesn't care about the format. It uses a special tag in the body or in the headers, and uses that tag to re-calculate the false match. The body tag is a bit of a hack, but it's only there to support ancient mailers like elm that don't forward complete headers, and can be turned off. As for putting extra headers into a message, I'm not sure why you think this is a problem. That's what headers are for -- to convey meta-information about a message. It introduces statistics which are meaningless in the final analysis. Not sure what this means. One also has to lock down those addresses to prevent contamination from outside sources. For example, spammers sending mail to the ham address. :P Yes, but this is solvable by using a subdomain that has no MX exposed to the outside world (i.e., @ham.mydomain.com and @spam.mydomain.com). Yes, the spammer could still piggyback by putting the @ham address in a BCC, but realistically, this is not a big danger, and easily blockable at the firewall. Is there a particular reason that you need SMTP scanning? I do not believe it is right to accept and then silently drop messages. I never reject or discard messages, and my logs show exactly where every message was delivered, down to the final mailbox. There is a possibility that I might not see a message, but that doesn't mean it didn't get delivered. after you move your mbox messages into the Cyrus message store, they're available from anywhere. Except for the local machine unless I'm mistaken in that mutt and elmo can access Cyrus' DBs directly? :P I'm using mutt and I'm using cyrus, so I'm not sure what this means. If you're implying that you can't read your mail without an imap client, then I'll concede that. Big deal. For me, the benefits of imap far outweigh the disadvantage that there may be some mail clients that I can't use. Cheers, -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: IMAP server to fit this bill?
On Fri, Mar 19, 2004 at 11:22:47AM -0800, Steve Lamb wrote: Dave Carrigan wrote: As for putting extra headers into a message, I'm not sure why you think this is a problem. That's what headers are for -- to convey meta-information about a message. Because forwarded messages are not the same as the original message. If the person forwards it as a MIME attachment, for example, the (re)learned message contains a different set of headers completely as well as a slew of unrelated MIME encapsulation data. If it is bounced properly the bounce headers are learned as either ham or spam. This extranious information can lead to false positives or negatives. Yes, but my understanding of DSPAM is that it doesn't retrain on the forwarded message. It saves the list of tokens that the original message generated, linked to a unique key. Then when someone forwards a message to be retrained, it extracts the key from the forwarded message, and changes the weights of the tokens associated with that key. This means you can bounce, forward as mime, forward inline, or just send the key alone and DSPAM will do the right thing. It introduces statistics which are meaningless in the final analysis. Not sure what this means. What this means is that even if the ham and spam corpus got the same numver of meaningless statistics to render forwarded/bounces message headers/data as undefined and therefore not used it is still data that is being taken up in the classifier's DB. Which is 100% true based on your initial assumptions. However, if your initial assumptions are false, then this is also false. Your initial assumption is false. Granted they can filter on their end but the whole point is that they don't download it. Filtering comes after downloading. This is another mistaken assumption of yours. Filtering does not require downloading. The whole reason I use server-side spam testing and IMAP is because I telecommute and do not want to download 100 messages when 99 of them are going to be spam. DSPAM adds a special header to the message that identifies it as spam, and Cyrus delivers all messages with that header into a different mailbox than my INBOX. I examine that mailbox periodically, and after a cursory scan for false positives, I delete everything else, without downloading anything other than a few message headers. I did mention elmo as well. I am not familiar with mutt's IMAP implementation and I'd be willing to wager that it isn't up to par given the preponderance of things mutt does wrong as well as how often most clients get IMAP wrong. Given the number of mistaken assumptions you've made so far, I'll wager that this one is mistaken as well. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Mary-Chapin Carpenter - Come On Come On (Come On Come On) signature.asc Description: Digital signature
Re: cyrus fun
On Wed, Mar 17, 2004 at 11:29:06PM -0500, Mauricio wrote: Has anyone successfully installed cyrus in a debian machine, being able then to imap through ssl to it? If so, could you give me some hints regarding configuration (like /etc/imapd.conf, and any required changes to /etc/inetd.conf. After all, how is it being loaded?), layout, and so on? I am getting *this* close of simply dropping it and going to wu-imap. I have no problems imaping to it, but when I try to do it through ssl, it will not do it: This is my config with Cyrus 21: tls_cert_file: /mount/mail/cyrus/etc/imap.rudedog.org.crt tls_key_file: /mount/mail/cyrus/etc/imap.rudedog.org.key That's with a locally-generated signed by a private CA. Since you mention inetd.conf, it sounds like you might be using Cyrus 1.x. You should really look at using cyrus21 instead. Even if you're running stable, I'm pretty sure you can find a backport. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: IMAP problems
On Thu, Mar 18, 2004 at 11:23:42AM -0500, Dafydd Blaidd wrote: I am having a whale of a time getting IMAP to work. I am using Sendmail 8.12.11 and Cyrus 2.1.16. I can telnet to my server on port 25 and everything works fine but if I try it on port 143 I get the following: Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK wales Cyrus IMAP4 v2.1.16-IPv6-Debian-2.1.16-4 server ready AB LOGIN dafydd XX AB NO Login failed: user not found LOGOUT How is your sasl config set up in imapd.conf? I have: sasl_pwcheck_method: saslauthd sasl_auto_transition: no Then in /etc/default/saslauthd, I have START=yes MECHANISMS=shadow After changing /etc/default/saslauthd, make sure you (re)start it. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Ramones - I Just Want To Have Something To Do (Road To Ruin) signature.asc Description: Digital signature
Re: cyrus fun
On Thu, Mar 18, 2004 at 06:40:04PM -0500, Mauricio wrote: Yep, I am running woody. Can I simply change stable to testing in /etc/apt/sources.list and download cyrus 21 (withotu having to reinstall debian)? I wouldn't recommend going up to testing unless you're ready to upgrade a *lot* of stuff. Actually, you shouldn't run testing at all; stick to stable or unstable. However, Henrique (the Debian cyrus maintainer) has backports for woody, so you shouldn't need to upgrade. Just add this deb http://people.debian.org/~hmh/woody/ hmh/cyrus/ to your sources.list. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: GCC
On Mon, Feb 23, 2004 at 12:53:47PM +0100, John L Fjellstad wrote: GCC 2.95 wasn't C++ compliant at all (didn't it get released before 1998?) Actually, gcc 2.95 does support quite a bit of the standard. It definitely supports namespaces, iostream and a majority of the STL. You're probably thinking of the previous version (2.2?). The timeline was gcc 2.2 - egcs - gcc 2.95 - gcc 3 egcs was what drove gcc into C++ standards compliance; I can remember switching from gcc to egcs when doing a project that needed good STL. This was in the fall of '98 if I recall, and gcc at that time was not good enough, but it was not 2.95. Regards, -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: GCC
On Sun, Feb 22, 2004 at 02:56:29PM -0500, Mike M wrote: On Fri, Feb 20, 2004 at 09:40:07PM +0100, John L Fjellstad wrote: The old stdlib.h will still be available in the C++ standard, but the functions and variables won't be in the std namespace. I really must read up more on the namespace feature and why I'd want to change the standard namespace. Googling around I find a 1998 email that reports pre-standard C++ will soon die. In 2004 I see the Mozilla coding standard recommend against using the namespace feature because it is not implemented well on all C++ compilers that they use. Six years have past and the standard C++ is still not embedded where it counts - in the compilers. Mike, I'm trying to say this in the nicest way, but please stop being such a twit. I'm not going to argue with you any more. If you want more information, you should look at items 28 and 49 in Meyers' _Effective C++_, or take it up with the C++ gurus in comp.lang.C++{,.moderated}. As a final note, namespaces are here to stay whether you like it or not, so you may want to spend your time finding another windmill to tilt at. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: GCC
On Thu, Feb 19, 2004 at 09:42:26PM -0500, Mike M wrote: On Thu, Feb 19, 2004 at 05:16:53PM -0600, Alan Shutko wrote: Mike M [EMAIL PROTECTED] writes: C++ seems to be steaming away in this direction. I've got my doubts that the .h is going away in C however. As far as I know, nobody has proposed that the C header files change in this way. I was unaware too until someone in this thread posted that stdlib.h is out and cstdlib is in. It seems that this is going to cause more portability problems than it solves. Code written for advanced compilers will be incompatible with older compilers. This has been a problem of C++ for at least a decade. But at least it looks like it's finally getting better now that the standard is standardized and compilers catch up. A decade of C++ becomes deprecated? How can this be? I argue that it cannot from a practical point of view. The body of existing work is too large to allow drastic change. I think you missed the point. The header names changed explicitly to *support* backward compatibility. The Standard says that the standard library belongs in the std:: namespace. This decision was made for a lot of good reasons. However, most vendors were already shipping iostream.h, that did not put iostream into the std namespace. So, the standard writers had two choices: force vendors to change their iostream.h so that it puts everything into the std namespace -- and break millions of lines of legacy code, or ask vendors to provide a different header for std::iostream. The standards committee chose to use a different header, expressly to *preserve* backward compatibility with existing code. On the one hand we have a standards committee and eager-to-please compiler maintainers creating features and requiring us to change existing code to adapt to the new features. Languages change, and compilers change along with them. How many ifdefs do you see today in C code in order to support KR vs. ANSI? Not too many, because programmers and programs catch up to standards. All you need to do is trace the history of much of the GNU code to see how their function definitions evolved from pure KR to a macro hack that did KR or ANSI depending on the compiler to today, where most GNU code uses ANSI only. That doesn't mean that legacy KR code won't compile with a modern C compiler. It means that programmers no longer feel that they need to refrain from using ANSI constructs because they're worried that some compilers won't support it. Or do you still live in fear of encountering a KR compiler, so you continue to declare your functions like: int foo(a,b) int a; char b; { } I am not opposed to new features in C++ as long as they are not mandatory. If the new features are mandatory, then rename the language to C+++ so there'll be no confusion. Languages change. C went from KR to ANSI to C89 to C99. C++ is evolving in the same way. Back to the case in point - header files. Why the change? To support the namespace feature? A project as well-known as Mozilla says to not use namespace because it's not portable. The mozilla project started 6 years ago, possibly even before the standard was even ratified and certainly at a time when many mainstream C++ compilers did not support namespaces well. Things have changed. Today, there's no way that the mozilla folks would be against namespaces; all mainstream C++ compilers support them very well. Today, they would be telling you to avoid things like partial template specialization, because it's not well-supported yet. And 5 years from now, they will probably be telling you to avoid the export keyword because it's not well supported (yet!). I've worked in telecom for many years and from that I know that when a system becomes very large, you can no longer change the standards on which it is based. The costs are too great. The new must adapt to the old. Nobody is saying you have to change. What they're saying is that if you #include iostream.h, you're NOT getting std::iostream, and you can't complain if whatever iostream you do happen to get doesn't conform to the C++ standard. If you want std::iostream, then you need to #include iostream. Under GCC, you're probably going to get behavior nearly identical to std::iostream even if you #include iostream.h. But you might be in for a nasty shock if you try to compile your code with Visual C++ or Comeau C++ or some other C++, because their iostream.h (if it even exists) may or may not behave like your iostream.h. Conversely, their iostream *will* behave like yours, or else one of the vendors has a bug with their implementation. Bugs like this are still a common and sad fact, but the situation would be much worse if none of your vendors followed a standard at all. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL
Re: GCC
On Tue, Feb 17, 2004 at 12:58:38AM -0500, Ed Cogburn wrote: I don't know if .h is officially deprecated now, but it probably will be in the future at some point. Referring to C++ headers without the .h is part of the C++ standard now (mentioned in my reference book on standard C++). The intent is to visually separate the old C headers from the new C++ ones. For the old headers you still use .h, but for the C++ headers you don't. This is true for the Standard C++ Library only. Other libraries are free to use whatever extensions they want. For example, boost uses .hpp. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: GCC
On Tue, Feb 17, 2004 at 12:23:37PM -0500, Mike M wrote: The discussion of declaring main is off the point though. The example is to show that the C++ compilers weren't complaining about the .h on the #includes. Off the point, but still important: portable C++ requires that main() returns an int. It's puzzling to me why it was necessary to make iostream when iostream.h works just fine. (That's a retorical question aimed at the C++ godz). Part of the formal C++ standard includes the specification of the C++ Standard Library. That spec says what the names of the standard header files should be, and the spec says that none of the standard header files have an extension. Vendors can do whatever they want behind the scenes to implement the spec. In the case of GNU C++, they choose to implement it by putting an iostream file in the standard include search path, and that file #include's an iostream.h. In theory, a vendor could choose to implement #include iostream by loading a pre-compiled header file from a database, and not providing an actual file called iostream at all. The only important thing is that the vendor supports #include iostream correctly. If you want to write portable C++, you must also use the proper header name. That means #include iostream NOT #include iostream.h The latter might work for GNU C++, but it might not work for somebody else's C++. To reiterate: when you #include iostream.h, you are emphatically NOT getting definitions for the C++ Standard Library's iostream classes. You might think you are, but you're not, and your code won't be portable. The main reason why this became the standard is because they needed to provide backwards compatibility. Vendors had already been shipping iostream.h, but the Standard put iostream into the std namespace, and many vendors' iostream.h did not. So, they needed to come up with new headers that could follow the Standard without breaking backwards compatibility with existing code that #include's iostream.h. The standards committee decided that the most straightforward approach would be to eliminate the extension altogether. Not also that if you want to include C headers (e.g., stdlib.h), the correct include is #include cstdlib NOT #include stdlib.h -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: What's the easiest way to move some files in a directory tree?
On Fri, Feb 13, 2004 at 01:15:37PM -0500, Darin Strait wrote: I have a large directory tree, with scores of end nodes. Each end node in the tree has a number of files whose names end either in .mp3 or in .flac. I would like to copy the directory structure of the tree, but I want to move files that end in .mp3 to the new tree and leave the .flac files behind. What is the easiest way to do that? I was looking at unision, but unison seems to be copy-only; there doesn't seem to be move the flac files. mkdir /top/of/mp3/dir cd /top/of/flac/dir find . -name '*.mp3' -print0 | cpio -0 -pdm /top/of/mp3/dir # *** DOUBLE CHECK THAT THE FILES GOT COPIED RIGHT BEFORE STEP 2 *** find . -name '*.mp3' -print0 | xargs -0 rm If your mp3 dir and your flac dir are on the same filesystem, you'll speed this up *immensely* if you do -pdml instead of -pdm, because it'll just create hard links instead of copying the file contents, and it won't use any significant extra space between step 1 and 2. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Diana Krall - I've Got You Under My Skin (When I look In Your Eyes) signature.asc Description: Digital signature
Re: Alternative to VMware?
On Mon, Feb 02, 2004 at 12:54:03PM -0600, Joel Konkle-Parker wrote: I really want to get a copy of VMware, but I don't have $140 for the student version. So I'm looking for alternatives. I just want some kind of sandbox where I can test out new software, distros, etc, without rebooting into a seperate partition. What do other people use? VMWare is the only game in town. win4lin is windows only. Bochs has potential, but is nowhere near there. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Saw Doctors - Only One Girl (If This Is Rock And Roll, I Want My Old Job Back) signature.asc Description: Digital signature
Re: script to list installed packages
On Thu, Jan 29, 2004 at 07:58:36PM +0900, Nick Hastings wrote: Careful, dpkg --get-selections doesn't always list only installed packages Try: dpkg --get-selections | grep -w install | cut -f1 To be pedantic, this will fail if a package has the string install in its name and is in a non-installed state. Also, this will miss held packages. Better would be dpkg --get-selections | awk '$2 ~ install|hold {print $1}' -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: .deb dependancy hell
On Wed, Jan 28, 2004 at 10:56:24AM -0500, Richard Hoskins wrote: On unstable, i386. Kind of reminds me of RPM: ...snip dpkg -r lossage Why aren't you just using apt-get remove libgphoto2-2 Dpkg was never designed to handle dependencies; apt was. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: mouse-2 and S-ins use different copy buffers
On Mon, Jan 05, 2004 at 08:36:58AM +, Colin Watson wrote: On Mon, Jan 05, 2004 at 02:56:25AM +0200, Micha Feigin wrote: It seems that in certain instances mouse-2 and Shift-Insert paste different things. That doesn't surprise me. The second mouse button pastes X's primary cut buffer. Shift-Insert does something arbitrary depending on the application ... This is true, although pretty much all Gtk/Gnome and KDE applications, plus many others (e.g., xemacs) have standardized on using the CLIPBOARD selection that they use for copy/paste (i.e., ctl-c/ctl-v), so it's no longer arbitrary, except for old applications. As far as that goes, what is inserted with mouse-2 is also arbitrary, although most applications have also stardardized on mouse-2 pasting the PRIMARY selection. The reason that the two sometimes paste the same thing is probably because the PRIMARY selection and the CLIPBOARD are still the same (i.e., nothing new has been selected since the last time CLIPBOARD was updated). -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Galeon doesn't work correctly with gnome 2.4
Up until I upgraded to gnome 2.4, anytime I invoked galeon, it would correctly find itself and not try to start a new instance. Now, galeon no longer does this consistently. If I launch galeon from an interactive bash shell, then anything that launches galeon from an interactive bash shell will find the instance, as will subprocesses started from that shell (i.e., xemacs). I can even sign on to a text console and do DISPLAY=:0 galeon and it will work. However, anything that doesn't launch galeon from an interactive bash shell will not find the instance. Conversely, if I launch galeon from the panel, then try to run galeon from an interactive bash shell, it won't find the instance, but anything else that is launched from the panel will find galeon. I've looked at my environment, but none of the obvious candidates (DISPLAY, SESSION_MANAGER, GNOME_DESKTOP_SESSION_ID) seem to be the culprit. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: mutt pgp nosign variable?
On Wed, Oct 15, 2003 at 02:10:24PM -0400, Nori Heikkinen wrote: i'm trying to create a send-hook in my .muttrc so that i can automatically not pgp-sign messages i send to specific addresses. but i can't figure out which variable to use, or if i'm not seeing them all. i know it'll be along the lines of send-hook 'pattern' 'unset somevariablename' send-hook '~t [EMAIL PROTECTED]' 'set crypt_autosign=no' -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Beat Farmers - Buy Me A Car (Van Go) signature.asc Description: Digital signature
Re: Convert realaudio to free audio ???
On Thu, Oct 09, 2003 at 10:07:40AM -0500, Michael D Schleif wrote: Where do I get mplayer? deb http://marillat.free.fr/ unstable main Is it `free'? Let's not reopen it on this list. Ask google about debian and mplayer. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: gzip question
On Tue, Oct 07, 2003 at 01:16:06PM -0700, Curtis Vaughan wrote: Actually this doesn't have to be just in regards to gzip, but any file compression application. Is there a way to force the application to provide a specific directory structure for the files you wish to compress. For example: let's say I have serveral files in my home directory. I want to zip them so that when someone unzips them, the directory structure will be for a windows system something like: c:\Program Files\special directory\ Create the directory structure you want, then tar up the directory, then gzip the tar file. Winzip can extract files from tars and preserve directory structure. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Camper Van Beethoven - The Fool (Our Beloved Revolutionary Sweetheart) signature.asc Description: Digital signature
Re: simple text formatting
On Sun, Oct 05, 2003 at 11:37:57PM -0700, Mike Egglestone wrote: Hi, I have a file in this format of words: joe jill bill bob frank tom harry and want to convert the file to this format: joe jill bill bob frank tom harry fmt -w 1 filename newfile -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: Printing to JetDirect printer
On Sun, Oct 05, 2003 at 09:55:47PM -0400, Matthew Daubenspeck wrote: On Mon, Oct 06, 2003 at 09:26:08AM +0800, Uwe Dippel wrote: I want to continue printing to our JetDirect printer with Debian. I tried to google and apt-cache search came up with so many packages and I didn't know what to install. lprng. I never had any luck with getting cups working with JetDirect. Cups works fine with a jetdirect. Just use a direct socket connection to port 9100. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: Limiting access to website ???
On Sat, Oct 04, 2003 at 12:50:39PM -0500, Michael D Schleif wrote: We are working on a web-based application. It will use mod_ssl to secure transactions. We want to limit access to the application. Yes, we have username/password authentication; but, we are also considering host-based limits. Can this be done with [mod_]ssl? No, but it can be done with apache, which is what I presume you are using. Can access to a website require a certificate on the browser side? Yes. If so, please, point me in the right direction (e.g., URL's, documentation, applications, c.) http://httpd.apache.org/ -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: Limiting access to website ???
On Sat, Oct 04, 2003 at 04:25:57PM -0500, Michael D Schleif wrote: OK, this section is what I need -- thank you: http://www.modssl.org/docs/2.8/ssl_howto.html#ToC6 Correct me if I am wrong; but, this is the process? [1] One (1) Certificate per client/browser authenticates *both* the server to the client, and the client to the server; and The server will need its own certificate with a CN of the server's hostname. [2] Each client/browser can have *either* a unique client-specific Certificate, or each client/browser can have a Certificate _common_ to a group, for purposes of authentication in point [1]. I suspect that you would be better off generating a certificate for each client, but that probably depends on your requirements. [3] Will we need to become our own Certificate Authority, or would this work just as well with self-signed Certificates, and without any upline authority? You will need to be a CA, and the both the server cert and the clients' certs will need to be signed by that CA. In addition, the server config needs to point to the CA's cert so that it can verify the clients' certs. The clients should have the CA's cert installed as well or else each client will complain when they connect because they don't recognize the server's certificate signer. This isn't strictly necessary, as long as your users can be trained to permanently accept the unknown cert the first time they connect. Note that all this could become very onerous if your application isn't targeted at a closed group of users (i.e., it's something on the Internet). -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: segfault while loading perl script on irssi.
On Thu, Oct 02, 2003 at 06:05:25PM +0200, flibus wrote: I took a look on bugs.debian.org but i didn't find any bug report about this one. I'm on a testing/unstable debian with a 2.4.21 kernel taken from the kernel source pacakges and irssi segfault while i want to load perl scripts. In /etc/apt/source.list i got : deb http://ftp.us.debian.org/debian/ unstable main non-free contrib deb-src http://ftp.us.debian.org/debian/ unstable main non-free I'm not sure of the packages which got a problem (if one got a problem) and i don't know other people who got the same problem (i didn't really search). So if you got a solution don't hesitate to reply :) It's related to the perl 5.8.1 upgrade. Supposedly, 5.8.1 is ABI compatible with 5.8.0, but it seems that it is not, because software that has an embedded perl interpreter seems to be segfaulting (mod_perl, irssi, xchat, etc.). This was discussed a bit on debian-perl, but I don't know if any bugs were filed. In the meantime, you can rebuild irssi, or you can downgrade perl. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Bob Dylan - I And I (Real Live) signature.asc Description: Digital signature
Re: changing hard returns to soft ones
On Mon, Sep 29, 2003 at 02:09:45PM -0400, Emma Jane Hogbin wrote: I'm interested in printing a Gutenberg Project text (it's ok, I'm a bookbinder--printing is typical behaviour for me). The problem is the line breaks in the .txt files. Does anyone know how I could convert single hard returns into a white space? It must be some variation of: # mac file to Unix file: tr '\015' '\012' old.txt new.txt ...but I'm not sure what the octal value (?) is for a hard return. In a text file, there is no such thing as hard return; line endings are coded with a linefeed character (012).. You could translate all linefeeds to spaces: tr '\012' ' ' old.txt new.txt However, this would also convert legitimate paragraph breaks into spaces, and the result would be one really big line of text. If you knew that paragraphs are always separated by a blank line and that there were no instances of double blanks anywhere else, then you could refilter the text to turn all double blanks back into linefeeds. The following might work for you, if you don't care about losing legitimate extra spaces from the text: sed 's/ */ /g' old.txt | tr '\012' ' ' | sed 's/ */\n/g' new.txt ^^ ^ ^ Change multi- Convert line-Convert multi- spaces intofeed to space. space back into single spaces. linefeeds. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Blue Aeroplanes - Angelwords (Beatsongs) signature.asc Description: Digital signature
Re: Subversion apache module will not load in unstable
On Mon, Sep 29, 2003 at 02:50:27PM -0400, Fraser Campbell wrote: I've been running subversion on an unstable server for quite a while. A while ago (over a month I'd say) it stopped working following an upgrade. Subversion has been through a few upgrades in the meantime but still willl not load. Here's the error message that I get: Restarting web server: Apache2Syntax error on line 2 of /etc/apache2/mods-enabled/dav_svn.load: Cannot load /usr/lib/apache2/modules/mod_dav_svn.so into server: /usr/lib/apache2/modules/mod_dav_svn.so: undefined symbol: svn_pool_clear Line 2 of /etc/apache2/mods-enabled/dav_svn.load is simply this, there is only one other line in the file and it is commented: Works for me: /etc/apache2/mods-enabled: dav.conf - ../mods-available/dav.conf dav_fs.load - ../mods-available/dav_fs.load dav.load - ../mods-available/dav.load dav_svn.conf - ../mods-available/dav_svn.conf dav_svn.load - ../mods-available/dav_svn.load ldap.load - ../mods-available/ldap.load ssl.conf - ../mods-available/ssl.conf ssl.load - ../mods-available/ssl.load zauth_ldap.load - ../mods-available/auth_ldap.load ii libapr02.0.47-1 The Apache Portable Runtime ii libsvn00.30.0-1 Subversion shared libraries - in development ii subversion 0.30.0-1 Advanced version control system - in develop -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Blue Aeroplanes - Sixth Continent (Beatsongs) signature.asc Description: Digital signature
Re: Easy way to share deb files?
On Fri, Sep 26, 2003 at 11:07:27PM +0200, Raffaele Sandrini wrote: Im looking for an easy method to share debian files. Im running several sid machines here. I used to upgrade them every week. Till now i did a dist-upgrade on evey machine wich the downloads all the packages on its own. All these machines have many identical packages installed. Since APT saves each deb file it downloads it would be cool to do the upgrade the one machine and let the others use that one as source and try to get all packages from there and only download packages wich are not avail on the first machine... Ist this somehow (ev without settuing up a debian mirror) possible? apt-mirror is one way. I prefer to use a caching HTTP proxy, like squid, which makes it completely transparent. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Sheryl Crow - Home (Sheryl Crow) signature.asc Description: Digital signature
Re: SU shows my password at terminal
On Thu, Sep 25, 2003 at 01:39:03PM -0700, [EMAIL PROTECTED] wrote: Sometimes, when I type SU and then start typing my password really fast, a few of the keystrokes will be echod to the screen -- usually when the system is only under moderate load and I'm not expecting it to be slow. It happens in X with gnome-terminal and also sometimes just at the console. It's a real usability hassle. Suggestions? other than expect that, and don't do it? You need to give su time to convert the tty to noecho. The slower the system, the longer it will take to do this. Your only choice is to wait that amount of time. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Bob Mould - Heartbreak A Stranger (Workbook) signature.asc Description: Digital signature
Re: Verislime
On Tue, Sep 23, 2003 at 07:36:42PM +, Stephen Patterson wrote: On Tue, 23 Sep 2003 05:00:18 +0200, [EMAIL PROTECTED] wrote: Anyone care to calculate how many domains that would be? ;) Given that they're using IP4 addressing, anything up to 4 billion (less currently assigned hosts). Your math is wrong. DNS != IPv4. The number is actually much higher than 4 billion. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL signature.asc Description: Digital signature
Re: record sound...
On Mon, Sep 22, 2003 at 08:31:31PM +0200, LeVA wrote: I am not using alsa :). Any other ideas? Or programs? gramofile has a sound recording feature. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Peter Case - Something Happens (Flying Saucer Blues) signature.asc Description: Digital signature
Re: Similar app for Disk Catalog?
On Sun, Sep 07, 2003 at 06:16:03AM +0800, [EMAIL PROTECTED] wrote: There's this handly tool: http://www.rob.cybercomm.nl/diskcat/index.html I found for windows, is there an app similar to this? It basically scans cd's, directories for filenames/directories and catalogs them, it then saves the database into a file for viewing/searching using the tool. Perhaps gtktalog is what you want? -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL pgp0.pgp Description: PGP signature
Re: Script help
On Sat, Sep 06, 2003 at 10:03:09PM -0400, Jeff Elkins wrote: I'm doing a lot of work with a Sharp Zaurus which requires several re-flashes of the box daily - With my initrd.bin, ssh keys on the Z regenerate with each flash. As a consequence, my host .ssh/known_hosts is frequently outdated and I must edit it to remove references to z,xxx.xxx.xxx.xxx. I'd like to gen up a script to nuke references in .ssh/known_hosts to the Zaurus. It's trivial to edit known_hosts, but I'd like to eliminate this step. perl -ni.bak -e 'print unless /^z,xxx.xxx.xxx.xxx/' ~/.ssh/known_hosts -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL pgp0.pgp Description: PGP signature
Re: IMAP with virtual users
On Fri, Aug 29, 2003 at 05:53:43PM -0700, Paul Burkett wrote: I can see the users being added to the tables in the database, but I'm still unable to log in using squirrelmail and imp. The only thing that I can see wrong is this: debian-server:/var/log/apache# tail -f /var/log/syslog Aug 29 11:00:25 debian-server postfix/smtpd[6969]: fatal: dict_open: unsupported dictionary type: mysql ^^ Do you have postfix-mysql installed? -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL pgp0.pgp Description: PGP signature
Re: Piping file to scp
On Sat, Aug 30, 2003 at 07:26:08AM -0700, [EMAIL PROTECTED] wrote: On Sat, Aug 30, 2003 at 09:47:37AM +0200, Neo wrote: On Sat, 2003-08-30 at 07:17 , [EMAIL PROTECTED] wrote: I wanted to send an attachement directly from mutt to another machine. Is there a way to pipe to scp? So in mutt, select the attachement and then: | scp other.host:some_file.name mutt ... | ssh [EMAIL PROTECTED] 'cat /folder/archive.tar.gz' Can someone explain that one? That expects a file named [EMAIL PROTECTED] if the : is missing, IIRC. If you look closely, he's using ssh, not scp. In fact, scp can be mostly done with ssh [EMAIL PROTECTED] 'cat /path/to/dest' /path/to/source This won't preserve perms and other meta-data, but the files at each end will be the same. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL pgp0.pgp Description: PGP signature
Re: Need help with mutt
On Thu, Aug 28, 2003 at 09:59:58PM -0600, Paul E Condon wrote: I want to change the way mutt displays email. Mutt displays a bunch of stuff that starts with Envelope-to: and continues thru X-Spam-Status: to Resent-Bcc: Add this to your muttrc: ignore * unignore from date subject to cc unignore organization organisation x-spam-score Add unignores for any other headers you're interested in. Use the H key to toggle between all headers and just the unignored headers. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL pgp0.pgp Description: PGP signature
Re: some reality about iptables, please
On Tue, Aug 26, 2003 at 09:12:15PM -0400, Bret Comstock Waldow wrote: I can find all the sites and advice I want about how to form iptables rules, but I can't find any decent discussion of how to enable the damn things. For network interfaces, I usually stick it as a pre-up item in the /etc/network/interfaces file: iface eth1 inet static address xxx netmask xxx network xxx broadcast xxx gateway xxx pre-up /etc/firewall/iptables.eth1 start post-down /etc/firewall/iptables.eth1 start For PPP connections, stick a script in the /etc/ppp/ip-up.d directory. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [OT] C++ question re. dyn. mem.
On Wed, Aug 06, 2003 at 10:36:42AM -0400, MJM wrote: On Wednesday 06 August 2003 01:02, Dave Carrigan wrote: Language experts sure get their shorts knotted up over simple questions. Because your question had to do with undefined and implementation-dependent behavior. I know that. See my other posts. I asked a question about handling dynamic memory not type casting. I changed what I was doing to use templates and made a container class (probably did it wrong, but I don't care at this point). You asked a question about using the delete operator an pointer to an object that had been cast from a different object. That behavior is undefined in C++. I got dragged over the coals for type casting - something used often in the kernel. Nobody is saying that casts are bad. But, the kernel is written in C. What happens in C system programming is irrelevant to C++ application programming. Well designed C++ applications should require significantly less casting, and most of those will be static_casts, and maybe some const_casts, and probably never reinterpret_casts, which is what your example was doing. To me, it didn't sound like chastisement. However, any good C++ programmer will cringe when they see a C-style cast, and will point it out. Any learning C++ programmer would do well to take the advice when it is given. Knowledge of how to use C++ casts hardly falls in the realm of the language experts. Type casting works in my application on Intel 32bit Linux. Using casts is useful in my work with bit oriented telephony signaling protocols where you have to count bits and octets because parameter structures in messages are dynamic. I am _not_ going to add all sorts of portability enhancing do-dads that make C++ even more difficult to read than it already is. If what I make is useful and someone wants it on a different platform, then we'll discuss a new project. That's all just great. I'm very happy for you. But, you should change the sentence to read type casting works in my application on Intel 32bit Linux when compiled with gcc 3.2 and libstdc++ 3.3. Without testing, you cannot know that the statement is true for any other combination of gcc and libstdc++. If your programs use undefined behavior that rely on a specific version of a specific vendor's compiler on a specific operating system, your programs will eventually break and your maintainers will hate you. It is unreasonable to expect application experts to be language experts. I would hardly call it unreasonable. If you don't understand the language you're using, then how can you expect to write a reliable application? It's good if they are but it's not necessary. I say it's better to create more things with bad code than to create less things with elegant and easily portable code. I hear Microsoft is still hiring. It sounds like you would fit right in. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [OT]: CVS replacement
On Fri, Aug 08, 2003 at 03:18:00PM +0100, Colin Watson wrote: On Fri, Aug 08, 2003 at 06:53:15AM -0700, Dave Carrigan wrote: Not all your history, sadly. Branches and tags are lost. Is this still true? Recent versions of cvs2svn claim to have fixed this. As of 0.25-0.1, which was the last time I used it. And in the latest sid version, it's still not supported, at least according to the man page: LIMITATIONS cvs2svn currently does not handle tags or branches. Maybe the man page was lying, but unfortunately, it's a bit late for me :-( -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [OT]: CVS replacement
On Fri, Aug 08, 2003 at 07:38:55AM -0600, Wesley J Landaker wrote: I have always had really great luck with subversion. It has customizable transports, and comes built in with support for working over http, which is wonderful for distributed projects. It even has a cvs repository converter that will save all your history. =) Not all your history, sadly. Branches and tags are lost. However, I do use subversion, and like it. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [OT]: CVS replacement
On Fri, Aug 08, 2003 at 03:48:44PM -0400, Joey Hess wrote: The man page is out of date. cvs2cvn supports branches and tags, though it does have a number of other bugs and limitations. I guess it serves me right for reading the documentation instead of reading the source :-) -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Mozart - 1. Allegro (Piano Concerto in D minor, K. 466) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Newbie imapd Question
On Mon, Aug 11, 2003 at 01:13:40PM -0700, Curtis Spencer wrote: I have been running postfix on my server for a while and I am able to get mail to my accounts just fine. However, I want to put in an imapd server, so I decided to aptitude install of cyrus-imapd. That install seemed to work properly. If you're just starting with cyrus, you really want to get the cyrus21-imapd instead. If you're running woody, there's backports available by the same guy who maintains the package for testing/unstable. Now I would like to just run it stand alone without any inetd, so I just type in: /usr/sbin/imapd and I get * OK host Cyrus IMAP4 v1.5.19 server ready It can't run standalone; it's meant to run out of inetd. Cyrus21 runs standalone. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Toad the Wet Sprocket - So Alive (In Light Syrup) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [OT] C++ question re. dyn. mem.
On Tue, Aug 05, 2003 at 11:21:04PM -0400, MJM wrote: On Monday 04 August 2003 21:40, Sebastian Kapfer wrote: // change the way it is accessed to prove a point int * p_b = (int *) p_a; Ouch. Try this in /usr/src/linux/kernel $ grep *\) *.c Well, C is not C++, so grepping C source will not really prove anything. One should also note that the C-style casting operator is considered bad style in C++. The politically correct way to rewrite your example is int *p_b = reinterpret_castint *(p_a); By whom? Your example is nowhere to be found in my C++ books by Bjarne. So you are saying that Bjarne promotes bad style in his books? Why not tell him: http://www.research.att.com/~bs/homepage.html Try Meyers' More Effective C++. Besides, reinterpret_cast is probably a template function doing this: return ((T) x); // type conversion using cast No, it is an operator, and part of the language. There are four new casting operators in C++ that were added to be used in place of the C-style cast syntax. If you're writing it C++, you really should use the proper casting operators. But, if you only believe things written by Bjarne, try http://www.research.att.com/~bs/bs_faq2.html#static-cast That way, you're clearly stating the intent of the cast. It is up to your compiler what it makes of this statement; the C++ standard doesn't cover such abuse. Language experts sure get their shorts knotted up over simple questions. Because your question had to do with undefined and implementation-dependent behavior. I've known some killer programmers and none of them have quoted a language specification in conversation. That was way over the top. That stuff is for compiler writers, not application programmers. Application programmers should be aware of what aspects of their language of choice are not portable or implementation-dependent. That includes portability between different compilers and even different versions of the same vendor's compiler. That code was not portable, and could break just by doing something as innocuous as upgrading the C++ library. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Doesn't MY_ENV=abc printf ${MY_ENV}\n suppose to print abc?
On Sun, Aug 03, 2003 at 01:50:18AM +0300, Shaul Karl wrote: Your proposal has some side effects which might be undesirable. More specifically, with your proposal MY_ENV will be set until you explicitly unset it or exit the shell. With what I tried to do, MY_ENV will only be set for the following command. There will be no need to explicitly unset it or exit the shell in order for it to disappear afterwards. In addition, the construct I am trying to use is a well known construct and the man page says it should work. Is it a bug? I think you're a little confused on how the shell does variable expansion. Anything in soft quotes (the double quote) is expanded before the command is executed. Thus, the value of MY_ENV is expanded before the printf program is run. The printf command *does* have the MY_ENV variable in its environment; it just doesn't use it. If you read the man page more closely, you'll see that it explicitly says that what you want will *not* work. Specifically: SIMPLE COMMAND EXPANSION When a simple command is executed, the shell performs the following expansions, assignments, and redirections, from left to right. 1. The words that the parser has marked as variable assignments (those preceding the command name) and redirections are saved for later processing. 2. The words that are not variable assignments or redirections are expanded. If any words remain after expansion, the first word is taken to be the name of the command and the remaining words are the arguments. 3. Redirections are performed as described above under REDIRECTION. 4. The text after the = in each variable assignment undergoes tilde expansion, parameter expansion, command substitution, arithmetic expansion, and quote removal before being assigned to the vari- able. If no command name results, the variable assignments affect the current shell environment. Otherwise, the variables are added to the environ- ment of the executed command and do not affect the current shell envi- ronment. If any of the assignments attempts to assign a value to a readonly variable, an error occurs, and the command exits with a non- zero status. Thus, the variables are not assigned until step 4, while the expansion is done in step 2. In addition, pay extra attention to the last paragraph, which says variables are added to the environment of the executed command and do not affect the current shell environment. Using your original problem as an example: MY_ENV=foo printf ${MY_ENV}\n Step 1, set aside variable assignments, leaving printf ${MY_ENV}\n Step 2, expand variables, leaving printf \n Step 3, perform redirections (none applicable). Step 4, expand variable assignments and add them to the environment of the printf command (NOT to the environment of the shell) and run the command. Thus, printf runs with a single parameter (``\n'') and with MY_ENV in its environment. Here's what happens if you try to prevent expansion by using hard quotes: $ MY_ENV=abc printf 'My env is ${MY_ENV}\n' My env is ${MY_ENV} So you see, printf doesn't actually handle environment variables. If you want a demonstration that this really works the way it's documented, you need to run a program that lets you examine environment variables. Observe: # FOO is unset $ echo $FOO $ env | grep FOO $ perl -e 'print $ENV{FOO}, \n;' # Now, set FOO as a local shell variable $ FOO=bar $ env | grep FOO $ perl -e 'print $ENV{FOO}, \n;' # Now, export FOO to the environment $ export FOO $ env | grep FOO FOO=bar $ perl -e 'print $ENV{FOO}, \n;' bar # Un-set FOO $ unset FOO $ env | grep FOO $ perl -e 'print $ENV{FOO}, \n;' # Now, use variable assignment notation to set FOO for a subcommand $ FOO=bar env | grep FOO FOO=bar $ FOO=bar perl -e 'print $ENV{FOO}, \n;' bar # Note that FOO is still not set in the current shell $ echo $FOO $ env | grep FOO $ -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Doesn't MY_ENV=abc printf ${MY_ENV}\n suppose to print abc?
On Sun, Aug 03, 2003 at 06:57:44AM -0400, Shawn Lamson wrote: On Sat, August 02 at 12:08 PM EDT Dave Carrigan [EMAIL PROTECTED] wrote: The MY_ENV=abc printf syntax sets the environment variable for the printf subprocess. And, in fact, when printf runs, MY_ENV is truly set to abc. However, the ${MY_ENV}\n is expanded *before* printf is executed, and since MY_ENV is not set in the existing shell, the expansion results in an empty string. The printf command doesn't even see MY_ENV in its arguments, all it sees is a single argument that looks like ``\n''. Can you elaborate a little more on this? I am curious, too. After reading your email I tried this: [EMAIL PROTECTED]:~$ unset COMMAND [EMAIL PROTECTED]:~$ COMMAND=printf $COMMAND x${COMMAND}\n bash: x\n: command not found [EMAIL PROTECTED]:~$ COMMAND=printf $COMMAND x${COMMAND}\n xprintf [EMAIL PROTECTED]:~$ Your second command is not a good example because it is actually a complex command consisting of two simple commands and a conjunctive. An equivalent syntax would be COMMAND=printf if [ $? = 0 ]; then $COMMAND x${COMMAND}\n fi It should be clear that the above is very different than COMMAND=printf $COMMAND x${COMMAND}\n It will also set COMMAND in the current shell, which the original poster seems not to want. So it seems that the variable is not assigned even for the subprocess. See my other message that goes into this in more detail. Does the shell see programs to execute before it looks to do variable substitution? I know the first things it sees are pipes and redirects but I don't know more. Actually, the first thing it does is variable expansion, before it sets up the redirects. I must admit I had never thought of just running a command after an assignment so it has never come up. Bug hunting is great, but if the OP needs a solution for something, what about this: [EMAIL PROTECTED]:~$ unset MY_ENV [EMAIL PROTECTED]:~$ (MY_ENV=abc printf x${MY_ENV}\n) xabc [EMAIL PROTECTED]:~$ echo x$MY_ENV x [EMAIL PROTECTED]:~$ This is pretty close, but is not actually exporting MY_ENV to the subshell. The reason it looks like it worked is because MY_ENV was expanded before printf even saw it. This would export a variable to the subshell but still let it be expanded on the current command without setting it in the current shell: $ (export MY_ENV=abc printf ${MY_ENV}\n) However, I have no idea why this should be considered useful. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [OT] Utility to lookup hosts on an IP address
On Sun, Aug 03, 2003 at 01:47:37PM +, Hall Stevenson wrote: Is there a tool along the lines of nslookup, dig, host, and so on that can list what websites, i.e. domain names, are hosted on a particular IP address ?? No. The host command will tell you what the reverse name of an IP address is: $ host www.rudedog.org www.rudedog.org CNAME gw.rudedog.org gw.rudedog.org A 206.124.142.242 $ host 206.124.142.242 Name: dsl-142-242.sea.blarg.net Address: 206.124.142.242 However, there is no way to figure out that 206.124.142.242 is www.rudedog.org, www.chezcarrigan.com, gallery.chezcarrigan.com, etc. The only feasible way to do that would be to transfer every single DNS zone on the known internet(*) and find the A records that pointed to 206.124.142.242, and even then, that wouldn't tell you exactly what you want to know. Note that Apache's mod_info can tell you all of the virtual hosts on a single IP, but the Apache admin would first have to enable it and second would have to be stupid (or brave) enough to allow access to it on the public internet. (*) This is an exercise left for the reader. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Doesn't MY_ENV=abc printf ${MY_ENV}\n suppose to print abc?
On Sat, Aug 02, 2003 at 08:49:36PM +0300, Shaul Karl wrote: According to my understanding of the manual page, $ MY_ENV=abc printf ${MY_ENV}\n Should have print abc. But it does not: $ MY_ENV=abc printf ${MY_ENV}\n What am I missing? The MY_ENV=abc printf syntax sets the environment variable for the printf subprocess. And, in fact, when printf runs, MY_ENV is truly set to abc. However, the ${MY_ENV}\n is expanded *before* printf is executed, and since MY_ENV is not set in the existing shell, the expansion results in an empty string. The printf command doesn't even see MY_ENV in its arguments, all it sees is a single argument that looks like ``\n''. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: nfs problem
On Wed, Jul 30, 2003 at 12:31:13AM -0400, gerard wrote: Everything was working fine with my nfs, rebooted, and now when I try to mount an nfs drive this is the error I get mount: RPC: Unable to receive; errno = Connection refused. Any ideas? I havent changed anything either, thats why I find it strange. There have been some bugs in recent versions of nfs-kernel-server and/or nfs-common. Make sure you're running the most recent ones or else downgrade to 1.0.3-1. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: combining multiple ip's into one variable on iptables script?
On Wed, Jul 30, 2003 at 01:20:47PM +0100, Mark C wrote: i.e I use ftp.www.mirror.ac.uk running nslookup on this gives me multiple ip addresses, I could create a variable for each IP, i.e APT_MIRROR_AC_UK_1=194.83.57.3 APT_MIRROR_AC_UK_2=194.83.57.7 and so forth, then create rules that allow outbound connections to each of theses sites, is it possible to combine them all into one variable, like APT_MIRROR_AC_UK=194.83.57.3, 194.83.57.7 iptables only allows a single netblock per rule (where a netblock can be as small as a single host when it's specified as /32). You have two choices. You could specify ftp.www.mirror.ac.uk as 194.83.57/29, which actually open up all hosts in the range of 194.873.57.0 to 194.83.57.7. Or you could change your iptables scripts so that they treat each host variable as a list, and loop over the list: APT_MIRROR_AC_UK=194.83.57.3 194.83.57.7 for host in $APT_MIRROR_AC_UK; do iptables -A block ... -s $host -j ACCEPT done This still would work correctly even if at a later date you changed APT_MIRROR_AC_UK to only be a single host. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: nfs problem
On Wed, Jul 30, 2003 at 10:28:29AM -0500, Ron Johnson wrote: On Wed, 2003-07-30 at 07:51, Dave Carrigan wrote: Make sure you're running the most recent ones or else downgrade to 1.0.3-1. # dpkg -l | grep nfs ii nfs-common 1.0.3-2 NFS support files common to client and serve ii nfs-kernel-ser 1.0.3-2 Kernel NFS server support ^^^ You have to downgrade to 1.0.3-1. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Building a mail server
what's available for a server-side filter, and what MTAs it's compatible with. Sendmail is the tried and true proven system, but from what I understand it doesn't support maildirs, which makes postfix look good, as postfix also seems very popular. Cyrus uses LMTP, so anything that can deliver to LMTP will work. Sendmail and Postfix can both use LMTP. BTW, I have this setup for both my home network, and the network I administer at work. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Crash Test Dummies - Comin' Back Soon (The Bereft Man's Song) (The Ghosts That Haunt Me) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: New Sarge NFS Server Unexporting after certain interval?
On Wed, Jul 30, 2003 at 03:51:49PM -0500, Ian Melnick wrote: I went through the same steps and mindset but after reading other posts about nfs problem, I back-reved my nfs-kernel-server and my problems went away. Thanks. Is there a straightforward way for doing that? Go to snapshot.debian.net and find the old .debs. Use the changelog.Debian.gz file to figure out how far back in time you need to go. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Crash Test Dummies - The Voyage (The Ghosts That Haunt Me) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: nfs problem
On Wed, Jul 30, 2003 at 06:39:52PM -0500, Ron Johnson wrote: Thanks. Does sid's 1.0.5-1 work? Yes, seems to be working for me. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Dream Academy - The Edge Of Forever (The Dream Academy) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: batch renaming for filenames with space
On Sun, Jul 27, 2003 at 12:45:26PM +0300, Micha Feigin wrote: I am trying to do a batch rename for a bunch of files with spaces in the name (in order to remove the spaces actually). I tried to use bash's for .. in command but it splits up the lines on spaces and not on line ends. Any ideas? The files are named Copy of ... and I want to drop the Copy of part. I tried to do for file in `ls -1`; do cp $file `echo -n $file | sed 's/Copy of \(.*\)/\1/'` done Assuming you're using bash: for f in *; do cp $f ${f/Copy of /} done -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Tom Petty And The Heartbreakers - Jammin' Me (Let Me Up (I've Had Enough)) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]