Re: Upgrading packages
On Wed, 2 Sep 2009 01:32:47 +0200 Polytropon free...@edvax.de wrote: On Tue, 1 Sep 2009 17:15:53 -0500, Chris rac...@makeworld.com wrote: Greetings, Probably a long time discussed question: Updating a system is (or can be) done with freebsd-update. What is the suggested way of upgrading packages (not ports)? There's at least portupgrade with the -P option that forces the use of packages. You can as well use pkg_add to perform an upgrade-like action, but you'll have to take care for more things manually. From sysutils/bsdadminscripts - pkg_upgrade looks like what I am after. From the pkg_upgrade man page... PKG_UPGRADE(1) BSD Reference Manual PKG_UPGRADE(1) NAME pkg_upgrade - upgrade an installed package in-place SYNOPSIS pkg_upgrade [-afqsv] pkgname.cgz DESCRIPTION The pkg_upgrade command is used to upgrade an installed package in-place. If no other version of the package is installed and -a is not given, pkg_upgrade simply calls pkg_add(1). Otherwise, the installed package is deleted and the new version is added, keeping dependencies intact. The following command line options are supported: -a Ignore packages for which no older version is installed (auto). -f Force upgrading the package: Also upgrade if the exact same ver- sion is already installed, useful if you rebuilt a package from source. If a conflicting package other than an older version of the same package is installed, remove it. -q Don't print less important messages (quiet). -s Enable special treatment for shared libraries, see below (shlibs). -v Pass the -v flag to subprocesses for more verbose operation. SHARED LIBRARY SUPPORT pkg_upgrade has a special mode for upgrading shared library packages. Consider the following situation: You have installed a package foo that contains libfoo.so.1.0. Package bar is also installed and contains a binary that depends on this version of libfoo. Now you upgrade the foo package, the new version contains libfoo.so.2.0 instead. The other binary will no longer run. For this reason, systems like Debian split their library packages in two: the library itself and a developer package containing headers and so on. Instead, pkg_upgrade creates a stub package from the installed package. Basically, the installed package is split in two. The old li- braries are kept as a package named stub-pkgname while the rest is delet- ed and replaced by the new version. In the general case, this should work but you may still run into situa- tions where you will need to rebuild dependent packages from source. In any case, you can delete unused stub packages after you have rebuilt dependent packages. SEE ALSO pkg_add(1), pkg_create(1), pkg_delete(1), ports(7) -- Best regards, Chris () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments There's no place like 127.0.0.1 ___ 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: Upgrading packages
On Wed, 02 Sep 2009 09:17:12 +0400 Boris Samorodov b...@ipt.ru wrote: On Tue, 1 Sep 2009 17:15:53 -0500 Chris wrote: Probably a long time discussed question: Updating a system is (or can be) done with freebsd-update. What is the suggested way of upgrading packages (not ports)? The port sysutils/bsdadminscripts has a script pkg_upgrade to upgrade packages. Thanks - although, this seems a moot point if one sticks with RELEASE (until a point release that is I suppose). -- Best regards, Chris () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments There's no place like 127.0.0.1 ___ 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: Problem with cURL and pipes
Never mind, cURL bug. ___ 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: antivirus gateway
On Aug 23, 2009, at 1:47 PM, Yavuz Maşlak wrote: Hello I wish to use freebsd7.2 as an antivirus gateway. is there any document about that? Could you give an advice ? snort_inline with if_bridge provides a bit of this functionality. You drop all incoming off at a socket which you have snort listening on. It's then logged and reinserted if it passes the rules that snort.org provides. You can decide if you want to drop the traffic or not, by default it's just logged. I don't use it to catch viruses so I don't watch how effective it is. For me it's a filtering mechanism to match custom rules. There is a document that can be googled on the net concerning this. It shows most of the config but says you can't use it with if_bridge which you can. I don't have a 7.2 instance but it works well on 7.0. Even with horrendous amounts of traffic it seems to remain reliable. From memory (may be inaccurate), if you want to filter bi-directionally, you have to run two instances on different sockets with two different IPFW rules, one for each interface. I only have experience using this with IPFW. Thanks Bu elektronik posta ve varsa ekleri tamamen gizli ve gönderilen kişiler listesine özeldir. Eğer adınız gönderilen kişiler listesinde yer almıyorsa, lütfen derhal gönderen kişiyi bilgilendiriniz ve içeriğini herhangi başka bir kişiye iletmeyiniz, herhangi bir amaç için kullanmayınız, sayısal ve basılı ortamlar dahil olmak üzere saklamayınız ve kopyalamayınız. This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by reply e-mail and delete all copies of this message and attachments. Thank you. ___ 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
Re: RAID10 setup
2009/8/24 John Nielsen li...@jnielsen.net You're on the right track, additional comments inline. On Saturday 22 August 2009 06:49:06 am Phil Lewis wrote: This question was asked a few weeks ago, but the original poster must have had their questions amswered. As follow-ups offered further assistance given more detail, I wonder if I could be so bold as to provide that detail for my own circumstances. I have six disks: ad4 - 500MB ad5 - 500MB ad6 - 500MB ad7 - 400MB ad8 - 500MB ad10 - 500MB These are SATA drives, with ad8 and ad10 on a PCIe SATA controller. ad7 was my first disk and currently contains FreeBSD7.2-RELEASE. I've been using that to gain some familiarity with FreeBSD, but it need not be preserved (in fact, I'd rather not preserve it!). When I built the machine, I just plugged the 400GB drive in any old slot, so it can move if that makes sense. When I got the new drives I tried to get identical to the 400GB drive, but couldn't. The 400GB drive currently has a single slice using the full drive. Just make sure you have the disk(s) you plan to boot from on a controller that will boot in your machine. If the controllers have different performance characteristics then you probably want to share the wealth of the better one between multiple mirrors. What I'd like to end up with is a three-way stripe across three two-way mirrors, containing as much of the system as possible. This is certainly do-able. If it were me I'd put the whole OS on the spare change partitions and leave the whole stripe for your serious data consumer(s): /home, /data, possibly /usr/local or some or all of /var, etc. Depends on your intended use of the storage naturally. I understand that you can't boot from a stripe, so some part of some disk will have to be outside the stripe. However, as the stripe will also be limited to the smallest disk, I'm going to have 5 x 100 GB bits left over anyway, so I guess /boot can go on one of these..? Absolutely. I'd make a gmirror of two or three of them and put / on it. If you really want to be minimal w/ your use of the extra space then you could do /boot as you propose. If possible, I'd like set this up pre-install. If it has to be done post-install, or is easier to describe how to do post-install, then that's fine. Either will work. Exactly how you do it depends on how much of the base system you want to end up on the stripe. From here on in, this email becomes speculative. All of the examples I've seen for setting up GEOM stripes and mirrors have used the raw disk as the base-level provider. On the other hand, I've seen nothing that says that the bottom level cannot be a slice, rather than a raw disk, and given the way GEOM works, I suspect this is true. Yes, you can use partitions, slices or any other GEOM providers as members of gstripe, gmirror and friends. My current plan, based on this assumption, is as follows: With my current FreeBSD installation, create 2 slices on each 500GB disk, 1 x ~400GB, 1 x ~100GB (the same size as the slice of my 400GB disk, and the rest of the disk). Boot from the FreeBSD 7.2-RELEASE dvd, and enter fixit mode. I'm not sure which would be best, or even if both are feasible for what I want to do. (I was at this point in my researchwhen I found this post!). From here, kldload geom_stripe and kldload geom_mirror. Then, create the three mirrors: gmirror label -v main0 /dev/ad4s1 /dev/ad5s1 gmirror label -v main1 /dev/ad6s1 /dev/ad571 gmirror label -v main2 /dev/ad8s1 /dev/ad10s1 This should give me /mirror/main0|main1|main2, right? Right. Next create the stripe: gstripe label -v -s 131072 raid10 /dev/mirror/main0 /dev/mirror/main1 /dev/mirror/main2 (that's all one line) If I'm right so far, then hopefully I should be able to boot to the install dvd again (or just rerun sysnstall?), and from there I should be able to choose a slice from outside 'raid10' to mount /boot, and use 'raid10' for everything else. Do I need anything else on a non-striped slice? /boot or equivalent is the only thing required to smell like a normal disk (which gmirror is capable of but gstripe isn't). You may want to use some of the space for swap. The virtual memory system should do its own version of stripe or interleave if you feed it multiple swap devices. Maybe I could even create another mirror: gmirror label -v boot /dev/ad4s2 /dev/ad5s2 and use that to mount /boot, leaving me with s2 on ad6,8 and 10 as 3 spare 100GB slices? Or am I just way off track? You seem to be pretty well on track. It seems you've already parsed the gstripe and gmirror man pages. You should probably look at fdisk(8) and bsdlabel(8) as well in case sysinstall doesn't tie up all your loose ends. Additionally you could just reinstall to a plain disk (or use
Problem with cURL and pipes
Hello all, there seems to be something wrong with sending data through pipes. I'm trying to upload files to an FTP server by piping them to cURL: These work: - curl file-to-send ... - cat file-to-send | curl ... These don't: - gzip file-to-send | curl ... - bzip2 file-to-send | curl ... - cat file-to-send | rev | curl ... The compressed input in this case is about 7 MB, but it only sends up to 2 MB of that. Sometimes nothing, more often something in between. This is on 7-STABLE from this morning, but the same problem existed on 7-STABLE from ten months ago (I upgraded to see if that would fix it). This has worked flawlessly for several months, then started failing last week. Any ideas what might be the reason? Thanks for your help, -- Christian Ullrich ___ 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: Continuous backup of critical system files
2009/8/24 Maxim Khitrov mkhit...@gmail.com Hello all, I'm setting up a firewall using FreeBSD 7.2 and thought that it may not be a bad idea to have a continuous backup for important files like pf and dnsmasq configurations. By continuous I mean some script that would be triggered every few minutes from cron to automatically create a backup of any monitored file if it was modified. I also have a full system backup in place that is executed daily (dump/restore to a compact flash card), so the continuous backup would really be for times when someone makes a mistake editing one of the config files and needs to revert it to a previous state. My initial thought was to create a mercurial repository at the file system root and exclude everything except for explicitly added files. I'd then run something like hg commit -m `date` from cron every 10 minutes to record the changes automatically. Can anyone think of a better way to do this (existing port specifically for this purpose)? Obviously, I need a way to track the history of a file and revert to a previous state quickly. The storage of changes should be as size-efficient as possible. - Max ___ 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 I rsync all my system files to a filer running zfs. I have a separate zfs fs for every host and then I snapshot the fs after the rsync. We then keep 35 snapshots for retention as we do daily rsyncs. You might want more of a rolling snapshot policy. Keep on for every 10 mins of the last hour, then drop it to hourly for the next 6 hours, then daily, then weekly etc Works quite well. We have also found it handy for forensics as well, when we have had a fault ___ 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: Continuous backup of critical system files
2009/8/24 chris scott kra...@googlemail.com 2009/8/24 Maxim Khitrov mkhit...@gmail.com Hello all, I'm setting up a firewall using FreeBSD 7.2 and thought that it may not be a bad idea to have a continuous backup for important files like pf and dnsmasq configurations. By continuous I mean some script that would be triggered every few minutes from cron to automatically create a backup of any monitored file if it was modified. I also have a full system backup in place that is executed daily (dump/restore to a compact flash card), so the continuous backup would really be for times when someone makes a mistake editing one of the config files and needs to revert it to a previous state. My initial thought was to create a mercurial repository at the file system root and exclude everything except for explicitly added files. I'd then run something like hg commit -m `date` from cron every 10 minutes to record the changes automatically. Can anyone think of a better way to do this (existing port specifically for this purpose)? Obviously, I need a way to track the history of a file and revert to a previous state quickly. The storage of changes should be as size-efficient as possible. - Max ___ 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 I rsync all my system files to a filer running zfs. I have a separate zfs fs for every host and then I snapshot the fs after the rsync. We then keep 35 snapshots for retention as we do daily rsyncs. You might want more of a rolling snapshot policy. Keep on for every 10 mins of the last hour, then drop it to hourly for the next 6 hours, then daily, then weekly etc Works quite well. We have also found it handy for forensics as well, when we have had a fault i forgot to say it need not be a zfs backend just a fs that you can reliably do snapshots ___ 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
Best kernel ethernet device driver
Hello, I once had a problem in linux sometimes connecting to windows file sharing with CIFS is extremely slow. After too much searching, I discovered the problem was a buggy kernel device driver for some lame ethernet card I bought. Which kernel ethernet device driver works best under FreeBSD? I want to purchase an ethernet card that uses that driver. Thank you, Chris ___ 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: Getting rid of X
John Nielsen wrote: On Wednesday 19 August 2009 12:17:10 Scott Schappell wrote: In a parallel sort of thread to the current desktop thread, when I installed FreeBSD 7.2 since I had plenty of disk space and memory I installed X, however, I don't need it or really want it. How can I pare that out of the system short of doing a complete rebuild? Install and run pkg-cutleaves, and let it loop through as many iterations as it needs. ___ 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 To be safe, after you have deleted leaf ports you can install ports-mgmt/portmanager and run 'portmanager -s' redirected to a file then you will have a list of any missing ports. 'portmanager -u' will reinstall them for you. Of course you can probably do the same with portmaster or portupgrade but I've found portmanager does a pretty good job. ___ 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: fusefs-sshfs
2009/8/17 Roald de Vries r...@roalddevries.nl Dear all, I've installed fusefs-sshfs, and added fusefs_enable=YES to rc.conf. During startup, I see fusefs being started, but when I do: sshfs remote:~ /media/remote, I get fuse: failed to open fuse device: No such file or directory. Any idea why? Thanks in advance. Kind regards, Roald ___ 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 try an explicit path as well rather than ~ ___ 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
Packages available for different FreeBSD versions
Hello, Hello, I have two questions: 1. Is it true that I have the choice to run these versions of FreeBSD: 8.0 CURRENT 7.2 RELEASE 7.2 STABLE 7.2 CURRENT 7.1 RELEASE 7.1 STABLE 7.1 CURRENT 7.0 RELEASE 7.0 STABLE 7.0 CURRENT 6.4 RELEASE 6.4 STABLE 6.4 CURRENT 2. For each of the versions above, what version of GCC and VirtualBox is available? I don't intend for this questions to directly be answered -- I'm hoping for a site that lists the versions of all packages available for a particular version of FreeBSD like this page for gentoo: http://packages.gentoo.org/package/www-client/mozilla-firefox Thank you, Chris ___ 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: Packages available for different FreeBSD versions
Andrew Gould wrote: Once you're installed a RELEASE, you can update it to STABLE by Andrew, Thank you for your helpful reply. Please tell me if you think I have the correct understanding: When I install FreeBSD, I am installing a core operating system version number (your term). Then I may choose to install the ports as either STABLE or CURRENT neither of which is associated with any core operating system version number. From this point on, all application updates will arrive via ports . A question: Imaging one person installs FreeBSD-6.4 RELEASE and updates to STABLE ports. Another installs FreeBSD-7.2 RELEASE and also updates to STABLE ports. Are there any applications that the FreeBSD-6.4 person cannot install (e.g. the latest apache or VirtualBox)? If so, by what mechanism is he prevented? What are the repercussions of never updating the core operating system version number? FYI my experience is with Gentoo which as no core operating system version number. All system updates come from portage (like your ports). ftp://ftp.freebsd.org/pub/FreeBSD/ports/ They are arranged by computer architecture and release number. There are also stable directories for certain releases. Thank you for providing this. It raises two questions: 1. If the STABLE ports tree is not associated with a core operating system version number, why are there two directories for STABLE packages: ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-6-stable/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-7-stable/ 2. What is the difference between these two? ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-7.2-release/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-7-stable/ My guess: The first is the packages that were made available in the 7.2 RELEASE CDs. The second is a directory that is re-created every 5 minutes by updating the ports collection and compiling all the applications in it. Thank you for your help! Chris ___ 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: Packages available for different FreeBSD versions
Chuck, Thank you for your help. I have two questions: Chuck Swiger wrote: Ports are not branched-- there is no STABLE or CURRENT for ports. The same ports tree can be used on 6.x, 7.x, and 8-CURRENT. 1. With what is the STABLE/CURRENT tag associated? a) core operating system version number b) the ports collection c) something else What are the repercussions of never updating the core operating system version number? Well, you'll miss ongoing security updates and improvements to the system. 2. I thought security updates and improvements to the system would arrive via the ports mechanism. What kinds of things are not updated via ports? (My experience is with Gentoo where everything is updated via portage and there is no core operating system version number). Thanks again, Chris ___ 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: Packages available for different FreeBSD versions
Chuck Swiger wrote: If you just want security updates and no other changes, you'd update against RELENG_7_2 instead. Here are you referring only to security updates to the core OS and not applications in ports such as Firefox? In the BSDs, the baseline or core OS is separate from installed ports or packages, and is updated separately from them. What's an example of something that is in the core OS and not in the ports? GCC? the shells? the kernel? Thank you, Chris ___ 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: script to send out a dozen letters?
Gary Kline wrote: if there are tools to do this, please point me at them, but i want to send out a snail and/or email|HTML|whatever to a handful of companies that i hope to find online. I'm guessing the inside address would me something like Company Name Address Company Email Attn Mr. Smith: [my canned letter] i forget if the inside address is before the recipient address--I *think* so. is there a way of having date output the format 15 August, 2009 rather than my usual, 15aug09? I am pretty sure these people are most accustomed to GUI/html mail, so is there a way of invoking evo with html capability? if there are web pointers on this, puleeze clue me in! Here's a script I whipped up a year or two ago that sends out e-mails. You could definitely tweak it to find/replace a LaTeX template and send it directly to the printer (circa the `| sendmail` line). See the included readme (excuse the twiki formatting). While it was written for bash, it may run under /bin/sh (but I make no claims). It's really straightforward. I would die a little inside if it were used to send HTML e-mail, but there's nothing to stop you from writing HTML (by hand) into the template (or saving a message out of your GUI MUA of choice into a flat file and using that as your template). -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley #! /bin/bash if [ -z $1 ] || [ -z $2 ] || [ x$1 == x--help ]; then printf Usage:\n\t${0} data_file template_file [cc1 [cc2 ... ]]\n exit 1 fi data=$1 shift template=$1 shift exec 0${data} read line FIELDS=$(echo $line | tr ';' ' ') while read line ; do column=1 SCRIPT= email= for field_title in $FIELDS ; do datum=$(echo $line | cut '-d;' -f${column}) SCRIPT=${SCRIPT:+${SCRIPT};}s:$field_title:$datum: column=$(($column + 1)) if [ $field_title = EMAIL ] ; then email=$datum fi done printf Mailing %s... $email sed $SCRIPT $template | sendmail $email $@ || { echo Something error happened ; continue; } printf Success!\n done ---+ Overview The =automail= script allows you to send templated e-mails to a list of recipients. This is particularly useful during hiring. ---+ Usage The =automail= script is installed on hal. ---++ The Data File You must prepare a file with the data that will be used to fill in the templates. The first line of this file includes the case-sensitive field names, separated by semi-colons. Each subsequent line is a data record. One e-mail will be sent for each data record in the file. *Example:* verbatim EMAIL;LNAME;FNAME;FOOD ccow...@rescomp.berkeley.edu;Cowart;Chris;Bananas keen...@rescomp.berkeley.edu;Keenan;Parms;Ice Cream jerem...@rescomp.berkeley.edu;Jeremy;Weinstein;Rabbit Food /verbatim Call this file ~/email_data. *Note:* The only column title with special meaning is EMAIL and it *must* appear in the data file. All other columns follow brain-dead substitutions and do not affect the behavior of the automailer. ---++ The Template File Here, you compose your e-mail. Note you must conform to RFC822 (Here's a summary of the relevant points): * You must include the To, From, Cc, and Subject headers. * Headers must be properly formatted (=Name: Contents Can Have Spaces=) * The headers end with a blank line. There must be a blank line before you begin your message. *Example:* verbatim From: The Party Planning Committee p...@rescomp.berkeley.edu To: FNAME LNAME EMAIL Subject: The Potluck Hello FNAME, Please remember to bring FOOD to the potluck. Thanks, The Party Planning Committee /verbatim Call this file ~/email_template. *Note:* * Column titles (see The Data File section) will be substituted with the current record's column contents. The address in the EMAIL column will receive a copy of the message. * Including a Cc or Bcc header in the template will *NOT* affect who receives a copy of the message. *Warning:* The recipient will receive the message AS-IS. __Bcc Headers will not be filtered__. ---++ Sending the Message After you declare the data file and template file (in that order), you may add e-mail addresses to the command line (e.g., hir...@rescomp.berkeley.edu). Note that other than the recipient address, no addresses (Bcc or Cc) are parsed from your message's headers. As such, if you have cc or bcc recipients, you must declare them here. Note also that declaring recipients here does *not* affect the To/From/Cc/Bcc headers in the actual e-mail message. =automail ~/email_data ~/email_template cc_address1 bcc_address2= pgpDcx8BT5o1z.pgp Description: PGP signature
Re: Packages available for different FreeBSD versions
Chuck Swiger wrote: Yes, all of the above. Basically, ports (or packages) install under /usr/local; everything else under /bin, /usr/bin, etc is part of the core OS. Okay, I think I understand now. Applications on a FreeBSD machine are broken into two categories: 1. Applications installed under /bin, /usr/bin, etc 2. Applications installed under /usr/local The first group is called core OS applications. The second is called ports applications. FreeBSD developers think carefully before deciding in which group to place a new application. Update applications in the first group using freebsd-update but first decide whether you want RELEASE, STABLE, or CURRENT. Update applications in the second group using CVS on the ports tree. Sometimes applications in the second group will require an update to the first group with a message like Does not compile on FreeBSD 7.0 Some applications are in both groups and can exist simultaneously, such as GCC. Thank you for your help everyone. I am eager to try FreeBSD -- I had to install it recently and I loved the documentation. Been using Gentoo for many years. Chris ___ 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: filesystem size after newfs
2009/8/11 mojo fms fbsdli...@gmail.com On Mon, Aug 10, 2009 at 3:55 PM, Naeem Afzal naf...@hotmail.com wrote: I created this small partition of 512K bytes on disk, I am noticing about 24% is used up before system can be mounted and used. My assumption was about 4% is supposed to be used if minfree is set to 0. #newfs -U -l -m 0 -n -o space /dev/ad1d /dev/ad1d: 0.5MB (1024 sectors) block size 16384, fragment size 2048 using 1 cylinder groups of 0.50MB, 32 blks, 64 inodes with soft updates super-block backups (for fsck -b #) at: 160 #mount /dev/ad1d /test #df -H /test FilesystemSizeUsed Avail Capacity Mounted on /dev/ad1d 391k2.0k389k1%/test Could someone explain where the 512-391=121K of disk space went to? What is the relation between this used of space and total paritition size or is it some fixed ratio? Thanks Regards Naeem _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009___ freebsd-questions@freebsd.org http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009___%0afreebsd-questi...@freebsd.orgmailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org 5% to root, and the rest i am assuming file system blocks. Try making the 512k partition bigger accounting for those things and you should be able to get it really close to 512k available. -- Who knew ___ 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 why do you want something that small? Could you not use an md device or tmpfs, they would probably be more efficient ___ 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: boot sector f*ed
2009/8/11 Polytropon free...@edvax.de On Tue, 11 Aug 2009 09:34:13 -0400, PJ af.gour...@videotron.ca wrote: I've got another disk about the same size on the machine and I'm wonderiing how could I transfer the whole shebang to it? Maybe an 1:1 copy using dd with a bs=1m would work. Would doing a minimum 7.2 install be enough, followed by copying all the slices to the corresponding slices on the new disk? I'm thinking of mounting the broken drive on the new one and then copying... does that sound about right? No. Does not. :-) The proper way of doing this - or at least ONE of the proper ways - is to use the intended tools for this task. These are dump and restore. First of all, you use a FreeBSD live system (such as FreeSBIE) or the livefs CD of the FreeBSD OS to run the OS. The goal is: Most minimal interaction with the drives. Let's assume ad0 is your source disk and ad1 the target disk. You can use the sysinstall tool to slice and partition the target disk. You can create the same layout as on the source disk. Of course, using tools like bsdlabel and newfs is valid, too. If you're done, things go like this: 1. Check the source. # fsck /dev/ad0s1a /dev/ad0s1e /dev/ad0s1f /dev/ad0s1g /dev/ad0s1h Add -f (and dangerous -y) if intended. 2. You don't mount the source disk. Instead, you first prepare the target disk which you mount. Then you use dump and restore to transfer the data from the unmounted source partition to the mounted target partition. # mount /dev/ad1s1a /mnt # cd /mnt # dump -0 -f - /dev/ad0s1a | restore -r -f - Keep an eye on where you mount it. Maybe the live system you use already employs /mnt for its own purposes. Create /target instead, or anything else you like. 3. After transferting /, continue with /tmp /var /usr and /home. # mount /dev/ad1s1a /mnt # cd /mnt # dump -0 -f - /dev/ad0s1a | restore -r -f - # mount /dev/ad1s1e /mnt/tmp # cd /mnt/tmp # dump -0 -f - /dev/ad0s1e | restore -r -f - # mount /dev/ad1s1f /mnt/var # cd /mnt/var # dump -0 -f - /dev/ad0s1f | restore -r -f - # mount /dev/ad1s1g /mnt/usr # cd /mnt/usr # dump -0 -f - /dev/ad0s1g | restore -r -f - # mount /dev/ad1s1h /mnt/home # cd /mnt/home # dump -0 -f - /dev/ad0s1h | restore -r -f - Of course, triplepluscheck the commands before running them! 4. Unmount the target disks. # cd / # umount /mnt/home # umount /mnt/usr # umount /mnt/var # umount /mnt/tmp # umount /mnt # sync # halt Replace the disks and start using your target. I haven't looked at the broken one yet; I'll have to see what theat 177mg dump was.. Kernel image? -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Dumping is all very well and good. However if you want daily or hourly backups etc it is very costly. Thats why our in house system at work is based around rsync and zfs Basically we rsync the file to the x4500 with ~ 36 TB and then snapshot the backup. You then have incremental forever. On large systems that dont have much % change of content the benefits are huge ___ 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: Looking for fast graphical web browser
On Fri, 7 Aug 2009, Chad Perrin wrote: On Mon, Aug 03, 2009 at 08:27:34AM -0400, Chris Hill wrote: Firefox has not had Ctrl-Q for some time. Try Alt-F followed by Q. I guess that's 2.5 keystrokes, but at least it's keystrokes. What version number would you call some time ago? I just used Ctrl-Q about six hours or so ago. I've used it too, but more like six years ago. I have not kept notes on the version numbers, just one day noticed Ctrl-Q not working anymore after an update. But I would guess it was sometime around the 1.x - 2.x transition. -- Chris Hill ch...@monochrome.org ** [ Busy Expunging | ] ___ 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: a (hopefully) simple newbie zfs query regarding available space
2009/8/9 John . comp.j...@googlemail.com Hello list I followed instructions for ZFS on http://wiki.freebsd.org/ZFSQuickStartGuide, substituting ad6 and ad10 (two new SATA3 1TB disks) for da0 da1 and da2 in the instructions. I was surprised to see only 993GB in /tank/. Is this expected, or is it user error? Also, these disks are completely unformatted. I expected to do a newfs or something similar, and for it to take a bit of time! This is on a running 7.2-STABLE amd64 system. It is only these two disks that I want as ZFS, the rest are UFS2 cheers -- John ___ 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 not a zfs thing is happens with all os and file systems. Basically HD manufacturers quote their capacities in base 10 ie 1 TB = 10 bytes. File systems are calculated in binary therefore the calculation they use is 1024 x 1024 x 1024 = 1099511627776. Slightly more as you can see. Therefore 1 GB is os terms is 1073741824 therefore hd capacity in GB is 1/1073741824 = 931.322575 The extra you see is it due to HD manufactures slightly over capacity the drives ___ 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: a (hopefully) simple newbie zfs query regarding available space
2009/8/9 John . comp.j...@googlemail.com 2009/8/9 chris scott kra...@googlemail.com: not a zfs thing is happens with all os and file systems. Basically HD manufacturers quote their capacities in base 10 ie 1 TB = 10 bytes. File systems are calculated in binary therefore the calculation they use is 1024 x 1024 x 1024 = 1099511627776. Slightly more as you can see. Therefore 1 GB is os terms is 1073741824 therefore hd capacity in GB is 1/1073741824 = 931.322575 The extra you see is it due to HD manufactures slightly over capacity the drives Hi, What I meant was, I was seeing 931MB instead of 1.6TB (2x1TB disks) but this was because I didn't read about zfs properly (they recommend 3 or more disks. In the man page for zpool it says: A raidz group with N disks of size X with P parity disks can hold approximately (N-P)*X bytes [...] The recommended number is between 3 and 9 so, I'll wait till I get an array before implementing zfs. In the meantime, I'm using gconcat. Sorry for the noise. -- John ___ 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 ah did you do a zpool create tank ad0 then zpool attach tank ad1 type thing? if you did you have you have created a mirror to fix do a zpool dettach ad1 then a zpool add ad1 to create a stripe Having said that it not good practice to have no redundancy. You could comprise by putting your important data on a dedicated file system then setting copies to 2 or 3 ___ 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: foot-shot?
Gary Kline wrote: Super! just offhand, can i install PCSD *over* thius FBSd --7.1--? Keep /usr/home and so on? Or is PCBSD a do-it-from-scratch? (I'm pretty much OS agnostic [[so long as it's somethng like UNIX]], but here I know where things live... With ubuntu, diff't story.) Yes you can if your /usr/home is a separate partition (or on a separate slice). I'm back to FreeBSD now but when using PCBSD I create a / and a /usr/home. It works very well, I can do a whole fresh install on / without touching the /usr/home partition. The installer lets you do this (but back up first just in case). Then a bit of fiddling with fstab and users and it is all go. hm, not sure how much flash is used, really. i just avoid as much of it as I can. if i can watch a public broadcasting stream i usually KVM over to my Ubntu box. . Hope the just-works PCBSD just-works here. PCBSD has flash sorted out, you can watch youtube, news website embedded video etc. Actually FreeBSD has flash sorted out as well... I think they have done a very good job, I would say give it a try. Chris ___ 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
Time quantization when reading from serial port
I receive data on the serial port (flags O_NONBLOCK, VMIN=0, VTIME=0, B115200). The time the data shows up is quantized to 5ms. Where does this 5ms quantization comes from? Increasing kern.hz to 1 does not reduce this effect. Thank you, Chris ___ 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: Strange timing when reading from the serial port
Chris Stankevitz wrote: Q: What is the source of the alternating +/- 5ms bias that comes and goes every few seconds? This helps: add these lines to /boot/device.hints and reboot hint.sio.0.flags=0x20 hint.sio.1.flags=0x20 Chris ___ 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
Strange timing when reading from the serial port
Hello, I have a device that sends one byte over the serial line every 10ms. Using c, I wrote an application that opens the serial port and reads bytes in an infinite loop. I disabled all blocking (O_NONBLOCK, VMIN=0, VTIME=0, B115200). My CPU spends ~100% of its time calling read() [which almost always returns 0]. I compute the time each byte shows up using gettimeofday(). By differencing the time of successive samples, I can compute the time it took each byte to arrive. Since the bytes are transmitted at 100Hz, I expect to find that delta_time is 10ms. For several seconds I get good results with delta_time = 10ms with a noise of ~50us Then performance deteriorates and I get 10ms + with a noise of ~50us and a bias that cycles through 0ms, 5ms, 0ms -5ms. Then results go back to good. See a graph of this here (y axis is delta_timeval, x axis is time in sec): http://img218.imageshack.us/img218/4944/plot1t.gif http://img12.imageshack.us/img12/9693/plot2.gif http://img10.imageshack.us/img10/5995/plot3.gif Q: What is the source of the alternating +/- 5ms bias that comes and goes every few seconds? Possible answers: 1. My external device is sending the bytes strangely (I don't believe this, but I can use an oscilliscope to confirm). 2. read() doesn't return within 1ms of the data coming in to the serial port. 3. gettimeofday() does not return a time good to 1ms 4. none of the above Thank you for your help! Chris PS: I am using 7.2-RELEASE ___ 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: ZFS Boot Support from Installer
My zfs only system works fine but it based on 8-beta2 built around 16 May( will be rebuilding soon) The main thing to remember to do it make sure your have zfs_loader_support=yes in your src of make.conf I based my install on this howto http://wiki.freebsd.org/ZFSOnRootWithZFSboot#installFreeBSD If you dont want to go for current in theory if you install the boot blocks and loader from current onto the disk you should be able to boot into 7.2 I havent tested this though On thing I would advise though is don't install the root partition in the root of the zpool I have mine like this system68.1G 74.6G21K /system system/home 59.3G 74.6G 59.3G /home system/local-old 952M 74.6G 952M /system/local-old system/root 4G 77.1G 1.53G legacy system/scripts 20K 74.6G20K /usr/local/scripts system/tmp 31K 4.00G31K /tmp system/usr-local 396M 74.6G 324M /usr/local system/usr-obj1.85G 74.6G 1.65G /usr/obj system/usr-ports 193M 74.6G 185M /usr/ports system/usr-ports/distfiles8.53M 74.6G 8.53M /usr/ports/distfiles system/usr-src 499M 74.6G 303M /usr/src system/var1014M 74.6G 776M /var system/var/log 192M 74.6G 192M /var/log system/var/mysql 46.4M 74.6G 46.4M /var/db/mysql I did it like this as it is more like an opensolaris setup. If i wanted to say run a new os build I could say install it on a new zfs fs called say root_MMDD which would be a clone of the original root. I could then flip flop between these installations by resetinng the bootfs option of the pool ___ 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: Looking for fast graphical web browser
On Fri, 31 Jul 2009, Polytropon wrote: On Fri, 31 Jul 2009 14:56:36 -0600, Chad Perrin per...@apotheon.com wrote: On Fri, Jul 31, 2009 at 10:15:32PM +0200, Polytropon wrote: Firefox even seems to lack a key to quit the program. :-) That's easy. Just press Ctrl+Q and it'll close Firefox immediately. Negative for firefox-2.0.0.12,1 (on my desktop system) - no Ctrl+Q. :-) Firefox has not had Ctrl-Q for some time. Try Alt-F followed by Q. I guess that's 2.5 keystrokes, but at least it's keystrokes. -- Chris Hill ch...@monochrome.org ** [ Busy Expunging | ] ___ 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: Striping a live file system RAID 10 help
2009/7/30 John Nielsen li...@jnielsen.net On Wednesday 29 July 2009 15:54:42 Richard Fairbanks wrote: OK, so this is what I want to do. I have 4 big fast drives that I want to run in RAID 10 (1+0). So, I'll need to mirror two sets of two disks, then stripe those two mirrors. So, how do I do this if I want this striped set of mirrors to be my entire fs? I can create both mirrors and have the entire fs on one of the mirrors (*mirror0*), but then I need to stripe it with the other mirrors (*mirror1*), and trying to create a stripe (*stripe*) from that a set of mirrors in which one of the mirrors contains the live file system does not work, obviously. I was thinking, very generally, of creating the fstab file that I'll need to point to the stripe instead of ad4 for example, rsyncing everything to a disk on a diffferent server, using a live CD to create the stripe, then rsyncing back to the stripe. I don't know if this will work, and haven't even come to a conclusion of the particulars needed. When changing disk configurations on the same server I generally do everything by hand, then use dump+restore (rather than rsync) to move (UFS) filesystems around. (ZFS has zfs send/recv). Of course, if there is a way to create the striped set off mirrors before installation then installing onto that stripe, that'd be perfect. I don't know if that can be done. I'm sure someone has configured a RAID 10 standalone system before. (Oh, I'm using 7.2). I'm just stuck at this point! You need to consider where/how you are going to boot the system. It's straightforward to boot from a gmirror'ed UFS filesystem (the BIOS just uses one disk and thinks everything is normal), but you can't do the same from a stripe. You will either need a separate disk/device for your / or /boot partition or you will need to use slices/partitions on your disks. I frequently have the root filesystem on a small gmirror (partitions on 2 disks) then use the equivalent extra space on the remaining disk(s) for swap. Youi should be able to do this pre-install from the Fixit shell. Boot to the live CD, enter the shell, kldload geom_mirror and geom_stripe, create the mirrors, create the stripe, exit the shell, start the install, and tell sysinstall to use the device node under /dev/stripe for your filesystem. Alternatively you could just do a regular install to one of the disks and do everything post-install. In this case you'd still create two mirrors but one of them would only contain a single disk at first. Then create your stripe, dump/restore your files, update fstab (in both locations if needed), reboot using the stripe, then add the original system disk into its mirror. If you provide more details of how you want your setup to look I can give you a specific walkthrough if needed. JN ___ 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 one thing i find invaluable whan doing fancy disk installs is my bootable use stick with a full bsd installation on it. Much nicer than fixit. Also if the kit is in the data center it means I can ssh into the box rather than having to sit in there I used the howto below to set up the stick http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb-stick-episode-2 ive also used this to do zfs boot zfsboot install http://wiki.freebsd.org/ZFSOnRootWithZFSboot#installFreeBSD If you dont want to do a zfs one and use gstripe on top of gmirror but dont want to partition up all the drives you could of course leave the use stick in permanently, and have the root fs on there. Just make sure fs that take lots of writes dont reside on the stick ie /tmp /var Also when you create your file systems make sure you label them with newfs's -L flag. It can make the devices you need to mount slightly easier to use. Also consider the use of gjournal as it could save you a lot of time with not having to fsck large file systems ___ 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 to number of files seen by ls?
John Almberg wrote: Which is why I'm starting to think that (a) my problem is different or (b) I'm so clueless that there isn't any problem at all, and I'm just not understanding something (most likely scenario!) It looks to me like the thread began assuming that you must be typing `ls *` in order to run into problems. I think we'll have better luck helping you if you tell us exactly what it is you're typing when you observe the problem. -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley pgpRRYgwUaZNY.pgp Description: PGP signature
Re: How to doc available?
2009/7/27 Mikel King mikel.k...@olivent.com: Anyone know of a good tutorial for making a system on a USB key in limited space? I have a project that requires enough of running system with lighttpd and php5 to do some network magick. I would like to keep the thing below 512MB but if that is not feasible then I'll shoot for whatever the smallest I can get away with. Thanks, in advance. Cheers. m I'm going to try to answer your question rather than tell you you're wrong. It's possible, and not difficult. Option 1) I'm pretty sure a default install of FreeBSD covers a little less than 640 MB; have you just tried that? [ch...@amnesiac]/usr% df -h / Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1a421M203M185M52%/ [ch...@amnesiac]/usr% du -hc /boot/xboxkern.0/ 112M/boot/xboxkern.0/ 112Mtotal [ch...@amnesiac]/usr% du -hc bin include lib sbin share games libdata snip 292Mshare/doc snip 428Mtotal [ch...@amnesiac]/usr% So, excluding /usr/share/doc, and /boot/xboxkern.0 (a leftover from when amnesiac was an xbox), my install with no ports etc is ~203-112=91MB for /, 428-292=136MB for /usr, plus /var and /tmp (both minimal if properly managed and trimmed) makes ~250 MB; way less than the 500 MB specified. You could probably even install Apache on that! If I've missed anything glaringly obvious, please correct me someone Option 2) Try http://www.freebsd.org/doc/en/articles/nanobsd/index.html Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: torrents.freebsd.org
2009/6/27 Chris Rees utis...@googlemail.com: 2009/6/27 Peter peterp...@aboutsupport.com: Chris Cowart wrote: Hello, I'm currently trying to setup a bittorrent tracker to distribute files, Hi, Try http://www.freenas.org/ -- it comes with web panel and has Bittorent module along other modules. Peter http://erdgeist.org/arts/software/opentracker/ This software is EASY, and very configurable. The world's largest bittorrent tracker uses it... Chris Sorry to revive an old thread, but I'd like to point out that I've written a port for opentracker, in the works for committing at the moment. Anyone who'd like to help host the tarball with me is welcome :) Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Restarting daemons after portupgrade/portmanager
2009/7/25 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net: On Friday 24 July 2009 14:57:13 Axel wrote: So far, so good. But what about the other daemons that still seem to run after upgrade (Apache, Courier IMAP etc)? Are the new version running fine after the upgrade, or should I set AFTERINSTALL to do a restart of these daemons, to make sure they run the upgraded version? I don't know about Courier, but Apache is generally not affected by on-disk versions of libraries. The CGI programs however, are, since they're started up and shutdown with each request (or in the case of FCGI in X requests) - the Apache workers are spawned from the root process and use that process image. So there is no definite need to shut down Apache and disrupt service. If a running webserver is important to you, I also would not do this automatically. For example, jpeg could be upgraded before Apache and a module for Apache needing it, yet this module is depending on Apache and therefore not recompiled yet. As a result, this module tries to load a non-existing library and Apache restart will fail. -- Mel If you want to restart Apache without killing existing sessions, just use amnesiac# apachectl graceful However, watch out for Mel's point about missing libraries But I would still do that; downtime after forcing a restart is better than downtime at some random point when it discovers the missing libraries Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: OpenVPN Client
2009/7/25 Leonardo M. Ramé martinr...@yahoo.com Hi, I'm trying to connect to an OpenVPN server in my office. To do this, I installed OpenVPN 2.0.6 i386-portbld-freebsd7.2 [SSL] [LZO] from ports, and looking at different tutorials I found it needs a config file in /usr/local/etc/openvpn/openvpn.conf. The problem here, is that our server provides an client.ovpn file containing all the connection params needed by a client, in fact, we connect windows machines just by installing OpenVPN_Installer.exe, it configures a TAP device and a client that reads the client.ovpn file. Now, in my FreeBSD 7.2 i386 machine, I did this: Created the /usr/local/etc/openvpn/openvpn.conf (the port doesn't created it automatically) with this content: remote 200.80.219.194.static.techtelnet.net client proto tcp port 443 dev tun ns-cert-type server auth-user-pass auth-retry interact comp-lzo user nobody group nobody verb 3 ca /usr/local/etc/openvpn/keys/ca.key cert /usr/local/etc/openvpn/keys/cert.key key /usr/local/etc/openvpn/keys/key.key This contents are extracted from client.ovpn, and ca, cert and key files were extracted from the same file. I kldload tun, but when I do ifconfig, it doesn't shows nothing related to tun or tap. Also, when I do openvpn /usr/local/etc/openvpn/openvpn.conf the results are this: Sat Jul 25 11:24:09 2009 OpenVPN 2.0.6 i386-portbld-freebsd7.2 [SSL] [LZO] built on Jul 24 2009 Enter Auth Username:nico Enter Auth Password: Sat Jul 25 11:24:13 2009 WARNING: you are using user/group/chroot without persist-key/persist-tun -- this may cause restarts to fail Sat Jul 25 11:24:13 2009 WARNING: file '/usr/local/etc/openvpn/keys/key.key' is group or others accessible Sat Jul 25 11:24:13 2009 LZO compression initialized Sat Jul 25 11:24:13 2009 Control Channel MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ] Sat Jul 25 11:24:13 2009 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ] Sat Jul 25 11:24:13 2009 Local Options hash (VER=V4): '69109d17' Sat Jul 25 11:24:13 2009 Expected Remote Options hash (VER=V4): 'c0103fa8' Sat Jul 25 11:24:13 2009 NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay Sat Jul 25 11:24:13 2009 Attempting to establish TCP connection with 200.80.219.194:443 Sat Jul 25 11:24:13 2009 TCP connection established with 200.80.219.194:443 Sat Jul 25 11:24:13 2009 TCPv4_CLIENT link local: [undef] Sat Jul 25 11:24:13 2009 TCPv4_CLIENT link remote: 200.80.219.194:443 Sat Jul 25 11:24:13 2009 Connection reset, restarting [0] Sat Jul 25 11:24:13 2009 TCP/UDP: Closing socket Sat Jul 25 11:24:13 2009 SIGUSR1[soft,connection-reset] received, process restarting Sat Jul 25 11:24:13 2009 Restart pause, 5 second(s) In my /etc/rc.conf I have openvpn_if=tun, I don't load the tun nor tap interface at boot, I just want to load it with kldload. uname -a: FreeBSD inspiron.local 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 ifconfig: ndis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:23:4d:64:d6:7a inet 192.168.0.100 netmask 0xff00 broadcast 192.168.0.255 media: IEEE 802.11 Wireless Ethernet autoselect status: associated ssid channel 1 (2412 Mhz 11b) authmode OPEN privacy OFF bmiss 7 scanvalid 60 roaming MANUAL bintval 0 fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 32:4f:c0:e1:55:e1 ch 1 dma -1 fwip0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 lladdr 33.4f.c0.0.26.e1.55.e1.a.2.ff.fe.0.0.0.0 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 Thanks in advance, Leonardo M. Ramé ___ 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 make sure you have the tap kernel module loaded kldload /boot/kernel/if_tap.ko to make sure its there after boot do add if_tap_load=yes to your /boot/loader.conf When used openvpn i also added cloned_interfaces=tun1 to my rc.conf , then reinitialize the network stack by running /etc/netstart I also set the open vpn client to explicitly use tun1 ___ 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: jpeg-7 - rebuild all dependencies - how?
2009/7/24 Daniel Bye danie...@slightlystrange.org On Fri, Jul 24, 2009 at 03:16:54PM +0200, Peter Boosten wrote: Daniel Bye wrote: On Fri, Jul 24, 2009 at 02:03:43PM +0200, Ewald Jenisch wrote: Hi, Updating one of my sytems I followed /usr/ports/UPDATING and did a pkg_delete -r jpeg-6b_7 - only to discover that everything that Au contraire, Blackadder. UPDATING says to run either of portmaster -r jpeg* OR portupgrade -fr graphics/jpeg It says nothing of pkg_delete. Not anymore, no. This is what's in my UPDATING: quote 20090719: AFFECTS: users of graphics/jpeg AUTHOR: din...@freebsd.org jpeg has been updated to 7.0. Quick instructions: pkg_delete -r jpeg-6b_7 Please rebuild all ports that depends on it. /quote I thought it to be the most stupid upgrade strategy ever, but indeed it was there in the beginning. Yes, now that I look at it, it does seem a little brain damaged... I must admit that when I went through the update a few days ago, I automatically used portupgrade - didn't even notice it said pkg_delete... Here's a list of things I've learnt today: * Don't gob off before you have all the facts to hand. * Being a clever bastard has the unfortunate tendency to backfire, leaving one looking like a prat. *facepalm* Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ maybe it would be a good idea for ports to have an event log like yum does on centos. Just a simple log of stuff added, removed, and upgraded. It would be invaluable in this situation as you could see what was removed and it would be fairly easy to recover. It just may take a little time. ___ 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: jpeg-7 - rebuild all dependencies - how?
2009/7/24 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.netmel.flynn%2bfbsd.questi...@mailing.thruhere.net On Friday 24 July 2009 05:52:37 chris scott wrote: maybe it would be a good idea for ports to have an event log like yum does on centos. Just a simple log of stuff added, removed, and upgraded. It would be invaluable in this situation as you could see what was removed and it would be fairly easy to recover. It just may take a little time. Err, this is available through cvs log/cvs diff. -- Mel are you talking about cvs syncing the ports tree? I was refering to make install, make deinstall, pkg_add, pkg_delete etc of packages ___ 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: jpeg-7 - rebuild all dependencies - how?
2009/7/24 RW rwmailli...@googlemail.com On Fri, 24 Jul 2009 08:28:14 -0800 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.netmel.flynn%2bfbsd.questi...@mailing.thruhere.net wrote: On Friday 24 July 2009 05:52:37 chris scott wrote: maybe it would be a good idea for ports to have an event log like yum does on centos. Just a simple log of stuff added, removed, and upgraded. It would be invaluable in this situation as you could see what was removed and it would be fairly easy to recover. It just may take a little time. Err, this is available through cvs log/cvs diff. I believe he's referring to a log of package installs and deletes. What would probably be more useful, is to periodically write out an ordered list of leaf-origins, then you can just diff today's file with an older copy. I used to have a script for it, but it fell-off. I think package-cut-leaves keeps a similar list. ___ 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 yep i was i think portmanager can do stuff with leave ___ 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
backticks in rc.conf
can i use backticks in rc.conf? Basically i want a standard rc.conf and want to bind rsync to a specific ip hence i want this in my rc.conf rsyncd_flags=--config=/etc/rsyncd.conf --address=` ifconfig bce1 | grep inet | awk '{print $2}'` it works fine from the shell, however on reboot the address section doesnt expand, or rather it goes blank eg Jul 20 16:56:37 X root: /etc/rc: DEBUG: run_rc_command: doit: /usr/local/bin/rsync --config=/etc/rsyncd.conf --address= --daemon ___ 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: backticks in rc.conf
2009/7/21 Giorgos Keramidas keram...@ceid.upatras.gr On Tue, 21 Jul 2009 11:29:20 +0200, Polytropon free...@edvax.de wrote: On Tue, 21 Jul 2009 09:46:47 +0100, chris scott kra...@googlemail.com wrote: can i use backticks in rc.conf? Basically, yes. The /etc/rc.conf file is run through sh, it is a shell script that assigns values to variables, but can (ab)use it to execute programs. rsyncd_flags=--config=/etc/rsyncd.conf --address=` ifconfig bce1 | grep inet | awk '{print $2}'` it works fine from the shell, however on reboot the address section doesnt expand, or rather it goes blank You should use the full pathnames leading to ifconfig, grep, and awk. Make sure they are accessible when rc.conf is executed. There's a catch here that may go unnoticed for a while... rc.conf may be sourced by /etc/rc *long* before filesystems are mounted. As a result grep or awk may be not be available and stop rc.conf from loading. It's probably a good idea to: * Add a special rsyncd_bind_address variable that is handled in `/usr/local/etc/rc.d/rsyncd' itself * Permit AUTO as the value of ${rsyncd_bind_address} and do the smart thing there. * Edit `/usr/local/etc/rc.d/rsyncd' to add a dependency for the NETWORKING and FILESYSTEMS special names, so that `rc.d/rsyncd' runs only after networking is up and /usr or other late-mounted filesystems have finished loading. thanks for the advice but I've found a solution (see below). My systems dont generally have a /usr slice as i like to keep all the os in one place, having a slice for /usr/local. /var, /home, and /tmp so the late fs isnt an issue for me. My latest test builds are pure zfs so wont be an issue there either 8) a=`echo $ifconfig_bge0 | /usr/bin/awk '{ for ( i=1 ; i = NF; i++) { if ( $i ~ /[iI][nN][eE][tT]/ ) { sub(/\/.*/,, $(i+1)); print $(i+1) } } }'` rsyncd_flags=--config=/etc/rsyncd.conf --address=$a ___ 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: partition black magic but no data lost phew!
Randi Harper wrote: On Mon, Jul 13, 2009 at 3:56 PM, Chris Whitehouse cwhi...@onetel.comwrote: Hi, This is from memory (brain not ram) and I can't recreate the steps for reasons which will be obvious, so may not be entirely accurate. I have a sata hard disk which is divided into 2 slices. Slice 1 (ad4s1) is about half the disk and had the remains of a standard install with swap, / , /var, /tmp, /usr. Slice 2 (ad4s2) is the remainder and has a single partition for data, ad4s2d. It was all created with sysinstall and doesn't have anything special like dangerously dedicated. The operating system on this machine is on a second hard disk which is what I booted from. I moved all the data from ad4s1f onto ad4s2d so that I could delete partitions from slice 1 and make a single large partition. I then unmounted all ad4* partitions. I may even have rebooted. sysinstall - Configure - Label allowed me to delete ad4s1a but when I tried to delete the other ad4s1* partitions sysinstall told me I had to set kern.geom.debugflags=16 before I could make changes on a running system . I set kern.geom.debugflags but changes I made in sysinstall did not take effect, the partitions persisted, both as /dev/ad4s1* and as entries in sysinstall At some stage sysinstall core dumped and somewhere else ad4s2d got deleted. I managed to recreate it and didn't lose any data. Next I booted from a pen drive and successfully deleted the partitions from slice 1, being very careful not to delete the partition on slice 2, however when I exited from sysinstall ad4s2d was gone. Again I managed to recreate it and didn't lose any data. The bit that puzzles me is that ad4s2d disappeared twice and the second time I am sure I didn't do any explicit steps to delete it. Did I hit a bug in sysinstall or did I do something wrong? I didn't lose any data in the end but I could easily have done (I know - back up - I'm going to go and buy a nice big external hard disk very soon ;) FreeBSD muji 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Mon Nov 24 20:22:16 EST 2008 r...@pcbsdx32-7:/usr/obj/pcbsd-build/cvs/7.0.2-src/sys/PCBSD i386 Everything is sorted now so I am really asking this out of curiousity. Thanks Chris ___ 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 When you booted from the pen drive, was sysinstall running as init? ie: is this the memstick.img from the ftp site or a homebrew disc1.iso-usb image, or did you have freebsd installed to the pen drive? If so, what version? -- randi I'm pretty sure I used these instructions to create the pen drive install. http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb-stick-episode-2 Otherwise it was a standard 7.2-R install. As the pen drive doesn't have an rc.conf I think it must be the submonkey article. uname -a for the pen drive: FreeBSD 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Wed Jul 1 21:15:38 BST 2009 r...@eco.config:/usr/src/sys/i386/compile/GENERIC_NO_SBP i386 uname -a for the bootable hard disk which I gave incorrectly in my first post is FreeBSD eco.config 7.2-RELEASE-p1 FreeBSD 7.2-RELEASE-p1 #0: Sat Jun 20 22:43:47 BST 2009 r...@eco.config:/usr/src/sys/i386/compile/GENERIC_NO_SBP i386 This is from Manolis's XFCE DVD http://freebsd-custom.wikidot.com/downloads-page Chris ___ 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
partition black magic but no data lost phew!
Hi, This is from memory (brain not ram) and I can't recreate the steps for reasons which will be obvious, so may not be entirely accurate. I have a sata hard disk which is divided into 2 slices. Slice 1 (ad4s1) is about half the disk and had the remains of a standard install with swap, / , /var, /tmp, /usr. Slice 2 (ad4s2) is the remainder and has a single partition for data, ad4s2d. It was all created with sysinstall and doesn't have anything special like dangerously dedicated. The operating system on this machine is on a second hard disk which is what I booted from. I moved all the data from ad4s1f onto ad4s2d so that I could delete partitions from slice 1 and make a single large partition. I then unmounted all ad4* partitions. I may even have rebooted. sysinstall - Configure - Label allowed me to delete ad4s1a but when I tried to delete the other ad4s1* partitions sysinstall told me I had to set kern.geom.debugflags=16 before I could make changes on a running system . I set kern.geom.debugflags but changes I made in sysinstall did not take effect, the partitions persisted, both as /dev/ad4s1* and as entries in sysinstall At some stage sysinstall core dumped and somewhere else ad4s2d got deleted. I managed to recreate it and didn't lose any data. Next I booted from a pen drive and successfully deleted the partitions from slice 1, being very careful not to delete the partition on slice 2, however when I exited from sysinstall ad4s2d was gone. Again I managed to recreate it and didn't lose any data. The bit that puzzles me is that ad4s2d disappeared twice and the second time I am sure I didn't do any explicit steps to delete it. Did I hit a bug in sysinstall or did I do something wrong? I didn't lose any data in the end but I could easily have done (I know - back up - I'm going to go and buy a nice big external hard disk very soon ;) FreeBSD muji 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Mon Nov 24 20:22:16 EST 2008 r...@pcbsdx32-7:/usr/obj/pcbsd-build/cvs/7.0.2-src/sys/PCBSD i386 Everything is sorted now so I am really asking this out of curiousity. Thanks Chris ___ 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 for a high school class? (long)
Sorry for the OT-ness of this. I only work with FreeBSD for servers. Have used it as the sole systems for a business since the late 1900s. Twice I've put up X-Windows machines but we never bothered to use them for one reason or another. Now my son's school is short computers for a High School HTML class I'm going to help teach this fall. The official teacher is excited about FreeBSD since we can use old equipment that is donated. There are two issues. We will not get enough FreeBSD systems up to cover all kids in the class. Some will have to use the 10.4/3 OS-X G3s we already have. For the remainder of systems, I've told them I need a minimum 256GB Ram, 500+Mhz, ~10GB hard drive. I will put Apache on both types of boxes so they have a testing platform, hope to put firefox on each so they have a consistent browser. The confusing thing will be Finder and Textedit, versus whatever I use for a window manager on the FreeBSD systems. The two questions are: 1. Taking the specs into account, what is the window manager that will provide the closest match to the Apple desktop for mouse ops, browsing files/directories, and editing text files. I suppose I should add running Firefox (or a reasonable similar browser that will render HTML and execute Javascript identically). I don't mean cosmetically, just enough that there isn't too much needing to teach a window manager. Finder is relatively invisible from a teaching standpoint as is Textedit, Firefox is going to be reasonably standard (this is going to teach HTML standards, not how to use windowed drag and drop page generation products, they will be using a text editor and working with raw HTML, CSS and JavaScript). But what I don't want to be doing is having some learning vi (even though if this were an advanced class, that is precisely what I'd expect ;-)), while others are using textedit. The course is HTML. Mouse button operations should be close, a window that gives a simple file directory and a text editor that doesn't require learning a character command set would be the target. 2. Am I too lean on the specs for the free AMD/Intel boxes we are requesting parents cough up? The district sadly is being forced to go to windows by the state, and now only has these old antique Macs free and has no Intel/AMD boxes. These will all come from parents of the program and leverage the fact that people like to replace perfectly good boxes because of spyware on windows. I personally still have boxes with less than 100GB RAM and sub-500 mhz processors running 6.x (and I think 7.0) but I use those as firewalls, I've never used a window manager so perhaps my view of FreeBSDs efficiency is optimistic. Are the specs too low for *some* X environment? Constraint: I already broached the subject of putting FreeBSD on the G3s using the PowerPC version. Unfortunately, the 6 Apples are used by another class on OS-X. ___ 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 for a high school class? (long)
On Jul 9, 2009, at 8:10 AM, Jerry McAllister wrote: On Thu, Jul 09, 2009 at 07:58:21AM -0700, Chris wrote: - - 2. Am I too lean on the specs for the free AMD/Intel boxes we - are requesting parents cough up? Well, I don't think that you need 256 GB of ram. Probably less than 1 GB, in fact maybe 256 MB will be plenty. 10 GB of hard disk might be a little tight, but if you aren't doing databases and making big permanent sites, but only just small teaching web pages, then you should get by. Doh! All references to RAM in my post should have been MB, not GB. I'm too old to type anymore. jerry ___ 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 for a high school class? (long)
I'm going to top post this because it's not replying to my post. Thanks for the numerous responses on-list and the many others that came off list. I'm going to synopsize what I've received. I'll respond to the questions asked too. I think I'm good to go though and wanted to summarize for the record. XFCE seems to be the consensus with 2 KDE recommendations. One additional suggestion was to use PCBSD or Freesbie. That might make sense but I'm an old dog and have been using the standard FreeBSD for a lot of years. I will fire XFCE up on my test box as soon as I can source upgrade it (I think it's living at 6.2). Disk-wise, the 10GB was questioned. Probably not an issue, I have a few old 40GB drives laying around if a machine comes with less. I was noting a 1999 Compaq came stock with 30GB so it may not be an issue. I adjusted the spec to 20GB. 256MB appears to be acceptable. Only have one computer volunteered thus far at that level, everything is 512 to 2G. Amazing what people have to give up on when running windows ;-). On having apache: It's there to let students see their supplied products work in what looks like the real website for the program they are in. The real site has a superstructure of PERL that handles authentication and calls the many pages they will be providing. The final will be for them to provide real content for given classes in the program and develop each classes webpage. If they have a server running, I can mock the real site without giving them access to the live FreeBSD server (bad idea with a group of mischievous kids!). httpd shouldn't be too much of a drain. vi? Yes it would be great to teach, but a trimester is short and half the kids would be left behind. The head of the program was considering an open-source OS install class for later. That's where vi might come in. Different class, different goals, fewer students will sign up. Installing from ports? Yes, that would be my goal. Just looked on one of my servers and I see XFCE4 in ports so looks good. OSX appearance? Thanks for those suggestions, it's cool that people have developed such but the actual appearance isn't that important. Just same level of application such that class time isn't wasted on differences in platforms. We've already had more systems volunteered than I expected. Ideally, we can forget the Macs altogether. In the last 3 hours, 6 acceptable machines have been volunteered. By fall I imagine we can have 12 and cap registration at that. All on FreeBSD. Thanks very much for all the help. Maybe we'll spawn a new generation of developers ;-). On Jul 9, 2009, at 7:58 AM, Chris wrote: Sorry for the OT-ness of this. I only work with FreeBSD for servers. Have used it as the sole systems for a business since the late 1900s. Twice I've put up X-Windows machines but we never bothered to use them for one reason or another. Now my son's school is short computers for a High School HTML class I'm going to help teach this fall. The official teacher is excited about FreeBSD since we can use old equipment that is donated. There are two issues. We will not get enough FreeBSD systems up to cover all kids in the class. Some will have to use the 10.4/3 OS-X G3s we already have. For the remainder of systems, I've told them I need a minimum 256GB Ram, 500+Mhz, ~10GB hard drive. I will put Apache on both types of boxes so they have a testing platform, hope to put firefox on each so they have a consistent browser. The confusing thing will be Finder and Textedit, versus whatever I use for a window manager on the FreeBSD systems. The two questions are: 1. Taking the specs into account, what is the window manager that will provide the closest match to the Apple desktop for mouse ops, browsing files/directories, and editing text files. I suppose I should add running Firefox (or a reasonable similar browser that will render HTML and execute Javascript identically). I don't mean cosmetically, just enough that there isn't too much needing to teach a window manager. Finder is relatively invisible from a teaching standpoint as is Textedit, Firefox is going to be reasonably standard (this is going to teach HTML standards, not how to use windowed drag and drop page generation products, they will be using a text editor and working with raw HTML, CSS and JavaScript). But what I don't want to be doing is having some learning vi (even though if this were an advanced class, that is precisely what I'd expect ;-)), while others are using textedit. The course is HTML. Mouse button operations should be close, a window that gives a simple file directory and a text editor that doesn't require learning a character command set would be the target. 2. Am I too lean on the specs for the free AMD/Intel boxes we are requesting parents cough up? The district sadly is being forced to go to windows by the state, and now only has these old antique Macs free and has no Intel/AMD boxes. These will all come from parents of the program and leverage
Re: SanDisk FreeBSD 7.2 p1 install
Al Plant wrote: Aloha, I read that the kernel module ndis0 work with wireless devices. Where do I get the original W32 driver.inf for the Broadcom 4310 wireless? Either on a CD/DVD that came with the machine or the Broadcom Wireless LAN Driver here if yours is HP 2133 Mini-Notebook http://h2.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=encc=usprodNameId=3687085prodTypeId=321957prodSeriesId=3687084swLang=8taskId=135swEnvOID=1093#11395 it is a self extracting exe file so you either need to run it on a windows machine or it will work in Wine. This is a useful page if you haven't already found it http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html I created an ndis driver using these instructions, unfortunately it caused a panic so I couldn't use it, YMMV. Chris PS if you have problems extracting the files I can do them and send them off list. ___ 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: SanDisk FreeBSD 7.2 p1 install
Al Plant wrote: Chris Whitehouse wrote: Al Plant wrote: Aloha, I read that the kernel module ndis0 work with wireless devices. Where do I get the original W32 driver.inf for the Broadcom 4310 wireless? Either on a CD/DVD that came with the machine or the Broadcom Wireless LAN Driver here if yours is HP 2133 Mini-Notebook http://h2.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=encc=usprodNameId=3687085prodTypeId=321957prodSeriesId=3687084swLang=8taskId=135swEnvOID=1093#11395 it is a self extracting exe file so you either need to run it on a windows machine or it will work in Wine. This is a useful page if you haven't already found it http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html I created an ndis driver using these instructions, unfortunately it caused a panic so I couldn't use it, YMMV. Chris PS if you have problems extracting the files I can do them and send them off list. Aloha Chris, Thanks for the help. I only have FreeBSD computers here so I havent looked at the CD that came with the Mini. It doesnt say what os it is. It is a HP Mini 1000. In that case you probably want to look for your exact model on this page http://h20180.www2.hp.com/apps/Lookup?h_lang=enh_cc=uscc=ush_page=hpcomlang=enh_client=S-A-R163-1h_pagetype=s-002h_query=HP+Mini+1000submit.x=10submit.y=9 though I checked a few and they all seemed to end up at the same driver so maybe exact model doesn't matter. ndis wants drivers for Windows XP It runs Linux (Ubuntu Debian Hybrid for HP) I am working out of the office today so I will take a look at the suggested links when I get back. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + email: n...@hdk5.net All that's really worth doing is what we do for others.- Lewis Carrol ___ 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 support for 64-bit x86 systems
2009/7/2 Sam Fourman Jr. sfour...@gmail.com: On Wed, Jul 1, 2009 at 7:31 PM, Daniel Underwooddjuatde...@gmail.com wrote: Does FreeBSD currently support 64-bit x86 systems? amd64 supports both amd and intel 64bit CPU's right now the big limitation for me is you can not have a Nvidia binary graphics driver on amd64 progress has been made on this front in the last month. Really? Can I have a link please?? I really want to migrate... Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: run_interrupt_driven_hooks: still waiting... for xpt_config
Chris Whitehouse wrote: Chris Whitehouse wrote: I'm trying to install on a new motherboard ASUS M3N78-EM. While booting from CD I'm getting run_interrupts_driven_hooks: still waiting after 60 seconds for xpt_config This is repeated a few times then installation stops and the machine stops responding. After some trial and error the problem seems to be device sbp in the kernel config file. Comment that out and rebuild kernel and it boots. The blinding obvious workaround is to disbable firewire in the BIOS doh! Then I can boot from CD and install to hard disk, boot from hard disk and build a custom kernel without device sbp, reboot and enable firewire again. I can _even_ kldload sbp I discover. http://www.freebsd.org/cgi/query-pr.cgi?pr=136327 Chris ___ 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: load kernel from different media
Sergio de Almeida Lenzi wrote: Em Qua, 2009-07-01 às 22:40 +0100, Chris Whitehouse escreveu: Yes you can. put your kernel (the one that works) on a DVD/CD assume that your rootfs on the HD is on ad0s1a, /usr is on /dev/ad0s1e with all the /boot directory. than boot from dvd/CD with the HD on the machine too. on the startup, hit 6 (number 6). than type: set vfs.root.mountfrom=ufs:ad0s1a boot -s the machine will boot from the CD (with the kernel on the CD) than will mount the filesystem / (root) using ufs and the device /dev/ad0s1a once boot, you can mount the / rw. mount -o rw /dev/ad0s1a /mnt mount /dev/ad0s1e /usr than. export PATH=/mnt/sbin:/mnt/bin:/usr/sbin:/usr/bin mount -t cd9660 /dev/acd0 /cdrom cd /cdrom tar cf - boot | tar -xpvf - -C /mnt === edit /mnt/fstab to match the /(root) fs . ==fstab= /dev/ad0s1a/ufsrw11 = fastboot the machine will reboot and boot happy on the hd hope it can help ___ 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 Hi sergio thanks for your reply. I've been playing around with bootable pen drives cd's and hard disks with varying degrees of breakage :) however now ive found the workaround for the original problem which is simply to disable firewire in the BIOS. cheers Chris ___ 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
load kernel from different media
Hi all, I cannot boot my motherboard with the default kernel on 7.2-RELEASE (or any other iso's I have tried). It panics if device sbp is in the kernel. So far I've got things working by putting the hard disk in another machine, installed the OS and rebuilt a kernel without sbp, then returned the disk to my computer. That's ok for a one off install but this machine is supposed to be for messing around. Can I load a kernel from some other media? Eg boot from an install CD, interrupt the boot, load a modified kernel from a usb stick or installed hard drive and continue booting from the CD. At the boot prompt I can list disks with lsdev and I can load and unload a kernel from the media I booted from (obviously) but I can't see how to load a kernel from another disk. I checked man 8 loader and man 8 boot but couldn't see what I wanted, hopefully I didn't just miss it. If the answer is in there I would really appreciate a pointer. Thanks Chris ___ 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: how do I append a PR I submitted?
2009/6/30 per...@pluto.rain.com: Jerry McAllister jerr...@msu.edu wrote: See subject It is impolite to expect someone responding to a message to have to go back to the subject line like this. See subject is a very inadequate and somewhat tersely offensive. To each his own, I guess. In the case of a one-liner question which is adequately asked in the Subject, some of us find it a bit annoying to see the same question repeated as the only body line. It certainly does not help those with a text based Email reader that does not show the subject in the included text for a response. I'd expect it to have been reused -- prepended with Re: if it didn't already start that way -- as the Subject: of the reply. Assuming you hit Reply to every question like that Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: my kernel is not build/install
2009/6/26 Kent Stewart kstew...@owt.com: make buildkernel KERNCONF=FREEBSD1 21 | tee /var/log/build/bkernel-`date +%Y%m%d-%H%M`.log It leaves a complete log everytime I build a kernel. Your options would be different and I also use csh. [ch...@amnesiac]~% make buildkernel KERNCONF=FREEBSD1 21 |tee /var/log/build/bkernel-`date +%Y%m%d-%H%M`.log Ambiguous output redirect. [ch...@amnesiac]~% I think you've written that into a script for /bin/sh. I've no idea how to pipe stderr in csh, but 21 is NOT the way to do it! Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Best practices for securing SSH server
2009/6/28 Polytropon free...@edvax.de: On Sat, 27 Jun 2009 21:17:11 -0400, Daniel Underwood djuatde...@gmail.com wrote: Exactly. For example, the server in question is a desktop machine at work. I regularly see transfer rates of 13MB/s. It's at a major university, which is by itself another high-risk factor, precisely because there are so many (often weakly protected) high-speed connections. That's a valid point, and I'd like to add that there is some consideration: Servers are usually protected with proper means. This goes especially for UNIX servers. Desktops, on the other hand, can more easily be taken over (especially non-UNIX machines), so if an attacker got his foot inside a network, it's very useful to him. There are even trading platforms where criminals buy and sell whole networks of compromised PCs. Of course, everything happening inside such networks should be seen as what it is: a threat to security. Just imagine some clever guy uses telnet inside such a network to configure the server... You mean like the default alternative to SSH for Windows boxes? Gotta love their arrogance Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: The question of moving vi to /binHi,
2009/6/28 Mark E Doner nuint...@amplex.net: Erich Dollansky wrote: On 26 June 2009 am 10:02:30 Polytropon wrote: Polytropon From Magdeburg, Germany big brother is watching me. An xterm just came up with this message: The default editor in FreeBSD is vi, which is efficient to use when you have learned it, but somewhat user-unfriendly. To use ee (an easier but less powerful editor) instead, set the environment variable EDITOR to /usr/bin/ee Isn't this the best reasoning why it should stay as it is? Wouldn't it be cool if there was an option you could toss in make.conf, like VI_PREFIX=foo, which defaults to /usr of course? Then people who want to move vi to /bin could rebuild world without worrying about it redoing such a move after every big upgrade, and people who don't want it moved, do nothing. Not that I encourage feature creep or anything. Or: /usr/home/chris amnesiac# ln -s /rescue/vi /bin/vi ### Stop anything meddling with vi! /usr/home/chris amnesiac# chflags -h schg /bin/vi Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: torrents.freebsd.org
2009/6/27 Peter peterp...@aboutsupport.com: Chris Cowart wrote: Hello, I'm currently trying to setup a bittorrent tracker to distribute files, Hi, Try http://www.freenas.org/ -- it comes with web panel and has Bittorent module along other modules. Peter http://erdgeist.org/arts/software/opentracker/ This software is EASY, and very configurable. The world's largest bittorrent tracker uses it... Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: The question of moving vi to /bin
2009/6/25 Gary Gatten ggat...@waddell.com: I like M$ Notepad - is there a version of that for FBSD? Actually the old edit from dos is sweet too I'll humour you... gedit is similar and better than notepad for BSD, but there's nothing like 'edit' (actually a stripped down QBasic) AFAIK. Maybe you should write one! Perhaps the closest thing there is ee. Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: The question of moving vi to /binHi,
2009/6/26 Glen Barber glen.j.bar...@gmail.com: On Fri, Jun 26, 2009 at 12:11 AM, Polytroponfree...@edvax.de wrote: On Fri, 26 Jun 2009 12:03:21 +0800, Erich Dollansky er...@apsara.com.sg wrote: What kind of editor do you need for rescue? Just edit one or two lines in some config file to allow the full system to start again. Rescue does not need an editor programmers are used to edit their source files. I won't say anything different. For the usual maintenance and get the damn thing working again tasks the /rescue editor, especially vi, should be enough. Commands are i, a, and :wq. Don't forget about dd ;) -- Glen Barber Or :wq! for when it _just_ _won't_ _write_! Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Re: Which latex should I install
2009/6/26 Anton Shterenlikht me...@bristol.ac.uk: On Fri, Jun 26, 2009 at 09:32:31AM -0400, Daniel Underwood wrote: Hopefully Polytropon will chime in on this, but I had to install TeXLive for everything to work. Suggestion: try teTeX. If you encounter problems, then install TeXLive. Is there a FBSD port of TeXLive? There is... but not an official one. Romain Tartière made a special form of ports tree, to be integrated with the 'official' tree for TeXLive. It's found at http://code.google.com/p/freebsd-texlive/wiki/Installing I'm supposed to be doing work on it involving porting LyX... but I'm committed to other stuff at the moment too :( Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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
torrents.freebsd.org
Hello, I'm currently trying to setup a bittorrent tracker to distribute files, such as patches, to users when they're stuck behind our captive portal. My experience over the last several weeks is that the software is flaky, the documentation is poor, and no projects are being actively maintained (or at least, projects in the FreeBSD ports tree). I'm getting the feeling that you need to be a member of an elite, invitation-only group that performs heavy customizations every time a tracker is installed. I found net-p2p/bnbt and I thought it was the way to go. I somehow managed to get it setup in the dev environment, load some torrents to be tracked, and away we went. When I tried to reproduce this success in our testing environment, I failed miserably. I can no longer figure out what I did to get bnbt to load the torrents (apparently it was more complicated than just dropping them off in the allowed_dir). I discovered from a ktrace that bnbt is indeed scanning my allowed_dir on startup and periodically after that, but it won't list the torrents in the web interface, and it tells clients requested download is not authorized for use with this tracker. I'm hoping to find somebody who's successfully running bnbt for some pointers. If nothing else, I'd love to get in touch with the operators of torrents.freebsd.org to find out what they're doing. Thanks for any help, -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley pgpL1Mud44fTt.pgp Description: PGP signature
Re: upgrading installed ports: time to do it ?
dan wrote: On Tuesday 23 June 2009 23:21:21 Chris Whitehouse wrote: RW wrote: On Mon, 22 Jun 2009 20:58:41 +0100 Chris Whitehouse cwhi...@onetel.com wrote: I'll probably get flamed for this but since I've been using ports-mgmt/portmanager I've almost forgotten about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it was. I've upgraded ports just by doing 'portmanager -u' over one or two quite major changes and not had any problems that haven't been down to an individual ports. You still need to read UPDATING, portmanager handles some of the issues automatically, but not all. Not trolling but can you give me some examples? Chris ___ 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 Yes. I think there is at least one. Please, consider to correct me if I am wrong. Yesterday, reading the contents of /usr/src/UPDATING in the source tree (using portupdate-scan) I found : [...] 20090608: AFFECTS: users of lang/python* and py-* AUTHOR: m...@freebsd.org The default version of Python has been changed from 2.5.x to 2.6.x. If you have 2.5.x installed, perform an upgrade of lang/python25 to lang/python26 with the following command: [...] Can portmanager know that the default version of a port has been changed and then you need to do the upgrade to the newer major version ? I don't know. I will put testing it on my todo list (which I really do hope to get around to :) Chris And if it can know that... can also portmanager know that [...] Once the installed Python has been updated to 2.6, by using the method above, it is required to run the upgrade-site-packages target in lang/python to assure that site-packages are made available to the new Python version. [...] ? If, otherwise, using portmanager you end up with a newer version of python 2.5 (for example)... are you sure that every upgrade in the future will work flawlessly ? After Reading the UPDATING file a guy will [...] set the PYTHON_DEFAULT_VERSION variable to 'python2.5' without quotes in make.conf, then go to lang/python and perform the following command: [...] will portmanager do the same ? d ___ 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
Re: upgrading installed ports: time to do it ?
RW wrote: On Tue, 23 Jun 2009 22:21:21 +0100 Chris Whitehouse cwhi...@onetel.com wrote: RW wrote: On Mon, 22 Jun 2009 20:58:41 +0100 Chris Whitehouse cwhi...@onetel.com wrote: I'll probably get flamed for this but since I've been using ports-mgmt/portmanager I've almost forgotten about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it was. I've upgraded ports just by doing 'portmanager -u' over one or two quite major changes and not had any problems that haven't been down to an individual ports. You still need to read UPDATING, portmanager handles some of the issues automatically, but not all. Not trolling but can you give me some examples? Many of of the entries aren't solely to do with guiding portmaster/portupgrade through the upgrade, they may also involve migrating configuration or user data, or performing other administrative tasks. Portmanger does cope with most of the portupgrade -o and portupgrade -r entries, although sometime it will need to be run (or rerun) in pristine-mode. just curious, do you know this because you know how they all work or have you tried them. And how does portmaster fit in? Does it use the same 'leaf-nodes first' algorithm as portmanager? However, it doesn't always work correctly when software has been repackaged because this can create temporary unrecorded conflicts which are difficult for any tool to deal with. If you see any instructions to remove packages before upgrading, it's prudent to follow them. Thanks, I'll pay more attention. Maybe I got lucky in the past. Chris ___ 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
Re: The question of moving vi to /bin
2009/6/24 cpghost cpgh...@cordula.ws: On Wed, Jun 24, 2009 at 06:13:49AM -0700, b. f. wrote: On Tuesday 23 June 2009 15:41:48 Manish Jain wrote: About ed first. I might annoy a few people (which would gladden me in this particular case), but ed was just one of Ken Thompson's nightmares which he managed to reproduce in Unix with great precision. By no stretch of imagination would it qualify as an editor, because an editor can meaningfully edit only what it can first show. And ed has never had anything to show. A modern operating system like FreeBSD should really be kicking ed out of the distribution completely : bad ideas don't have to be necessarily perpetuated just for the sake of compliance with the original concept of Unix. If you want to make a case for replacing ed(1), you're going to have to come up with some concrete reasons for doing so, not just make a (long and hyperbolic) statement that you don't like it. Please don't touch/remove ed(1)! * It's still very useful on non-curses/termcap capable terminals like raw serial lines etc. * It's also very useful in batch/script mode, as there are some multi-line text processing problems that you can't tackle with sed(1) alone, and where awk(1) or even perl, python etc.. are overkill. -cpghost. I may be mistaken, but isn't ed required for POSIX compliance? Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Best practices for securing SSH server
2009/6/23 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl: If for some reason you would prefer to use password authentication, I would recommend that you look into automatic brute force detection. There are a number of utilities in ports available for this purpose, including security/sshguard and security/denyhosts. good, but not really important with properly chosen password. You can't do more than maybe 10 attempts/second this way, while cracking 10 character password consisting of just small letters and digits needs 36^10=3656158440062976 possible passwords, and over 11 milion years to check all possibilities, so say 10 years if someone is really lucky and will get it after checking 1% possible password. Of course - you must not look at logs in 10 years and not see this 10 attempts per second. I give this example against common paranoia that exist on that group - mix of real security paranoid persons and pseudo-experts that like to repeat intelligent phrases to show up themselves. Actually - there is no need for extra protection for ssh, but for humans. 99% of crack attempts are done by kevin mitnick methods, not password cracking. You're right about the probability of password breaking, but personally I installed denyhosts just because I got sick of this: Aug 22 00:46:21 amnesiac sshd[63107]: error: PAM: authentication error for illegal user adrian from adsl-76-193-128-193.dsl.scrm01.sbcglobal.net Aug 22 00:46:21 amnesiac sshd[63107]: Failed keyboard-interactive/pam for invalid user adrian from 76.193.128.193 port 2901 ssh2 Aug 22 00:46:23 amnesiac sshd[63110]: error: PAM: authentication error for illegal user agfa from adsl-76-193-128-193.dsl.scrm01.sbcglobal.net Aug 22 00:46:23 amnesiac sshd[63110]: Failed keyboard-interactive/pam for invalid user agfa from 76.193.128.193 port 3165 ssh2 Aug 22 00:46:26 amnesiac sshd[63113]: error: PAM: authentication error for illegal user agneta from adsl-76-193-128-193.dsl.scrm01.sbcglobal.net Aug 22 00:46:26 amnesiac sshd[63113]: Failed keyboard-interactive/pam for invalid user agneta from 76.193.128.193 port 3338 ssh2 Aug 22 00:46:29 amnesiac sshd[63116]: error: PAM: authentication error for illegal user ahren from adsl-76-193-128-193.dsl.scrm01.sbcglobal.net Aug 22 00:46:29 amnesiac sshd[63116]: Failed keyboard-interactive/pam for invalid user ahren from 76.193.128.193 port 3499 ssh2 10,000 lines of this in _every_ security digest I get off my server. No I haven't changed any IP addresses, either. Now I get: Added the following hosts to /etc/hosts.evil: 89.232.63.160 87.117.236.15 Much easier to read... Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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 find -lltdl
2009/6/23 kalin m ka...@el.net: hi all.. this is a bit awkward i'm building php 5.2.10 from source on freebsd 7.0. using: ./configure --with-layout=GNU --with-config-file-scan-dir=/usr/local/etc/php --disable-all --enable-libxml --with-libxml-dir=/usr/local --enable-reflection --program-prefix= --disable-cgi --with-apxs2=/etc/httpd/bin/apxs --with-regex=php --with-zend-vm=CALL --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --with-pcre-regex --with-mysql=/usr/local/mysql --with-curl --enable-ctype --enable-dom --enable-exif --enable-filter --with-gd --with-openssl --enable-json --with-iconv --with-mhash --with-mcrypt the configuration runs fine but the build breaks: .. main/internal_functions.lo -lcrypt -lcrypt -lmysqlclient -lmhash -lmcrypt -lltdl -liconv -lpng -lz -lcurl -lssl -lcrypto -lm -lxml2 -lz -liconv -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm -lcrypt -lcrypt -o libphp5.la /usr/bin/ld: cannot find -lltdl *** Error code 1 Stop in /usr/local/src/php-5.2.10. # locate ltdl /usr/local/share/aclocal/ltdl.m4 /usr/local/share/libtool/libltdl ... the thing is it already build once with the same configuration options. an hour ago. and it is working. but i need to add more stuff to this. if i take off --with-mcrypt it builds fine. i have mcrypt already and i need it. and don't want to reinstall without it any help? thanks... Why aren't you using ports? Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: ~/.ssh directory permissions
2009/6/23 Peter Boosten pe...@boosten.org: On 23 jun 2009, at 16:06, Daniel Underwood djuatde...@gmail.com wrote: Looking at my ~/.ssh directory, I see the following permissions: -rw-r--r-- Which I understand to be equivalent to 644. I read here http://sial.org/howto/openssh/publickey-auth/ that ~/.ssh ought to have permissions 700. Which is preferable, and why? __ 700, you private key(s) go in there. Interesting, I never noticed the 700 permissions on .ssh... [ch...@amnesiac]~% ls -ld .ssh drwx-- 2 chris chris 512 Nov 22 2008 .ssh/ [ch...@amnesiac]~% ls -l .ssh total 18 -rw-r--r-- 1 chris chris 3281 Jan 8 21:21 authorized_keys -rw--- 1 chris chris 1675 Oct 1 2008 id_rsa -rw-r--r-- 1 chris chris 409 Oct 1 2008 id_rsa.pub -rw-r--r-- 1 chris chris 8379 Jun 11 22:01 known_hosts [ch...@amnesiac]~% Although I think it's not a big deal, as long as your id_?sa has permissions 600 like mine, or even 400. Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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't boot 7.2-RELEASE i386 or AMD64 on an Abit KV8 Pro motherboard with Sempron 3100+ CPU
ericr wrote: On Sat, Jun 20, 2009 at 3:10 PM, Kent Stewart kstew...@owt.com wrote: On Saturday 20 June 2009 11:00:45 am ericr wrote: Hi, As the subject says, I can't get the 7.2-RELEASE i386 CD to boot on a system that has: Abit KV8 Pro (K8T800P-8237-6A7L1A1BC-26) motherboard with the most recent BIOS - BIOS release 26 4/20/2007 ( snip Anyone have any suggestions, or should I file a PR? Did you follow the suggestion on the release announcement of using the other CDs and switching before you start the install. Yes. None of the FreeBSD kernels will boot on this system. Doesn't matter if I use the livefs disk, or the install disk, it only gets as far as described above, then hangs. - ericrCan Try leaving it for a few minutes at the hang http://www.freebsd.org/cgi/getmsg.cgi?fetch=1705690+0+/usr/local/www/db/text/2009/freebsd-questions/20090517.freebsd-questions I got mine going by putting the hard disk in another machine, installing fbsd on that and building a kernel with most stuff taken out, after which I could boot my motherboard with that hard disk. Once it was booting I kept putting drivers back into the kernel until I found what was stopping it (device sbp in my case). You can use an external usb caddy and another machine with capability to boot from usb to do the same thing. You might have to modify /etc/fstab. Chris ___ 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
Re: upgrading installed ports: time to do it ?
RW wrote: On Mon, 22 Jun 2009 20:58:41 +0100 Chris Whitehouse cwhi...@onetel.com wrote: I'll probably get flamed for this but since I've been using ports-mgmt/portmanager I've almost forgotten about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it was. I've upgraded ports just by doing 'portmanager -u' over one or two quite major changes and not had any problems that haven't been down to an individual ports. You still need to read UPDATING, portmanager handles some of the issues automatically, but not all. Not trolling but can you give me some examples? Chris ___ 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: upgrading installed ports: time to do it ?
Jerry wrote: On Mon, 22 Jun 2009 20:58:41 +0100 Chris Whitehouse cwhi...@onetel.com wrote: I'll probably get flamed for this but since I've been using ports-mgmt/portmanager I've almost forgotten about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it was. I've upgraded ports just by doing 'portmanager -u' over one or two quite major changes and not had any problems that haven't been down to an individual ports. I've never seen any reasons given for not using portmanager, just it seems to be getting quietly deprecated, which is a shame because it works supremely well. Having said that why not check out http://freebsd-custom.wikidot.com/, the new binary ports upgrade system and save yourself a bunch of compile time. Chris I use it myself, It just works. I would also add -p -l to the command line. that way you have a log created if something does go wrong. It will also fix up any outdated dependencies. I do use logging. In fact I do 'portmanager -s somefile', extract a list of ports to be upgraded and run the list through a loop which does 'make config' for each port, _then_ run 'portmanager -l -u' so it runs completely unattended. It does indeed just works which is down to the way it works out to do leaf ports first and work backwards. portmaster looks like it has some nice features, including doing all the configs first, but I don't know if it does as good a job as portmanager in deciding what order to do things. Chris ___ 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: upgrading installed ports: time to do it ?
Chris Rees wrote: 2009/6/21 danny mesli...@yahoo.fr: Hi list members , I frequently update the contents of the ports tree but I have never upgraded any port. I am studying the way to do it, by following the handbook and an article on The FreeBSD Diary about the use of portupgrade. At the moment I am focuing the attention to the '/usr/ports/UPDATING' file. The question that arose is the following: is there any automated way to check if any of the port to be upgraded has specific upgrading notes written in that file ? Do you prefer doing a mass or selective upgrade ? Thanks ! dan I'll probably get flamed for this but since I've been using ports-mgmt/portmanager I've almost forgotten about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it was. I've upgraded ports just by doing 'portmanager -u' over one or two quite major changes and not had any problems that haven't been down to an individual ports. I've never seen any reasons given for not using portmanager, just it seems to be getting quietly deprecated, which is a shame because it works supremely well. Having said that why not check out http://freebsd-custom.wikidot.com/, the new binary ports upgrade system and save yourself a bunch of compile time. Chris ___ 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: upgrading installed ports: time to do it ?
2009/6/21 danny mesli...@yahoo.fr: Hi list members , I frequently update the contents of the ports tree but I have never upgraded any port. I am studying the way to do it, by following the handbook and an article on The FreeBSD Diary about the use of portupgrade. At the moment I am focuing the attention to the '/usr/ports/UPDATING' file. The question that arose is the following: is there any automated way to check if any of the port to be upgraded has specific upgrading notes written in that file ? Do you prefer doing a mass or selective upgrade ? Thanks ! dan I would tend to upgrade perl first; have a look in UPDATING to see how it's done. That'll upgrade the majority of your ports too. You may also have a small problem if you're still running XFree86 (which you probably will if you've had your system a while). Look in UPDATING for that too, and then just do a portupgrade -aP. Good luck, and I hope your processor's properly cooled! Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: kern.securelevel
2009/6/19 Tim Judd taj...@gmail.com: Something dawned on me. FreeBSD/Open/Net are all well secured systems. On an Internet-facing router, would applying a higher kern.securelevel provide any better, tighter, higher security if the machine was broken into? Given you need to lower the securelevel before multiuser, it is a reasonable to think raising the securelevel will give higher comfort feeling? I know this is a logical/thinking/mind question, but that's what I'm asking for. By all means raise your securelevel if you're happy with firewall rules, and don't ever need to change flags on files, but really, unless you expect root to be broken, it's kinda annoying. Just disallow root access to EVERYTHING, ssh, telnet (if you're mad enough to run it facing the net), ftp, etc. Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Small notebook platforms. [was: Re: self-serving redeux/revisited, and more questions?]
Gary Kline wrote: On Sun, Jun 21, 2009 at 12:42:00PM -0700, Gary Kline wrote: On Sun, Jun 21, 2009 at 09:18:55AM -1000, Al Plant wrote: i have another issue that has more to do with freebsd on the new and lost cost notebook computers i had heard of. how many and which ones work best with our flavor of BSD. turns out that sometimes things-ubuntu fail, and i need something failsafe and with a keyboard. i'll explain later, but if i can use a lightweight computer that has audio with the kde apps, i can create a reasonably priced tts or speech synthesizer that would be accessible to a great many people. instead of the $8-9 kilobuck windose devs. [[ munch ]] I hear some people on the list have FreeBSD on Asus Eee net books and it is working well. [[ munch ]] okay. i'm on the eeepc.asus.com site. but don't see much info on the spec. i bot asus once years ago and the motherboard crapped out on me after a year. but by now, should be more reliable. anyway, i see only wireless, and i'm cat5 only. i've got a 13-yr-old people here who would love for me to go wireless so said people could take her apple macbook into her bedroom and so on. well, said people need to be not hiding-in-room, in my opinion as said people's father. so is there any other cute notebooks like this EEe Pc that have cable? oh, and this tiny thing doesn't look big enough to have any speakers. since the main point of this experiment is to allow typing onthe kde tts apps and have voice output, a speaker is a must-have. feedback, you guys? gary ps: the 7 deal is serious cute, but the kybd is tiny and while i have no hand tremor or anything, i'd probably fat-finger most keys. anybody have the small asus? There's a wiki devoted to FreeBSD on Asus eee http://wiki.freebsd.org/AsusEee last edited 2009-05-31 I personally think Asus desktop motherboards are going downhill, based on my very small sample of two old ones going strong and one recent one defunct, plus that funny marketing smell that creeps in - Rock Solid, Heart Touching geez. On the other hand the guys in the component level laptop repair shop I had to take my HP laptop to recently, told me they get fewer Asus laptops in for repair than anything, even thinkpads. (They get mostly HP :- ) ___ 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
ftp user issues
I just upgraded to 7.2, and I am no longer able to log in via ftp with my user name. Other accounts are ok on the server. I checked the ftpusers file and my name is not on the list. Chris Maness ___ 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: ftp user issues
Documentation is great. RTFM I don't think a RTFM is justified as this connection is an esoteric one for some of us. Chris ___ 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: ftp user issues
is your user's shell (i.e: bash) in /etc/shells ? This was the issue, thanks. I guess I missed that one in mergemaster. Chris ___ 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 toaster
2009/6/17 Alex Stangl a...@stangl.us: On Tue, Jun 16, 2009 at 07:04:47PM -0700, SA wrote: This article by Colin Percival http://www.daemonology.net/freebsd-update/binup.html discusses using freebsd-update as a toaster for updating an entire FreeBSD based distribution, instead of just the base system like freebsd-update normally does. Does anyone know where there might be more information on this topic? Not long ago I tried using freebsd-update to update from 6.0-RELEASE to 7.2-RELEASE, based upon instructions on Percival's blog, http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html It blew away the contents of /boot/kernel. Multiple emails to Percival went unanswered, and when I later asked about it on this list, the only response was a suggestion to upgrade via source. (Thanks for the suggestion, by the way -- I think I'll rather do that to stay up to date once I get caught up.) Based upon my experience and the apparent lack of current support, I would not recommend using these tools for binary updates, especially in an automated fashion. If I get some spare time and inclination, I may try to diagnose what went wrong with the freebsd-update script, but more likely will end up doing a clean install of 7.2-RELEASE from ISO onto a new drive, and migrate everything over. Alex Just curiosity, what's wrong with source upgrading? Isn't it miles easier than reinstalling? Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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 toaster
2009/6/17 Alex Stangl a...@stangl.us: On Wed, Jun 17, 2009 at 11:17:32AM +0100, Chris Rees wrote: Just curiosity, what's wrong with source upgrading? Isn't it miles easier than reinstalling? Probably nothing. I haven't done it before, so there's the usual apprehension dealing with the unknown. I originally thought that since I just use a generic kernel, a binary upgrade should be quickest, easiest, and safest. Freebsd.org was touting the freebsd-update script, so that seemed the obvious way to go. I guess I'll clean up the mess left by freebsd-update and try the route of upgrading via source. But then I am left wondering why the freebsd.org site continues to recommend using freebsd-update which is seemingly broken and unsupported, while people on the mailing list recommend source upgrades instead. Thanks, Alex As I see it, binary updates are fantastic for incremental patches (for security etc), but for anything other than small patches or point releases (eg 7.1-7.2) I'd use source. Just my opinion, but it's served me fine. Basically, a source update is guaranteed and THE supported method, but freebsd-update is just so damn convenient! Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: bannerfiltering
On Jun 17, 2009, at 7:54 AM, Dave wrote: Hello, I've got a freebsd 7.2 machine that i need to use for banner filtering, addzapping and filtering out all the junk that comes along with adds windows viruses trojans things like that before they can get to my internal clients. Previously i used squid and dansguardian but found that slowed things down to a crawl and at times was to restrictive at times not restrictive enough. I've also tried squidguard but that didn't meet my needs either, it didn't seem to be being maintained. I'm using snort_inline with FreeBSD 7.0, IPFW, and IF_BRIDGE. Massive traffic running through it and no performance issues. Dropping sessions is effortless but there are more complex ways to filter and pass which sounds like what you would want to do. I've not experimented with that. There isn't a lot of documentation on set up and what there is states that it doesn't work. That's out of date because it does, quite well really. The docs out there for snort_inline and non-bridged configurations are still useful. I don't have a link but found them with googling. ___ 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
Re: In addition to - 7.2 panic during installation : AP #1 (PHY# 1) failed !
Manish Jain wrote: I forgot to mention that Windows installs and runs very smoothly on the system. Windows system information reports : System ManufacturerGigabyte Technology Co., Ltd. System ModelGA-MA78GM-US2H snip The only thing that strikes me as odd is that right-clicking on My Computer reports the amount of RAM as 768 MB, while the diagnostics above states 1024 MB. For the brief period of time the FreeBSD installer runs, it reports the amount of RAM as 768 MB too. http://www.gigabyte.com.tw/Products/Motherboard/Products_Overview.aspx?ProductID=2995 has integrated graphics = shared memory. You can probably change the amount of RAM allocated to the graphics card in the BIOS. Chris ___ 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: Announcing: FreeBSD Custom XFCE ISO (take II)
Manolis Kiagias wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey all, This is a continuation of the effort that started with this post: http://lists.freebsd.org/pipermail/freebsd-questions/2009-May/198284.html This little project also found its way to Distrowatch Weekly news (Thanks!): http://distrowatch.com/weekly.php?issue=20090615#news Congratulations! Since there was an update of the base system to 7.2-RELEASE-p1 a few days ago, it was a good chance to update this ISO and also include some newer packages. The new ISO may be downloaded from here (space and bandwidth courtesy of Glen Barber): http://freebsd.dev-urandom.com/iso/i386/xfce-desktop/7.2-RELEASE-p1-i386-disc1.iso Are you updating the name with each new iso? I will start preparing a server ISO (CD sized) soon. I also welcome all ideas on what to include/exclude in later versions of this DVD. It has been suggested to include openoffice packages as abiword / gnumeric don't cut it for many people. This will increase the size of the download, although hopefully not dramatically as most dependencies are probably already included. I am all open to ideas, so please email me your suggestions and comments. I would vote for including openoffice, it takes much longer to compile than to download, or maybe make the package and any dependencies that are not already included available as a separate tarball. Any chance of x11-wm/icewm and maybe x11/idesk? icewm with config option BEASTIE :) I've been between hardware for a while but I can offer some compile time if needed. Chris Thanks, Manolis Kiagias -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAko3OA4ACgkQZ/MxGm4PtJRuvgCfYcOTk2whTnOekRqrBMJYjWZ3 tOcAnRF2Y1E14T/zFGOMBJk+v46tz2AN =VfqE -END PGP SIGNATURE- ___ 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
Re: The freebsd-questions Archives
Leslie Jensen wrote: Hello list! I try not to disturb the list unless I need to using the list archive to find answers. I've never been successful in searching the archives it always returns No matches were found for ... Now I see that the search index is not rebuild for a long time -- Note:The archive search index was last rebuilt at Thursday, 08 Feb 2007 06:16:51 UTC. Any postings after that will not be found by a search. Index rebuild is usally done once every 24 hours for this list. You can use a View by date link below to access more recent postings. --- How should I search the list ? Try http://www.freebsd.org/search/search.html#mailinglists (and search for archive search working) Chris /Leslie ___ 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
Re: need network printer printcap example
On Thu, 11 Jun 2009, dacoder wrote: has anybody got an example of a printcap file w/ an entry for a standalone network printer? i'd be grateful for one. Here's mine - been working for years: lp|snow|snowball|lj|ps|HP ColorLaserJet 4550N:\ :sh:\ :sd=/var/spool/output/lpd:\ :mx#0:\ :lp=:rm=snowball:rp=auto: The printer's hostname is snowball, resolved via /etc/hosts at first and now via internal DNS. This printer understands Postscript and plain text, and has always Just Worked with no CUPS, filters or any of that stuff needed. -- Chris Hill ch...@monochrome.org ** [ Busy Expunging | ] ___ 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
AFP Client in FreeBSD
Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? Thanks, Chris Maness ___ 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: AFP Client in FreeBSD
an AFP server, but there is little information on the client. Any suggestions? rsync ? Cheers, Steph Well I am using the dump command, and I am not sure if I want to dump to the same partition that I am backing up. Can I use rsync to pipe the dump output via ssh? Thanks, Chris ___ 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: AFP Client in FreeBSD
On Wed, Jun 10, 2009 at 11:24 AM, Greg Larkinglar...@freebsd.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Maness wrote: Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? Thanks, Chris Maness Hi Chris, It looks like this has some potential: http://sourceforge.net/projects/afpfs-ng Care to write a port for it? Cheers, Greg - -- Greg Larkin Yea, I was looking for a port for it, but there isn't any. I don't have the time right now to port it or start a new port. Thanks, Chris ___ 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: AFP Client in FreeBSD
On Wed, Jun 10, 2009 at 12:05 PM, Wojciech Pucharwoj...@wojtek.tensor.gdynia.pl wrote: MacOS X is unix-based. All it's GUI and other isn't unixlike, but base system is. You may compile unix commands on it. Maybe just ftpd, or rsync? I use dump. I think dumping to the same partition that you are backing up is a bad idea. In order to use these methods I would have to dump, then transfer the dump file. If I can use rsync to pipe the dump output, that would probably work. I think I remember reading about that somewhere. Thanks, Chris ___ 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
FreeSBIE
Hello, I'm not sure who to contact about this, but there is a problem with the freesbie.org website. I can't seem to connect to it. With Mozilla Firefox 3.0.1.0, I get the error message Network Timeout, The server at www.freesbie.org is taking too long to respond. and with Internet Explorer 7, I get an error message Internet Explorer cannot display webpage. --Christopher /\ . . /\ __ Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/ ___ 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: AFP Client in FreeBSD
Wojciech Puchar wrote: I use dump. I think dumping to the same partition that you are backing up is a bad idea. works fine and WILL work fine by design. just you have to create directory, flag it with nodump and dump to file in that directory I forgot about nodump. Thanks. Chris ___ 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: AFP Client in FreeBSD
I tried mounting a mac box to my FreeBSD server a while back, but I think I was not able to get it to go RW. How do you set up NFS as a service in OSX 10.4? That would be the best way as my backup scripts are already set up to do an NFS mount. Thanks, Chris On Wed, Jun 10, 2009 at 3:22 PM, patrickgibblert...@gmail.com wrote: Mac OS X supports NFS, so you could always mount your Mac on FreeBSD via NFS. Patrick On Wed, Jun 10, 2009 at 10:45 AM, Chris Manessch...@chrismaness.com wrote: Is there an AFP client for FreeBSD? I have a mac with a gargantuan hard drive, and I would like to back up my FreeBSD server to it, and back up my mac to my FreeBSD server. I have seen where FreeBSD can be an AFP server, but there is little information on the client. Any suggestions? Thanks, Chris Maness ___ 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
Re: Date representation as YY/DDD or YYYY/DDD
2009/6/6 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl: what some single-letter option meant. I pretty much never use them on the command line, though. Agreed, the long options *as an alternative* can be descriptive in scripts, tutorials, howto's etc. The other reason often mentioned, there being not enough letters in the alphabet to cover all possible options, in my opinion advocates bloated software (one program can do it all), which goes against the Unix paradigm of making small programs that do one task exceptionally well and just chaining these together. you exaggerate a bit. for example rsync does have 26 options but most make sense for program that is dedicated to one task, and it isn't against Unix paradigm. But it have one letter shortcuts for mostly used parameters Can I be picky and point out it's actually 52 short options? [ch...@amnesiac]~% ls -f quantumdot mailcromwell_1024.bin.gz public_html bnreg amnesiackey.pub backup.sh.gzcromwell.bin.gz check-portupgrade.pl why.c teamspeak [ch...@amnesiac]~% ls -F amnesiackey.pub cromwell.bin.gz quantumdot/ backup.sh.gzcromwell_1024.bin.gzteamspeak/ bnreg/ mail/ why.c check-portupgrade.plpublic_html/ [ch...@amnesiac]~% for just one example Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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 a Bourn Shell Script put itself in the background?
2009/6/6 Martin McCormick mar...@dc.cis.okstate.edu: This also works in Linux's /bin/sh which I believe is an alias for bash so occasionally little things work differently. Usually is, but in some it's linked to dash. https://wiki.ubuntu.com/DashAsBinSh Also, you should ONLY use POSIX-compatible commands/extensions in /bin/sh scripts, or you cause breakage on many systems (including the BSDs). Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Opinion request about a file server
2009/6/6 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl: Not counting the CPU and its power circuitry, I would be very suprised if the other components on a normal motherboard pulled as much as half of that even when under load. In fact a typical modern desktop computer will, when idle, draw less than 100W for the whole system. It is not even difficult to put together a system that will stay under 100W even when under load. but power supplies are not really efficient when used at small load. maybe some newer are better... Mine has a 250W PSU in it, and draws around 45W (measured with a power meter)... In the UK it thus costs ~£45 (US$70) per year, at the current E.O.N. rate. Not too expensive! Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Date representation as YY/DDD or YYYY/DDD
2009/6/5 Kirk Strauser k...@strauser.com: On Thursday 04 June 2009 04:17:56 pm Chris Rees wrote: Info is horrible to use as a quick reference, because as Polytropon said earlier, you can't just dive in to get something specific. The info is split into (arbitrary) sections, through which you have to tread, and jump around hyperlinks all over. In fairness, a good info browser (eg Emacs) makes searching in an info doc trivially easy. I think the biggest problem is that /usr/bin/info is horrid and people lump their impression of it onto their impression of info docs as a whole. -- Kirk Strauser Is there a 'quick' way to use emacs instead of info? Like info-emacs topic? I've remembered why I hate the info browser so much; it reminds me of the 'help' included with MS-DOS 6.22. Anyone remember that? Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Opinion request about a file server
2009/6/5 Valentin Bud valentin@gmail.com: Hello community, I have an old computer (ASRock P4Dual-915GL) with Intel P4 CPU at 3.0Ghz and 2Gb of RAM. I am asking the list maybe is somebody out there with a similar configuration and running FreeBSD on such a system as a File Server and Print Server using samba. What i mainly try to achieve, talking in storage space, is 2 HDD of 1TB in mirroring using gmirror(8) and 1 separate HDD of 500Gb. So do you think the system I've mentioned would handle the load? The server will be used by 4 people for storage of all sorts of files that can be found in Design and daily Office World (Photoshop, Illustrator, etc, Word Documents, etc). Thank you, v -- network warrior since 2005 Wow! You have a powerhouse. I'm using this: http://www.bayofrum.net/phpsysinfo for *everything*; web server, mail server, file server, the odd bittorrent (usually for ubuntu, I don't touch warez :P), and even run a Left 4 Dead server on it from time to time... Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Open_Source
2009/6/5 Chad Perrin per...@apotheon.com: On Wed, Jun 03, 2009 at 09:50:24PM +0100, Chris Rees wrote: 2009/6/3 Roland Smith rsm...@xs4all.nl: On Wed, Jun 03, 2009 at 09:35:31PM +0200, Polytropon wrote: On Wed, 3 Jun 2009 13:46:15 -0500, Gary Gatten ggat...@waddell.com wrote: Isn't there an OpenVMS somewhere? There is an open source clone in the works: http://www.freevms.net/ No idea of the state it is in. The OZONE OS [http://www.o3one.org/] uses a lot of VMS concepts. I just LOVE the webpage. The kind of one I'd make in my spare time... That's horrifying. Remind me to never visit one of your Webpages. Luckily, I can touch-type, because the temporary blindness induced by that site when the bright yellow irradiated my retinas still hasn't entirely faded. Hehe, mine is the opposite if you're interested; http://www.bayofrum.net Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Date representation as YY/DDD or YYYY/DDD
2009/6/5 Kirk Strauser k...@strauser.com: On Friday 05 June 2009 11:50:58 am Chris Rees wrote: Is there a 'quick' way to use emacs instead of info? Like info-emacs topic? Not that I know of. :-/ I've remembered why I hate the info browser so much; it reminds me of the 'help' included with MS-DOS 6.22. Anyone remember that? Ouch. You had to go there, didn't you? I feel GNU is very similar in many ways to DOS, along with their preference for 'long options'. Horrible. You end up with monstrosities of commands. Traditional: % tar xzvf bluurgh.tgz GNU recommended: $ tar --extract --verbose --gunzip --file bluurgh.tgz Seriously, why are long options encouraged? Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Date representation as YY/DDD or YYYY/DDD
2009/6/5 Thomas Dickey dic...@radix.net: On Fri, Jun 05, 2009 at 10:49:19PM +0200, Wojciech Puchar wrote: GNU recommended: $ tar --extract --verbose --gunzip --file bluurgh.tgz Seriously, why are long options encouraged? there are people that like to write a lot? ;) no..., otherwise the people generating this thread would cite realistic examples, rather than writing a lot. The point I was trying to make (badly), was that long options are a PITA to type. I don't believe it's any easier to learn the long names for options than the short ones. Since you're typing huge amounts of text quickly, you're more likely to make mistakes, and you'll probably forget them anyway. So, instead of looking up short options in the man page, I am then reduced to riffling through the info tome, to find the long option that I've forgotten. No really, I do forget long options. A lot. Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: Opinion request about a file server
2009/6/5 Gabriel Lavoie glav...@gmail.com: I think my file/print/mail server is a bit overkill: http://w3.mutehq.net:8008/sysinfo/ What a waste... How much power does that chug?? Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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: named: error sending response: not enough free resources
Steve Bertrand wrote: Chris St Denis wrote: Steve Bertrand wrote: What type of device is em1 attached to? Is it a switch or a hub? Is it possible to upgrade this? You should upgrade it to 100 (or 1000) anyways. Does this device show any collisions? This is a dedicated server in a datacenter. I don't know the exact switch specs but it's likely a layer 2/3 managed switch. Probably a 1U catalyst. Do you force 10Mb on your NIC, or do you auto-negotiate that? Perhaps before you pay a higher fee, your colo centre could allow you to connect to a 100Mb port (with perhaps some traffic policing) so you, as a client, could quickly verify if you want to scale up to their next tier without having to spend these up-front costs on troubleshooting this back-asswards. I can upgrade the connection to 100mbps for a small monthly fee. I've left it at 10 because I haven't had a need, but with traffic recently growing, this is probably the problem. Tell the colo that. Tell them you need to test their next tier of service! # mail -s tcpdump output st...@ipv6canada.com /var/log/dns.pcap I don't think this is necessary. If cutting down the http traffic or raising the port speed doesn't fix it, I'll look into further debugging with this. ...one more time, don't attempt to throttle your own traffic to troubleshoot what looks like a throughput bottleneck. Start with the collocation provider. They should, for free, allow you to have a testing period with their next service tier. Hopefully, they can do it without having to swap your Ethernet cable into another device. If it works during the test, then a small 'migration' and monthly upgrade fee would be acceptable (if they choose). Steve The problem was resolved by switching to 100Mbps. It's interesting that bind is all that complains about the bandwidth exhaustion, but I guess it's about my only use of UDP and TCP is better able to handle this kind of issue so doesn't complain. -- Chris St Denis Programmer SmarttNet (www.smartt.com) Ph: 604-473-9700 Ext. 200 --- Smart Internet Solutions For Businesses ___ 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: Date representation as YY/DDD or YYYY/DDD
2009/6/4 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl: Ignore him please. because? The FreeBSD project still uses man pages as the principle form of documentation. Texinfo is for GNU projects. Try 'info tar' on a BSD system, you'll get the man page. Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list? ___ 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