Re: php problems
On Tue, Aug 6, 2013 at 5:56 PM, mikel king mikel.k...@gmail.com wrote: On Aug 5, 2013, at 11:33 PM, Mark Moellering m...@msen.com wrote: A few years ago (2011) I set up an email system for a small internet based company. I used postfix with a mysql backend for virtual accounts. I also set up apache to test a php based webmail front-end. I set up several php scripts that would run from cron that would query a database and look for new email account requests and then do a variety of tasks to get everything set up properly. After I left, someone else made modifications to the system and things stopped working properly. A few months ago I was asked to try and get things working again. I discovered that all php scripts now generate a seg fault. I tried a simple hello world type program the actual code is : ?php echo test ? and the output was; testsegmentation fault The system is FreeBSD 8.2 and php 5.3 If anyone has any idea of what changes might have been made that could cause this, please let me know. My other thought was to try reinstalling / upgrading php. Thanks in advance Mark Moellering ___ 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 Hey Mark, Do you have a backup/alternative system you can test the code on? In lieu of that I would seriously consider rebuilding php. After you get it working it would be worth also considering upgrading to 55. Also make a complete revision backup of the code and config files once you get it working, this will save a lot of hair if the company in question hires someone else to tweak things in the future… Cheers, Mikel ___ 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 Hello, If a simple command like php -v (no script) results a seg fault then you should follow Patrick's advice. Or try editing by hand /usr/local/etc/php/extensions.ini and comment out one by one the extensions mentioned in there. If you are lucky you will find one or more offending extensions that you don't need and leave them commented out on uninstall them. If not, you would have to recompile/reinstall the offending extensions or portupgrade php and all extensions. Latest php versions in ports tree (all branches: 5.4.x, 5.3.x, even 5.2.x) seem to have resolve this issue. Regards, Panagiotis -- Panagiotis Christias christ...@gmail.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: Quantum SuperLoader 3 under Bacula on FreeBSD 8
On Fri, May 14, 2010 at 4:29 AM, Paul Mather p...@gromit.dlib.vt.edu wrote: I am currently assembling a quote for an LTO-4 tape backup system. So far, I am looking at using a 16-slot Quantum SuperLoader 3 with LTO-4HH drive as the tape unit. Married to this will be a server to act as the backup server that will drive the tape unit using Bacula to manage backups. The server will be a quad core X3440 system with 4 GB of RAM and four 1 TB SATA 7200 rpm hard drives in a case that has room for eight hot-swap drives. I plan on using FreeBSD 8 on the system, using ZFS to raidz the drives together to provide spool space for Bacula. I will be using an Areca ARC-1300-4X PCIe SAS card to interface with the tape drive. My main question is this: is the Quantum SuperLoader 3 LTO-4 tape drive supported by Bacula 5 on FreeBSD? In particular, is the autoloader supported? The Bacula documentation indicates the SuperLoader works fully under Bacula, though not explicitly whether under FreeBSD. The backup server will serve a network cluster of perhaps a dozen machines with over 6 TB of storage, most of which is on the cluster's NFS server. Does anyone have good advice on sizing the spool/holding/disk pool for a Bacula server? Is it imperative to have enough disk space to hold a full backup, or is it sufficient to have enough space to maintain streaming to tape? (I don't have much experience of Bacula, having used it only to back up to disk.) In other words, do I need more 1 TB drives in my backup server? Finally, is 4 GB of RAM sufficient for good performance with ZFS? Will ZFS on FreeBSD be able to maintain full streaming speeds to tape, given the various reports of I/O stalls under ZFS reported recently? Thanks in advance for any advice or information. Hello Paul, we are using successfully a Quantum Scalar 50 with an expansion box and two F/C FH LTO-4 drives on FreeBSD 7-STABLE and Bacula 5.0.x. FreeBSD 7-STABLE or 8-STABLE is recommended if you have a QLogiq F/C card. Having Bacula's spooling area in a fast disk partition (e.g. a RAID0 volume) would be a good idea too. Regards, Panagiotis ___ 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
HP StorageWorks FC1242 and FC1243 Fibre Channel Host Bus Adapters working with FreeBSD?
Hello, we got an offer for the HP StorageWorks FC1242 and FC1243 Dual Channel 4 Gbps Fibre Channel Host Bus Adapters and we are wondering if they are compatible with FreeBSD. According to the specs they are based on the Qlogic QLE2462 and QLA2462 chipsets. Has anybody tried them successfully? Thank you, Panagiotis -- Panagiotis J. ChristiasNetwork Management Center [EMAIL PROTECTED]National Technical Univ. of Athens, GREECE ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compiling mtr without GUI
On 1/13/07, Christian Baer [EMAIL PROTECTED] wrote: Hi there Peeps! Somehow the mtr-port is bugging me a little. I want to install mtr on a machine with no keyboard and no monitor and thus no X - and I'd like to keep it that way. Since I couldn't find a package of mtr without the GUI, I guess, I'm stuck with the port. I've looked at the makefile and found the variable WITHOUT_X11. However, a 'make -D WITHOUT_X11' and a 'make WITHOUT_X11=1' both[1] result in X.org being downloaded and built. Now I am no real expert on makefiles but AFAIK in this case it shouldn't matter, what value WITHOUT_X11 has, as long as it is set at all. Am I too thick to be getting the point here or have I missed something not all that obvious? Don't think it matters but the Plattform is SPARC64 and the Version is 6.1-RELEASE (no cvsup run yet). Regards Chris [1] Both should actually do the same thing. Hello, we have the following lines in the /etc/make.conf of our non-X11 servers: # no support for X Windows on this server WITHOUT_X11=yes works fine with the mtr port. Regards, Panagiotis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading from FreeBSD 5.4 to 6.2
On 1/12/07, Josh Paetzel [EMAIL PROTECTED] wrote: On Friday 12 January 2007 07:24, Guill. Moreno-Socias wrote: Hello. I am planning to upgrade two servers from FreeBSD 5.4 to 6.2, as soon as it is released. I would like to know how to proceed. I have not been able to find instructions on freebsd.org (please forgive me if I have missed something). Thanks in advance. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html If you csup/cvsup to RELENG_6_2 you'll end up with 6.2-RELEASE :) I am wondering if freebsd-update (for 6.2) would be happy with the system.. Regards, Panagiotis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Under Attack: Bandwidth throttling on 5.2.1?
Chris wrote: This is probably going to tax the memory. I'm sorry in advance. We observed 2 hangs and 3 crashes in the last 5 hours and finally after looking at the nature of the traffic, it appears to be little infested windows spybots from all over targeting our forums to attempt to reply to all messages with gambling and other spam. The referer in every case is a few obvious spam sites. We measured 33 pages per second and all invoking perl (well you can image the load). It's killed the system in several was I've never even seen. We shutdown on purpose for the first time in years which is pretty bad for business. I'm readying the quad opteron tyan to take down and shove in it's place since the T1 can't swamp it, but still building. The machine is a dual 3.0 xeon with 4G and Intel 1000/Pro on 5.2.1 with IPFW enabled. If I can configure throttling on this old a system, we could come back up I think and try ride out the attack. I've never done this before but in an earlier thread I saw where you configure a pipe such as: ipfw pipe 1 config bw 256Kbit/s ipfw add pipe 1 tcp from 192.168.1.2 80 then set sysctl.conf net.inet.ip.fw.one_pass=1 Is that is all that's necessary for this old a system or is there anything else. If this is correct, would this keep this fellow from crashing To use traffic shaping with IPFW you have to compile the kernel with the following options: options DUMMYNET options HZ=1000 then you can add some lines like these to make your bandwidth limit to work: #first flush all the previous pipes ipfw -q -f pipe flush ipfw pipe 1 config bw 256Kbit/s ipfw add pipe 1 tcp from any to any usually we use two pipes, one for download and one for upload so you can try something like this: #first flush all the previous pipes ipfw -q -f pipe flush #upload bandwidth+download bandwidth=total bandwidth #pipe for upload ipfw pipe 1 config bw 128Kbit/s #pipe for download ipfw pipe 2 config bw 256Kbit/s server_port=20,21,80,443,995,...,etc internal_network=192.168.0.0 #config upload ipfw add pipe 1 tcp from $internal_network to any $server_port #config upload ipfw add pipe 2 tcp from any $server_port to $internal_network The variables server_port and internal_network are examples of course... :-) If you are running natd on your machine the you have to put rules AFTER the divert natd rule like these: ipfw add pipe 1 tcp from {external_ip} to any $server_port ipfw add pipe 2 tcp from any $server_port to $internal_network The net.inet.ip.fw.one_pass=1 must be set if you want your traffic to pass from pipes and not continue at next rules Sorry for my bad english ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: natd not starting on boot-up
Roger Merritt wrote: I'm thoroughly puzzled. Over the weekend I transferred my FreeBSD system to a new hard drive. Through laziness I didn't follow the instructions and had to make a completely new install. Everything now seems to be working the way it should, Apache, MySQL, PHP, syslog, Samba -- except natd. Everything starts on boot-up as it should -- except natd. I can start it manually from the command line after booting up and logging in and it works fine, but I can't tell what's going on that it's failing to start. My /etc/rc.conf contains the following: # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter=203.151.134.1 gateway_enable=YES hostname=poppy.international.stjohn.ac.th ifconfig_ed0=inet 10.3.16.125 netmask 255.255.255.0 ifconfig_ed1=inet 203.151.134.104 netmask 255.255.255.0 router_enable=YES firewall_enable=YES firewall_type=OPEN firewall_quiet=YES natd_enable=YES natd_interface=ed1 ipv6_enable=YES linux_enable=YES moused_enable=YES moused_port=/dev/sysmouse moused_type=auto screen=daemon nfs_client_enable=YES sshd_enable=YES What can I do to get some indication of where the problem is? Try to comment the line natd_enable=YES and then add a new line at the end of rc.conf: /etc/rc.d/natd start if this doesn't work, try to put natd_flags= in your rc.conf and plesase check your ipfw rule for nat it should be something like this: (with natd_flags=) ipfw -q add divert natd all from any to any via your_public_interface Good luck!! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: natd not starting on boot-up
Roger Merritt wrote: I'm thoroughly puzzled. Over the weekend I transferred my FreeBSD system to a new hard drive. Through laziness I didn't follow the instructions and had to make a completely new install. Everything now seems to be working the way it should, Apache, MySQL, PHP, syslog, Samba -- except natd. Everything starts on boot-up as it should -- except natd. I can start it manually from the command line after booting up and logging in and it works fine, but I can't tell what's going on that it's failing to start. My /etc/rc.conf contains the following: # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter=203.151.134.1 gateway_enable=YES hostname=poppy.international.stjohn.ac.th ifconfig_ed0=inet 10.3.16.125 netmask 255.255.255.0 ifconfig_ed1=inet 203.151.134.104 netmask 255.255.255.0 router_enable=YES firewall_enable=YES firewall_type=OPEN firewall_quiet=YES natd_enable=YES natd_interface=ed1 ipv6_enable=YES linux_enable=YES moused_enable=YES moused_port=/dev/sysmouse moused_type=auto screen=daemon nfs_client_enable=YES sshd_enable=YES What can I do to get some indication of where the problem is? Try to comment the line natd_enable=YES and then add a new line at the end of rc.conf: /etc/rc.d/natd start if this doesn't work, try to put natd_flags= in your rc.conf and plesase check your ipfw rule for nat it should be something like this: (with natd_flags=) ipfw -q add divert natd all from any to any via your_public_interface Good luck!! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Has the port collection become to large to handle.
Mark Linimon wrote: On Sun, May 14, 2006 at 02:04:55PM +0300, Panagiotis Astithas wrote: I believe that one solution to the scalability problem of creating and maintaining updated packages, would be to decentralize it more. Each time I submit an update for one of the ports I maintain, I've already build the relevant packages, as a QA measure. There should be no need to wait for the ports cluster to build the official version, instead of using my own, modulo perhaps the higher quality assurance you'd get from Kris's build infrastructure. You have built the package for one build environment (buildenv). There are 12. See http://portsmon.freebsd.org/portsoverall.py. Quite right. But I think that would still be helpful to the majority of users (of packages). If a maintainer can't build a package for a particular build environment due to lack of resources, we can always use the regular cluster builds for these architectures. We just gained a more timely release of the most wanted package(s), no? Frankly, the availability of up-to-date packages is the only issue from this thread I really care about. I've been contemplating about graphical package installers for FreeBSD for some time and most ideas fall short since there would not be much point in using a package installer without... er... packages :-) Regards, Panagiotis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Has the port collection become to large to handle.
fbsd wrote: So people them use the packages. But the problem with the packages is they are not updated every time changes are made to the port they were created from. Also packages that have dependants like php4/php5 or mysql4/mysql5 are not being updated to use the newer versions of those dependants as they come out. I believe that one solution to the scalability problem of creating and maintaining updated packages, would be to decentralize it more. Each time I submit an update for one of the ports I maintain, I've already build the relevant packages, as a QA measure. There should be no need to wait for the ports cluster to build the official version, instead of using my own, modulo perhaps the higher quality assurance you'd get from Kris's build infrastructure. This is what you usually get in the Windows/Mac/Linux world. Macromedia, for instance, provides their own packages for Flash, naturally. The Eclipse foundation provides binary packages for, say Linux, but Red Hat has chosen to provide its own rpm's from their repo. What if we taught pkg_add to use something like INDEX, instead of a global PACKAGESITE variable, to hold information about each port's remote site? What if this was the secondary site, while the freebsd.org one remained the primary? This way you'd try to get the official package first and if you failed to find it, you'd get the maintainer's copy. Many people (myself included) have been doing something similar for GNOME and KDE, by asking portupgrade to try the marcuscom and fruitsalad repositories first. Or how about we don't consume the cluster's capacity for building packages, but just for QA? Why not require me (the maintainer) to send-pr a URL to fetch the package's from and store them in the cluster (or straight to ftp-master)? Of course this would not work for people without the means to host the packages, or for unmaintained ports. We'd still have to use the ports cluster for them. For the security paranoid, add a big fat warning, that the contents of these packages are not verified or endorsed by the project. Maybe even, use two download locations: one for packages built by the cluster and another for packages submitted by the maintainers. IIUC, most Linux distributions have a similar arrangement. Bottom line, since the package building role is becoming unbearable (at least for a timely delivery) for the project, why not let the ones who are already creating packages on their own, share the burden? Regards, Panagiotis P.S.: it hasn't escaped me that using packages created from different systems could present dependency mismatches. But I would argue that this should be the maintainer's concern and moreover, it is something that is deemed acceptable in other systems. Furthermore, one could always use the ports system if he prefers. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Obsolete packages
On 4/25/06, Kris Kennaway [EMAIL PROTECTED] wrote: On Tue, Apr 25, 2006 at 02:39:58AM +0300, Panagiotis Christias wrote: On 4/25/06, Kris Kennaway [EMAIL PROTECTED] wrote: On Mon, Apr 24, 2006 at 01:41:51PM -0500, Eric Schuele wrote: [EMAIL PROTECTED] wrote: Hi, A new version of a port (www/firefox) was released on April 14. # portversion -v firefox firefox-1.5.0.1,1 needs updating (port has 1.5.0.2,1) But packages still (on April 24) are of previous version: $ ftp ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/ ftp dir packages-5-stable/All/firefox-1* -rw-r--r--1 110 011188636 Apr 01 16:29 firefox-1.5.0.1_2,1.tbz ftp dir packages-6-stable/All/firefox-1* -rw-r--r--1 110 011511879 Apr 02 10:21 firefox-1.5.0.1_2,1.tbz ftp dir packages-7-current/All/firefox-1* -rw-r--r--1 110 011511428 Apr 03 04:40 firefox-1.5.0.1_2,1.tbz Is something broken or is there insufficient computing power for building new packages more often? It's my understanding that packages are built when possible. They often lag that which is in ports. There are only so many cycles in a day (per cpu and per person). I would assume that there is some logical order in which the packages are built (most used first? Though not sure how that would be determined) I continuously rebuild packages using a method that only builds changed packages (new, updated to new version or with a dependency that was changed). This typically gives a turnaround time on i386 of less than a day to several days for packages becoming available, but as I said in another reply I'm not uploading them now because of the looming release cycle. With no intention to criticize your way of thinking or your work, release cycles sometimes could take a bit more time than scheduled. You, the developers and maintainers, know that better than us, the users. In the mean time there is a whole community of (end?) users that could benefit from the prompt availability of latest ports in packages. I'm referring mostly to desktop or workstation users, since the most of us build our ports from the sources for our servers. Although, I'm eager to use the portupgrade -P option more often for our (less critical) ports. Is there a chance that you, along with the release engineering team, reconsider your policy? It's basically forced upon us by the finite bandwidth of mirror sites. At release time they have many gigabytes of ISO images and other install media, etc to download, without adding many gigabytes of packages. If we don't back off from uploading packages in the lead up to the release, then what happens is that many mirror sites are out of date and do not carry the release media at the time of release. Well, speaking as the maintainer of the ftp.gr.freebsd.org mirror site I would say that in this case the monolithic form of the FreeBSD FTP repository is a drawback. Mirroring around 350GB/1.600.000 files, or even a subset, is a difficult (see insufficient) task. Separating the repository and the mirroring process in parts (releases, packages etc.) could be a solution.. Regards, Panagiotis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Obsolete packages
On 4/26/06, Kris Kennaway [EMAIL PROTECTED] wrote: On Wed, Apr 26, 2006 at 11:23:31PM +0300, Panagiotis Christias wrote: Well, speaking as the maintainer of the ftp.gr.freebsd.org mirror site I would say that in this case the monolithic form of the FreeBSD FTP repository is a drawback. Mirroring around 350GB/1.600.000 files, or even a subset, is a difficult (see insufficient) task. Separating the repository and the mirroring process in parts (releases, packages etc.) could be a solution.. Please raise any suggestions you have for improving the process on the mirror operators list, thanks. Yes, that is the right place for such issues. I'll give it a try. Regards, Panagiotis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Obsolete packages
On 4/25/06, Kris Kennaway [EMAIL PROTECTED] wrote: On Mon, Apr 24, 2006 at 01:41:51PM -0500, Eric Schuele wrote: [EMAIL PROTECTED] wrote: Hi, A new version of a port (www/firefox) was released on April 14. # portversion -v firefox firefox-1.5.0.1,1 needs updating (port has 1.5.0.2,1) But packages still (on April 24) are of previous version: $ ftp ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/ ftp dir packages-5-stable/All/firefox-1* -rw-r--r--1 110 011188636 Apr 01 16:29 firefox-1.5.0.1_2,1.tbz ftp dir packages-6-stable/All/firefox-1* -rw-r--r--1 110 011511879 Apr 02 10:21 firefox-1.5.0.1_2,1.tbz ftp dir packages-7-current/All/firefox-1* -rw-r--r--1 110 011511428 Apr 03 04:40 firefox-1.5.0.1_2,1.tbz Is something broken or is there insufficient computing power for building new packages more often? It's my understanding that packages are built when possible. They often lag that which is in ports. There are only so many cycles in a day (per cpu and per person). I would assume that there is some logical order in which the packages are built (most used first? Though not sure how that would be determined) I continuously rebuild packages using a method that only builds changed packages (new, updated to new version or with a dependency that was changed). This typically gives a turnaround time on i386 of less than a day to several days for packages becoming available, but as I said in another reply I'm not uploading them now because of the looming release cycle. With no intention to criticize your way of thinking or your work, release cycles sometimes could take a bit more time than scheduled. You, the developers and maintainers, know that better than us, the users. In the mean time there is a whole community of (end?) users that could benefit from the prompt availability of latest ports in packages. I'm referring mostly to desktop or workstation users, since the most of us build our ports from the sources for our servers. Although, I'm eager to use the portupgrade -P option more often for our (less critical) ports. Is there a chance that you, along with the release engineering team, reconsider your policy? Regards, Panagiotis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Java Virtual Machine
martinko wrote: Micah wrote: martinko wrote: Micah wrote: Porpoise Power wrote: Which Java VM is the best for freebsd 5.4, running gnome2, and firefox? James Best Both the native jdk14 and jdk15 provide good Java VMs. jdk15 is newer and might be unstable (hasn't been for me). jdk14 is more tested and is the default java for FreeBSD on i386. HTH, Micah can you have both versions installed ? and how do you choose which one of them to use (for instance in mozilla) ? m. Yes, you can have both installed at the same time. /usr/ports/java/javavmwrapper makes switching JVMs easy using environment variables, however it doesn't seem to support switching browser plugins. For that you'd probably have to switch the symlink in /usr/X11R6/lib/browser_plugins and restart the browser. HTH, Micah hello, i've just tried it and realised it had already been installed as a jdk* dependency. :) however, according to the man page, running the following should select the most native and up-to-date version of java: $ java -version java version 1.4.2-p8 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p8-root_21_jan_2006_21_32) Java HotSpot(TM) Client VM (build 1.4.2-p8-root_21_jan_2006_21_32, mixed mode) however, i've got newer version installed too: $ cat /usr/local/etc/javavms /usr/local/jdk1.5.0/bin/java # FREEBSD-JDK1.5.0 /usr/local/jdk1.4.2/bin/java # FREEBSD-JDK1.4.2 /usr/local/linux-sun-jdk1.4.2/bin/java # Linux-Sun-JDK1.4.2.10 how come 1.5.0 wasn't selected in the example above please ?? Because it is not supposed to be as well-tested as the 1.4 version. Of course as the man page says, you can set various combinations of environment variables to influence the choice, which is what most of us do. Cheers, Panagiotis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Java Virtual Machine
Robert Huff wrote: martinko writes: $ cat /usr/local/etc/javavms Will someone please confirm that once these /usr/local/jdk1.5.0/bin/java # FREEBSD-JDK1.5.0 /usr/local/jdk1.4.2/bin/java # FREEBSD-JDK1.4.2 are installed one no longer needs this /usr/local/linux-sun-jdk1.4.2/bin/java # Linux-Sun-JDK1.4.2.10 ? I don't have it any more. A pkg_delete of the linux jdk removed it. Cheers, Panagiotis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Firefox 1.5
Stijn Hoop wrote: For those interested, paste the inline patch below in /usr/ports/www/firefox/files/patch-bugzilla305970 And reinstall your firefox. Thanks again, Anish, it certainly seemed to help me! --Stijn --- widget/src/gtk2/nsWindow.cpp.orig Thu Aug 18 10:11:23 2005 +++ widget/src/gtk2/nsWindow.cppSat Jan 28 18:34:03 2006 @@ -148,9 +148,9 @@ GdkEventVisibility *event); static gboolean window_state_event_cb (GtkWidget *widget, GdkEventWindowState *event); -static void style_set_cb (GtkWidget *widget, - GtkStyle *previous_style, - gpointer data); +static void theme_changed_cb (GtkSettings *settings, + GParamSpec *pspec, + nsWindow *data); #ifdef __cplusplus extern C { #endif /* __cplusplus */ @@ -372,6 +372,10 @@ mIsDestroyed = PR_TRUE; mCreated = PR_FALSE; +g_signal_handlers_disconnect_by_func(gtk_settings_get_default(), + (gpointer)G_CALLBACK(theme_changed_cb), + this); + // ungrab if required nsCOMPtrnsIWidget rollupWidget = do_QueryReferent(gRollupWindow); if (NS_STATIC_CAST(nsIWidget *, this) == rollupWidget.get()) { @@ -2434,8 +2438,16 @@ G_CALLBACK(delete_event_cb), NULL); g_signal_connect(G_OBJECT(mShell), window_state_event, G_CALLBACK(window_state_event_cb), NULL); -g_signal_connect(G_OBJECT(mShell), style_set, - G_CALLBACK(style_set_cb), NULL); + +g_signal_connect_after(gtk_settings_get_default(), + notify::gtk-theme-name, + G_CALLBACK(theme_changed_cb), this); +g_signal_connect_after(gtk_settings_get_default(), + notify::gtk-key-theme-name, + G_CALLBACK(theme_changed_cb), this); +g_signal_connect_after(gtk_settings_get_default(), + notify::gtk-font-name, + G_CALLBACK(theme_changed_cb), this); } if (mContainer) { @@ -3916,11 +3928,9 @@ /* static */ void -style_set_cb (GtkWidget *widget, GtkStyle *previous_style, gpointer data) +theme_changed_cb (GtkSettings *settings, GParamSpec *pspec, nsWindow *data) { -nsWindow *window = get_window_for_gtk_widget(widget); -if (window) -window-ThemeChanged(); +data-ThemeChanged(); } // This has made firefox a pleasure to use again for me. Thanks, Panagiotis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: about VPN solution
On 8/9/05, Glenn Dawson [EMAIL PROTECTED] wrote: At 03:15 AM 8/9/2005, vladone wrote: Hi! I have an private network, that acces the internet via an freebsd gateway. I want to buil some authentication for my users, to prevent ilegal connections. When an user want to connect to my gateway (to acces the internet), require to enter user and password. My questions is: What solution, is best for this? m0n0wall should be able to do what you want, and it's based on FreeBSD. http://m0n0.ch/wall/ -Glenn You could try openvpn (http://openvpn.net/) too. It can run as an extra service on your freebsd box and provide ssl based vpn access using ssl certificates for authentication. Panagiotis ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Wildcard syntax in newsyslog.conf
On Fri, 10 Dec 2004 09:03:47 -0500, Gerard Samuel [EMAIL PROTECTED] wrote: Is it possible to use wildcards in newsyslog.conf? For example, my current apache setup, I have a few virtual hosts logging into their own file. And instead of specifying each file in newsyslog.conf, Im trying - /var/log/httpd-*.logroot:wheel 640 1 *@T00 B /var/run/httpd.run It doesn't seem to work. So Im double checking with the list to see if what Im trying to do is possible (but Im going about it the wrong way). It should work. I have a similar entry in my newsyslog.conf: /var/log/apache/*-access_log664 1 *@01T00 G /var/run/httpd.pid /var/log/apache/*-error_log 664 1 *@01T00 G /var/run/httpd.pid Try running newsyslog manually using the -v and -n options. Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Find Replace string
On Thu, 9 Dec 2004 21:50:17 - (GMT), David Jenkins [EMAIL PROTECTED] wrote: On Thu, 9 December, 2004 18:50, antenneX said: No, I want to interrogate several hundred thousand files throughout several thousand directories to find/replace a single string within each file found. The string may appear more than once in a file. Try the following (make sure you have a backup first ;)) perl -pi -e 's/STRING_TO_FIND/STRING_TO_REPLACE_WITH/g' filename e.g. to replace all instances of foo with bar in a file called test you'd do: perl -pi -e 's/foo/bar/g' test You'd need to write a shell script to recursively run this on in each subdirectory. Something like: find /mydir -type f -exec perl -pi -e 's/foo/bar/g' {} \; fast and effective. Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail in the base system
On Thu, 2 Dec 2004 21:21:23 -0600, antenneX [EMAIL PROTECTED] wrote: Am running FBSD-4.10p2 with sendmail-8.12.11 in the base system. If I wanted to recompile sendmail with a later DB like Berkley DB-4.2, since its in the base system, what would be the best way of doing this? - Rebuild make/install world without sendmail, then install sendmail from the ports with my choice of DB? - or, just install sendmail-8.13.x from ports with the new DB and then have the system point to the new sendmail??? Best regards, Jack L. Stone Go the second way. The port will direct you. Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 5.3 Questions
On Fri, 3 Dec 2004 11:45:18 -0600, Greg Donald [EMAIL PROTECTED] wrote: On Fri, 3 Dec 2004 10:07:06 -0700, Tom Connolly [EMAIL PROTECTED] wrote: It takes my machine about 1 hour to generate the index. Be patient and it will complete. Previously I had FreeBSD 4.10 on my P133 and portupgrade -anrR took 3-4 minutes. Last week I upgraded to FreeBSd 5.3 and now portupgrade -anrR takes 5 hours or more. A faster method is to fetch the index. How do you do that, and did you mean instead of portupgrade -anrR ? Please explain. run cd /usr/ports; make fetchindex. Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Answers: Keeping FreeBSD Up-To-Date
On Thu, 2 Dec 2004 10:17:24 -0500 (EST), Charles Ulrich [EMAIL PROTECTED] wrote: Richard Bejtlich said: Here's (hopefully) some answers for once, rather than more questions! I am happy to announce the publication at TaoSecurity.com of 'Keeping FreeBSD Up-To-Date': http://www.taosecurity.com/keeping_freebsd_up-to-date.html This looks like an excellent guide, and would be especially useful for those new to FreeBSD. I'll keep it bookmarked for sure. One possible addition could be a section on keeping the ports tree current. -- Charles Ulrich Ideal Solution, LLC - http://www.idealso.com Excellent guide. A table of contents on the top would be useful. IMHO, white background and black text or the FreeBSD Handbook style would be better. Page bookmarked. Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NEW: cannot ssh to my computer
On Mon, 22 Nov 2004 00:05:33 -0500, Ivan Georgiev [EMAIL PROTECTED] wrote: Just another thing ... If I remove myself from the group wheel then I CAN ssh to my computer; if I put myself back to wheel - then CANNOT ssh to the computer. How can I ssh and be a member of the wheel group? In that case, maybe PermitRootLogin yes in /etc/ssh/sshd_config and restarting sshd would help. Regards, Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: amr0: bad slot x completed and fsck_ufs hanging
On Mon, 22 Nov 2004 19:49:36 +0100 (CET), Marco Beishuizen [EMAIL PROTECTED] wrote: On stardate Sun, 21 Nov 2004, the wise Marco Beishuizen entered: On stardate Sun, 21 Nov 2004, the wise Panagiotis Christias entered: the only hint I could find is from the amr(4) man page: amr%d: bad slot %d completed The controller reported completion of a command that the driver did not issue. This may result in data corruption, and suggests a hardware or firmware problem with the system or controller. Do you have a second controller available to test? We have the same controllers in several of our servers and I would interested to find out what is the problem just in case.. Unfortunately it's the only controller I have so I can't test it with an other controller. It looks a bit strange that it could be a hardware or firmware problem because the system is brand new. But does this mean I should update my firmware to a newer version? Since you don't seem to have any problems with FreeBSD on this controller I'm also interested in your configuration. Did you do anything special in the BIOS of the controller or something? Looks like I've found the problem. I reinstalled everything, including the RAID arrays on the SCSI controller. The first time I changed the read and write policies in the BIOS console and it seems that wasn't a very good idea. Now I didn't change them, and all seems to run fine now. So I'm glad that the hardware is ok and I don't have to upgrade the firmware. Marco use defaults, use defaults, use defaults, use defaults ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: turning off IPv6 support in BSD
On Sun, 21 Nov 2004 03:59:23 +1100, andrew clarke [EMAIL PROTECTED] wrote: On Sat, Nov 20, 2004 at 04:50:58PM +, Danny Browne wrote: How do i turn off IPv6 support in FreeBSD 4.10? Remove options INET6 from your kernel config file (/sys/i386/conf/XXX), rebuild your kernel and reboot your machine. There may be a way to turn it off at runtime using sysctl, but I don't know what it is, and in hindsight it probably wouldn't make much sense to do that at runtime, although I'm willing to be convinced otherwise. :) Regards Andrew You can also comment out the 'ipv6_enable=YES' line in /etc/rc.conf. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: amr0: bad slot x completed and fsck_ufs hanging
On Sat, 20 Nov 2004 15:18:27 +0100 (CET), Marco Beishuizen [EMAIL PROTECTED] wrote: Hi, I'm having some problems with my new dual xeon with an Intel scsi raid controller (SRCU42X). I installed FreeBSD 5.3-RELEASE on it. First I get a message in my dmesg saying: amr0: bad slot completed. After that fsck_ufs tries to run but it keeps hanging. In top it's state is getblk. When I then try to reboot, the computer even hangs during shutting down because it can't kill some processes (fsck_ufs I guess). After resetting the computer I get of course messages that some filesystems are not properly dismounted, FreeBSD boots, fsck_ufs tries to run and hangs again, I get the message amr0: bad slot x completed again, and everything starts from the beginning. I think it has something to do with my SCSI controller. Has someone an idea what is happening here? Thanks, Marco Hello, the only hint I could find is from the amr(4) man page: amr%d: bad slot %d completed The controller reported completion of a command that the driver did not issue. This may result in data corruption, and suggests a hardware or firmware problem with the system or controller. Do you have a second controller available to test? We have the same controllers in several of our servers and I would interested to find out what is the problem just in case.. Regards, Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: BIND 9.3.0 not restarting
On Fri, 19 Nov 2004 20:51:06 +0100, Kees Plonsz [EMAIL PROTECTED] wrote: Cezar Fistik wrote: Hello group, I have a problem with BIND 9.3.0. Everything works just fine until i try to restart the service. When sending to it kill -HUP, named daemon just gets killed and not restarted. Does any body have an idea why this happens? Thanks, Cezar That same thing happens here (FreeBSD-5.3) The manual says: In routine operation, signals should not be used to control the name-server; rndc should be used instead. Using kill -HUP can be handy for rotating named logs via newsyslog. Any workaround? Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD 5.3BETA5: kernel panic and crash dump
tick every 10.000 msec ATAPI_RESET time = 240us acd0: DVDROM PLEXTOR DVD-ROM PX-116A2 0100/1.00 at ata1-master UDMA66 amrd0: LSILogic MegaRAID logical drive on amr0 amrd0: 210018MB (430116864 sectors) RAID 5 (optimal) ses0 at amr0 bus 0 target 6 lun 0 ses0: ESG-SHV SCA HSBP M15 0.11 Fixed Processor SCSI-2 device ses0: SAF-TE Compliant Device ses1 at amr0 bus 1 target 5 lun 0 ses1: ESG-SHV SCA HSBP M15 0.10 Fixed Processor SCSI-2 device ses1: SAF-TE Compliant Device SMP: AP CPU #1 Launched! SMP: AP CPU #3 Launched! lapic6: Forcing LINT1 to edge trigger SMP: AP CPU #2 Launched! Mounting root from ufs:/dev/amrd0s2a WARNING: / was not properly dismounted WARNING: /var was not properly dismounted /var: mount pending error: blocks 436 files 53 /var: superblock summary recomputed em0: Link is up 100 Mbps Full Duplex pid 1298: corrected slot count (2-1) Any ideas? Thanks, Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD 5.3BETA6: no gdb --kernel option
Hello, I have a FreeBSD 5.3-BETA6 that panics and reboots (yes, I know 5.3-RELEASE is out, I will upgrade within the next days..). Gdb seems to not support the --kernel option. Any ideas? Thnk you, Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD 5.3BETA6: no gdb --kernel option
Hello, I have a FreeBSD 5.3-BETA6 that panics and reboots (yes, I know 5.3-RELEASE is out, I will upgrade within the next days..). Gdb seems to not support the --kernel option. Any ideas? Thank you, Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 5.3BETA6: no gdb --kernel option
On Mon, 8 Nov 2004 13:21:26 +0200, Panagiotis Christias [EMAIL PROTECTED] wrote: Hello, I have a FreeBSD 5.3-BETA6 that panics and reboots (yes, I know 5.3-RELEASE is out, I will upgrade within the next days..). Gdb seems to not support the --kernel option. Any ideas? Thnk you, Panagiotis Ok, found it. It's kgdb and it's mentioned in the release notes (*). My mistake. Sorry for the double post, Panagiotis (*) http://www.freebsd.org/releases/5.3R/relnotes-i386.html ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: howto put /tmp partition into /md0
On Thu, 28 Oct 2004 15:01:44 +1000, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi guys, Has any tuned their freebsd to put the /tmp partition into the memory disk? I have followed the procedures on this url, but no luck to get it working. http://www.onlamp.com/pub/a/onlamp/excerpt/BSDHacks_chap1/index.html?page=2 Can some one please point me to a detailed article or some other howtos? ps: please cc me to this email address, because I am not registered in this list. Thanks. Regards, LEI CHEN In case you are using FreeBSD 5.3: # egrep tmp /etc/defaults/rc.conf tmpmfs=AUTO # Set to YES to always create an mfs /tmp, NO to never tmpsize=20m # Size of mfs /tmp if created Regards, Panagiotis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]