ports issue: delete upstream perl dependencies by mistake
I did something dumb I think with ports on my box. In the process of upgrading Perl, for every package that depended on Perl, via pkgdb, I somehow managed to delete the fact that the package depends on Perl itself. So now I have a bunch of packages that no longer reference Perl in it's upstream dependency listing. e.g. $ pkg_info -R p5-Mail-SpamAssassin-3.3.2_8 Information for p5-Mail-SpamAssassin-3.3.2_8: $ How can I fix this? Short of deleting all the packages (which I don't even know all they are, except for the p5-ones) and rebuilding? Thanks in advance, Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
denyhosts, fail2ban, or something else?
Finally got sick of seeing tons of ssh break-in attempts in my logs. Am considering using denyhosts, or fail2ban. Anyone have any experience with these? I'm already using the AllowUsers facility of ssh to only allow specific users in, so I'm not overly concerned about the attempts. This is for a FreeBSD 8.x box running pf, btw. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
shell scripting: grepping multiple patterns, logically ANDed
hello, I'm not sure if this is the right forum for this question, but here goes. I have the following in a shell script: #!/bin/sh if [ $# -eq 0 ]; then find /foo fi if [ $# -eq 1 ]; then find /foo | grep -i $1 fi if [ $# -eq 2 ]; then find /foo | grep -i $1 | grep -i $2 fi if [ $# -eq 3 ]; then find /foo | grep -i $1 | grep -i $2 | grep -i $3 fi Is there an easier/shorter way to do this? If there are 15 arguments supplied on the command line, I don't necessarily want to build 15 if statements. Thanks in advance for your answers. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
pcre library linking issues
I inadvertently updated my PCRE library and in the process broke a number of things that depended on the old library. I now have a number of binaries that look like this: /usr/local/bin$ $ ldd gtester gtester: libglib-2.0.so.0 = /usr/local/lib/libglib-2.0.so.0 (0x2809) libintl.so.9 = /usr/local/lib/libintl.so.9 (0x28168000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x28171000) libpcre.so.0 = not found (0x0) libc.so.7 = /lib/libc.so.7 (0x28267000) libpcre.so.0 = not found (0x0) What can I do to fix this in the meantime? Alex ___ freebsd-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: src upgrading jails (no ezjail, no service jails)
On Wed, Jun 1, 2011 at 4:44 PM, Greg Larkin glar...@freebsd.org wrote: Those commands will update the base system in the jail directory jaildir1 with the latest bits that were previously compiled with make buildworld. don't believe they will disturb any other data in /usr/local, if that's what you are concerned about. Yeah, I ran it and it mostly worked, although running mergemaster -p -D /path/to/jail before installworld didn't really back up files like it normally does, but I was able to pull the most recent backup and fix that. I use ezjail here, and it will automate a lot of these steps for you. Is there a reason that you can't use it? I didn't create these jails with ezjails, so I was working under the impression that I could not use ezjail to upgrade them. Is that not correct? Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
src upgrading jails (no ezjail, no service jails)
I have 4 jails that are running 8.2-RELEASE that I would like to upgrade. The host system, which was also running 8.2-RELEASE, has been successfully upgraded to 8.2-p2. I have /usr/src ready with the new world and new kernel. I did not create the jails using ezjails, so I cannot use that utility to upgrade it. I did not create the jails using the template method described in Handbook (section 15.6.1.2), so the method recommended to upgrade them, i.e.: http://www.freebsd.org/doc/handbook/jails-application.html#JAILS-SERVICE-JAILS-UPGRADING would not work for me. What is the proper way for me to upgrade these jails? thanks, Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
upgrading apr from v0 to v1 via portupgrade?
I recently moved my server to a new box and in the process of doing that, I upgraded from FreeBSD 7.3 to 8.1. When I say I moved, I mean I backed up all my personal data (databases, config values, etc.), made a list of all packages, and installed an identical box with the same pacakges. Recently I noticed that somehow I am on apr-0.9.19.0.9.19. On my old box, I was on apr-ipv6-devrandom-gdbm-db47-1.4.2.1.3.10. I didn't make that choice deliberarely, somehow when I installed all the pacakges, apr-0 was installed instead of apr-1. Normally I wouldn't care, but apr-0 has had an unpatched security advisory for a few weeks now, so I would like to upgrade all my packages that use apr-0 to apr-1. I use portupgrade, how can I 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
which syslog??? (rsyslog? syslog-ng? or default?)
I have some boxes (about 40) that I was tasked with creating a centralized logging infrastructure for. I see in ports that we have several different versions of rsyslog, and syslog-ng. Is there any reason to use one or the other? Or should I just use the syslog that come with the base OS? thanks, Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
BSD equivalent of Linux's free(1)?
hello, I am looking for something on BSD that will give me the same info as free(1) in Linux. i.e. I would like to know the state of total/used/free memory and swap. I know there are a number of utilities in ports that will let me do this, I am however looking for something in the base system (if such a utility exists). I also know that top(1) gives this info, and I could certainly use that, I just wanted the nearest BSD sibling of free(1).) Thank you! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: BSD equivalent of Linux's free(1)?
on wed, aug 18, 2010 at 1:04 pm, chris maness ch...@chrismaness.com wrote: Would not the info displayed in the command top suffice? Yes, top -n 1 does (sort of) display the info I need. The swap portion gives me the same info as Linux free, the memory portion is more cryptic, I guess due to differences in how FreeBSD allocates memory. Although a BSD free would probably be easier to remember, top -n 1 does the job. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: BSD equivalent of Linux's free(1)?
On Wed, Aug 18, 2010 at 1:41 PM, RW rwmailli...@googlemail.com wrote: Is there any particular reason you want to know? Free memory isn't a very meaningful concept in FreeBSD. I have a webserver that had it's Apache killed this morning. The box itself had been stable for several years, as well as the Apache instance. The error that I saw in /var/log/messages was something along the following: pid 1234 (httpd), uid 100, was killed: out of swap space So I went to check what was eating up the swap, The problem itself was tracked down fairly easily, someone had added a shelt script to cron (/home/user/foo.sh) and had mistakenly put the full path to the script into the script itself -- essentially creating a forkbomb. But while I was in the middle of debugging this and noticed that line from the logfile, I spent more time than necessary trying to figure out exactly how much swap/memory was being used, and who was using it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
upgrading 8.0 to 8.1, which tag to use?
I have a FreeBSD box running 8.0-RELEASE, that I would like to upgrade to 8.1 I am aware that 8.1 is not released yet, when 8.1-RELEASE is cut, I will rebuild at that point. My question is about which CVS tag to use. Should I use RELENG_8, or is there a RELENG_8_1 that I can use? thanks, Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
microsoft windows help needed (DHCP server problems)
I'm running FreeBSD 8.0-RELEASE on my work PC. My organization runs largely Windows desktops with a sizable chunk of Mac OS X machines. Whenever a Windows/Mac connects to the Windows-based DHCP server, it not only does the normal DHCP functions (i.e. gets an IP), it also sets the hostname on the Windows server for that IP. i.e. when windows.example.org connects to dhcpserver.example.org, the dhcp server assigns to it 192.168.1.1 AND sets the PTR record for 192.168.1.1 to be windows.example.org. But for my FreeBSD box seems to only do the first part, i.e. get an IP address. The second part does not seem to be done. Is this some Windows/Mac overloading of the DHCP protocol that I cannot do, or is there some DHCP bit I need to flip to make this happen? thanks, Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
portaudit php vulnerabilities
For the past week or so, portaudit has been warning me that the installed version of php on my system (php5-5.2.11_1) has known vulnerabilties. Fair enough. However, I've not seen a fix in the ports tree since then. Is my only option to deinstall php until this gets fixed? ___ freebsd-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 beastie plush toy?
Where can I purchase a FreeBSD beastie plush toy? Google reveals some very old links that no longer work. thanks, Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeNAS file server...which hardware to choose?
I would like to setup a home fileserver running FreeNAS (which itself runs on FreeBSD 7.2). Can someone recommend hardware for this? I know I'd have to get 3 harddrives. Two will be at home running RAID1, and the third will be mirrored about once per quarter and brought offsite. What kind of RAID chassis, computer system should I get for this setup? Would a soekris be sufficient, or is that overkill? Thanks in advance for your help/advice. ___ freebsd-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: FreeNAS file server...which hardware to choose?
On Sun, Jul 19, 2009 at 5:42 PM, Aleksandr Miroslav alexmiros...@gmail.com wrote: What kind of RAID chassis, computer system should I get for this setup? Would a soekris be sufficient, or is that overkill? Or should I just buy a barebones headless desktop PC (Dell has them cheap now for $241) for this task? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org