Re: Sendmail email delays
On Sat, 16 Aug 2008 16:27:50 -0600, Tom Stuart [EMAIL PROTECTED] wrote: Here are my diffs for the files as requested. I'm thinking the actual issue may lay in my submit.mc configuration. Right now I have just the base file as I've tried editing it to no success so I changed it back to normal. I assumed you had to edit this line. I'll also note that the smarthost is a Windows 2003 Server running Exchange, relaying is enable FEATURE(`msp', `[127.0.0.1]')dnl and change the value to 10.0.0.2(which is the Smarthost IP), The Diffs: firewall-1# diff freebsd.mc firewall-1.xxx.com.mc 77c77 dnl define(`SMART_HOST', `your.isp.mail.server') --- define(`SMART_HOST', `smtp.xxx.com') firewall-1# firewall-1# diff freebsd.submit.mc firewall-1.xxx.com.submit.mc firewall-1# Hmmm. Then this is probably the problem... If the remote server is an Exchange system, I am not sure if using it as an MSP in `submit.mc' is supposed to work. Try resetting the `msp' value in `submit.mc' to: FEATURE(`msp', `[127.0.0.1]')dnl and set `SMART_HOST' in `firewall-1.xxx.com.mc' (not in the `firewall-1.xxx.com.submit.mc' file): define(`SMART_HOST', `smtp.xxx.com') Then you should enable the `submit' and `msp_queue' sendmail processes in `/etc/rc.conf' too: sendmail_enable=NO sendmail_outbound_enable=NO sendmail_submit_enable=YES sendmail_msp_queue_enable=YES ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail email delays
I made the changes to rc.conf as suggested. Also below are the new diffs. firewall-1# diff freebsd.mc firewall-1.xxx.com.mc 77c77 dnl define(`SMART_HOST', `your.isp.mail.server') --- define(`SMART_HOST', `smtp.xxx.com') firewall-1# diff freebsd.submit.mc firewall-1.xxx.com.submit.mc I have restarted sendmail(Stop,Start) and the interactive mail(mail or mailx) is still delivered instantly. However when swatch is sending mail it is still delayed. I will post some of the maillog in hopes of isolation of the issue. I also notice this error File descriptors missing on startup: stdout, stderr; Bad file descriptor(Only when sending via swatch). Maillog from mail -s test root Aug 17 04:26:49 firewall-1 sendmail[85125]: m7HAQnRC085125: from=username, size=29, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Aug 17 04:26:49 firewall-1 sm-mta[85126]: m7HAQnOJ085126: from=[EMAIL PROTECTED], size=400, class=0, nrcpts=1, msgid= [EMAIL PROTECTED], proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1] Aug 17 04:26:49 firewall-1 sendmail[85125]: m7HAQnRC085125: to=root, ctladdr=user (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30029, relay=[127.0.0.1] [12 7.0.0.1], dsn=2.0.0, stat=Sent (m7HAQnOJ085126 Message accepted for delivery) Aug 17 04:26:50 firewall-1 sm-mta[85127]: m7HAQnOJ085126: [EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] (1001/1001), delay=00:00:01, xdelay=00:0 0:01, mailer=relay, pri=30702, relay=smtp.xxx.com. [10.0.0.2], dsn=2.0.0, stat=Sent ( [EMAIL PROTECTED] Queued mail for delivery) Maillog from swatch -- Delayed Receipt(1-10 minutes) note this is all relating to the same message. Aug 17 04:30:18 firewall-1 sendmail[85137]: File descriptors missing on startup: stdout, stderr; Bad file descriptor Aug 17 04:30:18 firewall-1 sendmail[85137]: m7HAUIBd085137: from=user, size=155, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Aug 17 04:30:18 firewall-1 sendmail[85137]: m7HAUIBd085137: to=root, delay=00:00:00, mailer=relay, pri=30155, stat=queued Aug 17 04:31:34 firewall-1 sm-mta[85148]: m7HAVYEI085148: from=[EMAIL PROTECTED], size=517, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1] Aug 17 04:31:34 firewall-1 sm-msp-queue[85147]: m7HAUIBd085137: to=root, ctladdr=user (1001/1001), delay=00:01:16, xdelay=00:00:00, mailer=relay, pri=120155, relay=[127.0.0.1 ] [127.0.0.1], dsn=2.0.0, stat=Sent (m7HAVYEI085148 Message accepted for delivery) Aug 17 04:31:35 firewall-1 sm-mta[85149]: m7HAVYEI085148: [EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] (1001/1001), delay=00:00:01, xdelay=00:0 0:01, mailer=relay, pri=30819, relay=smtp.xxx.com. [10.0.0.2], dsn=2.0.0, stat=Sent ( [EMAIL PROTECTED] Queued mail for delivery) Thank you all for the help thus far. I think we are close to finding the issue. On Sun, Aug 17, 2008 at 3:58 AM, Giorgos Keramidas [EMAIL PROTECTED] wrote: On Sat, 16 Aug 2008 16:27:50 -0600, Tom Stuart [EMAIL PROTECTED] wrote: Here are my diffs for the files as requested. I'm thinking the actual issue may lay in my submit.mc configuration. Right now I have just the base file as I've tried editing it to no success so I changed it back to normal. I assumed you had to edit this line. I'll also note that the smarthost is a Windows 2003 Server running Exchange, relaying is enable FEATURE(`msp', `[127.0.0.1]')dnl and change the value to 10.0.0.2(which is the Smarthost IP), The Diffs: firewall-1# diff freebsd.mc firewall-1.xxx.com.mc 77c77 dnl define(`SMART_HOST', `your.isp.mail.server') --- define(`SMART_HOST', `smtp.xxx.com') firewall-1# firewall-1# diff freebsd.submit.mc firewall-1.xxx.com.submit.mc firewall-1# Hmmm. Then this is probably the problem... If the remote server is an Exchange system, I am not sure if using it as an MSP in `submit.mc' is supposed to work. Try resetting the `msp' value in `submit.mc' to: FEATURE(`msp', `[127.0.0.1]')dnl and set `SMART_HOST' in `firewall-1.xxx.com.mc' (not in the `firewall-1.xxx.com.submit.mc' file): define(`SMART_HOST', `smtp.xxx.com') Then you should enable the `submit' and `msp_queue' sendmail processes in `/etc/rc.conf' too: sendmail_enable=NO sendmail_outbound_enable=NO sendmail_submit_enable=YES sendmail_msp_queue_enable=YES ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Maildrop + sendmail
On Fri, 2008-08-15 at 17:22 -0300, [EMAIL PROTECTED] wrote: Hi all, Maybe it's not a FBSD problem, but I think someone here have the answer. I'm trying to use maildrop as MDA with sendmail, but I'm facing some troubles. That is, since some of my local users don't have defined a home dir, when maildrop is set to delivery mode (-d $u) in sendmail.cf, as shown in sendmail docs: FEATURE(`local_procmail', `/usr/local/bin/maildrop', `maildrop -d $u') the following message starts to show: Aug 15 11:43:25 host1 maildrop[75586]: Unable to change to home directory. If, on the other hand, I set it in sendmail as in manual mode: FEATURE(`local_procmail', `/usr/local/bin/maildrop', `maildrop /usr/local/etc/maildroprc') The maildrop processes start to grow, and the following message starts to show: Aug 15 12:02:32 host1 sm-mta[83296]: m7FEvVMM083288: timeout waiting for input from host1.mydomain.com during client greeting Aug 15 12:02:32 host1 sm-mta[83296]: m7FEvVMM083288: smtpquit: mailer local exited with exit value 75 It seems that no message body is sent to maildrop. Does any of you have successfully configured maildrop+sendmail in an scenario like that? I don't use the 'local_procmail' feature of sendmail so can't comment on those specific issues. I have a mail server using sendmail/maildrop and use /etc/mail/virtusertable and /etc/mail/aliases, e.g.: [EMAIL PROTECTED] user-alias [EMAIL PROTECTED] user-alias user-alias:| /usr/local/bin/maildrop -d [EMAIL PROTECTED] I don't know off-hand whether or how using the 'local_procmail' feature impacts on the use of aliases and virtusertable, but there might be a solution in there for you. If you can't find a solution you might also try asking on the maildrop users list. Wayne ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Linux Wolfenstein Enemy Territory - no sound
Hello. I recently installed from ports (games/linux-enemyterritory). At first it complained about missing X11 lib, and I concluded that installing linux-xorg-libs should sort it out. I wass correct (perhaps it should be added as dependency?). Running et it gives: --- sound initialization --- /dev/dsp: Invalid argument Could not mmap /dev/dsp Apparently, it's common problem on Linux too. Simplest solution reported to be working is: echo et.x86 0 0 direct/proc/asound/card0/pcm1p/oss So I think something like sysctl -w something.something=et.x86 0 0 direct should work for me. Searching for device, I have found: sysctl -a | grep 'pcm' dev.emu10kx.0._pcm_front_l: 100 dev.emu10kx.0._pcm_front_r: 100 dev.pcm.0.%desc: EMU10Kx DSP front PCM interface dev.pcm.0.%driver: pcm dev.pcm.0.%parent: emu10kx0 dev.pcm.0.eapd: 1 dev.pcm.0.play.vchans: 1 dev.pcm.0.play.vchanrate: 48000 dev.pcm.0.play.vchanformat: s16le dev.pcm.0.rec.vchans: 1 dev.pcm.0.rec.vchanrate: 48000 dev.pcm.0.rec.vchanformat: s16le dev.pcm.0.buffersize: 65536 dev.pcm.1.%desc: EMU10Kx DSP rear PCM interface dev.pcm.1.%driver: pcm dev.pcm.1.%parent: emu10kx0 dev.pcm.1.play.vchans: 1 dev.pcm.1.play.vchanrate: 48000 dev.pcm.1.play.vchanformat: s16le dev.pcm.1.buffersize: 65536 and sysctl -a | grep 'oss' compat.linux.oss_version: 198144 However, I don't have idea what to do next. Symlinking /dev/dsp/ to /dev/dsp0.0 or /dev/dsp1.0 doesn't cut it. regards -- View this message in context: http://www.nabble.com/Linux-Wolfenstein-Enemy-Territory---no-sound-tp19021118p19021118.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
securelevels
Hi I would like to know, in production envs, or anything for that matter, may I ask how many of you raise the securelevel. If so, to what do you raise it to. Kind Regards Brent Clark ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: securelevels
On Sun, Aug 17, 2008 at 7:03 PM, Brent Clark [EMAIL PROTECTED] wrote: Hi I would like to know, in production envs, or anything for that matter, may I ask how many of you raise the securelevel. If so, to what do you raise it to. Hi Brent, Long time no hear! Hope you are good. Why are you asking about this when it is so clearly documented? Anyway, I have never raised securelevel in any of my production boxen since I've never had reasons to. There must be reasons for it and I believe that is what you need to find out, and also find out if your situation warrants such actions. In most cases, I always thought securelevel was for the paranoid only, or to create a flame war - the folks anal about security. Maybe securelevel should be ported to Windows? :-) -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Oh My God! They killed init! You Bastards! --from a /. post ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Policy Kit - Not running
I'm running FBSD7 stable and I can't find out why policy kit won't run even though I have it enabled in rc.conf: dbus_enable=YES hald_enable=YES polkitd_enable=YES I can see dbus and hald but not polkitd nor do I see any error messages. Strange! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
USB Drive Reliability
I am running FreeBSD 6.3. I have found that attaching and detaching USB drives to my box is unreliable. Is this the experience of other users? Regards, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB Drive Reliability
Jason C. Wells wrote: I am running FreeBSD 6.3. I have found that attaching and detaching USB drives to my box is unreliable. Is this the experience of other users? Regards, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] What do you mean by unreliable? Please give us more details. If you unplug it while it is mounted, it will certainly result in a kernel panic. As far as FreeBSD is concerned, this is no different than opening the box and disconnecting your hard disk while it is running. Other than that, I have an external USB hard disk attached to my home server permanently. It is on all the time, it gets mounted / unmounted by scripts once or twice a day. It's been running for about two years, and never had any problem with it. I started using it with FreeBSD 6.x and is now on 7. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Welcome To TringMe
Dear mohammed, Your TringMe account is created. You can login and start using TringMe right away by clicking on the following link (or copy/paste in your browser) : http://tringme.com/login.php To login to your TringMe, you have to use the following account details : Email: freebsd-questions@freebsd.org Password: 5bcf92ed You are now ready to use TringMe! Visit http://tringme.com/learnmore.php to learn more about how to use various features of TringMe including TringPhone. To call worldwide, you just need to login, launch TringPhone and dial the number. No software to download, nothing to configure. You can receive your calls voicemails on Phone, Mobile, Gtalk, SIP, and Mobile VoIP. Most of our services are FREE. You can also call worldwide at low rate using our new service TringPhone. If you haven't visit this link to find how you save over 50% using TringPhone - http://blog.tringme.com/are-you-paying-double-for-your-phone-calls/ Important: You can earn credits for every invite you send to your friends and family from your TringMe account. You can also link TringMe from your website using referral link in your profile page. When a user clicks on one of your links to TringMe, their activity will be tracked by our software. You will earn lifelong commission for sales made to the users who joined using your invite or visited using your referral links. There is no limit to how much you can earn. We'd love to get your feedback and learn about your experiences. If you have blogged about us, or posted an article or a review somewhere, just drop us a line and we will add your link to our press page. We will certainly add some phone credits for your constructive feedback and experience, whether in your blog or direct email to us, just to acknowledge and thank you for your effort. Visit our blog http://blog.tringme.com for news, updates and technical stuffs about TringMe. Feel free to write to us at [EMAIL PROTECTED] if you need any assistance. Regards, TringMe Support http://tringme.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Posible SATA driver bug
Hi: I have a freebsd 7 on a MSI k9n6g motherboard based on Nvidia MCP61. The problem is if i connect a second hard drive to the sata controller online, i got 89% of my CPU used by interrupt (systat -pigs shows irq20: ata). The drive works but ate all my CPU. If i start it with the drive plugged works like a charm. Any ideas -- mmm, interesante. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: transcode doesn't build....
Shooting in the dark, try installing lzo or lzo2. Gary Kline-5 wrote: Hi Y'all:-) About the only thing that fails to portupgrade is multimedia/transcode [v 1.0.6]. I've poked around, but only superficially. Is there a bug report on this? Should I have checked online further? Please excuse if so. This is the first time that things have hung up and that I have not been able to resolve. thanks in advance, gary -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/transcode-doesn%27t-build-tp18993356p19023527.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: transcode doesn't build....
On Sun, 2008-08-17 at 14:26 -0700, Jakub Lach wrote: Shooting in the dark, try installing lzo or lzo2. I rebuilt/upgraded after the fixes and it built!! Gary Kline-5 wrote: Hi Y'all:-) About the only thing that fails to portupgrade is multimedia/transcode [v 1.0.6]. I've poked around, but only superficially. Is there a bug report on this? Should I have checked online further? Please excuse if so. This is the first time that things have hung up and that I have not been able to resolve. thanks in advance, gary -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD 7-STABLE +Gnome +Compiz-Fusion?
Hi, I'm trying to get Compiz-Fusion + Gnome to work on my newly (completed installation + initial upgrades last night) installed IBM T43p notebook, but I'm not sure that I'm doing this right.., Basically, I've: - 1] Installed OS 2] Upgraded OS to latest Stable as of (early AM) Aug 17th 2008 3] Upgraded install-time ports (portupgrade, cvsup, etc) 4] Installed XORG 5] Installed compiz-fusion from ports 6] installed gnome2 from ports 7] Tried following instructions located here: http://www.freebsd.org/doc/en/articles/compiz-fusion/index.html I can log into Gnome desktop fine, but running the suggested cmds: % compiz --replace --sm-disable --ignore-desktop-hints ccp % emerald --replace as per the article above, doesn't appear to do anything. I mean, what else is there that I need to do, besides, please? Here's some system info: $ uname -a FreeBSD snipped 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Aug 16 19:49:12 BST 2008 root@snipped:/usr/obj/usr/src/sys/IRON i386 $ pkg_info -a | grep -i compiz-fusion | head -3 compiz-fusion-plugins-main-0.6.0_2 compiz-fusion-plugins-extra-0.6.0_2 compiz-fusion-0.6.0_1 $ pkg_info -a | grep -i gnome2-2 | head -1 gnome2-2.22.3 $ pkg_info -a | grep -i xorg-server | head -1 xorg-server-1.4.2,1 $ Graphics card: ATI Technologies Inc M22 [Mobility Radeon X300] Any help or pointers appreciated, please. Thanks! Regards, S Roberts ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
kde troubles....
AFter a power glitch last night I was able to relogin as room, but # kdm fails with the error: can't create /var/run/kdm.pid. I check that file and, yup, it's there. kdm still fails. Gmnoe only gives me a small emergence xterm---probable due to my ~./.xsession setup. Any ideas why kdm is unhappy?? -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Posible SATA driver bug
I have a freebsd 7 on a MSI k9n6g motherboard based on Nvidia MCP61. The problem is if i connect a second hard drive to the sata controller online, i got 89% of my CPU used by interrupt (systat -pigs shows you did atacontrol detach and atacontrol attach on that channel. anyway - it may be BIOS problem, that set up the channel in strange way (or don't at all) without disk present at boot. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB Drive Reliability
I am running FreeBSD 6.3. I have found that attaching and detaching USB drives to my box is unreliable. Is this the experience of other users? something more precise please? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Linux Wolfenstein Enemy Territory - no sound
Jakub Lach wrote: Hello. I recently installed from ports (games/linux-enemyterritory). At first it complained about missing X11 lib, and I concluded that installing linux-xorg-libs should sort it out. I wass correct (perhaps it should be added as dependency?). Running et it gives: --- sound initialization --- /dev/dsp: Invalid argument Could not mmap /dev/dsp Apparently, it's common problem on Linux too. Simplest solution reported to be working is: echo et.x86 0 0 direct/proc/asound/card0/pcm1p/oss So I think something like sysctl -w something.something=et.x86 0 0 direct should work for me. Searching for device, I have found: sysctl -a | grep 'pcm' dev.emu10kx.0._pcm_front_l: 100 dev.emu10kx.0._pcm_front_r: 100 dev.pcm.0.%desc: EMU10Kx DSP front PCM interface dev.pcm.0.%driver: pcm dev.pcm.0.%parent: emu10kx0 dev.pcm.0.eapd: 1 dev.pcm.0.play.vchans: 1 dev.pcm.0.play.vchanrate: 48000 dev.pcm.0.play.vchanformat: s16le dev.pcm.0.rec.vchans: 1 dev.pcm.0.rec.vchanrate: 48000 dev.pcm.0.rec.vchanformat: s16le dev.pcm.0.buffersize: 65536 dev.pcm.1.%desc: EMU10Kx DSP rear PCM interface dev.pcm.1.%driver: pcm dev.pcm.1.%parent: emu10kx0 dev.pcm.1.play.vchans: 1 dev.pcm.1.play.vchanrate: 48000 dev.pcm.1.play.vchanformat: s16le dev.pcm.1.buffersize: 65536 and sysctl -a | grep 'oss' compat.linux.oss_version: 198144 However, I don't have idea what to do next. Symlinking /dev/dsp/ to /dev/dsp0.0 or /dev/dsp1.0 doesn't cut it. regards You need hw.snd.compat_linux_mmap=1 Happy frags :) Regards, Hugo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kde troubles....
Gary Kline wrote: AFter a power glitch last night I was able to relogin as room, but # kdm fails with the error: can't create /var/run/kdm.pid. Try deleting that file and reboot if you are starting kdm in ttys. If that by itself doesn't work there are a number of other files to clean as well, but they don't come into play until after kdm is running and you are attempting to start a KDE session as a particular user. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kde troubles....
On Sun, 17 Aug 2008 15:04:34 -0700, Gary Kline [EMAIL PROTECTED] wrote: AFter a power glitch last night I was able to relogin as room, but # kdm fails with the error: can't create /var/run/kdm.pid. I check that file and, yup, it's there. Maybe removing this PID file and retrying to start kdm should solve the problem? It is possible that kdm refuses to start while this file is present (and kdm is guessing that another kdm instance is running already). -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 7-STABLE +Gnome +Compiz-Fusion?
Stacey Roberts wrote: Hi, I'm trying to get Compiz-Fusion + Gnome to work on my newly (completed installation + initial upgrades last night) installed IBM T43p notebook, but I'm not sure that I'm doing this right.., Basically, I've: - 1] Installed OS 2] Upgraded OS to latest Stable as of (early AM) Aug 17th 2008 3] Upgraded install-time ports (portupgrade, cvsup, etc) 4] Installed XORG 5] Installed compiz-fusion from ports 6] installed gnome2 from ports 7] Tried following instructions located here: http://www.freebsd.org/doc/en/articles/compiz-fusion/index.html I can log into Gnome desktop fine, but running the suggested cmds: % compiz --replace --sm-disable --ignore-desktop-hints ccp % emerald --replace as per the article above, doesn't appear to do anything. I mean, what else is there that I need to do, besides, please? Here's some system info: $ uname -a FreeBSD snipped 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Aug 16 19:49:12 BST 2008 root@snipped:/usr/obj/usr/src/sys/IRON i386 $ pkg_info -a | grep -i compiz-fusion | head -3 compiz-fusion-plugins-main-0.6.0_2 compiz-fusion-plugins-extra-0.6.0_2 compiz-fusion-0.6.0_1 $ pkg_info -a | grep -i gnome2-2 | head -1 gnome2-2.22.3 $ pkg_info -a | grep -i xorg-server | head -1 xorg-server-1.4.2,1 $ Graphics card: ATI Technologies Inc M22 [Mobility Radeon X300] The article deals with nvidia-driver only. I currently don't have any ATI card, hence I can't find the settings required in xorg.conf for this to work. If I get a chance to try ATI, I will update the article. (I am planning to update it for Intel cards though) Any help or pointers appreciated, please. Thanks! Well, the best I can say is: - Verify that 3D is working on this card with the open source driver (you don't have a choice of drivers anyway) - Check whether compiz-fusion works in Linux with this particular card and the open source driver. - If it does, find a suggested xorg.conf and compare it to yours. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Max. number of opened files, efficiency
How many files can I open under FreeBSD, at the same time? ... I tried to open 1000 temporary files and I could do so within one second. Another interesting (offtopic) question is that I could not open 10 000 files under Windows XP. Error was too many open file. How to overcome this? The maximum number of files is controlled by kern.maxfilesperproc in /etc/sysctl.conf. It appears (on my 7.0 system) that the default is 2599. The maximum number of files per process for Windows XP is controlled in stdio.h and is set to 512 (with three eaten by stdin/stdout/stderr). On earlier versions of Windows, this number was much lower. The way to overcome this is almost always to redesign your program. You're not spawning 1000 threads (I hope) to write to every file simultaneously, so you can probably move the open/write/close-file inside your 1-to-1000 for loop and only need one file open at once, which is much more reasonable. If the size of your temporary files is small, you might look at using in-memory variables instead of files. Tait ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 7-STABLE +Gnome +Compiz-Fusion?
Hi Manolis! Good to hear from you - thanks for responding.., On Mon, 18 Aug 2008, Manolis Kiagias wrote: Stacey Roberts wrote: Hi, I'm trying to get Compiz-Fusion + Gnome to work on my newly (completed installation + initial upgrades last night) installed IBM T43p notebook, but I'm not sure that I'm doing this right.., Basically, I've: - 1] Installed OS 2] Upgraded OS to latest Stable as of (early AM) Aug 17th 2008 3] Upgraded install-time ports (portupgrade, cvsup, etc) 4] Installed XORG 5] Installed compiz-fusion from ports 6] installed gnome2 from ports 7] Tried following instructions located here: http://www.freebsd.org/doc/en/articles/compiz-fusion/index.html I can log into Gnome desktop fine, but running the suggested cmds: % compiz --replace --sm-disable --ignore-desktop-hints ccp % emerald --replace as per the article above, doesn't appear to do anything. I mean, what else is there that I need to do, besides, please? Here's some system info: $ uname -a FreeBSD snipped 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Aug 16 19:49:12 BST 2008 root@snipped:/usr/obj/usr/src/sys/IRON i386 $ pkg_info -a | grep -i compiz-fusion | head -3 compiz-fusion-plugins-main-0.6.0_2 compiz-fusion-plugins-extra-0.6.0_2 compiz-fusion-0.6.0_1 $ pkg_info -a | grep -i gnome2-2 | head -1 gnome2-2.22.3 $ pkg_info -a | grep -i xorg-server | head -1 xorg-server-1.4.2,1 $ Graphics card: ATI Technologies Inc M22 [Mobility Radeon X300] The article deals with nvidia-driver only. Hmm.., the article though, at http://www.freebsd.org/doc/en/articles/compiz-fusion/nvidia-setup.html, does state If you are using another card, that you know can handle desktop effects, you may skip this section and continue with the xorg.conf configuration - maybe I read too much into that statement??? Will keep looking around some more though.., Hopefully someone else has worked on this combitnation in the past, somewhere.., Thanks again for responding. Regards, S Roberts I currently don't have any ATI card, hence I can't find the settings required in xorg.conf for this to work. If I get a chance to try ATI, I will update the article. (I am planning to update it for Intel cards though) Any help or pointers appreciated, please. Thanks! Well, the best I can say is: - Verify that 3D is working on this card with the open source driver (you don't have a choice of drivers anyway) - Check whether compiz-fusion works in Linux with this particular card and the open source driver. - If it does, find a suggested xorg.conf and compare it to yours. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 7-STABLE +Gnome +Compiz-Fusion?
Stacey Roberts wrote: Hi Manolis! Good to hear from you - thanks for responding.., On Mon, 18 Aug 2008, Manolis Kiagias wrote: Stacey Roberts wrote: Hi, I'm trying to get Compiz-Fusion + Gnome to work on my newly (completed installation + initial upgrades last night) installed IBM T43p notebook, but I'm not sure that I'm doing this right.., Basically, I've: - 1] Installed OS 2] Upgraded OS to latest Stable as of (early AM) Aug 17th 2008 3] Upgraded install-time ports (portupgrade, cvsup, etc) 4] Installed XORG 5] Installed compiz-fusion from ports 6] installed gnome2 from ports 7] Tried following instructions located here: http://www.freebsd.org/doc/en/articles/compiz-fusion/index.html I can log into Gnome desktop fine, but running the suggested cmds: % compiz --replace --sm-disable --ignore-desktop-hints ccp % emerald --replace as per the article above, doesn't appear to do anything. I mean, what else is there that I need to do, besides, please? Here's some system info: $ uname -a FreeBSD snipped 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Aug 16 19:49:12 BST 2008 root@snipped:/usr/obj/usr/src/sys/IRON i386 $ pkg_info -a | grep -i compiz-fusion | head -3 compiz-fusion-plugins-main-0.6.0_2 compiz-fusion-plugins-extra-0.6.0_2 compiz-fusion-0.6.0_1 $ pkg_info -a | grep -i gnome2-2 | head -1 gnome2-2.22.3 $ pkg_info -a | grep -i xorg-server | head -1 xorg-server-1.4.2,1 $ Graphics card: ATI Technologies Inc M22 [Mobility Radeon X300] The article deals with nvidia-driver only. Hmm.., the article though, at http://www.freebsd.org/doc/en/articles/compiz-fusion/nvidia-setup.html, does state If you are using another card, that you know can handle desktop effects, you may skip this section and continue with the xorg.conf configuration - maybe I read too much into that statement??? Well, the article is right to the point that you will not install nvidia drivers on an ATI card ;) However as I understand 3D support in ATI is a hit and miss even in Linux (and ATI's proprietary driver is awful). The xorg.conf settings in the article have only been tested with nvidia, and may need some adjustment for other 3D capable cards. I've been told they don't work with Intel, but will investigate this on my eeePC soon. As for your ATI, a quick search shows that 3D with AIGLX is supported by the open source drivers in X300. I've found several xorg.conf samples, so it is probably a matter of doing a bit of research. If you do find the magic line that makes it work, I would be glad to hear about it and add it to the article. Thanks, Manolis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kde troubles....
On Sun, Aug 17, 2008 at 06:12:27PM -0400, Michael Powell wrote: Gary Kline wrote: AFter a power glitch last night I was able to relogin as room, but # kdm fails with the error: can't create /var/run/kdm.pid. Try deleting that file and reboot if you are starting kdm in ttys. If that by itself doesn't work there are a number of other files to clean as well, but they don't come into play until after kdm is running and you are attempting to start a KDE session as a particular user. nojoy. the err message is gone, but KDE creates an /rmpty kdm.pid and does nothing. stdout says Information: reading current kdmrc . \n and then: Infirmation: current kdmrc is from kde 3.1 . Nothing else; what else neeeds cleaning? thanks. gary -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kde troubles....
On Mon, Aug 18, 2008 at 12:14:26AM +0200, Polytropon wrote: On Sun, 17 Aug 2008 15:04:34 -0700, Gary Kline [EMAIL PROTECTED] wrote: AFter a power glitch last night I was able to relogin as room, but # kdm fails with the error: can't create /var/run/kdm.pid. I check that file and, yup, it's there. Maybe removing this PID file and retrying to start kdm should solve the problem? It is possible that kdm refuses to start while this file is present (and kdm is guessing that another kdm instance is running already). danke, uber nien.[1] if you see my reply to Mike Power, that's a no-go. I tried to get KDE up hours ago, but after failing, thought I'd try building kde4, ja? nope. that bombed somewhere while I was getting stuff done on my ubuntu desktop. ever have the urge to put your fist thru the CRT? (*) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] [1] how fractured is that!? -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RES: RES: Very Slow Samba
At 09:37 AM 8/15/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote: Hi Derek, I didn't have any Intel boards here for spare, but i Found a HP PCI-Express 1x Giga Ethernet here. It's a broadcom chipset, I did replace the card but still with the same problem. I also did a very deep research in google and found more people with the same problem and everyone of them without a solution. I guess that it's a issue between Samba and FreeBSD. I do say that 'cuz on Linux+Samba (Debian Kernel+Samba.deb) this issue does not appear. Anyway, If you have another idea. BTW, this box was the same box that used to run Windows 2003 with SQL Server. Thank you for the support. Best Regards, Mauro Ribeiro Mauro, I'd look at your samba configuration and DNS configuration. If you have samba running on another *NIX OS faster I'd compare the samba, authentication, and dns configurations. I'd still suggest you buy a new intel ethernet. These are not expensive and I know they work well under any load. For a test, you could also try FreeNAS instead of FreeBSD+Samba. It is essentially the same but all packaged for file sharing. -Derek -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Derek Ragona Enviada em: quinta-feira, 14 de agosto de 2008 17:39 Para: Mauro Ribeiro - Class Consultoria e Assessoria; freebsd-questions@freebsd.org Assunto: Re: RES: Very Slow Samba At 03:22 PM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote: Hi Derek, I don't use authentication on this server, no internet connection. Only 1 share and on this share everyone must have write permissions. re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=399bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_UCA S T,WOL_MCAST,WOL_MAGIC ether 00:e0:4c:10:c9:75 inet 192.168.0.254 netmask 0xff00 broadcast 192.168.0.255 media: Ethernet autoselect (1000baseTX full-duplex) status: active It's a realtek gigabit pci card. 8169 chipset. First thing I'd do is replace the realtek. They are terrible especially under any load. Replace with a gigabit card from intel. Then see how it works. -Derek -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Derek Ragona Enviada em: quinta-feira, 14 de agosto de 2008 14:17 Para: Mauro Ribeiro - Class Consultoria e Assessoria; freebsd-questions@freebsd.org Assunto: Re: Very Slow Samba At 10:21 AM 8/14/2008, Mauro Ribeiro - Class Consultoria e Assessoria wrote: Hi All, I had migrated a Windows 2003 Server to a Samba Server (only for file share) We share only the company system. That's a 3mb Delphi .exe and a 1,5mb libmysql.dll. BTW, the system loads 4 .jpg files from the server. On our old Windows Server the system was very fast on Samba is damn slow. About 2 mins to load. I have no clue on what to do. Server Specs: Pentium 4 3.0Ghz 1GB RAM, FreeBSD 7.0-STABLE and Samba 3.0.28a. Here's is my smb.conf [global] workgroup = CLASS server string = Class Data Server security = share hosts allow = 192.168.0. load printers = yes printing = cups log file = /var/log/samba/log.%m max log size = 150 socket options = TCP_NODELAY interfaces = 192.168.0.0/24 dns proxy = no veto oplock files = /*.exe/*.dll/*.jpg/*.pdf/*.gif/ oplock break wait time = 1 debug level = 10 [Class] Comment = Class Browseable = Yes Writeable = Yes Force User = root create mask = 0777 path = /dados/samba/Class Guest ok = Yes fake oplocks = yes Best Regards, Mauro Ribeiro What network card is in this server? What are you using for authentication? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] __ NOD32 3351 (20080813) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To
Re: Linux Wolfenstein Enemy Territory - no sound
Many thanks, works splendid :) Ironically, I'm leaving at dawn for two weeks AFK. Hugo Silva wrote: Jakub Lach wrote: Hello. I recently installed from ports (games/linux-enemyterritory). At first it complained about missing X11 lib, and I concluded that installing linux-xorg-libs should sort it out. I wass correct (perhaps it should be added as dependency?). Running et it gives: --- sound initialization --- /dev/dsp: Invalid argument Could not mmap /dev/dsp Apparently, it's common problem on Linux too. Simplest solution reported to be working is: echo et.x86 0 0 direct/proc/asound/card0/pcm1p/oss So I think something like sysctl -w something.something=et.x86 0 0 direct should work for me. Searching for device, I have found: sysctl -a | grep 'pcm' dev.emu10kx.0._pcm_front_l: 100 dev.emu10kx.0._pcm_front_r: 100 dev.pcm.0.%desc: EMU10Kx DSP front PCM interface dev.pcm.0.%driver: pcm dev.pcm.0.%parent: emu10kx0 dev.pcm.0.eapd: 1 dev.pcm.0.play.vchans: 1 dev.pcm.0.play.vchanrate: 48000 dev.pcm.0.play.vchanformat: s16le dev.pcm.0.rec.vchans: 1 dev.pcm.0.rec.vchanrate: 48000 dev.pcm.0.rec.vchanformat: s16le dev.pcm.0.buffersize: 65536 dev.pcm.1.%desc: EMU10Kx DSP rear PCM interface dev.pcm.1.%driver: pcm dev.pcm.1.%parent: emu10kx0 dev.pcm.1.play.vchans: 1 dev.pcm.1.play.vchanrate: 48000 dev.pcm.1.play.vchanformat: s16le dev.pcm.1.buffersize: 65536 and sysctl -a | grep 'oss' compat.linux.oss_version: 198144 However, I don't have idea what to do next. Symlinking /dev/dsp/ to /dev/dsp0.0 or /dev/dsp1.0 doesn't cut it. regards You need hw.snd.compat_linux_mmap=1 Happy frags :) Regards, Hugo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Linux-Wolfenstein-Enemy-Territory---no-sound-tp19021118p19024428.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
{Disarmed} Re: {Spam?} {Disarmed} Re: Sendmail email delays
At 07:49 PM 8/15/2008, Tom Stuart wrote: I have tried doing the forwarding via /etc/mail/aliases and it worked identically as it was with the /root/.forward. The mail does go through but gets delayed 5+ minutes, however when I send mail interactively using mailx or mail commands the receiving mailserver receives the message instantly. I'd also like to add that if I restart sendmail via /etc/rc.d/sendmail restart the mail gets instantly received also...Thanks for the help thus far Check your sendmail options in /etc/rc.conf and if you don't have any there, check the defaults. Usually you are running two versions of sendmail. Check the sendmail flags you are using for something like -q5m. If you see this, try changing the value and see if that effects your delivery time. -Derek On Fri, Aug 15, 2008 at 6:22 PM, Derek Ragona mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: At 03:49 PM 8/15/2008, Tom Stuart wrote: I've been having trouble sending email that was sent via a process(swatch). I can send emails fine via command-line and receive immediately to the forwarded address. However when sent via swatch it can take 5-10 minutes. These entries appear in /var/log/mailllog. Note this is all relating to the same email and notice the 11 minute delay. Thanks in advance for any help. Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: from=username, size=155, class=0, nrcpts=1, msgid= mailto:[EMAIL PROTECTED][EMAIL PROTECTED], [EMAIL PROTECTED] ocalhost Aug 15 14:35:12 firewall-1 sendmail[72747]: m7FKZCXf072747: to=root, delay=00:00:00, mailer=relay, pri=30155, stat=queued Aug 15 14:43:18 firewall-1 sendmail[72762]: m7FKhHx8072762: from=username, size=0, class=0, nrcpts=0, [EMAIL PROTECTED] Aug 15 14:46:03 firewall-1 sm-mta[72794]: m7FKk3wc072794: from= mailto:[EMAIL PROTECTED][EMAIL PROTECTED], size=512, class=0, nrcpts=1, msgid= mailto:[EMAIL PROTECTED][EMAIL PROTECTED], proto=ESMTP, daemon=Daemon0, relay=localhost [http://127.0.0.1MailScanner warning: numerical links are often malicious:http://127.0.0.1 127.0.0.1] Aug 15 14:46:03 firewall-1 sm-msp-queue[72793]: m7FKZCXf072747: to=root, ctladdr=username (1001/1001), delay=00:10:51, xdelay=00:00:00, mailer=relay, pri=120155, relay=[http://127.0.0.1MailScanner warning: numerical links are often malicious:http://127.0.0.1 127.0.0.1 ] [http://127.0.0.1MailScanner warning: numerical links are often malicious:http://127.0.0.1 127.0.0.1], dsn=2.0.0, stat=Sent (m7FKk3wc072794 Message accepted for delivery) Aug 15 14:46:03 firewall-1 sm-mta[72795]: m7FKk3wc072794: to= mailto:[EMAIL PROTECTED][EMAIL PROTECTED], ctladdr=mailto:[EMAIL PROTECTED][EMAIL PROTECTED] (1001/1001), delay=00:00:00, xdelay=00:0 0:00, mailer=relay, pri=30809, relay=http://smtp.xxx.comsmtp.xxx.com. [http://10.0.0.2MailScanner warning: numerical links are often malicious:http://10.0.0.2 10.0.0.2], dsn=2.0.0, stat=Sent ( mailto:[EMAIL PROTECTED][EMAIL PROTECTED] Queued mail for delivery) I think its important to know these details: firewall-1# uname -a FreeBSD http://firewall-1.xxx.comfirewall-1.xxx.com 7.0-RC1 FreeBSD 7.0-RC1 #2: Tue Feb 5 07:10:05 MST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FIREWALL-1 i386 There is a .forward file in /root to forward root's mail to [EMAIL PROTECTED] is to be sent via smarthost. I have the smarthost DS parameter in /etc/mail/http://sendmail.cfsendmail.cf configured to use http://DSsmtp.xxx.comDSsmtp.xxx.com /etc/hosts contains localhost http://127.0.0.1MailScanner warning: numerical links are often malicious:http://127.0.0.1 127.0.0.1 firewall-1 http://firewall-1.xxx.comfirewall-1.xxx.com http://smtp.xxx.comsmtp.xxx.com http://10.0.0.2MailScanner warning: numerical links are often malicious:http://10.0.0.2 10.0.0.2 Have you tried changing the alias for root to the forwarded address in /etc/mail/aliases? You can make the change there and rebuild the aliases file. -Derek -- This message has been scanned for viruses and dangerous content by http://www.mailscanner.info/MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by http://www.mailscanner.info/MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
{Disarmed} Re: best website for used thinkpads?
At 05:06 PM 8/16/2008, Gary Kline wrote: It's time to think about replacing my old 600E that died last March with a faster (Mhz = 1.8 || Mz = 2.2 ), and drop in a large drive and max out the RAM. I'm already begun googling around, but figured that the ThinkPad folks here might have a preferred website. Any favorite? tia, gary lenova sells refurbished ones from their website. -Derek -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kde troubles....
On Sun, 17 Aug 2008 16:30:07 -0700, Gary Kline [EMAIL PROTECTED] wrote: On Mon, Aug 18, 2008 at 12:14:26AM +0200, Polytropon wrote: Maybe removing this PID file and retrying to start kdm should solve the problem? It is possible that kdm refuses to start while this file is present (and kdm is guessing that another kdm instance is running already). danke, uber nien.[1] [1] how fractured is that!? I thinks it's danke, aber nein. if you see my reply to Mike Power, that's a no-go. The PID file should not be empty, it should contain the PID of kdm as text. Another problem seems to be that the kdm from KDE 4 does need a different configuration file than KDE 3... maybe you can remove / rename version 3 of the file and see if there are any defaults for version 4, eventually generated automatically? I tried to get KDE up hours ago, but after failing, thought I'd try building kde4, ja? nope. Eventually testing xdm instead of kdm - just to see if this one is working - would be a first step. I'm no KDE user, so I'm sorry I can't help any more. that bombed somewhere while I was getting stuff done on my ubuntu desktop. If you use precompiled packages, there should not be a problem. If you're interested in a preconfigured and working KDE and you don't mind that it's KDE 3 on a FreeBSD 6 system, why not try PC-BSD or DesktopBSD? ever have the urge to put your fist thru the CRT? (*) Yes, since I need to use FreeBSD 7 after an accident destroying all my data where fsck cannot help anymore, and FreeBSD 7 and it's software does not behave the way I think it should... :-( -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kde troubles....
Gary Kline wrote: [snip] the err message is gone, but KDE creates an /rmpty kdm.pid and does nothing. This is not good. The file should contain a number. [snip] It would also be helpful to know how you are trying to run KDE. There are two ways, the first being to have a line like: ttyv8 /usr/local/bin/kdm -nodaemon xterm on secure in /etc/ttys which starts kdm as a graphical login at boot. The other is to boot and login as user, then do the startx command which needs startkde to be in .xinitrc and/or .xsession in your Home directory. Nothing else; what else neeeds cleaning? Not sure what got munged with your power glitch, but a couple of times in the past when I've had trouble getting KDE to start I would login as root (or su) without X running and delete some stuff. Look in your user home directory for something like .DCOPserver_hostname_:0; there will be two - one is a link to the other. Delete both of these and delete the ksocket-yourusername folder in /tmp. Also while in /tmp look for .X0-lock and delete. Look for the folders .ICE-unix and .X11-unix and delete all the sockets you find in these two folders. Make note both of these folders should have the sticky bit set. Also delete the /var/run/kdm.pid again like before. This is how I've gotten KDE to start in the past after an uh-oh. It also may not pertain to your particular situation. One thing you can do to troubleshoot X if you are using startx (ie not starting kdm at login with the ttys line above) is to have an empty .xinitrc and/or .xsession. Then when you run X the twm window manager should come up, as it is the default for X. This way you can drive a wedge between Is it an X problem or a KDE problem? Good luck and I hope you get it going. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB Drive Reliability
Wojciech Puchar wrote: I am running FreeBSD 6.3. I have found that attaching and detaching USB drives to my box is unreliable. Is this the experience of other users? something more precise please? I realize that this is primarily a tech support forum. I wasn't asking for a solution to the problem. I was asking for other peoples experiences. If the USB support in FreeBSD was spotty according to other people, as has been reported, then I plan to not even try to work on it more until I install 7.1. Just for the record: - crashes the system on attachment - crashes the system on detachment - the system hangs on attachment but resumes responding if you pull the drive - installing the drive results in the little blue light coming on with dmesg reporting attachment, but attempts to mount fail with device not configured or somesuch - dataloss on the device that chkdisk in DOS couldn't save Basically, every possible bad behavior that you could ask from a USB connected drive has happened to me over time as I keep coming back and trying USB drives. That's OK. I'm not upset. I'm not complaining. I just want to know what to expect from USB drives in FreeBSD. BTW, I love Poland! My family hails from Poland several generations ago. I just watched you guys win gold in boat racing. Robert Kubica is my favorite driver. I've also been keeping on eye on Poland in the world scene. Don't let the bear get you down. They have no cause to say the things they've said recently. I wish your country the best. Regards, Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kde troubles....
On Mon, 2008-08-18 at 02:02 +0200, Polytropon wrote: On Sun, 17 Aug 2008 16:30:07 -0700, Gary Kline [EMAIL PROTECTED] wrote: On Mon, Aug 18, 2008 at 12:14:26AM +0200, Polytropon wrote: Maybe removing this PID file and retrying to start kdm should solve the problem? It is possible that kdm refuses to start while this file is present (and kdm is guessing that another kdm instance is running already). danke, uber nien.[1] [1] how fractured is that!? I thinks it's danke, aber nein. if you see my reply to Mike Power, that's a no-go. The PID file should not be empty, it should contain the PID of kdm as text. Another problem seems to be that the kdm from KDE 4 does need a different configuration file than KDE 3... maybe you can remove / rename version 3 of the file and see if there are any defaults for version 4, eventually generated automatically? I tried to get KDE up hours ago, but after failing, thought I'd try building kde4, ja? nope. Eventually testing xdm instead of kdm - just to see if this one is working - would be a first step. I'm no KDE user, so I'm sorry I can't help any more. that bombed somewhere while I was getting stuff done on my ubuntu desktop. If you use precompiled packages, there should not be a problem. If you're interested in a preconfigured and working KDE and you don't mind that it's KDE 3 on a FreeBSD 6 system, why not try PC-BSD or DesktopBSD? ever have the urge to put your fist thru the CRT? (*) Yes, since I need to use FreeBSD 7 after an accident destroying all my data where fsck cannot help anymore, and FreeBSD 7 and it's software does not behave the way I think it should... :-( i know the feeling. xdm works very well, but only tried logging in as root. missing .xsession and .ctwmrc that i used more many, Many years. i'll tell you, after using FBSD since 2.0.5, i'm ready to give omething prepackaged a try. To the LIST: I found my missing .xinitrc. but now my .xsession file is gone. . going to reboot after rm'ing kdm.pid. . ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how do I get Speech working with Firefox?
On Sun, 17 Aug 2008 14:20:50 -0700 Gary Kline [EMAIL PROTECTED] wrote: On Sun, 2008-08-17 at 20:17 +1000, Norberto Meijome wrote: On Sat, 16 Aug 2008 14:46:04 -0700 Gary Kline [EMAIL PROTECTED] wrote: Anybody know what I'm not doing right and that the java app fails to produce speech from one of the firefox applets? { please keep the ML in the TO or CC of your emails, so others can help :) ) Gary, it would help if you said what are you doing , and what isn't happening, so someone can say what are you doing, if anything, wrong. Just to try to make it a useful reply, you do have java support working on your ffox, right? Yes, I installed the required java suite; and it is shown in about:plugins ? for example, mine shows : about:plugins Java(TM) Plug-in 1.6.0_03-p4-b00 File name: libjavaplugin_oji.so Java(TM) Plug-in 1.6.0_03 [table follows showing all supported types ] I pulled down the speech deal, I still don't know what is this speech deal you mention. then then I moused a few paragraphs and hit the Speech area, nada. B _ {Beto|Norberto|Numard} Meijome But I don't have to know an answer. I don't feel frightened by not knowing things, by being lost in the mysterious universe without having any purpose, which is the way it really is, as far as I can tell, possibly. It doesn't frighten me. Richard Feynman I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Shell scripts: variable assignment within read loops
I am writing a (Bourne) shell script that is intended (among other things) to obtain information from a command, such as: netstat -nibd -f inet by reading and parsing the output. However, the obvious (to me) approach of piping the output of the command to the standard input of a while read ... statement turns out to be not very useful; it appears that while foo= while read bar ... ; do ... foo=$bar ... done $filename echo $foo will assign to foo the value of the bar variable form the last record read (in FreeBSD 6.3-STABLE, at least), the following fails to do so: foo= cat $filename | while read bar ... ; do ... foo=$bar ... done echo $foo Well, that's not *quite* accurate:the assignment is done all right, but in the latter case, it appears to be done in a subshell, so by the time we get to the echo statement, any variable assignments from within the read loop have vanished. Here's a cut/pasted, somewhat contrived example: #! /bin/sh foo=0 echo 0 foo: $foo while read line; do echo 1.0 foo: $foo foo=1$line echo 1.1 foo: $foo done /etc/resolv.conf echo 2 foo: $foo echo foo=2 echo 3 foo: $foo eval cat /etc/resolv.conf | grep '.' cat /etc/resolv.conf | while read line; do echo 4.0 foo: $foo foo=3$line echo 4.1 foo: $foo done echo 5 foo: $foo exit 0 and its output on my laptop: 0 foo: 0 1.0 foo: 0 1.1 foo: 1search catwhisker.org 1.0 foo: 1search catwhisker.org 1.1 foo: 1nameserver 172.16.8.12 1.0 foo: 1nameserver 172.16.8.12 1.1 foo: 1nameserver 172.16.8.11 1.0 foo: 1nameserver 172.16.8.11 1.1 foo: 1nameserver 172.16.8.1 2 foo: 1nameserver 172.16.8.1 3 foo: 2 search catwhisker.org nameserver 172.16.8.12 nameserver 172.16.8.11 nameserver 172.16.8.1 4.0 foo: 2 4.1 foo: 3search catwhisker.org 4.0 foo: 3search catwhisker.org 4.1 foo: 3nameserver 172.16.8.12 4.0 foo: 3nameserver 172.16.8.12 4.1 foo: 3nameserver 172.16.8.11 4.0 foo: 3nameserver 172.16.8.11 4.1 foo: 3nameserver 172.16.8.1 5 foo: 2 Note that the 2 foo line shows a value read from the last line of /etc/resolv.conf, while the 5 foo line fails to do so. (In a Solaris 9 environment, the output from each stanza is the same as the output from teh second stanza in FreeBSD.) Now here's a copy of the in-development script: #! /bin/sh cmd=netstat -nibd -f inet ctr=0 clist= hlist=`$cmd | head -1` for f in $hlist; do ctr=$(( $ctr + 1 )) eval c$ctr=\$f\ eval h_$f=c$ctr done cmax=$ctr t_file=`mktemp /tmp/X` $cmd | tail +2 $t_file while read $hlist dummy; do if [ $Name = lo0 ]; then continue fi for f in $hlist; do eval val=\\$$f\ case $val in -) eval ${f}_$Name=0;; *) eval ${f}_$Name=$val;; esac; done nics=$Name $nics; done/$t_file rm $t_file echo (end) NICs: $nics for n in $nics; do for f in $hlist; do eval echo ${f}_$n: \$${f}_$n done done exit 0 And its output on my laptop: (end) NICs: ath0 Name_ath0: ath0 Mtu_ath0: 1500 Network_ath0: 172.17 Address_ath0: 172.17.1.30 Ipkts_ath0: 725191 Ierrs_ath0: 0 Ibytes_ath0: 185144197 Opkts_ath0: 821917 Oerrs_ath0: 0 Obytes_ath0: 74260936 Coll_ath0: 0 Drop_ath0: 0 and (somewhat more interestingly) on my firewall machine: (end) NICs: dc0 de0 fxp0 Name_dc0: dc0 Mtu_dc0: 1500 Network_dc0: 172.16.8/24 Address_dc0: 172.16.8.1 Ipkts_dc0: 2501577 Ierrs_dc0: 0 Ibytes_dc0: 215386153 Opkts_dc0: 20269087 Oerrs_dc0: 0 Obytes_dc0: 2553930555 Coll_dc0: 0 Drop_dc0: 0 Name_de0: de0 Mtu_de0: 1500 Network_de0: 63.193.123/24 Address_de0: 63.193.123.122 Ipkts_de0: 5936847 Ierrs_de0: 0 Ibytes_de0: 734092787 Opkts_de0: 18557543 Oerrs_de0: 0 Obytes_de0: 2551089632 Coll_de0: 0 Drop_de0: 0 Name_fxp0: fxp0 Mtu_fxp0: 1500 Network_fxp0: 172.17 Address_fxp0: 172.17.0.1 Ipkts_fxp0: 10013 Ierrs_fxp0: 0 Ibytes_fxp0: 1366082 Opkts_fxp0: 1253115 Oerrs_fxp0: 0 Obytes_fxp0: 70429903 Coll_fxp0: 0 Drop_fxp0: 0 As you see, I am circumventing the issue by writing to a transient file. In the intended application, the script is to be used to gather resource-utilization information; thus, I want its footprint to be smaller, rather than larger. Granted, in my case, I would be writing a tiny text file to a swap-backed tmpfs, but in production, I won't have the luxury of knowing that in advance: the intent is that the script must run on a minimal FreeBSD system, with no ports or other 3rd-party software installed. Is there some other -- possibly better -- way to do this (using Bourne shell scripting)? Thanks! (Please select recipients for your replies carefully: I'm not subscribed to -questions. I've provided a hint in the form of a Reply-To header, though I realize that not all mailers honor it. Please do include me in replies.) Peace, david -- David H. Wolfskill [EMAIL PROTECTED] Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public
Re: FreeBSD 7-STABLE +Gnome +Compiz-Fusion?
Manolis Kiagias sonic2000gr at gmail.com writes: Well, the article is right to the point that you will not install nvidia drivers on an ATI card ;) However as I understand 3D support in ATI is a hit and miss even in Linux (and ATI's proprietary driver is awful). The xorg.conf settings in the article have only been tested with nvidia, and may need some adjustment for other 3D capable cards. I've been told they don't work with Intel, but will investigate this on my eeePC soon. As for your ATI, a quick search shows that 3D with AIGLX is supported by the open source drivers in X300. I've found several xorg.conf samples, so it is probably a matter of doing a bit of research. If you do find the magic line that makes it work, I would be glad to hear about it and add it to the article. Thanks, Manolis Hi, I have posted a solution which works for my Intel 965G card on the x11 list in June. Here's the link: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=27348+0+archive/2008/freebsd-x11/20080615.freebsd-x11 Hope it helps you in updating your guide, which is a great help for the FreeBSD people. Many thanks :) - Novembre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kde troubles....
On Sun, 17 Aug 2008 17:41:42 -0700, Gary Kline [EMAIL PROTECTED] wrote: On Mon, 2008-08-18 at 02:02 +0200, Polytropon wrote: Yes, since I need to use FreeBSD 7 after an accident destroying all my data where fsck cannot help anymore, and FreeBSD 7 and it's software does not behave the way I think it should... :-( i know the feeling. It's not that I want to complain, I'll stay with FreeBSD, I'm just a little upset. Things behave much slower, allthough the system boots faster. X and the applications seem to eat up every bit of performance boost the new OS gave them. In the good old times, you could update your applications and they ran faster on the same hardware. That's what I've loved FreeBSD for. Today, the applications run slower after every update, so I have to update my hardware in order to just keep the speed? (Off topic, sorry.) xdm works very well, but only tried logging in as root. missing .xsession and .ctwmrc that i used more many, Many years. i'll tell you, after using FBSD since 2.0.5, i'm ready to give omething prepackaged a try. The only things I do compile is wirld, kernel, and mplayer. For everything else, pkg_add -r is very welcome. By the way, compiling lasts much longer in FreeBSD 7. I think this is due to more optimization, but from 1 to 9 hours... what's wrong here?! Of course, xdm won't give you the functionality that kdm offers. A nice replacement for xdm, by the way, is wdm, which you can use together with Windowmaker, but without it, too. Especially if you want to use different window managers, wdm allows a simple means to switch them at login time. To the LIST: I found my missing .xinitrc. but now my .xsession file is gone. This is my ~/.xsession: It allows sourcing of the settings from ~/.cshrc (because the C shell is my usual dialog shell) and then executes ~/.xinitrc: #!/bin/csh source ~/.cshrc exec ~/.xinitrc So you can keep all your settings in ~/.xinitrc, for example: #!/bin/sh xmodmap ~/.xmodmaprc xsetroot -solid rgb:3b/4c/7a xset b 100 1000 15 xset r rate 250 30 xset s off xset -dpms exec wmaker Both files are +x attributes. going to reboot after rm'ing kdm.pid. You should be able to restart kdm from the console, but I think your setting includes automatic kdm start after system startup, controlled by /etc/ttys. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kde troubles....
On Sun, 2008-08-17 at 20:17 -0400, Michael Powell wrote: Gary Kline wrote: [snip] the err message is gone, but KDE creates an /rmpty kdm.pid and does nothing. This is not good. The file should contain a number. [snip] It would also be helpful to know how you are trying to run KDE. There are two ways, the first being to have a line like: ttyv8 /usr/local/bin/kdm -nodaemon xterm on secure in /etc/ttys which starts kdm as a graphical login at boot. The other is to boot and login as user, then do the startx command which needs startkde to be in .xinitrc and/or .xsession in your Home directory. i do not have KDE start by /etc/ttys; i start it as root via kdm. i just tried startxx and have my KDE env back up. i have many many more spps that i had thought; will axe most. the thing of note is that as root, startx splat a screen full of X11 errors that prob'ly are meaningful to X11 wizards. it looked like there were two or more illegal actions... is there any way of my capturing the output and posting it to the list ? Nothing else; what else neeeds cleaning? Not sure what got munged with your power glitch, but a couple of times in the past when I've had trouble getting KDE to start I would login as root (or su) without X running and delete some stuff. Look in your user home directory for something like .DCOPserver_hostname_:0; there will be two - one is a link to the other. Delete both of these and delete the ksocket-yourusername folder in /tmp. Also while in /tmp look for .X0-lock and delete. Look for the folders .ICE-unix and .X11-unix and delete all the sockets you find in these two folders. Make note both of these folders should have the sticky bit set. Also delete the /var/run/kdm.pid again like before. This is how I've gotten KDE to start in the past after an uh-oh. It also may not pertain to your particular situation. One thing you can do to troubleshoot X if you are using startx (ie not starting kdm at login with the ttys line above) is to have an empty .xinitrc and/or .xsession. Then when you run X the twm window manager should come up, as it is the default for X. This way you can drive a wedge between Is it an X problem or a KDE problem? o xdm by itsekf brings up root; startx with startkde brings up kde. For reasons beyond me, kdm balks at creating /var/run/kdm.pid. Oh, and since I did a complete portupgrade recently, I did an X -configure and am now using the new xorg.conf. thanks much. time to call it a century! gary Good luck and I hope you get it going. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Shell scripts: variable assignment within read loops
On Sun, 17 Aug 2008 18:33:28 -0700, David Wolfskill [EMAIL PROTECTED] wrote: I am writing a (Bourne) shell script that is intended (among other things) to obtain information from a command, such as: netstat -nibd -f inet by reading and parsing the output. However, the obvious (to me) approach of piping the output of the command to the standard input of a while read ... statement turns out to be not very useful; it appears that while foo= while read bar ... ; do ... foo=$bar ... done $filename echo $foo will assign to foo the value of the bar variable form the last record read (in FreeBSD 6.3-STABLE, at least), the following fails to do so: foo= cat $filename | while read bar ... ; do ... foo=$bar ... done echo $foo Well, that's not *quite* accurate:the assignment is done all right, but in the latter case, it appears to be done in a subshell, so by the time we get to the echo statement, any variable assignments from within the read loop have vanished. Hi David, You are right that feeding data to a looping construct through a pipe may run in a subshell. The ``Single UNIX Specification'' says ... each command of a multi-command pipeline is in a subshell environment; as an extension, however, any or all commands in a pipeline may be executed in the current environment. You can read the online text of the Single UNIX Specification at: http://www.unix.org/single_unix_specification/ A simple 'registration' is required, and you need a browser that supports cookies. But after that, you can follow the links to the shell command language page at http://www.opengroup.org/onlinepubs/95399/utilities/xcu_chap02.html Near section `` 2.12 Shell Execution Environment'' you can find the text I quoted. What I usually do in similar shell scripts is something like: cat ${filename} | sed -n -e '/foo/ s/bar/baz/' | \ xargs -n1 blah This isn't exactly the same as assigning $foo to the results of the loop, but you can also use: foo=`cat $filename | while read bar ; do \ stuff ... echo $bar more stuff... done` Now here's a copy of the in-development script: #! /bin/sh cmd=netstat -nibd -f inet ctr=0 clist= hlist=`$cmd | head -1` for f in $hlist; do ctr=$(( $ctr + 1 )) eval c$ctr=\$f\ eval h_$f=c$ctr done cmax=$ctr t_file=`mktemp /tmp/X` $cmd | tail +2 $t_file while read $hlist dummy; do if [ $Name = lo0 ]; then continue fi for f in $hlist; do eval val=\\$$f\ case $val in -) eval ${f}_$Name=0;; *) eval ${f}_$Name=$val;; esac; done nics=$Name $nics; done/$t_file rm $t_file echo (end) NICs: $nics for n in $nics; do for f in $hlist; do eval echo ${f}_$n: \$${f}_$n done done exit 0 And its output on my laptop: (end) NICs: ath0 Name_ath0: ath0 Mtu_ath0: 1500 Network_ath0: 172.17 Address_ath0: 172.17.1.30 Ipkts_ath0: 725191 Ierrs_ath0: 0 Ibytes_ath0: 185144197 Opkts_ath0: 821917 Oerrs_ath0: 0 Obytes_ath0: 74260936 Coll_ath0: 0 Drop_ath0: 0 and (somewhat more interestingly) on my firewall machine: (end) NICs: dc0 de0 fxp0 Name_dc0: dc0 Mtu_dc0: 1500 Network_dc0: 172.16.8/24 Address_dc0: 172.16.8.1 Ipkts_dc0: 2501577 Ierrs_dc0: 0 Ibytes_dc0: 215386153 Opkts_dc0: 20269087 Oerrs_dc0: 0 Obytes_dc0: 2553930555 Coll_dc0: 0 Drop_dc0: 0 Name_de0: de0 Mtu_de0: 1500 Network_de0: 63.193.123/24 Address_de0: 63.193.123.122 Ipkts_de0: 5936847 Ierrs_de0: 0 Ibytes_de0: 734092787 Opkts_de0: 18557543 Oerrs_de0: 0 Obytes_de0: 2551089632 Coll_de0: 0 Drop_de0: 0 Name_fxp0: fxp0 Mtu_fxp0: 1500 Network_fxp0: 172.17 Address_fxp0: 172.17.0.1 Ipkts_fxp0: 10013 Ierrs_fxp0: 0 Ibytes_fxp0: 1366082 Opkts_fxp0: 1253115 Oerrs_fxp0: 0 Obytes_fxp0: 70429903 Coll_fxp0: 0 Drop_fxp0: 0 As you see, I am circumventing the issue by writing to a transient file. In the intended application, the script is to be used to gather resource-utilization information; thus, I want its footprint to be smaller, rather than larger. Granted, in my case, I would be writing a tiny text file to a swap-backed tmpfs, but in production, I won't have the luxury of knowing that in advance: the intent is that the script must run on a minimal FreeBSD system, with no ports or other 3rd-party software installed. Is there some other -- possibly better -- way to do this (using Bourne shell scripting)? Ah, that's much better. Now I see what you are trying to do. Would you be ok with an awk(1) script instead of /bin/sh? It tends to be nicer for this sort of thing, i.e.: $ expand david.awk | cat -n 1 # 2 # Gather the field names if this is a header-line. 3 # 4 $0 ~ /^Name/ { 5 for (k = 1; k = NF; k++) 6 tag[k] = $k; 7 } 8 9 # 10 #
Re: Shell scripts: variable assignment within read loops
On Mon, Aug 18, 2008 at 06:29:03AM +0300, Giorgos Keramidas wrote: ... You are right that feeding data to a looping construct through a pipe may run in a subshell. The ``Single UNIX Specification'' says Ah; thanks for the confirmation. ... What I usually do in similar shell scripts is something like: cat ${filename} | sed -n -e '/foo/ s/bar/baz/' | \ xargs -n1 blah This isn't exactly the same as assigning $foo to the results of the loop, but you can also use: foo=`cat $filename | while read bar ; do \ stuff ... echo $bar more stuff... done` Right; I had seen that type of construct in /etc/rc.d.* (which is where I often look for samples of shell scripts that need to work reliably). As you noticed, that won't quite do for what I'm trying to accomplish here. ... As you see, I am circumventing the issue by writing to a transient file. In the intended application, the script is to be used to gather resource-utilization information; thus, I want its footprint to be smaller, rather than larger. Granted, in my case, I would be writing a tiny text file to a swap-backed tmpfs, but in production, I won't have the luxury of knowing that in advance: the intent is that the script must run on a minimal FreeBSD system, with no ports or other 3rd-party software installed. Is there some other -- possibly better -- way to do this (using Bourne shell scripting)? Ah, that's much better. Now I see what you are trying to do. :-) Would you be ok with an awk(1) script instead of /bin/sh? It tends to be nicer for this sort of thing, i.e.: Yes, awk(1) would be OK. I'll be more inclined to use it if I can figure out a way to use it instead of sed(1) for a very different part of the script. :-} $ expand david.awk | cat -n 1 # 2 # Gather the field names if this is a header-line. 3 # 4 $0 ~ /^Name/ { 5 for (k = 1; k = NF; k++) 6 tag[k] = $k; 7 } 8 9 # 10 # For all other lines, just print the tagged field values. 11 # 12 $0 !~ /^Name/ { 13 name = $1; 14 for (k = 1; k = NF; k++) { 15 if ($k == -) 16 $k = 0; 17 printf %s_%s: %s\n, tag[k], name, $k; 18 } 19 } $ netstat -nibd -f inet | awk -f david.awk Name_re0: re0 Mtu_re0: 1500 Network_re0: 192.168.1.0/2 ... Very cool; thank you very much! I will study that a bit (I'd normally do this stuff in Perl, but in addition to the other issues mentioned earlier, the script will be sleeping most of the time, but wake up spit out results periodically. The usual case will be every 5 minutes, but I plan to make use of it with radically shorter periods in certain specialized environments -- such as every 5 seconds. And I still want it to be low overhead. I also note in passing that in its production environments, the script's standard output will be redirected to append to a file on a different machine via an SSH tunnel.) With a bit of preprocessing, it may be possible to extract the network names and print the (end) NICs: XXX XXX part too. Right -- much of the output I demonstrated was strictly for debugging/ expository purposes. Thanks again, Giorgos! Peace, david -- David H. Wolfskill [EMAIL PROTECTED] Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. pgpQZk6NuCeRc.pgp Description: PGP signature
remote backup solution over WAN
I am building one backup file server on WAN on FreeBSD, which will backup remote servers data over slow links, (256-512kbps), simply because i have never seen an operating system as stable/robust as FreeBSD ever :-) Now i want to know a technology that can sync only the changed data in a day rather then all the data daily, keep in mind the remote servers data would be Windows, Linux and Apple computers so the technology must be compatible with all ... regards *º¤., ¸¸,.¤º*¨¨¨*¤ Stingray *º¤., ¸¸,.¤º*¨¨*¤ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: remote backup solution over WAN
On 2008.08.17 20:22:00, S t i n g r a y wrote: I am building one backup file server on WAN on FreeBSD, which will backup remote servers data over slow links, (256-512kbps), simply because i have never seen an operating system as stable/robust as FreeBSD ever :-) Now i want to know a technology that can sync only the changed data in a day rather then all the data daily, keep in mind the remote servers data would be Windows, Linux and Apple computers so the technology must be compatible with all ... Rsync should suit your needs. Port:/usr/ports/net/rsync Site:http://samba.anu.edu.au/rsync/ For Windows: http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp (never tried it) Cheers, ~ Jason Morgan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: remote backup solution over WAN
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of S t i n g r a y Sent: August 17, 2008 11:22 PM To: FreeBSD; FreeBSD Subject: remote backup solution over WAN I am building one backup file server on WAN on FreeBSD, which will backup remote servers data over slow links, (256-512kbps), simply because i have never seen an operating system as stable/robust as FreeBSD ever :-) Now i want to know a technology that can sync only the changed data in a day rather then all the data daily, keep in mind the remote servers data would be Windows, Linux and Apple computers so the technology must be compatible with all ... regards *º¤., ¸¸,.¤º*¨¨¨*¤ Stingray *º¤., ¸¸,.¤º*¨¨*¤ For Windows + Unix try: http://www.itefix.no/cwrsync/ However, it doesn't sync open files, you need to use Shadow Copy to sync Windows open files. Tamouh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 7-STABLE +Gnome +Compiz-Fusion?
Novembre wrote: Manolis Kiagias sonic2000gr at gmail.com writes: Well, the article is right to the point that you will not install nvidia drivers on an ATI card ;) However as I understand 3D support in ATI is a hit and miss even in Linux (and ATI's proprietary driver is awful). The xorg.conf settings in the article have only been tested with nvidia, and may need some adjustment for other 3D capable cards. I've been told they don't work with Intel, but will investigate this on my eeePC soon. As for your ATI, a quick search shows that 3D with AIGLX is supported by the open source drivers in X300. I've found several xorg.conf samples, so it is probably a matter of doing a bit of research. If you do find the magic line that makes it work, I would be glad to hear about it and add it to the article. Thanks, Manolis Hi, I have posted a solution which works for my Intel 965G card on the x11 list in June. Here's the link: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=27348+0+archive/2008/freebsd-x11/20080615.freebsd-x11 Hope it helps you in updating your guide, which is a great help for the FreeBSD people. Many thanks :) - Novembre Thank you! I am going to try this on the eeePC, and update the article soon. Manolis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]