Re: Copying system/ports configuration?
On Tuesday 16 December 2008 16:16:27 Andrew Gould wrote: On Tue, Dec 16, 2008 at 9:03 AM, Dr. Jennifer Nussbaum bg271...@yahoo.comwrote: I have a FreeBSD 7.0 system that im using in production. I want to create a FreeBSD virtual machine, to use as a testbed for this production box. The last time i did this it took a lot of time to get the VM set up--installing all the right ports, getting the database configuration right, etc. Are there any shortcuts for this, e.g. a way i can automatically install the same ports on the new machine? I didnt see anything in the handbook or FAQ about this, but id think that people need to do this all the time. Any other advice for mirroring the system? Thanks! Jen Someone once posted a shell script that obtained a list of installed ports from the package database system and fed the results to pkg_create, which would create binary packages. Unfortunately, I can't locate the script. cd /var/db/pkg mkdir /var/tmp/packages for DIR in *; do if test -d ${DIR} -a -f ${DIR}/+CONTENTS; do pkg_create -vb ${DIR} /var/tmp/packages/${DIR}.tbz fi done This will create a package for all installed software in /var/tmp/packages. Adjust accordingly. Once ssh is in place on target: scp -rp /var/tmp/packages target.machine:/var/tmp On target: cd /var/tmp/packages for FILE in *; do pkg_add ${FILE}; done Then all that's left is /usr/local/etc/ and possibly some dirs /usr/local/share. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: PHP5 as apache module using packages
On Tuesday 16 December 2008 15:36:01 Gary Hartl wrote: Hi all; Ok so i've reinstalled fBSD-7 and i'm running apache 2.2 installed using pkg_add I need to also run php as a module for apache (the web software i'm using requires php as module no cgi). Curious: what software and why? The only valid reason is that the sofware writes php_value/php_flag options to .htaccess files. This has many other implications and I would carefully examine the software and all other websoftware I have installed, before allowing this. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Extracting changed files list from snapshot
On Tuesday 16 December 2008 15:18:19 Bernard Dugas wrote: I want to extract the list of files changed between 2 snapshots, to be able to do efficient backups. Just use dump(8)? And what snapshots do you mean? As in mksnap_ffs? Cause that's described in /usr/src/sys/ufs/ffs/ffs_snapshot.c: 127 TAILQ_HEAD(snaphead, inode); 128 129 struct snapdata { 130 struct snaphead sn_head; 131 daddr_t sn_listsize; 132 daddr_t *sn_blklist; 133 struct lock sn_lock; 134 }; 135 and not exposed to userland. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Startup scipt
On Tuesday 16 December 2008 01:54:57 Giorgos Keramidas wrote: The second invocation uses another set of options from `rc.conf': moused_ums0_enable moused_ums0_port moused_ums0_type moused_ums0_flags The support for these non-default options is implemented using a small local hack in `src/etc/rc.d/moused': http://svn.freebsd.org/viewvc/base/head/etc/rc.d/moused?view=annotate#l24 It would be great if you found some way to integrate this with the rest of rc.d. This way more scripts can support multiple instances of the underlying service :) Better like jail is done. I like the fact that jail_list is what is started upon startup but you can have many more jail_foo defined. Removing one from the list will disable it on boot, but it is still enabled by itself, so that /etc/rc.d/jail start foo is still valid. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: power management
On Tuesday 16 December 2008 00:23:17 prad wrote: On Mon, 15 Dec 2008 23:20:51 +0100 (CET) Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: IMHO it depends on hardware ya that makes sense at least from reading about different cpu state descriptions here: Everything You Need to Know About the CPU C-States Power Saving Modes http://www.hardwaresecrets.com/article/611 where they talk about how different cpu's deal with things differently. so since the os software can only use these features, possibly some have optimized for some hardware, but possibly not for others. If you're interested in technical details, there's a November thread on -mobile that covers quite some ground: http://lists.freebsd.org/pipermail/freebsd-mobile/2008-November/011188.html -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Running rsnapshot via cron reboots the machine
On Monday 15 December 2008 18:56:46 David N wrote: Hi, I have a machine AMD Sepron LE-1150 ASUS M2A-VM 1GB RAM ECC 2x SATA 300GB in a RAID 1 (gmirror). 7.0-RELEASE-p2 AMD64 generic kernel it was doing backups via bacula to an external disk USB 2.0 SATA disk, and it was working well. (GLabel) /dev/ufs/BackupDisk I changed to rsnapshot recently, with the External HDD in glabel + gjournal (/dev/da0s1.journal - /dev/ufs/BackupDisk) and it will reboot the machine roughly 30 minutes after the rsnapshot starts via CRON. Able to get any crash dumps? [1] I doubt it calls reboot system call after 30 minutes and if it's a heating issue, then it would power down not reboot. So, kernel is probably panicing. [1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Centralized DB of system users
On Tue, Dec 16, 2008 at 8:59 PM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: LDAP is the way to go. the right tool for the task is the way to go. 100% agree. generally speaking now. a great day, v ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7 load hangs on boot
michael-439 wrote: disable dma specifically by escaping to the loader prompt and type hw.ata.atapi_dma=0 Tried it. Didn't work. michael-439 wrote: you can also try loading the device as a scsi device with atapicam. you could make this static on your iso by editing the loader.conf on the iso. Forgive my ignorance; as I've stated earlier, I'm pretty new to FreeBSD. How would I do as you suggest above? -- I've worked with System V Unix for well over 14 years. Working with System III-based FreeBSD, I've come to the conclusion that for every one thing I know about System V, there is one thing I don't know about System III. -- View this message in context: http://www.nabble.com/FreeBSD-7-load-hangs-on-boot-tp21039625p21053991.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: lang/php5 port
--On Wednesday, December 17, 2008 11:25:02 -0500 Tom Worster f...@thefsb.org wrote: If you're maintaining your own workstation, that might be an educational experience. If you're maintaining servers, that could cause an outage while you try to remember what your edits were. one has to remember the port's configuration whichever method is used. my memory isn't good so i keep detailed notes. recording in these notes which checkboxes in the config pseudo-gui were checked and unchecked is not convenient. i'm not sure i wouldn't prefer editing a file and keeping a diff with my notes, as i do for the other config files i change. Your choices for the config of a port are saved in the ports system. (Look in /var/db/ports/ if you're curious.) Unless you need to make some changes, they will be pre-selected each time you update the port. (There are some exceptions to this, where ports will always prompt for the config.) If you think a port is incorrectly built (unnecessary dependencies, for example) there's nothing wrong with submitting a PR and asking the maintainer to update the port. If the maintainer rejects your changes, you can always edit locally later, but your submission could benefit thousands of people. IOW, if you're the smartest guy on the block, please don't keep it to yourself. i'm certainly not smart enough to know what might be a better way to design ports like php. but one thing seems odd to me. i ended up with dozens of ports installed that appeared to use nothing but the same php-5.2.8.tar.bz2 distfile. relative to what i'm used to with php (i.e. manual configure, compile, install) this seems a bit untidy and i'm nervous what it might mean for maintenance. Php used to be one monolithic port. The problem was that it required a gazillion options, and many people didn't want anything but the base install. So php#-extensions was created to simplify the install of the base port and make the options more flexible. For example, if a new extension comes out, you can simply install it. No need to reinstall the entire php port. You needn't worry about updating. That's all taken care of in the ports system. When you run portupgrade or portmaster, the extensions ports that need to be updated will be. my guess is that this approach allows the ports framework to handle conditional installation of dependent software on a relatively fine-grained basis depending which options the user chooses. that's a nice feature to have. but wouldn't it be nicer if were just one port with dependencies based off its configuration? I think you can make a solid argument either way. seems that would reduce clutter in the ports tree too and maybe effort for the ports maintainer. I don't think we are worried about clutter in the ports tree. There are over 16,000 ports (and rising), so another 10 or 20 in php is a fairly insignificant increase. -- Paul Schmehl (pa...@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/
Re: Publishing information via DNS
Kelly Jones wrote: Has anyone tried publishing non-DNS information via DNS? Advantages: % Automatic distributed caching on various nameservers. % UDP, so no TCP overhead I know SPF uses this, and clamav publishes their current version number this way, but has anyone done this on a large scale basis? Read all about 'Hesiod' at a search engine near you. No, not the Greek poet... the other hesiod. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
unsubcribe
Hello ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to find files that are eating up disk space
Use df to report disk usage. Sitting in /, for example, df -sm bin will tell you the disk usage in megs in the bin directory, df -sm * will do the same for each file/dir in / man df for the whole story Cliff John Almberg wrote: Here is another newbie question that is driving me crazy, but is probably a laughable situation to an experienced admin... I've got a smallish server that is suddenly out of disk space in the '/' partition. Probably some log files have gotten out of hand. I am going to start looking for the culprits by hand... basically inspecting sub directories, but there must be a better way! Is there a command line tool that will help me figure out where the problem is? Even better, is there a way to proactively monitor the file system, so I can fix problems before I start getting 'out of disk space' errors? Any hints, much appreciated. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to find files that are eating up disk space
Uh, that should be du not df :) -- Use df to report disk usage. Sitting in /, for example, df -sm bin will tell you the disk usage in megs in the bin directory, df -sm * will do the same for each file/dir in / man df for the whole story Cliff John Almberg wrote: Here is another newbie question that is driving me crazy, but is probably a laughable situation to an experienced admin... I've got a smallish server that is suddenly out of disk space in the '/' partition. Probably some log files have gotten out of hand. I am going to start looking for the culprits by hand... basically inspecting sub directories, but there must be a better way! Is there a command line tool that will help me figure out where the problem is? Even better, is there a way to proactively monitor the file system, so I can fix problems before I start getting 'out of disk space' errors? Any hints, much appreciated. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7 load hangs on boot
michael-439 wrote: if he would try it along with the atapicam, he would probably get further. i had a similar issue and that was the solution. well, the errors were the same, so it was the same issue. he. Are you not talking to me any more? Anyway, what is this atapicam option. How is it implemented, from the loader prompt, editing the iso, or what? BTW, how would one edit the iso? -- View this message in context: http://www.nabble.com/FreeBSD-7-load-hangs-on-boot-tp21039625p21054078.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How to find files that are eating up disk space
Here is another newbie question that is driving me crazy, but is probably a laughable situation to an experienced admin... I've got a smallish server that is suddenly out of disk space in the '/' partition. Probably some log files have gotten out of hand. I am going to start looking for the culprits by hand... basically inspecting sub directories, but there must be a better way! Is there a command line tool that will help me figure out where the problem is? Even better, is there a way to proactively monitor the file system, so I can fix problems before I start getting 'out of disk space' errors? Any hints, much appreciated. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Publishing information via DNS
Kelly Jones wrote: Has anyone tried publishing non-DNS information via DNS? Advantages: % Automatic distributed caching on various nameservers. % UDP, so no TCP overhead I know SPF uses this, and clamav publishes their current version number this way, but has anyone done this on a large scale basis? Someone needs to invent and promote a TextualDatagramPublicationProtocol or TDPP because DNS has been abused for publishing non DNS data for too long. Continuing to use DNS for things it was never intended to do will only cloud the issue and delay implementation when the internet decides to take DNS security seriously. Just my two cents. DAve -- The whole internet thing is sucking the life out of me, there ain't no pony in there. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: unsubcribe
___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ^^^ read again last line ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: lang/php5 port
Tom Worster wrote: i'm certainly not smart enough to know what might be a better way to design ports like php. but one thing seems odd to me. i ended up with dozens of ports installed that appeared to use nothing but the same php-5.2.8.tar.bz2 distfile. relative to what i'm used to with php (i.e. manual configure, compile, install) this seems a bit untidy and i'm nervous what it might mean for maintenance. Absolutely not. Don't be confused that the various php5-foo ports all use the same distfile: it's a big lump of code, and the individual modules selectively compile bits of it. Don't be perturbed that you have a large number of ports installed -- after all a port is ultimately just a set of files treated together as a block. This just means you're getting finer grained control over what you've got installed on your machine. No -- the current design of the way PHP is dealt with in ports is brilliant. Consider the alternative -- in fact the way it used to be done. As the maintainer of the port of a PHP application I need to ensure certain functionality is compiled into PHP for that application to work. Unless the functionality I need happens to be a strict subset of what is provided by default, I have to create and maintain slave ports of php4 and php5 with the appropriate configuration flags. Which is a PITA. Now, ask yourself what happens if I want to install two different PHP applications simultaneously? OK, now we need another set of PHP slave ports to support that combination. Before you know it, the ports tree is buried in a combinatorial explosion of different PHP slave ports all with slightly different combinations of options. No one understands quite what they really should be installing in any particular circumstance. Because the ports are now too difficult to use, standard advice on mailing lists is 'compile and install by hand.' Oh, the embarrassment! Compare this to the system we have now. PHP application depends on the foo, bar and baz modules. php5-foo and php5-bar are already installed, so now we just get php5-baz installed automatically to fulfil the dependencies as a routine effect of installing the app. Now add yet another app that depends on baz and quux. php5-baz is already installed, so just the php5-quux module is installed as a dependency. Everyone is happy. From the port maintainer's point of view, the setup is particularly sweet too. At a minimum to declare that your port uses PHP and needs modules foo, bar and baz, all you need to do is add a line: USE_PHP = foo bar baz to the port's Makefile. In a lot of cases, that really is /all/ you have to do. Even the more complicated stuff with OPTIONS dialogues or that use different module sets for php4 vs. php5 are only slightly harder to deal with. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: How to find files that are eating up disk space
why not du|sort -r|head -20 and you get 20 largest I should probably have mentioned that what I currently do is run du -h -d0 / and gradually work my way down the tree, until I find the directory that is hogging disk space. This works, but is not exactly efficient. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Publishing information via DNS
Someone needs to invent and promote a TextualDatagramPublicationProtocol or TDPP because DNS has been abused for publishing non DNS data for too long. Continuing to use DNS for things it was never intended to do will only cloud the issue and delay implementation when the internet decides to take DNS security seriously. where do you see security issue of that? except that someone voluntarily publish his/her private data this way - but it won't be DNS security problem but his/her problem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: looking for a secondary.
On Tue, Dec 16, 2008 at 09:33:21PM -0800, Bill Campbell wrote: On Tue, Dec 16, 2008, Gary Kline wrote: On Tue, Dec 16, 2008 at 09:20:59PM -0500, Matt Emmerton wrote: On Tuesday, December 16, 2008, at 02:42PM, Gary Kline well, i've certainly asked more ignorant q's, so hrer goes: what is a ``zone''? i do my own dns and have since 04/2001. thought.org is my one domain, altho i've got several virtual websites. a number of people have offered to be my secondary, something that warms me to the core. this happened once before--i needed a secondary and had to scramble. like to take care of it before something else happened! --i'm rambling, sorry. again, a Zone is? A zone file has all DNS records related to a domain. Well, then I've got one zone. (Just _thinking_ about what Cricket Liu wrote about creating different levels [in BIND AND DNS] gave me the creeps, so I skipped that.) Following the Keep It Simple Sir philosophy does have its payoffs. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.17a release of Jottings: http://jottings.thought.org/index.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Copying system/ports configuration?
The last time i did this it took a lot of time to get the VM set up--installing all the right ports, getting the database configuration right, etc. Are there any shortcuts for this, e.g. a way i can automatically install the same ports on the new machine? I didnt see anything in the handbook or FAQ about this, but id think that people need to do this all the time. Any other advice for mirroring the system? Opinions definitely vary on what the best method is. What I do nowadays is to: * First of all, never ever interactively configure any ports. * Maintain any necessary global options in /etc/make.conf * Maintain port specific options in /usr/local/etc/ports.conf, and have it applied by ports-mgmt/portconf. * Keep a list of packages that I want installed (NOT including dependencies). I then build packages based on this information in a clean environment; typically a dedicated jail. Because all configuration is declarative, and nothing is a function of interactive dialogs, I know I can reproduce the package set + config at any time. The upgrade on the target machine is a matter of pkg_delete -a to remove all packages, and then re-installing all the built binaries. I have some tools to help me do this that are semi-public, but not really in a nice state at this time. Let me know off-list if you would be interested. -- / Peter Schuller PGP userID: 0xE9758B7D or 'Peter Schuller peter.schul...@infidyne.com' Key retrieval: Send an E-Mail to getpgp...@scode.org E-Mail: peter.schul...@infidyne.com Web: http://www.scode.org pgpLyIgs9Hyg3.pgp Description: PGP signature
Re: How to find files that are eating up disk space
Is there a command line tool that will help me figure out where the problem is? I should probably have mentioned that what I currently do is run du -h -d0 / and gradually work my way down the tree, until I find the directory that is hogging disk space. This works, but is not exactly efficient. -d0 limits the search to the indicated directory; i.e. what you can see by doing ls -al /. Not superior to ls -al / and using the Mark I eyeball. sorry... I meant du -h -d1 directory What (I think) you want is du -x -h /: infinite depth, but do not cross filesystem mount-points. This is still broken in that it returns a list where the numbers are in a fixed-width fiend which are visually distinguished only by the last letter. Try this: du -x / and run the resu;ts through sort: sort -nr and those results through head: head -n 20 Thanks to everyone that suggested this. A much faster way to find the big offenders I have a cron job which does this for /usr and e-mails me the output every morning. After a few days, weeks at most, I know what should be on that list ... and what shouldn't and needs investigating. And this is a great proactive measure. Thanks -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Newb help setting up printer
Im trying to setup my Printer a Cannong Pixma Ip1000 which is detected aok soon as i plug it in ... I have looked through a few sites an tryed ot follow some, but im afraid i need a basic HOW TO for dummies type style of setting up an configuring my printer to work on FreeBSD 7.1-PRERELEASE AMD 64 .. Any help would be greatly appreciated. This is the site i have been following ... http://www.freebsddiary.org/apsfilter.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: can not start SVNserve
On Sunday 14 December 2008 16:11:17 KES wrote: Здравствуйте, Polytropon. Вы писали 14 декабря 2008 г., 15:11:35: P On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar P woj...@wojtek.tensor.gdynia.pl wrote: su: Sorry kes# pw user mod svn -s /bin/bash kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash kes# /usr/local/etc/rc.d/svnserve start Starting svnserve. su: Sorry try to change directory to existent P (1) What's /bin/bash? Check existing shell. P (2) As you said: Check existing directory. P (3) Regarding su, check for wheel group inclusion. home# uname -a FreeBSD home.kes.net.ua 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug 12 02:11:24 EEST 2008 k...@kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 home# pw user show svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin As you can see on 'home' machine svn user has no valid shell also it has not valid home directory and it is not included into wheel group But svnserve is started and works fine. With same settings svnserve does not work on kes# uname -a FreeBSD kes.net.ua 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #: Sun Nov 23 17:19:12 EET 2008 k...@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 echo 'rc_debug=YES'/etc/rc.conf /usr/local/etc/rc.d/svnserve start Show output from /var/log/messages. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
dump and soft-updates question
Hi! I-ve got a question about dump | restore on soft-updates managed slice. When we dump smth on soft updates slice where it actualy(mechanicaly) dump it? Because I-ve forgot to turn of soft-updates off on my backup hdd and dump img on it =) After that i vas quet surprised because it ate 16 Gigs of / but du\df cant show anything about. what is situated in this 16 Gigs. PS:Sorry for my bad english. Cheers --Vasily ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
socket: too many open file descriptors (Re: Python with many threads)
Hello, Answering my own mail ;) Ott Köstner wrote: Still, something locks up in the system, when I increase the number Python threads with http://grub.org/?q=en/node/204 [...] The frequency of these messages increases with 70 threads. And with 200 threads the system locks up totally -- almost no access from web. [I can still access the system and kill the process :) ] Clearly, there is some limit in the system. It is not memory, cpu or bandwidth. If the number of threads is also not limited, it must be something else. What might it be? Eventually, I found out that the limiting factor here is named, not capable of handling more request and causing Apache to lock up. But now I am trapped here. Is there anybody who can help? In /var/log/messages: named[63198]: socket: too many open file descriptors I have googled this, but no help. Recompiled bind, adding -DFD_SETSIZE=2048 to CFLAGS. No help. sockstat |grep -c named does not big numbers. With 60 Grubng/Pyhton threads this number is around 20, rises over 100 with 100 threads, but this is still much lower than 2048... Any ideas? Regards, O.K. -- Testi oma Interneti kiirust / Test Your Internet speed: http://speedtest.zzz.ee/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrade from FreeBsd 6.3 to 6.4 freebsd-update
Renat wrote: Yes. I try . But not worked!! - webarchive# freebsd-update -r 6.4-RELEASE upgrade Looking up update1.FreeBSD.org mirrors... none found. Fetching metadata signature for 6.3-RELEASE from update1.FreeBSD.org... done. Fetching metadata index... done. Fetching 1 metadata files... failed. I probe you solution change change server from update.freebsd.org to update1.freebsd.org Not worked((( What's is is the Bug on the FreeBSD servers? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Try this: # env UNAME_r=6.3-RELEASE-p6 freebsd-update upgrade -r 6.4-RELEASE install ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Running rsnapshot via cron reboots the machine
2008/12/17 Mel fbsd.questi...@rachie.is-a-geek.net: On Monday 15 December 2008 18:56:46 David N wrote: Hi, I have a machine AMD Sepron LE-1150 ASUS M2A-VM 1GB RAM ECC 2x SATA 300GB in a RAID 1 (gmirror). 7.0-RELEASE-p2 AMD64 generic kernel it was doing backups via bacula to an external disk USB 2.0 SATA disk, and it was working well. (GLabel) /dev/ufs/BackupDisk I changed to rsnapshot recently, with the External HDD in glabel + gjournal (/dev/da0s1.journal - /dev/ufs/BackupDisk) and it will reboot the machine roughly 30 minutes after the rsnapshot starts via CRON. Able to get any crash dumps? [1] I doubt it calls reboot system call after 30 minutes and if it's a heating issue, then it would power down not reboot. So, kernel is probably panicing. [1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html -- Mel Problem with today's modular software: they start with the modules and never get to the software part. I found something in the vmcore.0 panic: Journal overflow (joffset=499758276096 active=498475869184 inactive=499755984896) cpuid = 0 Uptime: 16h7m11s I tried kgdb on on the vmcore but it didn't work, I had -p2 installed, but compiled p6 so it might of overwrittin things in /usr/obj [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol ps_pglobal_lookup] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as amd64-marcel-freebsd. Cannot access memory at address 0x0 The journal was set to 2GB on the 400GB USB attached disk. (/dev/da0) I just formatted the disk without gjournal and see how that goes. I guess i can't use gjournal over USB? I have gjournal running on another server (gmirror + gjournal) and i thrash it pretty hard without any problems. Has any new patches for gjournal been included in 7.1? Thanks for the help David N ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Problem with extracting from md
Hi! First of all sorry for my bad english =) I am using 8-0 CURRENT amd64. I've tried to install Free BSD dist from md device. but faced a problem with extracting data from it..so # mkdir -p /dist # mdconfig -a -f /a/FreeBSD/7.0-amd64-disc1.iso # mount -t cd9660 /dev/md0 /dist #cd /dist/7.0-RELEASE/base #DESTDIR=/mnt ./install.sh ..and here i've got I\O error. here it's dmesg. cd9660_vget_internal() at cd9660_vget_internal+0x10a cd9660_lookup() at cd9660_lookup+0x456 vfs_cache_lookup() at vfs_cache_lookup+0xf0 VOP_LOOKUP_APV() at VOP_LOOKUP_APV+0x95 lookup() at lookup+0x4b2 namei() at namei+0x50d kern_chdir() at kern_chdir+0x78 syscall() at syscall+0x1bf Xfast_syscall() at Xfast_syscall+0xab --- syscall (12, FreeBSD ELF64, chdir), rip = 0x80094330c, rsp = 0x7fffe408, rbp = 0x800c0b880 --- g_vfs_done():md0[READ(offset=53409792, length=2048)]error = 5 g_vfs_done():md0[READ(offset=53409792, length=2048)]error = 5 I think somth works wrong with my motherboar. I'm usin A8N-SLI. Anyone had the same problem? With best regards Kiselev Vasily. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to find files that are eating up disk space
On Wed, 17 Dec 2008 12:16:57 -0500, John Almberg jalmb...@identry.com said: J Is there a command line tool that will help me figure out where the [disk J space] problem is? I run a script every night to handle this. We have a few business divisions, and each division has several groups sharing files via Samba. Each group likes its own space with permissions that prevent file diddling by other groups. For example, division 3 is on drive /rd04, and has group directories /rd04/div3/engineering, /rd04/div3/finance, and /rd04/div3/marketing. /etc/periodic/daily/315.dirsize: #!/bin/ksh # dirsize: see how big each top-level group directory is. PATH=/bin:/usr/bin BLOCKSIZE=1m BLOCK_SIZE=1048576 export PATH BLOCKSIZE BLOCK_SIZE umask 022 tag=`basename $0` host=`hostname | cut -f1 -d.` logmsg () { logger -t $tag $@ } # Check group areas on each drive. list=' /rd01/div1 /rd02/logs /rd03/div2 /rd04/div3 ' ( for dir in $list do logmsg checking size of $dir find $dir -type d -maxdepth 1 -print | tail +2 | sort | xargs du -s echo done ) | mailx -s $tag: directory sizes on $host root logmsg done exit 0 J Even better, is there a way to proactively monitor the file system, so I J can fix problems before I start getting 'out of disk space' errors? This script is run hourly to tell me if we completely run out of room on something like /var or one of the user drives. I run it on BSD and Solaris boxes, so I try to avoid GNU or OS dependencies. /usr/local/cron/checkdrives: #!/bin/ksh # checkdrives: send mail if a filesystem gets too full PATH=/bin:/usr/bin export PATH # Portability stuff here. case `uname -s` in SunOS)DF='/usr/xpg4/bin/df -F ufs -k' ;; FreeBSD) DF='/bin/df -t ufs -k' ;; *)DF='df' ;; esac # Too full means 99% and less than 100 Mbytes available. str=`$DF | # Check filesystem size ... tail +2 | # ... skip the header ... tr -d '%' | # ... kill the percent sign ... awk '$4 10 \ $5 = 99 {print $6}'`# ... and print the filesystem. case X$str in X) ;; *) $DF $str | mailx -s 'Filesystem getting full' root ;; esac exit 0 -- Karl Vogel I don't speak for the USAF or my company It only rains straight down. God doesn't do windows. --Steven Wright ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Publishing information via DNS
Wojciech Puchar wrote: Someone needs to invent and promote a TextualDatagramPublicationProtocol or TDPP because DNS has been abused for publishing non DNS data for too long. Continuing to use DNS for things it was never intended to do will only cloud the issue and delay implementation when the internet decides to take DNS security seriously. where do you see security issue of that? except that someone voluntarily publish his/her private data this way - but it won't be DNS security problem but his/her problem I can see the DNS system changing in order to provide needed security, and the process/protocol being delayed or muddied because of possible interference with SpamAssassin channel publication, or ClamAV update publication, or SPF, or whatever is next chosen to piggy back onto DNS. DNS is the lifeblood of the internet, without it nothing works. DNS should not be the open pipe everyone throws their excess baggage into. Just my thoughts. I won't argue the point with those who want to use DNS text records for broadcasting when their Flicker account has new puppy pictures. DAve -- The whole internet thing is sucking the life out of me, there ain't no pony in there. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: lang/php5 port
On 12/17/08 10:34 AM, Paul Schmehl pa...@utdallas.edu wrote: --On Wednesday, December 17, 2008 08:18:47 +0100 Mel fbsd.questi...@rachie.is-a-geek.net wrote: ... Though a lot of things can be handled by: 1) environment variables (temporary) 2) /etc/make.conf (permanent) 3) Makefile.local (permanent, inclusion is at bsd.port.pre.mk stage which allows you to override hardcoded settings) It is needed in some cases to edit the makefile to fix things or remove dependencies that the maintainer didn't find necessary to remove or even to fix bugs. I agree with you with one caveat. Make sure that you know what you're doing before you do this, and be prepared for the consequences. For example, if you edit any files in a port, they will be overwritten when you update your ports. That means you'll have to make those edits again. thanks. i was going to ask about that. If you're maintaining your own workstation, that might be an educational experience. If you're maintaining servers, that could cause an outage while you try to remember what your edits were. one has to remember the port's configuration whichever method is used. my memory isn't good so i keep detailed notes. recording in these notes which checkboxes in the config pseudo-gui were checked and unchecked is not convenient. i'm not sure i wouldn't prefer editing a file and keeping a diff with my notes, as i do for the other config files i change. If you think a port is incorrectly built (unnecessary dependencies, for example) there's nothing wrong with submitting a PR and asking the maintainer to update the port. If the maintainer rejects your changes, you can always edit locally later, but your submission could benefit thousands of people. IOW, if you're the smartest guy on the block, please don't keep it to yourself. i'm certainly not smart enough to know what might be a better way to design ports like php. but one thing seems odd to me. i ended up with dozens of ports installed that appeared to use nothing but the same php-5.2.8.tar.bz2 distfile. relative to what i'm used to with php (i.e. manual configure, compile, install) this seems a bit untidy and i'm nervous what it might mean for maintenance. my guess is that this approach allows the ports framework to handle conditional installation of dependent software on a relatively fine-grained basis depending which options the user chooses. that's a nice feature to have. but wouldn't it be nicer if were just one port with dependencies based off its configuration? seems that would reduce clutter in the ports tree too and maybe effort for the ports maintainer. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: looking for a secondary.
Gary Kline wrote: well, i've certainly asked more ignorant q's, so hrer goes: what is a ``zone''? i do my own dns and have since 04/2001. A zone is a group of related DNS records all under the same administrative control. 'Related' meaning they all end in the same sequence of labels. Zone boundaries are determined pretty much by delegation to another set of DNS servers. So there's a '.org' zone containing primarily the NS records for all the domains registered under .org. This is distinct from the 'thought.org' zone you control and here all the sub-entries like www.thought.org or plato.thought.org are part of the same zone. It's not an entirely cut and dried definition, but you can think of a zone as 'the chunk of the DNS space that one person controls.' thought.org is my one domain, altho i've got several virtual websites. 'domain' in DNS-speak is any sequence of labels[*] known to the DNS. So even if the DNS data is a host name, an e-mail address, the name of a whole network, a crypto key for DKIM or DNSSEC or some aggregate service name hosted across several different servers via SRV records, they're all domains. Domains can be absolute (ie. from the root of the DNS) or relative to some intermediate domain. ie. 'thought.org' is your only zone, although you've got several domains within it for virtual websites. Cheers, Matthew [*] And a 'label' is a sequence of characters not including the separator character '.' -- a domain is hence a sequence of labels joined together by '.' characters. It's conceptually like the distinction between filename and path -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: socket: too many open file descriptors (Re: Python with many threads)
On Wednesday 17 December 2008 4:17:46 pm Michel Talon wrote: Ott Köstner wrote: In /var/log/messages: named[63198]: socket: too many open file descriptors See the sysctl variables: kern.maxfiles kern.maxfilesperproc kern.maxfiles: 12328 kern.maxfilesperproc: 11095 Note that Google leads immediately to this: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/net/2008-07/msg00251.html Yes, actually I saw this. 11095 seemed a big number in this case. Increased to: kern.maxfiles: 25000 kern.maxfilesperproc: 2 ... and the problem remains... :( There are also messages like this: named[63198]: client 127.0.0.1#60448: error sending response: host unreachable Regards, O.K. -- Mõõda oma inteneti kiirust / Test Your Internet speed http://speedtest.zzz.ee/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: i686 CPU Compatibility
On Tue, Dec 16, 2008 at 12:29:02PM +0100, Wojciech Puchar wrote: 7.0 is perfectly stable and is recommended for production use. It's not bleeding edge code. That's 8.0-CURRENT which is NOT for production use. Unless you have a particular reason for using 6.x I would go with 7.0 It's fully tested. nothing is ever fully tested ;) but yes, 7.0 can be classified stable. i would recommend 7.1-BETA install as some bugs are fixed there If the original poster has fairly new hardware, then he might like to go with 7.1-RC1. This has got fixes for newer NICs and graphic cards - after all 7.0 is about a year old. If my memory serves me well, it's fairly rare to have bug fixes between the release candidates the final release, so he shouldn't have too many problems with it. I just installed 7.1-BETA on a laptop when 7.0 was a no-go because it didn't support the NIC (realtek, I think) and the GPU (Nvidia 8600 M) using the nv driver. My advice on the i386 v AMD64 question is if your memory is 4GB or over (or likely to be in the future) use AMD64, otherwise take your pick. i386 has better support for Flash and proprietary Nvidia driver which might matter. I'm assuming the CPU supports the 64 bit extensions, if not, you have to use i386. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Uptime logging with (maybe) ppp's log functionality
On Monday 15 December 2008 15:09:31 Polytropon wrote: Hi! I'm going to setup a system with a dial-up modem for sporadic Internet access; a provider that charges per second online time is used. Is there a way ppp (which is used for dialing) can log the online time (or at least the connection's start and stop time) so the costs can be calculated? Furthermore, are there already tools that, for example, would use the daily, weekly or monthly periodic jobs to inform via mail about how much online time was spent? Or, in addition, how much money this would mean (built-in calculation)? If it doesn't already exist, I'm sure I'll code it. :-) Radius was created for this (accounting and authentication based on accounting) and ppp supports it. Might as well use it ;) From ppp(8): Supports RADIUS (rfc 2138 2548) authentication. An extension to PAP and CHAP, Remote Access Dial In User Service allows authentication infor- mation to be stored in a central or distributed database along with vari- ous per-user framed connection characteristics. If libradius(3) is available at compile time, ppp will use it to make RADIUS requests when configured to do so. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: PHP5 as apache module using packages
On Wednesday 17 December 2008 4:02:05 pm Gary Hartl wrote: The software is elgg.org, it is social software, i'm working on a project for a world of warcraft guild (yes this is a money deal), they are looking for a facebookish type site with some custom world of warcraft stuff done. Just experimented with Elgg. Here it is: http://elgg.zzz.ee/index.php Nothing special needed. Just a regular Apache, MySQL, and PHP. 5...10 minute install from FreBSD ports. Port: elgg-0.9.1 Path: /usr/ports/www/elgg Info: Blogging and social networking platform make make install create database and it starts like any other PHP/SQL application... Greetings, O.K. -- Mõõda oma inteneti kiirust / Test Your Internet speed http://speedtest.zzz.ee/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7 load hangs on boot
Steve Bertrand-2 wrote: ThinkDifferently wrote: ...some more interesting errors from bootup... hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 10:34:18) :confused: acpi0: 052008 RSDT1050 on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of free0, 1000 (3) failed acpi0: reservation of 0, a (3) failed acpi0: reservation of 10, c7f0 (3) failed AFAIK, your RocketRAID should be picked up by the 'twe' driver. RocketRAID ??? :confused: So, there is quite a bit of confusion going on here. My motherboard is the MSI K9N2G Neo-FD. http://www.newegg.com/Product/Product.aspx?Item=N82E16813130182 http://www.msicomputer.com/product/p_spec.asp?model=K9N2G_Neo-FDclass=mb It is AMD64 using the NVIDIA chipset. Its manual states that it has the NVIDIA NForce Storage Controller, and there is absolutely no mention of RocketRAID anywhere in the manual or on MSI's web site. MSI mentions... 6 SATA II (1~6) ports by NVIDIA® GeForce 8200 Series SATAII 1~6 support RAID 0/1/0+1/5 or JBOD mode by NVIDIA® GeForce 8200 Series RocketRAID appears to be a type of PCI card RAID controller, which I don't have. I'm very confused why FreeBSD uses the HPT RocketRAID controller driver v1.1 on boot. Also, isn't the NVIDIA chipset supposed to be supported by FreeBSD? I have a USB boot of FreeBSD 7.0-RELEASE. I put hptrr_load=YES in the /boot/loader.conf file. But, I haven't tried it yet (I'm at work at the moment). Is there anything else to try? What about getting FreeBSD to not use RocketRAID? Shouldn't it be loading a driver for NForce? -- View this message in context: http://www.nabble.com/FreeBSD-7-load-hangs-on-boot-tp21039625p21060042.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Publishing information via DNS
% UDP, so no TCP overhead I know SPF uses this, and clamav publishes their current version number this way, but has anyone done this on a large scale basis? no idea what large scale is, but it WILL work if done properly. on any scale. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Publishing information via DNS
Has anyone tried publishing non-DNS information via DNS? Advantages: % Automatic distributed caching on various nameservers. % UDP, so no TCP overhead I know SPF uses this, and clamav publishes their current version number this way, but has anyone done this on a large scale basis? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
can not view which fib process is using
Здравствуйте, Questions. How to view which FIB process if use? I cat setfib N programm but I can not view later which fib use my program FEATURE REEQUEST: implement option to 'ps' to view which FIB process is using Actually problem is next. I use 'torrentflux' I change index.php line 88 $command = cd . $cfg[path] . $owner . ; HOME=.$cfg[path].; export HOME;; -$command.= nohup .$cfg[btphpbin] . .$runtime. .$sharekill. .$cfg[torrent_file_path].$alias..stat .$owner. --response +$command.= setfib . rand(0,1) . nohup .$cfg[btphpbin] . .$runtime. 20 .$cfg[torrent_file_path].$alias..stat .$owner. Notice 'setfib'. I use setfib here to run '/usr/local/libexec/btphptornado.py' to use default route 0 or default route 1. All instances of process that are using route 1 (setfib 1) are still go through route 0. kes# ifconfig ng0 ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0 mtu 1492 inet 92.113.8.197 -- 195.5.5.202 netmask 0x kes# ifconfig ng1 ng1: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0 mtu 1492 inet 92.113.72.242 -- 195.5.5.203 netmask 0x kes# setfib 0 netstat -nr | less Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default195.5.5.202UGS 0 16327188ng0 kes# setfib 1 netstat -nr | less Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default195.5.5.203UGS 0 3347279ng1 Packets that must go through ng1 are going through ng0 kes# tcpdump -n -i ng0 src 92.113.72.242 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ng0, link-type NULL (BSD loopback), capture size 96 bytes 21:54:42.971565 IP 92.113.72.242.33695 92.101.188.147.3870: R 0:0(0) ack 3977401380 win 0 21:54:43.027593 IP 92.113.72.242.40835 85.140.114.68.2800: R 0:0(0) ack 3996727808 win 0 21:54:43.235059 IP 92.113.72.242.40835 91.203.63.6.3808: R 0:0(0) ack 20527351 win 0 21:54:43.256561 IP 92.113.72.242.40835 193.109.129.226.2741: R 0:0(0) ack 1518499679 win 0 21:54:43.532925 IP 92.113.72.242.33718 94.25.61.243.50889: R 0:0(0) ack 3839853583 win 0 21:54:43.579555 IP 92.113.72.242.48509 82.170.130.251.59315: R 0:0(0) ack 2768802435 win 0 21:54:43.677122 IP 92.113.72.242.48509 212.75.197.168.1212: R 0:0(0) ack 3327449055 win 0 21:54:43.772060 IP 92.113.72.242.40835 80.240.220.152.53482: R 0:0(0) ack 299780238 win 0 21:54:43.774576 IP 92.113.72.242.40835 94.178.211.178.3358: R 0:0(0) ack 2300749243 win 0 21:54:43.884896 IP 92.113.72.242.33718 87.118.120.249.4667: R 0:0(0) ack 597152031 win 0 21:54:43.888057 IP 92.113.72.242.40835 90.189.39.28.4046: R 0:0(0) ack 407943006 win 0 And arriving through ng1 kes# tcpdump -n -i ng1 dst 92.113.72.242 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ng1, link-type NULL (BSD loopback), capture size 96 bytes 21:55:02.965381 IP 85.113.139.248.12442 92.113.72.242.49197: S 3784250155:3784250155(0) win 65535 mss 1452,nop,wscale 3,nop,nop,sackOK 21:55:03.016658 IP 78.106.238.247.33710 92.113.72.242.40835: UDP, length 67 21:55:03.072568 IP 91.90.15.36.2451 92.113.72.242.39402: S 79361479:79361479(0) win 65535 mss 1460,nop,wscale 3,nop,nop,sackOK 21:55:03.385356 IP 93.135.205.93.4432 92.113.72.242.40835: S 1774379497:1774379497(0) win 32767 mss 1452,nop,nop,sackOK 21:55:03.429475 IP 69.9.105.209.50863 92.113.72.242.40835: S 2727062150:2727062150(0) win 65535 mss 1352,nop,nop,sackOK 21:55:03.537588 IP 94.158.32.107.3004 92.113.72.242.48509: S 1587739071:1587739071(0) win 16384 mss 1350,nop,nop,sackOK 21:55:03.853375 IP 86.57.159.146.29687 92.113.72.242.40835: S 426526591:426526591(0) win 65535 mss 1452,nop,wscale 4,nop,nop,sackOK 21:55:04.187938 IP 81.88.114.216.44433 92.113.72.242.40835: UDP, length 67 21:55:04.209383 IP 79.140.170.10.56778 92.113.72.242.40835: S 124589897:124589897(0) win 64240 mss 1460,nop,wscale 0,nop,nop,sackOK 21:55:04.247917 IP 193.17.174.6.3893 92.113.72.242.33718: S 94220847:94220847(0) win 65535 mss 1460,nop,nop,sackOK 21:55:04.315516 IP 89.109.14.126.1319 92.113.72.242.40835: S 2033078660:2033078660(0) win 65535 mss 1440,nop,nop,sackOK 21:55:04.453367 IP 194.187.50.165.1681 92.113.72.242.40835: S 3973432781:3973432781(0) win 65535 mss 1460,nop,nop,sackOK 21:55:04.638606 IP 78.45.120.164.17477 92.113.72.242.48509: UDP, length 103 kes# ipfw show 140082372149 allow ip from any to any 65535 0 0 deny ip from any to any It this BUG or I miss something? -- С уважением, KES mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to find files that are eating up disk space
Is there a command line tool that will help me figure out where the problem is? I should probably have mentioned that what I currently do is run du -h -d0 / and gradually work my way down the tree, until I find the directory that is hogging disk space. This works, but is not exactly efficient. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re[2]: can not start SVNserve
Здравствуйте, Mel. Вы писали 17 декабря 2008 г., 9:11:19: M On Sunday 14 December 2008 16:11:17 KES wrote: Здравствуйте, Polytropon. Вы писали 14 декабря 2008 г., 15:11:35: P On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar P woj...@wojtek.tensor.gdynia.pl wrote: su: Sorry kes# pw user mod svn -s /bin/bash kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash kes# /usr/local/etc/rc.d/svnserve start Starting svnserve. su: Sorry try to change directory to existent P (1) What's /bin/bash? Check existing shell. P (2) As you said: Check existing directory. P (3) Regarding su, check for wheel group inclusion. home# uname -a FreeBSD home.kes.net.ua 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug 12 02:11:24 EEST 2008 k...@kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 home# pw user show svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin As you can see on 'home' machine svn user has no valid shell also it has not valid home directory and it is not included into wheel group But svnserve is started and works fine. With same settings svnserve does not work on kes# uname -a FreeBSD kes.net.ua 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #: Sun Nov 23 17:19:12 EET 2008 k...@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 M echo 'rc_debug=YES'/etc/rc.conf M /usr/local/etc/rc.d/svnserve start M Show output from /var/log/messages. kes# kes# /usr/local/etc/rc.d/svnserve start /usr/local/etc/rc.d/svnserve: DEBUG: checkyesno: svnserve_enable is set to YES. Starting svnserve. /usr/local/etc/rc.d/svnserve: DEBUG: run_rc_command: doit: su -m svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk' su: Sorry -- С уважением, KES mailto:kes-...@yandex.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problem with extracting from md
First thing that comes to my mind: On Wed, 17 Dec 2008 12:42:29 +0300, Gema niskazhu gemoc...@gmail.com wrote: # mdconfig -a -f /a/FreeBSD/7.0-amd64-disc1.iso Isn't the -t vnode needed anymore, or is it implicitly used? But if you can cd (and maybe ls) on the mounted ISO, it seems that it would be that way... I think somth works wrong with my motherboar. At least, the rror message you presented looks really strange... -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to find files that are eating up disk space
On Dec 17, 2008, at 1:53 PM, Karl Vogel wrote: On Wed, 17 Dec 2008 12:16:57 -0500, John Almberg jalmb...@identry.com said: J Is there a command line tool that will help me figure out where the [disk J space] problem is? I run a script every night to handle this. snip exit 0 -- Karl Vogel I don't speak for the USAF or my company Very helpful. Thanks, Karl. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7 load hangs on boot
On Wed, 17 Dec 2008 06:24:17 -0800 (PST), ThinkDifferently jer...@futurecis.com wrote: Anyway, what is this atapicam option. How is it implemented, from the loader prompt, editing the iso, or what? BTW, how would one edit the iso? The atapicam facility can either be loaded as a module via kld_load (or put into /boot/loader.conf as atapicam_load=YES) or compiled into a custom kernel. The effect is that, when atapicam is loaded, ATA(PI) devices can be accessed as if they were SCSI devices. Your install devlice would then be /dev/cd0 (instead of /dev/acd0), using SCSI commands to access the ATAPI drive (this is what atapicam translates). Editing the ISO, as far as I know, involves the /usr/src tree on a working FreeBSD machine, then editing the source files, and finally make release. But I'm not sure on this, I've never tried it. Maybe someone with more experience on this tpoic could be more specific and explain? -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to find files that are eating up disk space
John Almberg writes: Is there a command line tool that will help me figure out where the problem is? I should probably have mentioned that what I currently do is run du -h -d0 / and gradually work my way down the tree, until I find the directory that is hogging disk space. This works, but is not exactly efficient. -d0 limits the search to the indicated directory; i.e. what you can see by doing ls -al /. Not superior to ls -al / and using the Mark I eyeball. What (I think) you want is du -x -h /: infinite depth, but do not cross filesystem mount-points. This is still broken in that it returns a list where the numbers are in a fixed-width fiend which are visually distinguished only by the last letter. Try this: du -x / and run the resu;ts through sort: sort -nr and those results through head: head -n 20 I have a cron job which does this for /usr and e-mails me the output every morning. After a few days, weeks at most, I know what should be on that list ... and what shouldn't and needs investigating. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
su qeustion
I just installed FreeBSD with Gnome. And I changed the shell when I was logged ito the terminal as su root. Now when I try to log in to su it asks for a password and I get su: /usr/bin/csh: No such file or directory how can I change it back. Thanks Jonathan Moore ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: socket: too many open file descriptors (Re: Python with many threads)
Ott Köstner wrote: In /var/log/messages: named[63198]: socket: too many open file descriptors See the sysctl variables: kern.maxfiles kern.maxfilesperproc Note that Google leads immediately to this: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/net/2008-07/msg00251.html -- Michel TALON ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: How to find files that are eating up disk space
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of John Almberg Sent: 17 December 2008 17:17 To: freebsd-questions@freebsd.org Subject: How to find files that are eating up disk space Here is another newbie question that is driving me crazy, but is probably a laughable situation to an experienced admin... I've got a smallish server that is suddenly out of disk space in the '/' partition. Probably some log files have gotten out of hand. I am going to start looking for the culprits by hand... basically inspecting sub directories, but there must be a better way! Is there a command line tool that will help me figure out where the problem is? Even better, is there a way to proactively monitor the file system, so I can fix problems before I start getting 'out of disk space' errors? Any hints, much appreciated. reebsd-questions-unsubscr...@freebsd.org As a start you might want to look at the 'du' command. man du for more info. But for a quick start: du -x -d2 -h / should give you some useful info. You generally shouldn't have much writing to the / partition, unless you haven't greated a separate /var partition, which is recommended. - barry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Newb help setting up printer
On Wed, 17 Dec 2008 21:25:20 +1000, Warren Liddell shin...@maydias.com wrote: Im trying to setup my Printer a Cannong Pixma Ip1000 which is detected aok soon as i plug it in ... I have looked through a few sites an tryed ot follow some, but im afraid i need a basic HOW TO for dummies type style of setting up an configuring my printer to work on FreeBSD 7.1-PRERELEASE AMD 64 .. Any help would be greatly appreciated. This is the site i have been following ... http://www.freebsddiary.org/apsfilter.php According to your printer model, I think you're best off using CUPS (common UNIX printing system). Don't get me wrong: I've used apsfilter myself for several years now without problems, HP and Lexmark laser printers attached, but since I needed to install FreeBSD 7 from scratch, including new apsfilter version, the printer don't duplex anymore. Furthermore, CUPS is known for supporting more printers than apsfilter does. In some way, it seems that it can even support printers that claim to be Windows only. Basically, you should read the handbook's section about printing and then follow the CUPS documentation about how to set uo your particular printer. Printing on FreeBSD can be described as consisting of three parts: the printer queue (spool) which is managed by the OS itself, the printing converter control (CUPS, apsfilter) and finally the particular drivers or converters for the printer. If everyone would have a PS capable printer, only the first part would be needed. :-) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: PHP5 as apache module using packages
Hi all; Ok so i've reinstalled fBSD-7 and i'm running apache 2.2 installed using pkg_add I need to also run php as a module for apache (the web software i'm using requires php as module no cgi). Curious: what software and why? The only valid reason is that the sofware writes php_value/php_flag options to .htaccess files. This has many other implications and I would carefully examine the software and all other websoftware I have installed, before allowing this. The software is elgg.org, it is social software, i'm working on a project for a world of warcraft guild (yes this is a money deal), they are looking for a facebookish type site with some custom world of warcraft stuff done. I haven't really looked too much at the software yet although I'm going to. This is going to be on a dedicated server, not doing anything else. Cheers, Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to find files that are eating up disk space
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Almberg wrote: Here is another newbie question that is driving me crazy, but is probably a laughable situation to an experienced admin... I've got a smallish server that is suddenly out of disk space in the '/' partition. Probably some log files have gotten out of hand. I am going to start looking for the culprits by hand... basically inspecting sub directories, but there must be a better way! Is there a command line tool that will help me figure out where the problem is? Even better, is there a way to proactively monitor the file system, so I can fix problems before I start getting 'out of disk space' errors? Any hints, much appreciated. John, try man du. It will give you file sizes of all the files in a directory tree, which you can then pass to sort and head to pull out the biggest offenders, like this # cd / # du | sort -rn | head -10 for monitoring my system, I use tripwire, but that might be a bit much just for watching disk usage. Try putting a df -h in your periodic scripts to have the output of that command mailed to you each day. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAklJOE0ACgkQEStKVA82Z+1tNgCdHSAYcm5A6sTjbjjHmzL3ynS2 C+0Anim0sf0yIz/l7TVNtdA5a5JbM+Jz =xetm -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7 load hangs on boot
Polytropon wrote: On Wed, 17 Dec 2008 06:24:17 -0800 (PST), ThinkDifferently jer...@futurecis.com wrote: Anyway, what is this atapicam option. How is it implemented, from the loader prompt, editing the iso, or what? BTW, how would one edit the iso? The atapicam facility can either be loaded as a module via kld_load (or put into /boot/loader.conf as atapicam_load=YES) or compiled into a custom kernel. The effect is that, when atapicam is loaded, ATA(PI) devices can be accessed as if they were SCSI devices. Your install devlice would then be /dev/cd0 (instead of /dev/acd0), using SCSI commands to access the ATAPI drive (this is what atapicam translates). Editing the ISO, as far as I know, involves the /usr/src tree on a working FreeBSD machine, then editing the source files, and finally make release. But I'm not sure on this, I've never tried it. Maybe someone with more experience on this tpoic could be more specific and explain? also, if you're using a windows machine or whatever to burn you iso, download something called ultraiso or similar to edit your iso file. makes it easy as cake. not nearly as fattening. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7 load hangs on boot
Giorgos Keramidas wrote: Did you try the 'safe-mode' option from the loader menu? Yes, to reiterate... ThinkDifferently wrote: I have tried booting from Boot-only, Disc1, LiveFS. Additionally, I've tried the default boot, with ACPI disabled, Safe Mode, single user mode, and verbose logging. Giorgos Keramidas wrote: Did you try disabling DMA for the CD-ROM by setting hw.ata.atapi_dma=0 from the loader prompt, like someone else suggested a few emails back? Yes. I tried booting from the boot-only CD, choosing option 6 Escape to loader prompt, entering set hw.ata.atapi_dma=0, followed by boot. No change in status, still hangs. At this point, I haven't completely given up all hope. I still have one thing to try. Since the motherboard was obviously made for Windows and only has Windows instructions, what I will try is the following: 1. Make a driver diskette as the mobo instructions state. 2. Boot from Windows Vista Ultimate DVD. 3. On the storage screen, click on the Load Driver button. 4. Load the driver and configure the disks as per the instructions. 5. When the storage device shows up in Window's storage screen, I will shutdown. 6. Swap in the FreeBSD boot-only CD. 7. Reboot observe if it recognizes the storage device /or hangs. Sound like a plan? Anything else I might try? -- View this message in context: http://www.nabble.com/FreeBSD-7-load-hangs-on-boot-tp21039625p21053877.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7 load hangs on boot
Giorgos Keramidas wrote: On Tue, 16 Dec 2008 21:36:05 -0800 (PST), ThinkDifferently jer...@futurecis.com wrote: ThinkDifferently wrote: Another item of curiosity... I just now tried booting from a CentOS 5.2 DVD. It also hangs with a little window titled Loading SCSI driver that says Loading ahci driver... The funny thing is, I've tried turning off all RAID functionality in the BIOS. On my mobo, this entails setting it to IDE mode, instead of RAID or AHCI. That doesn't appear to do anything. I'm at my wit's end with this. I tried FreeBSD in every way I know how, and they all hang. Did you try the 'safe-mode' option from the loader menu? Did you try disabling DMA for the CD-ROM by setting hw.ata.atapi_dma=0 from the loader prompt, like someone else suggested a few emails back? if he would try it along with the atapicam, he would probably get further. i had a similar issue and that was the solution. well, the errors were the same, so it was the same issue. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Extracting changed files list from snapshot
Mel wrote: On Tuesday 16 December 2008 15:18:19 Bernard Dugas wrote: I want to extract the list of files changed between 2 snapshots, to be able to do efficient backups. Just use dump(8)? Yes in first step, may be. But for fast replication of changes ? Imagine i have a 1TB drive with 1 partition on serverA, and i want it duplicated on another 1TB drive serverB, with 1Gbps network between them, so network speed is not a problem. I begin with dump or any copy mean to have the 2 drives having the partitions in the same state, from a first snapshot image 0 which is the reference on serverA, made with mksnap_ffs. A user change only 1 small file on serverA. After 1mn, i create snapshot0+1 file on serverA. To find the files changed on serverA between snapshot0 and snapshot0+1, any current dump or equivalent will have to read all file records of 1TB partition, inside snapshot0+1 complete view of partition, to find 1 changed file. Even on nice day, it may take more than 1mn. But the beauty and efficiency of snapshot concept is that snapshot0 file (internal structure) contains a reference to all data blocks changed between snapshot0 and snapshot0+1 : this is why a snapshot file is so small and efficient. It is certainly possible to find in snapshot0 file inside structure the list of blocks changed until snapshot0+1 was made, and then find which file is the owner of the changed blocks. Then it will appear that only 1 file has been changed on whole partition and we just have to send this changed file from snapshot0+1 view to serverB. So using the internal structure of snapshots file is far more efficient than reading all directory records for last change time... Please note that i try to use the expressions snapshot file and snapshot view very cautiosly, because they don't mean the same at all :-) And what snapshots do you mean? As in mksnap_ffs? Cause that's described in /usr/src/sys/ufs/ffs/ffs_snapshot.c: 127 TAILQ_HEAD(snaphead, inode); 128 129 struct snapdata { 130 struct snaphead sn_head; 131 daddr_t sn_listsize; 132 daddr_t *sn_blklist; 133 struct lock sn_lock; 134 }; 135 and not exposed to userland. Thanks, this is a good hint ! Just needing some doc and help to understand how to use it : i'm more in design now, programmation skills are far away :-( Best regards, -- Bernard DUGAS Mobile +33 615 333 770 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: lang/php5 port
--On Wednesday, December 17, 2008 08:18:47 +0100 Mel fbsd.questi...@rachie.is-a-geek.net wrote: On Wednesday 17 December 2008 04:33:51 Paul Schmehl wrote: --On December 16, 2008 7:33:31 PM -0600 Steve Bertrand st...@ibctech.ca wrote: One of the reasons I've had to edit Makefile manually was because a client needed JPEG support. At the time, `make config' didn't provide that option. You should *never* need to edit a Makefile in a port. (Well, extremely rarely.) More often then you think. I encourage understanding the system and editing to suit your needs. It's a transparent system, unlike many others out there, so you might as well make good use of it. Though a lot of things can be handled by: 1) environment variables (temporary) 2) /etc/make.conf (permanent) 3) Makefile.local (permanent, inclusion is at bsd.port.pre.mk stage which allows you to override hardcoded settings) It is needed in some cases to edit the makefile to fix things or remove dependencies that the maintainer didn't find necessary to remove or even to fix bugs. I agree with you with one caveat. Make sure that you know what you're doing before you do this, and be prepared for the consequences. For example, if you edit any files in a port, they will be overwritten when you update your ports. That means you'll have to make those edits again. If you're maintaining your own workstation, that might be an educational experience. If you're maintaining servers, that could cause an outage while you try to remember what your edits were. If you think a port is incorrectly built (unnecessary dependencies, for example) there's nothing wrong with submitting a PR and asking the maintainer to update the port. If the maintainer rejects your changes, you can always edit locally later, but your submission could benefit thousands of people. IOW, if you're the smartest guy on the block, please don't keep it to yourself. -- Paul Schmehl (pa...@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/
Re: Startup scipt
On Wed, 17 Dec 2008 10:05:05 +0100, Mel fbsd.questi...@rachie.is-a-geek.net wrote: On Tuesday 16 December 2008 01:54:57 Giorgos Keramidas wrote: The second invocation uses another set of options from `rc.conf': moused_ums0_enable moused_ums0_port moused_ums0_type moused_ums0_flags The support for these non-default options is implemented using a small local hack in `src/etc/rc.d/moused': http://svn.freebsd.org/viewvc/base/head/etc/rc.d/moused?view=annotate#l24 It would be great if you found some way to integrate this with the rest of rc.d. This way more scripts can support multiple instances of the underlying service :) Better like jail is done. I like the fact that jail_list is what is started upon startup but you can have many more jail_foo defined. Removing one from the list will disable it on boot, but it is still enabled by itself, so that /etc/rc.d/jail start foo is still valid. That's a fine idea :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: su qeustion
On Dec 17, 2008, at 12:12 PM, Jonathan Moore wrote: I just installed FreeBSD with Gnome. And I changed the shell when I was logged ito the terminal as su root. Now when I try to log in to su it asks for a password and I get su: /usr/bin/csh: No such file or directory how can I change it back. Reboot into single-user mode, which will give you a /bin/sh root shell, run vipw, and fix the root shell to be /bin/csh. Or, if you have sudo available, you can use that directly to get a root shell and fix it without needing to hit single-user mode Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7 load hangs on boot
Polytropon wrote: On Wed, 17 Dec 2008 06:24:17 -0800 (PST), ThinkDifferently jer...@futurecis.com wrote: Anyway, what is this atapicam option. How is it implemented, from the loader prompt, editing the iso, or what? BTW, how would one edit the iso? The atapicam facility can either be loaded as a module via kld_load (or put into /boot/loader.conf as atapicam_load=YES) or compiled into a custom kernel. The effect is that, when atapicam is loaded, ATA(PI) devices can be accessed as if they were SCSI devices. Your install devlice would then be /dev/cd0 (instead of /dev/acd0), using SCSI commands to access the ATAPI drive (this is what atapicam translates). Editing the ISO, as far as I know, involves the /usr/src tree on a working FreeBSD machine, then editing the source files, and finally make release. But I'm not sure on this, I've never tried it. Maybe someone with more experience on this tpoic could be more specific and explain? i have edited iso files directly, as it still contains the /boot/loader.conf eg: mich...@macpro:/cdrom/boot# ls loader.conf loader.conf mich...@macpro:/cdrom/boot# cat loader.conf mfsroot_load=YES mfsroot_type=mfs_root mfsroot_name=/boot/mfsroot atapicam_load=YES ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Publishing information via DNS
On Wed, 2008-12-17 at 19:07 +0100, Wojciech Puchar wrote: Someone needs to invent and promote a TextualDatagramPublicationProtocol or TDPP because DNS has been abused for publishing non DNS data for too long. Continuing to use DNS for things it was never intended to do will only cloud the issue and delay implementation when the internet decides to take DNS security seriously. where do you see security issue of that? except that someone voluntarily publish his/her private data this way - but it won't be DNS security problem but his/her problem I'm not pretending to be any kind of expert in this, but as with any software not used as it should it does get cloudy. Security in DNS is already an issue with care to be taken in who can see what and how it gets updated or what not- particularly with slave DNS' involved. I can't say what security issues it would raise, but I wouldn't be implementing anything like that myself for the same reasons. I'd stick to hostnames and maybe services which it was designed for. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Nagios Jail
Hi all. I'm trying to install a nagios server in a jail. I've a problem with check_ping. [r...@]# /usr/local/libexec/nagios/check_ping -H some_host -w 3000.0,80% -c 5000.0,100% -p 5 CRITICAL - You need more args!!! Could not open pipe: So I think it's become the «ping problem». So I put sysctl -w security.jail.allow_raw_sockets=1 in the host-jail-server. In the jail I can make a ping but the nagios check_ping don't work. Anyone have succefully install a nagios server in a jail ? Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Téléphone : 01 45 07 76 26 Heure local/Local time: Mer 17 déc 2008 22:02:55 CET ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: lang/php5 port
On 12/17/08 1:05 PM, Matthew Seaman m.sea...@infracaninophile.co.uk wrote: Tom Worster wrote: i'm certainly not smart enough to know what might be a better way to design ports like php. but one thing seems odd to me. i ended up with dozens of ports installed that appeared to use nothing but the same php-5.2.8.tar.bz2 distfile. relative to what i'm used to with php (i.e. manual configure, compile, install) this seems a bit untidy and i'm nervous what it might mean for maintenance. Absolutely not. Don't be confused that the various php5-foo ports all use the same distfile: it's a big lump of code, and the individual modules selectively compile bits of it. Don't be perturbed that you have a large number of ports installed -- after all a port is ultimately just a set of files treated together as a block. This just means you're getting finer grained control over what you've got installed on your machine. fair enough. this seems analogous to the long list of options i used to use on ./configure when installing from the php tarball. No -- the current design of the way PHP is dealt with in ports is brilliant. Consider the alternative -- in fact the way it used to be done. relative to other ways of designing ports i can accept that the current one is better. my point of view, however, is someone transitioning from manual install to using lang/php5-extensions. it's new to me and i need to learn. the conversation here has been very helpful (thanks again, all). at the same time i'm transitioning from 6.2 to 7.0 and learning how to use freebsd-update and portmaster. previously, upgrading freebsd was such a big project that i'd do it on the production servers very infrequently and reinstalling all the apps from scratch after os upgrade seemed acceptable. but now it seems silly not to take advantage of the new automation tools for freebsd and ports updates. hence learning to use ports for everything seems like the way to go. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Copying system/ports configuration?
On Wed, Dec 17, 2008 at 2:00 AM, Mel fbsd.questi...@rachie.is-a-geek.netwrote: On Tuesday 16 December 2008 16:16:27 Andrew Gould wrote: On Tue, Dec 16, 2008 at 9:03 AM, Dr. Jennifer Nussbaum bg271...@yahoo.comwrote: I have a FreeBSD 7.0 system that im using in production. I want to create a FreeBSD virtual machine, to use as a testbed for this production box. The last time i did this it took a lot of time to get the VM set up--installing all the right ports, getting the database configuration right, etc. Are there any shortcuts for this, e.g. a way i can automatically install the same ports on the new machine? I didnt see anything in the handbook or FAQ about this, but id think that people need to do this all the time. Any other advice for mirroring the system? Thanks! Jen Someone once posted a shell script that obtained a list of installed ports from the package database system and fed the results to pkg_create, which would create binary packages. Unfortunately, I can't locate the script. cd /var/db/pkg mkdir /var/tmp/packages for DIR in *; do if test -d ${DIR} -a -f ${DIR}/+CONTENTS; do pkg_create -vb ${DIR} /var/tmp/packages/${DIR}.tbz fi done This will create a package for all installed software in /var/tmp/packages. Adjust accordingly. Once ssh is in place on target: scp -rp /var/tmp/packages target.machine:/var/tmp On target: cd /var/tmp/packages for FILE in *; do pkg_add ${FILE}; done Then all that's left is /usr/local/etc/ and possibly some dirs /usr/local/share. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. Thanks, Mel. Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: su qeustion
On Dec 17, 2008, at 3:12 PM, Jonathan Moore wrote: I just installed FreeBSD with Gnome. And I changed the shell when I was logged ito the terminal as su root. Now when I try to log in to su it asks for a password and I get su: /usr/bin/csh: No such file or directory how can I change it back. su root -c /bin/sh and then change the shell to /bin/csh -- Steven Kreuzer http://www.exit2shell.com/~skreuzer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Nagios Jail
On Wed, 17 Dec 2008, Albert Shih wrote: Hi, I'm trying to install a nagios server in a jail. I've a problem with check_ping. [r...@]# /usr/local/libexec/nagios/check_ping -H some_host -w 3000.0,80% -c 5000.0,100% -p 5 CRITICAL - You need more args!!! Could not open pipe: So I think it's become the «ping problem». So I put sysctl -w security.jail.allow_raw_sockets=1 in the host-jail-server. In the jail I can make a ping but the nagios check_ping don't work. Anyone have succefully install a nagios server in a jail ? so do you know what check_ping is trying to do? Does it give you an error message? Anything? /bz -- Bjoern A. Zeeb The greatest risk is not taking one.___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Nagios Jail
hmm we have it working, let me see how. Albert Shih wrote: Hi all. I'm trying to install a nagios server in a jail. -- Michael Scheidell, CTO Phone: 561-999-5000, x 1259 *| *SECNAP Network Security Corporation * Certified SNORT Integrator * King of Spam Filters, SC Magazine 2008 * Information Security Award 2008, Info Security Products Guide * CRN Magazine Top 40 Emerging Security Vendors _ This email has been scanned and certified safe by SpammerTrap(r). For Information please see http://www.secnap.com/products/spammertrap/ _ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7 load hangs on boot
On Wed, 17 Dec 2008 06:16:00 -0800 (PST), ThinkDifferently jer...@futurecis.com wrote: Giorgos Keramidas wrote: Did you try the 'safe-mode' option from the loader menu? Yes, to reiterate... Ok, just making sure that you didn't miss that one. Sorry for the noise :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: freebsd-update killed my /var
Mel wrote: On Sunday 14 December 2008 15:28:16 FuLLBLaSTstorm wrote: Hey all, Recently I've run freebsd-update on my desktop machine, but it failed saying that it cannot save its files anymore to /var because the filesystem is full. now df shows something like this: # df /dev/ad0s1d253678 250630 -17248 107% /var If this is what I think it is, a 256k /var, then I'm not surprised. Handbook, online tutorials all recommend at least 1G for /var ever since the 4.x days. I use 5G, but I save logs for a year. I faced the same problem last week while trying to update to 7.1-RC1 on a disk with 197MB /var. Here's how I fixed the problem: # freebsd-update -d /path/to/big/path/directory/ upgrade -r 7.1-RC1 # freebsd-update -d /path/to/big/path/directory/ install Simply use freebsd-update's -d option. man freebsd-update for more info. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
PHP and PHP-Extensions
Hi all, I have a somewhat broken installation of php 4.4.7 and the extensions and want to completely remove them and reinstall them. How does one conpletely remove php4 (from ports) and the extensions to ensure a clean install? -Grant ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Publishing information via DNS
DAve(dave.l...@pixelhammer.com)@2008.12.17 10:13:09 -0500: Kelly Jones wrote: Has anyone tried publishing non-DNS information via DNS? Advantages: % Automatic distributed caching on various nameservers. % UDP, so no TCP overhead I know SPF uses this, and clamav publishes their current version number this way, but has anyone done this on a large scale basis? Someone needs to invent and promote a TextualDatagramPublicationProtocol or TDPP because DNS has been abused for publishing non DNS data for too long. Continuing to use DNS for things it was never intended to do will Like we need another protocol. The security issues with DNS are mostly BIND-related, it's BIND's fault. If you want to publish a large hierarchical directory database, then there's LDAP. Protocol adoption is an issue. LDAP is very slowly becoming more and more popular. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: PHP and PHP-Extensions
Grant Peel wrote: I have a somewhat broken installation of php 4.4.7 and the extensions and want to completely remove them and reinstall them. How does one conpletely remove php4 (from ports) and the extensions to ensure a clean install? Make sure you have good backups. Also make sure you have a handy list of all the ports you started with: # pkg_info -Ia /root/initial.ports Now, delete the lang/php4 port and everything that depends on it. The easiest way to do this is with the pkg_deinstall program which is part of portupgrade(1): # pkg_deinstall -dfr php4 'php4' is actually a packagename glob, so this will delete any package mentioning 'php4' in its name, plus every thing depending on those ports. So it will delete pure PECL or PEAR code modules and end user applications as well. Then regenerate the list of ports you've got installed and diff it against the initial list as a sanity check: # pkg_info -Ia /root/final.ports # diff -u initial.ports final.ports That should be pretty much it. If you've stripped out everything PHP related then /usr/local/lib/php/ and /usr/local/share/pear/ should be empty or gone completely, and there should be no ports left with 'php', 'pear' or 'pecl' prominently in their names. Nor should you have 'eaccelerator' or 'zend' related stuff still there. You'll still have some PHP related files in /usr/local/etc/ which you can delete or not as required -- they all have php in the name or directory path making them quite easy to identify. Note however that if you're intending to upgrade to PHP5 then you must delete /usr/local/etc/php.conf first, as that's the file that tells bsd.php.mk which version of PHP you're using. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: PHP and PHP-Extensions
On Wed, 17 Dec 2008 17:22:55 -0500, Grant Peel gp...@thenetnow.com wrote: Hi all, I have a somewhat broken installation of php 4.4.7 and the extensions and want to completely remove them and reinstall them. How does one conpletely remove php4 (from ports) and the extensions to ensure a clean install? One way would be to chenge into the ports directory and do a make deinstall for PHP and the extensions. Another way would be to run pkg_delete /var/db/pkg/name on PHP and its extensions. Both ways should inform you about files that the deletion process would not delete, so you can delete them manually afterwards. Then there should be no problem doing a clean reinstall. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7 load hangs on boot
Polytropon wrote: ThinkDifferently wrote: hptrr: no controller detected. It looks like there's a proble with the hptrr driver? Have you tried loading the HighPoint RocketRAID device drive by putting hptrr_load=YES into /boot/loader.conf? Further information can be obtained by: % man hptrr Check if your particular controller is supported. I went back to this, using my USB boot device and edited /boot/loader.conf to have hptrr_load=YES. Still, no joy. Also, I've been able to determine that I don't have a RocketRAID device. That's a separate RAID card, and I simply don't have one. What I have is an onboard NVIDIA NForce Storage Controller. I'm befuddled as to why FreeBSD thinks I have RocketRAID. -- View this message in context: http://www.nabble.com/FreeBSD-7-load-hangs-on-boot-tp21039625p21065051.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD 7 load hangs on boot
Polytropon wrote: On Wed, 17 Dec 2008 06:24:17 -0800 (PST), ThinkDifferently jer...@futurecis.com wrote: Anyway, what is this atapicam option. How is it implemented, from the loader prompt, editing the iso, or what? BTW, how would one edit the iso? The atapicam facility can either be loaded as a module via kld_load (or put into /boot/loader.conf as atapicam_load=YES) or compiled into a custom kernel. The effect is that, when atapicam is loaded, ATA(PI) devices can be accessed as if they were SCSI devices. Your install devlice would then be /dev/cd0 (instead of /dev/acd0), using SCSI commands to access the ATAPI drive (this is what atapicam translates). Well, one thing's for sure. This really isn't a CD/DVD boot problem. Booting from USB is no different. I will add regarding my previous post about trying to load the driver using the Windows method seems kind of pointless. After reading up on it further, it seems that all it's doing is loading the driver into Windows during the install process. It's not actually effecting the hardware any...but I could be wrong. -- View this message in context: http://www.nabble.com/FreeBSD-7-load-hangs-on-boot-tp21039625p21065105.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Publishing information via DNS
On 12/17/08, Matthew Seaman m.sea...@infracaninophile.co.uk wrote: Kelly Jones wrote: Has anyone tried publishing non-DNS information via DNS? Advantages: % Automatic distributed caching on various nameservers. % UDP, so no TCP overhead I know SPF uses this, and clamav publishes their current version number this way, but has anyone done this on a large scale basis? Read all about 'Hesiod' at a search engine near you. No, not the Greek poet... the other hesiod. Hesiod is interesting, but the Wikipedia article suggests its used for small local networks. I'm thinking of globally DNS-casting data. Kent, CT11 9PW Does your city change into Metropolis when there's danger? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Publishing information via DNS
Hesiod is interesting, but the Wikipedia article suggests its used for small local networks. I'm thinking of globally DNS-casting data. is IS ok to do this. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
linux_base question
I'm trying to keep all FreeBSD servers in my net as I have since the late 90s. I have a requirement to get a quickbooks enterprise server running so I was going to attempt to use compat_linux. It struck me that if I knew the following list of supported linux implementations, I should be able to figure out the best port to use. So far, it doesn't seem too clear to me. Here are the linux versions supported by the 2 daemons Intuit puts out: CentOS 5 Debian (Lenny) Fedora 6 / 7 / 8 Mandriva OpenSuSE 10.2 / 10.3 Ubuntu 6.06 / 7.04 / 7.10 / 8.0 Here are the components needed. Gamin - 0.1.7.7 or newer or Fam – 2.7.0 or newer Glibc – 2.5-3 or newer, or Libc6 – 2.5-3 or newer Libgcc – 4.2.1 or newer Libstdc++ - 4.2.1 or newer Which of the linux_base* ports would be best to attempt to run these two daemons. I just updated ports and have the following shown linux_base-f7 linux_base-f8 linux_base-fc4 linux_base-fc6 (and several Gentoo) Freshports shows fc4 as what you need to support a 2.4 kernel and the others as Ignore? What little I could figure out suggests at least some of those linux versions above are 2.6 something kernels. I guessed f8 but then found threads saying it was experimental. I'm just not getting it. Is there an easy answer or will this be a trial and error? I don't know a thing about Linux and never thought I'd have to.___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Nagios Jail
On Thu, Dec 18, 2008 at 5:05 AM, Albert Shih albert.s...@obspm.fr wrote: Hi all. I'm trying to install a nagios server in a jail. I've a problem with check_ping. [r...@]# /usr/local/libexec/nagios/check_ping -H some_host -w 3000.0,80% -c 5000.0,100% -p 5 CRITICAL - You need more args!!! Could not open pipe: So I think it's become the «ping problem». So I put sysctl -w security.jail.allow_raw_sockets=1 in the host-jail-server. In the jail I can make a ping but the nagios check_ping don't work. Anyone have succefully install a nagios server in a jail ? I have. I recall having the same problem w/ an older version of nagios. But the recent versions should work fine. I'm using -devel tho. Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Téléphone : 01 45 07 76 26 Heure local/Local time: Mer 17 déc 2008 22:02:55 CET ___ freebsd-j...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to freebsd-jail-unsubscr...@freebsd.org -- cheers mars ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Is FreeBSD subject to the EAR ?
Is Free BSD 6.3-release subject to the U.S. Export Administration Regulation ? If the FreeBSD 6.3-release includes encryption software, it may be subject to the EAR. Following is extract part of the EAR. Part 734.3 : Items subject to the EAR (b) The following items are not subject to the EAR: ・ ・ (3) Publicly available technology and software, except software controlled for EI reasons under ECCN 5D002 on the Commerce Control List and mass market encryption software with symmetric key length exceeding 64-bits controlled under ECCN 5D992, that: Best regards, K.Okisaka Exprt Control Department, Toshiba Medical Systems Corporation e-mail : kosuke.okis...@toshiba.co.jp ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: can not start SVNserve
On Wednesday 17 December 2008 21:02:07 KES wrote: Здравствуйте, Mel. Вы писали 17 декабря 2008 г., 9:11:19: M On Sunday 14 December 2008 16:11:17 KES wrote: Здравствуйте, Polytropon. Вы писали 14 декабря 2008 г., 15:11:35: P On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar P woj...@wojtek.tensor.gdynia.pl wrote: su: Sorry kes# pw user mod svn -s /bin/bash kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash kes# /usr/local/etc/rc.d/svnserve start Starting svnserve. su: Sorry try to change directory to existent P (1) What's /bin/bash? Check existing shell. P (2) As you said: Check existing directory. P (3) Regarding su, check for wheel group inclusion. home# uname -a FreeBSD home.kes.net.ua 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug 12 02:11:24 EEST 2008 k...@kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 home# pw user show svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin As you can see on 'home' machine svn user has no valid shell also it has not valid home directory and it is not included into wheel group But svnserve is started and works fine. With same settings svnserve does not work on kes# uname -a FreeBSD kes.net.ua 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #: Sun Nov 23 17:19:12 EET 2008 k...@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 i386 M echo 'rc_debug=YES'/etc/rc.conf M /usr/local/etc/rc.d/svnserve start M Show output from /var/log/messages. kes# kes# /usr/local/etc/rc.d/svnserve start /usr/local/etc/rc.d/svnserve: DEBUG: checkyesno: svnserve_enable is set to YES. Starting svnserve. /usr/local/etc/rc.d/svnserve: DEBUG: run_rc_command: doit: su -m svn -c 'sh -c /usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk' su: Sorry Does this command work from the command line? If not, does it work if called as su -fm rather then su -m? If that does not work, does the primary group svn is supposed to be in exist? -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: PHP5 as apache module using packages
On Wednesday 17 December 2008 16:08:43 Ott Köstner wrote: Nothing special needed. Just a regular Apache, MySQL, and PHP. 5...10 minute install from FreBSD ports. Port: elgg-0.9.1 Path: /usr/ports/www/elgg Info: Blogging and social networking platform make make install create database and it starts like any other PHP/SQL application... And thus, can run as php-cgi. There are performance and configuration management reasons to use the module, but these come more into play with mass virtual hosting, rather then a dedicated server for one web app. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Extracting changed files list from snapshot
On Wednesday 17 December 2008 11:37:04 Bernard Dugas wrote: Mel wrote: On Tuesday 16 December 2008 15:18:19 Bernard Dugas wrote: I want to extract the list of files changed between 2 snapshots, to be able to do efficient backups. snip And what snapshots do you mean? As in mksnap_ffs? Cause that's described in /usr/src/sys/ufs/ffs/ffs_snapshot.c: 127 TAILQ_HEAD(snaphead, inode); 128 129 struct snapdata { 130 struct snaphead sn_head; 131 daddr_t sn_listsize; 132 daddr_t *sn_blklist; 133 struct lock sn_lock; 134 }; 135 and not exposed to userland. Thanks, this is a good hint ! Just needing some doc and help to understand how to use it : i'm more in design now, programmation skills are far away :-( I'm still wondering if you're not better off with ZFS, but this does seem like a useful app in it's own right. The TAILQ_HEAD statement means it's creating a tail queue(3) (double linked fifo/stack) of inodes. The snapdata structure contains the start of the list, the size and a lock. The sn_blklist pointer, I will have to look up. I think i'm gonna have fun with this for a bit ;) -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org