Re: ssh session times out annoyingly fast, why?
On Wed, Sep 23, 2020 at 11:49 AM Greg Wooledge wrote: > > On Wed, Sep 23, 2020 at 10:30:15AM +0300, Anssi Saari wrote: > > Britton Kerin writes: > > > I'm using ssh from a debian box to a rasberry pi (sorta debian also :). > > > > > > For some reason ssh sessions seem to time out pretty quickly. > > How quickly, exactly? What is the actual message/behavior you see when > it happens? Are they both on the same LAN, or is there some complexity > in between them (especially a NAT router)? > > > Well, the keepalives themselves can cause a disconnect if the keepalive > > messages are not reaching the other end due to bad connection for > > example. Looks like by default in Debian client sends keepalives if > > server is quiet but server doesn't send keepalives to a client. > > The normal reason people need to use ServerAlive or ClientAlive is NAT. > If your connection from ssh client to ssh server goes through a NAT > router, the router may keep track of activity on that connection, and > drop the translation when it goes idle for 5 minutes or so. Forcing the > *Alive packets to happen every few minutes prevents a NAT timeout. > > If there is no NAT involved, then I agree with the previous suggestion > that this might be a shell's TMOUT variable. Are you sitting at a shell > prompt when the "timeout" occurs? Does the timeout stop occurring when > you're inside a text editor, for example? Looks like NAT was the culprit, because top kept it alive. Internet has bogus advice on this one because it suggests ServerAliveInterval 1200 or something which I guess is larger than most firewall timeout. Thanks for all help good to see debian community still so good. Britton
ssh session times out annoyingly fast, why?
I'm using ssh from a debian box to a rasberry pi (sorta debian also :). For some reason ssh sessions seem to time out pretty quickly. I've tried setting ClientAliveInterval and ClientAliveCountMax and also ServerAliveInterval and ServerAliveCountMax, but it doesn't seem to make any difference. Is there some other setting somewhere that affects this? Thanks, Britton
looking for a replacement for debian since systemd
I see from below vote that we're working on dumping other init systems now as expected. Luckily I've given up on debian since systemd in the first place and am in long process of finding a replacement. Britton > - - -=-=-=-=-=- Don't Delete Anything Between These Lines =-=-=-=-=-=-=-=- > 7b77e0f2-4ff9-4adb-85e4-af249191f27a > [ 3 ] Choice 1: F: Focus on systemd > [ 1 ] Choice 2: B: Systemd but we support exploring alternatives > [ ] Choice 3: A: Support for multiple init systems is Important > [ ] Choice 4: D: Support non-systemd systems, without blocking progress > [ 2 ] Choice 5: H: Support portability, without blocking progress > [ ] Choice 6: E: Support for multiple init systems is Required > [ ] Choice 7: G: Support portability and multiple implementations > [ 4 ] Choice 8: Further Discussion > - - -=-=-=-=-=- Don't Delete Anything Between These Lines =-=-=-=-=-=-=-=-
Re: make ping executable by normal users?
On Thu, Jun 2, 2016 at 2:33 PM, Santiago Vila wrote: > On Thu, Jun 02, 2016 at 01:56:08PM -0800, Britton Kerin wrote: >> On my old debian system I could ping as a normal user. The ping >> binary had the suid bit set. Now I get: >> >> $ ping www.google.com >> ping: icmp open socket: Operation not permitted >> 2 $ >> >> presumably because the bit isn't set. >> >> What's the right fix? I could setuid it but then if I understand >> correctly it might get changed back by an upgrade. Does it use >> capabilites or something? > > Yes, it uses capabilities. The simple fix is to do this: > > dpkg-reconfigure iputils-ping Well, that works, thanks. But I really don't get the overall behavior. It says this: root@debian:/home/bkerin# dpkg-reconfigure iputils-ping Setcap worked! Ping(6) is not suid! root@debian:/home/bkerin# And then ping works for non-root users. How, just by executing dpkg-reconfigure, did I tell it this is what I wanted? If that's the default, why wasn't it that way to begin with? More generally, is it somehow possible to still run debian without capabilities? I hate them. The simple root-or-not security model is much simpler and doesn't promise more than it can really deliver. I'm sad to see capabilities now as the default. Britton
make ping executable by normal users?
On my old debian system I could ping as a normal user. The ping binary had the suid bit set. Now I get: $ ping www.google.com ping: icmp open socket: Operation not permitted 2 $ presumably because the bit isn't set. What's the right fix? I could setuid it but then if I understand correctly it might get changed back by an upgrade. Does it use capabilites or something? Thanks, Britton
Re: wireless without network-manager... is it still possible?
On Thu, May 26, 2016 at 11:29 AM, Brian wrote: > On Wed 25 May 2016 at 21:21:14 -0800, Britton Kerin wrote: > >> On Mon, May 23, 2016 at 9:32 AM, Brian wrote: >> > >> > The OP deposited his FUD in -user (twice), completely ignored the >> > invitation to explore a technical solution using ifupdown and has now >> >> Regardless of ifupdown, I want network-manager to work >> like it's supposed to, i.e. the same way in a dbus-launch-spawned >> session as under gnome. It doesn't. That a bug, not FUD. > > https://lists.debian.org/debian-user/2016/05/msg00939.html > > You might want to pursue this response, either on -user or in your own > time; it appears very useful. It is not something I want to do but looks > to be right up your street. The poster doesn't see any bug there. > > For myself, I'll have to remember that subject titles might bear no > resemblance to the problem in search of a solution. ifupdown is used > throughout the North American continent (Canada, Mexico, the U.S.A etc), > and, excepting hardware problems, it and the supplicant do a good job. > > Life is too short to worry about whether network-manager delivers the > goods. Just use ifupdown and wpa_supplicant and you will live happily > ever after. Thanks for this response. Modulo some issues with rfkill it's the correct approach. I'm sorry for the insults in my original post and for being so combative with you. Regarding network-manager, I think you're entirely right. It was flaky 10 years ago, it still seems flaky, time to just avoid it forever. Britton
Re: wireless without network-manager... is it still possible?
On Mon, May 23, 2016 at 9:32 AM, Brian wrote: > On Mon 23 May 2016 at 09:07:36 +0200, to...@tuxteam.de wrote: > >> On Sun, May 22, 2016 at 11:38:39PM +0100, Lisi Reisz wrote: >> > On Sunday 22 May 2016 22:56:36 Richard Owlett wrote: >> > > >> > > So what ever B says goes? >> > > Please *NO* ! >> > >> > Richard - this snipping is very misleading. It was not Tomas whom Brian >> > was >> > calling incompetent - in fact, quite the opposite. I can't quite see why >> > Tomas has taken such fright, except that both the others were putting >> > things >> > rather strongly. But *nothing* that Brian said could reasonably have been >> > interpreted, as you appear to have done, as Brian telling Tomas to leave >> > the >> > thread. >> >> Exactly, Lisi. I'm too old to watch people slinging mud at each other >> ("asshole", "incompetent") like kids. I mean, I feel strongly about >> software, that's why I'm here, and I feel strongly about free software >> and its social value, but my time is just too precious for that nonsense. >> >> So you got it right. > > The OP deposited his FUD in -user (twice), completely ignored the > invitation to explore a technical solution using ifupdown and has now Regardless of ifupdown, I want network-manager to work like it's supposed to, i.e. the same way in a dbus-launch-spawned session as under gnome. It doesn't. That a bug, not FUD. > taken himself off to -devel, which is not renowned for suffering the > spreading of misinformation. There's agreement on devel that it's not FUD. I posted a detailed description of the problem there. Go read it and send me something useful instead of more groundless claims that bug reports on network-manager are FUD. > One hopes his transition to there was not > due to anything *I* said and he gets a glimmer of clue, :) It was partly due to you, I'm hoping for more substantive responses there. Britton
Re: wireless without network-manager... is it still possible?
On Sun, May 22, 2016 at 1:56 PM, Richard Owlett wrote: > On 5/22/2016 3:23 PM, to...@tuxteam.de wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On Sun, May 22, 2016 at 08:35:22PM +0100, Brian wrote: >>> >>> [...] it merely indicates your incompetence. >> >> >> Folks, I'm out of this thread. >> > > So what ever B says goes? > Please *NO* ! Not a problem, since he didn't actually say anything worth responding to. Britton
Re: wireless without network-manager... is it still possible?
On Sat, May 21, 2016 at 10:44 PM, wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Sat, May 21, 2016 at 09:02:15PM -0800, Britton Kerin wrote: >> somehow network-manager makes it work. But I've had it with gnome, and none >> of the command line tools or references I've found work. That >> includes /etc/network/interfaces, >> direct use of ifconfig,iw,ip,rfkill,wpa_supplicant,dhclient, and >> wicd-client (though it's not really what I want. > > I have wireless working (right now) without Network Manager, via > ifupdown, on jessie/sid. > >> Is this even still possible or have the systemd assholes decided we >> shouldn't be doing it? > > Now, now. I don't like systemd myself (and manage to avoid it, I'm > still using SysV init), but treating free software developers as Nice to hear that's still possible, the general tone I've seen so far as I look at this is that its a huge pain even on gentoo and almost impossible elsewhere. > "assholes" seems highly inappropriate. Well it's the customary term for people with the attitude that they constantly and deliberately exhibit. >> I believe the problem with the traditional wpa_supplicatn approach is >> related to syslog entries like >> these: >> >> May 21 17:00:06 debian kernel: iwlwifi :02:00.0: can't access the >> RSA semaphore it is write protected > > Sorry I can't help you with that specific one. But search engines give > some hits which look relevant, like e.g. > > <https://bbs.archlinux.org/viewtopic.php?id=210306> I saw that, but if it needs a new firmware, it seems that network-manager is pulling it in somehow, so it looks like the problem is that the old interfaces don't and no one has noticed. >> But as I say somehow network-manager makes it work. >> >> I just got a new laptop after 10 years, I didn't realize how bad the >> situation has become with systemd udev gnome etc. > > Then help others keeping the alternatives up and running. No clients? > No product! I'm trying. I'll report when it works. Trying to run nmcli fails from other window managers with dbus errors, which it absolutely shouldn't do since network-manager is running. Same with nm-connection-editor and wicd-client, they are all apparently dependent on dbus now, and dbus doesn't appear to work correctly without a gnome session going. So I need gnome running to talk to my network card. How fcking ridiculous. It should be a kernel function but it looks like the only tested configuration involves all of this wobbly stack of garbage. Isn't this exactly what we were promised wasn't going to happen when debian went with systemd? Britton
wireless without network-manager... is it still possible?
somehow network-manager makes it work. But I've had it with gnome, and none of the command line tools or references I've found work. That includes /etc/network/interfaces, direct use of ifconfig,iw,ip,rfkill,wpa_supplicant,dhclient, and wicd-client (though it's not really what I want. Is this even still possible or have the systemd assholes decided we shouldn't be doing it? I believe the problem with the traditional wpa_supplicatn approach is related to syslog entries like these: May 21 17:00:06 debian kernel: iwlwifi :02:00.0: can't access the RSA semaphore it is write protected But as I say somehow network-manager makes it work. I just got a new laptop after 10 years, I didn't realize how bad the situation has become with systemd udev gnome etc. Britton
easiest way to shut down all network services besides ssh?
I have a system that I would like to make accessible only by ssh. No apache telnet ftp anything else. What is the easiest way to achieve this? It came from a vendor with a slew of package of all sorts, so I don't even know everything that I want to remove. Thanks, Britton -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/cac4o8c_s_bqvye980fj2ok+qdeeinkmcp3u0aqcw4hjsri5...@mail.gmail.com
how to make gnome SHUT DOWN when I say SHUT DOWN
Sometimes firefox doesn't really exit (despite all its windows being closed) so when I say shutdown gnome pops up this dialog asking if I want to shutdown despite a running process. Then my laptop gets put in its bag and tries to cook itself to death. Is there a way to explain to gnome that when I say shutdown, I mean SHUTDOWN NOW, REGARDLESS OF STUPID BROKEN PROCESSES? Thanks, Britton -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/CAC4O8c_-aROgbWT_rFL=XcSyAyyJ5ey0U41O+mkO_A=fosf...@mail.gmail.com
debian install wireless fails on laptop with Ralink RT3290 wireless, what to do?
The installer correctly detects a Ralink RT3290 and seems to think its going to be able to work with it, but then it always fails (I think at the DHCP stage) to actually manage to connect to the network. Has anyone else encountered this issue? Workarounds? As usually everyone assumes it would work on Ubuntu and as usual I'd rather not go there. What I'm hoping to do is install a gnome system from CD image, then follow these instructions: https://wiki.debian.org/rt3290 Is this probably workable? Is it the best way? If there was some way to get wireless working at the point in the installation where the installer tries to set it up that seem like it would be best, but maybe it isn't required then if you have one of the big (non-netinst) CDs? Thanks, Britton -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/CAC4O8c9OgobJZoJj28DBtR+CQaSsHX6KU=XR=koio_4pida...@mail.gmail.com
a browser for debian that will play pandora.com?
iceweasel doesn't seem to, I downloaded firefox and ran it but it doesn't seem to either (just hangs forever). Now my GF is saying just use Ubuntu blah blah is there any non-horrible way to get a browser that will play internet radio? Thanks, Britton -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cac4o8c8c_5qpnazqhtiu6gvuophxqcrgf15madrrzepvcd3...@mail.gmail.com
which package has a binary like this sendmail one in exim?
Hi folks, I know exim sometimes contains a sendmail binary because on one system I get this: britt...@brittonkerin.com [~]# sendmail --version Exim version 4.76 #1 built 26-Oct-2012 16:41:54 Copyright (c) University of Cambridge, 1995 - 2007 Berkeley DB: Berkeley DB 4.7.25: (April 4, 2012) Support for: crypteq iconv() IPv6 PAM Perl OpenSSL Content_Scanning DKIM Old_Demime Experimental_SPF Experimental_SRS Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz passwd Authenticators: cram_md5 dovecot plaintext spa Routers: accept dnslookup ipliteral manualroute queryprogram redirect Transports: appendfile/maildir autoreply pipe smtp Fixed never_users: 0 Size of off_t: 8 2012-11-28 11:17:54 non-existent configuration file(s): /etc/bh/exim/exim.conf But on my debian box (current stable distribution), there is no /usr/bin/sendmail binary even though I have exim installed. There is a /usr/sbin/sendmail binary, but it doesn't seem to be the same one because: $ /usr/sbin/sendmail --version exim abandoned: unknown, malformed, or incomplete option --version I also found /usr/lib/sendmail but it does the same thing. Does anyone know what debian package provides the /usr/bin/sendmail program or its equivalent like on the first system described? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cac4o8c84zsxapm5jy6babwcsy5jdnjzcae7axcjky3h1qnk...@mail.gmail.com
manually reset/load network nameser configuration only?
I have some obnoxious problem with my laptop, such that the NerworkManager Applet sometimes gets me on wireless or wired network ok, but somehow the nameserver doesn't start working right, despite working fine for other computers on the same network. I'm wondering if there is some way to specify the nameserver to user and reset that part of the network infrastructure? In effect override whatever strange problem NetWork manager sometimes has? Thanks, Britton -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cac4o8c8zf+psphpmfyqxc_1yaroqxxhtkejxzxgujtsn_ha...@mail.gmail.com
Re: looking for the 'lockfile' program
Ok, its part of procmail apparently. On Tue, Oct 2, 2012 at 4:29 PM, Britton Kerin wrote: > I'm trying to determine if the 'lockfile' program is still available > or has been obsoleted for some reason. > > I'm not looking for lockfile_create or friends, nor flock, but the > program described here: > > http://linux.about.com/library/cmd/blcmdl1_lockfile.htm > > Thanks, > Britton -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAC4O8c8koA1Zj_r75MWw7i9YhB=8ucugomromght1qe+43m...@mail.gmail.com
looking for the 'lockfile' program
I'm trying to determine if the 'lockfile' program is still available or has been obsoleted for some reason. I'm not looking for lockfile_create or friends, nor flock, but the program described here: http://linux.about.com/library/cmd/blcmdl1_lockfile.htm Thanks, Britton -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAC4O8c-gw_2A+uEq0U=x8doadqs7hmpbkata93jhr7qkskj...@mail.gmail.com
difficulty downloading packages, is ftp.us.debian.org having a problem?
Hi everyone, I keep trying to download a big pile of packages and most of them keep failing. Internet is working and I can ping things, but most of the packages always fail. I'm wondering if ftp.us.debian.org is really overloaded or something? Thanks, Britton -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cac4o8c9ponxxles_rp8uzjggpjtsrnwaxyzxs738uwgupyk...@mail.gmail.com
how to do something automatically at boot?
If I understand right you make a script like this one: rhino:/etc/init.d# cat /etc/init.d/weird-at #!/bin/sh set -e touch /tmp/g echo 'touch /tmp/greeber' | at now + 3 minutes touch /tmp/fgg exit 0 rhino:/etc/init.d# rhino:/etc/init.d# ls -l weird-at -rwxr-xr-x 1 root root 110 2011-12-28 23:31 weird-at Then make a link to it like this link: rhino:~# ls -l /etc/rc5.d/S98weird-at lrwxrwxrwx 1 root root 18 2011-12-28 12:48 /etc/rc5.d/S98weird-at -> ../init.d/weird-at rhino:~# But this doesn't seem to work (/tmp/gooo and /tmp/fgg never show up, and the at job isn't queued. The script works fine when run from the command line. Is there something I'm missing in this process? Is there somewhere particular to look for diagnostic output for things that are supposed to be done on boot? Thanks, Britton -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAC4O8c_8q_3mNUhcS2CNZiTivyOJ5fF1+g9OwpuRmw-SQ+aQ=w...@mail.gmail.com
nvidia xserver makes fonts big and icky
The nvidia packages in the latest debian work lovely, except for one thing: all my fonts come out bigger. The gnome stuff still things that my screen is at the same resolution, and the fonts the same, but they are all bigger so the editor, terminals etc. are all nasty. Any ideas how to fix? Thanks, Britton -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: permissions problems when using libusb
Unfortunately someone on #debian on IRC said that the instructions in that file are incorrect when then udev-created device is involved. Or something like that. Sorry, I should have mentioned that originally. Britton On Mon, 10 Sep 2007 17:45:58 -0500, "Michael Shuler" <[EMAIL PROTECTED]> said: > On 09/10/2007 05:39 PM, Britton Kerin wrote: > > I have a program that uses libusb and it only works from root. When I > > try > > to run as a normal user I get errors like this: > > > > avrdude: usb_open(): cannot read serial number "error sending control > > message: Operation not permitted" > > avrdude: usb_open(): cannot read product name "error sending control > > message: Operation not permitted" > > avrdude: usbdev_open(): error setting configuration 1: could not set > > config 1: Operation not permitted > > > > I didn't see a usb group in /etc/group or anything like that. Can > > anyone > > tell me the preferred way to let users run programs that use libusb? > > /usr/share/doc/libusb-0.1-4/README.Debian has some mount options that > might be helpful in your situation. > > -- > Kind Regards, > Michael Shuler > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
permissions problems when using libusb
I have a program that uses libusb and it only works from root. When I try to run as a normal user I get errors like this: avrdude: usb_open(): cannot read serial number "error sending control message: Operation not permitted" avrdude: usb_open(): cannot read product name "error sending control message: Operation not permitted" avrdude: usbdev_open(): error setting configuration 1: could not set config 1: Operation not permitted I didn't see a usb group in /etc/group or anything like that. Can anyone tell me the preferred way to let users run programs that use libusb? Thanks, Britton Kerin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
getting debian fully working on System76 computers
On Thu, 30 Aug 2007 22:59:16 -0400, "Michael Pobega" <[EMAIL PROTECTED]> said: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Thu, Aug 30, 2007 at 11:07:08AM -0800, Britton Kerin wrote: > > > > On Thu, 30 Aug 2007 15:00:55 -0400, "Michael Pobega" <[EMAIL PROTECTED]> > > said: > > > -BEGIN PGP SIGNED MESSAGE- > I was just wondering because I have a System76 as well :D > > Debian seems to run pretty well on it, I have to say; The only problem > is that the System76 driver installer is built not to run on anything > but Ubuntu, so you have to hunt down and install all of the modules > yourself. If you need any help getting things working give me an e-mail, > anytime. Ok. I haven't started the hunt yet but I know its coming, since the wireless card doesn't seem to be working automagicly. Also, my GF (whose computer this is) would like to be able to use YouTube, Java web sites, and DVD player out of the box and apparently at least some of these things don't work with the standard desktop task selection for the latest debian stable. Have you by any chance tried these things? Is it just a matter of knowing which packages you need (I don't) or do all these things take custom builds? > P.S. : You do know you replied directly to my inbox and not to the list, > right? No, I made a mistake there. Thanks for telling me. Thanks, Britton > > - -- > If programmers deserve to be rewarded for creating innovative > programs, by the same token they deserve to be punished if they > restrict the use of these programs. > - Richard Stallman > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFG14QEg6qL2BGnx4QRAhQiAKCGqrOScYJG2IdR57erHPv+DJZQvACgoqzz > Xiwgq0Y311V4EBkTsZKh1cA= > =8Rd8 > -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
upgrading ubuntu to debian
I just bought a computer that came with ubuntu and would like to switch it to pure debian. Is there a standard way to do this that someone could point me to? (Though I will say that little hack where the shell tells you which package a program is in looks pretty cute and helpful :) Thanks, Britton -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
disableing gnome destop background?
I would like to be able to display pictures for my desktop background, and change them every so often. It seems that gnome doesn't do this, so I though I'd just do it from a script with xsetbg, but I think for this to work I need to somehow tell gnome to not do anything to the X root window. I couldn't figure out how to do this, can anyone tell me? Thanks, Britton -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
ready to use debian or ubuntu laptop reccomendations?
I would like to buy my non-linux girlfriend a ready to use laptop with: wireless scan, falling back to CAT5 DHCP open office CD ROM that automounts SD card reader that automounts working sound card reasonable memory and disk working video acceleration (at least a bit) The last item is nonessential, needed only to make X more comfortable, not for games or anything. I can spend about $1000, though it seems like they should be available for less given the windows crud that is out there and the supposed high cost of Windows XP. Is it possible to get such a system? I tried with linuxcertified but the system she got was broken in a variety of ways. I'd really appreciate it if anyone has any reccomentations of a model that they know from personnal experience will work. Thanks, Britton -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
perl based web site in a can type reccomendations?
I would like to be able to put together something like what is seen on the linksys routers, i.e. tabs for configuring a system, popping up help, etc. without having to monkey around with the details of html and CSS any more than strictly necessary. Perl is the lang I know so I like it over php or others. Anyone have a recommendation? Thanks, Britton -- Britton Kerin [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
cordless mice with USB connected base units
Do cordless non-bluetooth mice need weird drivers? Can I take a USB only cordless mouse with a base charger unit, plug it into some kind of USB_to_ps2 adaptor plug, plug that into the connector where my PS2 mouse currently lives, and just be happy? I'm thinking about buying a cordless mouse, but I'm a bit scared of it. If it needs weird drivers its probably not worth the hassle. Thanks, Britton -- Britton Kerin [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: two head x server
On Thu, 19 Jan 2006 18:18:17 +0100, "igor" <[EMAIL PROTECTED]> said: > I have an idea of setting up X server to use two video cards? Can anyone > give me first direction hints about this? thanks. It should be noted that another alternative is to use one of the newer video chipsets from nvidia that supports dual monitors from a single card. I've generally had good luck with a GV-N52128, which should be pretty cheap by now assuming you can find it, 6600, 6800, and 7800 series all have the same functionality. Downside of course is you are stuck with the nonfree nvidia drivers, glx library, etc., and X config is a bit different than you may read about in some places because they seem to have kind of done their own thing in terms of how dual head is described to the server using X options. But nvidia seems to actually do a decent job keeping up to date binary drivers available for linux, and the install package they have works, and comes with a utility (nvidia-xconfig I think it is) to help you generate a config file, which you can use or merge with your own, or I can send you mine. One hates to have to wonder what bits of the system its sticking things in, but, well, it works. For me. As long as I don't upgrade my kernel too much. *sigh* Britton > > -- > igor <[EMAIL PROTECTED]> > pletisan > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > -- Britton Kerin [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
pthread function in testing print weird messages to stderr
This minimal program, test_threads.c: #include #include #include #include int thread_return; void * thread_function (void *arg) { int idx; for ( idx = 0 ; idx < 3 ; idx++ ) { sleep (1); printf ("thread_arg: %d\n", *((int *)arg)); } thread_return = 42; pthread_exit (&thread_return); } int main (void) { int thread_arg = 2; pthread_t thread; int return_code; // pthread_attr_t thread_attrs; // return_code = pthread_attr_init (&thread_attrs); return_code = pthread_create (&thread, NULL, thread_function, (void *) &thread_arg); assert (return_code == 0); int **return_location; return_code = pthread_join (thread, (void **) return_location); assert (return_code == 0); printf ("thread_return: %d\n", **return_location); return 0; } Compiled this way: gcc -Wall -D_REENTRANT test_threads.c -lpthread -o test without any errors or warnings, produces this output when run: thread_arg: 2 thread_arg: 2 thread_arg: 2 thread_return: 42 1581: 1581: runtime linker statistics: 1581:final number of relocations: 139 1581: final number of relocations from cache: 7 with the latter four lines being on stderr. Is there some debugging information that didn't get turned off or something? I guess this might be a libc bug report? Uncommenting the lines that set up the thread_attrs structure and passing a pointer to it to pthread_create insteal of NULL as the second argument yields a different weird output: thread_arg: 2 thread_arg: 2 thread_arg: 2 thread_return: 42 1598: binding file /lib/tls/libpthread.so.0 to /lib/tls/libc.so.6: normal symbol `__cxa_finalize' [GLIBC_2.1.3] 1598: binding file /lib/libgcc_s.so.1 to /lib/tls/libc.so.6: normal symbol `__cxa_finalize' [GLIBC_2.1.3] Any clues as to what is going on here would be greatly appreciated. Thanks, Britton -- Britton Kerin [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Synching deeply nested directories Debian Server - Win XP
On Thu, 8 Dec 2005 02:00:44 +0100, "Debian Users" said: > Now for the interesting thing: our network does not allow SMB access from > outside (its the universiy's policy, I cannot change that): SMB ports are > blocked. I still would like to synchronize the data on e.g. my laptop and > the files on the server once in a while, even if not inside the server's > network. Since I cannot easily convince XP to use other ports for SMB > sharing (thumbs down for MS), I have to find other ways. For that end I > tried "unison" via ssh (available on Windows and Debian), but had to give > up because of the "long path name bug" in unison (or probably in OCAML). Im surprised that unison would die on long file names. The unison people say they still bug fix support unison, have you reported the problems to them? Britton -- Britton Kerin [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
dynamic linking of lib that uses other libs how?
I am trying to figure out if its possible to somehow insulate the user of a library I wrote from the linking needs of the libraries my library uses. Here is the situation in detail: mylib uses OpenGL, gtk, and gtkglext. I would like to provide something like the pkg-config that comes with gtk and gtkglext, so that users of mylib can easily retrieve linking flags mylib needs, without disturbing users ability to link with other libraries of their choice. At the moment I am using pkg-config for mylib, and accumulating the linker flags required by libglgtk into variables that can be queried by pkg-config, as gtkglext does, but this does not seem to work the way I would like. For example, trying to link myprog against mylib and a different version of gtk than the one used by mylib leads to crashes related to mixing of gtk functions from different versions. Basically, my question is: what is the best way to package a dynamicly linked C library for client consumption without causing trouble for the clients? Any advice or pointers to information greatly appreciated, Britton -- Britton Kerin [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: COBOL compiler
On Tue, 26 Aug 2003, Bijan Soleymani wrote: > On Tue, Aug 26, 2003 at 11:25:55AM -0500, Ron Johnson wrote: > > Some time after I left the COBOL job, I was employed writing C > > in an app that screamed for COBOL. I'd say that 1/5th of the > > SLOCs, and most of the bugs, were of the form: > > > > strncpy(really_long_variable, another_long_variable, > > sizeof(another_long_variable)); > > > > By commercial, I meant record-oriented "data processing" type > > software, not programs sold in stores and catalogs or by sales > > people. > > I find that Perl is a very nice language that avoids such low-level > problems. There's a whole family of such scripting languages that begin > with the letter P. Perl, Python, Php, Pike,... > > The advantage here is that the main (only?) implementation of each of > these languages is an excellent free software implimentation designed > for Linux/Unix and ported to every imaginable OS (from VMS to Windows to > Plan 9). > > Other advantages include the fact that these languages are general > purpose and can pretty much handle all kinds of problems. And also the > fact that they are easily extensible through C. This just isn't true. Perl at least is brought to its knees by a variety of problems that C has no trouble with whatsoever. I've had simple pixel-crawling image processing algorithms take a day to run in Perl, when I rewrote in C about 30 seconds. And that's with PDL (admittedly PDL call overhead was I think the major thing slowing perl down, but that's hardly reassuring). The scripting languages just aren't anywhere near as fast as the older, simpler, compiled ones. Its not that I don't still write first drafts of many codes in perl, its just that now I budget time to rewrite them in C if I need to (its still usually faster overall to prototype first in perl, even if you know you are doomed speed-wise). I don't know if perl and cobol have the same relationship, or if there are common business tasks that still need the speed, but it seems like a definite possibility. Britton > > I don't know much about Cobol, but if it's a simple language then I > think it might be worth it. But if it's a complex language with such a > limited scope then I think it's not so great. > > SQL is a good example of a simple very specific language. > Perl is a good example of a complex very general language. > > Very specific languages that are too complex are being killed off by > languages such as Perl. For example people going from awk to perl > (there's even an a2p script that'll do automatic conversion). > > Bijan > -- > Bijan Soleymani <[EMAIL PROTECTED]> > http://www.crasseux.com > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
best way to disable journaling on ext3?
Short story: I suspect ext3 of possible causing crashes and would like to know the best way to disable as much of it as possible without reformatting my disk. Longer story: I recently got a new 80G ATA disk, and cloned my debian install onto an ext3 journaled file system on it. Now some programs that move lots of data seg fault sometimes, causing subsequent ls to hang or my machine to lock up completely. I think the kernel may be needing to do special work to compensate for my bios not knowing about really big drives, because older kernels didn't see the whole of even my 40G drive, and my bios giives me an update ESCD successful (or something like that) on every bootup. Britton Kerin __ GNU GPL: "The Source will be with you... always." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
cloning my debian install onto my new hard disk?
I would like to copy my entire install onto my new larger hard disk, then set it up to boot there. I have the old disk as master and the new as slave, and I've mounted the slave and used cp -a on the top level directories. The cp -a of 'initrd' directory complained a bit though, and I'm not sure what steps are best to take to make the new drive the one that gets booted from/mounted as root. Does anyone have software to recommend other than cp? What should I do after cp to make initrd setup work right? A report of a recend (good) experience with this task would be greatly appreciated. Thanks, Britton Kerin __ GNU GPL: "The Source will be with you... always." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
good procmail alternative?
I've recently been trying to give spamassassin a go, so naturally I ended up looking at procmail. Then I tried to build procmail, wow it sure does take me back. Trouble is, I don't want to go back. Can anyone recommend a more modern program/perl script that does what proc mail does and will serve as a front end from which to call spamassassin? Britton Kerin __ GNU GPL: "The Source will be with you... always." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
best traffic shaper solution for modem line?
I have only a dial up connection (stone age, I know). I notice there a number of traffic shaper/QoS solutions around now and I am wondering if anyone has an opinion which is the best. I want the usual things, in this order: 1. Low latency for ssh, ftp etc. 2. Next lowest latency for http(s) 3. uploads and downloads lowest priority. 4. Not to spend too many hours fighting to get it to work. In particular, I've gotten a bit lazy about kernel compiling now that debian's pre-packaged kernels seem to do everything I need from sound to CD writing. But I can recompile if its the best choice in other ways. 5. Not to pick the dead end choice which requires me to learn a new solution later. 6. Fully telepathic solution. The traffic shaper should read my mind to determine where I really want my bandwidth to go at all times. 7. Defocused temporal perception, al la Sirius Cybernetics Corporation Happy Vertical People Transporters, but without the neurosis or horizontal motion. The traffic shaper should be able anticipate when I will touch that first key in the ssh session and have the line clear and ready, even before I know I'm going to touch it. Seriously though, any advice which way is best to go would be greaty appreciated. Britton Kerin -- GNU GPL: "The Source will be with you... always." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
how to gpg sign attachments?
Is it possible to use gpg to sign all of a mail message, including the attachments? I have found with mh-e and mailcrypt that after doing mh-edit-mhn to incorporate the attachments, mailcrypt-sign fails. Britton Kerin __ GNU GPL: "The Source will be with you... always." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: OT: Linux on Walmart's systemless computers
> the same product in china for the same proportionate dollar value, i've got > no problem with them. if the median income in the u.s. is indeed $36,000 and > their pc costs $500, then i hope that they make it available to those who > make $3600 a year for $50. if that's proveably not the case, get back to me. Well, price fixing of this sort is absolutely not what free trade is supposed to achieve. In fact, when contrarian economists sit down to prove that 'free trade' as its currently defined isn't working like its supposed to this is always a major argument. There are far too few companies controlling distribution and as a result consumers still pay far more than they should and produces get paid far less than they deserve. Britton -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
making gnome2 packages from unstable install
Is there a way to do this without breaking all the existing gnome packages? I thought the point of packages having names like gnome2 was to allow things to coexist somehow... Britton Kerin __ GNU GPL: "The Source will be with you... always."
Re: Wanda swam across my desktop ??
Since everyone is bashing this easter egg I'll speak up in its defense: I think its cute and harmless and possibly helpful, like the jester in Diaspar in Arthur C. Clarke's 'City and the Stars' who injected a little controlled unpredictability into the ancient self contained city to prevent the populace from going insane. (note that I don't especially recommend this mediocre book). Britton On Mon, 28 Jan 2002, Preben Randhol wrote: > Brian Stults <[EMAIL PROTECTED]> wrote on 28/01/2002 (17:33) : > > You might want to try www.google.com/linux. Entering the following > > string produced some informative results: > > > > +"easter egg" +wanda > > > > This isn't a flame, just hopefully a useful tip. > > Yes but if you are not sure what it is you search perhaps for : > wanda GNOME desktop swam/swim across etc... I also added easter egg > > When I knew it was an easter egg I searched for easter egg and wanda and > found some links. Anyway I don't like the amount of easter eggs in GNOME > panel. I would hope the developers had better things to spend time on > than this. > > -- > Preben Randhol ?For me, Ada95 puts back the joy in programming.? >
elisp question: how to override minor mode key maps?
There's gotta be something better than this (which still isn't right, because it changes the map for all View buffers and not just *Help* buffers, and needs to use the not-really-public view-mode-map): ; View-quit seems to get made a bit wonky by "*Help*" being in ; same-window-buffer-names, and we always just want to bury the *Help* ; buffer on quit. So we go and twiddle the non-public variable ; view-mode-map. (Britton Kerin, Mon, 3 Dec 2001 16:24:29 -0900) (add-hook 'view-mode-hook (lambda () (when (equal (buffer-name) "*Help*") (substitute-key-definition 'View-quit 'bury-buffer view-mode-map I've also tried using (make-local-variable 'view-mode-map) as the last argumentto substitute-key-definition, buth then the new mapping is not effective anywhere, I suppose because of some closure issue with minor mode keymaps. Anyone have any ideas? Britton
HP CD Writer 7200 broken since kernel 2.4
I am using ide-scsi, etc., everything used to work correctly, but these days, cdparanoia will read the first track, then pause, then come SCSI errors and timeouts, and finally a complete system crash. I think this started happening around the time I went to 2.4. Has anyone else run into/beaten a problem like this? Britton __ GNU GPL: "The Source will be with you... always."
Re: [slightly OT] Emacs21 new features (was Re: kudos)
On Wed, 24 Oct 2001, Matthew Garman wrote: > On Wed, Oct 24, 2001 at 01:23:03PM -0500, Josh McKinney wrote: > > > I'm a fairly experienced user (since 1988) and I'm used to doing lots > > > of customization, but I've not noticed anything annoying so far. What > > > has been very impressive is that things just work. On previous major > > > upgrades (18 > 19 > 20) a lot of the customization (and the added .el > > > files) would stumble and fall. Not this time. > > > > > > Among all the new features, the new shell (eshell) is especially nice. > > > > > > > I agree, this new emacs is great. Maybe by version 22 they will just make > > EmacsOS! > > Does the new version of GNU emacs support *console mode* syntax > highlighting (I guess it's called "font locking" in emacs-speak). Of course :) Britton
looking for a game of hunt
Does anyone play hunt (from bsdgames package) anymore? I really got a craving for a taste of this classic today but was unable to locate any information on where the players are. Britton Kerin __ GNU GPL: "The Source will be with you... always."
Re: Can't print after kernel compile
On Thu, 16 Aug 2001, Ken Januski wrote: > Hi, > > I installed Debian from binaries about a year ago. Today I finally > compiled from the source code. Most everything seems fine except for > printing. Using lpq I get message asking if my printer "is offline?". > Trying to print from Netscape I get "lpr:connect Connection refused. > Jobs queued but cannot start daemon." If you are using a parallel port printer, did you remember to enable parallel port support in the kernel (strangely, I think it is off be default)? > And yet a ps -aux | grep lpd shows 2 copies running. I can kill one but > problem remains. One of those may have been the grep process itself. > Any ideas? Could I have set up something incorrectly in kernel? Just the one above. Good luck. Britton
ssh2 passwordless login does not work with ssh-keygen -t rsa?
ion string SSH-2.0-OpenSSH_2.9p2 debug2: Original cipher proposal: blowfish-cbc debug2: Compat cipher proposal: blowfish-cbc debug2: Original cipher proposal: blowfish-cbc debug2: Compat cipher proposal: blowfish-cbc debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: blowfish-cbc debug2: kex_parse_kexinit: blowfish-cbc debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none debug2: kex_parse_kexinit: none debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-dss debug2: kex_parse_kexinit: 3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes128-cbc,aes192-cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,[EMAIL PROTECTED] debug2: kex_parse_kexinit: 3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes128-cbc,aes192-cbc,aes256-cbc,rijndael128-cbc,rijndael192-cbc,rijndael256-cbc,[EMAIL PROTECTED] debug2: kex_parse_kexinit: hmac-sha1,hmac-md5,[EMAIL PROTECTED] debug2: kex_parse_kexinit: hmac-sha1,hmac-md5,[EMAIL PROTECTED] debug2: kex_parse_kexinit: none,zlib debug2: kex_parse_kexinit: none,zlib debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: mac_init: found hmac-md5 debug1: kex: server->client blowfish-cbc hmac-md5 none debug2: mac_init: found hmac-md5 debug1: kex: client->server blowfish-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST_OLD sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: dh_gen_key: priv key bits set: 131/256 debug1: bits set: 520/1024 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug3: check_host_in_hostfile: filename /home/bkerin/.ssh/known_hosts2 debug3: check_host_in_hostfile: match line 1 debug3: check_host_in_hostfile: filename /home/bkerin/.ssh/known_hosts2 debug3: check_host_in_hostfile: match line 1 debug1: Host 'aurora.uaf.edu' is known and matches the DSA host key. debug1: Found key in /home/bkerin/.ssh/known_hosts2:1 debug1: bits set: 527/1024 debug1: len 55 datafellows 53376 debug1: ssh_dss_verify: signature correct debug1: kex_derive_keys debug1: newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: waiting for SSH2_MSG_NEWKEYS debug1: newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: done: ssh_kex2. debug1: send SSH2_MSG_SERVICE_REQUEST debug1: service_accept: ssh-userauth debug1: got SSH2_MSG_SERVICE_ACCEPT debug1: authentications that can continue: publickey,password debug3: start over, passed a different list publickey,password debug3: preferred publickey,password,keyboard-interactive debug3: authmethod_lookup publickey debug3: remaining preferred: password,keyboard-interactive debug3: authmethod_is_enabled publickey debug1: next auth method to try is publickey debug2: userauth_pubkey_agent: no keys at all debug2: userauth_pubkey_agent: no more keys debug2: userauth_pubkey_agent: no message sent debug1: try pubkey: /home/bkerin/.ssh/id_rsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: authentications that can continue: publickey,password debug2: userauth_pubkey_agent: no more keys debug2: userauth_pubkey_agent: no message sent debug1: try privkey: /home/bkerin/.ssh/id_dsa debug3: no such identity: /home/bkerin/.ssh/id_dsa debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: keyboard-interactive debug3: authmethod_is_enabled password debug1: next auth method to try is password [EMAIL PROTECTED]'s password: ... Britton Kerin __ GNU GPL: "The Source will be with you... always."
how to get list of emacs key descriptions
I know for example that meta x is described as "\M-x". How is tab described, or how can I find out for a general key. I'm not seeing it in the docs. Britton Kerin __ GNU GPL: "The Source will be with you... always."
another strange bootup message: SIOCADDRT: Invalid argument
Oddly, this one does't show up in dmesg. It happens a couple of times during bootup and thats it. Ideas what is going on would be mose welcome. Britton Kerin __ GNU GPL: "The Source will be with you... always."
how do I find out which device this bit of dmesg refers to?
I get a message like this is dmesg: PCI: No IRQ known for interrupt pin A of device 00:0f.0. Please try using pci=biosirq. I think this first showed up around kernel version 2.4.4. Anyone know what might be causing it or how you figure out which device is 00:0f.0? Britton Kerin __ GNU GPL: "The Source will be with you... always."
Re: CD Paranoia problem
On Wed, 6 Jun 2001, Vincent Foley wrote: > Hi, > > I have a ide-scsi CDROM on a GNU/Linux system. But I have a little problem > and > I was hoping that maybe you could help me with it. > > See, I cannot rip a CD if I'm not root. I could when my cdrom wasn't > ide-scsi. > Now, I get the following error message: > > [Shell] > > $ cdparanoia 1cdparanoia III release 9.8 (March 23, 2001) > (C) 2001 Monty <[EMAIL PROTECTED]> and Xiphophorus > > Report bugs to [EMAIL PROTECTED] > http://www.xiph.org/paranoia/ > > > /dev/cdrom exists but isn't accessible. By default, > cdparanoia stops searching for an accessible drive here. > Consider using -sv to force a more complete autosense > of the machine. > > More information about /dev/cdrom: > Checking /dev/cdrom for cdrom... > Testing /dev/cdrom for cooked ioctl() interface > /dev/scd0 is not a cooked ioctl CDROM. > Testing /dev/cdrom for SCSI interface > No generic SCSI device found to match CDROM device /dev/scd0 I think the generic SCSI devices are /dev/sg0, /deb/sg1, etc. It sounds like cdparanoia may be needing one of those. You might try checking to be sure they exist and are accessible to you/your group. Britton > [/Shell] > > So I thought about check the permissions related to /dev/cdrom and /dev/scd0 > and > what group my user was in: > > [Shell] > > $ groups > vince cdrom sudo audio dip log www > $ ls -l /dev/cdrom /dev/scd0 > lrwxrwxrwx1 root cdrom 4 Jun 6 13:20 /dev/cdrom -> scd0 > brw-rw1 root cdrom 11, 0 Jun 1 15:34 /dev/scd0 > > [/Shell] > > > I have no idea on what I could do. Please help me > > > > Regards, Vince
making completion work the same in emacs shell mode as from xterm
emacs completion seems to behave differently than it does from an xterm. Aliases are ignored, and command lines apps completion works differently. Is there a way to emacs to let the ordinary bash completion happen, or come as close as possible to this? Thanks, Britton
which C types to use for computing off_t sizes with LFS?
I'm trying to be sure how to do computed offsets larger than 2G. I looked at the source for dd, and it multiplies and unsigned long with a size_t and puts the result in off_t (which is the new wide type if things are compiled with the new largefile symbols). I would like to have some idea why this works though. Examining the headers, off64_t looks like it is really a structure consisting of a single array of two long integers, is the compiler responsible for making this multiplication make sense, or what? Britton Kerin __ GNU GPL: "The Source will be with you... always."
command substitution in a crontab with SHELL=/bin/bash
I am trying to do approximately this in a crontab: SHELL=/bin/bash 0 8 * * * prog >/tmp/$(date +%s).extension and it doesn't work, the command never gets executed. Backtick substitution doesn't work either. An identical command with a fixed string in place of the $(date +%s) command substitution works perfectly. An identical command executed on the command line works perfectly. Anyone have any guesses as to what might be going on here? Britton Kerin __ GNU GPL: "The Source will be with you... always."
Re: postgresSQL: howto start the machinery
You have to be user postgres to create postgreSQL users. As root, you can become any username you want like this: su username Britton Kerin __ GNU GPL: "The Source will be with you... always." On Tue, 30 Jan 2001, Olivier Billet wrote: > Hi everyone, > > i'd like to use postgreSQL but running createuser as root > throw me this error message : > > | $ createuser > | Connection to database 'template1' failed. > | FATAL 1: SetUserId: user 'root' is not in 'pg_shadow' > | > | createuser: database access failed. > > how to set up the postgresql machinery ? > > Thanks, > Olivier. >
popularity-contest results viewable?
Is there any way to view the statistics turned in by the popularity-contest package? Thanks. Britton
Re: [OFFTOPIC] Opinions on the O'Reilly book: http://www.oreilly.com/catalog/linuxkernel/
O'Reilly kernel book is pretty good, definately much better than Linux Internals. __ GNU GPL: "The Source will be with you... always." Britton Kerin On Wed, 3 Jan 2001, Ray Percival wrote: > I assume you mean the O'Reilly Debian book. It is worth reading online > the website not worth buying. There are a couple of books on the kernel > one has all the source and comments (INAC so I have not looked at it) > I also noticed that O'Reilly has a kernel book. > > > -- Original Message -- > From: Walter Tautz <[EMAIL PROTECTED]> > Date: Wed, 3 Jan 2001 14:41:50 -0500 (EST) > > >Has anyone read it and do you have an opinion on the least > >painful way to learn about the kernel...reading the source > >is presumably the only way if one really wants to get into > >the heart of the matter? > > > >-walter > > > > > >-- > >To UNSUBSCRIBE, email to [EMAIL PROTECTED] > >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > >
Re: newbieDoc: Debian runlevels intro
Are these docs going to be included somewhere in the distro when complete, or live permanently on the web? They look handy. Britton Kerin On Tue, 2 Jan 2001, will trillich wrote: > i've got another newbieDoc that scratches the surface of > Debian runlevels... > > http://www.eGroups.com/files/newbieDoc/runlevels-intro.html > > also updated the apt-get introduction at > > http://www.eGroups.com/files/newbieDoc/apt-get-intro.html > > please run your eyeballs over them -- and any of the other > documents we've got there -- and feel free to post some feedback > to the newbieDoc project at > > http://www.eGroups.com/messages/newbieDoc > > thanks! > > -- > See, if you were allowed to keep the money, you wouldn't > create jobs with it. You'd throw it in the bushes or > something. But the government will spend it, thereby > creating jobs. -- Dave Barry > > [EMAIL PROTECTED]***http://www.dontUthink.com/ > > volunteer to document your experience for next week's > newbies -- http://www.eGroups.com/messages/newbieDoc >
Re: Sound record program
On Thu, 21 Dec 2000, Carel Fellinger wrote: > On Thu, Dec 21, 2000 at 02:27:08AM +0100, Kai Weber wrote: > > Hi, > > > > I am searching for a good sound record program, which can be used from a > > script/started by a cron job. I tested 'rec' coming from the sox > > package. With for CD-quality suitable settings "rec -c 2 -r 44100 -s w > > new.wav" I get gaps in my samples. I have to record more than one hour > > without any gaps. Is there a reliable tool which I should try? > > You could try the package bplay. It uses (large) buffers for playing > and for recording. According to its docs it should fit the bill, never > tried it myself though. The gaps you are getting in sox are due to poor (actually nonexistent) buffering. bplay is buggy (the options don't work as documented) and unmaintainted upstream. I think my program rawrec may be the best thing for you. If you install the rawrec package from woody (it installs fine on potato), you can just do 'rawrec -t secs soundfile.raw' to record CD quality raw sound (the default), options for other sampling rates, channels, etc. exist. If you want it in, for example wav format, you can get sox as well and do something like: rawrec -t secs | sox -t sw -r 44100 -c 2 - soundfile.wav good luck, Britton
Re: playing sounds from command line
On Thu, 21 Dec 2000, Matthew Dalton wrote: > Rob VanFleet wrote: > > I'm used to other distros having a 'play' command to play sounds from the > > command line. Does Debian have a similar tool, or am I just missing the > > package with the play command? > > Install the sox package \begin{shameless_plug} However, the sox play and rec scripts result in pretty poor sound quality, since they just squirt the converted data at the dsp device without any buffering. I have written a program called rawrec (available in woody) which can record or play raw audio with good buffering. I use it with sox to record and play back different sound file formats. \end{shameless_plug} Britton
does there exist a lib for userspace producer/consumer?
I am looking for a library that addresses the producer/consumer problem for buffers in userspace (probably using the pthread library. So instead of saying /* Bunch of thread startup order synchronization stuff */ /* do what is to be done to a segment of the buffer */ /* lock next negment */ /* release last segment */ for all the threads that need to access the ring buffer, I can just write a function like /* transform one buffer segment as desired */ Then call a function with a callback to concurrently make that transformation on all segments in a specified order with other similar transforming functions. Does anyone know if anything like this exists? Britton Kerin __ GNU GPL: "The Source will be with you... always."
rsync
I am getting the following errors from stty when I try to use rsync, anyone know what might be going on here? $ rsync --rsh='ssh -c blowfish' -a --dry-run [EMAIL PROTECTED]:~bkerin ~bkerin [EMAIL PROTECTED]'s password: stty: receiving file list ... standard input: Invalid argument stty: standard input: Invalid argument Britton Kerin __ GNU GPL: "The Source will be with you... always."
OT: subscribing to linux-kernel
I seem to have gotten unsubscribed and it appears that the host has changed as all the instructions I can find do not work. Anyone know the routine? Also, anyone have a pointer to a good site with a big list of linux lists? www.linux.org used to have something like this but I can't find it since they redid their site. Thanks, Britton
setting up ssh so that ssh'ing to a system doesn't require password
I need to figure out how to set up ssh in such a way that ssh can be used without the user needing to enter a password. I apparently don't understand the required format of the .shosts command to achieve this. I have also used ssh-keygen, placed my public key in the auhtorized_keys file, started an agent (ssh-agent $SHELL) and used ssh-add to add my identity to the authentication agent, but doing ssh localhost still requires me to enter a password. If anyone has a valid .shosts file I would greatly appreciate a snipping showing how they have it set up, or a pointer to an example file (which I havn't been able to find in the docs). Britton Kerin __ GNU GPL: "The Source will be with you... always."
anyone have apsfilter working with a networked ps printer?
If you do, and you could mail me a copy of your config files, (/etc/printcap and /etc/apsfilterrc in particular) I would greatly appreciate it. Configuring apsfilter to work for remote printers seems to be somewhat tricky (as advertised). Britton Kerin __ GNU GPL: "The Source will be with you... always."
remapping M$ windows key to act as meta under console emacs (like X)
I notice that under X, emacs now uses the little window key as a meta, while doing something totally other with Alt. This is fine, but I like to use emacs from the console, and there Alt is still needed. I don't think it's a good idea to have emacs requiring different keystrokes depending on where is is run. Anyone know the best way to make things consistent? Should this perhaps be changed in the package? Britton Kerin
color syntax highlighting in emacs without X?
Is there some way to do this? It seems it should be possible but I havn't been able to find any reference to it in the emacs docs. list-colors-display just produces an empty, colorless list. Any info appreciated. Britton Kerin
problem with latest X release
With the latest frozen software, I get Fatal server error: could not open default font 'fixed' when I try to run X. Is this a known problem? Anyone have an idea what I should try first? Thanks. Britton Kerin
Re: pthreads man pages?
Yes, they must be, since I have them on my system. Unfortunately, I'm not sure which of the (stable) packages I have installed is providing them. Perhaps someone can tell me how to check which package is providing a given file on my system? Britton Kerin __ GNU GPL: "The Source will be with you... always." On Thu, 3 Feb 2000, Maciej Kalisiak wrote: > Are these available in any Debian package? > > -- > Maciej Kalisiak | <[EMAIL PROTECTED]> | http://www.dgp.toronto.edu/~mac [McQ] > PGP->finger|www; (0x39AC36F5) 9F BB 9E 11 F0 1E 5D 20 0B 31 3D 37 47 D0 67 C7 > GE/CS d- s++:+ a- C++(+++) ULAI++ P+++ L+++ E+++ W++ N- o? K? !w--- O- M- V-- > PS PE+ Y+ PGP+ t+ 5 !X-- R+ tv-- b+> DI+ G+ e>+++>(*) h--- r+++ y?
dropping libc 2.1 into stable for some development work possible?
I have been told that I probably need the features of glibc 2.1 for some of the development I am doing, however, I don't want to risk an upgrade to unstable at the moment. Is it possible to get the upstream library, install it in /usr/local, and then compile certain packages against it (static or whatever is fine for the moment) without disturbing the rest of the system? Will I see full benefits of newer conformance symbols and everything? How much work am I looking at to do this? I have never done it before and if it's going to be really confusing or require knowledge of many strange compilation options or both I will probably just brave unstable. Thanks for any advice you can offer me. Britton Kerin __ GNU GPL: "The Source will be with you... always."
system fubar after attempted upgrade to unstable, what now?
Like the idiot that I am, I didn't read things beforehand since I hadn't heard any buzz about not using dselect, and I know people who are using unstable happily. So I pointed the ftp upgrad option to unstable, downloaded everything, tried to install it, and apparently really screwed things up badly. dselect was having all kinds of pre-depend errors and eventually gave up saying there had been too many errors. Basicly, almost nothing runs on my system, not pon, not X, etc, they all die with seg faults or the like. dselect does run, but when I try to do install again in the hope of getting whatever library I need, I get the following (hand transcribed) error: can't locate strict.pm in @INC (@INC contains: /usr/lib/perl5/i386-linux/ 5.004 /usr/lib/perl5 /usr/local/lib/site-perl/i386-linux /usr/local/lib/site_perl .) at /usr/lib/dpkg//methods/ftp/install line 10. BEGIN failed--compilation aborted at /usr/lib/dkpg//methods/ftp/install line 10. Installation script returned error exit status 2. which I suppose means my perl is screwed up. What should I do first to try to fix my system? Britton
thread _POSIX_THREAD_PRIO_INHERIT support under linux?
In inquiring around six months or so back about thread support under linux, someone said to me that for soft real time prioritization of sound read and disk right processes, one could either use un-niced forked processes or prioritized threads. In principal he was certainly correct. My problem is that I proceeded to embark on a project to create a thread-based (and less buggy) version of bplay (after giving up on modifying the original). My #if defined _POSIX_THREAD_PRIO_INHERIT || defined _POSIX_THREAD_PRIO_PROTECT statements were so portable that I'm just now realizing that linux doesn't appear to support either of these RT thread extensions, which I find difficult to believe, since it should be so easy to add them given the underlying one-to-one thread<-->process model. Here is the test case I eventually wrote: #include #include main( ) { #ifdef _POSIX_THREAD_PRIO_INHERIT printf("_POSIX_THREAD_PRIO_INHERIT supported\n"); #else printf("_POSIX_THREAD_PRIO_INHERIT not supported\n"); #endif #ifdef _POSIX_THREAD_PRIO_CEILING printf("_POSIX_THREAD_PRIO_CEILING supported\n"); #else printf("_POSIX_THREAD_PRIO_CEILING not supported\n"); #endif } _POSIX_THREAD_PRIO_INHERIT not supported _POSIX_THREAD_PRIO_CEILING not supported Am I missing an important include or something? Is support better in kernel version 2.2? Any help or advice greatly appriciated. __ GNU GPL: "The Source will be with you... always." Britton Kerin
how to read MIME from nmh? is tm packaged?
I have started getting a bunch of MIME encoded MF Word documents from a prospective employer. I am trying to figure out how to save the attachment in a file with nmh as you can do with pine. I'm hoping that this is possible even though when I do mh-edit-mhn or the list I get cannot exec I havn't been able to fix this problem though I have tried putting (load "mh-e") (setq mh-progs "/usr/bin/mh") (setq mh-lib "/usr/lib/mh") (setq mh-comp-formfile "/etc/nmh/components") (setq mh-repl-formfile "/etc/nmh/replcomps") in my .emacs. If anyone sees any problems with the above I would appreciate advice on them also. __ GNU GPL: "The Source will be with you... always." Britton Kerin
no way to make bookmark into info page in emacs?
When I do C-x r m and type bison and return, I don't get anything (neither error messages nor other stuff), but when I try to jump to the bookmark I get bison nonexistent. Relocate "bison"? (y or n) If I choose to relocate it into the info page again, the problem persists. Is there any way to bookmark into info pages?
is there a library to convert -u timeopt to struct tm?
Does anyone know of such a library? I tried to look at the 'at' program for some functions to borrow, but the actual date parser appears to be done with bison or some such beast which I don't know, and I can't figure out what I would need from it exactly. Any ideas greatly appreciated. Britton
mlockall() and pthreads together?
I assume if I execute mlockall and then later create a bunch of threads, they come into existance without their memory locked into RAM? Anyone know for sure? Britton
Problem with Mutt and Exim
You can also set exim up to do this. In the past I have had success with the following at the bottom of my exim.conf file, in the REWRITE CONFIGURATION part of the file: # This rule performe a rewrite on all outgoing mail (possibly only all # non-local mail, I'm not quite clear, but probably moot for your home # machine) [EMAIL PROTECTED]${lookup{$1}lsearch{/etc/email-addresses}\ {$value}fail} bcfrF where my /etc/email-addresses file is just: gandalf:[EMAIL PROTECTED] # End of Exim configuration file where gandalf is my username on this system and [EMAIL PROTECTED] is my name at my provider. Fairly straightforward except for bcfrF, the meaning of which I don't recall exactly, though I think it specifies which messages you want rewritten and in the above case means pretty much everything. I have to warn you, I havn't been able to mail anything at all with this exim.conf, though I swear I used to be able to. I know I havn't changed the above conciously, and I suspect if I accidently added junk it was elsewhere, as the above looks correct. Good luck. __ GNU GPL: "The Source will be with you... always." Britton Kerin
Re: please someone send me their working exim.conf for ppp?
> My problem is that my ISP requires the login name on the from: > address be that of the account at the ISP. My machine isn't named > the same as my ISP, and the account here is different too. > > I'd like to be able to fire up PINE and press control-x to send, as > I can here on my machine at school. That involves setting the > visible (external) name but with smail, I just don't know how to do I know that email messages have an envelope header and then some other one as well (in the exim jargon, if not SMTP jargon), if I understand correctly you are wanting to rewrite one of them, I think the envelope one. exim can indeed do this, but all I can tell you at the moment is that you might want to search for the word 'envelope' in spec.txt (which is the main exim documentation. But be warned, this file is about 30,000 lines. Good luck, Britton
please someone send me their working exim.conf for ppp?
I am getting a wierd error (SMTP 550) and I can't figure out what is causing it. The really irritating thing is that I know I've had exim working correctly in the past, and I really hate not remembering what the deal was the first time and having to figure everything out all over again. I would really appreciate it if someone could send me a copy of their exim.conf from their working system so I could poke through and compare. Thanks in advance for any assistance, Britton Kerin
Re: record from line in
What is your input gain value? Is esound mixer and recorder all rolled into one? __ GNU GPL: "The Source will be with you... always." Britton Kerin On 10 Aug 1999 [EMAIL PROTECTED] wrote: [NON-Text Body part not included]
exim as MTA for a ppp machine how?
Specifies how local addresses are handled # ## # ORDER DOES MATTER # # A local address is passed to each in turn until it is accepted. # ## # This allows local delivery to be forced, avoiding alias files and # forwarding. real_local: prefix = real- driver = localuser transport = local_delivery # This director handles aliasing using a traditional /etc/aliases file. # If any of your aliases expand to pipes or files, you will need to set # up a user and a group for these deliveries to run under. You can do # this by uncommenting the "user" option below (changing the user name # as appropriate) and adding a "group" option if necessary. system_aliases: driver = aliasfile file = /etc/aliases search_type = lsearch # user = list # Uncomment the above line if you are running smartlist # This director handles forwarding using traditional .forward files. # It also allows mail filtering when a forward file starts with the # string "# Exim filter": to disable filtering, uncomment the "filter" # option. The check_ancestor option means that if the forward file # generates an address that is an ancestor of the current one, the # current one gets passed on instead. This covers the case where A is # aliased to B and B has a .forward file pointing to A. # For standard debian setup of one group per user, it is acceptable---normal # even---for .forward to be group writable. If you have everyone in one # group, you should comment out the "modemask" line. Without it, the exim # default of 022 will apply, which is probably what you want. userforward: driver = forwardfile no_verify check_ancestor file = .forward modemask = 002 filter # This director matches local user mailboxes. localuser: driver = localuser transport = local_delivery end ## # ROUTERS CONFIGURATION # #Specifies how remote addresses are handled # ## # ORDER DOES MATTER # # A remote address is passed to each in turn until it is accepted. # ## # Remote addresses are those with a domain that does not match any item # in the "local_domains" setting above. # Send all mail to a smarthost smarthost: driver = domainlist transport = remote_smtp route_list = "* aurora.uaf.edu bydns_a" end ## # RETRY CONFIGURATION # ## # This single retry rule applies to all domains and all errors. It specifies # retries every 15 minutes for 2 hours, then increasing retry intervals, # starting at 2 hours and increasing each time by a factor of 1.5, up to 16 # hours, then retries every 8 hours until 4 days have passed since the first # failed delivery. # Domain Error Retries # -- - --- * * F,2h,15m; G,16h,2h,1.5; F,4d,8h end ## # REWRITE CONFIGURATION # ## # There are no rewriting specifications in this default configuration file. # This is an example of a useful rewriting rule---it looks up the real # address of all local users in a file [EMAIL PROTECTED]${lookup{$1}lsearch{/etc/email-addresses}\ {$value}fail} bcfrF # End of Exim configuration file Any help or advice greatly appreciated. __ GNU GPL: "The Source will be with you... always." Britton Kerin
Re: two problems
On Mon, 12 Apr 1999, Sidney Brooks wrote: > I recently had to replace my hard disk which meant reloading > everything. I now have two problems. > 1. Although I had no trouble with Word Perfect before, when I > downloaded it again, I could not use it because it can't locate libX.. > . I had this trouble with netscape originally, but the problem was > solved by using the glibc version. There is no glibc version for Word > Perfect. Sounds like you might need a depricated compatability library. There are lots of these that are X-related. > 2. As long as I had to reload Debian, I decided to enable LILO although > I used a boot floppy before. When I boot with LILO, ppp doesn't work, > and I get a message saying that the ppp module is not loaded. When I > boot with my floppy, ppp works fine. I haven't been able to find a > difference in files when I compare the results of loading with the > floppy and LILO. Everything else seems to be the same whichever I boot. Is ppp compiled into the kernel on your new disk?
Re: email threat
> bruce writes: > > Because I know that Eric is a firearms enthusiast, for my own protection, > > I feel the best strategy is for me to publicize the threat widely. > > And quotes: > > Damn straight I took it personally. And if you ever again behave like > > that kind of disruptive asshole in public, insult me, and jeopardize > > the interests of our entire tribe, I'll take it just as personally -- > > and I will find a way to make you regret it. Watch your step. > > While this is certainly objectionable, it is not a threat of violence. > Notifying the police is totally unjustified. True. And however objectionable it may be it was at least private. Now we have notified not only the entire debian list of the scraggly side of two of our most prominent figures, but also the police as well? What happens when the press latches onto this one? Will we end up being looked at as a crazed bunch of high-tech Montana Freeman? When the leader or representative of a group is stigmatized as a dangerous gun nut this rubs off on the rest of the group, so please be careful what you say. And both you and Eric should know better than to assume that anything you say will remain private for long. You both have movie star status in software circles: more people know your names than don't. I suggest to both of you that you refrain from writing *anything* as inflammatory as either of the messages in your latest exchange, public or private. Britton
Re: Vote Linus for Person of the Century
> Don't even think Linus should BE the person of the century. That honor > probably goes to Thomas Edison. We owe our current culture and style of If you want to go with the guy who had the biggest slam-bang effect on everything, it's either Oppenheimer or Truman. > living to that guy. His experiments with his lightbulb led to the > discovery of the "Edison effect" which led DeForest to do some more > experiments which led to the Vacuum Tube which led to the Transistor, > which lead to the IC Chip. Not only was Edison's work responsible for > laying the ground work for radio and television, he also played vital > roles in bringing motion pictures and recorded music to the public. > > Linus Torvalds is probablt important but nowhere near THE most important. > Lets try to keep some perspective. I look at what Linus (leaving Stallman vs. Linus out for the moment) instigated (notice I don't say *did*, but instigation is what every candidate gets credit for anyway) and I honestly feel that it is unique and important, perhaps uniquely so. GNU/Linux is far and away the largest example of purely voluntary collaboration in the history of the planet. I say 'purely voluntary' because the developers of GNU/Linux were not starving, fighting for their lives, or trying to get ahead in the economic rat race. Their only motive was and is the creation of a superior system for their own use. This modus operandi of want --> voluntary unselfish colaboration --> result without any other waste involved has proven remarkably and hearteningly succesful. > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null Britton Kerin
semop() SEMMSL constant gone?
I'm trying to compile a SEMOP intensive program and am wondering what happened to this constant if anything, or if it's just me. Mayby I'm leaving out a critical header? Here are the ones I'm using. #include #include #include #include #include #include #include #include #include #include Any ideas or suggestions greatly appreciated. __ GNU GPL: "The Source will be with you... always." Britton Kerin
Re: Totally OFFTOPIC: tournament scheduler program
Hmm, mayby octave. Sounds like it could be getting to be an interesting combinatorical problem :) __ GNU GPL: "The Source will be with you... always." Britton Kerin On Thu, 25 Feb 1999, Alexander Kushnirenko wrote: > Hi, > > Sorry to bug you with this, it is totally off topic. I'm looking for Linux > program to build a basketball tournament schedule, several rounds, so that > teams would have same number of back-to-back games, with different opponents > in different rounds etc. With number of teams greater than 10 it's getting > really hard to trace all possible conflicts. > > Sasha. > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > >
OFF TOPIC: is this abuse of mmap()?
I have been trying to read() audio data into an mmap()ed region (from a file just created and empty before the mmap call. I know that read() normally puts the data in a buffer and not a file, but with mmap() you get back a caddr_t pointer which I am hoping read() can use. Here is the relevant chunk of code (full listing at bottom): /* create and memory map the target region */ printf("0: I'm still here sir!"); status = target = open("targetfile", O_CREAT | O_RDWR, 777); if (status < 0) perror("error opening target file"); printf("1: I'm still here sir!"); region = mmap(NULL, (off_t) 512, PROT_WRITE, MAP_SHARED, target, 0); printf("2: I'm still here sir!"); if (region == (caddr_t) (-1)) perror("mmap error"); /* record sound into mmaped region */ printf("3: I'm still here sir!"); status = read(audio, (void *) region, 512); if (status != sizeof(region)) perror("read screwed one way or another"); msync(region, 512, MS_SYNC); with the read(audio, (void *) region, 512); line not commented out, when I run this program I get: Bus error and a file in the current directory: -rx--t 1 gandalf gandalf 0 Feb 4 17:04 targetfile None of the little I'm still here sir! message print with the read in there, so I assume I'm doing something drastic. My questions: 1. Why does the file have those strange permissions? I thought I specified mode 777. 2. Is it possible to use read() into an mmap() this way? Is there some other function I should be using instead of read()? 3. Even if it is possible, is it a completely hairbrained approach? The full source of the short program in question: /* * rawrec.c Program to test recording principle of multiple mmaps, * forked into the background before syncing. */ #include #include #include #include #include #include #include #include #define LENGTH 600 /* how many seconds of the CD to store */ #define RATE 44100 /* the sampling rate */ #define SIZE 16 /* sample size: 8 or 16 bits */ #define CHANNELS 2 /* 1 = mono 2 = stereo */ int main() { int audio;/* sound device file descriptor */ int arg; /* argumrnt for ioctl calls */ int status; /* return status of system calls */ int target; /* file descriptor to write to */ void * region;/* for the pointer to the mapped file */ /* open sound device */ audio = open("/dev/dsp", O_RDWR); if (audio < 0) { perror("open of /dev/dsp failed"); exit(1); } /* set sampling parameters */ arg = SIZE; /* sample size */ status = ioctl(audio, SOUND_PCM_WRITE_BITS, &arg); if (status == -1) perror("SOUND_PCM_WRITE_BITS ioctl fialed"); if (arg != SIZE) perror("unable to set sample size"); arg = CHANNELS; /* mono or stereo */ status = ioctl(audio, SOUND_PCM_WRITE_CHANNELS, &arg); if (status == -1) perror("SOUND_PCM_WRITE_CHANNELS ioctl failed"); if (arg != CHANNELS) perror("unable to set number of channels"); arg = RATE; /* sampling rate */ status = ioctl(audio, SOUND_PCM_WRITE_RATE, &arg); if (status == -1) perror("SOUND_PCM_WRITE_RATE ioctl failed"); /* create and memory map the target region */ printf("0: I'm still here sir!"); status = target = open("targetfile", O_CREAT | O_RDWR, 777); if (status < 0) perror("error opening target file"); printf("1: I'm still here sir!"); region = mmap(NULL, (off_t) 512, PROT_WRITE, MAP_SHARED, target, 0); printf("2: I'm still here sir!"); if (region == (caddr_t) (-1)) perror("mmap error"); /* record sound into mmaped region */ printf("3: I'm still here sir!"); status = read(audio, (void *) region, 512); if (status != sizeof(region)) perror("read screwed one way or another"); msync(region, 512, MS_SYNC); }
OFF TOPIC: mh-e MIME inclusion == pine attachment?
Are these the same thing? If not, is there any way to do simple attachments with mh-e? __ GNU GPL: "The Source will be with you... always." Britton Kerin
Re: Can't send mail from my machine:
Hi Matt, I have gotten rewriting working correctly now, though I don't understand exactly why what I ended up having to do worked. My rewrite configuration in /etc/exim.conf looks like this: ## # REWRITE CONFIGURATION # ## # There are no rewriting specifications in this default configuration file. # This is an example of a useful rewriting rule---it looks up the real # address of all local users in a file [EMAIL PROTECTED]${lookup{$1}lsearch{/etc/email-addresses}\ {$value}fail} bcfrF # End of Exim configuration file Any the file /etc/email-addresses (which I created) looks like this: gandalf:[EMAIL PROTECTED] where `gandalf' is my username on my home linux box, `fsblk' my username on my isp, and `aurora.alaska.edu' my isp's host name. The $1 in the exim.conf expands to the contents of the first * (username part of addr), which exim then `lookup's via an `lsearch' in `/etc/email-addresses'. $value is then set to the second element in the colon-deliminated list in /etc/email-addresses. The wierd part is that if I use [EMAIL PROTECTED] in exim.conf, the rewrite doesn't happen, even when I send to [EMAIL PROTECTED] Also, I've been told that this [EMAIL PROTECTED] rule is horrible, since it rewrite local mail on my machine with the wrong address. I havn't managed to ferret a solution to this out of the docs though :) __ GNU GPL: "The Source will be with you... always." Britton Kerin On Thu, 31 Dec 1998 [EMAIL PROTECTED] wrote: > On Sun, Dec 27, 1998 at 10:43:53PM -0900, Britton wrote: > > > > I would try exim instead of smail, I've found it easier to set up with > > nice docs. I'm trying to get address re-writing working now, but at least > > I can send messages (albeit with [EMAIL PROTECTED] for a > > From: address). The rewrite stuff has fairly good instructions. I think > > I got errors something like yours also, I think it turned out to be a > > question of picking the right response when asked for a hostname at some > > point in there and restarting inetd or some deamon like that (helpful > > huh?). Anyway, good luck, and let me know if you get rewriting working > > logically for a ppp connected machine :) > > I replaced smail with exim, and had basically the same problem. However, > exim's error email was formatted slightly better - just enough to point me in > a direction that allowed me to get to the point you were. i.e., I can send > messages (albeit with [EMAIL PROTECTED] for a From: address. > > I will let you know if I improve this situation. > > Thanks, > > Matt Miller ([EMAIL PROTECTED]) > > Q: How many Microsoft engineers does it take to change a light bulb? > A: None. They just define Darkness(tm) as the new industry standard. > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > >
Re: AWE 64 setup ?
Marcus Brinkman (my regrets if I've butchered your name Marcus) has a spiffy mini-HOWTO on setting up the AWE32/64 on his web page, the address of which I unfortunately forget, but a search with his name in there would probably turn it up. It'll probably help you and give you an idea what's going on with isapnp and the AWE card into the boot. Good luck. __ GNU GPL: "The Source will be with you... always." Britton Kerin On 28 Dec 1998, Didier Verna wrote: > > Hi! > > Is there a simple way to setup my SoundBlaster AWE 64 for debian ? > In my former redhat installation, it was configured automatically, and I had > a > sndconfig program to position the proper IRQs and the like. I didn't find the > equivalent under debian. Do I have to assimilate the whole pnp howto ? > > Thanks. > > -- > / / _ _ Didier Vernahttp://www.inf.enst.fr/~verna/ > - / / - / / /_/ / E.N.S.T. INF C201.1 mailto:[EMAIL PROTECTED] > /_/ / /_/ / /__ /46 rue BarraultTel. (33) 01 45 81 73 46 > 75634 Paris cedex 13 Fax. (33) 01 45 81 31 19 > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > >
Re: Can't send mail from my machine:
I would try exim instead of smail, I've found it easier to set up with nice docs. I'm trying to get address re-writing working now, but at least I can send messages (albeit with [EMAIL PROTECTED] for a From: address). The rewrite stuff has fairly good instructions. I think I got errors something like yours also, I think it turned out to be a question of picking the right response when asked for a hostname at some point in there and restarting inetd or some deamon like that (helpful huh?). Anyway, good luck, and let me know if you get rewriting working logically for a ppp connected machine :) __ GNU GPL: "The Source will be with you... always." Britton Kerin On Mon, 28 Dec 1998, Matt Miller wrote: > The following attempt to contact the outside world fails: > > mail -s test [EMAIL PROTECTED] < /dev/null > > I immediately receive a message that includes the following error: > > [EMAIL PROTECTED] ... transport smtp: 553 <[EMAIL > PROTECTED]>...unresolvable; > rejected. Check your DNS > > All attempts to get any mail off my machine fail with similar errors. I > called my ISP, and they offered some excuse that "Linux is designed as > a server environment, and it doesn't like routing mail through another > machine." They suggested I either switch to Windows or Macintosh, or send > all mail by first telnetting into their network, then using my shell > account to send mail. The latter is the technique I used to send this > posting. > > I'm using smail on a hamm system, and getting a ppp connection to my ISP. > I used to be able to send mail from my machine, and I think I haven't > changed any smail configs since then. > > How do tell smail to route mail through my ISP? /etc/smail/routers is > only > >smart_host: > driver=smarthost, transport=smtp; > > and /etc/smail/config attempts to indicate that mail should be routed > through my ISP (netnet.net) via the following line: > > smart_path=netnet.net > > Thanks, > > Matt Miller > > - > "Small is beautiful." > -- Mark Gancarz, "The Unix Philosophy" > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > >
Re: ftping StarOffice in small doses
You want ncftp. Use the get -C command. __ GNU GPL: "The Source will be with you... always." Britton Kerin On Fri, 11 Dec 1998, tracheotomy bob wrote: > Hi all, > I want to download StarOffice but with it being 70Mb I don't fancy > having an > open line for seven hours plus. Does anyone know of an ftp program that can > download > in chunks at a time and doesn't mind frequent interruptions. I think in the > past someone > mentioned 'cftp' but I can't find any information on that. > Does anyone know if StarOffice 5 is libc5 or libc6. Libc6 would be > better from > my point of view, if it's not can anyone recommend an alternative. > > Thanks > > > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > >
incorrect username on 'From:' line of outgoing messages
The subject pretty much says it all. My 'smarthost' is aurora.uaf.edu, and my username on this system is fsblk, but my username from my home maching (which is 'gandalf') gets put in the "From:" line. I have tried responding with '[EMAIL PROTECTED]' when asked by smailconfig for my systems visable address, but it doesn't allow this. Is there any way to change this behavior so my outgoin messages have '[EMAIL PROTECTED]' in the 'From:' field, or do I just need to use a 'Reply-to:' field. Any help or advice greatly appreciated. __ GNU GPL: "The Source will be with you... always." Britton Kerin
Re: PPP as normal user
I have problems starting ppp as a normal user also that I have not been able to cure by mucking with permissiont in /etc and elsewhere. Mind firing off a quick ls -l /etc/ppp*? I'd really appreciate it. __ GNU GPL: "The Source will be with you... always." Britton Kerin On 27 Aug 1998, Martin Bialasinski wrote: > > >> "s" == servis <[EMAIL PROTECTED]> writes: > > s> | /etc/chatscripts/provider: > s> | -rw-r- 1 root dip 512 Aug 14 22:29 provider > s> > s> BINGO! I found that the group read bit was not on on this file. > s> Changed that and I am a happy camper now. In fact I just dialed in to > s> send this mail using my user account. > > But this is strange. pppd is setuid root. So it should be able to > read any file, right? > > Ciao, > Martin > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > >
debian program to list junk in filesystem?
Is there a debian-specific program that will go through a filesystem and lists stuff that doesn't belong, like alien files, old directories which have not been deleted because they are not empty (I get a lot of these messages), etc.? I think something like this would be extremely handy, so perhaps it already exists somewhere? :) Britton Kerin __ GNU GPL: "The Source will be with you... always." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Nethack save files: was: angband save problems
Nethack seems to have the same sort of problem. Is this perhaps a systematic error in debian's arrangement for games and other things that have to save data of this sort, or is there something we're missing? I seem to remember a big argument about where to keep certain kinds of 'variable-config-save-sorta-thingies' somewhat recently, could that be related to thses problems? > Yes, that is how you do it. However, as to whether or not that would > help, or is advisable, I'm not sure. Your executable is set GUID. Hrm. But > the files are not set to group writable. Maybe that is the problem. > > >Permissions are the same as my save file (name 1000.mcv21 and mcv21 > >instead of apc27) > > They're all in angband/lib/save, right? Nope /var/lib/games/angband/save/ Interestingly, character dumps fail as well Matthew -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: how do I delete not empty directories
On Sun, 10 May 1998, Will Lowe wrote: > On Sun, 10 May 1998, Keith wrote: > > > I have been trying to delete directories that are not empty. I try doing > > a rm -d * but I get a response that the operation is not allowed. I am > > logged in as root. What am I doing wrong. I am looking something that > > works like deltree in dos. > > rm -r directoryname > > will recursively remove "directoryname" and any files or > directories in it. > WARNING WARNING WARNING > This is a dangerous command to run as root, because you can > destroy your system and make it unbootable (like doing "deltree c:\" in > dos) ... make absolutely sure you want to get rid of whatever's in that > tree, and that your system doesn't need any of that stuff to run... > > Will Good point. It's actually a dangerous thing to do period. It's not a question of if you will one day trash crucial stuff, it's when. I reccoment you make up a ~/recycle directory or something like it and then use mv -R whatever ~/tmp. > > > -- > | [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] > | > | http://www.cis.udel.edu/~lowe/ | > |PGP Public Key: http://www.cis.udel.edu/~lowe/index.html#pgpkey| > -- > | You think you're so smart, but I've seen you naked | > | and I'll prob'ly see you naked again ... | > | --The Barenaked Ladies, "Blame It On Me" | > -- > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
ppp, nethack problems in hamm
Two small bugs I have noticed in hamm: pon command only seems to work for root now, not even users who are in dialout group. Is there some other group they need to be members of now? nethack doesn't start up, complaining about read or write permissions on critical files. anyone else had these problems? found solutions? __ GNU GPL: "The Source will be with you... always." Britton Kerin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [off-topic] Distributed computing, stellar computation
If you poke around the RC5 page, there is (or was) a page with links to other distributed computing projects, includeing some that looked to me quite nifty: finding abelian (whatever they are if I spelled it right) groups (which I suppose are of interest to number theorists), other mathy things, and SETA at home, which struck me as something of a pulicity stunt but cool nonetheless, where you sign your computer up and it gets fed data from a listening station which you machine then performs Fourier transform on and looks for all kinds of complicated signals with internal phase drift and everything, which I guess makes it enough of a computing job that the network can keep up (but they must have a pretty flashy central server). __ GNU GPL: "The Source will be with you... always." Britton Kerin On Wed, 29 Apr 1998, Kiyan Azarbar wrote: > The following is a part of a message on the Ottawa-Carleton LUG list: > > Date: Mon, 27 Apr 1998 12:01:14 -0400 (EDT) > To: Ottawa Carlton Linux Users Group <[EMAIL PROTECTED]> > Subject: [oclug] Distributed Computing effort(s) > > ... > > I'd like to get involved in some kind of distributed computing effort to > chew up the idle cycles of my CPU... I'm looked at distributed.net and > gone over the list, but there were some not listed there I heard spoken > about on the list awhile ago. > > I'm not interested in spinning my system's wheels (so to speak) on the RCS > now. I was involved for the previous attack on it, and would like to move > on to something else... > > The one that most interests me right now I beleive was (I think it was our > good Doctor even who mentioned it, although I could be wrong) aiding with > stellar traces (or something to do with the stars anyway)... I did not see > this one on distributed.net (they seem to only have the various encrytion > attacks right now) > > ... (author name withheld) > > __ > > I was wondering if anyone on this list had heard of such a thing. If > so, please contact me. I will of course pass on the information to the > original poster. I'm crossposting to this list because I am very > curious, and I figure a wider readership may be able to help more. > > -- > [EMAIL PROTECTED] A scientific truth does not triumph by convincing > A. Kiyan Azarbar its opponents and making them see the light, but > Ottawa, Canadarather because its opponents eventually die and a > Linux 2.0.32 new generation grows up that is familiar with it. > 1024/0x9A9EC5EA 4F3ADBDA1EE5850209DD8BB205250ED2F696A7BE ^- Max Planck > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]