Re: Apparently, csh programming is considered harmful.
Frank Shute wrote: On Sat, Dec 15, 2007 at 06:57:09AM -0500, Gerard Seibert wrote: On December 14, 2007 at 08:03PM Frank Shute wrote: On Fri, Dec 14, 2007 at 06:00:14PM -0500, Gerard Seibert wrote: On December 14, 2007 at 04:10PM Frank Shute wrote: [ snip ] I'm happy with sh as the system shell though; it's light weight: $ ls -l /bin/sh -r-xr-xr-x 1 root wheel 111028 Nov 30 00:10 /bin/sh ~ $ ls -l /bin/sh -r-xr-xr-x 1 root wheel 111788 Oct 5 13:55 /bin/sh* I can understand why the size of sh might be different. Different patch levels. (Built almost 2 months apart). $ ls -l /bin/ksh -r-xr-xr-x 1 root wheel 681584 Oct 6 12:33 /bin/ksh How about giving us all a laugh and posting the results for bash ;) ~ $ ls -l /usr/local/bin/bash -rwxr-xr-x 1 root wheel 643984 Sep 12 15:51 /usr/local/bin/bash* pdksh has put on weight. Used to be ~300k in the 4.* days and bash about 500k IIRC. On my machine bash is bigger than yours (newer version?): ~ $ bash --version bash --version GNU bash, version 3.2.25(0)-release (i386-portbld-freebsd6.2) Copyright (C) 2005 Free Software Foundation, Inc. Same as mine: $ bash --version GNU bash, version 3.2.25(0)-release (i386-portbld-freebsd6.2) Copyright (C) 2005 Free Software Foundation, Inc. I'm not too sure why my bash is different in size. I guess it sucked in slightly different code when built due to our base systems being the 2 months apart. [snip] Such differences can as well happen due to different CPUTYPE settings. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
freebsd 7-BETA4+MS USB Wireless Mouse
Hi All I've just installed Freebsd 7-Beta4 and I cannot get my mouse to work. During the boot I can see that the mouse is detected ums0: Microsoft Microsoft USB Wireless Mouse, class 0/0, rev 2.00/0.13, addr 2 on uhub1 ums0: 5 buttons and a TILT dir. but it doesn't move I tested with moused and I got the following freebsd# moused -f -d -p /dev/ums0 -t auto moused: proto params: f8 80 00 00 8 00 ff moused: port: /dev/ums0 interface: usb type: sysmouse model: generic moused: received char 0x87 moused: received char 0x0 moused: received char 0x1 moused: received char 0x1 moused: received char 0x1 moused: received char 0x0 moused: received char 0x0 moused: received char 0x7f moused: assembled full packet (len 8) 87,0,1,1,1,0,0,7f moused: tv: 1197798434 122191 moused: flags:8000 buttons: obuttons: moused: activity : buttons 0x dx 1 dy -2 dz 0 after that mouse hangs usbdevs output: Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x), VIA(0x), rev 1.00 port 1 addr 2: low speed, power 50 mA, config 1, product 0x00b9(0x00b9), vendor 0x045e(0x045e), rev 0.13 port 2 powered How can I get my mouse to work? Regards Zbyszek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ruby-postgresql driver seems broken?
O. Hartmann wrote: Hello, after installing a fresh copy of FreeBSD 7.0-BETA4 on a new box I also tried installing rubygem-postgres/ruby-dbd_pg (ports/database). But I get this error: === Vulnerability check disabled, database not found = postgres-0.7.1.2006.04.06.gem is not in /usr/ports/databases/rubygem-postgres/distinfo. = Either /usr/ports/databases/rubygem-postgres/distinfo is out of date, or = postgres-0.7.1.2006.04.06.gem is spelled incorrectly. *** Error code 1 Stop in /usr/ports/databases/rubygem-postgres. Is there anything wrong? Regards, Oliver ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Upgrade your ports and try again. Konstantinos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: csh programing book
Zbigniew Komarnicki wrote: Hello! Is there a good programming book for csh as for example for bash (free available) ? For bash is here: http://tldp.org/LDP/abs/html/ Is such book for csh on the net (free available) ? Thank you for any hints. Best regards, Zbigniew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] O'reilly has a book regarding csh tcsh named Using csh tcsh but it's not covering programming and it is not free either http://www.oreilly.com/catalog/tcsh/. For shell programming you should consider using an alternative shell such as bash, zsh and/or ksh, all available on FreeBSD ports collection. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
V3x Phone as modem
Hi everyone, I have a Motorola v3x mobile phone, which I use with my 3G enabled phone provider ( Hutchinson's 3 , in Australia). I was wondering if anyone managed to get this phone to work as a modem. This is what I do and have : - FreeBSD 7 Beta-4, kernel + world from today. Ports up to date. - Custom kernel, ucom built in. Computer is a Thinkpad z60 - The phone is in 'Data connection' mode before I plug it into my computer. The connection to the phone is via USB. - When adding the device, the console shows: ugen1: Motorola Inc. Motorola Phone (RAZRV3x), class 2/0, rev 1.10/0.01, addr 2 on uhub0 $ sudo usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x), rev 1.00 port 1 addr 2: full speed, power 500 mA, config 1, Motorola Phone (RAZRV3x)(0x3002), Motorola Inc.(0x22b8), rev 0.01 port 2 powered - The only differences in /dev when connecting the phone : $ diff dev1 dev2 119a120,123 ugen1 ugen1.11 ugen1.5 ugen1.6 - There is software to make it work with MS-Windows (it installs some drivers), and i've seen references to it being used under linux (with wvdial), though no actual references to the device driver used. thanks in advance! Beto _ {Beto|Norberto|Numard} Meijome Quality is never an accident, it is always the result of intelligent effort. John Ruskin (1819-1900) I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Dependencies. (was: Yikes! FreeBSD samba-3.0.26a_2, 1 is forbidden: Remote Code Execution...)
snip Code re-use is a good thing. Intricate, far-reaching dependencies are not. While package managers attempt to mitigate the underlying issue, using code re-use as an excuse for the fragility of a system design, is unfortunate. I do not pretend to have all of the answers, but I feel that current state of things could be much improved. /snip On 12/15/07, Tino Engel [EMAIL PROTECTED] wrote: snip I think that what you describe as intricate, far-reaching dependencies is determined by adequately designing a complex system in order to keep it modular (in not over-sized modules) and therefore easy-to-maintain. /snip We concern ourselves with the size of a given module in light of reducing system resource usage, (namely storage space and arguably memory usage) but we don't blink at burning 300+ megs on the ports collection... the majority of which consists of build skeletons for packages that are not installed. What happens when the ports collection grows to double it's size? Then double again? Not to worry, we'll be saving disk space on installed modules, by sharing modules between packages. (Thus making them intricately dependent upon one another.) Furthermore, we'll install them all in a single directory by default, such that they exist within the same namespace, presenting the opportunity for name conflicts. While things such as name conflicts should not happen. In the real world, they do. Come to find out, trying to maintain all the little pieces was a royal pain and thus we birthed a toolset in an attempt to solve the problem, both keeping track of dependencies and conflicts. Package managers of every shape and size popped up. While they certainly do mitigate the issue to various degrees, they do not solve the underlying problem. Often they introduce new problems. And this is imho the only effective way to structure a big software project. So between now and eternity it is not possible for anyone to ever come up with a solution that is better? I'd like to hope otherwise. Yes, what we have works...sort of. (Your milage may vary.) Is it better than what we had? Arguably. Could it still be improved? I sincerely hope so. Sorry for the seemingly endless ranting, I'll shut up eventually :p -Modulok- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: missing shared lib...??
Gary Kline schrieb: Can anybody explain what causes xmms to give me this output:: Gtk-WARNING **: Failed to load module libgnomebreakpad.so: Shared object libgnomebreakpad.so not found, required by xmms and then to proceed to work very well? I thought xmms was' window-manager agnostic, yet evidently it's looking for *something* gnome. Anybody? (Ideally, I'd like xmms to be able to play ANYTHING from realauiodio to windoze to mp4 But would be happy to just get rid of this stderr output. tia, gentlemen, gary Maybe you want to try rebuilding xmms using 'make rmconfig' and 'make configure' before, in oreder to ensure no gnome integration is build within. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: devel/boost -- where is tools/build/v2?
Hello, 1. I didn't set NOPORTDOCS in /etc/make.conf, yet there's nothing there besides some html files. 2. /usr/ports/devel/boost-python/work/boost_1_34_1/tools/build/v2/tools for example contains plenty of .jam files that are needed by bjam to run. Those are *not* copied over. A few html files are put in doc/, but not the real stuff (which belongs elsewhere, see 3.). You are right, the bjam scripts are currently not installed. I will prepare a patch and send it to you for testing. 3. Those files are NOT doc files: they are needed by bjam. Their right place should be something like, say, /usr/local/lib/boost/tools/... -- Best regards / Viele Grüße, [EMAIL PROTECTED] Simon Barner[EMAIL PROTECTED] pgpqI7AX52gTl.pgp Description: PGP signature
Re: (postfix) SPAM filter?
Heiko Wundram (Beenic) wrote: Am Donnerstag, 13. Dezember 2007 03:12:53 schrieb Chuck Swiger: Install the following: /usr/ports/mail/postfix-policyd-weight /usr/ports/mail/postgrey Just as an added suggestion: these two (very!) lightweight packages suffice to keep SPAM out of our company pretty much completely. Both are best used to reject mails before they even have to be delivered (in Postfix, this is a sender or recipient restriction, see the websites of the two projects for more details on how to set them up), so as a added bonus, people don't have to scroll through endless lists of mails marked as ***SPAM***. Greylisting only works so-so nowadays. There was a couple of months it was very effective, but that is long gone. Spammers aren't stupid, and they follow the development of anti-spam techniques as much as e-mail admins do. Greylisting is a start, but from my experience it is not nearly enough. Also I believe that rejecting e-mail is a big point of discussion. We had an internet e-mail environment built about 3 years ago, and there the users were terrorized by spam. We had some users getting 30 spam mails a day at least. This setup was running amavis, spamassassin, postfix, postgrey, dcc and razor. Unfortunately, over time the bayes filter got incorrectly trained, and it sometimes rejected valid e-mails. If there's something you DON'T want to happen it's that. And also troubleshooting those kind of things can be quite hard ... We rebuilt the environment from scratch. Right now we are running OpenBSD spamd + OpenBSD Packetfilter. This functions as greylisting / greptrapping in combination with the PF firewall. We made a couple of scripts to trap invalid / forged e-mail addresses that are greylisted. Also we make use of the uatraps / nixspam traplists, and our own generated blacklist generated from spam being sent to the postmaster. We had some problems with blacklisted entries in the past, but we worked around that. It goes further then that, but I will spare you all the details. On the second line we run Postfix / ClamSMTP / Clamd / Spamassassin. We removed Amavis because it was annoying to upgrade and we wanted to get rid of it, as we had problems with it in the past. With SpamAssassin we use sa-update and sa-learn to keep the rules up-to-date and make sure bayes gets properly trained. So we are marking e-mail as spam and no longer block it. Why? Simple ... we no longer want to block false positives. Again, there is more to this, but I will spare you all the details. Right now we have 2500 happy users. Their local helpdesks helped them with getting an Outlook rule in place to automatically move tagged e-mails to a spam folder. Just like their gmail, hotmail or Yahoo account does at home. The environment we have is certainly not the easiest one, but we automated many things, leaving us with practically no work on it. All the updating of rulesets / blacklists / whitelists /whatever goes by itself. Downside of an environment like this is that you will need quite some knowledge of all the components and how they work together. But hey, I got it running at home as well (a bit simpler though) and didn't had a single spam mail in my mailbox the last 4 months. Sure, the ones I do get are getting tagged and moved to my spam folder automatically, which I do with maildrop (though procmail does the job nicely too). All in all it works like a charm. Well a long story, but maybe it is of use for someone else. As always, YMMV. - Jorn I've had a setup with amavisd-new, spamassassin and clamav on another mail server (basically the same thing Chuck described), but for our current usage, these two are efficient enough not to warrant the upgrade to more powerful hardware (which would be required to run SpamAssassin properly). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Yikes! FreeBSD samba-3.0.26a_2, 1 is forbidden: Remote Code Execution...
-Original Message- From: Tino Engel [mailto:[EMAIL PROTECTED] Sent: Sunday, 16 December 2007 4:53 AM To: Remko Lodder Cc: [EMAIL PROTECTED]; W. D.; [EMAIL PROTECTED]; freebsd-questions@freebsd.org Subject: Re: Yikes! FreeBSD samba-3.0.26a_2, 1 is forbidden: Remote Code Execution... Remko Lodder schrieb: On Fri, December 14, 2007 5:37 pm, W. D. wrote: At 09:50 12/12/2007, Remko Lodder wrote: W. D. wrote: Well, it's been 2 days now. When will the code be updated in the FreeBSD ports? The version on the Samba website is 3.0.28. (http://www.Samba.org/) Why is the FreeBSD ports version stuck at 3.0.26a_2,1? I figure you have some spare time to help maintain these issues? As you might be aware we are in the process of having a release cycle and we are investigating which ports need to be upgraded to do this properly without breaking an entire release. THAT takes a little including rebuilding ports. If there are fixes available already on the Samba websites, why can't they be integrated into the ports? They can, we are working on it Just have a little patience I neet to get a fileserver going right away. I would like to use Samba. Perhaps I should just load Windows on it? Ah yes make my day and make it happen, just dont come back whining in case it does not do what you would have expected or something. If you need the thing urgently install it manually and be done with it. It seems to me that leaving a port broken like this is very unprofessional. I would expect more from the folks maintaing FreeBSD. Exactly; please go to the Windows team and install windows on your machine to get more professional support, including paying for everything You tend to forget that we are volunteers and cannot handle it all; if you know better, please step up and work on it else stfu. When is it going to be fixed? Does soon mean this century? This year? When? For you i'll make an exception for 2010... For every other person, we will have this incorporated ASAP. Start Here to Find It Fast!T - http://www.US-Webmasters.com/best-start-page/ $8.77 Domain Names - http://domains.us-webmasters.com/ *rofl* Perfect answer though... Regards, Tino ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] What's the fuss in using the latest Samba? Does using the latest ever possible makes your servers the best in the world? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ruby-postgresql driver seems broken?
Konstantinos Pachnis wrote: O. Hartmann wrote: Hello, after installing a fresh copy of FreeBSD 7.0-BETA4 on a new box I also tried installing rubygem-postgres/ruby-dbd_pg (ports/database). But I get this error: === Vulnerability check disabled, database not found = postgres-0.7.1.2006.04.06.gem is not in /usr/ports/databases/rubygem-postgres/distinfo. = Either /usr/ports/databases/rubygem-postgres/distinfo is out of date, or = postgres-0.7.1.2006.04.06.gem is spelled incorrectly. *** Error code 1 Stop in /usr/ports/databases/rubygem-postgres. Is there anything wrong? Regards, Oliver ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Upgrade your ports and try again. Konstantinos Allright, it works now as expected, thanks. Oliver ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing /var/mail to a symlink
-Original Message- From: Tino Engel [mailto:[EMAIL PROTECTED] Sent: Saturday, December 15, 2007 12:58 PM To: 'V.I.Victor' Cc: freebsd-questions@freebsd.org Subject: Re: Changing /var/mail to a symlink V.I.Victor schrieb: Because of /var size considerations, I'd like to use a symlinked /usr directory for email instead of /var/mail. Based on today's research, I think the following will work. With mail delivery off, I 'su' and: mkdir /usr/var.mail cd /var cp -p mail/* /usr/var.mail/ mv mail mail.bak ln -s /usr/var.mail mail Since 'ls -l /var' shows: drwxrwxrwt 2 root mail 512 Dec 14 14:24 mail I should then: cd /usr chmod 1777 var.mail chown root:mail var.mail No changes are made to the /var/mail symlink. Then, if everything works, I just delete /usr/mail.bak. Does this seem OK? Sorry to bother everyone with what's probably a trivial question, but I *really* want to avoid screwing-up. The machine is remote; accessed via ssh. Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Sounds reasonable to me. I'd just check afterwards if the permissions are like you want them to be, i.e. as they have been before... And you might send one or another testmail to the an account on the system to see if everything works as before, before you delete the mail.mak directory... Rg, Tino Thanks for the reply! I was pretty sure that the symlinking was right, but was not sure how the permissions carried thru -- as you also mentioned. I probably should have asked differently... Also, a suggestion was made off-list that moving /var/mail was better-done via mounting a nullfs. I'm reading up on that now. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
PAM and OpenLDAP: Login requires always existence of SSH pubkey, why?
Hello. I use FreeBSD 7.0-BETA on servral boxes with different architectures (i386/amd64). Users within our network have to autheticate against an OpenLDAP Server via PAM. I have the annoying problem that every user getting autenticated needs a public key and the passphrase set in the ssh public key is the passphrase that authenticates the user - not the passphrase/password set in the OpenLDAP DIT for that specific user! My sshd_config looks quite common to the default sshd_conf offered with the FreeBSD sources, exept three changes: = # Change to yes to enable built-in password authentication. PasswordAuthentication yes #PermitEmptyPasswords no # Change to no to disable PAM authentication ChallengeResponseAuthentication yes # Kerberos options #KerberosAuthentication no #KerberosOrLocalPasswd yes #KerberosTicketCleanup yes #KerberosGetAFSToken no # GSSAPI options #GSSAPIAuthentication yes #GSSAPICleanupCredentials yes # Set this to 'no' to disable PAM authentication, account processing, # and session processing. If this is enabled, PAM authentication will # be allowed through the ChallengeResponseAuthentication and # PasswordAuthentication. Depending on your PAM configuration, # PAM authentication via ChallengeResponseAuthentication may bypass # the setting of PermitRootLogin without-password. # If you just want the PAM account and session checks to run without # PAM authentication, then enable this but set PasswordAuthentication # and ChallengeResponseAuthentication to 'no'. UsePAM yes = Setting PasswordAuthentication no and ChallengeResponseAuthentication no to force PAM doing authetication, accounting and session via LDAP results in the incapability of logging in for any user (error: pubkey/password). In /etc/pam.d/sshd and system I have both in auth and session pam_sshd.so enabled. Without that it doesn't matter what is configured in sshd_conf, users never can login as LDAP would never check passphrase. What is wrong? Why is PAM forcing ssh into doing authentication and accounting and session management by default although I configured PAM to do so? Can anybody help? Thanks in advance, Oliver ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Lost FreeBSD slices (labels?) after NetBSD install -- please help!!
Hello, On Fri, 14 Dec 2007 05:15:16 + Snow Mountains [EMAIL PROTECTED] wrote: People, I have FreeBSD install on 80G disk that looked like this: ad1s1 ~ 2.4G ad1s2 ~23.0G ad1s3 ~19.1G ad1s4 ~38.0G, FreeBSD partition, sliced like this: ^ ^^ (a note: the correct terminology is actually the opposite: these a...e are partitions, real BSD partitions. What is called partition in non-BSD world is a slice here; so: FreeBSD slice, (BSD-)partitioned/labelled like this...) ad1s4a / (507630 1K-blocks) ad1s4b swap ad1s4d /var ad1s4e /tmp ad1s4f /usr [...] However, FreeBSD is now unbootable!!! Then I loaded FreeSBIE (FreeBSD 6.2 live CD), tried 'boot0cfg -B /dev/ad1' (also with '-d 0x80'), but no help! Then I realized that ad1s4 slices are lost. This means: A) from FreeSBIE, there is only /dev/ad1s4, no a,b,d,e,f. If I do this: FreeSBIE# mount /dev/ad1s4 /mnt/ufs.4 this is former / (ad1s4a) and is of its size (~507M). This probably means that you unwillingly changed FreeBSD label of ad1s4 and it's most likely that NetBSD wrote its own instead. However, from the bsdlabel(8) manpage: The various BSDs all use slightly different versions of BSD labels and are not generally compatible. So, NetBSD didn't recognise FreeBSD's labels and understood entire ad1s4 as one partition; however, ad1s4's reality is that it begins with small / (lost ad1s4a) and that is what you see; the rest is just ignored. boot0cfg did nothing because NetBSD obviously deleted ad1s4 FreeBSD's bootstrap code as well. I can't reach other slices! However, it gives me hope that NetBSD's slices are also invisible, although working from within itself: FreeSBIE# mount /dev/ad1s1 /mnt/ufs.1 gives also small NetBSD's / (its wd0a), not /usr etc. The same reason as above. [...] Please help me to recover my FreeBSD system. If I lost my data (ok, I understand they are buried, not erased), please tell me that gently. :-( That's why I think that you haven't lost any data. You must however re-create bsdlabel table on ad1s4. Since you didn't mention that you have a backup of bsdlabel (do you? :-)), you must recover it. There are two small utilities designed for this purpose, dlfind and ffsrescue: http://www.42.org/~sec/resources/disklabel.html http://www.leidinger.net/FreeBSD/ffsrescue.tar.gz but they don't recognise UFS2 beginning marks (only UFS1 ones). However, I tested sysutils/testdisk and it recognised UFS2 labels on my healthy slices perfectly, so there is no reason that it can't help you, since it simply analyses slice contents. This utility is not part of FreeSBIE, but I think that you can just download ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/sysutils/testdisk-6.3.tbz Then untar it in ~freesbie and run the binary. Just do this: ./testdisk /dev/ad1s4 and choose non partitioned in the second menu. Please note that testdisk will not recognise your swap. Then please try to compare results (given in 512k-blocks) to what you remember about partition sizes. If it gives you reasonable proportions, then re-creating a bsdlabel shouldn't be a big problem. So please take these actions and if the aforementioned assumptions are correct and you obtain some useful info, we shall continue. :-) -- Nikola Lečić :: Никола Лечић ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Panic on boot
At 07:32 PM 12/15/2007, jekillen wrote: On Dec 15, 2007, at 5:21 PM, jekillen wrote: Hello; I have had an AMD64 754 system that I have 64 bit SCSI card and two 15k rpm SCSI drives. It has been running fine with FreeBSD v 6.0 for about two years now. I have several things I wanted to change and reconfigure, software wise, and hardware wise. The first was a new case which I got today. I shut down the system, put everything in the new case and booted. It booted without any complaint. I got the V6.2 install cd and put it in. The system froze during boot process after an entry for mpt 0. I turned off the power and tried rebooting into the install cd. This time it made it to sysinstall and went through slice and partitioning and was in the process of installing the base system and it froze again, no error messaged to console. I rebooted and started again. The second time I got all the way through the install process. Now on reboot the system is panicking just after the line mtp0 hidden device members(6) The error is: Fatal Trap 12 (the screen does not persist long enough to transcribe it all.) Three tries, the same thing in the same place in the boot process. I tried it agian and the same thing happened. This time I got more of the error message. 'page fault while in kernel mode' does this mean the scsi drives or card is going bad? (I nope not) the card is LSI Logic 64 bit card (installed in a standard PCI slot but has been working with an inch of the card hanging off the end of the slot. I only have one internal bus available this way, but that is all I need. Thanks in advance for info Jeff K (chewing my fingernails) Jeff, Could be anything causing this from your move such as damaged ram or other component from static or a somewhat flaky power supply in the new case. Have you run diagnostics on the hard drives? Make sure all your power connectors are tight, no damaged cables. It is easy with some SCSI cables to damage the cable or connectors, I know I have done that a few times. If you can, separate the power to the hard drives to separate lines from the power supply rather than daisy chaining a power line with multiple connectors on it. Have you tried other bootable OS's just to see if they crash too? -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Changing /var/mail to a symlink
V.I.Victor schrieb: Also, a suggestion was made off-list that moving /var/mail was better-done via mounting a nullfs. I'm reading up on that now. ndeed, moving the system maildir to another location using a configuration file or similar is obviously the better solution. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Question
Hi all, I need to know how to migrate a HD from my actual Server to another recently made up. This HD has the base operating system and i want to move up it to the other server but surely it'll carry up a kernel panic error :s does Anybody know how to do it? Thanks in advance Gaston Rey Tarjeta de crédito Yahoo! de Banco Supervielle. Solicitá tu nueva Tarjeta de crédito. De tu PC directo a tu casa. Visitá www.tuprimeratarjeta.com.ar Yahoo! Encuentros. Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros http://yahoo.cupidovirtual.com/servlet/NewRegistration ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Question
Hi all, I need to know how to migrate a HD from my actual Server to another recently made up. This HD has the base operating system and i want to move up it to the other server but surely it'll carry up a kernel panic error :s does Anybody know how to do it? Thanks in advance Gaston Rey Tarjeta de crédito Yahoo! de Banco Supervielle. Solicitá tu nueva Tarjeta de crédito. De tu PC directo a tu casa. Visitá www.tuprimeratarjeta.com.ar Tarjeta de crédito Yahoo! de Banco Supervielle. Solicitá tu nueva Tarjeta de crédito. De tu PC directo a tu casa. Visitá www.tuprimeratarjeta.com.ar Tarjeta de crédito Yahoo! de Banco Supervielle. Solicitá tu nueva Tarjeta de crédito. De tu PC directo a tu casa. www.tuprimeratarjeta.com.ar ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question
Gaston Rey [EMAIL PROTECTED] wrote: Hi all, I need to know how to migrate a HD from my actual Server to another recently made up. This HD has the base operating system and i want to move up it to the other server but surely it'll carry up a kernel panic error :s Please wrap your lines at about 72 characters. I've no experience with kernel panics as a result of this. If you run a generic kernel, it's as likely to understand that hardware as an install image is. does Anybody know how to do it? Biggest problem I've hit is when controllers move the drive around on the chain (i.e. ad0 is ad2 on the new hardware). In that case you have to fix the boot loader and /etc/fstab. If you have more difficulty than that, I'd be curious to hear about it, as it'd be news to me. -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
(no subject)
Hello! I want to use freeBSD vary much, but I have a problem with instalation (freeBSD 6.2-RELEASE). It goes very slow (30% after 2 hours). Moreover I don't know exactly which version (platform) I should use. For now I have used i386, but I have the Intel E6600 (64bit) processor on motherboard Asus Deluxe p5b, so I don't know if this version of release is good for this hardware. I'm waiting for a quick respond. Thanks for your help. Best wishes! Kuba Barski ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: (no subject)
scurvy schrieb: Hello! I want to use freeBSD vary much, but I have a problem with instalation (freeBSD 6.2-RELEASE). It goes very slow (30% after 2 hours). Moreover I don't know exactly which version (platform) I should use. For now I have used i386, but I have the Intel E6600 (64bit) processor on motherboard Asus Deluxe p5b, so I don't know if this version of release is good for this hardware. I'm waiting for a quick respond. Thanks for your help. Best wishes! Kuba Barski ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] i386 is fine for you... But 30% after 2 hours sounds strange... Are you installing over a very slow network connection? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: (no subject)
scurvy wrote: Hello! I want to use freeBSD vary much, but I have a problem with instalation (freeBSD 6.2-RELEASE). It goes very slow (30% after 2 hours). Moreover I don't know exactly which version (platform) I should use. For now I have used i386, but I have the Intel E6600 (64bit) processor on motherboard Asus Deluxe p5b, so I don't know if this version of release is good for this hardware. I'm waiting for a quick respond. Thanks for your help. Best wishes! Kuba Barski ___ Response: I am using a similar Core Duo processor with a Intel G33 chipset motherboard and ran into considerable difficulty installing 6.2. The 64-bit BETA of version 7.0 installs without issue. I've yet to test a 32-bit BSD with this particular PC. David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: (postfix) SPAM filter?
On 14:48:35 Dec 15, Jorn Argelo wrote: Greylisting only works so-so nowadays. There was a couple of months it was very effective, but that is long gone. Spammers aren't stupid, and they follow the development of anti-spam techniques as much as e-mail admins do. Greylisting is a start, but from my experience it is not nearly enough. I have heard this said elsewhere too. Also I believe that rejecting e-mail is a big point of discussion. We had an internet e-mail environment built about 3 years ago, and there the users were terrorized by spam. We had some users getting 30 spam mails a day at least. This setup was running amavis, spamassassin, postfix, postgrey, dcc and razor. Unfortunately, over time the bayes filter got incorrectly trained, and it sometimes rejected valid e-mails. If there's something you DON'T want to happen it's that. And also troubleshooting those kind of things can be quite hard ... What about CRM114 and dspam? Have you ever tried statistical filtering instead of heuristics with spamassassin? We rebuilt the environment from scratch. Right now we are running OpenBSD spamd + OpenBSD Packetfilter. This functions as greylisting / greptrapping in combination with the PF firewall. We made a couple of scripts to trap invalid / forged e-mail addresses that are greylisted. Also we make use of the uatraps / nixspam traplists, and our own generated blacklist generated from spam being sent to the postmaster. We had some problems with blacklisted entries in the past, but we worked around that. It goes further then that, but I will spare you all the details. pf(4) has some amazing features that come in handy for spam control. I guess it forms a key component of any spam blocking architecture. And it works in concert with the other OpenBSD niceties you point out like populating the tables with blacklists and whitelists, greytrapping and using the pf(4) anchor mechanism to automate stuff. The probability and state tracking options in pf(4) are pretty interesting too if used creatively. On the second line we run Postfix / ClamSMTP / Clamd / Spamassassin. We removed Amavis because it was annoying to upgrade and we wanted to get rid of it, as we had problems with it in the past. With SpamAssassin we use sa-update and sa-learn to keep the rules up-to-date and make sure bayes gets properly trained. So we are marking e-mail as spam and no longer block it. Why? Simple ... we no longer want to block false positives. Again, there is more to this, but I will spare you all the details. But if you don't update virus signatures wouldn't that cause worms and malware propagation? I know I am digressing but I thought signature updation was critical to malware control... Right now we have 2500 happy users. Their local helpdesks helped them with getting an Outlook rule in place to automatically move tagged e-mails to a spam folder. Just like their gmail, hotmail or Yahoo account does at home. Wow, this is great. I am not surprised to hear this. ;) The environment we have is certainly not the easiest one, but we automated many things, leaving us with practically no work on it. All the updating of rulesets / blacklists / whitelists /whatever goes by itself. Downside of an environment like this is that you will need quite some knowledge of all the components and how they work together. But hey, I got it running at home as well (a bit simpler though) and didn't had a single spam mail in my mailbox the last 4 months. Sure, the ones I do get are getting tagged and moved to my spam folder automatically, which I do with maildrop (though procmail does the job nicely too). All in all it works like a charm. Using the X-foobar headers I suppose? Well a long story, but maybe it is of use for someone else. As always, YMMV. Yes, very enlightening, many thanks. -Girish ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Cannot get Script to Run Via Crontab
I have a perl script that I can execute from the command line as root. It runs fine. When I try to automate it using the root crontab, the script fails. The lines from my script that are causing the problem are: my $scomd = /usr/local/bin/ps2pdf -dPDFSETTINGS=/prepress -dProcessColorModel=/DeviceGray -dAutoRotatePages=/PageByPage -dDownsampleMonoImages=true -dMonoImageDownsampleType=/Average -dMonoImageDownsampleThreshold=1.5 -dMonoImageResolution=600 .$inpath.$cur_ps_files[0]. .$outpath.$pdffilename; ### create the new .pdf file from the .ps file system($scomd) == 0 or return system $scomd failed: $?; The cron message to mail/root ends with: exec: ps2pdf12: not found I am assuming that cron cannot find a path or a config file for ghostscript, but I don't have any idea how to fix this problem. Any help would be appreciated. _ Get the power of Windows + Web with the new Windows Live. http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_122007___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: (postfix) SPAM filter?
Am Samstag, 15. Dezember 2007 14:48:35 schrieb Jorn Argelo: snip Also I believe that rejecting e-mail is a big point of discussion. We had an internet e-mail environment built about 3 years ago, and there the users were terrorized by spam. We had some users getting 30 spam mails a day at least. This setup was running amavis, spamassassin, postfix, postgrey, dcc and razor. Unfortunately, over time the bayes filter got incorrectly trained, and it sometimes rejected valid e-mails. If there's something you DON'T want to happen it's that. And also troubleshooting those kind of things can be quite hard ... Neither of the two packages I recommended are anything close to bayesian filtering, as they don't actually take measure on the content of the mail (which isn't available anyway when the corresponding rules are effective in the Postfix restriction mechanism), but rather on the conditions the mail is received under. This is what makes them (much more) lightweight (than for example a full statistical or bayesian filter) in the first place. I've not had a single false positive which wasn't explained with incorrect or plain invalid mailserver configuration on the sender side so far with these two packages, and the possibility of a false negative in our current environment is something close to 1%, at least according to my mailbox (which gets publicized enough by posting to @freebsd.org addresses). -- Heiko Wundram Product Application Development ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cannot get Script to Run Via Crontab
Hi, On 16/12/2007, David Goodnature [EMAIL PROTECTED] wrote: [...] The cron message to mail/root ends with: exec: ps2pdf12: not found I am assuming that cron cannot find a path or a config file for ghostscript, but I don't have any idea how to fix this problem. Any help would be appreciated. When calling scripts from cron you only have a very minimal PATH, something that is /bin:/usr/bin. You have two options: Create a Path in Script yourself, and make sure that this is really passed over to the Environment your commands are executed in. Another option is to exec commands with their full qualified pathname. In this case you don't have to care wether or not the path is set up properly. HTH Christian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: (postfix) SPAM filter?
--On December 16, 2007 8:13:34 PM +0100 Heiko Wundram (Beenic) [EMAIL PROTECTED] wrote: Neither of the two packages I recommended are anything close to bayesian filtering, as they don't actually take measure on the content of the mail (which isn't available anyway when the corresponding rules are effective in the Postfix restriction mechanism), but rather on the conditions the mail is received under. This is what makes them (much more) lightweight (than for example a full statistical or bayesian filter) in the first place. I've not had a single false positive which wasn't explained with incorrect or plain invalid mailserver configuration on the sender side so far with these two packages, and the possibility of a false negative in our current environment is something close to 1%, at least according to my mailbox (which gets publicized enough by posting to @freebsd.org addresses). I've been using policyd-weight for more than a year now, and I've had exactly one problem with it. It rejected legitimate mail because that particular ISP didn't have a clue about DNS. I tweaked the rules very slightly to cause a score for legitimate mail to fail just below the threshold for rejection, and I've not had a single false positive since. Policyd-weight rejects between 50% and 80% of the incoming mail (it varies by the day) before the mail server ever even processes it. I also use spamassassin, and I have set it up so that borderline mail that's rejected gets copied to a folder (/var/spool/spam) so I can review it. Occasionally I have to recover an email from that folder because it was falsely labeled as spam. Usually it's someone using incredimail or a similar service that loads up an email with all sorts of extra junk. Policyd-weight is the perfect complement to a tool like spamassassin. It gets rid of all the obvious spam (fake MXes, dailup mail servers, servers listed in multiple RBLs, etc.) before spamassassin has to make a decision about it. Paul Schmehl ([EMAIL PROTECTED]) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cannot get Script to Run Via Crontab
Christian Walther wrote: Hi, On 16/12/2007, David Goodnature [EMAIL PROTECTED] wrote: [...] The cron message to mail/root ends with: exec: ps2pdf12: not found I am assuming that cron cannot find a path or a config file for ghostscript, but I don't have any idea how to fix this problem. Any help would be appreciated. When calling scripts from cron you only have a very minimal PATH, something that is /bin:/usr/bin. You have two options: Create a Path in Script yourself, and make sure that this is really passed over to the Environment your commands are executed in. Another option is to exec commands with their full qualified pathname. In this case you don't have to care wether or not the path is set up properly. HTH Christian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] It's also possible to define a PATH variable (and other environment variables too, for that matter) in the crontable. Put them at the top of the file, above the actual table. -- Sincerly, Rolf Nielsen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: (postfix) SPAM filter?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Sten and the rest, We have a need for a relatively painless anti-spam solution that would reduce the amount of incoming spam (via postfix mail router). The problem is that i have little knowledge on what this actually means. Googling reveals a whole universe of interesting ways but what should i pursue? The things that are important to me is: * Once it is setup then it would require no additional maintenance. * Potential spam messages are marked with a special header that can be filtered on user discretion on their local mail client software. Neither performance, scalability, license nor cost is of much importance to me at this point. I have a different approach. I refuse all connections from ip's which reverse DNS points to costumers of providers. This gives a huge reduction of botnets. Below my helo_checks and client_checks. Ofcourse use it for your own risk! Besides this method I also use rbls's, greylisting, clamsmtpd, clamav, procmail and spamassasin ### # helo_checks.pcre ### /^[0-9.]+$/ REJECT Please use your ISP's outgoing mail server - HA /^\|/ REJECT Please use your ISP's outgoing mail server - HB /^[\d\.]+$/ REJECT Please use your ISP's outgoing mail server - HC # H1 adsl,dial,dhcp,cable,retail,dynamic in helo /(adsl|dial|dhcp|cable|retail|dynamic)/i REJECT Please use your ISP's outgoing mail server - H1 # H2 customer,static,kabel in helo /(customer|static|kabel)/i REJECT Please use your ISP's outgoing mail server - H2 # H3 12345 # /\d{5}/ REJECT Please use your ISP's outgoing mail server - H3 # H4 123-123-123 /\d{1,3}-\d{1,3}-\d{1,3}/ REJECT Please use your ISP's outgoing mail server - H4 # H5 123.123.123 # /\d{1,3}\.\d{1,3}\.\d{1,3}/ REJECT Please use your ISP's outgoing mail server - H5 ### # client_checks.pcre ### # C1 adsl,dial,dhcp,cable,retail,dynamic in hostname /(adsl|dial|dhcp|cable|retail|dynamic)/i 554 Please use your ISP's outgoing mail server - C1 # C2 customer,static,kabel in hostname /(customer|static|kabel)/i 554 Please use your ISP's outgoing mail server - C2 # C3 123456 /\d{6}/ 554 Please use your ISP's outgoing mail server - C3 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) - GPGrelay v0.959 iD8DBQFHZYI8Ph5RwW/NzC4RAj1uAJ9saKRz9Q+daCcU7D/plXGRAdXflACfQ3KR DpXkjMrMMITbqdSulZW8aBM= =D4lA -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: csh programing book
Konstantinos Pachnis wrote: Zbigniew Komarnicki wrote: Hello! Is there a good programming book for csh as for example for bash (free available) ? For bash is here: http://tldp.org/LDP/abs/html/ Is such book for csh on the net (free available) ? Thank you for any hints. Best regards, Zbigniew O'reilly has a book regarding csh tcsh named Using csh tcsh but it's not covering programming and it is not free either http://www.oreilly.com/catalog/tcsh/. For shell programming you should consider using an alternative shell such as bash, zsh and/or ksh, all available on FreeBSD ports collection. I've seen lots of csh books, now and then, I have several here, but there are certainly more sh books. There are several bash books now, due to all the Linux programmers, but I have to agree that while bash makes a pretty good programming shell, at least IMO, it makes a poor fit as a friendly user shell. Actually, I like ksh better, if you are really going all out for a programming shell, but if you're really after a scripting language, why restrict yourself to shells? things like Python Ruby knock hell out of both ksh and bash. That's hardly even arguable. Too bad there isn't a good friendly shell-like mode to Python. Ruby would be out there, you couldn't even think about using a OO based tool for a user shell, those things need to be thought out, and that's the antithesis of being a friendly shell. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OS bug in taskq
On Sat, Dec 15, 2007 at 03:58:10PM -0800, Jeremy Chadwick wrote: On Sat, Dec 15, 2007 at 01:03:14PM -0700, Elliot Finley wrote: I have: dumpdev=AUTO in /etc/rc.conf and: ... in the kernel and I'm still unable to obtain a crash dump. Hopefully there is enough info in this email for a hacker to point me in the right direction to debug this. I can't help with the panic itself, but the reason for the inability to obtain a crash dump is mentioned in a thread I started in November: http://lists.freebsd.org/pipermail/freebsd-stable/2007-November/038069.html The explanation of the problem was documented best by Doug Barton in this thread (over at freebsd-rc@): http://lists.freebsd.org/pipermail/freebsd-rc/2007-November/001263.html Open PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=118255 Why does it work *sometimes* then? Or was this particular problem introduced more recently than the 6.2 branch? I have two apparently similarly configured systems running 6.2p8, with identical hardware, identical apps, and identical load, and I have at least attempted to configure them the same way. Both have /var/crash set up and dumpon enabled in rc.conf. Both crashed in the last week. I got a dump on one, which I now need to analyze, but have twice failed to get a dump on the other. (Once this past week, once the previous month.) -- Clifton -- Clifton Royston -- [EMAIL PROTECTED] / [EMAIL PROTECTED] President - I and I Computing * http://www.iandicomputing.com/ Custom programming, network design, systems and network consulting services ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Odd message when loading green_saver
Whenever I load up green_saver to turn off the monitor when the console's inactive, I get a message on the console saying kldload: Unsupported file type. The module still loads and is active, it all works, but there's still that message that makes it seem as though it fails. Does anyone happen to know why or how to get rid of it? As far as I know it's harmless since green_saver does work, but it does seems odd. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Panic on boot
On Dec 16, 2007, at 7:58 AM, Derek Ragona wrote: At 07:32 PM 12/15/2007, jekillen wrote: On Dec 15, 2007, at 5:21 PM, jekillen wrote: Hello; I have had an AMD64 754 system that I have 64 bit SCSI card and two 15k rpm SCSI drives. It has been running fine with FreeBSD v 6.0 for about two years now. I have several things I wanted to change and reconfigure, software wise, and hardware wise. The first was a new case which I got today. I shut down the system, put everything in the new case and booted. It booted without any complaint. I got the V6.2 install cd and put it in. The system froze during boot process after an entry for mpt 0. I turned off the power and tried rebooting into the install cd. This time it made it to sysinstall and went through slice and partitioning and was in the process of installing the base system and it froze again, no error messaged to console. I rebooted and started again. The second time I got all the way through the install process. Now on reboot the system is panicking just after the line mtp0 hidden device members(6) The error is: Fatal Trap 12 (the screen does not persist long enough to transcribe it all.) Three tries, the same thing in the same place in the boot process. I tried it agian and the same thing happened. This time I got more of the error message. 'page fault while in kernel mode' does this mean the scsi drives or card is going bad? (I nope not) the card is LSI Logic 64 bit card (installed in a standard PCI slot but has been working with an inch of the card hanging off the end of the slot. I only have one internal bus available this way, but that is all I need. Thanks in advance for info Jeff K (chewing my fingernails) Jeff, Could be anything causing this from your move such as damaged ram or other component from static or a somewhat flaky power supply in the new case. Have you run diagnostics on the hard drives? Make sure all your power connectors are tight, no damaged cables. It is easy with some SCSI cables to damage the cable or connectors, I know I have done that a few times. If you can, separate the power to the hard drives to separate lines from the power supply rather than daisy chaining a power line with multiple connectors on it. Have you tried other bootable OS's just to see if they crash too? I was on the verge of panic myself because this machine is my primary DNS server. But: What I did was reinstall v6.0 to use as a control test and it installed without problem and runs without a problem. It would appear that this combination of hardware does not work with FreeBSD 6.2. I have another machine with a motherboard with PCI X (64 bit) slots and the same LSI logic board installed with v6.2 and it works fine. I am guessing that 6.2 does not like the 64 bit SCSI card in a 32 bit slot. Both are AMD64 processors but the one with v6.0 is using slot 754 processor on ECS Elite Group mb, and the one with v6.2 is using socket AM2 with ASUS M2N32 ws pro mb; Perhaps a difference in the mtp driver(?) Both are home built. Both have been working without problem (accept for this latest). I do plan on getting another ASUS board like the one I have, but that is a $300+ board and I have to get a new processor and ram for it also. So I have to engineer my budget for it. Thanks for the response; Jeff K ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PAM and OpenLDAP: Login requires always existence of SSH pubkey, why?
Hello: On Dec 16, 2007, at 7:06 AM, O. Hartmann wrote: Hello. I use FreeBSD 7.0-BETA on servral boxes with different architectures (i386/amd64). Users within our network have to autheticate against an OpenLDAP Server via PAM. I have the annoying problem that every user getting autenticated needs a public key and the passphrase set in the ssh public key is the passphrase that authenticates the user - not the passphrase/password set in the OpenLDAP DIT for that specific user! My sshd_config looks quite common to the default sshd_conf offered with the FreeBSD sources, exept three changes: = # Change to yes to enable built-in password authentication. PasswordAuthentication yes #PermitEmptyPasswords no # Change to no to disable PAM authentication ChallengeResponseAuthentication yes # Kerberos options #KerberosAuthentication no #KerberosOrLocalPasswd yes #KerberosTicketCleanup yes #KerberosGetAFSToken no # GSSAPI options #GSSAPIAuthentication yes #GSSAPICleanupCredentials yes # Set this to 'no' to disable PAM authentication, account processing, # and session processing. If this is enabled, PAM authentication will # be allowed through the ChallengeResponseAuthentication and # PasswordAuthentication. Depending on your PAM configuration, # PAM authentication via ChallengeResponseAuthentication may bypass # the setting of PermitRootLogin without-password. # If you just want the PAM account and session checks to run without # PAM authentication, then enable this but set PasswordAuthentication # and ChallengeResponseAuthentication to 'no'. UsePAM yes = Setting PasswordAuthentication no and ChallengeResponseAuthentication no to force PAM doing authetication, accounting and session via LDAP results in the incapability of logging in for any user (error: pubkey/password). In /etc/pam.d/sshd and system I have both in auth and session pam_sshd.so enabled. Without that it doesn't matter what is configured in sshd_conf, users never can login as LDAP would never check passphrase. What is wrong? Why is PAM forcing ssh into doing authentication and accounting and session management by default although I configured PAM to do so? Can anybody help? Are you telling SSH to use pam_ldap in the /etc/pam.d/sshd file? As I understand it, you have told ssh to use PAM, which means it will honor what is in /etc/pam.d/sshd for its authentication. If you want ldap, you'll need the pam_ldap.so library installed and then reference that in the file. We use RADIUS and SAMBA so ours looks like: authrequiredpam_nologin.so no_warn authsufficient pam_radius.so authsufficient /usr/local/lib/pam_winbind.so try_first_pass authsufficient pam_opie.so no_warn no_fake_prompts authrequisite pam_opieaccess.so no_warn allow_local authrequiredpam_unix.so no_warn try_first_pass Regards, Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apparently, csh programming is considered harmful.
On 14/12/07 Giorgos Keramidas said: Tcsh is a fine shell. I'm using it all the time (that's how I found out that a buglet reported by Kris Kennaway a few months ago was indeed a bug which I could reproduce too). I always found csh/tcsh aliases annoying, since there are no shell functions. I also found the shell redirection awkward. It's ok otherwise, but I've since become addicted to bash. Mind you, I'm sure some tcsh users could point out some features that bash doesn't have. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein signature.asc Description: Digital signature
Re: Apparently, csh programming is considered harmful.
On 14/12/07 Giorgos Keramidas said: Do you have any _particular_ parts of the csh-whynot article that you would like to discuss, or this is a free for all flame? :) It's the lack of shell functions that gets me. Once a script reaches a certain size, I just move to Perl, Python, Tcl, Ruby, etc. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein signature.asc Description: Digital signature
Re: pdksh vs. mksh info [was: Re: Apparently, csh programming is considered harmful.]
On Sat, 2007-12-15 at 04:13 +0200, Giorgos Keramidas wrote: On 2007-12-14 21:10, Frank Shute [EMAIL PROTECTED] wrote: I used bash for an interactive shell for about 5 years until I discovered the goodness of pdksh. About half the size, statically linked, not full of bugs and better editing features. Plus it's not GPL. Hi Frank, Now that you mention pdksh, have you tried mksh (in Ports too)? I've installed it and successfully run moderately large ksh scripts (like the webrev(1) utility of OpenSolaris), and it is about an order of magnitude smaller than pdksh here: % [EMAIL PROTECTED]:/usr/local/bin$ ls -ld mksh bash ksh % -rwxr-xr-x 1 root wheel - 684699 Dec 9 19:51 bash % -r-xr-xr-x 1 root wheel - 2390645 Aug 31 17:07 ksh % -r-xr-xr-x 1 root wheel - 236202 Dec 9 18:34 mksh % [EMAIL PROTECTED]:/usr/local/bin$ ldd mksh bash ksh % mksh: % libc.so.7 = /lib/libc.so.7 (0x280ae000) % bash: % libncurses.so.7 = /lib/libncurses.so.7 (0x28101000) % libintl.so.8 = /usr/local/lib/libintl.so.8 (0x28144000) % libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x28156000) % libc.so.7 = /lib/libc.so.7 (0x2824b000) % ldd: ksh: not a dynamic executable % [EMAIL PROTECTED]:/usr/local/bin$ I've maintained a port of OpenBSD's pdksh for some time but I've never committed it. Think of pdksh but still actively maintained. http://people.freebsd.org/~tmclaugh/files/openksh/openksh-4.2.shar [EMAIL PROTECTED] tom]$ ls -al /usr/local/bin/ksh -r-xr-xr-x 1 root wheel 192032 Dec 16 18:22 /usr/local/bin/ksh* tom -- | tmclaugh at sdf.lonestar.org tmclaugh at FreeBSD.org | | FreeBSD http://www.FreeBSD.org | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apparently, csh programming is considered harmful.
Michael P. Soulier wrote: On 14/12/07 Giorgos Keramidas said: Tcsh is a fine shell. I'm using it all the time (that's how I found out that a buglet reported by Kris Kennaway a few months ago was indeed a bug which I could reproduce too). I always found csh/tcsh aliases annoying, since there are no shell functions. I also found the shell redirection awkward. There;s one item that is much more easily done in csh/tcsh than in the sh based ones that's redirecting the stderr along with the stdout. with tcsh, when I do a make, I commonly do a: make | tee makeout which causes both the stdout and stderr files to be redirected to the makeout make listing file. I;'ve never figured out any reasonably simple way to do that in any sh-like shell. Is there any simble way that you know of? It's ok otherwise, but I've since become addicted to bash. Mind you, I'm sure some tcsh users could point out some features that bash doesn't have. Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apparently, csh programming is considered harmful.
On 16/12/07 Chuck Robey said: There;s one item that is much more easily done in csh/tcsh than in the sh based ones that's redirecting the stderr along with the stdout. with tcsh, when I do a make, I commonly do a: make | tee makeout which causes both the stdout and stderr files to be redirected to the makeout make listing file. I;'ve never figured out any reasonably simple way to do that in any sh-like shell. Is there any simble way that you know of? Yup. make 21 | tee makeout Now show me a simple way to redirect them to different files in csh. foo 1stdout.log 2stderr.log Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein signature.asc Description: Digital signature
Re: pdksh vs. mksh info [was: Re: Apparently, csh programming is considered harmful.]
Tom McLaughlin wrote: Now that you mention pdksh, have you tried mksh (in Ports too)? I've installed it and successfully run moderately large ksh scripts (like the webrev(1) utility of OpenSolaris), and it is about an order of magnitude smaller than pdksh here: % [EMAIL PROTECTED]:/usr/local/bin$ ls -ld mksh bash ksh % -rwxr-xr-x 1 root wheel - 684699 Dec 9 19:51 bash % -r-xr-xr-x 1 root wheel - 2390645 Aug 31 17:07 ksh % -r-xr-xr-x 1 root wheel - 236202 Dec 9 18:34 mksh % [EMAIL PROTECTED]:/usr/local/bin$ ldd mksh bash ksh % mksh: % libc.so.7 = /lib/libc.so.7 (0x280ae000) % bash: % libncurses.so.7 = /lib/libncurses.so.7 (0x28101000) % libintl.so.8 = /usr/local/lib/libintl.so.8 (0x28144000) % libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x28156000) % libc.so.7 = /lib/libc.so.7 (0x2824b000) % ldd: ksh: not a dynamic executable % [EMAIL PROTECTED]:/usr/local/bin$ I've maintained a port of OpenBSD's pdksh for some time but I've never committed it. Think of pdksh but still actively maintained. http://people.freebsd.org/~tmclaugh/files/openksh/openksh-4.2.shar [EMAIL PROTECTED] tom]$ ls -al /usr/local/bin/ksh -r-xr-xr-x 1 root wheel 192032 Dec 16 18:22 /usr/local/bin/ksh* If you're familiar with pdksh, are you also familiar with ksh93, which is (I believe) Mr. Korn's own shell? If you are, I would be interessted in your opinion of the two, any comparisons you might give. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question
On Sun, 16 Dec 2007 08:32:04 -0800 (PST) Gaston Rey [EMAIL PROTECTED] wrote: Hi all, I need to know how to migrate a HD from my actual Server to another recently made up. This HD has the base operating system and i want to move up it to the other server but surely it'll carry up a kernel panic error :s does Anybody know how to do it? Hola Gastón, FBsd isn't windows - go ahead and do it - if u can get the new HD and hook it up to the old box, go into single user mode , partition the new disk as you wish, mount each partition at a time and transfer the data. to transfer the data, you can use dump and restore , or tar (with the proper bunch of switches)...I personally use rsync --progress --recursive -x --delete /orig/ /dest but the others should work just fine. don't forget to run the boot0cfg against the new drive's / partition. (or just take the disk as is to the new server, boot from an install CD, go into rescue mode and do it from there, to be 100% sure there is no mixup with the older box...but you shouldn't have to). Bill M's answer is spot on - make sure your current kernel supports all your hardware, and that fstab and bootloader are pointing ,in the new drive (after you've copied all the data), to the right devices in the new machine. Suerte, B _ {Beto|Norberto|Numard} Meijome Produce great people, the rest will follow. Elbert Hubbard I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pdksh vs. mksh info [was: Re: Apparently, csh programming is considered harmful.]
On Sun, 2007-12-16 at 22:26 -0500, Chuck Robey wrote: Tom McLaughlin wrote: Now that you mention pdksh, have you tried mksh (in Ports too)? I've installed it and successfully run moderately large ksh scripts (like the webrev(1) utility of OpenSolaris), and it is about an order of magnitude smaller than pdksh here: % [EMAIL PROTECTED]:/usr/local/bin$ ls -ld mksh bash ksh % -rwxr-xr-x 1 root wheel - 684699 Dec 9 19:51 bash % -r-xr-xr-x 1 root wheel - 2390645 Aug 31 17:07 ksh % -r-xr-xr-x 1 root wheel - 236202 Dec 9 18:34 mksh % [EMAIL PROTECTED]:/usr/local/bin$ ldd mksh bash ksh % mksh: % libc.so.7 = /lib/libc.so.7 (0x280ae000) % bash: % libncurses.so.7 = /lib/libncurses.so.7 (0x28101000) % libintl.so.8 = /usr/local/lib/libintl.so.8 (0x28144000) % libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x28156000) % libc.so.7 = /lib/libc.so.7 (0x2824b000) % ldd: ksh: not a dynamic executable % [EMAIL PROTECTED]:/usr/local/bin$ I've maintained a port of OpenBSD's pdksh for some time but I've never committed it. Think of pdksh but still actively maintained. http://people.freebsd.org/~tmclaugh/files/openksh/openksh-4.2.shar [EMAIL PROTECTED] tom]$ ls -al /usr/local/bin/ksh -r-xr-xr-x 1 root wheel 192032 Dec 16 18:22 /usr/local/bin/ksh* If you're familiar with pdksh, are you also familiar with ksh93, which is (I believe) Mr. Korn's own shell? If you are, I would be interessted in your opinion of the two, any comparisons you might give. I've never used ksh93 so I really can't say. There is a NOTES file included with pdksh which gives a starter. I created this port a few years ago because of some random issue I've long since forgotten with pdksh on my FreeBSD box which didn't happen on my OpenBSD box. tom -- | tmclaugh at sdf.lonestar.org tmclaugh at FreeBSD.org | | FreeBSD http://www.FreeBSD.org | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question
On Monday 17 December 2007 04:27:03 Norberto Meijome wrote: FBsd isn't windows - go ahead and do it - if u can get the new HD and hook it up to the old box, go into single user mode , partition the new disk as you wish, mount each partition at a time and transfer the data. I understood that he wanted to move the drive to the new machine. How would one do that? I think it would just work unless the drive is very unusual. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apparently, csh programming is considered harmful.
Michael P. Soulier wrote: On 16/12/07 Chuck Robey said: There;s one item that is much more easily done in csh/tcsh than in the sh based ones that's redirecting the stderr along with the stdout. with tcsh, when I do a make, I commonly do a: make | tee makeout which causes both the stdout and stderr files to be redirected to the makeout make listing file. I;'ve never figured out any reasonably simple way to do that in any sh-like shell. Is there any simble way that you know of? Yup. make 21 | tee makeout Now show me a simple way to redirect them to different files in csh. foo 1stdout.log 2stderr.log Mike Believe it or not, I was actually trying to get information, not trying to make a point illustrating things. I wasn't aware that you could mix the redirection modes but I just tested this, it does actually work, in both bash and sh. Keen, I'll stow that guy away, because I've been asking that on occaison for years now.. Your question sounded to me like a back-handed way to illustrate something, but I'm not all that deep. I've never run into the need to do that redirect in tcsh, so I don't know how to do it. I'm maybe justr a bit curious where you needed it, but I haven't an answer. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: missing shared lib...??
On Sun, Dec 16, 2007 at 12:42:42PM +0100, Tino Engel wrote: Gary Kline schrieb: Can anybody explain what causes xmms to give me this output:: Gtk-WARNING **: Failed to load module libgnomebreakpad.so: Shared object libgnomebreakpad.so not found, required by xmms and then to proceed to work very well? I thought xmms was' window-manager agnostic, yet evidently it's looking for *something* gnome. Anybody? (Ideally, I'd like xmms to be able to play ANYTHING from realauiodio to windoze to mp4 But would be happy to just get rid of this stderr output. tia, gentlemen, gary Maybe you want to try rebuilding xmms using 'make rmconfig' and 'make configure' before, in oreder to ensure no gnome integration is build within. Or perhaps simply build WITHOUT_SOUND? tao2# k WITHOUT_GNOME=esound Just noticed this one... . -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: csh programing book
On Sun, Dec 16, 2007 at 02:57:12PM -0500, Chuck Robey wrote: Actually, I like ksh better, if you are really going all out for a programming shell, but if you're really after a scripting language, why restrict yourself to shells? things like Python Ruby knock hell out of both ksh and bash. That's hardly even arguable. Too bad there isn't a good friendly shell-like mode to Python. Ruby would be out there, you couldn't even think about using a OO based tool for a user shell, those things need to be thought out, and that's the antithesis of being a friendly shell. Considering I use Ruby's interactive interpreter, irb, all the time -- I don't really agree that you couldn't make a good user shell from Ruby. A couple of tweaks in the way irb works would make for one of the best user shells I'd ever seen. All that's missing is an easier way to execute external programs, as far as I can tell. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Phillip J. Haack: Productivity is not about speed. It's about velocity. You can be fast, but if you're going in the wrong direction, you're not helping anyone. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: missing shared lib...??
Gary Kline schrieb: On Sun, Dec 16, 2007 at 12:42:42PM +0100, Tino Engel wrote: Gary Kline schrieb: Can anybody explain what causes xmms to give me this output:: Gtk-WARNING **: Failed to load module libgnomebreakpad.so: Shared object libgnomebreakpad.so not found, required by xmms and then to proceed to work very well? I thought xmms was' window-manager agnostic, yet evidently it's looking for *something* gnome. Anybody? (Ideally, I'd like xmms to be able to play ANYTHING from realauiodio to windoze to mp4 But would be happy to just get rid of this stderr output. tia, gentlemen, gary Maybe you want to try rebuilding xmms using 'make rmconfig' and 'make configure' before, in oreder to ensure no gnome integration is build within. Or perhaps simply build WITHOUT_SOUND? tao2# k WITHOUT_GNOME=esound Just noticed this one... . So either you want to build with gnome integration or without gnome libs... That just sounds reasonable to me... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apparently, csh programming is considered harmful.
Chuck Robey [EMAIL PROTECTED] writes: As long as folks don't stop me from running whatever I want, I don't care if you use bash, but it really irks me, that most Linux systems are broken in that respect: Most of them break badly in random ways, if you don't run bash as your shell. A friend of mine who worked with debian was once in mood to disinstall BASH. Quite a trip to hell! (The story is 8 years old now.) -- Cheers, Michaël ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
common filesystem for Linux and FreeBSD
I'm planning a reinstall on my laptop from scratch (making sure I have an up-to-date backup first, of course) as soon as there's a 7.0-RELEASE available, in which I will reorganize the filesystem and set up a FreeBSD and Linux dual-boot system. While the bulk of my work will be done on the FreeBSD side of things, some of my work (and, for that matter, some of my play) requires that I keep other OSes around as well. That being the case, there is some data I would like to keep available to both FreeBSD and Linux systems, in stable read/write access with reasonably high access performance for both (fast enough to achieve decent frame rates, for instance). This seems to rule out both ext3 and UFS2. What filesystem(s) meet(s) my needs in this case? The shared filesystems will be nothing but data and configuration files, likely mounted in /usr/home (on FreeBSD) and /home (on whatever Linux distro I settle on -- probably Debian), so concerns about things like bootability and binary compatibility aren't really at issue. A Wine directory will almost certainly need to be shared between the two, however. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Paul Graham: Real ugliness is not harsh-looking syntax, but having to build programs out of the wrong concepts. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Ethernet Card Times out on Transfer of Large Files
Hello Gentlemen: The NVidia Ethernet card, nve0, seems to burp on transfers of large files. After browsing the Web, apparently this is a fairly common problem: http://www.google.com/search?q=nve0+device+timeout+FreeBSD From what I can tell, this seems to be the best, most recent fix: http://www.f.csce.kyushu-u.ac.jp/~shigeaki/software/freebsd-nfe.html Could anyone please point me to some instructions on how to compile, install, and load this driver? When running make install, this error shows up: /usr/share/mk/bsd.kmod.mk, line 12 can't find kernel source tree Thank you so much for any light you can shed on this problem. Start Here to Find It Fast! - http://www.US-Webmasters.com/best-start-page/ $8.77 Domain Names - http://domains.us-webmasters.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pdksh vs. mksh info [was: Re: Apparently, csh programming is considered harmful.]
On Sun, Dec 16, 2007 at 11:34:50PM -0500, Tom McLaughlin wrote: On Sun, 2007-12-16 at 22:26 -0500, Chuck Robey wrote: Tom McLaughlin wrote: Now that you mention pdksh, have you tried mksh (in Ports too)? I've installed it and successfully run moderately large ksh scripts (like the webrev(1) utility of OpenSolaris), and it is about an order of magnitude smaller than pdksh here: % [EMAIL PROTECTED]:/usr/local/bin$ ls -ld mksh bash ksh % -rwxr-xr-x 1 root wheel - 684699 Dec 9 19:51 bash % -r-xr-xr-x 1 root wheel - 2390645 Aug 31 17:07 ksh % -r-xr-xr-x 1 root wheel - 236202 Dec 9 18:34 mksh % [EMAIL PROTECTED]:/usr/local/bin$ ldd mksh bash ksh % mksh: % libc.so.7 = /lib/libc.so.7 (0x280ae000) % bash: % libncurses.so.7 = /lib/libncurses.so.7 (0x28101000) % libintl.so.8 = /usr/local/lib/libintl.so.8 (0x28144000) % libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x28156000) % libc.so.7 = /lib/libc.so.7 (0x2824b000) % ldd: ksh: not a dynamic executable % [EMAIL PROTECTED]:/usr/local/bin$ I've maintained a port of OpenBSD's pdksh for some time but I've never committed it. Think of pdksh but still actively maintained. http://people.freebsd.org/~tmclaugh/files/openksh/openksh-4.2.shar [EMAIL PROTECTED] tom]$ ls -al /usr/local/bin/ksh -r-xr-xr-x 1 root wheel 192032 Dec 16 18:22 /usr/local/bin/ksh* If you're familiar with pdksh, are you also familiar with ksh93, which is (I believe) Mr. Korn's own shell? If you are, I would be interessted in your opinion of the two, any comparisons you might give. I've never used ksh93 so I really can't say. There is a NOTES file included with pdksh which gives a starter. I created this port a few years ago because of some random issue I've long since forgotten with pdksh on my FreeBSD box which didn't happen on my OpenBSD box. tom I never used pdksh, but am using ksh93 for quite a while now and have used bash, too. For some reason i like it better than bash, the vi mode is a bit better somehow, it feels alot sturdier. It doesn't have those special variables like $! and !! i believe, but it has alot of neat features like basic network programming, lots of parameter expansion stuff and is just a very nice shell :) -jurjen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apparently, csh programming is considered harmful.
On 2007-12-16 19:36, Chuck Robey [EMAIL PROTECTED] wrote: Michael P. Soulier wrote: On 14/12/07 Giorgos Keramidas said: Tcsh is a fine shell. I'm using it all the time (that's how I found out that a buglet reported by Kris Kennaway a few months ago was indeed a bug which I could reproduce too). I always found csh/tcsh aliases annoying, since there are no shell functions. I also found the shell redirection awkward. There;s one item that is much more easily done in csh/tcsh than in the sh based ones that's redirecting the stderr along with the stdout. with tcsh, when I do a make, I commonly do a: make | tee makeout which causes both the stdout and stderr files to be redirected to the makeout make listing file. I;'ve never figured out any reasonably simple way to do that in any sh-like shell. Is there any simble way that you know of? Yep, there is a simple way in sh too: make 21 | tee makeout ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cannot get Script to Run Via Crontab
On 2007-12-16 19:10, David Goodnature [EMAIL PROTECTED] wrote: I have a perl script that I can execute from the command line as root. It runs fine. When I try to automate it using the root crontab, the script fails. The lines from my script that are causing the problem are: my $scomd = /usr/local/bin/ps2pdf -dPDFSETTINGS=/prepress -dProcessColorModel=/DeviceGray -dAutoRotatePages=/PageByPage -dDownsampleMonoImages=true -dMonoImageDownsampleType=/Average -dMonoImageDownsampleThreshold=1.5 -dMonoImageResolution=600 .$inpath.$cur_ps_files[0]. .$outpath.$pdffilename; ### create the new .pdf file from the .ps file system($scomd) == 0 or return system $scomd failed: $?; The cron message to mail/root ends with: exec: ps2pdf12: not found I am assuming that cron cannot find a path or a config file for ghostscript, but I don't have any idea how to fix this problem. Yes. That's what is happenning. The default PATH of cron jobs doesn't include `/usr/local/bin', but you have lots of options: 1) Add it to the crontab file PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin crontab entries here 2) Modify the default path in your Perl script: $ENV{PATH} = '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin'; my $scomd = join(' ', ('/usr/local/bin/ps2pdf', '-dPDFSETTINGS=/prepress', '-dProcessColorModel=/DeviceGray', '-dAutoRotatePages=/PageByPage', '-dDownsampleMonoImages=true', '-dMonoImageDownsampleType=/Average', '-dMonoImageDownsampleThreshold=1.5', '-dMonoImageResolution=600' $inpath.$cur_ps_files[0], $outpath.$pdffilename)); system($scomd) == 0 or return system $scomd failed: $?; ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]