Re: Help Failing Disk Problem
I use dump with the following options (e.g. for /usr); dump -0 -B 4589560 -C 8 -h 0 -L -u -P \ 'cat - >usr-0-20071106-vol${DUMP_VOLUME}.dump' /usr This splits dump output in DVD-R sized chunks. completely strange better -f file1,file2,file3,. (you may type more files than actually needed). one unneeded extra pipe avoided. if you use pipe, use with growisofs. BUT with DVD+RW disks you may use /dev/cd0 directly as dump device ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
On Mon, Nov 05, 2007 at 02:40:36PM -0800, FX Charpentier wrote: > Roland, > > The mention of dump '-L' in your email below has caught my attention. > Pardon my ignorance, but what is the '-L' option? > > I looked it up in the man pages but wasn't able to find any mention of it. > Can you point me in the right direction? It's in dump(8); -L This option is to notify dump that it is dumping a live file sys- tem. To obtain a consistent dump image, dump takes a snapshot of the file system in the .snap directory in the root of the file system being dumped and then does a dump of the snapshot. The snapshot is unlinked as soon as the dump starts, and is thus removed when the dump is complete. This option is ignored for unmounted or read-only file systems. If the .snap directory does not exist in the root of the file system being dumped, a warning will be issued and the dump will revert to the standard behavior. This problem can be corrected by creating a .snap directory in the root of the file system to be dumped; its owner should be ``root'', its group should be ``operator'', and its mode should be ``0770''. I use dump with the following options (e.g. for /usr); dump -0 -B 4589560 -C 8 -h 0 -L -u -P \ 'cat - >usr-0-20071106-vol${DUMP_VOLUME}.dump' /usr This splits dump output in DVD-R sized chunks. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpvj8pXniSED.pgp Description: PGP signature
SATA DVD speed's too slow
I currently have an SATA DVD-RW drive for my computer. I have to boot using a CURRENT kernel to get the drive recognized, and dmesg lists it as running at 3.3MB/s. Running mplayer -dumpstream gets around 3 megs a second. Copying off a data dvd gets about the same. But I recall reading about playing a dvd before trying to get the data off of it when using dd, and it seems to work. But the odd part is, it can get up to 20 megabytes a second. Does anyone know how to get the higher speeds all the time? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: KDE bookmarks??
On Tue, Nov 06, 2007 at 12:57:05AM +, Pollywog wrote: > On Tuesday 06 November 2007 00:34:50 Gary Kline wrote: > > Folks, > > > > As some of you know, i was configuring kkonquereor because it has > > a link to the festival tts tool. I let myself get careless with firefox; > > bookmarked sites went in any-whichway. With konq, I began creating > > directories to which I added simial site, etc. > > > > > > I did save /home/kline when my ne system began having troubles. Now i > > am looking for the dozens of carefully added and edited URL's. I can't > > find the KDE Stuff anywhere. I can find kbookmark, but it's empty in my > > old/former /home/kline/* tree. Anybody know where else i should be > > looking? > > If you are looking for Firefox bookmarks, try ~/.mozilla/firefox/ > I have another directory there that begins with what appear to be random > alphanumeric characters follwed by .default/ My bookmarks are in that > directory. > Your pointer to ~/.kde/share/apps/konqueror/ was what right on the money; thanks! But it occured to me weeeks back that for some thing, possibly including the bookmarks filles, why not have a matching format?? If the firefox bookmarks are inn XML, then it would be possible to share bookmarks iff that were desired. ...Just my two pnnies' worth . gary -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
apache22 complains of Module mod_ldap missing
Hi there, I wrote in response too soon and after uncommenting the LDAP modules I am still running into the same issue. I checkbox the LDAP and AUTHNZ_LDAP options and I specifically set the options to ON in the Makefile.options file by hand and still the same error below occurs. what could be wrong? apache-2.2.6_2 6.2-RELEASE-p6 I am not quite sure what is wrong if I am not building apache correctly or if my /usr/local/etc/apache22/httpd.conf file does not have everything configured properly. I might be missing the installation of a module or something in my httpd.conf please help. I am not sure what to try next. Cheers, Noah Table of contents: 1) log error message 2) cat /etc/make.conf 3) LoadModules from /usr/local/etc/apache22/httpd.conf 4) cat /usr/ports/www/apache22/Makefile.options here is the log message: [Sun Nov 04 18:26:41 2007] [error] Module mod_ldap missing. Mod_ldap (aka. util_ldap) must be loaded in order for mod_auth_ldap to function properly Configuration Failed here is my /etc/make.conf --- snip --- # !cat cat /etc/make.conf ## switches for RT3 WITH_FASTCGI=yes WITH_APACHE2=yes # for subversion WITH_APACHE2_APR=yes APR_UTIL_WITH_BERKELEY_DB=yes WITH_MOD_DAV_SVN=yes WITH_REPOSITORY_CREATION=yes # for Apache WITH_LDAP_MODULES=yes WITH_SSL_MODULES=yes WITH_BERKELEYDB=db42 #FORCE_PKG_REGISTER=yes # added by use.perl 2007-11-03 20:21:58 PERL_VER=5.8.8 PERL_VERSION=5.8.8 snip --- here are the modules I install: access1# grep "LoadModule" /usr/local/etc/apache22/httpd.conf # have to place corresponding `LoadModule' lines at this location so the # LoadModule foo_module modules/mod_foo.so LoadModule perl_module libexec/apache22/mod_perl.so LoadModule authn_file_module libexec/apache22/mod_authn_file.so LoadModule authn_dbm_module libexec/apache22/mod_authn_dbm.so LoadModule authn_anon_module libexec/apache22/mod_authn_anon.so LoadModule authn_default_module libexec/apache22/mod_authn_default.so LoadModule authn_alias_module libexec/apache22/mod_authn_alias.so LoadModule authz_host_module libexec/apache22/mod_authz_host.so LoadModule authz_groupfile_module libexec/apache22/mod_authz_groupfile.so LoadModule authz_user_module libexec/apache22/mod_authz_user.so LoadModule authz_dbm_module libexec/apache22/mod_authz_dbm.so LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so LoadModule authz_owner_module libexec/apache22/mod_authz_owner.so LoadModule authz_default_module libexec/apache22/mod_authz_default.so LoadModule auth_basic_module libexec/apache22/mod_auth_basic.so LoadModule auth_digest_module libexec/apache22/mod_auth_digest.so LoadModule file_cache_module libexec/apache22/mod_file_cache.so LoadModule cache_module libexec/apache22/mod_cache.so LoadModule disk_cache_module libexec/apache22/mod_disk_cache.so LoadModule include_module libexec/apache22/mod_include.so LoadModule filter_module libexec/apache22/mod_filter.so LoadModule charset_lite_module libexec/apache22/mod_charset_lite.so LoadModule deflate_module libexec/apache22/mod_deflate.so LoadModule log_config_module libexec/apache22/mod_log_config.so LoadModule logio_module libexec/apache22/mod_logio.so LoadModule env_module libexec/apache22/mod_env.so LoadModule mime_magic_module libexec/apache22/mod_mime_magic.so LoadModule cern_meta_module libexec/apache22/mod_cern_meta.so LoadModule expires_module libexec/apache22/mod_expires.so LoadModule headers_module libexec/apache22/mod_headers.so LoadModule usertrack_module libexec/apache22/mod_usertrack.so LoadModule unique_id_module libexec/apache22/mod_unique_id.so LoadModule setenvif_module libexec/apache22/mod_setenvif.so LoadModule version_module libexec/apache22/mod_version.so LoadModule ssl_module libexec/apache22/mod_ssl.so LoadModule mime_module libexec/apache22/mod_mime.so #LoadModule dav_module libexec/apache22/mod_dav.so LoadModule status_module libexec/apache22/mod_status.so LoadModule autoindex_module libexec/apache22/mod_autoindex.so LoadModule asis_module libexec/apache22/mod_asis.so LoadModule info_module libexec/apache22/mod_info.so LoadModule cgi_module libexec/apache22/mod_cgi.so #LoadModule dav_fs_module libexec/apache22/mod_dav_fs.so LoadModule vhost_alias_module libexec/apache22/mod_vhost_alias.so LoadModule negotiation_module libexec/apache22/mod_negotiation.so LoadModule dir_module libexec/apache22/mod_dir.so LoadModule imagemap_module libexec/apache22/mod_imagemap.so LoadModule actions_module libexec/apache22/mod_actions.so LoadModule speling_module libexec/apache22/mod_speling.so LoadModule userdir_module libexec/apache22/mod_userdir.so LoadModule alias_module libexec/apache22/mod_alias.so LoadModule rewrite_module libexec/apache22/mod_rewrite.so LoadModule php5_modulelibexec/apache22/libphp5.so LoadModule speedycgi_module libexec/apache22/mod_speedycgi.so #LoadModule dav_svn_module modules/mod_dav_svn.so #LoadModule authz_svn_module modules/mod_authz_svn.so LoadModule authnz_external_module libexec/apache
Re: Rebuilding kernel/system to a state "back-in-time"?
Jonathan Horne wrote: ... IMO, (and forgive me, i generally dont spew my opinions where they arent welcome or asked for), RELENG_6_2 is better for a server over RELENG_6 (aka, -STABLE), as it doesnt include items that are not critically required for secure and stable operation. remember, that the true -STABLE branch has items merged in from -CURRENT (call it back-ported?). let say, you already know that -p8 is the latest 6.2 revision. you get on a server, you log in, and it says 6.2-RELEASE-p8. you already know that this system is up to date. if you log in, and see 6.2-STABLE... you dont immediately know when this system was last rebuilt without doing some other version checks first. i have to be honest, when it comes to managing a farm full of servers, i like my "visual version checks"... the same way i like my women: We're going off-topic now, but you have a point. I'm not going to argue if STABLE is better than release branches on servers, but I think it would be useful to record the CVS date somewhere by default (I know you can do this manually via src/sys/conf/newvers.sh). Sometimes the "p8", "prerelease #4" or even kern.osreldate is too low resolution. uname -a just exposes the build date of the kernel, not the date of the sources. Maybe a sysctl like: sysctl kern.oscvsdate: 20071105224900 Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
James <[EMAIL PROTECTED]>, said on Mon Nov 05, 2007 [03:16:46 PM]: } On Mon, 2007-11-05 at 14:04 -0700, Warren Block wrote: } } > On Mon, 5 Nov 2007, James wrote: } > } > > On Mon, 2007-11-05 at 11:53 -0800, Sean Murphy wrote: } > > } > >> I have a FreeBSD 6.2 Release box with a single ide that has user data } > >> and the FreeBSD OS on a hard disk that is failing. I need advice on the } > >> best way to clone the entire disk (or at least the data) onto a larger } > >> ide disk drive, then pull the failing disk and replace it with the } > >> clone. What is the best way in FreeBSD to do that? } > > } > > The best way is to do it regularly before the hard drive is failing. } > > } > > Given that you haven't done that, there're a few methods. I'm a big fan } > > of rsync, which is the nectar of the gods, but a lot of folks seem to } > > prefer dd for this kind of thing. } > } > rsync is too high-level, and may not do exactly the right thing with } > links or sparse files or who knows what. } } rsync -cav takes cares of symlinks and all that just right. It's a } beautiful thing. } } Checksumming, too. Ah, bliss. Reading the man page, I believe that will make copies instead of hard links for files with more than one link. By my reading, you'd have to specify -H in addition. As others have pointed out, if you're using ACLs or other extended attributes, those may be lost as well. This is why I think _in principle_ using a tool which has as its sole purpose in life the backup and restore, unmolested, of filesystems, is the best general approach to this problem. Other tools may work too, but you have to put a lot of thought and care into getting 473 of their 1692 command line options right (made up numbers, obviously) and that's never good when you're in the heat of the moment and your data is at stake. } dump has the problem that a lot of tools have, though, including rsync. } It creates a file list to start from. } } If the file names on the drive change during the dump, corruption can } occur. At least on linux. I remember Torvalds ranting about it on a } mailing list. I imagine FreeBSD suffers the same issue, though, as it's } a pretty generic problem. Use dump (or anything else, for that matter) on a snapshot. Of course, all bets are off since the disk is already failing. The common case is that the OP may get "most" of the files off in tact; probably not all. Backups are important if you care about your data. -- Jon Hamilton [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
Thanks. I might actually use this on a box I'm running. Best, - FX - Original Message > From: Jerry McAllister <[EMAIL PROTECTED]> > To: FX Charpentier <[EMAIL PROTECTED]> > Cc: Roland Smith <[EMAIL PROTECTED]>; James <[EMAIL PROTECTED]>; Sean Murphy > <[EMAIL PROTECTED]>; freebsd-questions@freebsd.org > Sent: Monday, November 5, 2007 7:18:57 PM > Subject: Re: Help Failing Disk Problem > > On Mon, Nov 05, 2007 at 02:40:36PM -0800, FX Charpentier wrote: > > > Roland, > > > > The mention of dump '-L' in your email below has caught my attention. > > Pardon my ignorance, but what is the '-L' option? > > > > I looked it up in the man pages but wasn't able to find any > mention > of it. > > Can you point me in the right direction? > > It stands for 'Live' and causes dump to do some snapshotting if you > are running from multi user. It is not really meaningful if you > are running in single user mode, but can help reduce confusion if > files change during a dump on a live multi user mode system. > > jerry > > > > > Thanks, > > - FX > > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portupgrade questions
Aryeh M. Friedman wrote: *cd patchs # optional ./apply # optional * patchs are some local patchs and yet to be committed patchs I use ok, thanks :) I was wondering why I couldn't find them on my system :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portupgrade questions
>> *cd patchs # optional >> ./apply # optional >> * patchs are some local patchs and yet to be committed patchs I use -- Aryeh M. Friedman Developer, not business, friendly http://www.flosoft-systems.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Press release; canadian subsidies grants & loans
Business publications 4865 hwy 138 r.r. 1 St-Andrews w. On K0C 2A0 Canadian Subsidy Directory 2007 The most complete and affordable reference for anyone looking for financing. It is the perfect tool for new and existing businesses, individuals, foundations and associations. Complete guide containing more than 3200 programs. 2007 edition. Legal Deposit-National Library of Canada Business.$ 69.95 CD-Rom Academic printed$ 149.95 (430 pages) Toll free: 8 6 63 2 23 3 7 6 unsuscribe requests: use [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: KDE bookmarks??
On Tuesday 06 November 2007 00:34:50 Gary Kline wrote: > Folks, > > As some of you know, i was configuring kkonquereor because it has > a link to the festival tts tool. I let myself get careless with firefox; > bookmarked sites went in any-whichway. With konq, I began creating > directories to which I added simial site, etc. > > > I did save /home/kline when my ne system began having troubles. Now i > am looking for the dozens of carefully added and edited URL's. I can't > find the KDE Stuff anywhere. I can find kbookmark, but it's empty in my > old/former /home/kline/* tree. Anybody know where else i should be > looking? If you are looking for Firefox bookmarks, try ~/.mozilla/firefox/ I have another directory there that begins with what appear to be random alphanumeric characters follwed by .default/ My bookmarks are in that directory. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: KDE bookmarks??
On Tuesday 06 November 2007 00:34:50 Gary Kline wrote: > Folks, > > As some of you know, i was configuring kkonquereor because it has > a link to the festival tts tool. I let myself get careless with firefox; > bookmarked sites went in any-whichway. With konq, I began creating > directories to which I added simial site, etc. > > > I did save /home/kline when my ne system began having troubles. Now i > am looking for the dozens of carefully added and edited URL's. I can't > find the KDE Stuff anywhere. I can find kbookmark, but it's empty in my > old/former /home/kline/* tree. Anybody know where else i should be > looking? ~/.kde/share/apps/konqueror/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
KDE bookmarks??
Folks, As some of you know, i was configuring kkonquereor because it has a link to the festival tts tool. I let myself get careless with firefox; bookmarked sites went in any-whichway. With konq, I began creating directories to which I added simial site, etc. I did save /home/kline when my ne system began having troubles. Now i am looking for the dozens of carefully added and edited URL's. I can't find the KDE Stuff anywhere. I can find kbookmark, but it's empty in my old/former /home/kline/* tree. Anybody know where else i should be looking? tia, gary -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
On Mon, Nov 05, 2007 at 02:40:36PM -0800, FX Charpentier wrote: > Roland, > > The mention of dump '-L' in your email below has caught my attention. > Pardon my ignorance, but what is the '-L' option? > > I looked it up in the man pages but wasn't able to find any mention of it. > Can you point me in the right direction? It stands for 'Live' and causes dump to do some snapshotting if you are running from multi user. It is not really meaningful if you are running in single user mode, but can help reduce confusion if files change during a dump on a live multi user mode system. jerry > > Thanks, > - FX > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portupgrade questions
On Nov 5, 2007 7:11 PM, Jack Barnett <[EMAIL PROTECTED]> wrote: > > Aryeh M. Friedman wrote: > > Here is a script I use to automate the procedure I posted in the > previous reply: > > #!/bin/sh > > cd /usr/src > csup ports-supfile > csup standard-supfile > cd patchs # optional > ./apply # optional > portupgrade -a > > > > ?? > I was wondering about that, too. My understanding, Aryeh, of the ports vs pkg issue is that part of your method is uneccesary. You can use pkg_add fine, but as soon as you start using ports you have to stick with ports. portupgrade -a with a recently updated ports tree will update everything that has an update, and reverting to pkg_add after that could start creating dependency issues. So you don't need to uninstall pkgs before starting to use ports, but you can't go back once you've started using them. James ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Incomplete file listing with Samba on ext2fs
Rainer Schwarze wrote: > I created 1000 files named "file000" ... "file0999" in a directory. I > could see all of them via Windows. > > I created 1000 files named "file-.file" ... "file-0999.file" in a > directory. I could see the first 130 files of them. Are you sure this is only happening with ext2fs? You might be running into a filename mangling limitation in Samba. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net <[EMAIL PROTECTED]> Furry Peace! - http://.fur.com/peace/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 6.2-release and azalia sound chipset
Hi, http://people.freebsd.org/~ariff/BINARY_MODULES/ just follow the README. Cheers, Oliver On Mon, Nov 05, 2007 at 10:51:37PM +0100, Nicolas Letellier wrote: > Hello, > > I installed 6.2 -release. I have the sound chipset azalia (Intel 82801H HD > Audio). > However, I don't find a module for this chipset. Where I can found it ? How > install it ? > > Thanks you, > > Nicolas > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" -- Harry's bar has a new cocktail. It's called MRS punch. They make it with milk, rum and sugar and it's wonderful. The milk is for vitality and the sugar is for pep. They put in the rum so that people will know what to do with all that pep and vitality. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
Roland, The mention of dump '-L' in your email below has caught my attention. Pardon my ignorance, but what is the '-L' option? I looked it up in the man pages but wasn't able to find any mention of it. Can you point me in the right direction? Thanks, - FX - Original Message > From: Roland Smith <[EMAIL PROTECTED]> > To: James <[EMAIL PROTECTED]> > Cc: Sean Murphy <[EMAIL PROTECTED]>; freebsd-questions@freebsd.org > Sent: Monday, November 5, 2007 4:58:47 PM > Subject: Re: Help Failing Disk Problem > > On Mon, Nov 05, 2007 at 03:16:46PM +, James wrote: > > > rsync is too high-level, and may not do exactly the right > thing > with > > > links or sparse files or who knows what. > > > > rsync -cav takes cares of symlinks and all that just right. It's a > > beautiful thing. > > > > Checksumming, too. Ah, bliss. > > It doesn't necessarily do the right thing with flags, acls and other > extended attributes, > > > > dd is too low-level--you get > > > the same partition table/bsdlabel and the exact > same > slice/partition > > > sizes. That's okay on an identical hard drive, but a pain on > one > that's > > > larger. > > > dump, on the other hand, is just right. > > > If the file names on the drive change during the dump, corruption can > > occur. At least on linux. I remember Torvalds ranting about it on a > > mailing list. I imagine FreeBSD suffers the same issue, though, > as > it's > > a pretty generic problem. > > For starters, you should _never_ dump a live filesystem. What you > can > do is > dump a snapshot of a live filesystem, using dumps '-L' option, > because > a > snapshot is like a frozen image of the filesystem; it doesn't change. > > Dump & restore is the best way to move data and all attributes to a > larger disk. See §9.2 of the FAQ. > > Roland > -- > R.F.Smith > http://www.xs4all.nl/~rsmith/ > [plain text _non-HTML_ PGP/GnuPG encrypted/signed email > much > appreciated] > pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 > (KeyID: > C321A725) > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ip6fw without ipfw?
So is it a bug or a feature that enabling ip6fw (/etc/rc.d/ip6fw start) also enables ipfw (the ipv4 version)? I didn't see it mentioned in IP6FW(8). It sure surprised me when I was exploring IPv6 setup and I enabled ip6fw without configuring the IPv4 rc.firewall. Locked me out of the remote system, because ssh won't let me log in on IPv6 (I'll post that question in another message), and ipfw came up and locked me out via IPv4. Forced me to go out and enjoy the nice weather yesterday instead of playing with IPv6 all day... - Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Incomplete file listing with Samba on ext2fs
Hi, I've set up a FreeBSD6.2 machine and moved my "file server disk" from a Linux system where it was used before. The disk uses ext2fs. In FreeBSD I can see all files, when looking at the samba shares from a Windows 2000 system, I do not see all files. I also do not see all files when using smbclient on FreeBSD. A test case went like that: I created 1000 files named "file000" ... "file0999" in a directory. I could see all of them via Windows. I created 1000 files named "file-.file" ... "file-0999.file" in a directory. I could see the first 130 files of them. I added this to my smb.conf, because I found related information on the web and this fixed some problems with incomplete directory listing which I encountered a few days ago: dos charset = CP850 unix charset = UTF-8 display charset = LOCALE When I copy my large list of files to a UFS volume, I can see the full listing via Windows. Apart from switching the ext2s to ufs, does someone has other suggestions for solving the problem? Do you suggest another group for this question? Thanks in advance and best wishes, Rainer -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Problem with Apache22
Yes, it's using prefork. I made no changes from the default install. The results of ldd for each of these yielded "libpthread.so.2 => /lib/libpthread.so.2" in each case except for php and libmysqlclient.so.15, which both returned nothing. Running apache in debug, attached to the console resulted in output of "Bus Error" and nothing else. The web logs showed no errors at all. -Original Message- From: Philip M. Gollucci [mailto:[EMAIL PROTECTED] Sent: Monday, November 05, 2007 3:42 PM To: Peter Uthoff Cc: Philip M. Gollucci; freebsd-questions@freebsd.org Subject: Re: Problem with Apache22 Which MPM did you use, if you didn't change it the default is prefork. how about: ldd /usr/local/sbin/httpd | egrep 'libthr|libpthread|libc_r' ldd /usr/local/libexec/mysqld | egrep 'libthr|libpthread|libc_r' ldd /usr/local/bin/php| egrep 'libthr|libpthread|libc_r' ldd /usr/local/lib/libaprutil-1.so.2 | egrep 'libthr|libpthread|libc_r' ldd /usr/local/lib/libapr-1.so.2 | egrep 'libthr|libpthread|libc_r' ldd /usr/local/lib/mysql/libmysqlclient.so.15 | \ egrep 'libthr|libpthread|libc_r' > WITHOUT_THREADS=true So it looks like you don't want threads. That makes things easier as its the simpler case. At any rate, you'll want the output of all the above to match. Nothing in the ktrace/kdump jumps out at me. Are you sure it crashed ? (and you were attached to the correct httpd child) httpd -X and/or httpd -DONE_PROCESS might be helpful for that. Philip M. Gollucci ([EMAIL PROTECTED]) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. This email was sent to you by Reuters, the global news and information company. To find out more about Reuters visit www.about.reuters.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Limited. Reuters Limited is part of the Reuters Group of companies, of which Reuters Group PLC is the ultimate parent company. Reuters Group PLC - Registered office address: The Reuters Building, South Colonnade, Canary Wharf, London E14 5EP, United Kingdom Registered No: 3296375 Registered in England and Wales ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
On Mon, Nov 05, 2007 at 11:53:13AM -0800, Sean Murphy wrote: > I have a FreeBSD 6.2 Release box with a single ide that has user data > and the FreeBSD OS on a hard disk that is failing. I need advice on the > best way to clone the entire disk (or at least the data) onto a larger > ide disk drive, then pull the failing disk and replace it with the > clone. What is the best way in FreeBSD to do that? If you can get the new disk physically installed and recognized and running before the old disk completely fails, then it should be no problem. Build the file systems on the new disk as you want them, then use dump/retore to move the data. The dump/restore needs to be done one filesystem at a time. NOTE: For best results, this should all be done in single user mode with no other thing running to avoid changes in files confusing things. It will work in full multi user mode, but you may get some files in indeterminate condition if they happen to change during the copy process. Either use sysinstall (/usr/sbin/sysinstall) to slice and partition the new drive and build file systems on it or do it yourself with fdisk, bsdlabel and newfs. Since you are using a larger drive, think out the sizes you want for the partitions on the new drive. I am guessing from the way you talk here, that the system is not dual booted with some other OS. Given that presumption: (This is right out of the bsdlabel man page, by the way. I just changed numbers and device names to fit the situation) NOTE: The dd-s below are just to make sure the label areas and such are wiped clean in case the manufacturer made some presumptions and wrote something there. They might not really be needed, but won't hurt anything and take just a moment. Create one large slice, marked bootable for FreeBSD: dd if=/dev/zero of=/dev/ad1 bs=512 count=1024 fdisk -BI da0 Write a basic label and boot record on the slice: dd if=/dev/zero of=/dev/ad1s1 bs=512 count=1024 bsdlabel -w -B ad1s1 Partition the slice by using the edit function of bsdlabel: bsdlabel -e ad1s1 This will put you in an edit screen with the beginnings of partition information. Ignore anything it might have before the lines that read: # /dev/ad1s1: 8 partitions: # size offsetfstype [fsize bsize bps/cpg] After that you will see a list of partitions. There should only be one 'c' partition listed. Do not change that line, but copy it enough times to have one for each partition you want. Lets say you want root, swap, /tmp, /usr, /var and /home. Then make it something like: # /dev/ad1s1: 8 partitions: # size offsetfstype [fsize bsize bps/cpg] a: 52428804.2BSD2048 16384 32776 b: 2572288* swap c: 783168750unused 0 0# "raw" part, don't edit d: 1048576*4.2BSD2048 16384 8 e: 4194304*4.2BSD2048 16384 28552 f: 6291456*4.2BSD2048 16384 28552 g:**4.2BSD2048 16384 28552 Then just :wq out of the edit session and your label is nicely written. Using the stars for offset and final size tells bsdlabel to calculate the offsets for you and make the last partition take up all the remaining available space. The first partition should have the offset specified as '0'.The numbers I have here are in 512 byte blocks and give the following sizes.Choose your own according to your needs. a: 256 MBI mount as / b: 1256 MBis swap d: 512 MBI mount as /tmp e: 2048 MBI mount as /usr f: 3072 MBI mount as /var g: Remainder MB I mount as /home Once that is finished, then you need to run new fs on each partition except the one for swap (b). eg. newfs a, d, e, f, g Generally, unless you need extra inodes for a lot of small files or expect only unusually large files, you can just take the defaults for newfs. so: newfs /dev/ad1s1a newfs /dev/ad1s1d newfs /dev/ad1s1e newfs /dev/ad1s1f newfs /dev/ad1s1g Now you need to make mount points for and mount each partition. Something like: mkdir /newroot mount /dev/ad1s1a /newroot mkdir /newusr mount /dev/ad1s1e /newusr mkdir /newvar mount /dev/ad1s1f /newvar mkdir /newhome mount /dev/ad1s1g /newhome You don't usually need to copy /tmp to the new disk, though you can do that if you want as well. Then do the dump/restore-s cd /newroot dump 0af - / | restore -rf - cd /newusr dump 0af - /usr | restore -rf - cd /newvar dump 0af - /var | restore -rf - cd /newhome dump 0af - /home | restore -rf - At the end of each dump it might ask you if you want to set permissions on . just answer no. I don't think it does that with the restore -r, but if it does, then answer no. After all this, you should be able to just physically switch the disks and boot on the new one. jerry > > Thanks > __
FreeBSD 6.2-release and azalia sound chipset
Hello, I installed 6.2 -release. I have the sound chipset azalia (Intel 82801H HD Audio). However, I don't find a module for this chipset. Where I can found it ? How install it ? Thanks you, Nicolas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OpenLDAP 2.3/pam_ldap/nss_ldap: not working in FreeBSD 7.0-PRE!
Ulrich Spoerlein wrote: Sorry for the late reply ... On Fri, 26.10.2007 at 20:16:45 +0200, O. Hartmann wrote: All right, here I am. nss_ldap.conf and ldap.conf are located in /usr/local/etc and are identical (link). I copied all tags I use and deleted commented out tags: Seems ok to me, though I don't claim to be an expert. This method has been recommended by many sites and tutorials, so I guess it should be approved ;-) The slapd.conf is this, comments roped: include /usr/local/etc/openldap/schema/core.schema include /usr/local/etc/openldap/schema/cosine.schema include /usr/local/etc/openldap/schema/nis.schema include /usr/local/etc/openldap/schema/inetorgperson.schema # additional schema include /usr/local/share/examples/samba/LDAP/samba.schema pidfile /var/run/openldap/slapd.pid argsfile/var/run/openldap/slapd.args logfile /var/log/slapd.log loglevel512 loglevel is a bitmask. It you want to have lots of debugging try 255 and run a tail -f /var/log/debug.log Thanks, I did so and found several usefull messages in the log. sizelimit unlimited allow bind_v2 modulepath /usr/local/libexec/openldap moduleload back_bdb everse-lookup off typo I guess? Sorry, yes, copy-and-paste mistake. NSCD is up and running, my nsswitch.conf looks like this: Please try without nscd first, it's just another possible source of problems. Due to a recommendation not to use NSCD with FreeBSD and SAMBA I switched that off. group: cache ldap[ unavail=continue notfound=continue ] files passwd: cache ldap [ unavail=continue notfound=continue ] files #group_compat: nis hosts: compat networks: files #passwd_compat: nis shells: files services: compat services_compat: nis protocols: files rpc: files And I changed some lines in /etc/pam.d/sshd,login,system,other like this *commented out due to system gets stuck forever when enab;ed nss_ldap/pam_ldap): I'm using softbind and a short timeout in ldap.conf/nss_ldap.conf to avoid this unresponsiveness. # Bind/connect timelimit bind_timelimit 3 # Reconnect policy: hard (default) will retry connecting to # the software with exponential backoff, soft will fail # immediately. #bind_policy hard bind_policy soft Also, make NSS work first, then turn to configuring PAM (at least, that's what I would do) Great!! That did the trick and it is very helpful in saving a lot of time and prevented me from loosing more hairs. Some errors from console: (At boot time) Oct 26 17:00:36 gauss kernel: Oct 26 17:00:36 gauss slapd[757]: nss_ldap: could not search LDAP server - Server is unavailable Expected. slapd want to change its user to ldap:ldap, which it needs to look up the UID for. Chicken & Egg. That's why I need to use soft bind+timeout on my (disconnected) laptop here. Oct 26 11:59:08 gauss kernel: Oct 26 11:59:08 gauss cron[13480]: nss_ldap: could not search LDAP server - Server is unavailable Oct 26 12:41:44 gauss kernel: Oct 26 12:41:44 gauss login: nss_ldap: could not search LDAP server - Server is unavailable That seems broken then. Is slapd running? Can you ldapsearch -Lx -h localhost? What's /var/log/debug.log telling you? Can you id(1) some ldap users? Does the output of 'getent group' and 'getent passwd' look reasonable? Too many switches switched at the same time, so I guess I messed up things and couldn't get a clear sight anymore. The point is, without any TLS the user authetication works fine for SSHD/LOGIN and SU, even password changes via a patched 'passwd' works fine, but when trying using TLS/OpenSSL everything gets messed up again, I'll report this at the end. The main reason for blocking access was the ACL misbehaviour. I took the example slapd.conf and especially the line describing access to everything access to * ... The line 'by anonymous auth' needs to be changed into 'by anonymous read' otherwise LDAP won't let you even access for authetication. I found this by watching exhaustive logs ... One point: what is about compile time options of OpenLDAP? Does LDAP forces itself using SSL although not configured explicitely in slapd.conf? No. It is purely optional. You would need certificates before it can even possibly start working anyways. Yes, but OpenLDAP openldap-server-2.3.38 seems to reject connections via TLS when used with self-signed certificacates. nss_ldap-1.257 <<=== openldap-client-2.3.38 openldap-server-2.3.38 pam_ldap-1.8.2 My other computer is running with nss_ldap-1.257 and showing no problems either. Cheers, Ulrich Spoerlein Well, thanks a lot for helping. At this moment OpenLDAP seems to work with the OpenLDAP-Clients (only) and for authetication via ssh/login. I tried to install the famous and often mentioned 'smbldap-tools' as recommended in many tutorials and I followed the setup instruc
Re: Help Failing Disk Problem
On Mon, Nov 05, 2007 at 03:16:46PM +, James wrote: > > rsync is too high-level, and may not do exactly the right thing with > > links or sparse files or who knows what. > > rsync -cav takes cares of symlinks and all that just right. It's a > beautiful thing. > > Checksumming, too. Ah, bliss. It doesn't necessarily do the right thing with flags, acls and other extended attributes, > > dd is too low-level--you get > > the same partition table/bsdlabel and the exact same slice/partition > > sizes. That's okay on an identical hard drive, but a pain on one that's > > larger. > > dump, on the other hand, is just right. > If the file names on the drive change during the dump, corruption can > occur. At least on linux. I remember Torvalds ranting about it on a > mailing list. I imagine FreeBSD suffers the same issue, though, as it's > a pretty generic problem. For starters, you should _never_ dump a live filesystem. What you can do is dump a snapshot of a live filesystem, using dumps '-L' option, because a snapshot is like a frozen image of the filesystem; it doesn't change. Dump & restore is the best way to move data and all attributes to a larger disk. See §9.2 of the FAQ. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpQI3Oof6eue.pgp Description: PGP signature
Re: Problem with Apache22
Which MPM did you use, if you didn't change it the default is prefork. how about: ldd /usr/local/sbin/httpd | egrep 'libthr|libpthread|libc_r' ldd /usr/local/libexec/mysqld | egrep 'libthr|libpthread|libc_r' ldd /usr/local/bin/php| egrep 'libthr|libpthread|libc_r' ldd /usr/local/lib/libaprutil-1.so.2 | egrep 'libthr|libpthread|libc_r' ldd /usr/local/lib/libapr-1.so.2 | egrep 'libthr|libpthread|libc_r' ldd /usr/local/lib/mysql/libmysqlclient.so.15 | \ egrep 'libthr|libpthread|libc_r' > WITHOUT_THREADS=true So it looks like you don't want threads. That makes things easier as its the simpler case. At any rate, you'll want the output of all the above to match. Nothing in the ktrace/kdump jumps out at me. Are you sure it crashed ? (and you were attached to the correct httpd child) httpd -X and/or httpd -DONE_PROCESS might be helpful for that. Philip M. Gollucci ([EMAIL PROTECTED]) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
On Mon, 2007-11-05 at 14:04 -0700, Warren Block wrote: > On Mon, 5 Nov 2007, James wrote: > > > On Mon, 2007-11-05 at 11:53 -0800, Sean Murphy wrote: > > > >> I have a FreeBSD 6.2 Release box with a single ide that has user data > >> and the FreeBSD OS on a hard disk that is failing. I need advice on the > >> best way to clone the entire disk (or at least the data) onto a larger > >> ide disk drive, then pull the failing disk and replace it with the > >> clone. What is the best way in FreeBSD to do that? > > > > The best way is to do it regularly before the hard drive is failing. > > > > Given that you haven't done that, there're a few methods. I'm a big fan > > of rsync, which is the nectar of the gods, but a lot of folks seem to > > prefer dd for this kind of thing. > > rsync is too high-level, and may not do exactly the right thing with > links or sparse files or who knows what. rsync -cav takes cares of symlinks and all that just right. It's a beautiful thing. Checksumming, too. Ah, bliss. > dd is too low-level--you get > the same partition table/bsdlabel and the exact same slice/partition > sizes. That's okay on an identical hard drive, but a pain on one that's > larger. > dump, on the other hand, is just right. > > -Warren Block * Rapid City, South Dakota USA dump has the problem that a lot of tools have, though, including rsync. It creates a file list to start from. If the file names on the drive change during the dump, corruption can occur. At least on linux. I remember Torvalds ranting about it on a mailing list. I imagine FreeBSD suffers the same issue, though, as it's a pretty generic problem. dump is a good tool, though, no arguments really here. James ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Digital video recommendations?
Has anyone had any good/bad experiences with digital video cards under xorg? I know it used to be problematic. Are there cards which are particularly well supported? Thanks! Rich ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Is there a way to compare what is in the ports tree with what is installed?
On Mon, 2007-11-05 at 14:53 +1300, Brett Davidson wrote: > ie. If I had a particular version of the ports tree on a server, how > could I check to see if any of the programs in that tree were actually > installed? > > Is there a simple command or sequence of commands to do this? Usually i search someting with Google before study man(1) carefully. Google is best friend for me. And below link is the last result: http://www.google.com/search?hl=en&q=pkg_version&btnG=Google+Search Sincerely, -- "Does this man have real balls?" "You're asking if he is a Sicilian." "NO." -- Vito Corleone and Tom Hagen, "Chapter 2", page 66-67 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
On Mon, 5 Nov 2007, James wrote: On Mon, 2007-11-05 at 11:53 -0800, Sean Murphy wrote: I have a FreeBSD 6.2 Release box with a single ide that has user data and the FreeBSD OS on a hard disk that is failing. I need advice on the best way to clone the entire disk (or at least the data) onto a larger ide disk drive, then pull the failing disk and replace it with the clone. What is the best way in FreeBSD to do that? The best way is to do it regularly before the hard drive is failing. Given that you haven't done that, there're a few methods. I'm a big fan of rsync, which is the nectar of the gods, but a lot of folks seem to prefer dd for this kind of thing. rsync is too high-level, and may not do exactly the right thing with links or sparse files or who knows what. dd is too low-level--you get the same partition table/bsdlabel and the exact same slice/partition sizes. That's okay on an identical hard drive, but a pain on one that's larger. dump, on the other hand, is just right. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ipv6 confusion
On 11/5/07, Aryeh M. Friedman <[EMAIL PROTECTED]> wrote: > I want to set my machine up to be on both IPv4 and IPv6. I have read > the stuff on 6over4 and such and still a little confused on a few things: > > 1. The machine I want to do the tunneling on is behind a NAT'ed firewall > how do I reliabelly obtain the external IP of the firewall (dhcp > assigned from cable company)? Probably the easiest method is to go to a web site that tells you what IP you are coming from, e.g. http://www.go6.net (just below the top banner). Or if you log in to your firewall it will be able to tell you its external IP number. > > 2. If the machine I want to do the tunneling with is the DMZ host for > the above FW do I need to add anything special to the FW's routing tables? 6to4 tunneling uses IP protocol type 41, so you need to tell your FW to permit protocol 41 traffic. TCP, UDP, ICMP, etc. are all different protocol types, so the syntax used to allow TCP traffic might work if you use "41" instead of "TCP". You may also need a way to tell your firewall to route all protocol 41 traffic to your IPv6 gateway system so it can receive all of your incoming IPv6 traffic. > > 3. I am a little confused on how to pick the other end of the tunnel and > how do I configure it once the first 2 items are solved?... The > confusion comes from how is an arbitary (by me [with in the restrictions > in stf(4)]) selected IPv6 IP supposed to be routable when IPv4 forces > me to use the one assigned to me by my upstream router? Pick the tunnel with the least delay! The other restrictions only mean that if you have more than one IPv6 system on your local network, they must have unique IPv6 addresses. At least, I think that's what they mean. This is the part of IPv6 over IPv4 that I haven't directly experimented with yet, so I can tell you what I think I understand, not what I've proven I understand, but here it is: You will run stf(4) on only one system on your LAN. That system becomes your gateway to the IPv6 world. Other systems on your LAN get other IPv6 addresses, all with the same initial 48 bits (I.E. they all use the same IPv4 address to construct their IPv6 address, but the rest of the address has to be different for each system in your LAN). Outside systems will send traffic for your LAN to the gateway system (the one running stf) and it will forward it accordingly. You will need to tell the stf system that it is supposed to perform that role, which for FreeBSD I think is accomplished by adding rtadvd_enable="YES" to /etc/rc.conf. You may (or may not) find it informative to read rtadvd(8). On all the other systems in your LAN, you just need to enable IPv6, and they will talk to rtadvd and configure themselves appropriately. At least, that's my understanding. So far I have not used stf -- instead I have used tunneling via the gw6c client and Freenet6 (i.e. http://www.go6.net). First install the net/gateway6 port. Edit /usr/local/etc/gw6c.conf and change the appropriate parts for an anonymous connection (the comments explain them - in fact that may be the default). Also set gw6c.conf so your system will be a router if you have other IPv6 systems on your LAN. Then run gw6c and it will set up the tunnel, and run rtadvd for you if appropriate. That should be all you have to do. Again, this is needed only on your gateway system, so all the other systems on your network need only have IPv6 enabled. It should also be obvious that both of these methods completely bypass your existing IPv4 firewall, so every system on your LAN will have unfirewalled exposure to the Internet, unless you run an IPv6 firewall as well. One advantage of using gw6c is that it can build a tunnel over protocol 41, over TCP, or over UDP. So if your firewall prevents you from getting a 6to4/stf tunnel working, try gw6c. I also found it easier to set up than figuring out what I needed to make stf work, but I'm about to set up an stf system so I can directly compare the two. If you like the gw6c method, go to http://www.go6.net and register for a free account. Then edit gw6c.conf with your account info and other appropriate changes, and restart it. You will be issued a permanent IPv6 address tied to your account, so that if your external IPv4 address changes your IPv6 addresses do not change. - Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
Try to connect the bad one as a secondary HD to get the data if u can not clone it.. Thanks Hakan http://dominor.com On Nov 5, 2007 3:50 PM, Derek Ragona <[EMAIL PROTECTED]> wrote: > At 01:53 PM 11/5/2007, Sean Murphy wrote: > >I have a FreeBSD 6.2 Release box with a single ide that has user data and > >the FreeBSD OS on a hard disk that is failing. I need advice on the best > >way to clone the entire disk (or at least the data) onto a larger ide disk > >drive, then pull the failing disk and replace it with the clone. What is > >the best way in FreeBSD to do that? > > > >Thanks > > If you buy a new disk most disk manufacturer's have cloning > software. However if you are having media failure errors it can be > difficult to get the data off. You may be able to just get the data you > need off this disk by copying to a new disk, or top tape, or a usb > disk. If you know what data you need like: /etc /usr/local/etc > /usr/local/data you may be better to just copy those trees off. > > -Derek > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > MailScanner thanks transtec Computers for their support. > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
On Mon, 5 Nov 2007, Sean Murphy wrote: I have a FreeBSD 6.2 Release box with a single ide that has user data and the FreeBSD OS on a hard disk that is failing. I need advice on the best way to clone the entire disk (or at least the data) onto a larger ide disk drive, then pull the failing disk and replace it with the clone. What is the best way in FreeBSD to do that? http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: multiple autoconf versions
On Mon, 5 Nov 2007, Pollywog wrote: I am running FreeBSD 6.2 and I discovered that I have four versions of autoconf installed. autoconf-2.13.000227_6 Automatically configure source code on many Un*x platforms autoconf-2.53_4 Automatically configure source code on many Un*x platforms autoconf-2.59_3 Automatically configure source code on many Un*x platforms autoconf-2.61_2 Automatically configure source code on many Un*x platforms Should I remove any of them? I know that in Linux, having more than one version of autoconf can cause problems, but I am not certain of what to do here. From /usr/ports/UPDATING: 20070930: AFFECTS: everyone AUTHOR: Mark Linimon <[EMAIL PROTECTED]> The ports tree has been migrated to the latest version of autoconf, 2.61. Versions 2.53 and 2.59 were declared obsolete and removed. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
At 01:53 PM 11/5/2007, Sean Murphy wrote: I have a FreeBSD 6.2 Release box with a single ide that has user data and the FreeBSD OS on a hard disk that is failing. I need advice on the best way to clone the entire disk (or at least the data) onto a larger ide disk drive, then pull the failing disk and replace it with the clone. What is the best way in FreeBSD to do that? Thanks If you buy a new disk most disk manufacturer's have cloning software. However if you are having media failure errors it can be difficult to get the data off. You may be able to just get the data you need off this disk by copying to a new disk, or top tape, or a usb disk. If you know what data you need like: /etc /usr/local/etc /usr/local/data you may be better to just copy those trees off. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help Failing Disk Problem
On Mon, 2007-11-05 at 11:53 -0800, Sean Murphy wrote: > I have a FreeBSD 6.2 Release box with a single ide that has user data > and the FreeBSD OS on a hard disk that is failing. I need advice on the > best way to clone the entire disk (or at least the data) onto a larger > ide disk drive, then pull the failing disk and replace it with the > clone. What is the best way in FreeBSD to do that? > > Thanks The best way is to do it regularly before the hard drive is failing. Given that you haven't done that, there're a few methods. I'm a big fan of rsync, which is the nectar of the gods, but a lot of folks seem to prefer dd for this kind of thing. There was a thread not long ago about how best to duplicate a drive. James ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: multiple autoconf versions
On Mon, 2007-11-05 at 19:48 +, Pollywog wrote: > I am running FreeBSD 6.2 and I discovered that I have four versions of > autoconf installed. > > autoconf-2.13.000227_6 Automatically configure source code on many Un*x > platforms > autoconf-2.53_4 Automatically configure source code on many Un*x platforms > autoconf-2.59_3 Automatically configure source code on many Un*x platforms > autoconf-2.61_2 Automatically configure source code on many Un*x platforms > > > Should I remove any of them? I know that in Linux, having more than one > version of autoconf can cause problems, but I am not certain of what to do > here. > > thanks > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" Reading /usr/ports/UPDATING says that yes, you *can*, but whether you *should* is another issue. I had a machine, though, that was crapping out on portupgrades, for which removing old versions of autoconf made things simpler to resolve. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Problem with Apache22
Hi Philip, Here is the information you requested about the Apache problems I have on my server. Thanks for the help! (The dump is at the end) # sysctl -h kern.sugid_coredump kern.sugid_coredump: 0 # sysctl -h kern.corefile kern.corefile: %N.core (No core files) ldd /usr/local/sbin/httpd /usr/local/sbin/httpd: libaprutil-1.so.2 => /usr/local/lib/libaprutil-1.so.2 (0x280c7000) libmysqlclient_r.so.15 => /usr/local/lib/mysql/libmysqlclient_r.so.15 (0x280dd000) libm.so.4 => /lib/libm.so.4 (0x28139000) libz.so.3 => /lib/libz.so.3 (0x28152000) libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x28163000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28181000) libapr-1.so.2 => /usr/local/lib/libapr-1.so.2 (0x28276000) libcrypt.so.3 => /lib/libcrypt.so.3 (0x28296000) libpthread.so.2 => /lib/libpthread.so.2 (0x282ae000) libc.so.6 => /lib/libc.so.6 (0x282d2000) ldd /usr/local/libexec/mysqld /usr/local/libexec/mysqld: libz.so.3 => /lib/libz.so.3 (0x28448000) libwrap.so.4 => /usr/lib/libwrap.so.4 (0x28459000) libcrypt.so.3 => /lib/libcrypt.so.3 (0x2846) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x28478000) libm.so.4 => /lib/libm.so.4 (0x2854b000) libpthread.so.2 => /lib/libpthread.so.2 (0x28564000) libc.so.6 => /lib/libc.so.6 (0x28588000) ldd /usr/local/bin/php /usr/local/bin/php: libcrypt.so.3 => /lib/libcrypt.so.3 (0x28265000) libm.so.4 => /lib/libm.so.4 (0x2827d000) libxml2.so.5 => /usr/local/lib/libxml2.so.5 (0x28296000) libz.so.3 => /lib/libz.so.3 (0x283a3000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x283b4000) libc.so.6 => /lib/libc.so.6 (0x284a9000) cd /var/db/pkg ; /bin/ls -1 apache* php5* mysql* mod_* apache-2.2.6_2: mysql-client-5.0.45_1: mysql-server-5.0.45_1: php5-5.2.4_1: php5-bcmath-5.2.4_1: php5-bz2-5.2.4_1: php5-calendar-5.2.4_1: php5-ctype-5.2.4_1: php5-curl-5.2.4_1: php5-dom-5.2.4_1: php5-extensions-1.1: php5-ftp-5.2.4_1: php5-gd-5.2.4_1: php5-gettext-5.2.4_1: php5-imap-5.2.4_1: php5-ldap-5.2.4_1: php5-mbstring-5.2.4_1: php5-mcrypt-5.2.4_1: php5-mhash-5.2.4_1: php5-mysql-5.2.4_1: php5-mysqli-5.2.4_1: php5-ncurses-5.2.4_1: php5-openssl-5.2.4_1: php5-pcre-5.2.4_1: php5-pdo-5.2.4_1: php5-posix-5.2.4_4: php5-session-5.2.4_1: php5-shmop-5.2.4_1: php5-simplexml-5.2.4_1: php5-soap-5.2.4_1: php5-spl-5.2.4_1: php5-sqlite-5.2.4_1: php5-xml-5.2.4_1: php5-xmlreader-5.2.4_1: php5-xmlrpc-5.2.4_1: php5-xmlwriter-5.2.4_1: php5-zlib-5.2.4_1: cat /var/db/ports/apache22/options # This file is auto-generated by 'make config'. # No user-servicable parts inside! # Options for apache-2.2.6_2 _OPTIONS_READ=apache-2.2.6_2 WITHOUT_APR_FROM_PORTS=true WITHOUT_THREADS=true WITH_MYSQL=true WITHOUT_PGSQL=true WITHOUT_SQLITE=true WITHOUT_IPV6=true WITHOUT_PCRE_FROM_PORTS=true WITH_AUTH_BASIC=true WITH_AUTH_DIGEST=true WITH_AUTHN_FILE=true WITHOUT_AUTHN_DBD=true WITH_AUTHN_DBM=true WITH_AUTHN_ANON=true WITH_AUTHN_DEFAULT=true WITH_AUTHN_ALIAS=true WITH_AUTHZ_HOST=true WITH_AUTHZ_GROUPFILE=true WITH_AUTHZ_USER=true WITH_AUTHZ_DBM=true WITH_AUTHZ_OWNER=true WITH_AUTHZ_DEFAULT=true WITH_CACHE=true WITH_DISK_CACHE=true WITH_FILE_CACHE=true WITHOUT_MEM_CACHE=true WITH_DAV=true WITH_DAV_FS=true WITHOUT_BUCKETEER=true WITHOUT_CASE_FILTER=true WITHOUT_CASE_FILTER_IN=true WITHOUT_EXT_FILTER=true WITHOUT_LOG_FORENSIC=true WITHOUT_OPTIONAL_HOOK_EXPORT=true WITHOUT_OPTIONAL_HOOK_IMPORT=true WITHOUT_OPTIONAL_FN_IMPORT=true WITHOUT_OPTIONAL_FN_EXPORT=true WITHOUT_LDAP=true WITHOUT_AUTHNZ_LDAP=true WITH_ACTIONS=true WITH_ALIAS=true WITH_ASIS=true WITH_AUTOINDEX=true WITH_CERN_META=true WITH_CGI=true WITH_CHARSET_LITE=true WITHOUT_DBD=true WITH_DEFLATE=true WITH_DIR=true WITH_DUMPIO=true WITH_ENV=true WITH_EXPIRES=true WITH_HEADERS=true WITH_IMAGEMAP=true WITH_INCLUDE=true WITH_INFO=true WITH_LOG_CONFIG=true WITH_LOGIO=true WITH_MIME=true WITH_MIME_MAGIC=true WITH_NEGOTIATION=true WITH_REWRITE=true WITH_SETENVIF=true WITH_SPELING=true WITH_STATUS=true WITH_UNIQUE_ID=true WITH_USERDIR=true WITH_USERTRACK=true WITH_VHOST_ALIAS=true WITH_FILTER=true WITH_VERSION=true WITHOUT_PROXY=true WITHOUT_PROXY_CONNECT=true WITHOUT_PROXY_FTP=true WITHOUT_PROXY_HTTP=true WITHOUT_PROXY_AJP=true WITHOUT_PROXY_BALANCER=true WITH_SSL=true WITHOUT_SUEXEC=true WITHOUT_CGID=true 84893 httpdRET break 0 84893 httpdCALL open(0x2888445b,0,0) 84893 httpdNAMI "/dev/urandom" 84893 httpdRET open 24/0x18 84893 httpdCALL read(0x18,0xbfbfe16c,0x4) 84893 httpdGIO fd 24 read 4 bytes 0x 868a afe9|| 84893 httpdRET read 4 84893 httpdCALL close(0x18) 84893 httpdRET close 0 84893 httpdCALL open(0x2888445b,0,0) 84893 httpdNAMI "/dev/urandom" 84893 httpdRET open 24/0x1
Re: How to write a condition in Bourne shell
while [ $? -ne 0 -a $retry -gt 0 ] do ... done should do the work Am Montag 05 November 2007 07:03 schrieb Olivier Nicole: > Hi, > > I am a lame Bourne sheel programmer, how to write: > > while [ ( $? -ne 0 ) -a ( $retry -gt 0 ) ] ; do > > that should execute as long as $? is not null and $retry is greater > than 0? > > TIA, > > Olivier > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" pgprwqoiKJ4BN.pgp Description: PGP signature
multiple autoconf versions
Pollywog writes: > I am running FreeBSD 6.2 and I discovered that I have four versions of > autoconf installed. > > autoconf-2.13.000227_6 Automatically configure source code on many Un*x > platforms > autoconf-2.53_4 Automatically configure source code on many Un*x > platforms > autoconf-2.59_3 Automatically configure source code on many Un*x > platforms > autoconf-2.61_2 Automatically configure source code on many Un*x > platforms > > > Should I remove any of them? I know that in Linux, having more > than one version of autoconf can cause problems, but I am not > certain of what to do here. What I would do: 1) for each version, run "pkg_info -R " If this returns empty, it should be safe to delete. 2) for each remaining version, run "portupgrade -r " Warning: autoconf is required by automake, which is used by great heaping gobs of stuff. There is a minute possibility any upgrade will break something. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Help Failing Disk Problem
I have a FreeBSD 6.2 Release box with a single ide that has user data and the FreeBSD OS on a hard disk that is failing. I need advice on the best way to clone the entire disk (or at least the data) onto a larger ide disk drive, then pull the failing disk and replace it with the clone. What is the best way in FreeBSD to do that? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
multiple autoconf versions
I am running FreeBSD 6.2 and I discovered that I have four versions of autoconf installed. autoconf-2.13.000227_6 Automatically configure source code on many Un*x platforms autoconf-2.53_4 Automatically configure source code on many Un*x platforms autoconf-2.59_3 Automatically configure source code on many Un*x platforms autoconf-2.61_2 Automatically configure source code on many Un*x platforms Should I remove any of them? I know that in Linux, having more than one version of autoconf can cause problems, but I am not certain of what to do here. thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portupgrade questions
Aryeh M. Friedman wrote: Here is a script I use to automate the procedure I posted in the previous reply: #!/bin/sh cd /usr/src csup ports-supfile csup standard-supfile cd patchs # optional ./apply # optional portupgrade -a ?? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck and memory filesytems (fsck_mfs: No such file or directory)
On Mon, 05 Nov 2007 18:54:31 + Christopher Key wrote: > Boris Samorodov wrote: > > On Mon, 05 Nov 2007 17:00:06 + Christopher Key wrote: > > > >> # cat /etc/fstab > >> # DeviceMountpoint FStype Options Dump > >> Pass# > >> /dev/ad8s1b noneswapsw 0 0 > >> /dev/ad8s1a / ufs rw 1 1 > >> md /tmpmfs rw,-s64m > >> 2 2 > >> > > ^^^ [1] > > > > > >> /dev/ad8s1f /usrufs rw 2 2 > >> /dev/ad8s1e /varufs rw 2 2 > >> /dev/ad8s1d /var/tmpufs rw 3 3 > >> > > ^^ > > [2] > > > >> /dev/mirror/gm0s1d /svnufs rw 2 2 > >> /dev/mirror/gm0s2d /data ufs rw 2 2 > >> /dev/mirror/gm0s3d /music ufs rw 2 2 > > > >> I can get the system to boot quite happily by carrying on into single > >> user mode and exiting, but I still get the same behaviour next reboot. > > > >> Does anyone have any suggestions? > > > > [1] According to man(5) fstab: > > - > > The sixth field, (fs_passno), is used by the fsck(8) program to > > determine > > the order in which file system checks are done at reboot time. The > > root > > file system should be specified with a fs_passno of 1, and other file > > systems should have a fs_passno of 2. File systems within a drive will > > be checked sequentially, but file systems on different drives will be ^^^ [*] > > checked at the same time to utilize parallelism available in the hard- > > ware. If the sixth field is not present or is zero, a value of zero is > > returned and fsck(8) will assume that the file system does not need to > > be > > checked. > > - > > > > Seems that you need to use "0" istead of "2". I'd say the same for the > > fifth field here. > > > > BTW, I can't find what does [2] mean (the values "3" here)... > > > Thanks Boris, Daniel, > Setting the pass# to 0 for /tmp worked perfectly. > The reason for having a pass# of 3 for /var/tmp was, to put it > succinctly, because it was mounted within a filesystem with a pass# of > 2. > My understanding was that the fsck didn't start to check a filesystem > with a pass# of n+1 until it had successfully checked all those with a > pass# of n. I expected that you would always want to make sure that, > before checking some filesystem, you ensured that its mount point was > valid first, and hence gave it a greater pass# that the filesystem in > which it gets mounted. Hence / having a pass# of 1, and /usr/ var etc > having a pass# of 2. > If anyone knows otherwise, I'd appreciate the correction. Let me point to the same lines of man(5) fstab. Please look at [*]. Sequentally (as one writes at a /etc/fstab file) within a drive, just it. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck and memory filesytems (fsck_mfs: No such file or directory)
Boris Samorodov wrote: On Mon, 05 Nov 2007 17:00:06 + Christopher Key wrote: I recently had a powercut to my FreeBSD home server, and I'm now getting the following messages at startup: Starting file system checks: /dev/ad8s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad8s1a: clean, 466797 free (2837 frags, 57995 blocks, 0.6% fragmentation) fsck: exec fsck_mfs for md in /sbin:/usr/sbin: No such file or directory fsck: exec fsck_mfs for md in /sbin:/usr/sbin: No such file or directory /dev/ad8s1f: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad8s1f: clean, 214294022 free (173430 frags, 26765074 blocks, 0.1% fragmentation) /dev/mirror/gm0s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0s1d: clean, 16121593 free (1441 frags, 2015019 blocks, 0.0% fragmentation) /dev/mirror/gm0s2d: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0s2d: clean, 63140067 free (4187 frags, 7891985 blocks, 0.0% fragmentation) /dev/ad8s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad8s1e: clean, 8049657 free (1169 frags, 1006061 blocks, 0.0% fragmentation) /dev/mirror/gm0s3d: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0s3d: clean, 84638779 free (1779 frags, 10579625 blocks, 0.0% fragmentation) /dev/ad8s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad8s1d: clean, 6625471 free (47 frags, 828178 blocks, 0.0% fragmentation) THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY: mfs: md (/tmp) Unknown error; help! NEnter full pathname of shell or RETURN for /bin/sh: The problem is, I'm sure, is essentially identical to that described in, http://www.mail-archive.com/[EMAIL PROTECTED]/msg21675.html namely that the entry for the memory filesystem, /tmp, in /etc/fstab is confusing fsck. My /etc/fstab looks like, # cat /etc/fstab # DeviceMountpoint FStype Options Dump Pass# /dev/ad8s1b noneswapsw 0 0 /dev/ad8s1a / ufs rw 1 1 md /tmpmfs rw,-s64m 2 2 ^^^ [1] /dev/ad8s1f /usrufs rw 2 2 /dev/ad8s1e /varufs rw 2 2 /dev/ad8s1d /var/tmpufs rw 3 3 ^^ [2] /dev/mirror/gm0s1d /svnufs rw 2 2 /dev/mirror/gm0s2d /data ufs rw 2 2 /dev/mirror/gm0s3d /music ufs rw 2 2 I can get the system to boot quite happily by carrying on into single user mode and exiting, but I still get the same behaviour next reboot. Does anyone have any suggestions? [1] According to man(5) fstab: - The sixth field, (fs_passno), is used by the fsck(8) program to determine the order in which file system checks are done at reboot time. The root file system should be specified with a fs_passno of 1, and other file systems should have a fs_passno of 2. File systems within a drive will be checked sequentially, but file systems on different drives will be checked at the same time to utilize parallelism available in the hard- ware. If the sixth field is not present or is zero, a value of zero is returned and fsck(8) will assume that the file system does not need to be checked. - Seems that you need to use "0" istead of "2". I'd say the same for the fifth field here. BTW, I can't find what does [2] mean (the values "3" here)... WBR Thanks Boris, Daniel, Setting the pass# to 0 for /tmp worked perfectly. The reason for having a pass# of 3 for /var/tmp was, to put it succinctly, because it was mounted within a filesystem with a pass# of 2. My understanding was that the fsck didn't start to check a filesystem with a pass# of n+1 until it had successfully checked all those with a pass# of n. I expected that you would always want to make sure that, before checking some filesystem, you ensured that its mount point was valid first, and hence gave it a greater pass# that the filesystem in which it gets mounted. Hence / having a pass# of 1, and /usr/ var etc having a pass# of 2. If anyone knows otherwise, I'd appreciate the correction. Regards, Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck and memory filesytems (fsck_mfs: No such file or directory)
On Mon, Nov 05, 2007 at 05:00:06PM +, Christopher Key wrote: > The problem is, I'm sure, is essentially identical to that described in, > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg21675.html > > namely that the entry for the memory filesystem, /tmp, in /etc/fstab is > confusing fsck. My /etc/fstab looks like, > > # cat /etc/fstab > # DeviceMountpoint FStype Options Dump > Pass# > /dev/ad8s1b noneswapsw 0 0 > /dev/ad8s1a / ufs rw 1 1 > md /tmpmfs rw,-s64m > 2 2 > /dev/ad8s1f /usrufs rw 2 2 > /dev/ad8s1e /varufs rw 2 2 > /dev/ad8s1d /var/tmpufs rw 3 3 > /dev/mirror/gm0s1d /svnufs rw 2 2 > /dev/mirror/gm0s2d /data ufs rw 2 2 > /dev/mirror/gm0s3d /music ufs rw 2 2 > > I can get the system to boot quite happily by carrying on into single > user mode and exiting, but I still get the same behaviour next reboot. > > Does anyone have any suggestions? mount_mfs(8), in the EXAMPLES section, says this: Create and mount a 32 megabyte swap-backed file system on /tmp: mdmfs -s 32m md /tmp The same file system created as an entry in /etc/fstab: md /tmp mfs rw,-s32m 2 0 Try setting the passno field (the last one) to 0, and see how that works. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgpw4z8mZSrkD.pgp Description: PGP signature
Re: fsck and memory filesytems (fsck_mfs: No such file or directory)
On Mon, 05 Nov 2007 17:00:06 + Christopher Key wrote: > I recently had a powercut to my FreeBSD home server, and I'm now > getting the following messages at startup: > Starting file system checks: > /dev/ad8s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS > /dev/ad8s1a: clean, 466797 free (2837 frags, 57995 blocks, 0.6% > fragmentation) > fsck: exec fsck_mfs for md in /sbin:/usr/sbin: No such file or directory > fsck: exec fsck_mfs for md in /sbin:/usr/sbin: No such file or directory > /dev/ad8s1f: FILE SYSTEM CLEAN; SKIPPING CHECKS > /dev/ad8s1f: clean, 214294022 free (173430 frags, 26765074 blocks, > 0.1% fragmentation) > /dev/mirror/gm0s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS > /dev/mirror/gm0s1d: clean, 16121593 free (1441 frags, 2015019 blocks, > 0.0% fragmentation) > /dev/mirror/gm0s2d: FILE SYSTEM CLEAN; SKIPPING CHECKS > /dev/mirror/gm0s2d: clean, 63140067 free (4187 frags, 7891985 blocks, > 0.0% fragmentation) > /dev/ad8s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS > /dev/ad8s1e: clean, 8049657 free (1169 frags, 1006061 blocks, 0.0% > fragmentation) > /dev/mirror/gm0s3d: FILE SYSTEM CLEAN; SKIPPING CHECKS > /dev/mirror/gm0s3d: clean, 84638779 free (1779 frags, 10579625 blocks, > 0.0% fragmentation) > /dev/ad8s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS > /dev/ad8s1d: clean, 6625471 free (47 frags, 828178 blocks, 0.0% > fragmentation) > THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY: >mfs: md (/tmp) > Unknown error; help! > NEnter full pathname of shell or RETURN for /bin/sh: > The problem is, I'm sure, is essentially identical to that described in, > http://www.mail-archive.com/[EMAIL PROTECTED]/msg21675.html > namely that the entry for the memory filesystem, /tmp, in /etc/fstab > is confusing fsck. My /etc/fstab looks like, > # cat /etc/fstab > # DeviceMountpoint FStype Options Dump > Pass# > /dev/ad8s1b noneswapsw 0 0 > /dev/ad8s1a / ufs rw 1 1 > md /tmpmfs rw,-s64m > 2 2 ^^^ [1] > /dev/ad8s1f /usrufs rw 2 2 > /dev/ad8s1e /varufs rw 2 2 > /dev/ad8s1d /var/tmpufs rw 3 3 ^^ [2] > /dev/mirror/gm0s1d /svnufs rw 2 2 > /dev/mirror/gm0s2d /data ufs rw 2 2 > /dev/mirror/gm0s3d /music ufs rw 2 2 > I can get the system to boot quite happily by carrying on into single > user mode and exiting, but I still get the same behaviour next reboot. > Does anyone have any suggestions? [1] According to man(5) fstab: - The sixth field, (fs_passno), is used by the fsck(8) program to determine the order in which file system checks are done at reboot time. The root file system should be specified with a fs_passno of 1, and other file systems should have a fs_passno of 2. File systems within a drive will be checked sequentially, but file systems on different drives will be checked at the same time to utilize parallelism available in the hard- ware. If the sixth field is not present or is zero, a value of zero is returned and fsck(8) will assume that the file system does not need to be checked. - Seems that you need to use "0" istead of "2". I'd say the same for the fifth field here. BTW, I can't find what does [2] mean (the values "3" here)... WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
fsck and memory filesytems (fsck_mfs: No such file or directory)
Hello, I recently had a powercut to my FreeBSD home server, and I'm now getting the following messages at startup: Starting file system checks: /dev/ad8s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad8s1a: clean, 466797 free (2837 frags, 57995 blocks, 0.6% fragmentation) fsck: exec fsck_mfs for md in /sbin:/usr/sbin: No such file or directory fsck: exec fsck_mfs for md in /sbin:/usr/sbin: No such file or directory /dev/ad8s1f: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad8s1f: clean, 214294022 free (173430 frags, 26765074 blocks, 0.1% fragmentation) /dev/mirror/gm0s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0s1d: clean, 16121593 free (1441 frags, 2015019 blocks, 0.0% fragmentation) /dev/mirror/gm0s2d: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0s2d: clean, 63140067 free (4187 frags, 7891985 blocks, 0.0% fragmentation) /dev/ad8s1e: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad8s1e: clean, 8049657 free (1169 frags, 1006061 blocks, 0.0% fragmentation) /dev/mirror/gm0s3d: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mirror/gm0s3d: clean, 84638779 free (1779 frags, 10579625 blocks, 0.0% fragmentation) /dev/ad8s1d: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad8s1d: clean, 6625471 free (47 frags, 828178 blocks, 0.0% fragmentation) THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY: mfs: md (/tmp) Unknown error; help! NEnter full pathname of shell or RETURN for /bin/sh: The problem is, I'm sure, is essentially identical to that described in, http://www.mail-archive.com/[EMAIL PROTECTED]/msg21675.html namely that the entry for the memory filesystem, /tmp, in /etc/fstab is confusing fsck. My /etc/fstab looks like, # cat /etc/fstab # DeviceMountpoint FStype Options Dump Pass# /dev/ad8s1b noneswapsw 0 0 /dev/ad8s1a / ufs rw 1 1 md /tmpmfs rw,-s64m 2 2 /dev/ad8s1f /usrufs rw 2 2 /dev/ad8s1e /varufs rw 2 2 /dev/ad8s1d /var/tmpufs rw 3 3 /dev/mirror/gm0s1d /svnufs rw 2 2 /dev/mirror/gm0s2d /data ufs rw 2 2 /dev/mirror/gm0s3d /music ufs rw 2 2 I can get the system to boot quite happily by carrying on into single user mode and exiting, but I still get the same behaviour next reboot. Does anyone have any suggestions? Regards, Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: 6.2 and random reboots
At 09:37 AM 11/5/2007, Darryl Hoar wrote: Greetings, I am trying to figure out why my freebsd 6.2 server has started randomly rebooting. I look at dmesg and see nothing out of the ordinary. Not sure if it is hardware or the OS. Ideas for troubleshooting greatly appreciated. -Darryl I would suggest you run GENERIC if you are not. Turn off any rc scripts you don't need. Run diagnostics on the hardware and memtest. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Rebuilding kernel/system to a state "back-in-time"?
Quoting Erik Cederstrand <[EMAIL PROTECTED]>: Should be tag=RELENG_6_2 ... That should suffice. This assumes you're already running 6.2. As long as you don't switch branches (or choose a date before the branch occurred!), you should be good to go. Erik i would agree with erik's advice, as IMO its quite sound (when it comes to operating a server as opposed to a desktop). however, i would add this detail so that there can be some what and why to go with it: RELENG_6_2 will take you to 6.2-RELEASE-p8. it *will* be back in time, but it will be only 'critical' patches since the intial 6.2-RELEASE. IMO, (and forgive me, i generally dont spew my opinions where they arent welcome or asked for), RELENG_6_2 is better for a server over RELENG_6 (aka, -STABLE), as it doesnt include items that are not critically required for secure and stable operation. remember, that the true -STABLE branch has items merged in from -CURRENT (call it back-ported?). let say, you already know that -p8 is the latest 6.2 revision. you get on a server, you log in, and it says 6.2-RELEASE-p8. you already know that this system is up to date. if you log in, and see 6.2-STABLE... you dont immediately know when this system was last rebuilt without doing some other version checks first. i have to be honest, when it comes to managing a farm full of servers, i like my "visual version checks"... the same way i like my women: easy. cheers, -- Jonathan Horne DFWLP Network Consulting Services [EMAIL PROTECTED] http://www.dfwlp.com 214.287.4373 - mobile This message was sent using IMP, the Internet Messaging Program. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: nspluginwrapper + linux-flashplugin7 broken?
Written by Richard (Rick) Seay on 11/04/07 10:02>> > After upgrading to xorg-7.3_1, linux-flashplugin-7.0r70 and > nspluginwrapper-0.9.91.5 stopped working. I get a blank area on the > screen where the flash content should be, and the following error > messages: > > The program 'npviewer.bin' received an X Window System error. > This probably reflects a bug in the program. > The error was 'BadMatch (invalid parameter attributes)'. > (Details: serial 84 error_code 8 request_code 147 minor_code 3) > (Note to programmers: normally, X errors are reported asynchronously; > that is, you will receive the error a while after causing it. > To debug your program, run it with the --sync command line > option to change this behavior. You can then get a meaningful > backtrace from your debugger if you break on the gdk_x_error() function.) > *** NSPlugin Wrapper *** ERROR: NPP_SetWindow() invoke: Connection closed > *** NSPlugin Wrapper *** ERROR: NPP_SetWindow() invoke: Connection closed > *** NSPlugin Wrapper *** ERROR: NPP_NewStream() invoke: Connection closed > *** NSPlugin Wrapper *** ERROR: NPP_New() invoke: Connection closed > ... > > Anyone else having this problem? Yes. What's extremely odd about this error that I've noticed is that if I run the firefox client from a linux Xorg display flash works perfectly. I am not sure what that means. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portupgrade questions
The thing you should be doing first is checking /usr/ports/UPDATING. Major things can change, and portupgrade may not be able to handle them without help. Ah, i c. I am starting to make sense out of some of this from my fighting around on this. The "-f" option to pkg_delete/pkg_deinstall will force it to do the action, even if there are dependencies. Sometimes it's the only way. There's also the -o option to portupgrade. As for a tutorial: first, check UPDATING. Then the command man page. If necessary, a web search. I have done some web searching, but haven't found anything that has everything in one place (including the Handbook). Once I emerge from all of this, I might take a stab at writing up something for N00bs to help them learn some of the things that I have figured out the hard way I can't remember what I did for this particular upgrade, but do remember deleting some of the older autoconf ports manually. I suspect you could delete all of them (and maybe some or all of the automake ports) and then just deinstall and install autotools. (Like pkg_delete -f, "make deinstall" in a port will ignore dependencies and just go ahead.) After you do all that, you'll probably need to run pkgdb -F to fix or at least check dependencies. Very helpful! Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: apache-2.2.6 not installing [solved]
response in line below Jason Bourne wrote: Noah wrote: Hi List, Not receive good support on the ports mail list so I will post here now. Might somebody please explain to me why apache-2.2.6 is not install from /usr/ports ? I am attempting to complile with mod_ldap and a bunch of modules - nothing that should be causing a fuss, though. All shell output is below including error message. Help please, Noah [snip] Installing configuration files Installing HTML documents *** Error code 1 Stop in /usr/ports/www/apache22/work/httpd-2.2.6. *** Error code 1 Stop in /usr/ports/www/apache22/work/httpd-2.2.6. *** Error code 1 Stop in /usr/ports/www/apache22. *** Error code 1 Stop in /usr/ports/www/apache22. Sorry to reply by email but I'm not subscribed. I had this problem last night. This is a workaround and not a true fix, but it's quick. After doing make and prior to make install navigate to and open with an editor: /usr/ports/www/apache22/work/httpd-2.2.6/Makefile Look for line 126: install-htdocs: # @echo Installing HTML documents ; \ # $(MKINSTALLDIRS) $(DESTDIR)$(htdocsdir) ; \ # test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp index.html #$(DESTDIR)$(EXAMPLESDIR)) && \ # ( [ ! -f $(DESTDIR)$(htdocsdir)/index.html ] && cp -p #$(DESTDIR)$(EXAMPLESDIR)/index.html $(DESTDIR)$(htdocsdir)/index.html) Comment out the lines like above and then make install will skip over this and complete. thanks Jason - please respond to the list in the future so other can see the fixture. I suppose commenting out brokenness is a solution. Cheers, Noah -Jason ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
6.2 and random reboots
Greetings, I am trying to figure out why my freebsd 6.2 server has started randomly rebooting. I look at dmesg and see nothing out of the ordinary. Not sure if it is hardware or the OS. Ideas for troubleshooting greatly appreciated. -Darryl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Is there a way to compare what is in the ports tree with what is installed?
On Mon, Nov 05, 2007 at 02:36:00AM +, Pollywog wrote: > On Monday 05 November 2007 02:04:39 Robert Huff wrote: > > Brett Davidson writes: > > > ie. If I had a particular version of the ports tree on a server, > > > how could I check to see if any of the programs in that tree were > > > actually installed? > > > > > > Is there a simple command or sequence of commands to do this? > > > > dir /var/d/pkg | grep > > My Linux systems have a "dir" command but my FreeBSD does not. > Is there something I need to install? Yes, just install your own alias. For example, in my .cshrc file for the accounts I use I put: alias dir ls -lAF and then I have a dir. I also alias ls to: alias ls ls -F and lo to: alias lo logout and numerous others. That is the normal way of creating these simple things. jerry > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DNS and IP
On Sun, Nov 04, 2007 at 06:00:27PM -0500, Brian Finniff wrote: > > My question is, if you are running a website for 2 different people on the > Internet and they both wanted to acquire a domain but you only have one IP > address, would it be possible to forward each domain to the same IP address > and somehow each one becomes distinct? If so, how is this possible? Can you > explain to me how it can be done. > It sounds like you want to set up name based virtual hosts. That is SOP for many servers. It is documented. You would also have to deal with the name server issues to get the web stuff (ports 80 and 443) directed to your single IP. If you do the name service, that is easy. If you have to beg another service, then that could be the hardest part. jerry > Oh and for reference, I am not talking about web redirects. > > _ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Rebuilding kernel/system to a state "back-in-time"?
Ewald Jenisch wrote: Hi, Because of severe problems wrt. a third party app (TSM Backup - see my previous post) I'm looking for a way to compile a kernel/system to a state as it was several weeks ago. To be specific I'd like to build my system/kernel using the source-files of FreeBSD 6.2 as they were back on September 14, 2007. In cvsup there seems to be a feature "date=..." that should be able to accomplish this. Has anybody out there used it sucessfully? Is specifying date=2007.09.13.23.59.00 together with the default-settings in my stable-cvsup-file *default host= *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_5 Should be tag=RELENG_6_2 *default delete use-rel-suffix *default compress src-all enough? That should suffice. Anything else to consider? This assumes you're already running 6.2. As long as you don't switch branches (or choose a date before the branch occurred!), you should be good to go. Erik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Rebuilding kernel/system to a state "back-in-time"?
Ewald Jenisch writes: > To be specific I'd like to build my system/kernel using the > source-files of FreeBSD 6.2 as they were back on September 14, > 2007. > > In cvsup there seems to be a feature "date=..." that should be > able to accomplish this. Has anybody out there used it > sucessfully? Is specifying > > date=2007.09.13.23.59.00 I've used this with ports, and it works as descried. Be careful it doesn't conflict with other settings, and you should be fine. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Rebuilding kernel/system to a state "back-in-time"?
Hi, Because of severe problems wrt. a third party app (TSM Backup - see my previous post) I'm looking for a way to compile a kernel/system to a state as it was several weeks ago. To be specific I'd like to build my system/kernel using the source-files of FreeBSD 6.2 as they were back on September 14, 2007. In cvsup there seems to be a feature "date=..." that should be able to accomplish this. Has anybody out there used it sucessfully? Is specifying date=2007.09.13.23.59.00 together with the default-settings in my stable-cvsup-file *default host= *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_5 *default delete use-rel-suffix *default compress src-all enough? Anything else to consider? Thanks much in advance for any clue, -ewald ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Configure to use WITH_DEBUG
White Hat escribió: In response to White Hat : I have a system that I am setting up that will only be used to test programs. I therefore want all programs built with debug code. To facilitate that task, I was wondering if I could put a global flag in the '/etc/make.conf' file. Assuming that would work, which of these is the better solution. 1) WITH_DEBUG 2) WITH_DEBUG=1 3) WITH_DEBUG=true 4) -DWITH_DEBUG If there is a better solution, I would appreciate hearing about it. #2 and #3 will work. The key is that the variable is set, not what it's set to. As a joke, you can do WITH_DEBUG=no in make.conf, and confuse the hell out of other sysadmins. Note that there may be additional port-specific debugging that would not be turned on by the global WITH_DEBUG, but you'll have to handle that on a port-by-port basis. -- Bill Moran http://www.potentialtech.com Interesting. Now if I want to turn DEBUG off for a particular port, would I use: 1)WITH_DEBUG 2)WITH_DEBUG= 3)WITH_DEBUG="" #2 or #3. Also, take a look at ports-mgmt/portconf. One other question. From what I have been reading, the use of 'WITH_DEBUG' also prevents the stripping of debug code when the program is installed. Is that correct, or do I have to use another flag to insure that debug code is not stripped from the installed program? Yes, it's true. There might be some weird ports, which do things in a non-standard way, this might not apply to those, but for the most of our ports, which respect the most important macros, it is going to work. -- Gabor Kovesdan FreeBSD Volunteer EMAIL: [EMAIL PROTECTED] .:|:. [EMAIL PROTECTED] WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: tar Ignoring out-of-order file What Does that Mean?
Jonathan McKeown writes: > [that was me - I'm glad I was of some help] Most definitely. You've been a tremendous help but I am still stuck and I believe all issues are known except this one. I should know when the unpacking/packing part is working by unpacking the FreeBSD iso image and then repacking it without doing anything at all. This should give me an iso image that is the same size as the good one and probably a byte-for-byte copy of the original. I did as you suggested and here is what happened. First, I created a directory called image and cd'd there. $ ls It's empty as it should be. $ ln -s usr/src/sys sys $ ls -l total 0 lrwxr-xr-x 1 martin martin 11 Nov 5 07:44 sys -> usr/src/sys Now, it is time to unpack the iso image. $ tar xf ~/6.2-RELEASE-i386-disc1.iso tar: Ignoring out-of-order file Darn! Well, Let's see how big an ISO image file it makes anyway. $ mkisofs -l -R -q . >~/tmp/testfile.iso $ ls -l ~/6.2-RELEASE-i386-disc1.iso ../tmp/testfile.iso -rw-r--r-- 1 martin martin 598476800 Nov 5 07:48 ../tmp/testfile.iso -rw-r--r-- 1 martin martin 601229312 Sep 21 08:57 /home/martin/6.2-RELEASE-i386-disc1.iso The original iso image is 2,752512 bytes larger. I bet it's the files that tar doesn't seem to be happy about. Once this hurdle is finally jumped, the rest should be quite normal. If you mount the image on a Linux system and use tar or mkisofs, you get a file that is almost twice the proper size so I think there may be some links that end up as multiple versions of the same files when they should have been symlinks or something else. The image made with FreeBSD's mkisofs and tar utilities is the archive that is 2.5 megs short. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Configure to use WITH_DEBUG
White Hat wrote: >> In response to White Hat : >> >>> I have a system that I am setting up that will only be used to test >>> programs. >>> I therefore want all programs built with debug code. To facilitate that >>> task, I >>> was wondering if I could put a global flag in the '/etc/make.conf' file. >>> Assuming that would work, which of these is the better solution. >>> >>> 1) WITH_DEBUG >>> 2) WITH_DEBUG=1 >>> 3) WITH_DEBUG=true >>> 4) -DWITH_DEBUG >>> >>> If there is a better solution, I would appreciate hearing about it. >> #2 and #3 will work. >> The key is that the variable is set, not what it's set to. As a joke, >> you can do WITH_DEBUG=no in make.conf, and confuse the hell out of other >> sysadmins. >> >> Note that there may be additional port-specific debugging that would >> not be turned on by the global WITH_DEBUG, but you'll have to handle >> that on a port-by-port basis. >> >> -- >> Bill Moran >> http://www.potentialtech.com > > Interesting. Now if I want to turn DEBUG off for a particular port, would I > use: > > 1)WITH_DEBUG > 2)WITH_DEBUG= > 3)WITH_DEBUG="" > The make manpage is your friend: .if ${.CURDIR:M/usr/ports/category/port} .undef WITH_DEBUG .endif ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Configure to use WITH_DEBUG
> In response to White Hat : > > > I have a system that I am setting up that will only be used to test > > programs. > > I therefore want all programs built with debug code. To facilitate that > > task, I > > was wondering if I could put a global flag in the '/etc/make.conf' file. > > Assuming that would work, which of these is the better solution. > > > > 1) WITH_DEBUG > > 2) WITH_DEBUG=1 > > 3) WITH_DEBUG=true > > 4) -DWITH_DEBUG > > > > If there is a better solution, I would appreciate hearing about it. > > #2 and #3 will work. > The key is that the variable is set, not what it's set to. As a joke, > you can do WITH_DEBUG=no in make.conf, and confuse the hell out of other > sysadmins. > > Note that there may be additional port-specific debugging that would > not be turned on by the global WITH_DEBUG, but you'll have to handle > that on a port-by-port basis. > > -- > Bill Moran > http://www.potentialtech.com Interesting. Now if I want to turn DEBUG off for a particular port, would I use: 1)WITH_DEBUG 2)WITH_DEBUG= 3)WITH_DEBUG="" One other question. From what I have been reading, the use of 'WITH_DEBUG' also prevents the stripping of debug code when the program is installed. Is that correct, or do I have to use another flag to insure that debug code is not stripped from the installed program? Thanks again! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
/usr/bin/whatis replaced by a script (correct?)
Dear listmembers. When running rkhunter 1.3.0 I get those warnings: ... /usr/bin/whatis' has been replaced by a script: /usr/bin/whatis: Bourne shell script text executable /usr/sbin/adduser' has been replaced by a script: /usr/sbin/addu ser: Bourne shell script text executable /usr/local/bin/GET' has been replaced by a script: /usr/local/bi n/GET: perl script text '/usr/local/sbin/pkgdb' has been replaced by a script: /usr/local /sbin/pkgdb: a /usr/local/bin/ruby18 script text executable ... Are those programs supposed to be replaced like this ? I'm running FreeBSD 6.2 Release-p7 with ports up to date. TIA. -- /Peo signature.asc Description: This is a digitally signed message part
Re: Configure to use WITH_DEBUG
In response to White Hat <[EMAIL PROTECTED]>: > I have a system that I am setting up that will only be used to test programs. > I therefore want all programs built with debug code. To facilitate that task, > I was wondering if I could put a global flag in the '/etc/make.conf' file. > Assuming that would work, which of these is the better solution. > > 1)WITH_DEBUG > 2)WITH_DEBUG=1 > 3)WITH_DEBUG=true > 4)-DWITH_DEBUG > > If there is a better solution, I would appreciate hearing about it. #2 and #3 will work. The key is that the variable is set, not what it's set to. As a joke, you can do WITH_DEBUG=no in make.conf, and confuse the hell out of other sysadmins. Note that there may be additional port-specific debugging that would not be turned on by the global WITH_DEBUG, but you'll have to handle that on a port-by-port basis. -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portupgrade questions
On Mon, 5 Nov 2007, Donovan R. Palmer wrote: A total noob here with FreeBSD, but am liking it so far. I went to run portupgrade for the first time and encountered quite a few problems. I have googled around and found some of my answers, but it's been slow going. For example: cairo# portupgrade -aF The thing you should be doing first is checking /usr/ports/UPDATING. Major things can change, and portupgrade may not be able to handle them without help. cd: can't cd to /usr/ports/devel/gnu-autoconf ** Package 'gnu-autoconf' has been removed from ports tree. Old versions of autoconf were replaced with 2.61. So one possibility I read to fix something like this is to uninstall and resintall it. This yields the following result: But you can't reinstall it, since it's gone from the ports tree. cairo# pkg_info | grep gnu-autoconf gnu-autoconf-2.59 Automatically configure source code on many Un*x platforms cairo# pkg_deinstall gnu-autoconf-2.59 ---> Deinstalling 'gnu-autoconf-2.59' pkg_delete: package 'gnu-autoconf-2.59' is required by these other packages and may not be deinstalled: gnu-automake-1.9.6 kde-3.5.4 kdevelop-3.3.4 ** Listing the failed packages (*:skipped / !:failed) ! gnu-autoconf-2.59 (pkg_delete failed) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed So how do I fix this? Is there a HOW-TO or tutorial on a webpage out there that will help me learn how to fix these things? The handbook makes no mention of how to resolve these issues... unless I missed something? The "-f" option to pkg_delete/pkg_deinstall will force it to do the action, even if there are dependencies. Sometimes it's the only way. There's also the -o option to portupgrade. As for a tutorial: first, check UPDATING. Then the command man page. If necessary, a web search. I can't remember what I did for this particular upgrade, but do remember deleting some of the older autoconf ports manually. I suspect you could delete all of them (and maybe some or all of the automake ports) and then just deinstall and install autotools. (Like pkg_delete -f, "make deinstall" in a port will ignore dependencies and just go ahead.) After you do all that, you'll probably need to run pkgdb -F to fix or at least check dependencies. -Warren Block * Rapid City, South Dakota USA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Configure to use WITH_DEBUG
I have a system that I am setting up that will only be used to test programs. I therefore want all programs built with debug code. To facilitate that task, I was wondering if I could put a global flag in the '/etc/make.conf' file. Assuming that would work, which of these is the better solution. 1)WITH_DEBUG 2)WITH_DEBUG=1 3)WITH_DEBUG=true 4)-DWITH_DEBUG If there is a better solution, I would appreciate hearing about it. Thanks! -- White Hat [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: How to write a condition in Bourne shell
On 2007-11-05 14:03, Olivier Nicole <[EMAIL PROTECTED]> wrote: > Hi, > > I am a lame Bourne sheel programmer, how to write: > > while [ ( $? -ne 0 ) -a ( $retry -gt 0 ) ] ; do > > that should execute as long as $? is not null and $retry is greater > than 0? Try something like... retry=0 done=-0 while [ $done -eq 0 ] && [ $retry -lt 10 ]; do run_some_other_stuff_here if [ $? -eq 0 ]; then done=1 fi done if [ $done -eq 0 ]; then echo "Failed after $retry attempts." fi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Is there a way to compare what is in the ports tree with what is installed?
Brett Davidson wrote: > ie. If I had a particular version of the ports tree on a server, how > could I check to see if any of the programs in that tree were actually > installed? > > Is there a simple command or sequence of commands to do this? > # pkg_version -Iql\= ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Is there a way to compare what is in the ports tree with what is installed?
On 2007-11-05 02:36, Pollywog <[EMAIL PROTECTED]> wrote: >> dir /var/d/pkg | grep > > My Linux systems have a "dir" command but my FreeBSD does not. > Is there something I need to install? Not really. The ls(1) utility works fine :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Is there a way to compare what is in the ports tree with what is installed?
On 2007-11-05 14:53, Brett Davidson <[EMAIL PROTECTED]> wrote: > ie. If I had a particular version of the ports tree on a server, how > could I check to see if any of the programs in that tree were actually > installed? > > Is there a simple command or sequence of commands to do this? Try running the pkg_version(1) utility. For instance, running it here, I can see output like this: ksh$ pkg_version | grep -v '=$' ORBit2 < aalib < [...] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Is there a way to compare what is in the ports tree with what is installed?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 04 Nov 2007 20:57:19 -0600 Jonathan Horne <[EMAIL PROTECTED]> wrote: > after i update my ports, and i want to see what currently needs to be > updated: > > pkg_version -v|grep needs > > this will give you a run down of everything that has a newer version > in your ports tree. Or: portversion -v -l "<" - -- Rod http://roddierod.homeunix.net:8080 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHLwElZe6B7B2ImpsRAhD5AJ47x4G/RUllEUqDhq0Qe/1WMpKFLgCfc5Hm RCbvfDyPN6yT/yc//Qna0OQ= =Tbox -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portupgrade questions
While portsupgrade does work on packages it is usually better to do stuff from ports... even though this may be time consuming you may want to deinstall every last package you have installed then select a few "high level" ports to install (i.e. enough to drag in almost everything you need)... in general the install cycle I use is: 1. Install a top-level port (making any build changes needed if build fails [*PLEASE* submit a pr for any of these]) 2. Do a csup (or cvsup on older releases) to make sure there is nothing newer for the installed ports 3. Do a portupgrade -a 4. If there are more top-level ports goto to step 1 Very interesting. Without sounding too daft, how do I determine what a "high level" port is? Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portupgrade questions
> > Very interesting. Without sounding too daft, how do I determine what > a "high level" port is? Thanks! > oops forgot to include on that list: 1. lyx tex editor 2. linux-flashplayer7 3. acrobat reader 7 4. The latest firefox a. Install both native and linux verions b. Use linux to install extensions -- Aryeh M. Friedman Developer, not business friendly http://www.flosoft-systems.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portupgrade questions
Donovan R. Palmer wrote: >> While portsupgrade does work on packages it is usually better to do >> stuff from ports... even though this may be time consuming you may want >> to deinstall every last package you have installed then select a few >> "high level" ports to install (i.e. enough to drag in almost everything >> you need)... in general the install cycle I use is: >> >> 1. Install a top-level port (making any build changes needed if build >> fails [*PLEASE* submit a pr for any of these]) >> 2. Do a csup (or cvsup on older releases) to make sure there is nothing >> newer for the installed ports >> 3. Do a portupgrade -a >> 4. If there are more top-level ports goto to step 1 > > Very interesting. Without sounding too daft, how do I determine what > a "high level" port is? Thanks! Depends on what you use the machine for... for example for the most part mine are: 1. gnome-office (normally do xorg and gnome2 as seperate builds though) 2. vlc video player 3. rythmbox mp3 player 4. Java 1.6 5. gimp-shop 6. apache 2+mysql+php5 7. electricsheep 8. Deluge torrent client and as soon the port team adds them: 1. thistest 2. filebuilder (sorry for the self promotion, but I wrote both of these ;-)) -- Aryeh M. Friedman Developer, not business friendly http://www.flosoft-systems.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portupgrade questions
Here is a script I use to automate the procedure I posted in the previous reply: #!/bin/sh cd /usr/src csup ports-supfile csup standard-supfile cd patchs # optional ./apply # optional portupgrade -a -- Aryeh M. Friedman Developer, not business friendly http://www.flosoft-systems.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portupgrade questions
> > So how do I fix this? Is there a HOW-TO or tutorial on a webpage out > there that will help me learn how to fix these things? The handbook > makes no mention of how to resolve these issues... unless I missed > something? While portsupgrade does work on packages it is usually better to do stuff from ports... even though this may be time consuming you may want to deinstall every last package you have installed then select a few "high level" ports to install (i.e. enough to drag in almost everything you need)... in general the install cycle I use is: 1. Install a top-level port (making any build changes needed if build fails [*PLEASE* submit a pr for any of these]) 2. Do a csup (or cvsup on older releases) to make sure there is nothing newer for the installed ports 3. Do a portupgrade -a 4. If there are more top-level ports goto to step 1 -- Aryeh M. Friedman Developer, no business friendly http://www.flosoft-systems.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
portupgrade questions
Hi Gang, A total noob here with FreeBSD, but am liking it so far. I went to run portupgrade for the first time and encountered quite a few problems. I have googled around and found some of my answers, but it's been slow going. For example: cairo# portupgrade -aF cd: can't cd to /usr/ports/devel/gnu-autoconf ** Package 'gnu-autoconf' has been removed from ports tree. So one possibility I read to fix something like this is to uninstall and resintall it. This yields the following result: cairo# pkg_info | grep gnu-autoconf gnu-autoconf-2.59 Automatically configure source code on many Un*x platforms cairo# pkg_deinstall gnu-autoconf-2.59 ---> Deinstalling 'gnu-autoconf-2.59' pkg_delete: package 'gnu-autoconf-2.59' is required by these other packages and may not be deinstalled: gnu-automake-1.9.6 kde-3.5.4 kdevelop-3.3.4 ** Listing the failed packages (*:skipped / !:failed) ! gnu-autoconf-2.59 (pkg_delete failed) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed So how do I fix this? Is there a HOW-TO or tutorial on a webpage out there that will help me learn how to fix these things? The handbook makes no mention of how to resolve these issues... unless I missed something? TIA Donovan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ipv6 confusion
Hi, On Mon, 2007-11-05 at 03:16 -0500, Aryeh M. Friedman wrote: > I want to set my machine up to be on both IPv4 and IPv6. I have read > the stuff on 6over4 and such and still a little confused on a few things: > > 1. The machine I want to do the tunneling on is behind a NAT'ed firewall > how do I reliabelly obtain the external IP of the firewall (dhcp > assigned from cable company)? > > 2. If the machine I want to do the tunneling with is the DMZ host for > the above FW do I need to add anything special to the FW's routing tables? > > 3. I am a little confused on how to pick the other end of the tunnel and > how do I configure it once the first 2 items are solved?... The > confusion comes from how is an arbitary (by me [with in the restrictions > in stf(4)]) selected IPv6 IP supposed to be routable when IPv4 forces > me to use the one assigned to me by my upstream router? AFAIK, IPv6 setup is much more difficult than IPv4 setup. Still i don't know well what IPv6 is. Let's go easy.. you need some practice with 6to4 setup. The 6to4 setup is very simple if you have the native IPv4 address(es). Then you can try the 6over4 (more difficult than 6to4) with gif(4). At first, here is good reference for 6to4 setup: http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html As fas as i can tell, you need practice and practice and practice, one by one, then you can obtain what you want.. Sincerely, -- $LUG: projects/mp3/the-godfather,v 1.6 2007/10/11 09:37:50 bh Exp $ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ipfw rule question ... all possible interfaces ?
On Monday 05 November 2007 02:10:12 Juri Mianovich wrote: > Is there a way to tell ipfw: > > "all interfaces currently configured on this system" ? That's not possible directly, I think. > I have a laptop and at any time I could plug in a USB > NIC or plug in a pccard, in addition to the onboard > LAN and WIFI, either of which may or may not be > configured at boot time. Being configured or not isn't a problem for ipfw. The interface is just a string and can be anything regardless of validity, such as rl0, fxp0, blah etc. Asterisks can be also used to denote a shell-like interface-name matching e.g. rl* > > So the point is, the active, configured interfaces > changes regularly. > > So if I have a rule like: > > allow ip from any to any via iwi0 > > that won't work well, and neither will: > > allow ip from any to any via iwi0,abc0 I am not sure you have understood correctly the "via" keyword. Read the ipfw manual. Not all packets have receive or transmit interfaces so that might a problem you haven't considered. Is "via" what you want? > So is there any way to say "all interfaces currently > configured" and have that rule apply to new interfaces > automatically as they are added and subtracted from > the system ? You can use "me" which is an alias for "my IP addresses". allow ip from any to me allow ip from me to any This ruleset effectivelly allows all trafic from you to the world and from the world to you. Ofcourse there is not interface checking. HTH, Nikos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ipfw rule question ... all possible interfaces ?
On Mon, 5 Nov 2007 00:22:00 + RW <[EMAIL PROTECTED]> wrote: > On Sun, 4 Nov 2007 16:10:12 -0800 (PST) > Juri Mianovich <[EMAIL PROTECTED]> wrote: > > > > > Is there a way to tell ipfw: > > > > "all interfaces currently configured on this system" ? > > > >... > > > > So if I have a rule like: > > > > allow ip from any to any via iwi0 > > > > You don't have to use "via" in a rule. That's true, though you can also specify 'via any'. Whether either is actually a good idea for the case in question may be another matter .. Cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ipv6 confusion
I want to set my machine up to be on both IPv4 and IPv6. I have read the stuff on 6over4 and such and still a little confused on a few things: 1. The machine I want to do the tunneling on is behind a NAT'ed firewall how do I reliabelly obtain the external IP of the firewall (dhcp assigned from cable company)? 2. If the machine I want to do the tunneling with is the DMZ host for the above FW do I need to add anything special to the FW's routing tables? 3. I am a little confused on how to pick the other end of the tunnel and how do I configure it once the first 2 items are solved?... The confusion comes from how is an arbitary (by me [with in the restrictions in stf(4)]) selected IPv6 IP supposed to be routable when IPv4 forces me to use the one assigned to me by my upstream router? -- Aryeh M. Friedman Developer, no business friendly http://www.flosoft-systems.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"