Upgrade to imap-uw 2006j Breaks Logins
As part of a portupgrade, one of my servers just picked up the latest version of imap-uw (2006j). Now users can no longer login as imapd claims they are providing incorrect passwords. I manually copied the version I was using (2004g) to /usr/local/libexec/imapd, and all is well, so it is definitely the new release. I did try manually reinstalling the imap-uw and cclient ports using the make option to enable both SSL and plain text passwords. Still no joy. 'Anyone else seeing this/have a workaround? -- ---- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: [stupid question] setting env variables globally
On Fri, Oct 19, 2007 at 04:14:12PM +, Aryeh M. Friedman wrote: Is there any way to set the default value of a enviromental variable globally. Specifically I want JAVA_VERSION to default to "1.6" unless the user sets it other wise. By global I mean no matter how something is invoked (command line, script, GUI, IPC trigger, etc.) if it checks the value of the var it gets the same value (and I want to do this system wide) For userland stuff that is invoked after a login (i.e. In some user's login context), I have a master profile I keep in /usr/local/etc/.myprofile. I then source this from the .profile or .bashrc in a given user's account. If you need this for cron jobs, there is a way to set environment variables in the crontab entry IIRC... HTH, -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Where Is The Kernel Build Number Derived
When I do a make buildworld/installworld, where does it find the last build number to increment? More particularly, how do I reset this so that the next kernel build will be #0? make clean doesn't do it, so I'm guessing I have to delete/populate some counter file. TIA... -- -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: unimpressive buildworld time
Jonathan Horne wrote: On Wednesday 14 November 2007 03:45:07 pm Aryeh M. Friedman wrote: Impressive ;-) My main machine (with an Athlon XP @ 2GHz) takes ~2 hours to build kernel and world (I use a script to do that). My other box is running -CURRENT and takes ~11 hours to build kernel and world (Celeron 500...). Just to supply some numbers that "go the other direction" :-) With no -j and running gnome and doing other things in the foreground (watching a avi) 1 hr 3 mins on a e6850 w/ 4 gig (amd64) p4 540 3.2GHz, 1GB ram: -- World build completed on Thu Nov 15 19:15:05 CST 2007 -- real63m8.635s user102m44.096s sys 10m44.889s [EMAIL PROTECTED] /usr/src]# heh, i have appropriately renamed the thread. :) with -j 8 cheers, My Pentium-D 3G DualCore w/2G memory and a pretty vanilla SATA drive does buildworld and 3 different kernels in 68 minutes wall time building 6.3-PRE (aka -STABLE) using -j20. -- -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Dreaded '__mb_sb_limit' Error And What To Do About It
On one of my FBSD 6-STABLE machines, I have the system cvsup the latest sources nightly and rebuild (but not install) the system and all relevant kernels. Every week or so, I go to single user and install what was last built (assuming the build worked OK). My last such venture was on 11-20-2007 without problems. Tonight, I tried to do this again, and immediately got hit with the libexec '_mb_sb_limit' symbol missing problem. I fell back to the 11-20-2007 system image, and all is once again well. So, here's my question. Is this a temporary problem that will be resolved at some point before 6.3 is released, or do I have have to rebuild the entire system applications set to get new binaries that don't depend on this symbol? Also, if it is going to be fixed, how will I know it has been before trying another update like this again? TIA, P.S. Rebuilding the apps on this system would be a REAL pain. Here's hoping the fine FBSD developers can find it within themselves to make this symbol once again appear so old binaries will run unchanged. -- ---- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Still Seeing A Problem Building dmx
Has anyone found a work around for this? It's been a problem for several months: ../../config/libconfig.a(hal.o)(.text+0x774): In function `connect_hook': : undefined reference to `libhal_ctx_set_device_removed' ../../config/libconfig.a(hal.o)(.text+0x78b): In function `connect_hook': : undefined reference to `libhal_find_device_by_capability' ../../config/libconfig.a(hal.o)(.text+0x7b8): In function `connect_hook': : undefined reference to `libhal_free_string_array' ../../config/libconfig.a(hal.o)(.text+0x7c3): In function `connect_hook': : undefined reference to `dbus_error_free' ../../config/libconfig.a(hal.o)(.text+0x7e2): In function `connect_hook': : undefined reference to `libhal_ctx_free' ../../config/libconfig.a(hal.o)(.text+0x7ed): In function `connect_hook': : undefined reference to `dbus_error_free' ../../config/libconfig.a(hal.o)(.text+0x819): In function `connect_hook': : undefined reference to `libhal_ctx_new' ../../config/libconfig.a(hal.o)(.text+0x853): In function `connect_hook': : undefined reference to `libhal_ctx_shutdown' *** Error code 1 Stop in /usr/ports/x11-servers/xorg-dmx/work/xorg-server-1.4/hw/dmx. *** Error code 1 Stop in /usr/ports/x11-servers/xorg-dmx/work/xorg-server-1.4/hw/dmx. *** Error code 1 Stop in /usr/ports/x11-servers/xorg-dmx/work/xorg-server-1.4/hw. *** Error code 1 Stop in /usr/ports/x11-servers/xorg-dmx/work/xorg-server-1.4. *** Error code 1 Stop in /usr/ports/x11-servers/xorg-dmx. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.14826.101 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=xorg-dmx-1.2.0,1 UPGRADE_PORT_VER=1.2.0,1 make BATCH=yes -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Using Install CD To Prepare Hard Disk
I would like to use the CD install menus to only prepare the hard disk (Partition, Label, Format) without actually installing anything on the drive. Can this be done? There seems to be no "None" option for Distributions, and I cannot find the right magic to make the installer go ahead and prepare the drive w/o resorting to at least a minimal install. I assume if the answer is "no" then that means this has to be done manually from the fixit command line Thanks, -- -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Using Install CD To Prepare Hard Disk
Chuck Swiger wrote: On Mar 13, 2008, at 3:28 PM, Tim Daneliuk wrote: I would like to use the CD install menus to only prepare the hard disk (Partition, Label, Format) without actually installing anything on the drive. Can this be done? There should be a "(W)rite" option on the various pages which let you at least partition the drive without installing the software. Yup that was the magic - I missed it entirely. The option appears in the label editor menu... Thanks! -- -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
6.3 And VIA 8237S Controller
I just bought a new MSI P4M900M2 mobo. It works just fine with both Windoze and SUSE Linux. When I tried booting 6.2 on it, it refused to set the drive (ad0 - I tried several different drives) into the higher speed UDMA modes. So, I downloaded 6.3, and it *seemed* to be fine. The drives come up as UDMA 100 or UDMA 133. But ... under long disk operations - say untaring a 2G tarball stored on a USB drive - I start to see this: ad0: WARNING WRITE_DMA UDMA ICRC ERROR And eventually: ad0: FAILURE WRITE_DMA Status=51 Error=84 g_vfs_done():ad0s1f ... What's going on here? Is there a known driver problem with the VIA chipsets? I took the two drives I tried this with, and stuck them in another machine - no problem, so I kind of doubt this is a drive problem. I have replaced the IDE cables as well. Again, this same mobo and drive combo worked flawlessly doing the same thing under SUSE Linux, so I'm thinking this is a software problem. Any help much appreciated... -- -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: 6.3 And VIA 8237S Controller
Tim Daneliuk wrote: One point of clarification I neglected to mention in the description below. I have not actually installed FreeBSD on the disk. I paritioned/labeled the disk with the install disk, then rebooted the install disk, went into the Fixit environment and manually mounted ad0x under the various /mnt directories. I then insert the USB drive into the system that has a full image of FreeBSD from another machine on it, stored in a tarball, and mount it under /mnt/mnt. I then start to untar it (to load that image onto my newly labeled disk), and that's when I see the errors. The OS running at that time is the FreeBSD 6.3 Fixit environment. I just bought a new MSI P4M900M2 mobo. It works just fine with both Windoze and SUSE Linux. When I tried booting 6.2 on it, it refused to set the drive (ad0 - I tried several different drives) into the higher speed UDMA modes. So, I downloaded 6.3, and it *seemed* to be fine. The drives come up as UDMA 100 or UDMA 133. But ... under long disk operations - say untaring a 2G tarball stored on a USB drive - I start to see this: ad0: WARNING WRITE_DMA UDMA ICRC ERROR And eventually: ad0: FAILURE WRITE_DMA Status=51 Error=84 g_vfs_done():ad0s1f ... What's going on here? Is there a known driver problem with the VIA chipsets? I took the two drives I tried this with, and stuck them in another machine - no problem, so I kind of doubt this is a drive problem. I have replaced the IDE cables as well. Again, this same mobo and drive combo worked flawlessly doing the same thing under SUSE Linux, so I'm thinking this is a software problem. Any help much appreciated... -- -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: 6.3 And VIA 8237S Controller - Also USB Drive Problem
Tim Daneliuk wrote: I just bought a new MSI P4M900M2 mobo. It works just fine with both Windoze and SUSE Linux. When I tried booting 6.2 on it, it refused to set the drive (ad0 - I tried several different drives) into the higher speed UDMA modes. So, I downloaded 6.3, and it *seemed* to be fine. The drives come up as UDMA 100 or UDMA 133. But ... under long disk operations - say untaring a 2G tarball stored on a USB drive - I start to see this: ad0: WARNING WRITE_DMA UDMA ICRC ERROR I have resolved this and thought I'd share with the class in case anyone else runs into the problem. It occurred to me that this chipset has been around long enough that it was very likely not a driver problem. I went back and replaced the IDE cable with another one known to be good and, voila', problem solved. What's weird about this is that the "bad" cable is a more-or-less new low profile round IDE cable I got from Tiger Direct a while back. It is the 20" variety which may be contributing noise to the problem. Weirder still is that neither Linux nor Windows seemed to have problems with it, though I did not test as thoroughly with those OSs. I'd guess that the FBSD driver is perhaps trying to squeeze the last bit of optimization out of the controller and thus drives the IDE bus to its limits, hence the problem shows up there. Either that, or I just didn't pound on the machine hard enough with Linux especially to see the problem. I should have guessed "cable problem" right away, but given the relative newness of the cable, that seemed unlikely. In a related note: I also discovered that the FreeBSD install CD Fixit environment does flakey things when you try to untar a large file from a USB drive plugged in through an external hub. Plugging the drive directly into one of the mobo ports made that problem go away. -- -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ANN: 'tbku' 1.115 - Backup And System Imaging Tool
'tbku 1.115 is released and available at: http://www.tundraware.com/Software/tbku/ What Is 'tbku'? === 'tbku' is a utility for producing "tarball" backups of some- or all of your files. It is useful both for producing incremental backups or for systemwide images or "snapshots". The tool can be run either from the command line or, more typically, as a cron job to automate system backup tasks. 'tbku' can also be used to capture system images which can then later be used to (re)provision other machines. The distribution includes explanations of how to "image" systems from a tarball produced with 'tbku', using FreeBSD and SUSE Linux as examples. 'tbku' uses standard utilities common on Unix-like systems, like 'tar', 'sed', and 'uname'. It uses no other special or custom tools. For this reason, it is highly portable across many variants of these systems. 'tbku' was originally developed as a backup tool for FreeBSD servers. Since then, it has been updated to also work with SUSE Linux, both servers and desktops. 'tbku' should work with little- or no modification on any other Unix-like system. For example, 'tbku' will run without modification (other than default locations) in a cywgin environment under MS-Windows. There is no charge for the use of 'tbku', but please take a moment to read the licensing terms. WHATSNEW For 'tbku' 1.115(Wed Mar 19 18:29:31 CDT 2008) ---------- First public release of program and docs. Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Question About Ports Update Cycle
Is there some regular interval at which new ports are processed by the FreeBSD team? I submitted a port (for a very minor utility) 3/20/2008 but it is still not in the tree. I'm not complaining in the slightest - the folks who do this work are volunteering their time, and I get/respect that. I'm just curious if there is some window you have to hit to get stuff in. Just curious, not beefin', -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Trouble Upgrading gvfs
System: 6.3-STABLE as of 1300 UTC today. I've been having trouble with the gvfs port. First it started with libcdio: test -z "/usr/local/libdata/pkgconfig" || /usr/ports/sysutils/libcdio/work/libcdio-0.78.2/install-sh -d "/usr/local/libdata/pkgconfig" install -o root -g wheel -m 444 'libcdio.pc' '/usr/local/libdata/pkgconfig/libcdio.pc' install -o root -g wheel -m 444 'libiso9660.pc' '/usr/local/libdata/pkgconfig/libiso9660.pc' gmake[2]: Leaving directory `/usr/ports/sysutils/libcdio/work/libcdio-0.78.2' gmake[1]: Leaving directory `/usr/ports/sysutils/libcdio/work/libcdio-0.78.2' install-info --quiet /usr/local/info/libcdio.info /usr/local/info/dir ===> Running ldconfig /sbin/ldconfig -m /usr/local/lib ===> Registering installation for libcdio-0.78.2_1 This was failing, claiming that libcdio was already installed. I 'fixed' this by setting FORCE_PACKAGE_REGISTER. However, when it then goes on to do the gvfs upgrade, I get an installation of what appears to still be a broken port: ===> Returning to build of gvfs-0.2.3_3 Error: shared library "cdio_paranoia.0" does not exist *** Error code 1 Stop in /usr/ports/devel/gvfs. *** Error code 1 The installation is forced at this point, but I suspect the port is broken. Ideas? -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Trouble Upgrading gvfs
Michael Johnson wrote: > > > On Fri, Apr 18, 2008 at 1:58 PM, Tim Daneliuk <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > System: 6.3-STABLE as of 1300 UTC today. > > > I've been having trouble with the gvfs port. First it started with > libcdio: > > > run 'make config' in libcdio and select PARANOIA then reinstall libcdio > Yup that did it ... many thanks. -- ---- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD And ARM
I'm not quite sure where to ask this so even a pointer to the right place would be appreciated: Is there any intent/work underway to port FBSD to the Raspberry PI ARM SBC? At $35 this thing looks perfect for firewall/DNS/dhcp boundary machines. Thanks, ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Raspberry Pi
On 03/08/2012 12:46 PM, Chad Perrin wrote: On Thu, Mar 08, 2012 at 08:51:03AM +, Arthur Chance wrote: On 03/07/12 21:40, Chad Perrin wrote: If anyone has more information about planned BSD Unix ports to Raspberry Pi, or comes up with more in the next few weeks, I'd appreciate it if someone would let me know (perhaps with URIs or contact information for people and projects working on this). There was a discussion about it over on hackers@ last November. The thread starts at http://lists.freebsd.org/pipermail/freebsd-hackers/2011-November/036742.html TL;DR summary: some are wildly in favour of it, others are completely negative. I.e. the usual network response to anything :-} I'm curious about the reasoning for the negative. I'll have to go skim that thread. Thanks for pointing it out to me. The complaints seemed to center around a lack of docs, but I don't think this is still relevant. The fact that several Linux variants are ported suggests plenty of available doc. Also, there is a detailed doc on the Broadcom chip on the RP website. Now, if we could just actuall GET the silly things it would be nice :) -- ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Editor With NO Shell Access?
I have a situation where I need to provide people with the ability to edit files. However, under no circumstances do I want them to be able to exit to the shell. The client in question has strong (and unyielding) InfoSec requirements in this regard. So ... are there editors without this feature? Can I compile something like joe or vi to inhibit this feature? TIA, -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Editor With NO Shell Access?
On 03/12/2012 03:13 PM, Thomas Dickey wrote: On Mon, Mar 12, 2012 at 02:19:06PM -0500, Tim Daneliuk wrote: I have a situation where I need to provide people with the ability to edit files. However, under no circumstances do I want them to be able to exit to the shell. The client in question has strong (and unyielding) InfoSec requirements in this regard. So ... are there editors without this feature? Can I compile something like joe or vi to inhibit this feature? man vi (see "-S") It turns out you can still work around this if your know the trick. I am still researching this, but restricted vi appears to be compromised. -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Editor With NO Shell Access?
On 03/13/2012 01:39 AM, Joshua Isom wrote: On 3/12/2012 5:23 PM, Polytropon wrote: On Mon, 12 Mar 2012 15:19:51 -0700, Edward M. wrote: On 03/12/2012 03:10 PM, Polytropon wrote: /etc/shells to work, but a passwd entry like bob:*:1234:1234:Two-loop-Bob:/home/bob:/usr/local/bin/joe I think this would not let the user to login,etc I'm not sure... I assume logging in is handled by /usr/bin/login, and control is then (i. e. after successful login) transferred to the login shell, which is the program specified in the "shell" field (see "man 5 passwd") of /etc/passwd. How is login supposed to know if the program specified in this field is actually a dialog shell? From "man 1 login" I read that many shells have a built-in login command, but /usr/bin/login is the system's default binary for this purpose if the "shell" (quotes deserved if it is an editor as shown in my assumption) has no capability of performing a login. Are they logging in from the console or from ssh? If it's from a console, I'd send them directly into a jail with limited file system access, so that excecutables don't matter. If it's from ssh, I'd do the same thing. Assume they can break out of the editor or that something will happen. Make it minimalist about what they can do. Use the /rescue/vi in an empty jail with the files available. Don't think about changing editors, change the system. That's a really good idea, but we're talking about almost 1000 systems here. That's a whole bunch of configuration... -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
fxp0 Link Going Up And Down
I am seeing this intermittently: Apr 1 14:48:36 host kernel: fxp0: link state changed to DOWN Apr 1 14:52:27 host kernel: fxp0: link state changed to UP This is observed both on some 8.2-STABLE and 8.3-PRERELEASE versions on the same server. I have replaced the ethernet cable as well as the device on the other end (a cable internet box), but the problem intermittently persists. It appears not to be a mechanical issue insofar as I can wiggle the cable at each end and not introduce this problem. fxp0 in this case is the on-board NIC of an Intel mobo. Ideas anyone? Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: fxp0 Link Going Up And Down
On 04/02/2012 03:52 PM, Mike Tancsa wrote: On 4/1/2012 4:21 PM, Tim Daneliuk wrote: I am seeing this intermittently: Apr 1 14:48:36 host kernel: fxp0: link state changed to DOWN Apr 1 14:52:27 host kernel: fxp0: link state changed to UP There were some fixes to the fxp driver on ~ March 26th that fixed the NIC bouncing up and down when it went into promisc mode. But those bounces were very short lived (a few seconds to transition). Your up/down events are minutes. Perhaps the cable modem is going into some sort of "sleep mode" ? Or perhaps just a hardware issue. If you can, I don't think so. The modem has a built in hub and I am not observing this problem on other devices plug in there. try and put a simple hub or switch between the cable modem and your NIC and see if you still get bounces. Also, there are many variants of fxp hardware. Post the output of egrep -i "fxp|phy" /var/run/dmesg.boot fxp0: port 0x1100-0x113f mem 0x9004-0x90040fff irq 20 at device 8.0 on pci4 miibus0: on fxp0 ukphy0: PHY 1 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow fxp0: Ethernet address: ... fxp0: [ITHREAD] and sysctl -a dev.fxp dev.fxp.0.%desc: Intel Pro/100 946GZ (ICH7) Network Connection dev.fxp.0.%driver: fxp dev.fxp.0.%location: slot=8 function=0 dev.fxp.0.%pnpinfo: vendor=0x8086 device=0x1094 subvendor=0x8086 subdevice=0x0001 class=0x02 dev.fxp.0.%parent: pci4 dev.fxp.0.int_delay: 1000 dev.fxp.0.bundle_max: 6 dev.fxp.0.rnr: 0 dev.fxp.0.stats.rx.good_frames: 2004295 dev.fxp.0.stats.rx.crc_errors: 0 dev.fxp.0.stats.rx.alignment_errors: 0 dev.fxp.0.stats.rx.rnr_errors: 0 dev.fxp.0.stats.rx.overrun_errors: 0 dev.fxp.0.stats.rx.cdt_errors: 0 dev.fxp.0.stats.rx.shortframes: 0 dev.fxp.0.stats.rx.pause: 0 dev.fxp.0.stats.rx.controls: 0 dev.fxp.0.stats.rx.tco: 0 dev.fxp.0.stats.tx.good_frames: 1701132 dev.fxp.0.stats.tx.maxcols: 0 dev.fxp.0.stats.tx.latecols: 0 dev.fxp.0.stats.tx.underruns: 0 dev.fxp.0.stats.tx.lostcrs: 0 dev.fxp.0.stats.tx.deffered: 0 dev.fxp.0.stats.tx.single_collisions: 0 dev.fxp.0.stats.tx.multiple_collisions: 0 dev.fxp.0.stats.tx.total_collisions: 0 dev.fxp.0.stats.tx.pause: 0 dev.fxp.0.stats.tx.tco: 0 Thanks for taking time to look into this... ---Mike This is observed both on some 8.2-STABLE and 8.3-PRERELEASE versions on the same server. I have replaced the ethernet cable as well as the device on the other end (a cable internet box), but the problem intermittently persists. It appears not to be a mechanical issue insofar as I can wiggle the cable at each end and not introduce this problem. fxp0 in this case is the on-board NIC of an Intel mobo. Ideas anyone? -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: editor that understands CTRL/B, CTRL/I, CTRL/U
On 04/24/2012 12:50 PM, Anton Shterenlikht wrote: My daughter is doing a touch typing course that presumes MS Word. So far she was fine with pico, but now they want the kids to practice CTRL/B (bold), CTRL/I (italic), CTRL/U (underline). She really needs to use these particular combinations because that is how the on-line assessment tool is set out. I use nothing but vi, so have no clue which, if any, editor from ports/editors will have these particular combinations implemented. Please recommend one, preferably as simple and as small as possible. Thanks I am not certain, but I think it is possible to create your own keyboard maps in both joe and vim... -- --- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Somewhat OT: CVS Question
Forgive the OT nature of this, but FBSD tends to be a big CVS user, so I am hoping someone has an answer for this. Feel free to reply privately if you do not wish to inflict your answer up on the whole list... Is there a way to checkout a project from a CVS repo *into the current directory*? If I do this: cvs co -d . foo Or this: cvs co -d ./ foo I get this: cvs checkout: existing repository /usr/cvs/... does not match /usr/cvs/.../foo cvs checkout: ignoring module waccess Ideas? -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Possible /bin/sh Bug?
Given this script: #!/bin/sh foo="" while read line do foo="$foo -e" done echo $foo Say I respond 3 times, I'd expect to see: -e -e -e Instead, I get: -e -e Linux appears to do the right thing here, so this seems like it is a bug ... or am I missing something? -- ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Possible /bin/sh Bug?
On 06/05/2012 11:35 AM, Dan Nelson wrote: In the last episode (Jun 05), Tim Daneliuk said: Given this script: #!/bin/sh foo="" while read line do foo="$foo -e" done echo $foo Say I respond 3 times, I'd expect to see: -e -e -e Instead, I get: -e -e Linux appears to do the right thing here, so this seems like it is a bug ... or am I missing something? echo takes a -e flag, so it eats the first one. Bash does the same thing, so any Linux that uses bash as /bin/sh will also. You must be testing on a Linux that uses something else as /bin/sh. Better to use the printf command if you are worried about compatibility. echo [-e | -n] [string ...] Print a space-separated list of the arguments to the standard output and append a newline character. -n Suppress the output of the trailing newline. -e Process C-style backslash escape sequences. The echo command understands the following character escapes: Ah, OK, that makes sense, thanks... -- ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Somewhat OT - A Makefile Question
Not strictly FBSD, but ... Within a makefile, I need to assign the name of a program as in: FOO = "bar". The problem is that 'bar' may also be know as, say, "bar.sh". Worse still both "bar" and "bar.sh" can exist with one linked to the other. Is there a simple way to determine which form "bar" or "bar.sh" on on a given system *at the time the make is run*? If both exist, I will pick one arbitrarily, I just don't want the detection mechanism to fail when this is the case. For example I don't think this works when both are there: FOO = $(shell `which bar bar.sh) Thanks, -- ---- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Somewhat OT - A Makefile Question
On 06/07/2012 12:19 AM, Parv wrote: in message<4fcf48af@tundraware.com>, wrote Tim Daneliuk thusly... ... Within a makefile, I need to assign the name of a program as in: FOO = "bar". The problem is that 'bar' may also be know as, say, "bar.sh". ... Is there a simple way to determine which form "bar" or "bar.sh" on on a given system *at the time the make is run*? If both exist, I will pick one arbitrarily, ... For example I don't think this works when both are there: FOO = $(shell `which bar bar.sh) Modify the subshell command to ... which bar bar.sh | head -n 1 ... as in (for FreeBSD make) ... shell=`which zsh sh tcsh csh 2>/dev/null | fgrep -v 'not found' | head -n 3` all: @printf "%s\n" ${shell} - parv Thanks. I came up with something similar, but I think your recipe is a bit more elegant ... -- ---- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
[ANN] tperimeter 1.113 Released And Available
'tperimeter' Version 1.113 is released and available at: http://www.tundraware.com/Software/tperimeter/ The last public release was 1.112 What's New -- Changed the wrapper file rebuild logic to delete outstanding access requests independently of how often the script is run (either by cron, or manually). This means that the 'cron' frequency now determines the average waiting time before a user's request is fulfilled. The '${DURATION}' variable in 'rebuild-hosts.allow.sh' sets how long access will be permitted (The default value is 10 minutes). Minor documentation updates, typo fixes, and housekeeping. What Is 'tperimeter'? - Have you ever been away from the office and needed, say, ssh access to your system? Ooops - you can't do that because in your zealous pursuit of security, you set your TCP wrappers to prevent outside access to all but a select group of hosts. Worse still, everywhere you go, your local IP address changes so there is no practical way to open up the wrappers for this situation. 'tperimeter' is a dynamic TCP wrapper control system that gives you (limited) remote control of your TCP wrapper configuration. It does this via a web interface that you've (hopefully) secured with https/SSL. You just log in, specify your current IP address and one of the services you want to access. 'tperimeter' will then briefly open a hole in your wrappers long enough to let you in. It then automatically closes the hole again. Voila! Remote access to your system, wherever you are. You get much of the facility of a VPN or so-called "port knocking" without most of the aggravation. As a side benefit, 'tperimeter' will also simplify management of your standard /etc/hosts.allow TCP wrapper control file. 'tperimeter' is written in python, shell script, and html. It is very small and easy to maintain. It was developed and tested on FreeBSD 4.x/8.x, and apache 1.x/2.x, but should run with very minor (or no) modification on most Unix-like systems like Linux or Mac OS X hosts. It comes complete with documentation in html, pdf, dvi, and Postscript formats. There is no licensing fee for any use, personal, commercial, government, or institutional. -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: shell scripting: grepping multiple patterns, logically ANDed
On 06/27/2012 10:25 AM, Tim Daneliuk wrote: On 06/27/2012 09:25 AM, Aleksandr Miroslav wrote: hello, I'm not sure if this is the right forum for this question, but here goes. I have the following in a shell script: #!/bin/sh if [ "$#" -eq "0" ]; then find /foo fi if [ "$#" -eq "1" ]; then find /foo | grep -i $1 fi if [ "$#" -eq "2" ]; then find /foo | grep -i $1 | grep -i $2 fi if [ "$#" -eq "3" ]; then find /foo | grep -i $1 | grep -i $2 | grep -i $3 fi Is there an easier/shorter way to do this? If there are 15 arguments supplied on the command line, I don't necessarily want to build 15 if statements. Thanks in advance for your answers. The following solution relies on the fact that you can include multiple patterns for grep to match with the '-e' argument: #!/bin/sh PATTERNS=`echo " $*" | sed s/\ /\ -e\ /g` find /foo | grep $PATTERNS Notice that when constructing the $PATTERNS string out of the command line args, you have to quote them with a prepended space character. That's because the subsequent 'sed' substitution needs to find a space *before* each argument which it then replaces with "-e ". Whoops, I just realized that I ORed them and you want them ANDed. Hmmm ... must go think on that... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: shell scripting: grepping multiple patterns, logically ANDed
On 06/27/2012 09:25 AM, Aleksandr Miroslav wrote: hello, I'm not sure if this is the right forum for this question, but here goes. I have the following in a shell script: #!/bin/sh if [ "$#" -eq "0" ]; then find /foo fi if [ "$#" -eq "1" ]; then find /foo | grep -i $1 fi if [ "$#" -eq "2" ]; then find /foo | grep -i $1 | grep -i $2 fi if [ "$#" -eq "3" ]; then find /foo | grep -i $1 | grep -i $2 | grep -i $3 fi Is there an easier/shorter way to do this? If there are 15 arguments supplied on the command line, I don't necessarily want to build 15 if statements. Thanks in advance for your answers. The following solution relies on the fact that you can include multiple patterns for grep to match with the '-e' argument: #!/bin/sh PATTERNS=`echo " $*" | sed s/\ /\ -e\ /g` find /foo | grep $PATTERNS Notice that when constructing the $PATTERNS string out of the command line args, you have to quote them with a prepended space character. That's because the subsequent 'sed' substitution needs to find a space *before* each argument which it then replaces with "-e ". --- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: shell scripting: grepping multiple patterns, logically ANDed
On 06/27/2012 10:33 AM, Tim Daneliuk wrote: On 06/27/2012 10:25 AM, Tim Daneliuk wrote: On 06/27/2012 09:25 AM, Aleksandr Miroslav wrote: hello, I'm not sure if this is the right forum for this question, but here goes. I have the following in a shell script: #!/bin/sh if [ "$#" -eq "0" ]; then find /foo fi if [ "$#" -eq "1" ]; then find /foo | grep -i $1 fi if [ "$#" -eq "2" ]; then find /foo | grep -i $1 | grep -i $2 fi if [ "$#" -eq "3" ]; then find /foo | grep -i $1 | grep -i $2 | grep -i $3 fi Is there an easier/shorter way to do this? If there are 15 arguments supplied on the command line, I don't necessarily want to build 15 if statements. Thanks in advance for your answers. The following solution relies on the fact that you can include multiple patterns for grep to match with the '-e' argument: #!/bin/sh PATTERNS=`echo " $*" | sed s/\ /\ -e\ /g` find /foo | grep $PATTERNS Notice that when constructing the $PATTERNS string out of the command line args, you have to quote them with a prepended space character. That's because the subsequent 'sed' substitution needs to find a space *before* each argument which it then replaces with "-e ". Whoops, I just realized that I ORed them and you want them ANDed. Hmmm ... must go think on that... OK, here is an ANDing version: #!/bin/sh PATMATCH=`echo " $*" | sed s/' '/' | grep '/g` eval "find ./ $PATMATCH" -- --- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Emacs Throwing Errors On X
Some time ago, emacs started doing this on startup under X: (emacs:65141): GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but SIGCHLD action was set to SIG_IGN and ECHILD was received by waitpid(), so exit status can't be returned. This is a bug in the program calling g_spawn_sync(); either don't request the exit status, or don't set the SIGCHLD action. GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Command line `dbus-launch --autolaunch=cd85f2237549bffeda2c670600026934 --binary-syntax --close-stderr' exited with non-zero exit status 2655224: ) (emacs:65141): GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but SIGCHLD action was set to SIG_IGN and ECHILD was received by waitpid(), so exit status can't be returned. This is a bug in the program calling g_spawn_sync(); either don't request the exit status, or don't set the SIGCHLD action. Other Relevant Info: FBSD 8.2-STABLE (But it happened prior to this release as well) emacs-23.2_4,2 gconf2-2.32.0_2 -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Slightly OT: Hardware For FreeNAS
Slightly OT, but since it's based on FreeBSD, I thought I'd start here... Can anyone recommend a good hardware platform (components) around which to build a FreeNAS server? The important non-functional requirements are: 1) Quiet to the point of silent. 2) Reliable/redundant TIA, -- -------- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Trying To Do A portupgrade On 8-Stable
... and the gstreamer upgrade blows up because of this: /usr/local/bin/g-ir-scanner: not found Ideas? -- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Trying To Do A portupgrade On 8-Stable
On 6/28/2011 2:46 PM, Frank Shute said this: > On Tue, Jun 28, 2011 at 01:37:22PM -0500, Tim Daneliuk wrote: >> >> ... and the gstreamer upgrade blows up because of this: >> >> /usr/local/bin/g-ir-scanner: not found >> >> >> Ideas? > > On my machine: > > $ pkg_info -W /usr/local/bin/g-ir-scanner > /usr/local/bin/g-ir-scanner was installed by package > gobject-introspection-0.9.12_1 > > So I suggest you do: > > # portupgrade -fv gobject-introspection > > > Regards, > That did it, thanks! -- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Perl Problem After Upgrade to 5.12.4
Ideas anyone? I am trying to rebuild SpamAssassin after a perl upgrade to 5.12.4 and get this (I DID run perl-after-upgrade prior to this): ===> p5-Encode-Detect-1.01 depends on file: /usr/local/lib/perl5/site_perl/5.12.4/Module/Build.pm - not found ===>Verifying install for /usr/local/lib/perl5/site_perl/5.12.4/Module/Build.pm in /usr/ports/devel/p5-Module-Build ===> License check disabled, port has not defined LICENSE ===> Extracting for p5-Module-Build-0.3800_1 => SHA256 Checksum OK for Module-Build-0.3800.tar.gz. ===> p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found ===> Patching for p5-Module-Build-0.3800_1 ===> p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found ===> p5-Module-Build-0.3800_1 depends on package: p5-CPAN-Meta>=2.110420 - found ===> p5-Module-Build-0.3800_1 depends on package: p5-Module-Metadata>=1.02 - found ===> p5-Module-Build-0.3800_1 depends on package: p5-Parse-CPAN-Meta>=1.44.01 - found ===> p5-Module-Build-0.3800_1 depends on package: p5-Perl-OSType>=1.000 - found ===> p5-Module-Build-0.3800_1 depends on package: p5-version>=0.87 - found ===> p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found ===> Configuring for p5-Module-Build-0.3800_1 *** BOOTSTRAPPING Perl::OSType *** *** BOOTSTRAPPING version *** *** BOOTSTRAPPING Module::Metadata *** Checking prerequisites... requires: ! CPAN::Meta is not installed build_requires: ! Parse::CPAN::Meta (1.40) is installed, but we need version >= 1.4401 ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions of the modules indicated above before proceeding with this installation Could not create MYMETA files Creating new 'Build' script for 'Module-Build' version '0.3800' Copied META.yml to MYMETA.yml for bootstrapping These additional prerequisites must be installed: requires: ! Perl::OSType (we need version 1.00) ! version (we need version 0.87) ! Module::Metadata (we need version 1.02) ===> Building for p5-Module-Build-0.3800_1 Can't locate Perl/OSType.pm in @INC (@INC contains: t/lib t/bundled lib /usr/local/lib/perl5/5.12.4/BSDPAN /usr/local/lib/perl5/site_perl/5.12.4/mach /usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.4/mach /usr/local/lib/perl5/5.12.4 .) at lib/Module/Build.pm line 13. BEGIN failed--compilation aborted at lib/Module/Build.pm line 13. Compilation failed in require at Build line 42. BEGIN failed--compilation aborted at Build line 42. *** Error code 2 Stop in /usr1/ports/devel/p5-Module-Build. *** Error code 1 Stop in /usr1/ports/converters/p5-Encode-Detect. *** Error code 1 Stop in /usr1/ports/mail/p5-Mail-SpamAssassin. *** Error code 1 Stop in /usr1/ports/mail/p5-Mail-SpamAssassi -- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Perl Problem After Upgrade to 5.12.4
On 7/8/2011 6:52 AM, Jerry said this: > On Fri, 08 Jul 2011 13:00:24 +0200 > SoCruel.NU FreeBSD Questions Mailbox articulated: > >> On Wed, 06 Jul 2011 10:01:21 -0500, Tim Daneliuk wrote: >>> Ideas anyone? >>> >>> I am trying to rebuild SpamAssassin after a perl upgrade to 5.12.4 >>> and >>> get this (I DID run perl-after-upgrade prior to this): >>> >>> ===> p5-Encode-Detect-1.01 depends on file: >>> /usr/local/lib/perl5/site_perl/5.12.4/Module/Build.pm - not found >>> ===>Verifying install for >>> /usr/local/lib/perl5/site_perl/5.12.4/Module/Build.pm in >>> /usr/ports/devel/p5-Module-Build >>> ===> License check disabled, port has not defined LICENSE >>> ===> Extracting for p5-Module-Build-0.3800_1 >>> => SHA256 Checksum OK for Module-Build-0.3800.tar.gz. >>> ===> p5-Module-Build-0.3800_1 depends on file: >>> /usr/local/bin/perl5.12.4 - found >>> ===> Patching for p5-Module-Build-0.3800_1 >>> ===> p5-Module-Build-0.3800_1 depends on file: >>> /usr/local/bin/perl5.12.4 - found >>> ===> p5-Module-Build-0.3800_1 depends on package: >>> p5-CPAN-Meta>=2.110420 - found >>> ===> p5-Module-Build-0.3800_1 depends on package: >>> p5-Module-Metadata>=1.02 - found >>> ===> p5-Module-Build-0.3800_1 depends on package: >>> p5-Parse-CPAN-Meta>=1.44.01 - found >>> ===> p5-Module-Build-0.3800_1 depends on package: >>> p5-Perl-OSType>=1.000 - found >>> ===> p5-Module-Build-0.3800_1 depends on package: >>> p5-version>=0.87 >>> - found >>> ===> p5-Module-Build-0.3800_1 depends on file: >>> /usr/local/bin/perl5.12.4 - found >>> ===> Configuring for p5-Module-Build-0.3800_1 >>> *** BOOTSTRAPPING Perl::OSType *** >>> *** BOOTSTRAPPING version *** >>> *** BOOTSTRAPPING Module::Metadata *** >>> Checking prerequisites... >>> requires: >>> ! CPAN::Meta is not installed >>> build_requires: >>> ! Parse::CPAN::Meta (1.40) is installed, but we need version >>>> = 1.4401 >>> >>> ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install >>> the versions >>> of the modules indicated above before proceeding with this >>> installation >>> >>> Could not create MYMETA files >>> Creating new 'Build' script for 'Module-Build' version '0.3800' >>> Copied META.yml to MYMETA.yml for bootstrapping >>> >>> These additional prerequisites must be installed: >>> requires: >>> ! Perl::OSType (we need version 1.00) >>> ! version (we need version 0.87) >>> ! Module::Metadata (we need version 1.02) >>> ===> Building for p5-Module-Build-0.3800_1 >>> Can't locate Perl/OSType.pm in @INC (@INC contains: t/lib t/bundled >>> lib /usr/local/lib/perl5/5.12.4/BSDPAN >>> /usr/local/lib/perl5/site_perl/5.12.4/mach >>> /usr/local/lib/perl5/site_perl/5.12.4 >>> /usr/local/lib/perl5/5.12.4/mach >>> /usr/local/lib/perl5/5.12.4 .) at lib/Module/Build.pm line 13. >>> BEGIN failed--compilation aborted at lib/Module/Build.pm line 13. >>> Compilation failed in require at Build line 42. >>> BEGIN failed--compilation aborted at Build line 42. >>> *** Error code 2 >>> >>> Stop in /usr1/ports/devel/p5-Module-Build. >>> *** Error code 1 >>> >>> Stop in /usr1/ports/converters/p5-Encode-Detect. >>> *** Error code 1 >>> >>> Stop in /usr1/ports/mail/p5-Mail-SpamAssassin. >>> *** Error code 1 >>> >>> Stop in /usr1/ports/mail/p5-Mail-SpamAssassi >> >> Hello Tim, list, >> >> I have the same problem on one of my boxes. Cannot upgrade >> p5-Module-Build-0.3800 port because of this. > > Has anyone filed a PR against this problem? > I was able to work around this by: 1) Uninstalling spamassassin and perl 5.12 2) Upgrading to perl 5.14 3) Running perl-after-upgrade 4) Reinstalling spamassassin I still cannot build remmina. There seems to be some hocus pocus having to do with missing dependent perl XML parser libs. Sigh. I can't wait until the planet either: a) Migrates 100% to python or b) Learns to do batteries included packaging like python. -- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Perl Problem After Upgrade to 5.12.4
On 7/8/2011 8:39 AM, Jerry said this: > On Fri, 08 Jul 2011 08:12:16 -0500 > Tim Daneliuk articulated: > >> I was able to work around this by: >> >> 1) Uninstalling spamassassin and perl 5.12 >> 2) Upgrading to perl 5.14 >> 3) Running perl-after-upgrade >> 4) Reinstalling spamassassin > > That is not exactly the method prescribed in UPDATING: You're right, of course - I ordinarily do this when I upgrade perl ... somehow it slipped my tiny and aging mind. Thanks for the reminder :) > > > 20110517: > AFFECTS: users of lang/perl* > AUTHOR: s...@freebsd.org > > lang/perl5.14 is out. If you want to switch to it from, for example > lang/perl5.12, that is: > > Portupgrade users: > 0) Fix pkgdb.db (for safety): > pkgdb -Ff > > 1) Reinstall new version of Perl (5.14): > env DISABLE_CONFLICTS=1 portupgrade -o lang/perl5.14 -f perl-5.12.\* > > 2) Reinstall everything that depends on Perl: > portupgrade -fr perl > > Portmaster users: > portmaster -o lang/perl5.14 lang/perl5.12 > > Conservative: > portmaster p5- > > Comprehensive (but perhaps overkill): > portmaster -r perl- > > Note: If the "perl-" glob matches more than one port you will need to > specify the name of the Perl directory in /var/db/pkg explicitly. > > > > I used the "portupgrade" method without incident. From what I have been > told, "perl-after-upgrade" != "env DISABLE_CONFLICTS=1 portupgrade -o > lang/perl5.14 -f perl-5.12.\*" > > As always, YMMV! > -- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Am I Missing A Compat Library?
I just ran pkg_libchk and got this: avahi-app-0.6.29: /usr/local/lib/libavahi-glib.so.1 misses libicui18n.so.46 As I've never seen this before, I'm unclear on what to do to remmediate. Ideas? -- -------- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Am I Missing A Compat Library?
On 7/18/2011 11:23 AM, Roland Smith said this: > On Mon, Jul 18, 2011 at 10:11:28AM -0500, Tim Daneliuk wrote: >> I just ran pkg_libchk and got this: >> >> avahi-app-0.6.29: /usr/local/lib/libavahi-glib.so.1 misses libicui18n.so.46 >> >> As I've never seen this before, I'm unclear on what to do to remmediate. > > Have you updated your ports recently? The ICU port was updated to version 4.8 Yes. > recently, which provides libicui18n.so.48, and replaced libicui18n.so.46. As > noted in /usr/ports/UPDATING, all ports that depend on ICU should be updated. I did this (and what a joy THAT was ;) > > For some unknown reason this dependency was not resolved when you updated your > ports. Apparently. > > Recompile the avahi-app port and it should link with the newer version and > work fine again. The compilation is blowing out (that might explain the observed problem). That is, the port does not build properly - apparently there is some syntax problem in the code: /usr/include/machine/endian.h:107: syntax error, unexpected '{' in ' return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap %0" : "+r" (__X)); __X; }));' at '{' /usr/include/machine/endian.h:107: syntax error, unexpected ';' in ' return (__extension__ ({ register __uint32_t __X = (_x); __asm ("bswap %0" : "+r" (__X)); __X; }));' at ';' /libexec/ld-elf.so.1: Shared object "libicui18n.so.46" not found, required by "libavahi-glib.so.1" Command '['/usr1/ports/net/avahi-app/work/avahi-0.6.29/avahi-gobject/tmp-introspectop_Yoq/Avahi-0.6', '--introspect-dump=/usr1/ports/net/avahi-app/work/avahi-0.6.29/avahi-gobject/tmp-introspectop_Yoq/types.txt,/usr1/ports/net/avahi-app/work/avahi-0.6.29/avahi-gobject/tmp-introspectop_Yoq/dump.xml']' returned non-zero exit status 1 gmake[3]: *** [Avahi-0.6.gir] Error 1 gmake[3]: Leaving directory `/usr1/ports/net/avahi-app/work/avahi-0.6.29/avahi-gobject' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr1/ports/net/avahi-app/work/avahi-0.6.29/avahi-gobject' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr1/ports/net/avahi-app/work/avahi-0.6.29' gmake: *** [all] Error 2 *** Error code 1 > > Roland -- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Am I Missing A Compat Library?
On 7/18/2011 12:43 PM, Roland Smith said this: > > But I _don't_ get this linker error. Just a thought, but have a look at glib > and dbus, and check that it is linked to the right libicu? ('ldd > /usr/local/lib/libglib-2.0.so.0' and 'ldd /usr/local/lib/libdbus-glib-1.so.2') > > If that is not the case, you'll have to dive into the configure output, I > think. > > Roland A forced deinstallation of avahi-app and then an installation, seems to have made the problem disappear. So much for "dynamically liked libraries will make systems maintenance simpler ..." -------- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Am I Missing A Compat Library?
On 7/18/2011 3:15 PM, Roland Smith said this: > On Mon, Jul 18, 2011 at 01:02:53PM -0500, Tim Daneliuk wrote: >> On 7/18/2011 12:43 PM, Roland Smith said this: >> >>> >>> But I _don't_ get this linker error. Just a thought, but have a look at glib >>> and dbus, and check that it is linked to the right libicu? ('ldd >>> /usr/local/lib/libglib-2.0.so.0' and 'ldd >>> /usr/local/lib/libdbus-glib-1.so.2') >>> >>> If that is not the case, you'll have to dive into the configure output, I >>> think. >>> >>> Roland >> >> >> A forced deinstallation of avahi-app and then an installation, seems >> to have made the problem disappear. > > I've seen that problem before. Sometimes an app will link to the previously > installed versions of its libraries rather than the freshly built ones. Do you > by any chance have the environment variable LIBRARY_PATH set to > /usr/local/lib? I've long suspected that or the -L option to gcc to be the > culprit. Nope. > >> So much for "dynamically linked libraries will make systems maintenance >> simpler ..." > > Static linking does indeed have some advantages. :-) Of course there is still > the option WITHOUT_DYNAMICROOT in /etc/src.conf to build /bin and /sbin > without dynamic linking... Haven't tried it in years, though. Disk space is cheap. Time wasted fixing silly problems is irreplacable. -- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: limit number of ssh connections
On 9/19/2011 2:05 PM, James Strother wrote: Does anyone know a good way of limiting the number of ssh attempts from a single IP address? I found the following website, which describes a variety of approaches: http://www.freebsdwiki.net/index.php/Block_repeated_illegal_or_failed_SSH_logins But I am honestly not really happy with any of them. Continuously polling log files for regex hits seems...well crude. Just to give you an idea of what I mean, here were some of the issues I had. The sshd-scan.sh script allows IPs to be reinstated, but the timing is dependent on how frequently you rotate logs. sshguard has a pretty website, but I can't actually find much useful documentation on how to configure it. fail2ban looks like it might work with sufficient work, but the defaults are terrible. By default, every time an IP is reinstated, all IPs are reinstated. Not to mention, at present I can't seem to get it to trigger any hits. I suppose I could keep shopping, but the truth is I just think polling log files is the wrong way to solve the problem. Anything based on this approach is going to have a long latency and be highly dependent on the unspecified and unstable formatting of log files (see http://www.fail2ban.org/wiki/index.php/HOWTO_Mac_OS_X_Server_(10.4) and the troubles an exclamation point can cause). I would much much rather do something like this: http://kevin.vanzonneveld.net/techblog/article/block_brute_force_attacks_with_iptables/ Does anyone know a way to do something similar with ipfw? Thanks in advance, Jim ___ They cannot attack what they cannot see. That's why I wrote this: http://www.tundraware.com/Software/tperimeter/ It allows you to restrict access to a fixed set of hosts (via tcpwrappers) but to dynamically request access from any host (via wrapper rewriting) so long as you have credentials to do so. The current version has a worst-case latency of 5 minutes from the time you remotely request ssh access be granted until it actually is. I am working toward an update that will grant the request immediately. -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Very large swap
On 10/14/2011 11:43 AM, Nikos Vassiliadis wrote: On 10/14/2011 8:08 AM, Dennis Glatting wrote: This is kind of stupid question but at a minimum I thought it would be interesting to know. What is the limitations in terms of swap devices under RELENG_8 (or 9)? A single swap dev appears to be limited to 32GB (there are truncation messages on boot). I am looking at a possible need of 2-20TB (probably more) with as much main memory that is affordable. The limit is raised to 256GB in HEAD and RELENG_8 http://svnweb.freebsd.org/base?view=revision&revision=225076 I am working with large data sets and there are various ways of solving the problem sets but simply letting the processors swap as they work through a given problem is a possible technique. I would advise against this technique. Possibly, it's easier to design your program to user smaller amounts of memory and avoid swapping. After all, designing your program to use big amounts of swapped out memory *and* perform in a timely manner, can be very challenging. Nikos Well ... I dunno how much large dataset processing you've done, but it's not that simple. Ordinarily, with modern machines and architectures, you're right. In fact, you NEVER want to swap, instead, throw memory at the problem. But when you get into really big datasets, it's a different story. You probably will not find a mobo with 20TB memory capacity :) So ... you have to do something with disk. You generally get two choices: Memory mapped files or swap. It's been some years since I considered either seriously, but they do have some tradeoffs. MM files give the programmer very fine grained control of just what might get pushed out to disk at the cost of user space context switching. Swap gets managed by the kernel which is about as efficient as disk I/O is going to get, but that means what and how things get moved on- and off disk is invisible to the application. What a lot of big data shops are moving to is SSD for such operations. SSD is VERY fast and can be RAIDed to overcome the tendency of at least the early SSD products' tendency to, um ... blow up. As always, scale is hard, and giant data problems are Really Hard (tm). That's why people like IBM, Sun/Oracle, and Teradata make lots of money building giant iron farms. 'Just my 2^1 cents worth ... -- ---- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
8-STABLE And fxp Driver
Is there are known recent problem with the fxp driver and 8-STABLE. I buildworld/kernel every 7-10 days and I have recently begun to see a bunch of "Link Down/Link Up" messages. Before I tear through cables, switches, and other hardware, I want to make sure this isn't some recently introduced driver artifact... Thanks, -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
ipfw And ping
I have a fairly restrictive ipfw setup on a FBSD 8.2-STABLE machine. Pings were not getting through so I added this near the top of the rule set: # # Allow icmp # ${FWCMD} add allow icmp from any to any It does work but, two questions: 1) Is there a better way? 2) Will this cause harm or otherwise expose the server to some vulnerability? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ipfw And ping
On 12/01/2011 08:56 PM, Robert Bonomi wrote: From owner-freebsd-questi...@freebsd.org Thu Dec 1 17:27:19 2011 Date: Thu, 01 Dec 2011 17:25:04 -0600 From: Tim Daneliuk To: FreeBSD Mailing List Subject: ipfw And ping I have a fairly restrictive ipfw setup on a FBSD 8.2-STABLE machine. Pings were not getting through so I added this near the top of the rule set: # # Allow icmp # ${FWCMD} add allow icmp from any to any It does work but, two questions: 1) Is there a better way? 2) Will this cause harm or otherwise expose the server to some vulnerability? FIRST question: Are you trying to make _outgoing_ ping work, or let the outside world 'ping' internal machines on your network? What you wrote is not clear on this point. Both. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ipfw And ping
On 12/01/2011 08:56 PM, Robert Bonomi wrote: Similarly, I let the firewall respond to pings adressed to it's _external_ interface, but silently drop anything addressed any further inside my network. (If they can _reach_ my firewall, then a problem, whatever it is, *is* 'my problem' and that's all anybody on the outside needs to know, or to tell me, if reporting a problem. :) I NAT behind the FW so they're not getting anywhere behind it... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ipfw And ping
On 12/01/2011 05:45 PM, Jon Radel wrote: On 12/1/11 6:25 PM, Tim Daneliuk wrote: I have a fairly restrictive ipfw setup on a FBSD 8.2-STABLE machine. Pings were not getting through so I added this near the top of the rule set: # # Allow icmp # ${FWCMD} add allow icmp from any to any It does work but, two questions: 1) Is there a better way? Consider allowing only the ICMP that does things you want to do. Google something like "icmp types to allow" for some hints and opinions. Just as an example, you can independently control being able to ping others and others being able to ping you. 2) Will this cause harm or otherwise expose the server to some vulnerability? Well, if you allow all ICMP types, it's possible to make your little packets go places you didn't really want them to go, and similar network breakage. You can also find those who feel strongly that allowing others to ping your machines gives them way too much information about what you have at which IP address. On the other hand, working ping and traceroute can be very handy to figure out what's wrong when the network breaks. But do you open up access on your server?---well not so much, though having said that I'm ready for somebody to remind me of some obscure attack that uses ICMP for more than information gathering. :-) --Jon Radel j...@ratdel.com I have been so advised by a number of people to do just this and I am investigating. I am not horribly concerned about this, though, because the machine in question is a NATing front end for a private, non-routable LAN and the associated nameserver uses split-horizon DNS to make all the internal name-ip associations invisible outside the LAN. So ... I don't really see much threat here. I am throttling ICMP rates via sysctl because - AFAIK - the only overt ICMP attack is to flood a target in hopes of getting Denial Of Services. As with you, I remain open to someone presenting a scenario wherein a particular ICMP protocol could actually cause harm... Thanks for your time. -- ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ipfw And ping
On 12/04/2011 01:04 AM, Ian Smith wrote: For one, google 'icmp redirect attack' But isn't that handled by setting: net.inet.icmp.drop_redirect=1 # This is the ICMP rule we generally use: # ipfw add 10 allow icmp from any to any in icmptypes 0,3,4,11,12,14,16,18 Hmmm I just tried this and it seems to break ping... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
SOLVED: ipfw And ping
I have a fairly restrictive firewall but I wanted to open a hole for ping and traceroute - both outbound from a NATed LAN as well as inbound to the boundary FreeBSD machine. The magic sauce turned out to be: ipfw add allow icmp from any to any icmptypes 0,3,4,8,11,12 The other insight here was that this rule had to occur *after* NAT got setup or internal users on the LAN would not be able to ping. Many thanks especially go to Robert Bonomi and Ian Smith for their help and patience with my foolish questions... Tim ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Perl Upgrade And Mailscanner Woes
Almost every time there is a perl upgrade, it manages to break Mailscanner even after running perl-after-upgrade. The solution ends up being a reinstall of Mailscanner, but this is a real pain, because you have to delete and reinstall every dependent perl package used by Mailscanner. Does anyone have a better way? -- --- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Perl Upgrade And Mailscanner Woes
On 12/21/2011 09:28 AM, Matthew Seaman wrote: On 21/12/2011 14:59, Tim Daneliuk wrote: Almost every time there is a perl upgrade, it manages to break Mailscanner even after running perl-after-upgrade. The solution ends up being a reinstall of Mailscanner, but this is a real pain, because you have to delete and reinstall every dependent perl package used by Mailscanner. Something is going wrong with your upgrade process. If you're doing a minor version upgrade of perl (eg. from 5.x.y to 5.x.y+1), then almost all perl modules (including XS) only need to be moved into the new ${LOCALBASE}/lib/perl5/site-perl/5.x.y+1 directory tree, which is basically what perl-after-upgrade does. A few packages which embed a perl interpreter would need recompiling, but you could count those on the fingers of one hand. Are you sure you are using perl-after-upgrade correctly? You do understand that just running: # perl-after-upgrade doesn't actually modify anything on disk: instead it shows you what needs to be done. To actually effect the change you need to run: # perl-after-upgrade -f Aha! And the lights go on ... Nevermind. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Asymmetric NFS Performance
Server:FBSD 8.2-STABLE / MTU set to 15000 Client:Linux Mint 12 / MTU set to 8192 NFS Mount Options: rw,soft,intr Problem: Throughput copying from Server to Client is about 2x that when copying a file from client to server. The client does have a SSD whereas the server has conventional SATA drives but ... This problem is evident with either 100- or 1000- speed ethernet so I don't think it is a drive thing since you'd expect to saturate 100-BASE with either type of drive. Things I've Tried So Far: - Increasing the MTUs - This helped speed things up, but the up/down ratio stayed about the same. - Fiddling with rsize and wsize on the client - No real difference Ideas anyone? ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Was I Sourced?
Is there a way for script to determine whether is was sourced or forked off as a subprocess when it was invoked? I have a script that needs to be sourced to work properly and I want to warn the luser if they exec or subshell it instead. TIA, -- --- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Was I Sourced?
On 02/12/2013 11:10 AM, Robert Bonomi wrote: Date: Tue, 12 Feb 2013 08:53:37 -0600 From: Tim Daneliuk To: FreeBSD Mailing List Subject: Was I Sourced? Is there a way for script to determine whether is was sourced or forked off as a subprocess when it was invoked? I have a script that needs to be sourced to work properly and I want to warn the luser if they exec or subshell it instead. a 'sourced' script does -not- honor a shebag line. you can exploit that. The executable script /usr/local/bin/source_only; #!/bin/sh echo Error: this script must be sourced Your script: #!/usr/local/bin/source_only {cmd} {cmd} {cmd} {cmd} {cmd} {cmd} ... ... Trying to do it totally self-contained is not easy. Actually, it's not that hard. Setting the shebang line to this does the trick: #!/bin/echo "This Script Must Be Sourced" Thanks to all who replied on this one ... -- ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Fun Scripting Problem
I know how to do this in Python, but I really want to do it in straight Bourne shell. I have some ideas, but I thought I'd give you folks a crack at this Big Fun: a) You have a directory of files - say they're logs - generated at nondeterministic intervals. You may get more than one a day, more than one a month, none, or hundreds. b) To conserve space, you want to keep the last file generated in any given month (the archive goes back for an unspecified number of years), and delete all the files generated prior to that last file in that same month. c) Bonus points if the problem is solved generally for either files or directories generated as described above. These are not actually logs, and no, I don't think logrotate can do this ... or can it? -- ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Fun Scripting Problem
On 02/13/2013 12:38 PM, Teske, Devin wrote: (apologies for top-post) As tempted as I am, I think newsyslog(8) may be what you want. Missing information in your post is how you intend to timestamp the files -- by filename? by content? If by-content, then is it a good assumption that the data is one entry per-line? ... and if-so, is the timestamp in that line? These are all questions that would be needed to script what you're asking for (not that I'm volunteering or anything like that). The only way to determine the date of the file is by looking at its stat info. There is nothing the file name or content that could be used to infer this. -- ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Fun Scripting Problem
On 02/13/2013 03:13 PM, Robert Bonomi wrote: Date: Wed, 13 Feb 2013 12:27:31 -0600 From: Tim Daneliuk Subject: Fun Scripting Problem I know how to do this in Python, but I really want to do it in straight Bourne shell. I have some ideas, but I thought I'd give you folks a crack at this Big Fun: a) You have a directory of files - say they're logs - generated at nondeterministic intervals. You may get more than one a day, more than one a month, none, or hundreds. b) To conserve space, you want to keep the last file generated in any given month (the archive goes back for an unspecified number of years), and delete all the files generated prior to that last file in that same month. c) Bonus points if the problem is solved generally for either files or directories generated as described above. These are not actually logs, and no, I don't think logrotate can do this ... or can it? here's a one-liner: rm ` \ stat -f "%SB %B %N" * \ | sort -k5nr \ | cut -c1-7,17-20,32- \ | awk 'BEGIN {a="";b=0;c=0} $1==a && $2==b && $3=c {print $4;}{a=$1;b=$2;c=$3}' \ ` This selects on creation date. change the B (both of them) in the stat call to use a different timestamp Thanks to all that took the time. Interesting responses. It will be fun to cook up my own version. -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Weird NFS Performance Problem
I have a FreeBSD 9.1-STABLE exhibiting weird NFS performance issues and I'd appreciate any suggestions. I have several different directories exported from the same filesystem. The machine that mounts them (a Linux Mint 12 desktop) writes nice and fast to one of them, but writes to the other one are dreadfully slow. Both are mounted on the LM machine using 'rw,soft,intr' in that machine's fstab file. Any ideas on what might be the culprit here? -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
NFS Performance: Weirder And Weirder
This is really weird. A FreeBSD 9.1 system mounts the following: /dev/ad4s1a989M625M285M69%/ devfs 1.0k1.0k 0B 100%/dev /dev/ad4s1d7.8G 1G6.1G14%/var /dev/ad4s1e 48G9.4G 35G21%/usr /dev/ad4s1f390G127G231G35%/usr1 /dev/ad6s1d902G710G120G86%/usr1/BKU /usr1/something (under ad4s1f) and /usr1/BKU (all of ad6s1d) are exported for NFS mounting on the LAN. I have tested the speeds of these two drives locally doing a 'dd if=/dev/zero '. Their speeds are quite comparable - around 55-60 MB/s so the problem below is not an artifact of a slow drive. The two mounts are imported like this on a Linux Mint 12 machine: machine:/usr1/BKU /BKU nfs rw,soft,intr 0 0 machine:/usr1/shared /shared nfs rw,soft,intr 0 0 Problem: When I write files from the LM12 machines to /BKU the writes are 1/10 the speed of when writing to /shared. Reads are fine in both cases, at near native disk speeds being reported. Someone here suggested I get rid of any symlinks in the mount and I did that to no avail. Incidentally, the only reason I just noticed this is that I upgraded the NIC on the FreeBSD machine and the switch into which it connects to 1000Base because the LM12 machine had a built in 1000Base NIC. I also changed the cables on both machines to ensure they were not the problem. Prior to this, I was bandwidth constrained by the 100Base so I never saw NFS performance as an issue. When I upgraded, I expected faster transfers and when I didn't get them, I started this whole investigation. So ... I'm stumped: - It's not the drive or SATA ports because both drives show comparable performance. - It's not the cables because I can get great throughput on one of the NFS mountpoints. - It's neither NIC for the same reason. Does anyone: A) Have a clue what might be doing this B) Have a suggestion how to track down the problem Thanks, -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: NFS Performance: Weirder And Weirder
On 03/16/2013 04:20 PM, Mehmet Erol Sanliturk wrote: With respect to your mount points : /usr1 is spanning TWO different partitions : /dev/ad4s1f390G127G231G35%/usr1 /dev/ad6s1d902G710G120G86%/usr1/BKU because /usr1/BKU is a sub-directory of /usr1 . If you create a new directory , for example /usr2 , and /usr2/BKU , and using this new separate directory for sharing , such as : /dev/ad6s1d902G710G120G86%/usr2/BKU and machine:/usr2/BKU /BKU nfs rw,soft,intr 0 0 will it make difference ? Mehmet Erol Sanliturk I just tried this and it made no difference. The same file copied onto the NFS mount on /usr1/shared takes about 20x as long when coppied on to /usr[1|2]/BKU. -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: NFS Performance: Weirder And Weirder
On 03/16/2013 05:43 PM, Mehmet Erol Sanliturk wrote: Michael W. Lucas in Absolute FeeBSD , 2nd Edition , ( ISBN : 978-1-59327-151-0 ) , is suggesting the following ( p. 248 ) : In client ( mount , or , fstab ) , use options ( -o tcp , intr , soft , -w=32768 , -r=32768 ) tcp option will request a TCP mount instead of UDP mount , because FreeBSD NFS defaults to running over UDF . This subject may be another check point . Another very good suggestion but ... to no avail. Thanks for pointing this out. -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: NFS Performance: Weirder And Weirder
On 03/16/2013 10:15 PM, Mehmet Erol Sanliturk wrote: On Sat, Mar 16, 2013 at 6:46 PM, Tim Daneliuk mailto:tun...@tundraware.com>> wrote: On 03/16/2013 05:43 PM, Mehmet Erol Sanliturk wrote: Michael W. Lucas in Absolute FeeBSD , 2nd Edition , ( ISBN : 978-1-59327-151-0 ) , is suggesting the following ( p. 248 ) : In client ( mount , or , fstab ) , use options ( -o tcp , intr , soft , -w=32768 , -r=32768 ) tcp option will request a TCP mount instead of UDP mount , because FreeBSD NFS defaults to running over UDF . This subject may be another check point . Another very good suggestion but ... to no avail. Thanks for pointing this out. -- --__--__---- Tim Daneliuk tun...@tundraware.com <mailto:tun...@tundraware.com> PGP Key: http://www.tundraware.com/PGP/ I have read messages once more . There is a phrase : Linux Mint 12 machineS ( plural ) . In your descriptions , there is no any information about network setup : Single client , multiple clients , etc . Then , with some assumptions : If there is ONLY ONE client , and all of the tests are performed on this ONLY client , problem may be attributed to FreeBSD server or kind of file(s) in different directories : One of the is encrypted ( requires decryption ) , another is plain file , etc. . There is one server - FreeBSD, and one client - LM12. Both have had their cables replaced with new CAT6 wiring. Copying the exact same file to each of the NFS mounts exhibits the problem. Reading from the two NFS mount is fast and as expected, so I do not suspect network issues. The two drives used on the server show similar disk performance locally. The server side exports are identical for both mounts as are the client side mounts. The ONLY difference is that the "fast" NFS mount has server side permissions of 777 whereas the "slow" NFS mount has server side permissions of 775. Both are owned by root:wheel. The contents of each filesystem are owned by a user in the wheel group. The one other difference is that all the contents of the slow mount are in a particular user group, and all the ones in the fast mount are in the wheel group. Changing the group ownership of all the stuff in the slow mount to wheel makes no difference. The problem appears to be size related on the slow mount. When I copy, say, a 100MB file to it, performance is just fine. When I copy a 1G file, it's 1/20 the throughput (45MB/sec vs 2MB/sec). This feels like some kind of buffer starvation but the fact that I can run at full speed against another mount point leaves me scratching my head as to just where. It's almost like there's some kind of halting going on during the transfer. -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Looks Like New Changes To 'install' Break Mergemaster
$ mergemaster -Fi *** The directory specified for the temporary root environment, /var/tmp/temproot, exists. This can be a security risk if untrusted users have access to the system. Use 'd' to delete the old /var/tmp/temproot and continue Use 't' to select a new temporary root directory Use 'e' to exit mergemaster Default is to use /var/tmp/temproot as is How should I deal with this? [Use the existing /var/tmp/temproot] d *** Deleting the old /var/tmp/temproot *** Creating the temporary root environment in /var/tmp/temproot *** /var/tmp/temproot ready for use *** Creating and populating directory structure in /var/tmp/temproot install: illegal option -- l usage: install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to the temproot environment ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Looks Like New Changes To 'install' Break Mergemaster
On 03/17/2013 02:36 PM, Tim Daneliuk wrote: $ mergemaster -Fi *** The directory specified for the temporary root environment, /var/tmp/temproot, exists. This can be a security risk if untrusted users have access to the system. Use 'd' to delete the old /var/tmp/temproot and continue Use 't' to select a new temporary root directory Use 'e' to exit mergemaster Default is to use /var/tmp/temproot as is How should I deal with this? [Use the existing /var/tmp/temproot] d *** Deleting the old /var/tmp/temproot *** Creating the temporary root environment in /var/tmp/temproot *** /var/tmp/temproot ready for use *** Creating and populating directory structure in /var/tmp/temproot install: illegal option -- l usage: install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to the temproot environment More specifically, running 'sh -x mergemaster' show us this: ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" + cd /usr/src + od=/var/tmp/temproot/usr/obj + make -m /usr/src/share/mk DESTDIR=/var/tmp/temproot distrib-dirs + MAKEOBJDIRPREFIX=/var/tmp/temproot/usr/obj make -m /usr/src/share/mk _obj SUBDIR_OVERRIDE=etc + MAKEOBJDIRPREFIX=/var/tmp/temproot/usr/obj make -m /usr/src/share/mk everything SUBDIR_OVERRIDE=etc + MAKEOBJDIRPREFIX=/var/tmp/temproot/usr/obj make -m /usr/src/share/mk DESTDIR=/var/tmp/temproot distribution install: illegal option -- l usage: install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... + echo '' + echo ' *** FATAL ERROR: Cannot '\''cd'\'' to /usr/src and install files to' *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to + echo ' the temproot environment' the temproot environment + echo '' + exit 1 -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Looks Like New Changes To 'install' Break Mergemaster
On 03/17/2013 02:52 PM, Tim Daneliuk wrote: PR 177055 submitted. -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: what commands show memory usage
On 05/14/2013 08:56 PM, Joe wrote: Tim Daneliuk wrote: On 05/14/2013 08:32 PM, Joe wrote: When stopping vnet jails get message about lost memory pages. What console commands show available memory pages so I can determine the lost memory pages after 100 stopped jails? Want to find out if that lost memory page message is bogus or not. Look at 'vmstat' and 'free' commands. can't find any "free" command Sorry Joe (and everyone), I had a brief bit flip. The command is actually called freebsd-memory and is not in the base system. It's an addon from Ralph Engelshall and can be found here: http://people.freebsd.org/~rse/utils/ (If you care, the 'free' command is how you do this on Linux.) -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: check variable content size in sh script
On 05/16/2013 10:08 AM, Joe wrote: Hello Have script that has max size on content in a variable. How to code size less than 51 characters? FOO="Some string you want to check length of" FOOLEN=`echo $FOO | wc | awk '{print $3}'` You can then use $FOOLEN in a conditional. -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: check variable content size in sh script
On 05/16/2013 10:45 AM, Dan Nelson wrote: In the last episode (May 16), Tim Daneliuk said: On 05/16/2013 10:08 AM, Joe wrote: Hello Have script that has max size on content in a variable. How to code size less than 51 characters? FOO="Some string you want to check length of" FOOLEN=`echo $FOO | wc | awk '{print $3}'` You can then use $FOOLEN in a conditional. Much better way: FOO="Some string you want to check length of" FOOLEN=${#FOO} D'Oh, you're right ... what was I thinking ... -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: check variable content size in sh script
On 05/18/2013 10:09 AM, Quartz wrote: However, if the OP wanted to actually truncate $FOO to 51 characters: NEWFOO=$( echo "$FOO" | awk -v max=51 '{print substr($0,0,max)}' ) You don't need all that for a simple truncation/substring, you can do it with a direct assignment: newfoo=${foo:0:51} That works for bash, not sh. -- ---- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: check variable content size in sh script
#foo works with sh On May 18, 2013 10:58:30 AM Quartz wrote: >> newfoo=${foo:0:51} >> > > That works for bash, not sh. Ok granted, but I don't think that ${#foo} is straight sh either, so I assumed "things bash/tcsh/ksh/whatever accept when running in sh emulation" were ok. __ it has a certain smooth-brained appeal ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Can sasl/sendmail Report IP Of Failed Access?
I am seeing login dictionary attacks on a FreeBSD mail server being reported. Is there a way to determine the IPs that are doing this so they can be blocked at the firewall? auth.log only notes the attempted user name, not the IP of origin. -- --- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Can sasl/sendmail Report IP Of Failed Access?
On 06/04/2013 04:51 PM, Doug Hardie wrote: On 4 June 2013, at 08:47, Tim Daneliuk wrote: I am seeing login dictionary attacks on a FreeBSD mail server being reported. Is there a way to determine the IPs that are doing this so they can be blocked at the firewall? auth.log only notes the attempted user name, not the IP of origin. -- I wrote some code to find the appropriate maillog entries which do include the IP addresses. It automagically adds the IP addresses to the pf blackhole table if certain criteria is met. The criteria is changeable. If you would like a copy, let me know. Yes, I'd love a look at that, thanks. -- ---- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Suddenly Seeing Clamav Errors After MailScanner Update
I am working on a FBSD 9.1-STABLE mail machine that's been working fine. After upgrading to MailScanner 4.84.5_3, we are now suddenly seeing like this: Clamd::ERROR:: UNKNOWN CLAMD RETURN ./lstat() failed: Permission denied. ERROR :: /var/spool/MailScanner/incoming/68340 Any ideas what might cause this? I have fallen back to the previous MailScanner.conf file wherein the problem does NOT seem to happen. But, after diffing old and new config files I cannot see where anything relevant to this might have changed. Ideas anyone? -- ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Bourne shell "if" syntax
On 06/10/2013 01:53 PM, lcon...@go2france.com wrote: script fragment: PTR=`dig @some.dns +short +norec -x a.b.c.d` echo "$PTR" if [ "$PTR" == "" ] ; then echo "$PTR" >> /path/to/PTR_absent.txt fi === output for an IP: a-b-c-d.domain.net. [: a-b-c-d.domain.net.: unexpected operator Try this instead and see if this fixes it: if [ _"$PTR" == _ ] ; then ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Bourne shell "if" syntax
On 06/10/2013 01:59 PM, dte...@freebsd.org wrote: -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of lcon...@go2france.com Sent: Monday, June 10, 2013 11:53 AM To: freebsd-questions@freebsd.org Subject: Bourne shell "if" syntax script fragment: PTR=`dig @some.dns +short +norec -x a.b.c.d` echo "$PTR" if [ "$PTR" == "" ] ; then if [ "$PTR" = "" ]; then or if [ -z "$PTR" ]; then or if [ "$PTR" ]; then but _NOT_ if [ "$PTR" == "" ]; then I work across a bunch of different OSs and shells of many vintages. As I recall, the -z argument has problems of portability on older/broken shells and/or is not available in all environments (I cannot recall which at the moment). So I achieve the same results by using a character sentinel that guarantees that the comparison always works: f [ _"$PTR" == _ ] ; then -- --- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Bourne shell "if" syntax
On 06/10/2013 02:10 PM, dte...@freebsd.org wrote: -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of Tim Daneliuk Sent: Monday, June 10, 2013 12:06 PM To: freebsd-questions@freebsd.org Subject: Re: Bourne shell "if" syntax On 06/10/2013 01:59 PM, dte...@freebsd.org wrote: -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of lcon...@go2france.com Sent: Monday, June 10, 2013 11:53 AM To: freebsd-questions@freebsd.org Subject: Bourne shell "if" syntax script fragment: PTR=`dig @some.dns +short +norec -x a.b.c.d` echo "$PTR" if [ "$PTR" == "" ] ; then if [ "$PTR" = "" ]; then or if [ -z "$PTR" ]; then or if [ "$PTR" ]; then but _NOT_ if [ "$PTR" == "" ]; then I work across a bunch of different OSs and shells of many vintages. As I recall, the -z argument has problems of portability on older/broken shells and/or is not available in all environments (I cannot recall which at the moment). So I achieve the same results by using a character sentinel that guarantees that the comparison always works: f [ _"$PTR" == _ ] ; then Character sentinels are not required. FreeBSD's sh(1) knows (because "[" is a built-in) that when you quote a parameter, that it is not (even if the value begins with "-") not an operator. That wasn't really my point. I use sentinels because in the face of an empty string this: if [ $PTR = "" ] Actually evaluates to: if [ = "" ] Which throws an error. The character sentinel avoids this without having to use -z, which as I said, I've had problems with not being too portable across older machinery. All work as expected. It matters not the value of $foo. sh(1) in FreeBSD knows because of the double-quotes that it is not an operator. Furthermore... "==" is not the right operator. It's "=". Portability would surely be compromised if you were using "==" (which doesn't work on FreeBSD; or many other OSes I gather from experience). Ooops, I did catch that and you're quite right. -- --- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Bourne shell "if" syntax
On 06/10/2013 02:21 PM, dte...@freebsd.org wrote: ctually, there's another reason you should also avoid the above (unquoted parameter), and that's in the case of a multi-word value. For example: Yup, that's the compelling case for using quoting. -- ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Cannot Update Source Tree After Move To Subversion 1.8
After the update to svn 1.8, I did a new svn co of the FBSD 9-STABLE source branch. When I try to do an update to it, I see this now: svn: E155005: Working copy not locked at /usr/scr svn co svn://svn.freebsd.org/base/stable/9 /usr/src /usr/src is a symlink to another directory in a separate filesystem, but this historically worked, so I'm guess that is not the problem. Ideas? -- ------- Tim Daneliuk ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Cannot Update Source Tree After Move To Subversion 1.8
On 06/24/2013 03:20 PM, Matthew Seaman wrote: On 24/06/2013 20:28, Tim Daneliuk wrote: After the update to svn 1.8, I did a new svn co of the FBSD 9-STABLE source branch. When I try to do an update to it, I see this now: svn: E155005: Working copy not locked at /usr/scr svn co svn://svn.freebsd.org/base/stable/9 /usr/src /usr/src is a symlink to another directory in a separate filesystem, but this historically worked, so I'm guess that is not the problem. Ideas? svn upgrade Hm [root] ozzie ~>svn upgrade /usr/src [root] ozzie ~>svn update /usr/src svn: E155004: Run 'svn cleanup' to remove locks (type 'svn help cleanup' for details) svn: E155004: Working copy '/usr1/src-9-STABLE' locked. svn: E155004: '/usr1/src-9-STABLE' is already locked. [root] ozzie ~>svn cleanup /usr/src [root] ozzie ~>svn update /usr/src Updating '/usr/src': svn: E155005: No write-lock in '/usr/src/sys' svn: E155005: Additional errors: svn: E155005: Working copy not locked at '/usr/src'. -- ---- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Cannot Update Source Tree After Move To Subversion 1.8
On 06/24/2013 04:58 PM, Tim Daneliuk wrote: On 06/24/2013 03:20 PM, Matthew Seaman wrote: On 24/06/2013 20:28, Tim Daneliuk wrote: After the update to svn 1.8, I did a new svn co of the FBSD 9-STABLE source branch. When I try to do an update to it, I see this now: svn: E155005: Working copy not locked at /usr/scr svn co svn://svn.freebsd.org/base/stable/9 /usr/src /usr/src is a symlink to another directory in a separate filesystem, but this historically worked, so I'm guess that is not the problem. Ideas? svn upgrade Hm [root] ozzie ~>svn upgrade /usr/src [root] ozzie ~>svn update /usr/src svn: E155004: Run 'svn cleanup' to remove locks (type 'svn help cleanup' for details) svn: E155004: Working copy '/usr1/src-9-STABLE' locked. svn: E155004: '/usr1/src-9-STABLE' is already locked. [root] ozzie ~>svn cleanup /usr/src [root] ozzie ~>svn update /usr/src Updating '/usr/src': svn: E155005: No write-lock in '/usr/src/sys' svn: E155005: Additional errors: svn: E155005: Working copy not locked at '/usr/src'. It seems that svn 1.8 does not like symlinks. I have this: /usr/src -> /usr1/src-9-STABLE I can do this fine: svn update /usr1/src-9-STABLE But this causes svn to dump core: svn update /usr/src At which point I have to do a cleanup to get the locks cleared out. -- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
FreeBSD Appliance Questions
I am working on an NAS appliance built on FreeSBD. Several questions: - The vendor has rebranded everything so uname isn't helping me determine what exact branch of FreeBSD they used. Is there another canonical way to figure this out? - For any reasonably recent version of FBSD, is it likely that the Linux emulation will work correctly or are there certain versions of FreeBSD that do this better than others? Thanks, -- ---- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD Appliance Questions
On 06/28/2013 05:27 PM, Tim Daneliuk wrote: I am working on an NAS appliance built on FreeSBD. Several questions: - The vendor has rebranded everything so uname isn't helping me determine what exact branch of FreeBSD they used. Is there another canonical way to figure this out? - For any reasonably recent version of FBSD, is it likely that the Linux emulation will work correctly or are there certain versions of FreeBSD that do this better than others? Thanks, Oh one more thing - does anyone have experience - good or bad - with installing and running the Tivoli TSM Client software under the FreeBSD Linux emulation? -- ---- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD Appliance Questions
On 06/28/2013 05:31 PM, Outback Dingo wrote: On Fri, Jun 28, 2013 at 6:28 PM, Tim Daneliuk mailto:tun...@tundraware.com>> wrote: On 06/28/2013 05:27 PM, Tim Daneliuk wrote: I am working on an NAS appliance built on FreeSBD. Several questions: - The vendor has rebranded everything so uname isn't helping me determine what exact branch of FreeBSD they used. Is there another canonical way to figure this out? - For any reasonably recent version of FBSD, is it likely that the Linux emulation will work correctly or are there certain versions of FreeBSD that do this better than others? Thanks, Oh one more thing - does anyone have experience - good or bad - with installing and running the Tivoli TSM Client software under the FreeBSD Linux emulation? would help to know the manufacturer, might be able to help nail down the version of the OS It is an EMC/Isolon but I'm not sure which model. Still looking into it. -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD Appliance Questions
On 06/28/2013 05:46 PM, Outback Dingo wrote: research shows http://en.wikipedia.org/wiki/OneFS_distributed_file_system D'oh. I looked it up under Isolon but not OneFS. -- ---- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: texlive and package updating
On 08/09/2013 11:36 AM, Jerry wrote: Port: texlive-full-20120701 Path: /usr/ports/print/texlive-full Info: TeX Live, Full Version Maint: h...@freebsd.org With: TEX_DEFAULT=texlive placed in the /etc/make.conf file. My question is how do I update the packages since the package updater has apparently been deliberately disabled? I install/update dozens of packages each week on my Windows machine, so I know that they are available. Also. all of the "*-freebsd-doc-*" ports are bonked due to the use of "texlive". Is there any headway being made on that front? I've given up on all OS distribution-based TexLive drops. I install texlive manually from their installer and then run tlmgr under cron control nightly to keep it up-to-date. I do this on FreeBSD (my primary dev and server platform) as well as all linux instances in my environment. It makes things a lot simpler. - ---- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Since SquirrelMail Looks Like It Will Never Be Supported Again...
SquirrelMail seems to be forever on hold because of an incompatibility with PHP 5. So I am going to have to replace it as our Webmail interface. So, I'm looking for recommendation from the tribe here on what I should use instead: 1) Easy to use. Mostly this gets used by people when they are away from the office and then only occasionally. 2) It would be really nice if the program could import the Thunderbird Address Book. 3) Easy to install and maintain. TIA, ---- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Migration TeX/LaTeX: from teTeX --> TeXlive
On 09/15/2013 02:00 PM, Roland Smith wrote: Personally I don't think TeX is a good fit for the ports tree (because of duplication of effort). I installed TeXLive using its own installer long before it was present in the ports tree. Since TeXLive is very complete and self-contained, I don't have other ports that depend on TeX. +1 My TeX dependency and maintenance problems all but disappeared when I moved to the freestanding TeXLive installation. I run a nightly cron job to get the latest updates via tlmgr and it works like a charm. -- -------- Tim Daneliuk tun...@tundraware.com PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
/bin/sh Madness
Here is a shell function that behaves quite strangely: #!/bin/sh # # Execute A Command, Noting Start/Stop Time, & Logging Output # Args: # $1 Command Name # $2 Log Directory # $3 Command String To Execute # runupd() { log=$2/$1.log timestamp $log touch $2/.$1-begin && eval $3 2>&1 >> $log && touch $2/.$1-end & } # End of 'runupd()' So, you might do something like: runupd freespace /var/log/ "df -k" Now, for the weirdness. This function works fine in my script so long as one of two conditions is met: 1) I run it interactively from the command line (bash) OR 2) I run it from 'cron' AND $3 is *not* another script If I try to run it from 'cron' and point $3 to a script, everything gets run as planned, however, the ending timestamp (touch $2/.$1-end) never runs. That is, the initial time stamp (.$1-begin) and the command itself are executed, and output is properly written to the logfile, but the final timestamp never happens. I have been fiddling with this on- and off and cannot seem to explain the behavior. I',m guessing that something about the combination of 'cron'and the 2>&1 >> $log business is causing the last touch to never get invoked, but for the life of me, I cannot figure this one out. Interestingly, this works fine in Linux (SuSE 10.0). In Linux, both 'sh' and 'bash' are the same binary (bash is running as sh). So .. I went back to FreeBSD (4.x in this case, though the problem is also noted in 6.x) and changed the SHELL variable in the crontabs file to use 'bash' - same problem. This is starting to feel like a problem with file handles getting clobbered in the FreeBSD exec logic. Other explanations welcome... -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /bin/sh Madness
Dan Nelson wrote: In the last episode (Feb 16), Tim Daneliuk said: Here is a shell function that behaves quite strangely: #!/bin/sh # # Execute A Command, Noting Start/Stop Time, & Logging Output # Args: # $1 Command Name # $2 Log Directory # $3 Command String To Execute # runupd() { log=$2/$1.log timestamp $log touch $2/.$1-begin && eval $3 2>&1 >> $log && touch $2/.$1-end & } # End of 'runupd()' So, you might do something like: runupd freespace /var/log/ "df -k" Now, for the weirdness. This function works fine in my script so long as one of two conditions is met: 1) I run it interactively from the command line (bash) OR 2) I run it from 'cron' AND $3 is *not* another script If I try to run it from 'cron' and point $3 to a script, everything gets run as planned, however, the ending timestamp (touch $2/.$1-end) never runs. That is, the initial time stamp (.$1-begin) and the command itself are executed, and output is properly written to the logfile, but the final timestamp never happens. Could your $3 command be returning a nonzero exit code? You probably want something more like touch $2/.$1-begin && { eval $3 2>&1 >> $log ; touch $2/.$1-end } & I am looking into this. so your end timestamp always gets created whether or not $3 succeeds. Also note that in your original script, you only backgrounded "touch $2/.$1-end", which is probably not what you wanted. H - I have invoked the script that uses this function a variety of ways and the command being evaled *is* being backgrounded in every case with the syntax shown above ... -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /bin/sh Madness
Dan Nelson wrote: In the last episode (Feb 16), Tim Daneliuk said: Here is a shell function that behaves quite strangely: #!/bin/sh # # Execute A Command, Noting Start/Stop Time, & Logging Output # Args: # $1 Command Name # $2 Log Directory # $3 Command String To Execute # runupd() { log=$2/$1.log timestamp $log touch $2/.$1-begin && eval $3 2>&1 >> $log && touch $2/.$1-end & } # End of 'runupd()' So, you might do something like: runupd freespace /var/log/ "df -k" Now, for the weirdness. This function works fine in my script so long as one of two conditions is met: 1) I run it interactively from the command line (bash) OR 2) I run it from 'cron' AND $3 is *not* another script If I try to run it from 'cron' and point $3 to a script, everything gets run as planned, however, the ending timestamp (touch $2/.$1-end) never runs. That is, the initial time stamp (.$1-begin) and the command itself are executed, and output is properly written to the logfile, but the final timestamp never happens. Could your $3 command be returning a nonzero exit code? You probably want something more like touch $2/.$1-begin && { eval $3 2>&1 >> $log ; touch $2/.$1-end } & so your end timestamp always gets created whether or not $3 succeeds. Also note that in your original script, you only backgrounded "touch $2/.$1-end", which is probably not what you wanted. This seems not to work - I don't think 'sh' likes nested function braces - recall that this command appears inside a shell function. In any case, I think I have nailed the problem. It seems that the external script being called made reference to 'chown' without explicitly naming the program's path. Under 'cron' control, there is no path to /usr/sbin by default so the script was exiting with a non-zero exit status as several here suggested. . Many thanks to all who took time to answer. -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Path And 'cron'
Where is the default path for cron jobs established? (And can it be changed...) TIA, -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Path And 'cron'
Randy Pratt wrote: On Sun, 19 Feb 2006 15:25:49 -0600 Tim Daneliuk <[EMAIL PROTECTED]> wrote: Where is the default path for cron jobs established? (And can it be changed...) Take a look at: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-cron.html and see if that answers your question. Best regards, Randy -- Well ... it answered my question partially. But as I looked back over it, I realized my central questions are still unanswered: If I do not have a PATH= statement in a particular user's crontab, what is used for a default PATH? Is the path in /etc/crontab inherited somehow? Given that the default shell is /bin/sh, are the settings in /etc/profile observed? If no PATH is established there either, what will cron use? I am trying to determine the best place to establish correct global PATH settings for all cron users so I don't have to edit each users' crontab file when file locations are updated or changed. TIA, -- ---- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Path And 'cron'
Randy Pratt wrote: If I do not have a PATH= statement in a particular user's crontab, what is used for a default PATH? From "man 5 crontab" : Several environment variables are set up automatically by the cron (8) daemon. SHELL is set to /bin/sh, PATH is set to /usr/bin:/bin, and LOGNAME and HOME are set from the /etc/passwd line of the crontab's owner. HOME, PATH and SHELL may be overridden by settings in the crontab; LOGNAME may not. I wonder if I can use the PATH=$PATH:/my/new/stuff formulation in a crontab file to preserve this default. I'll have to look into that. Is the path in /etc/crontab inherited somehow? Given that the default shell is /bin/sh, are the settings in /etc/profile observed? If no PATH is established there either, what will cron use? I am trying to determine the best place to establish correct global PATH settings for all cron users so I don't have to edit each users' crontab file when file locations are updated or changed. It seems that the PATH is being set in the source code, in particular /usr/src/usr.sbin/cron/cron/pathnames.h : #ifndef _PATH_DEFPATH # define _PATH_DEFPATH "/usr/bin:/bin" #endif I suppose its possible to change the source and rebuild but there may be subtle interactions that aren't readily apparent that would need to be considered. There may even be a knob to tweak somewhere for this. That's what I was hoping for - tweaking the source is not a very clean way to solve my problem. In case you're interested (or anyone else listening), it seems that 'chown' likes to live in /usr/sbin - i.e., A place not in the default path. As it happens, a root cron task is trying to run a script that uses 'chown' and is thus failing. I can change the PATH just for root's crontab and solve the problem. I was just curious if there was a way to more broadly modify the defaults used by cron. Thanks again, for your time in this matter ... -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Path And 'cron'
Warren Block wrote: On Mon, 20 Feb 2006, Tim Daneliuk wrote: In case you're interested (or anyone else listening), it seems that 'chown' likes to live in /usr/sbin - i.e., A place not in the default path. As it happens, a root cron task is trying to run a script that uses 'chown' and is thus failing. I can change the PATH just for root's crontab and solve the problem. I was just curious if there was a way to more broadly modify the defaults used by cron. The standard solution would be to use a full path to the command in the script (/usr/sbin/chown). If it's used in multiple locations, defining it as a shell variable makes it maintainable: CHOWN="/usr/sbin/chown" ${CHOWN} somefile ... ${CHOWN} anotherfile -Warren Block * Rapid City, South Dakota USA The problem in this case is that it is not a shell script I own or maintain - it is the shell script provided with 'nessus' to update its plugins. I could certainly modify the script, but then I'd have to remember to do this every time I upgraded the program. I prefer "fire and forget" solutions that take care of themselves automatically. Hence my desire to be able to change the default path cron uses in some config file -- -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Trouble Making OpenOffice
I know there have been problems building OO in the past, but I thought this was long in the rearview mirror. I am trying to build OO 2.02rc1 on FBSD 6.1-PRERELEASE. I see this error: ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice.org-2.0/work/OOB680_m1/testtools/source/bridgetest dmake: Error code 1, while making 'build_instsetoo_native' Ideas anyone? -- -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Trouble Making OpenOffice
Pietro Cerutti wrote: On 2/21/06, Tim Daneliuk <[EMAIL PROTECTED]> wrote: I am trying to build OO 2.02rc1 on FBSD 6.1-PRERELEASE. I see this error: ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice.org-2.0/work/OOB680_m1/testtools/source/bridgetest dmake: Error code 1, while making 'build_instsetoo_native' Ideas anyone? Try symlinking the required library: # cd $JAVA_HOME/jre/lib/i386 && ln -s xawt/libmawt.so . ^ This seems not to be present I am going to do a fresh install of the jdk 1.5 release... -- -------- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Trouble Making OpenOffice
Jonathan Chen wrote: On Wed, Feb 22, 2006 at 12:23:17PM -0600, Tim Daneliuk wrote: Pietro Cerutti wrote: On 2/21/06, Tim Daneliuk <[EMAIL PROTECTED]> wrote: I am trying to build OO 2.02rc1 on FBSD 6.1-PRERELEASE. I see this error: ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice.org-2.0/work/OOB680_m1/testtools/source/bridgetest dmake: Error code 1, while making 'build_instsetoo_native' Ideas anyone? Try symlinking the required library: # cd $JAVA_HOME/jre/lib/i386 && ln -s xawt/libmawt.so . ^ This seems not to be present I am going to do a fresh install of the jdk 1.5 release... Last time I heard, the openoffice build requires JDK1.4.2. It doesn't build with JDK 1.5 Ahhh, I was under the impression this was fixed - My Bad - back to 1.4... -- ---- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"