Re: top memory usage question
On Thu, May 27, 2010 at 12:52 PM, Coert lgro...@waagmeester.co.za wrote: Hello all, Just a question, on Linux the output of top's memory usage looks like this: Mem: 2075424k total, 1760848k used, 314576k free, 151872k buffers Swap: 4192924k total, 0k used, 4192924k free, 1214052k cached on FreeBSD: Mem: 48M Active, 945M Inact, 190M Wired, 112M Buf, 804M Free Swap: 4063M Total, 4063M Free I have looked at the respective man pages, and googled. Where can I find out what Active, Inactive, and Wired mean? The differences have to do with the way memory is managed. Active memory is currently is RAM and is being used by a currently running process. Inactive is in RAM but is not currently being used. Wired means that the page is locked into ram and won't be paged out. Look at http://en.wikipedia.org/wiki/Paging and http://en.wikipedia.org/wiki/Virtual_memory for more info -- Eitan Adler ___ 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: portmaster not replacing %var% in final pkg-msg
On Sun, 30 May 2010, Eitan Adler wrote: $cd lang/go portmaster . -- To build Go programs for FreeBSD, you'll want to set up your environment properly. The following environment variables should be set: ... GOOS=freebsd GOARCH=386 GOROOT=/usr/local/lib/go This works because of the following sed-fu in lang/go/Makefile: post-install: @${CAT} ${PKGMESSAGE} | ${SED} \ -e s|%%PREFIX%%|${PREFIX}|g \ -e s|%%ARCH%%|${GOARCH}|g \ -e s|%%GOOBJ%%|${GOOBJ}|g === pkg-message for go-20100413 [ .. ] GOARCH=%%ARCH%% GOROOT=%%PREFIX%%/lib/go It's probably preferable for lang/go to utilize SUB_FILES and SUB_LIST instead of using ${SED} to manually expand VAR=VALUE pairs in post-install. For context, see: http://www.freebsd.org/doc/en/books/porters-handbook/book.html#USING-SUB-FILES -- Sahil Tandon sa...@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: Fwd: [#24525016] External USB drive causes system to hang completely
On Sunday 30 May 2010 22:29:14 Alejandro Imass wrote: Hi all, I sent a question regarding a problem with USB and I get this in reply. Can someone explain? Thanks, Alejandro Imass Yes. There's a hosting company called MidPhase whose support queue (at mpcustomer.com) has been added (probably maliciously by some kiddie that thinks it's clever) to the mailing list. They appear either not to know how to stop their ticketing system responding to list emails, or not to care. Either way, it's not a great advertisement for them, as this has been going on for several weeks now with no improvement. Jonathan ___ 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 debug .sh type script
Is there way to single step through each line of code and see the real values of the variables? ___ 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 debug .sh type script
echo $my $debugs read a #(or whatever variable) until you pressed the enter key (or sig), your script will wait Samuel Martín Moro {EPITECH.} tek4 CamTrace S.A.S (+033) 1 41 38 37 60 1 Allée de la Venelle 92150 Suresnes FRANCE Nobody wants to say how this works. Maybe nobody knows ... Xorg.conf(5) On Mon, May 31, 2010 at 9:59 AM, Aiza aiz...@comclark.com wrote: Is there way to single step through each line of code and see the real values of the variables? ___ 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 debug .sh type script
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 31/05/2010 08:59:04, Aiza wrote: Is there way to single step through each line of code and see the real values of the variables? Not 'single step' as such -- what you can do is run with '-x' which prints each line as it is executed. That's either: sh -x scriptname or you can add it to the #! line in the script, or just stick 'set -x' somewhere in the script body. If you use the 'set -x' form, you can set it up to trace through just the interesting parts of your code. (Somewhat counter intuitively 'set - -x' or 'set -o xtrace' turns on trace mode; 'set +x' or 'set +o xtrace' turns it off) This doesn't give you a way of arbitrarily querying the value of any variable, but you will be able to see all variable assignments as part of the trace. There's also a '-v' flag which adds displaying input read by the shell as it executes. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwDb3EACgkQ8Mjk52CukIyoLwCfdTamyG/PnEgdbWEDlZwaW28B HCwAn2WhU6/GCLzamityi3YiW79OcjS9 =7vBz -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: how to debug .sh type script
On Monday 31 of May 2010 10:59:04 Aiza wrote: Is there way to single step through each line of code and see the real values of the variables? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org I'm not aware of a way to single step a script. But the old method of echo and exit is the way I use. I use echo to print the values and the line numbers that I want and exit to stop the execution of the script at a point I wish it to stop. Elias ___ 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
tcpdump filter maximum number?
Hi, Is there any limit on writing filters on tcpdump? Or is there any? I use FreeBSD as the operating system. Maybe this limit is not on tcpdump but on bpf on FreeBSD that is why I have stated FreeBSD Regards. ___ 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: linux cp -u question
On 28/05/2010 08:47, Polytropon wrote: On Thu, 27 May 2010 18:41:21 +0200, Coert lgro...@waagmeester.co.za wrote: Hello all, Is there a FreeBSD equivalent for the linux cp -u ? http://linux.die.net/man/1/cp (-u, --update) Check out cpdup (available via ports or packages). I like rsync for this as well, alternatively you can use pax which is in the base-distro. Regards, Mark signature.asc Description: OpenPGP digital signature
Re: what would take to allow binary upgrade to amd64?
On Sun, May 30, 2010 at 1:30 PM, Eitan Adler li...@eitanadler.com wrote: On Sun, May 30, 2010 at 10:52 PM, Rob Farmer rfar...@predatorlabs.net wrote: On Sun, May 30, 2010 at 11:51 AM, Eitan Adler li...@eitanadler.com wrote: I know that attempting to change from i386 to amd64 is is not possible The proper procedure for such an upgrade is as follows: If the thought of reformatting your system is scary, because you don't have backups or aren't sure they are comprehensive or work, then solve that problem, rather than trying to invent workarounds to cover for bad system administration. It will serve you much better in the long run. This isn't my question. I know how to currently perform the upgrade. My question is a) is it possible in theory to allow binary upgrades to be done? and b) if yes how much work would it take? Sure, its possible. But my point was that it is not a good idea and not something worth encouraging via tools like freebsd-upgrade. What is the use case you have in mind for this where a reformat isn't an option? -- Rob Farmer -- Eitan Adler ___ 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: linux cp -u question
On Mon, 31 May 2010 11:20:11 +0200 Mark Stapper st...@mapper.nl wrote: On 28/05/2010 08:47, Polytropon wrote: On Thu, 27 May 2010 18:41:21 +0200, Coert lgro...@waagmeester.co.za wrote: Hello all, Is there a FreeBSD equivalent for the linux cp -u ? http://linux.die.net/man/1/cp (-u, --update) Check out cpdup (available via ports or packages). I like rsync for this as well, alternatively you can use pax which is in the base-distro. pax... so nice tool. This is the first time I've heard about it ;) Regards, -- Anh Ky Huynh ___ 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 debug .sh type script
On Mon, 31 May 2010 15:59:04 +0800 Aiza aiz...@comclark.com articulated: Is there way to single step through each line of code and see the real values of the variables? You did not indicate what language your script is written in. There are quite a few sites that have information for debugging a Bash script. http://bashdb.sourceforge.net/bashdb-man.html http://www.tldp.org/LDP/abs/html/debugging.html http://www.softpanorama.org/Scripting/Shellorama/bash_debugging.shtml http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html There are lots of others. Just Google or Bing for it. -- Jerry freebsd.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ 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: what would take to allow binary upgrade to amd64?
Sure, its possible. But my point was that it is not a good idea and not something worth encouraging via tools like freebsd-upgrade. What is the use case you have in mind for this where a reformat isn't an option? Upgrading from 7.1 to 7.2 is also possible via a format but we have a tool like freebsd-update do help us instead. My question was is this possible to add this functionality or worth it. The answer is no - that is all that is needed. -- Eitan Adler ___ 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
devel/gojbect-introspection fails due to not finding libintl
Here is the output of $make install env LPATH=.libs env PYTHONPATH=..:.. UNINSTALLED_INTROSPECTION_SRCDIR=.. UNINSTALLED_INTROSPECTION_BUILDDIR=.. ../tools/g-ir-scanner -v --add-include-path=../gir --add-include-path=. -v --add-include-path=../gir --add-include-path=. --namespace=Everything --nsversion=1.0 --libtool=/bin/sh /usr/local/bin/libtool --library=libgirepository-everything-1.0.la --pkg=gobject-2.0 --pkg=cairo --pkg=gio-2.0 --include=GObject-2.0 --include=cairo-1.0 --include=Gio-2.0 ./everything.h ./everything.c --output Everything-1.0.gir /libexec/ld-elf.so.1: Shared object libintl.so.8 not found, required by libgirepository-1.0.so.0 Command '['/dta/ports/devel/gobject-introspection/work/gobject-introspection-0.6.11/gir/tmp-introspectLatOlI/Everything-1.0', '--introspect-dump=/dta/ports/devel/gobject-introspection/work/gobject-introspection-0.6.11/gir/tmp-introspectLatOlI/types.txt,/dta/ports/devel/gobject-introspection/work/gobject-introspection-0.6.11/gir/tmp-introspectLatOlI/dump.xml']' returned non-zero exit status 1 gmake[2]: *** [Everything-1.0.gir] Error 1 gmake[2]: Leaving directory `/dta/ports/devel/gobject-introspection/work/gobject-introspection-0.6.11/gir' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/dta/ports/devel/gobject-introspection/work/gobject-introspection-0.6.11' gmake: *** [all] Error 2 *** Error code 1 -- Eitan Adler ___ 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: devel/gojbect-introspection fails due to not finding libintl
On Mon, 31 May 2010 15:41:42 +0300, Eitan Adler wrote Hi Eitan, /libexec/ld-elf.so.1: Shared object libintl.so.8 not found, required by libgirepository-1.0.so.0 pkg_create -b gobject-introspection-0.6.11 (keep it, it may be useful) cd /usr/ports/devel/gobject-introspection make deinstall clean make install clean did the trick for me... Best regards, Ganaël LAPLANCHE ganael.laplan...@martymac.org http://www.martymac.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
multimedia/ffmpeg fails with internal compiler error
Is this a a) PEBKAC b) freeBSD ports error c) ffmpeg problem d) compiler problem (as the error seems to be saying) gcc46 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I/dta/ports/multimedia/ffmpeg/work/ffmpeg-0.5.2 -pipe -mssse3 -mtune=native -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -I/usr/local/include/vorbis -I/usr/local/include -std=c99 -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -O3 -fno-math-errno -fno-signed-zeros -c -o libavutil/crc.o libavutil/crc.c libavutil/crc.c: In function 'av_crc_init': libavutil/crc.c:58:5: internal compiler error: in predicate_bbs, at tree-if-conv.c:555 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. gmake: *** [libavutil/crc.o] Error 1 gmake: *** Waiting for unfinished jobs *** Error code 1 # make showconfig === The following configuration options are available for ffmpeg-0.5.2,1: AMR_NB=off AMR Narrow Band encoder AMR_WB=off AMR Wide Band encoder DIRAC=off Dirac codec via libdirac FAAC=off FAAC mp4/aac audio encoder FAAD=on FAAD mp4/aac audio decoder FFSERVER=off Build and install ffserver GSM=off GSM audio codec IPV6=off IPV6 network support LAME=off LAME MP3 encoder OPENJPEG=off JPEG 2000 decoder OPTIMIZED_CFLAGS=on Additional optimizations SCHROEDINGER=off Dirac codec via libschroedinger SDL=off SDL support (build ffplay) SPEEX=off Speex audio decoder SSSE3=on Enable ssse3 support (gcc 4.4+) THEORA=on Theora encoder (implies OGG) VHOOK=off Video hook support VORBIS=on Vorbis encoder via libvorbis (implies OGG) X11GRAB=off enable X11 grabbing X264=on H.264 encoder XVID=on Xvid encoder via xvidcore === Use 'make config' to modify these settings # make -V CC gcc46 # make -V CFLAGS -pipe -mssse3 -mtune=native -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing # cat /etc/libmap.conf libgcc_s.so.1 gcc46/libgcc_s.so.1 libgomp.so.1gcc46/libgomp.so.1 libobjc.so.3gcc46/libobjc.so.2 libssp.so.0 gcc46/libssp.so.0 libstdc++.so.6 gcc46/libstdc++.so.6 -- Eitan Adler ___ 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: Fwd: [#24525016] External USB drive causes system to hang completely
On Mon, May 31, 2010 at 3:49 AM, Jonathan McKeown j.mcke...@ru.ac.za wrote: On Sunday 30 May 2010 22:29:14 Alejandro Imass wrote: Hi all, [..] Yes. There's a hosting company called MidPhase whose support queue (at mpcustomer.com) has been added (probably maliciously by some kiddie that thinks it's clever) to the mailing list. They appear either not to know how to stop their ticketing system responding to list emails, or not to care. Either way, it's not a great advertisement for them, as this has been going on for several weeks now with no improvement. Thanks! So nobody has any comment on USB drive causing the whole system to halt? Since the rsync was quite long and we've been having some power failures I put the external drives in the UPS and it had no failures over the weekend and finished fine. So the issue here is that is an external USB drive in UFS + Journaling fails the whole system crashes. I don't think this should be so and osmeone should look into that. Should I report a bug? Is there enough information to actually post a bug? Does anyone here feel this is a bug, or is it expected behaviour? Best, Alejandro Imass Jonathan ___ 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
Some icons broken in Gnome after libpng upgrade
Hi, I updated libpng and Gnome (gdm) refused to start because it was looking for libpng.so.5 and I had upgraded to libpng.so.6 . I create a softlink to trick Gnome but some icons broke and no longer show up, particularly those in the taskbars, but those on the Desktop are fine. This Gnome is installed via binary package so if I re-install it will probably rewrite my current libpng and break other stuff. The other option is to compile libpng from source and place only the specific .5 file in the libr directory. Has anyone else had this problem? I did some searches and nothing obvious. What do you recommend I do? Thanks, Alejandro Imass ___ 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: Is this information obtainable?
On Mon, 31 May 2010 02:05:57 -0300 (ADT) Marc G. Fournier scra...@hub.org wrote: On Mon, 31 May 2010, Anh Ky Huynh wrote: the numbers are growing ... since the start of May, I've seen the numbers jump by almost 2k new computers, so it is growing ... but ppl have to consciously install the software ... I remember the days when I was using Linux with http://counter.li.org/ (my ID is 392115). Anonymousness is good but I think that I'll be proud of having a counter for my (Free)BSD box :) Why don't bsdstat support registration? one of the critical requirements that alot of ppl out there had at the start was anonymity ... not so much that they weren't proud to run *BSD, but for safety ... there is nothing in the database that can be traced back to the source, nor that can be spammed ... Also, easy of use was a big factor ... registration is just yet another step that ppl (myself included) generally just don't bother with ... it really doesn't give you much, and discourages alot of ppl from doing it ... ... and, in the case of PCBSD, would make it harder to have it auto-enabled, since it couldn't be enabled without the end user registering first, which most wouldn't do ... Uhm... I see. Thank you for your great explanation :) Regards, -- Anh Ky Huynh ___ 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: text editor
On Mon, May 31, 2010 at 08:10:03AM +0300, Giorgos Keramidas wrote: On Sun, 30 May 2010 17:28:27 -0600, Chad Perrin per...@apotheon.com wrote: On Sun, May 30, 2010 at 09:31:59PM +0300, Giorgos Keramidas wrote: If you don't mind the size of the respective packages, both VIM and GNU Emacs have support for many features that ee(1) lacks. I'm not sure why you mentioned the size of Vim here as if it's a remarkably large piece of software. It *barely* doesn't fit on a 3.5 floppy when you use a full install of the console-based Vim editor. I'm pretty sure it's under 2 MB. Vim is much smaller than Emacs but it still a few MB's here: keram...@kobe:/usr/ports/packages/All$ ls -ld vim* -rw-r--r-- 1 root wheel - 5757731 1 Απρ 17:11 vim-lite-7.2.344.tbz Does Vim install more than the binary? I've got this: ls -l /usr/local/bin/vim -rwxr-xr-x 1 root wheel 1650340 Apr 18 12:20 /usr/local/bin/vim I don't think the size of the installation tarball is necessarily representative of the final size. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgpe18YHJc0LU.pgp Description: PGP signature
HELP: cups - can not login on localhost to cups server
Hello, my problem sounds trivial, but isn't. I can not login to my cups server on localhost via http://localhost:631, which worked for me several months ago. Well I installed a new host using FreeBSD 9.0-CUR and need to add printers. Regarding to this problem I found a lot of stuff in the net and mailing lists, but none of the hints and tipps worked for me. First I will describe what I've already did. 1) ensured local BSD lpd is not running 2) on a prior installed system where cups is up and running printing is possible but no administration (see subject), so the problem seems to be common. 3) followed some hints adding a user root with proper password via lppasswd 4) deleted password.md5 and performed step 3) again 5) deleted all ports cups-* and /usr/local/cups folder and reinstalled cups, ensured having nothing left in /usr/local/etc The problem occured out of the blue to me, I possibly missed some changes within the last row of updates. Can anyone help? Please eMail me since I'm not subscriber of the question list. Thanks in advance, Oliver ___ 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: text editor
From owner-freebsd-questi...@freebsd.org Mon May 31 00:10:28 2010 From: Giorgos Keramidas keram...@ceid.upatras.gr To: freebsd-questions@freebsd.org Date: Mon, 31 May 2010 08:10:03 +0300 Subject: Re: text editor On Sun, 30 May 2010 17:28:27 -0600, Chad Perrin per...@apotheon.com wrote: On Sun, May 30, 2010 at 09:31:59PM +0300, Giorgos Keramidas wrote: If you don't mind the size of the respective packages, both VIM and GNU Emacs have support for many features that ee(1) lacks. I'm not sure why you mentioned the size of Vim here as if it's a remarkably large piece of software. It *barely* doesn't fit on a 3.5 floppy when you use a full install of the console-based Vim editor. I'm pretty sure it's under 2 MB. Vim is much smaller than Emacs but it still a few MB's here: keram...@kobe:/usr/ports/packages/All$ ls -ld vim* -rw-r--r-- 1 root wheel - 5757731 1 =CE=91=CF=80=CF=81 17:11 vim-lite= -7.2.344.tbz Yeah, but EMACS is (currently) reputed to stand for Eighty Megabytes And Constantly Swapping!*GRIN* I can't get at my FBSD box right now to check vim itself, but on another box, 'nvi' (which is described as a bug-for-bug compatible replacement for the original Fourth Berkeley Software Distribution (4BSD) vi, has an executable that is under 256k in size. ___ 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: HELP: cups - can not login on localhost to cups server
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 31/05/2010 19:26:07, Hartmann, O. wrote: Hello, my problem sounds trivial, but isn't. I can not login to my cups server on localhost via http://localhost:631, which worked for me several months ago. Well I installed a new host using FreeBSD 9.0-CUR and need to add printers. Regarding to this problem I found a lot of stuff in the net and mailing lists, but none of the hints and tipps worked for me. First I will describe what I've already did. 1) ensured local BSD lpd is not running 2) on a prior installed system where cups is up and running printing is possible but no administration (see subject), so the problem seems to be common. 3) followed some hints adding a user root with proper password via lppasswd 4) deleted password.md5 and performed step 3) again 5) deleted all ports cups-* and /usr/local/cups folder and reinstalled cups, ensured having nothing left in /usr/local/etc The problem occured out of the blue to me, I possibly missed some changes within the last row of updates. Can anyone help? Please eMail me since I'm not subscriber of the question list. Thanks in advance, Check /usr/local/etc/pam.d/cups -- change it to use pam_unix rather than pam_unknown. (pam_unknown is, errr..., unknown on FreeBSD...) Like this: authrequiredpam_unix.so nodelay account requiredpam_unix.so Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwD5dMACgkQ8Mjk52CukIzPyQCfdwKzF9B1uCq5sa7nzV94Trsa oIIAnA25MsdSzF9MbumJ1so01bo/C5Ar =ATMA -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: tcpdump filter maximum number?
From owner-freebsd-questi...@freebsd.org Mon May 31 04:19:25 2010 Date: Mon, 31 May 2010 12:17:32 +0300 From: Omer Faruk Sen omerf...@gmail.com To: FreeBSD freebsd-questions@freebsd.org Subject: tcpdump filter maximum number? Hi, Is there any limit on writing filters on tcpdump? Or is there any? I use FreeBSD as the operating system. Maybe this limit is not on tcpdump but on bpf on FreeBSD that is why I have stated FreeBSD There are _always_ limits to anything. grin If nothing else, your filters are going to be limited by the number of open file descriptors. Not terribly helpful, I know, but if you explain more/better what you're trying to do, something more helpful may emerge. ___ 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: multimedia/ffmpeg fails with internal compiler error
On Mon, May 31, 2010 at 05:16:50PM +0300, Eitan Adler wrote: Is this a a) PEBKAC Maybe. I don't know how many ports have actually been tested with gcc 4.6. I'm guessing the ports build cluster uses the base system compiler or the required version. b) freeBSD ports error Don't think so. It works fine here. c) ffmpeg problem d) compiler problem (as the error seems to be saying) Could be. I recompiled it with gcc-4.4.5.20100518 without problems. So it could be a bug specific to gcc 4.6. e) hardware error. Sometimes these errors are triggered by e.g. bad RAM. gcc46 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I/dta/ports/multimedia/ffmpeg/work/ffmpeg-0.5.2 -pipe -mssse3 -mtune=native -O3 -ffast-math -fno-finite-math-only -fomit-frame-pointer -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -I/usr/local/include/vorbis -I/usr/local/include -std=c99 -fomit-frame-pointer -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -O3 -fno-math-errno -fno-signed-zeros -c -o libavutil/crc.o libavutil/crc.c libavutil/crc.c: In function 'av_crc_init': libavutil/crc.c:58:5: internal compiler error: in predicate_bbs, at tree-if-conv.c:555 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. gmake: *** [libavutil/crc.o] Error 1 gmake: *** Waiting for unfinished jobs *** Error code 1 snip gcc46 # make -V CFLAGS -pipe -mssse3 -mtune=native -O3 -ffast-math -fno-finite-math-only Does removing these cflags make any difference? Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpzg9Y6KzOB0.pgp Description: PGP signature
Re: HELP: cups - can not login on localhost to cups server
On 05/31/10 18:37, Matthew Seaman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 31/05/2010 19:26:07, Hartmann, O. wrote: Hello, my problem sounds trivial, but isn't. I can not login to my cups server on localhost via http://localhost:631, which worked for me several months ago. Well I installed a new host using FreeBSD 9.0-CUR and need to add printers. Regarding to this problem I found a lot of stuff in the net and mailing lists, but none of the hints and tipps worked for me. First I will describe what I've already did. 1) ensured local BSD lpd is not running 2) on a prior installed system where cups is up and running printing is possible but no administration (see subject), so the problem seems to be common. 3) followed some hints adding a user root with proper password via lppasswd 4) deleted password.md5 and performed step 3) again 5) deleted all ports cups-* and /usr/local/cups folder and reinstalled cups, ensured having nothing left in /usr/local/etc The problem occured out of the blue to me, I possibly missed some changes within the last row of updates. Can anyone help? Please eMail me since I'm not subscriber of the question list. Thanks in advance, Check /usr/local/etc/pam.d/cups -- change it to use pam_unix rather than pam_unknown. (pam_unknown is, errr..., unknown on FreeBSD...) Like this: authrequiredpam_unix.so nodelay account requiredpam_unix.so Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwD5dMACgkQ8Mjk52CukIzPyQCfdwKzF9B1uCq5sa7nzV94Trsa oIIAnA25MsdSzF9MbumJ1so01bo/C5Ar =ATMA -END PGP SIGNATURE- I did - and it works! Thanks a lot. Oliver ___ 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: text editor
On Mon, 31 May 2010 09:59:00 -0600, Chad Perrin per...@apotheon.com wrote: Vim is much smaller than Emacs but it still a few MB's here: keram...@kobe:/usr/ports/packages/All$ ls -ld vim* -rw-r--r-- 1 root wheel - 5757731 1 Απρ 17:11 vim-lite-7.2.344.tbz Does Vim install more than the binary? I've got this: ls -l /usr/local/bin/vim -rwxr-xr-x 1 root wheel 1650340 Apr 18 12:20 /usr/local/bin/vim Yes, it does: help files; syntax highlighting rules; manpages; around 14 binaries in /usr/local/bin; including more than a thousand files in /usr/local/share. I don't think the size of the installation tarball is necessarily representative of the final size. For modern editors like Vim and Emacs the binary is pretty much a basic 'scripting engine' that loads plugins, scripts and other data files to present an editing user interface to the user. The last Emacs binary I compiled is 13 MB: keram...@kobe:/opt/emacs/bin$ ls -ld emacs-* -rwxr-xr-t 2 root wheel - 13395130 31 Μαϊ 20:13 emacs-24.0.50 The full Emacs installation in /opt/emacs is more than 110 MB: keram...@kobe:/opt/emacs$ du -sk . 113298 . The binary itself is a small part of the installation; almost 1/10 of the full size of GNU Emacs. pgpQO2501u1dl.pgp Description: PGP signature
Bad rawoffset in disk slice.
Hi freebsd-questions@, When I boot I have a lot of : WARNING: ad2s1a expected rawoffset 0, found 63 WARNING: ad2s1a expected rawoffset 0, found 63 WARNING: ad2s1a expected rawoffset 0, found 63 They appeared when I tried to do some glabel/tunefs and I don't know at all how to remove them. Are they related to fdisk or bsdlabel ? This is the fdisk partition : The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 156296322 (76316 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 And the bsdlabel : # /dev/ad2s1: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] a: 104857604.2BSD0 0 0 b: 2029184 1048576 swap c: 1562963220unused0 0 # raw part, don't edit d: 3110912 30777604.2BSD0 0 0 e: 1048576 61886724.2BSD0 0 0 f: 149059074 72372484.2BSD0 0 0 King regards. -- Demelier David ___ 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: text editor
On Mon, 31 May 2010 11:36:53 -0500 (CDT), Robert Bonomi bon...@mail.r-bonomi.com wrote: Giorgos Keramidas keram...@ceid.upatras.gr wrote: Vim is much smaller than Emacs but it still a few MB's here: keram...@kobe:/usr/ports/packages/All$ ls -ld vim* -rw-r--r-- 1 root wheel - 5757731 1 =CE=91=CF=80=CF=81 17:11 vim-lite-7.2.344.tbz Yeah, but EMACS is (currently) reputed to stand for Eighty Megabytes And Constantly Swapping! *GRIN* That's an old joke, but it's not particularly good anymore. The smallest laptop-size 2.5 SATA disk I have at home can hold more than 80 GB of data. The size of a program is now a limiting factor only if you are working with embedded applications. Normal, every-day computers have enough disk space to hold tens of thousands of full Emacs installations even without any sort of compression :-) pgpDAH7yDZmZs.pgp Description: PGP signature
Re: multimedia/ffmpeg fails with internal compiler error
On Mon, May 31, 2010 at 8:11 PM, Roland Smith rsm...@xs4all.nl wrote: On Mon, May 31, 2010 at 05:16:50PM +0300, Eitan Adler wrote: Is this a a) PEBKAC Maybe. I don't know how many ports have actually been tested with gcc 4.6. I'm guessing the ports build cluster uses the base system compiler or the required version. I've been using gcc46 for a while now and just remove certain ports in /etc/make.conf SSSE3=on Enable ssse3 support (gcc 4.4+) seems to mean that 4.4+ works. d) compiler problem (as the error seems to be saying) Could be. I recompiled it with gcc-4.4.5.20100518 without problems. So it could be a bug specific to gcc 4.6. Maybe I will do as the error says and report the error ;) e) hardware error. unlikely: I tested both my RAM and HDD recently. It is also the only port that has failed with this type of error. Sometimes these errors are triggered by e.g. bad RAM. Does removing these cflags make any difference? turning off OPTIMIZED_CFLAGS (but leaving ssse3) does not help. -- Eitan Adler ___ 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
Squid not starting from rc in Jail, however works when run from root as command??
Hi guys, I've just built a new BSD server running on a Mini-ITX NAS chassis and it's working beautifully :-) I also took the time to learn how to build jails too as this is only my second BSD build so am still really new to it although not to UNIX as I use Solaris and Linux frequently. Anyhow I'm trying to migrate config which was on an old SPARC server running Solaris 9 with a version of Squid got from the Blastwave repos and currently I'm having major issues with it. Basically I think I've worked through to figure out that running as user Squid or Proxy doesn't give me access to ports 1024, basically the 'well known' ports. Here is the error message I get from Squid when trying to start it using the rc.d file: May 31 17:47:11 proxy squid[4360]: Cannot open HTTP Port May 31 17:47:11 proxy squid[4358]: Squid Parent: child process 4360 exited due to signal 6 May 31 17:47:14 proxy squid[4358]: Squid Parent: child process 4364 started May 31 17:47:15 proxy squid[4364]: Cannot open HTTP Port May 31 17:47:15 proxy squid[4358]: Squid Parent: child process 4364 exited due to signal 6 May 31 17:47:18 proxy squid[4358]: Squid Parent: child process 4367 started May 31 17:47:18 proxy squid[4367]: Cannot open HTTP Port May 31 17:47:18 proxy squid[4358]: Squid Parent: child process 4367 exited due to signal 6 May 31 17:47:21 proxy squid[4358]: Squid Parent: child process 4370 started May 31 17:47:21 proxy squid[4370]: Cannot open HTTP Port May 31 17:47:21 proxy squid[4358]: Squid Parent: child process 4370 exited due to signal 6 If however I start Squid using /usr/local/sbin/squid -NCd1 as root I get this and Squid works: proxy# /usr/local/sbin/squid -NCd1 2010/05/31 17:55:54| Starting Squid Cache version 2.7.STABLE7 for amd64-portbld-freebsd8.0... 2010/05/31 17:55:54| Process ID 4484 2010/05/31 17:55:54| With 11095 file descriptors available 2010/05/31 17:55:54| Using kqueue for the IO loop 2010/05/31 17:55:54| Performing DNS Tests... 2010/05/31 17:55:54| Successful DNS name lookup tests... 2010/05/31 17:55:54| DNS Socket created at 0.0.0.0, port 39116, FD 6 2010/05/31 17:55:54| Adding nameserver 192.168.1.100 from /etc/resolv.conf 2010/05/31 17:55:54| Adding nameserver 192.168.1.101 from /etc/resolv.conf 2010/05/31 17:55:54| logfileOpen: opening log /var/log/squid/access.log 2010/05/31 17:55:54| Unlinkd pipe opened on FD 11 2010/05/31 17:55:54| Swap maxSize 102400 + 8192 KB, estimated 8507 objects 2010/05/31 17:55:54| Target number of buckets: 425 2010/05/31 17:55:54| Using 8192 Store buckets 2010/05/31 17:55:54| Max Mem size: 8192 KB 2010/05/31 17:55:54| Max Swap size: 102400 KB 2010/05/31 17:55:54| logfileOpen: opening log /var/log/squid/store.log 2010/05/31 17:55:54| Rebuilding storage in /usr/local/squid/cache (DIRTY) 2010/05/31 17:55:54| Using Least Load store dir selection 2010/05/31 17:55:54| Set Current Directory to /var/spool/squid 2010/05/31 17:55:54| Loaded Icons. 2010/05/31 17:55:54| Accepting accelerated HTTP connections at 192.168.1.110, port 80, FD 13. 2010/05/31 17:55:54| Accepting ICP messages at 0.0.0.0, port 3130, FD 14. 2010/05/31 17:55:54| Accepting SNMP messages on port 3401, FD 15. 2010/05/31 17:55:54| WCCP Disabled. 2010/05/31 17:55:54| Configuring x-ray Parent x-ray/80/0 2010/05/31 17:55:54| Configuring zeta-ray Parent zeta-ray/80/0 2010/05/31 17:55:54| Configuring delta-ray Parent delta-ray/80/0 2010/05/31 17:55:54| Configuring g-stat-1 Parent g-stat-1/80/0 2010/05/31 17:55:54| Ready to serve requests. 2010/05/31 17:55:54| Done reading /usr/local/squid/cache swaplog (0 entries) 2010/05/31 17:55:54| Finished rebuilding storage from disk. 2010/05/31 17:55:54| 0 Entries scanned 2010/05/31 17:55:54| 0 Invalid entries. 2010/05/31 17:55:54| 0 With invalid flags. 2010/05/31 17:55:54| 0 Objects loaded. 2010/05/31 17:55:54| 0 Objects expired. 2010/05/31 17:55:54| 0 Objects cancelled. 2010/05/31 17:55:54| 0 Duplicate URLs purged. 2010/05/31 17:55:54| 0 Swapfile clashes avoided. 2010/05/31 17:55:54| Took 0.4 seconds ( 0.0 objects/sec). 2010/05/31 17:55:54| Beginning Validation Procedure 2010/05/31 17:55:54| Completed Validation Procedure 2010/05/31 17:55:54| Validated 0 Entries 2010/05/31 17:55:54| store_swap_size = 0k 2010/05/31 17:55:55| storeLateRelease: released 0 objects Running uname -a gives me this: FreeBSD Zeta-Ray.optiplex-networks.com 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 and also Squid was built from ports too!! Because I built the system in a Jail I am using this syntax to bind the port to the IP address: http_port 192.168.1.110:80 accel defaultsite=domain.com vhost When I mean Jail I am talking about FreeBDS Jails and not chroot syntax :-) Can anybody offer me any advice or anywhere else to turn as I really don't know what's going on Many thanks! Kaya
Postfix bad command startup??
Hi, similar like I wrote before, to do with my migration from Solaris 9 to FreeBSD 8.0 x64 RELEASE. Postfix is being run in a BSD Jail and so far I have disabled as much as I could of sendmail which I did this to rc.conf within the jail: postfix_enable=YES sendmail_enable=NONE sendmail_submit_enable=NO sendmail_outbound_enable=NO sendmail_msp_queue_enable=NO However upon startup Postfix gives me this problem: May 31 18:03:18 relay postfix/master[4280]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling May 31 18:04:18 relay postfix/smtpd[4606]: fatal: open database /etc/aliases.db: No such file or directory May 31 18:04:19 relay postfix/master[4280]: warning: process /usr/local/libexec/postfix/smtpd pid 4606 exit status 1 May 31 18:04:19 relay postfix/master[4280]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling May 31 18:05:19 relay postfix/smtpd[4629]: fatal: open database /etc/aliases.db: No such file or directory May 31 18:05:20 relay postfix/master[4280]: warning: process /usr/local/libexec/postfix/smtpd pid 4629 exit status 1 May 31 18:05:20 relay postfix/master[4280]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling I can tell that it's listening as netstat -ap tcp reveals this: netstat: kvm not available: /dev/mem: No such file or directory Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 relay.smtp 110.52.7.217.2140 ESTABLISHED tcp4 0 0 relay.smtp web112111.mail.g.33920 ESTABLISHED tcp4 0 0 relay.smtp 110.52.6.29.4643 ESTABLISHED tcp4 0 0 relay.smtp 78-61-12-207.sta.28507 CLOSED tcp4 0 0 relay.smtp 78-61-12-207.sta.27646 CLOSE_WAIT tcp4 0 0 relay.smtp 78-61-12-207.sta.26479 CLOSE_WAIT tcp4 0 0 relay.smtp 110.52.6.35.2109 ESTABLISHED tcp4 0 0 relay.smtp 78-61-12-207.sta.23305 CLOSED tcp4 0 0 relay.smtp 78-61-12-207.sta.22314 CLOSE_WAIT tcp4 0 0 relay.smtp 78-61-12-207.sta.21323 CLOSE_WAIT tcp4 0 0 relay.ssh *.*LISTEN tcp4 0 0 relay.smtp *.*LISTEN /var/log/messages gives me this: May 31 18:10:24 relay postfix/smtpd[4662]: fatal: open database /etc/aliases.db: No such file or directory however I did run the command newaliases which did create the aliases file under /etc/mail/aliases with the aliases.db file being under there as well as under /etc. Currently no mail is being relayed throughout the domain so I can tell that it's not working as even the /var/log/maillog file is telling me that messages are queued but not sent if I use: mail -s test em...@address.com test ^D Can someone please help me work out what is causing Postfix to fail as I've managed to migrate my config from Linux to Solaris with not as many issues and problems as this so it really beats me... Many thanks, Kaya ___ 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: Postfix bad command startup??
On 5/31/10, Kaya Saman samank...@netscape.net wrote: Hi, similar like I wrote before, to do with my migration from Solaris 9 to FreeBSD 8.0 x64 RELEASE. Postfix is being run in a BSD Jail and so far I have disabled as much as I could of sendmail which I did this to rc.conf within the jail: postfix_enable=YES sendmail_enable=NONE sendmail_submit_enable=NO sendmail_outbound_enable=NO sendmail_msp_queue_enable=NO However upon startup Postfix gives me this problem: May 31 18:03:18 relay postfix/master[4280]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling May 31 18:04:18 relay postfix/smtpd[4606]: fatal: open database /etc/aliases.db: No such file or directory May 31 18:04:19 relay postfix/master[4280]: warning: process /usr/local/libexec/postfix/smtpd pid 4606 exit status 1 May 31 18:04:19 relay postfix/master[4280]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling May 31 18:05:19 relay postfix/smtpd[4629]: fatal: open database /etc/aliases.db: No such file or directory May 31 18:05:20 relay postfix/master[4280]: warning: process /usr/local/libexec/postfix/smtpd pid 4629 exit status 1 May 31 18:05:20 relay postfix/master[4280]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling I can tell that it's listening as netstat -ap tcp reveals this: netstat: kvm not available: /dev/mem: No such file or directory Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 relay.smtp 110.52.7.217.2140 ESTABLISHED tcp4 0 0 relay.smtp web112111.mail.g.33920 ESTABLISHED tcp4 0 0 relay.smtp 110.52.6.29.4643 ESTABLISHED tcp4 0 0 relay.smtp 78-61-12-207.sta.28507 CLOSED tcp4 0 0 relay.smtp 78-61-12-207.sta.27646 CLOSE_WAIT tcp4 0 0 relay.smtp 78-61-12-207.sta.26479 CLOSE_WAIT tcp4 0 0 relay.smtp 110.52.6.35.2109 ESTABLISHED tcp4 0 0 relay.smtp 78-61-12-207.sta.23305 CLOSED tcp4 0 0 relay.smtp 78-61-12-207.sta.22314 CLOSE_WAIT tcp4 0 0 relay.smtp 78-61-12-207.sta.21323 CLOSE_WAIT tcp4 0 0 relay.ssh *.*LISTEN tcp4 0 0 relay.smtp *.*LISTEN /var/log/messages gives me this: May 31 18:10:24 relay postfix/smtpd[4662]: fatal: open database /etc/aliases.db: No such file or directory however I did run the command newaliases which did create the aliases file under /etc/mail/aliases with the aliases.db file being under there as well as under /etc. Currently no mail is being relayed throughout the domain so I can tell that it's not working as even the /var/log/maillog file is telling me that messages are queued but not sent if I use: mail -s test em...@address.com test ^D Can someone please help me work out what is causing Postfix to fail as I've managed to migrate my config from Linux to Solaris with not as many issues and problems as this so it really beats me... Many thanks, Kaya Kaya, You may need to edit the following alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases and run BOTH 'newaliases' and 'postalias /etc/aliases' depending on your setup. restart postfix for good measure if you telnet to your postfix IP and get the 220 banner, postfix is happy with the config and should work as config'd. if after establishing a telnet session, you don't get any banner, postfix is still having problems with something. start looking at logs again. ___ 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
Network sort of stops working with the em (intel) driver under load.
Newly built and cvsupped system,with GENERIC kernel, when copying large amounts of data over a gigabit link via scp the network will hang after a couple of gig. I can then no longer login via ssh. If I leave it be, after about 12-24 hours I can then login again. (A reboot of course fixes the issue immediately...) . The system is very vanilla, only accf_http in loader.conf. No sysctl tuning done, no firewall hankypanky. pciconf -lv | grep -A4 ^em e...@pci0:3:4:0: class=0x02 card=0x001e8086 chip=0x100e8086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = 'Gigabit Ethernet Controller (82540EM)' class = network subclass = ethernet em0: Intel(R) PRO/1000 Legacy Network Connection 1.0.1 port 0xec00-0xec3f mem 0xfeae-0xfeaf,0xff irq 17 at device 4.0 on pci3 Suggestions as to where I could look for more information as to the precise nature of the problem gratefully received. Current plan is to purchase another variety of gigabit card to see if it is specific to the intel card. Copyright (c) 1992-2010 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.1-PRERELEASE #0: Sun May 30 10:00:58 CEST 2010 r...@temp.mwrwin2k.se:/usr/obj/usr/src/sys/MARK2 i386 Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (3391.53-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf34 Family = f Model = 3 Stepping = 4 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0x441dSSE3,DTES64,MON,DS_CPL,CNXT-ID,xTPR TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 2090823680 (1993 MB) ACPI APIC Table: A M I OEMAPIC FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic1: Changing APIC ID to 3 ioapic0 Version 0.3 irqs 0-23 on motherboard ioapic1 Version 0.3 irqs 24-47 on motherboard kbd1 at kbdmux0 acpi0: A M I OEMRSDT on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of fec0, 1000 (3) failed acpi0: reservation of fee0, 1000 (3) failed acpi0: reservation of 0, a (3) failed acpi0: reservation of 10, 7ff0 (3) failed Timecounter ACPI-fast frequency 3579545 Hz quality 1000 acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0 cpu0: ACPI CPU on acpi0 cpu1: ACPI CPU on acpi0 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0 pci0: ACPI PCI bus on pcib0 pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0 pci1: ACPI PCI bus on pcib1 vgapci0: VGA-compatible display port 0xd000-0xd0ff mem 0xc000-0xcfff,0xfe9e-0xfe9e irq 16 at device 0.0 on pci1 vgapci1: VGA-compatible display mem 0xd000-0xdfff,0xfe9f-0xfe9f at device 0.1 on pci1 pcib2: ACPI PCI-PCI bridge irq 27 at device 2.0 on pci0 pci2: ACPI PCI bus on pcib2 atapci0: VIA 8237 SATA300 controller port 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc40f,0xc000-0xc0ff irq 21 at device 15.0 on pci0 atapci0: [ITHREAD] ata2: ATA channel 0 on atapci0 ata2: [ITHREAD] ata3: ATA channel 1 on atapci0 ata3: [ITHREAD] atapci1: VIA 8237 UDMA133 controller port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0 ata0: ATA channel 0 on atapci1 ata0: [ITHREAD] ata1: ATA channel 1 on atapci1 ata1: [ITHREAD] uhci0: VIA 83C572 USB controller port 0xb480-0xb49f irq 20 at device 16.0 on pci0 uhci0: [ITHREAD] usbus0: VIA 83C572 USB controller on uhci0 uhci1: VIA 83C572 USB controller port 0xb800-0xb81f irq 22 at device 16.1 on pci0 uhci1: [ITHREAD] usbus1: VIA 83C572 USB controller on uhci1 uhci2: VIA 83C572 USB controller port 0xb880-0xb89f irq 21 at device 16.2 on pci0 uhci2: [ITHREAD] usbus2: VIA 83C572 USB controller on uhci2 uhci3: VIA 83C572 USB controller port 0xbc00-0xbc1f irq 23 at device 16.3 on pci0 uhci3: [ITHREAD] usbus3: VIA 83C572 USB controller on uhci3 ehci0: VIA VT6202 USB 2.0 controller mem 0xfe8ffc00-0xfe8ffcff irq 21 at device 16.4 on pci0 ehci0: [ITHREAD] usbus4: EHCI version 1.0 usbus4: VIA VT6202 USB 2.0 controller on ehci0 isab0: PCI-ISA bridge at device 17.0 on pci0 isa0: ISA bus on isab0 vr0: VIA VT6102 Rhine II 10/100BaseTX port 0xb000-0xb0ff mem 0xfe8ff800-0xfe8ff8ff irq 23 at device 18.0 on pci0 vr0: Quirks: 0x0 vr0: Revision: 0x7c miibus0: MII bus on vr0 ukphy0: Generic IEEE 802.3u media interface PHY 1 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:19:66:92:a0:3f vr0: [ITHREAD] pcib3: ACPI PCI-PCI bridge at device 19.1 on pci0 pci3: ACPI PCI bus on pcib3 em0: Intel(R) PRO/1000 Legacy Network Connection 1.0.1 port 0xec00-0xec3f mem
Re: text editor
On Mon, May 31, 2010 at 08:48:22PM +0300, Giorgos Keramidas wrote: On Mon, 31 May 2010 11:36:53 -0500 (CDT), Robert Bonomi bon...@mail.r-bonomi.com wrote: Giorgos Keramidas keram...@ceid.upatras.gr wrote: Vim is much smaller than Emacs but it still a few MB's here: keram...@kobe:/usr/ports/packages/All$ ls -ld vim* -rw-r--r-- 1 root wheel - 5757731 1 =CE=91=CF=80=CF=81 17:11 vim-lite-7.2.344.tbz Yeah, but EMACS is (currently) reputed to stand for Eighty Megabytes And Constantly Swapping! *GRIN* That's an old joke, but it's not particularly good anymore. . . . probably because it's increasingly inaccurate. Eighty was the good ol' days. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgpZIP1xtwvq1.pgp Description: PGP signature
Re: text editor
On Mon, May 31, 2010 at 11:36:53AM -0500, Robert Bonomi wrote: I can't get at my FBSD box right now to check vim itself, but on another box, 'nvi' (which is described as a bug-for-bug compatible replacement for the original Fourth Berkeley Software Distribution (4BSD) vi, has an executable that is under 256k in size. Unfortunately, the killer feature that keeps me with Vim instead of nvi is its support for multiple levels of undo. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgp9ujiQxFcjv.pgp Description: PGP signature
Re: text editor
I meant to reply to the list, as a response to this, but accidentally replied directly to Giorgos Keramidas. On Mon, May 31, 2010 at 08:45:07PM +0300, Giorgos Keramidas wrote: On Mon, 31 May 2010 09:59:00 -0600, Chad Perrin per...@apotheon.com wrote: Does Vim install more than the binary? I've got this: ls -l /usr/local/bin/vim -rwxr-xr-x 1 root wheel 1650340 Apr 18 12:20 /usr/local/bin/vim Yes, it does: help files; syntax highlighting rules; manpages; around 14 binaries in /usr/local/bin; including more than a thousand files in /usr/local/share. After some off-list discussion, it has come to my attention that of the 14 binaries that are installed, one of them is the vim binary itself, two of them are vimtutor binaries, one is a hex dumper, and the other ten are links (hard or soft) to the vim binary itself (and thus not actually separate binaries). It seems kind of silly to include a tutor and a hexdumper in the size of the editor just because the port for that editor installs them, too. Furthermore, documentation like manpages and help files should not count against an application's size in my opinion, since more documentation is a *good* thing, and counting it toward the size of the application is marking it in the *bad* column. The grand total size of that hex dumper and two tutor binaries is about 15KB, by the way -- so even if you include them with the editor for determining its size, they're still pretty negligible. Considering I could just delete all the syntax highlighting files and it wouldn't even affect the way I use Vim (I tend to prefer monochrome, even when editing code), I don't realy think I'd count those against the size of Vim either. Vim looks pretty small to me, compared with other editors of similar power (emacs, GUI IDEs, et cetera). I don't think the size of the installation tarball is necessarily representative of the final size. For modern editors like Vim and Emacs the binary is pretty much a basic 'scripting engine' that loads plugins, scripts and other data files to present an editing user interface to the user. The last Emacs binary I compiled is 13 MB: That's not what I see from the list of binaries in /usr/local/bin. Those appear to basically just be links to Vim, for the most part, rather than separate programs with the vim binary acting as glue code. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgpJaUi531kuy.pgp Description: PGP signature
Re: Network sort of stops working with the em (intel) driver under load.
mark rowlands wrote: Newly built and cvsupped system,with GENERIC kernel, when copying large amounts of data over a gigabit link via scp the network will hang after a couple of gig. I can then no longer login via ssh. If I leave it be, after about 12-24 hours I can then login again. (A reboot of course fixes the issue immediately...) . The system is very vanilla, only accf_http in loader.conf. No sysctl tuning done, no firewall hankypanky. pciconf -lv | grep -A4 ^em e...@pci0:3:4:0: class=0x02 card=0x001e8086 chip=0x100e8086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = 'Gigabit Ethernet Controller (82540EM)' class = network subclass = ethernet em0: Intel(R) PRO/1000 Legacy Network Connection 1.0.1 port 0xec00-0xec3f mem 0xfeae-0xfeaf,0xff irq 17 at device 4.0 on pci3 Suggestions as to where I could look for more information as to the precise nature of the problem gratefully received. Current plan is to purchase another variety of gigabit card to see if it is specific to the intel card. If memory serves, I think there may have been some traffic about something like this on the -CURRENT list. You might look/search there and see if it sounds similar. If it seems like it might be the same thing, look for an MFC back to -STABLE. Sometimes the fix for very a specific item which has been addressed is to take a system to -STABLE in order to obtain the fixed bits. Research and confirm first, before considering such an update. My policy on -STABLE in the past is I only think about going there for a very narrow and specific situation where I know I have a problem that the devs have seen, analyzed, and fixed, with subsequent MFC. Something else too - if you can disable the vr and the USB chips completely, it might provide a data point. IRQ sharing is supposed to work well, and it is something that may be eliminated from the scenario easily if you do not need these things. -Mike ___ 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: text editor
SNIP alot of text not related to original posted question. Can we get back on subject. I have worked many years with ispf so decided to check out THE I installed pkg_add -r the entering the on the command line produces something that is far removed from ispf/pdf. manpage and website documentation for the really sucks. Think I need to create a default profile that activates ispf but have found no instructions on how to do it. Can not find the profile file on my system. more help please. ___ 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 8.1-PRERELEASE: property 'jailed' not supported on FreeBSD: permission denied
On Fri, May 21, 2010 at 03:55:59PM +0400, Eugene Mitrofanov wrote: Hi The command zfs set jailed=on tank/s1 is failed with the message property 'jailed' not supported on FreeBSD: permission denied. Output of zfs get jailed tank/s1 shows me that the property jailed is still exists: NAME PROPERTY VALUESOURCE tank/s1 jailedoff default How can I change its value? It was accidentally marked as OpenSolaris-specific. Should be fixed as of r208684 in HEAD and I plan to merge it to stable/8 in few days. Thanks for the report! -- Pawel Jakub Dawidek http://www.wheelsystems.com p...@freebsd.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! pgpWpZWCOlJQ4.pgp Description: PGP signature
Re: Postfix bad command startup??
On 31/05/2010 22:07, Tim Judd wrote: On 5/31/10, Kaya Samansamank...@netscape.net wrote: Hi, similar like I wrote before, to do with my migration from Solaris 9 to FreeBSD 8.0 x64 RELEASE. Postfix is being run in a BSD Jail and so far I have disabled as much as I could of sendmail which I did this to rc.conf within the jail: postfix_enable=YES sendmail_enable=NONE sendmail_submit_enable=NO sendmail_outbound_enable=NO sendmail_msp_queue_enable=NO However upon startup Postfix gives me this problem: May 31 18:03:18 relay postfix/master[4280]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling May 31 18:04:18 relay postfix/smtpd[4606]: fatal: open database /etc/aliases.db: No such file or directory May 31 18:04:19 relay postfix/master[4280]: warning: process /usr/local/libexec/postfix/smtpd pid 4606 exit status 1 May 31 18:04:19 relay postfix/master[4280]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling May 31 18:05:19 relay postfix/smtpd[4629]: fatal: open database /etc/aliases.db: No such file or directory May 31 18:05:20 relay postfix/master[4280]: warning: process /usr/local/libexec/postfix/smtpd pid 4629 exit status 1 May 31 18:05:20 relay postfix/master[4280]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling I can tell that it's listening as netstat -ap tcp reveals this: netstat: kvm not available: /dev/mem: No such file or directory Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 relay.smtp 110.52.7.217.2140 ESTABLISHED tcp4 0 0 relay.smtp web112111.mail.g.33920 ESTABLISHED tcp4 0 0 relay.smtp 110.52.6.29.4643 ESTABLISHED tcp4 0 0 relay.smtp 78-61-12-207.sta.28507 CLOSED tcp4 0 0 relay.smtp 78-61-12-207.sta.27646 CLOSE_WAIT tcp4 0 0 relay.smtp 78-61-12-207.sta.26479 CLOSE_WAIT tcp4 0 0 relay.smtp 110.52.6.35.2109 ESTABLISHED tcp4 0 0 relay.smtp 78-61-12-207.sta.23305 CLOSED tcp4 0 0 relay.smtp 78-61-12-207.sta.22314 CLOSE_WAIT tcp4 0 0 relay.smtp 78-61-12-207.sta.21323 CLOSE_WAIT tcp4 0 0 relay.ssh *.*LISTEN tcp4 0 0 relay.smtp *.*LISTEN /var/log/messages gives me this: May 31 18:10:24 relay postfix/smtpd[4662]: fatal: open database /etc/aliases.db: No such file or directory however I did run the command newaliases which did create the aliases file under /etc/mail/aliases with the aliases.db file being under there as well as under /etc. Currently no mail is being relayed throughout the domain so I can tell that it's not working as even the /var/log/maillog file is telling me that messages are queued but not sent if I use: mail -s test em...@address.com test ^D Can someone please help me work out what is causing Postfix to fail as I've managed to migrate my config from Linux to Solaris with not as many issues and problems as this so it really beats me... Many thanks, Kaya Kaya, You may need to edit the following alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases and run BOTH 'newaliases' and 'postalias /etc/aliases' depending on your setup. restart postfix for good measure if you telnet to your postfix IP and get the 220 banner, postfix is happy with the config and should work as config'd. if after establishing a telnet session, you don't get any banner, postfix is still having problems with something. start looking at logs again. Thanks so much Tim!!! :-) I hadn't used the 'postalias /etc/aliases' command at all so running it now actually made the system work pretty well.. At least I haven't restarted the Jail yet but so far everything works! I just hope this stays permanently as I find Jails a bit less stable then Solaris Zones which is what I'm trying to mimic with them; however, it might just be because I don't know how to use them yet as I've only just learned about how to create them and run simple services in them. Meaning that my statement is probably wy premature!! Now if I could just figure out how to start Squid through the rc.d scripts rather then running manually as root user as per my other posting that would be really cool... Best Regards, Kaya ___ 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
What's the difference between portupgrade and portmaster ?
Why do we need two tools ? - e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/What%27s-the-difference-between-portupgrade-and-portmaster---tp28736514p28736514.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 8.1-PRERELEASE: property 'jailed' not supported on FreeBSD: permission denied
On Mon, May 31, 2010 at 6:32 PM, Pawel Jakub Dawidek p...@freebsd.org wrote: On Fri, May 21, 2010 at 03:55:59PM +0400, Eugene Mitrofanov wrote: Hi The command zfs set jailed=on tank/s1 is failed with the message property 'jailed' not supported on FreeBSD: permission denied. Output of zfs get jailed tank/s1 shows me that the property jailed is still exists: NAME PROPERTY VALUE SOURCE tank/s1 jailed off default How can I change its value? It was accidentally marked as OpenSolaris-specific. Should be fixed as of r208684 in HEAD and I plan to merge it to stable/8 in few days. Thanks for the report! I discovered this just last night (May 30, 2010) -- will it be able to be pushed into 8.1-RELEASE? It's important in my ezjail setups... -Brandon ___ 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: FireFox problem ?
pkg_info |grep -i firefox firefox-3.5.9_1,1 Web browser based on the browser portion of Mozilla After using the latest version, the problem disappears! Dan Nelson wrote: In the last episode (May 29), zaxis said: uname -a FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #9: Sat Mar 27 15:06:39 CST 2010 r...@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL i386 pkg_version -vIL= | grep -i firefox firefox-3.5.9,1needs updating (index has 3.5.9_1,1) Sometimes when i close one page tab, firefox will exit automatically ! Please make sure you are running the most recent version before reporting problems. 3.5.9_1,1: date: 2010/05/18 14:17:31; author: beat; state: Exp; lines: +1 -0 - Fix crash when closing tab after recent cairo update - Bump PORTREVISION -- Dan Nelson dnel...@allantgroup.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 - e^(π⋅i) + 1 = 0 -- View this message in context: http://old.nabble.com/FireFox-problem---tp28719810p28736563.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: text editor
On Tue, 1 Jun 2010, Fbsd1 wrote: SNIP alot of text not related to original posted question. Can we get back on subject. I have worked many years with ispf so decided to check out THE I installed pkg_add -r the entering the on the command line produces something that is far removed from ispf/pdf. manpage and website documentation for the really sucks. Think I need to create a default profile that activates ispf but have found no instructions on how to do it. Can not find the profile file on my system. more help please. I would infer from the responses to your original question that you probably got what the list has to offer on THE. It does not seem to be a very active project. If you can not find a mailing list or an IRC channel, you may well be stuck with figuring it out. I worked on SPF and wrote a monitoring tool for it back in the day. Kate (KDE) and TextPad (Winders) have most if not all the features I can remember as being things other editors do not generally have, e.g., block editing and collapsing code blocks. ___ 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: What's the difference between portupgrade and portmaster ?
On Mon, 31 May 2010, zaxis wrote: Why do we need two tools ? Actually there are at least three. Add portmanager to the mix. Its the same reason there is more than one text editor. I use portmaster and portmanager depending on what I want to do. Its mostly personal choice. ___ 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
unexpected operator .sh error
Added some code to a .sh script. When I run the script works but issues this message [: =: unexpected operator No line number telling where to look. I am not ever sure its talking about. IS [: whats wrong or =: ___ 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: unexpected operator .sh error
On Tue, 1 Jun 2010, Aiza wrote: Added some code to a .sh script. When I run the script works but issues this message [: =: unexpected operator No line number telling where to look. I am not ever sure its talking about. IS [: whats wrong or =: I'd guess that what you added includes something like if [ x=y ] ... The open-square-bracket, [, is another name for test. IIRC the equal sign is not valid in that context. Can you post the 'before' and 'after' versions of that part of your script? It would help us in determining what the problem is. -- Chris Hill ch...@monochrome.org ** [ Busy Expunging | ] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: devel/gojbect-introspection fails due to not finding libintl
On Mon, May 31, 2010 at 7:41 AM, Eitan Adler li...@eitanadler.com wrote: Here is the output of $make install env LPATH=.libs env PYTHONPATH=..:.. UNINSTALLED_INTROSPECTION_SRCDIR=.. UNINSTALLED_INTROSPECTION_BUILDDIR=.. ../tools/g-ir-scanner -v --add-include-path=../gir --add-include-path=. -v --add-include-path=../gir --add-include-path=. --namespace=Everything --nsversion=1.0 --libtool=/bin/sh /usr/local/bin/libtool --library=libgirepository-everything-1.0.la --pkg=gobject-2.0 --pkg=cairo --pkg=gio-2.0 --include=GObject-2.0 --include=cairo-1.0 --include=Gio-2.0 ./everything.h ./everything.c --output Everything-1.0.gir /libexec/ld-elf.so.1: Shared object libintl.so.8 not found, required by libgirepository-1.0.so.0 Command '['/dta/ports/devel/gobject-introspection/work/gobject-introspection-0.6.11/gir/tmp-introspectLatOlI/Everything-1.0', '--introspect-dump=/dta/ports/devel/gobject-introspection/work/gobject-introspection-0.6.11/gir/tmp-introspectLatOlI/types.txt,/dta/ports/devel/gobject-introspection/work/gobject-introspection-0.6.11/gir/tmp-introspectLatOlI/dump.xml']' returned non-zero exit status 1 gmake[2]: *** [Everything-1.0.gir] Error 1 gmake[2]: Leaving directory `/dta/ports/devel/gobject-introspection/work/gobject-introspection-0.6.11/gir' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/dta/ports/devel/gobject-introspection/work/gobject-introspection-0.6.11' gmake: *** [all] Error 2 *** Error code 1 Please take a look at /usr/ports/UPDATING: 20100530: AFFECTS: users of devel/gettext (i.e.: YOU) AUTHOR: a...@freebsd.org Another version of gettext (0.18), and another shlib version bump (from intl.8 to intl.9) All ports that have an identifiable known direct dependency on gettext have had their PORTREVISIONs bumped. If after upgrading: # portupgrade -rf gettext # portmaster -r gettext there are still ports on your system that are looking for libintl.so.8 (either in ${LOCALBASE}/lib/compat/pkg, or non-existent), _please_ file a PR so that a correct direct dependency can be added. ___ 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: unexpected operator .sh error
Chris Hill wrote: On Tue, 1 Jun 2010, Aiza wrote: Added some code to a .sh script. When I run the script works but issues this message [: =: unexpected operator No line number telling where to look. I am not ever sure its talking about. IS [: whats wrong or =: I'd guess that what you added includes something like if [ x=y ] ... The open-square-bracket, [, is another name for test. IIRC the equal sign is not valid in that context. Can you post the 'before' and 'after' versions of that part of your script? It would help us in determining what the problem is. -- Chris Hill ch...@monochrome.org That hint got me to the correct line I hadif [$1 = basejail ]; then I changed it to if $1 = basejail; then and got error msg =: not found ___ 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: unexpected operator .sh error
On Tue, 01 Jun 2010, Aiza wrote: Chris Hill wrote: The open-square-bracket, [, is another name for test. IIRC the equal sign is not valid in that context. Using '=' within test(1) brackets should be fine. Can you post the 'before' and 'after' versions of that part of your script? It would help us in determining what the problem is. That hint got me to the correct line I hadif [$1 = basejail ]; then As noted by Chris and the sh(1) man page, '[' is a built-in equivalent of test(1). The correct syntax for an expression inside those brackets requires *spacing*, i.e. [ expression ], and not [expression ], as in your example. -- Sahil Tandon sa...@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: unexpected operator .sh error
On Mon 31 May 2010 at 19:58:41 PDT Aiza wrote: Chris Hill wrote: On Tue, 1 Jun 2010, Aiza wrote: Added some code to a .sh script. When I run the script works but issues this message [: =: unexpected operator No line number telling where to look. I am not ever sure its talking about. IS [: whats wrong or =: I'd guess that what you added includes something like if [ x=y ] ... The open-square-bracket, [, is another name for test. IIRC the equal sign is not valid in that context. Can you post the 'before' and 'after' versions of that part of your script? It would help us in determining what the problem is. -- Chris Hill ch...@monochrome.org That hint got me to the correct line I hadif [$1 = basejail ]; then You need a space after the opening [ or it doesn't parse correctly. As Chris said, it's another name for test, so think of it as a word, i.e., something delimited by whitespace. ___ 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
Sending alarms to my mobile phone
Hi, I would like my FreeBSD server to send alarms to my mobile phone, it could be voice messages or SMS. I think I can hook a voice modem to that machine, but any suggestion on the software side? TIA, Olivier ___ 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: what would take to allow binary upgrade to amd64?
On Sun, May 30, 2010 at 4:30 PM, Eitan Adler li...@eitanadler.com wrote: On Sun, May 30, 2010 at 10:52 PM, Rob Farmer rfar...@predatorlabs.net wrote: On Sun, May 30, 2010 at 11:51 AM, Eitan Adler li...@eitanadler.com wrote: I know that attempting to change from i386 to amd64 is is not possible The proper procedure for such an upgrade is as follows: If the thought of reformatting your system is scary, because you don't have backups or aren't sure they are comprehensive or work, then solve that problem, rather than trying to invent workarounds to cover for bad system administration. It will serve you much better in the long run. This isn't my question. I know how to currently perform the upgrade. My question is a) is it possible in theory to allow binary upgrades to be done? and b) if yes how much work would it take? In theory, yes, it is possible; in practice, in limited scope, it is practical to do so. I have done it, and have the ability to do so at will. As for widespread use, the COMPAT_FREEBSD32 option needs to be fixed first, because as it stands now a 64bit kernel with a 32bit userland is not complete, for example, on 8.0, a 32bit ifconfig cannot set an ip address on an interface, because of ioctl incompatibility. This prevents the intermediate step of running a 32bit userland with a 64bit kernel (though it can be sidestepped by segregating the architecture specific parts of the userland). Full 32bit support on 64bit kernels has other, more widespread benefits then an after install sidegrade. Work is already moving in this direction, as it's a natural progression for architecture support. ___ 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: text editor
Hmmm I have successfully run vi from a partition on a 32M flash card in 32M of RAM The RAM also had memory disks for /var and /tmp. The entire system was dynamically linked so a lot of space was saved by that build technique The box was an embedded system running SNMP, gsmsmd and a few oter thing as a real time network monitor for the Melbourne 2006 Commonwealth Games and the Asian Games a year or so later in Doha, Qatar the box (still) runs on FreeBSD 4 and was built this way https://neon1.net/misc/minibsd.html the author did also make similar builds available for FreeBSD 5 and 6 NOTE all these have been replaced by nanobsd, but the techniques are still useful, especially if you are pushed for space. Murray Taylor Bytecraft Systems Special Projects Engineer P: +61 3 8710 0600 D: +61 3 9238 4275 F: +61 3 9238 4140 -- |_|0|_|Absence of evidence |_|_|0|is not evidence of absence |0|0|0|Carl Sagan -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Giorgos Keramidas Sent: Tuesday, June 01, 2010 3:48 AM To: Robert Bonomi Cc: freebsd-questions@freebsd.org Subject: Re: text editor On Mon, 31 May 2010 11:36:53 -0500 (CDT), Robert Bonomi bon...@mail.r-bonomi.com wrote: Giorgos Keramidas keram...@ceid.upatras.gr wrote: Vim is much smaller than Emacs but it still a few MB's here: keram...@kobe:/usr/ports/packages/All$ ls -ld vim* -rw-r--r-- 1 root wheel - 5757731 1 =CE=91=CF=80=CF=81 17:11 vim-lite-7.2.344.tbz Yeah, but EMACS is (currently) reputed to stand for Eighty Megabytes And Constantly Swapping! *GRIN* That's an old joke, but it's not particularly good anymore. The smallest laptop-size 2.5 SATA disk I have at home can hold more than 80 GB of data. The size of a program is now a limiting factor only if you are working with embedded applications. Normal, every-day computers have enough disk space to hold tens of thousands of full Emacs installations even without any sort of compression :-) --- The information transmitted in this e-mail is for the exclusive use of the intended addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material. E-mails may not be secure, may contain computer viruses and may be corrupted in transmission. Please carefully check this e-mail (and any attachment) accordingly. No warranties are given and no liability is accepted for any loss or damage caused by such matters. --- ### This e-mail message has been scanned for Viruses by Bytecraft ### ___ 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: Network sort of stops working with the em (intel) driver under load.
On Mon, May 31, 2010 at 9:30 PM, mark rowlands rowlands.m...@gmail.com wrote: Newly built and cvsupped system,with GENERIC kernel, when copying large amounts of data over a gigabit link via scp the network will hang after a couple of gig. I can then no longer login via ssh. If I leave it be, after about 12-24 hours I can then login again. (A reboot of course fixes the issue immediately...) . snip... I can now confirm that a similar copy to the vr card does not cause the same problem... so it would appear more likely that it might be an em related 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