Re: bash prompt update lagging
On 16/11/09 Polytropon said: Your PS1 seems to include ${SHORT_PWD}, a variable. It seems that it is not updated immediately after the cd command. Yeah, looks like it. Works on linux though... By the way, this is bash-3.2.25 on FreeBSD/x86 7. bash-4.0.33_2 on x86 6.3. Is this what you've intended the prompt to look like? I'm using an awk script to truncate any pwd that's too long. get_short_pwd() { # The actual max length is max_len + the length of trunc_symbol local max_length=$1 local trunc_symbol=... if [ -z $max_length ]; then max_length=20 fi if [ $PWD != $OLDPWD ]; then SHORT_PWD=$(awk BEGIN { path = ENVIRON[\PWD\] home = ENVIRON[\HOME\] home_len = length(home) max_len = $max_length sym_len = length(\$trunc_symbol\) if(substr(path, 0, home_len) == home) { path = sprintf(\~%s\, substr(path, home_len + 1)) } path_len = length(path) if (path_len max_len) { path = sprintf(\%s%s\, \$trunc_symbol\, substr(path, path_len + sym_len - max_len + 1)) } print path }) OLDPWD=${PWD} fi } This is called via a build_prompt() function in my .bashrc. I guess I'll echo out some variables there and see what's happening. FTR this did work, and then I updated bash in ports. Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpdlhbrLLnoE.pgp Description: PGP signature
bash prompt update lagging
Hi, I use the same bash config on Linux, FreeBSD and Cygwin, for the most part, and I just noticed that on my FreeBSD system the prompt is updating one command too late. r...@kanga:/root$ pwd /home/msoulier r...@kanga:~$ cd /root r...@kanga:~$ pwd /root r...@kanga:/root$ As you can see, the prompt with my current location doesn't update until the command _following_ my directory change. r...@kanga:/root$ echo $PS1 \[\033[1;32m\]\[\033[0;36m\]\u\[\033[1;32...@\[\033[0;36m\]\h\[\033[1;32m\]:\[\033[0;37m\]${SHORT_PWD}\[\033[1;32m\]$\[\033[0;37m\] I'm wondering if this is a bash bug on bsd, or if I'm doing something wrong. Has anyone seen this? Thanks, Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpa3IweNPAgg.pgp Description: PGP signature
Re: portupgrade says nothing to do but portversion disagrees
On 03/07/09 Michael P. Soulier said: For weeks now my usual portupgrade test has returned the same thing. Actually, I'm not sure cvsup is updating my ports tree properly... Connected to cvsup1.ca.FreeBSD.org Updating collection ports-all/cvs Finished successfully Normally there's a lot more output than that. Mike pgpI7VGFbyYSY.pgp Description: PGP signature
portupgrade says nothing to do but portversion disagrees
For weeks now my usual portupgrade test has returned the same thing. msoul...@kanga:~$ sudo portupgrade -na Password: --- Session started at: Fri, 03 Jul 2009 10:01:30 -0400 ** Stale lock file was found. Removed. ** Stale lock file was found. Removed. ** Package 'p5-Text-ParseWords' has been removed from ports tree. --- ** Upgrade tasks 1: 0 done, 1 ignored, 0 skipped and 0 failed --- Listing the results (+:done / -:ignored / *:skipped / !:failed) - (p5-Text-ParseWords-3.1) --- Packages processed: 0 done, 1 ignored, 0 skipped and 0 failed --- Session ended at: Fri, 03 Jul 2009 10:04:00 -0400 (consumed 00:02:29) But portversion says msoul...@kanga:~$ sudo /usr/local/sbin/portversion -v -l '' ** Stale lock file was found. Removed. ** Stale lock file was found. Removed. apache-2.0.63_2 needs updating (port has 2.0.63_3) apr-nothr-gdbm-db42-1.3.3.1.3.4_1needs updating (port has 1.3.5.1.3.7_3) cacti-0.8.7d needs updating (port has 0.8.7e) cairo-1.8.6_1,1 needs updating (port has 1.8.8,1) curl-7.19.5 needs updating (port has 7.19.5_1) dirmngr-1.0.2_1 needs updating (port has 1.0.3) gamin-0.1.10_2needs updating (port has 0.1.10_3) git-1.6.3.1 needs updating (port has 1.6.3.3) gnupg-2.0.11 needs updating (port has 2.0.12) isc-dhcp30-server-3.0.7_4 needs updating (port has 3.0.7_5) lcms-1.18,1 needs updating (port has 1.18a,1) libX11-1.2.1,1needs updating (port has 1.2.1_1,1) libiconv-1.11_1 needs updating (port has 1.13) libksba-1.0.5 needs updating (port has 1.0.6) libxcb-1.2_1 needs updating (port has 1.3) mime-support-3.44.1 needs updating (port has 3.46.1) netpbm-10.26.62 needs updating (port has 10.26.63) nspr-4.7 needs updating (port has 4.8) p5-Archive-Tar-1.48 needs updating (port has 1.52) p5-Array-Compare-1.17 needs updating (port has 1.18) p5-Class-Accessor-0.31needs updating (port has 0.33) p5-Class-Inspector-1.23 needs updating (port has 1.24) p5-Compress-Raw-Zlib-2.019needs updating (port has 2.020) p5-Config-IniFiles-2.49 needs updating (port has 2.51) p5-Digest-1.15_1 needs updating (port has 1.16) p5-Digest-MD5-2.38needs updating (port has 2.39) p5-File-Temp-0.21 needs updating (port has 0.22) p5-HTML-Parser-3.60 needs updating (port has 3.61) p5-MIME-Base64-3.07 needs updating (port has 3.08) p5-Mail-SpamAssassin-3.2.5_3needs updating (port has 3.2.5_4) p5-NetAddr-IP-4.02.6 needs updating (port has 4.02.7) p5-Number-Format-1.60 needs updating (port has 1.72a) p5-Scalar-List-Utils-1.20,1needs updating (port has 1.21,1) p5-Storable-2.18 needs updating (port has 2.20) p5-Task-Weaken-1.02 needs updating (port has 1.03) p5-Test-Simple-0.86 needs updating (port has 0.88) p5-Text-ParseWords-3.1needs updating (port has 3.27) p5-libwww-5.826 needs updating (port has 5.828) pango-1.24.2 needs updating (port has 1.24.3) perl-5.8.9_2 needs updating (port has 5.8.9_3) popt-1.7_5needs updating (port has 1.14) portaudit-0.5.12 needs updating (port has 0.5.13) postfix-2.6.1_1,1 needs updating (port has 2.6.2_1,1) ruby-1.8.7.160,1 needs updating (port has 1.8.7.160_3,1) ruby18-gems-1.3.1 needs updating (port has 1.3.4) sqlite3-3.6.13needs updating (port has 3.6.14.2) tcl-8.4.19_2,1needs updating (port has 8.4.19_3,1) vim-7.2.171 needs updating (port has 7.2.209) weechat-0.2.6.2 needs updating (port has 0.2.6.3) xcb-proto-1.4 needs updating (port has 1.5) What gives? Thanks, Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpQBFBbyWopI.pgp Description: PGP signature
Re: portupgrade says nothing to do but portversion disagrees
On Fri, Jul 3, 2009 at 10:10 AM, Michael P. Souliermsoul...@digitaltorque.ca wrote: Actually, I'm not sure cvsup is updating my ports tree properly... Connected to cvsup1.ca.FreeBSD.org Updating collection ports-all/cvs Finished successfully I just changed to cvsup1.freebsd.org and the difference is huge. How do I find out who owns the Canadian mirror? Thanks, Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ 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
showing dependency information in ports
I'm sure that this has been asked before, but I cannot find the answer recorded anywhere. I'm likely looking in the wrong places. Is there a simple tool in freebsd to show the reverse dependency tree of a package? ie. D is required by C is required by B is required by A ? Not to mention forward dependencies? I suppose I could write one but it seems like this must have been done already. Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpcsSsn7IrIY.pgp Description: PGP signature
Re: bash suddenly doesn't like $() syntax
On Sat, Mar 21, 2009 at 10:20 AM, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote: Since the update to bash 4.0, the port needs to be built with bison instead of the system yacc. The port has been updated to do this; make sure you have version 1.111 of the port's Makefile. Ok, that's what I have. I'm rebuilding it now. Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ 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: bash suddenly doesn't like $() syntax
On Mon, Mar 23, 2009 at 9:19 AM, Michael P. Soulier msoul...@digitaltorque.ca wrote: Ok, that's what I have. I'm rebuilding it now. And, confirmed. The rebuilt bash is fine now. Thanks, Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ 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
bash suddenly doesn't like $() syntax
Hello, I'm running the shells/bash port on 6.3, and I recently ran a portupgrade. All of a sudden when I login, my standard .profile and .bashrc are causing a bunch of error messages, like so -bash: command substitution: line 39: syntax error near unexpected token `)' -bash: command substitution: line 39: `})' It would see that bash no longer likes the $() command substitution syntax. Does that mean that it's defaulting to some sort of posix compatibility mode now? Thanks, Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpbgPRU0NsCp.pgp Description: PGP signature
Re: getty on /dev/ttypN
On 14/02/09 Polytropon said: Do you have X running? Usually, the ttypN pseudo terminals are employed by xterms (or other terminal emulators on X). Maybe this is a result of a non-starting X? Nope, headless server. Do you have automated screen sessions running? Does the command w show something strange? Yes, I'm running screen remotely. Nothing strange. The configuration files you showed seem to look completely normal. I don't see why init tries to getty for the ttypN... Nope, me neither. If it were Linux I'd look for getty lines in /etc/inittab, but that's not where things are configured here. Is init configured anywhere on BSD? The ttypN files in /dev are, if I see this correctly, only generated when needed. Hmm. Must go read... Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpJ3tAlVMQjq.pgp Description: PGP signature
getty on /dev/ttypN
After upgrading from 5.5 to 6.3 I'm noticing this a lot on the main console and in my logs. Dec 25 09:33:28 kanga init: can't exec getty 'none' for port /dev/ttyp0: No such file or directory Dec 25 09:33:38 kanga init: can't exec getty 'none' for port /dev/ttyp1: No such file or directory etc... msoul...@kanga:/etc$ ls -l /dev/ttyp0 crw--w 1 msoulier tty0, 94 Feb 14 15:29 /dev/ttyp0 it's there... /etc/ttys only mentions them as msoul...@kanga:/etc$ grep ttyp0 /etc/ttys ttyp0 nonenetwork on The only getty configured terminals are msoul...@kanga:/etc$ grep getty /etc/ttys # getty The program to start running on the terminal. Typically a # getty program, as the name implies. Other common entries # include none, when no getty is needed, and xdm, to start the # status Must be on or off. If on, init will run the getty program on # name getty typestatus comments ttyv0 /usr/libexec/getty Pc cons25 on secure ttyv1 /usr/libexec/getty Pc cons25 on secure ttyv2 /usr/libexec/getty Pc cons25 on secure ttyv3 /usr/libexec/getty Pc cons25 on secure ttyv4 /usr/libexec/getty Pc cons25 on secure ttyv5 /usr/libexec/getty Pc cons25 on secure ttyv6 /usr/libexec/getty Pc cons25 on secure ttyv7 /usr/libexec/getty Pc cons25 on secure ttyd0 /usr/libexec/getty std.9600 dialup off secure ttyd1 /usr/libexec/getty std.9600 dialup off secure ttyd2 /usr/libexec/getty std.9600 dialup off secure ttyd3 /usr/libexec/getty std.9600 dialup off secure dcons /usr/libexec/getty std.9600 vt100 off secure I think I ran mergemaster correctly on the upgrade. I'm not sure why init is trying to talk to these ports, which are obviously pseudo terminals... Advice appreciated. Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpkznDNScJa0.pgp Description: PGP signature
Re: portupgrade failing on perl modules
On 08/02/09 Matthew Seaman said: I'd wager that 'pkg_info -l p5-Module-Giving-You-Trouble' says everything is installed under ${LOCALBASE}/lib/perl5/site-perl/5.8.8 but that if you run 'perl -v' the number 5.8.9 is prominently displayed. Please read the UPDATING entry for 20090113, strike yourself upon the forehead whilst crying D'oh! in a loud voice and then run 'perl-after-upgrade -f' as instructed. All of the above worked, except striking myself on the forehead, which just hurt. Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpyyqGgDqsCT.pgp Description: PGP signature
portupgrade failing on perl modules
I'm having this with several perl modules while running a portupgrade -a. === p5-Tie-IxHash-1.21 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of devel/p5-Tie-IxHash without deleting it first, set the variable FORCE_PKG_REGISTER in your environment or the make install command line. *** Error code 1 Stop in /usr/ports/devel/p5-Tie-IxHash. *** Error code 1 I thought that portupgrade would take the right action to uninstall/reinstall if required. I mean, it upgrades ports, right? :) Some guidance would be appreciated. Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpq8s7nOwyt9.pgp Description: PGP signature
Re: portupgrade failing on perl modules
On 08/02/09 Glen Barber said: Have you tried manually `make deinstall; make install'? Here's an example. msoul...@kanga:...xtproc/p5-XML-RSS$ sudo make deinstall Password: === Deinstalling for textproc/p5-XML-RSS === Deinstalling p5-XML-RSS-1.37 pkg_delete: unable to completely remove directory '/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/XML/RSS' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) msoul...@kanga:...xtproc/p5-XML-RSS$ sudo make install distclean === p5-XML-RSS-1.43 depends on file: /usr/local/lib/perl5/site_perl/5.8.9/mach/XML/Parser/Expat.pm - not found ===Verifying install for /usr/local/lib/perl5/site_perl/5.8.9/mach/XML/Parser/Expat.pm in /usr/ports/textproc/p5-XML-Parser === Installing for p5-XML-Parser-2.36 === p5-XML-Parser-2.36 depends on file: /usr/local/bin/perl5.8.9 - found === p5-XML-Parser-2.36 depends on shared library: expat.6 - found === Generating temporary packing list === Checking if textproc/p5-XML-Parser already installed === p5-XML-Parser-2.36 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of textproc/p5-XML-Parser without deleting it first, set the variable FORCE_PKG_REGISTER in your environment or the make install command line. *** Error code 1 Stop in /usr/ports/textproc/p5-XML-Parser. *** Error code 1 Stop in /usr/ports/textproc/p5-XML-RSS. So now what? Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpovAmK1coTB.pgp Description: PGP signature
Re: portupgrade failing on perl modules
On 08/02/09 Glen Barber said: Have you tried manually `make deinstall; make install'? Yes, and the make install pulled in dependencies on other perl modules that resulted in the same error message that _they_ had to be reinstalled. Following those dependencies resulted in the same, and so on... I have no hair left to pull out, or it would be gone. Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpatVvbcWgvo.pgp Description: PGP signature
problems building Parse::RecDescent
I'm trying to build p5-Apache-MP3-4.00 from ports. I had it installed and working, but it recently stopped working so I'm rebuilding it. Unfortunately I'm having build problems. === Building for p5-Ogg-Vorbis-Header-0.03_1 cp Header.pm blib/lib/Ogg/Vorbis/Header.pm /usr/local/bin/perl5.8.9 -Mblib -MInline=NOISY,_INSTALL_ -MOgg::Vorbis::Header -e1 0.03 blib/arch Starting Build Prepocess Stage Finished Build Prepocess Stage Starting Build Parse Stage This innvocation of Inline requires the Parse::RecDescent module. Can't locate version.pm in @INC (@INC contains: /usr/ports/audio/p5-Ogg-Vorbis-Header/work/Ogg-Vorbis-Header-0.03/blib/arch /usr/ports/audio/p5-Ogg-Vorbis-Header/work/Ogg-Vorbis-Header-0.03/blib/arch /usr/ports/audio/p5-Ogg-Vorbis-Header/work/Ogg-Vorbis-Header-0.03/blib/lib /usr/local/lib/perl5/5.8.9/BSDPAN /usr/local/lib/perl5/site_perl/5.8.9/mach /usr/local/lib/perl5/site_perl/5.8.9 /usr/local/lib/perl5/5.8.9/mach /usr/local/lib/perl5/5.8.9 .) at /usr/local/lib/perl5/site_perl/5.8.9/Parse/RecDescent.pm line 1722. BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.9/Parse/RecDescent.pm line 1722. Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.9/Inline/C/ParseRecDescent.pm line 14. at /usr/local/lib/perl5/site_perl/5.8.9/Inline/C.pm line 322 INIT failed--call queue aborted. *** Error code 2 Stop in /usr/ports/audio/p5-Ogg-Vorbis-Header/work/Ogg-Vorbis-Header-0.03. *** Error code 1 Stop in /usr/ports/audio/p5-Ogg-Vorbis-Header. *** Error code 1 Stop in /usr/ports/www/p5-Apache-MP3. Any suggestions? Mike -- Michael P. Soulier msoul...@digitaltorque.ca Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpbqvtpCcxkh.pgp Description: PGP signature
portupgrade exception
[EMAIL PROTECTED]:~$ sudo portupgrade -nRr faad2 libxml2 mysql-server py25-django --- Session started at: Fri, 14 Nov 2008 17:34:40 -0500 [Gathering depends for audio/faad .. done] [Gathering depends for multimedia/ffmpeg ... done] [Exclude up-to-date packages .. done] [Gathering depends for textproc/libxml2 done] [Gathering depends for textproc/libxslt . done] [Gathering depends for textproc/xmlto .. done] [Gathering depends for databases/rrdtool .. done] [Exclude up-to-date packages .. done] --- Session ended at: Fri, 14 Nov 2008 17:35:37 -0500 (consumed 00:00:57) /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:74:in `initialize': : Not in due form: name-version (ArgumentError) from /usr/local/sbin/portupgrade:614:in `new' from /usr/local/sbin/portupgrade:614:in `main' from /usr/local/sbin/portupgrade:613:in `each' from /usr/local/sbin/portupgrade:613:in `main' from /usr/local/sbin/portupgrade:588:in `catch' from /usr/local/sbin/portupgrade:588:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `parse_in_order' ... 7 levels... from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' from /usr/local/sbin/portupgrade:229:in `new' from /usr/local/sbin/portupgrade:229:in `main' from /usr/local/sbin/portupgrade:2208 Not inspiring confidence. MIke -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
why do I have 2 aliases.db files?
I just noticed that I have one in /etc/mail and one in /etc, and postfix is reading the one in /etc which the newaliases command hasn't touched in ages 'cause it's been updating the one in /etc/mail. /etc/mail looks like a sendmail thing. Should I just symlink /etc/aliases.db to /etc/mail/aliases.db if I'm running postfix? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
debugging cronjobs not running
So, I'm running cron in debug mode, and I do see things like this about my crontab. load_entry()...returning successfully load_env, read */5 * * * * cacti /usr/local/bin/php /usr/local/share/cacti/poller.php 1/dev/null 21 load_env, parse error, state = 7 but that parse_error line is the same for many links that do seem to be run properly. The symptoms I'm seeing is some cronjobs, specifically weekly ones, not running as expected. Plus, I used to get email from the nightly runs of periodic, and now I don't see anything. I know some jobs aren't running because they produce files as output and I'm not seeing them. That, or they're simply running unsuccessfully. One thing I noticed is that man 5 crontab seems to make no mention of the user field used in /etc/crontab, but that's likely just a documentation error. Has anyone ever configured cronjobs that just didn't run, or you didn't get mail for them like you should have? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: debugging cronjobs not running
On Sun, Nov 9, 2008 at 7:36 AM, Jeremy Chadwick [EMAIL PROTECTED] wrote: I'm not sure why you sent this to me directly, but I do appreciate you CC'ing the mailing lists. :-) Old thread, my bad. No, this has never happened to me, or on any of the systems I've administrated. Found it. The problem was several things. 1. The 6.3 upgrade merged in a HOME of /var/log in crontab, which broke some $HOME references in some of my jobs. 2. My /etc/aliases.db hadn't been used in some time, /etc/mail/aliases.db was. All fixed. The parse error in the debug was apparently not service affecting. I suspect it's looking for environment variables set before the command to run, judging by some of the code snippets I looked at. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
crons and syslogd not running
Hi, I upgraded from 5.5 to 6.3, and I've noticed that many of my cronjobs defined in /etc/crontab don't seem to be running anymore. I have nightly jobs that obviously aren't running, and /var/log/cron makes no mention of them. Looking for logs, I found syslogd down, although cron was up. Any idea of where I should look? Stability problems in syslogd? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portupgrade failure
On Sat, Oct 4, 2008 at 5:02 AM, Patrick Lamaizière [EMAIL PROTECTED] wrote: Portupgrade is often confused with his database on upgrade. Delete /var/db/pkg/pkgdb.db and retry. May be you have to delete /usr/ports/INDEX-6.db too. Hmm. This does not inspire confidence in the tool. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portupgrade failure
On Mon, Oct 13, 2008 at 2:05 PM, Jeremy Chadwick [EMAIL PROTECTED] wrote: So don't use it? :-) There are alternatives like portmaster. I suppose I prefer a single, reliable, supported tool for the system. portupgrade seems to be pushed the most in all of the documentation that I can find, so I went with it. Maybe I should dig into its guts and find out how it works. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
port marked as IGNORE ?
When I portupgrade, I see this [EMAIL PROTECTED] ~]# portupgrade -a [Updating the pkgdb format:dbm_hash in /var/db/pkg ... - 369 packages found (-2 +1) (...). done] ** Port marked as IGNORE: misc/ldconfig_compat: isn't needed (part of base rc.d) But a couple of ports need it to upgrade, so they fail. How would this have been marked as IGNORE and what should I do to permit upgrades to continue? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein signature.asc Description: Digital signature
portupgrade failure
So, I recently upgraded from 5.5 to 6.3, and as such, ran a portupgrade -fa to rebuild my ports against 6.3. I just noticed this. === Cleaning for ruby-1.8.6.287,1 --- Cleaning out obsolete shared libraries [Updating the pkgdb format:dbm_hash in /var/db/pkg ... Inappropriate file type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgdb format:dbm_hash in /var/db/pkg ... - 366 packages found (-0 +366) 100200300.. done] /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:215:in `origin': Failed `Inappropriate file type or format' (PkgDB::DBError) from /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:205:in `origin' from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:245:in `config_include?' from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:215:in `config_ignore_moved?' from /usr/local/sbin/portupgrade:937:in `do_upgrade' from /usr/local/sbin/portupgrade:815:in `main' from /usr/local/sbin/portupgrade:811:in `each' from /usr/local/sbin/portupgrade:811:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' from /usr/local/sbin/portupgrade:229:in `new' from /usr/local/sbin/portupgrade:229:in `main' from /usr/local/sbin/portupgrade:2208 Any idea what would cause this? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein signature.asc Description: Digital signature
testing
I've gotten many bounces from the list MX lately. Let me test right from gmail instead of my ISP's mail server. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
cvsup mirrors
I found this http://www.freebsd.org/doc/en/books/handbook/cvsup.html#CVSUP-MIRRORS and it lists one for me in Canada. cvsup1.ca.freebsd.org Unfortunately, it doesn't have RELENG_6 on it. cvsup says it's not there. Does the mirrors list need an update? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
core manpages
Hello, I'm testing an upgrade of 5.5 - 6.3, so I installed 5.5 from an iso, and installed the minimal system. This minimal system is apparently without manpages for the basic commands, or perhaps the default MANPATH is incorrect. Where can I find the base manpages to cover find, chmod, ls, cd, etc? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: broken autoconf upgrade
On Sat, Sep 6, 2008 at 10:17 AM, Lowell Gilbert [EMAIL PROTECTED] wrote: Nope. And that port doesn't do anything different with the texinfo files, either. Try just cleaning things up and making another attempt. Or remove all of the auto* ports and try to upgrade everything remaining; I've never had problems with those ports interfering with each other, but for some reason I worry about it anyway. And you may not need any of them for your upgrade run anyway. Someone else responded saying that the port is no longer maintained on 5.5. I hadn't upgraded since everything was working fine, and new releases sometimes leave old hardware behind. But, I'll try upgrading anyway. 5.5 - 6.3 - 7.0 seems to be the right route... Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
upgrade path from 5.5
So if some ports aren't supported on 5.5, I'd better get my aging gateway upgraded. This begs the question of the correct path. I'm tempted to do a fresh install of 7.0 and then restore, but mergemaster does a better job of making sure the config files are both updated, and that nothing is lost. Would the correct path be 5.5 - 6.3 - 7.0? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
alternatives to mergemaster
The downside of mergemaster is that it is only a 2-way merge, where a 3-way would know better than you prompt you for changes that you didn't make. This makes mergemaster far more tedious than it has to be. Has anyone considered a good 3-way merge tool? I'm using Git for development, and it's also tremendously good at merging. This makes me kick around ideas for how to integrate it into a freebsd upgrade. Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
broken autoconf upgrade
While running portupgrade -ai, I noticed this else \ rc=$?; \ cd . \ $restore $backupdir/* `echo ./autoconf-2.62.info | sed 's|[^/]*$||'` ; \ fi; \ rm -rf $backupdir; exit $rc autoconf-2.62.texi:1723: Unknown command `'. autoconf-2.62.texi:3353: Unknown command `'. autoconf-2.62.texi:3920: Unknown command `'. autoconf-2.62.texi:3935: Unknown command `'. autoconf-2.62.texi:3947: Unknown command `'. autoconf-2.62.texi:3965: Unknown command `'. autoconf-2.62.texi:3986: Unknown command `'. autoconf-2.62.texi:4001: Unknown command `'. autoconf-2.62.texi:4019: Unknown command `'. autoconf-2.62.texi:4027: Unknown command `'. So, this won't upgrade. Anyone else see that? Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Backspace Key Not Working
On 26/07/08 Schiz0 said: Hey, I have an annoying problem that I'm not sure how to solve. Here's my setup: PuTTy = My FreeBSD 6.2 box = Production FreeBSD 7.0 box All via SSH, of course. Now, on my FreeBSD 6.2 box, the backspace key works fine all the time. However, when I connect from my 6.2 box into the production 7.0 box, the backspace key does not work all the time. In the console, it works fine (as in, it deletes what I type). However, when I'm in programs such as VIM, it displays ^? instead of deleting. Is there a way to fix this? Does it work in the terminal? Lets see stty -a in the shell. Also see :h fixdel in Vim. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein signature.asc Description: Digital signature
Re: Python threading - some ports depend on it, others break with it
On 10/01/08 Danny Pansters said: It's my understanding that threading *in* python works well, but threading *with* python doesn't and you shouldn't use/rely on it. I'm afraid I can't tell you much more without an hour of googling and I wouldn't be sure if I can adequately explain after. I think it has to do with the GIL. I suggest to ask at [EMAIL PROTECTED] Threading in Python works fine in my experience, even using native threads. It is not very efficient on multi-core systems though, due to the GIL (global interpreter lock). Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein signature.asc Description: Digital signature
Re: batch rename
On 05/01/08 Aryeh M. Friedman said: This assumes tcsh: foreach i (`ls [A-Z][a-z]*`) mv $i `echo $i|tr 'A-Z' 'a-z'` end sh version: for i in * do mv $i `echo $i | tr 'A-Z' 'a-z'` done Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpfuDJn7M03a.pgp Description: PGP signature
Re: Apparently, csh programming is considered harmful.
On 14/12/07 Giorgos Keramidas said: Tcsh is a fine shell. I'm using it all the time (that's how I found out that a buglet reported by Kris Kennaway a few months ago was indeed a bug which I could reproduce too). I always found csh/tcsh aliases annoying, since there are no shell functions. I also found the shell redirection awkward. It's ok otherwise, but I've since become addicted to bash. Mind you, I'm sure some tcsh users could point out some features that bash doesn't have. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein signature.asc Description: Digital signature
Re: Apparently, csh programming is considered harmful.
On 14/12/07 Giorgos Keramidas said: Do you have any _particular_ parts of the csh-whynot article that you would like to discuss, or this is a free for all flame? :) It's the lack of shell functions that gets me. Once a script reaches a certain size, I just move to Perl, Python, Tcl, Ruby, etc. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein signature.asc Description: Digital signature
Re: Apparently, csh programming is considered harmful.
On 16/12/07 Chuck Robey said: There;s one item that is much more easily done in csh/tcsh than in the sh based ones that's redirecting the stderr along with the stdout. with tcsh, when I do a make, I commonly do a: make | tee makeout which causes both the stdout and stderr files to be redirected to the makeout make listing file. I;'ve never figured out any reasonably simple way to do that in any sh-like shell. Is there any simble way that you know of? Yup. make 21 | tee makeout Now show me a simple way to redirect them to different files in csh. foo 1stdout.log 2stderr.log Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein signature.asc Description: Digital signature
Re: time issue
On 25/08/07 Bill Moran said: If this turns out to be your problem, I recommend using pool.ntp.org. Read up a bit, it should be much more reliable on a consistent basis. Also, OpenNTP has support built in to automatically talk to all of ntp.org's servers without any funky configuration: http://www.pool.ntp.org/use.html The only problem with the ntp pool is that ntp does its best to factor out problems with specific ntp servers, by learning about their quirks over time. An ntp pool where the specific servers that you're talking to change regularly defeats this. Good enough to keep time on my server though, I suppose, since I'm not running a cellular network. :) Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgplEixpqmftK.pgp Description: PGP signature
Re: time issue
On 24/08/07 Modulok said: Is this a system that is left running 24/7 connected to the Internet, or a system which is frequently turned off? If the latter, you might It's the former. I'll try the suggested ntp sync option anyway. I'm adding more sources too, in case the one that I'm syncing too isn't good enough. Ah, in fact I think that it is not. Perhaps the NRC isn't permitting public access to their time servers anymore. [EMAIL PROTECTED] ~]$ ntpq -p remote refid st t when poll reach delay offset jitter == time.nrc.ca .INIT. 16 u- 6400.0000.000 4000.00 tick.usask.ca .GPS.1 u9 641 111.674 27760.6 0.002 tock.usask.ca .GPS.1 u8 641 107.417 27759.2 0.002 boudicca.tux.or 65.212.71.1022 u7 641 95.680 27758.6 0.002 LOCAL(0)LOCAL(0)10 l6 6410.0000.000 0.002 Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein signature.asc Description: Digital signature
time issue
Hello, I recently noticed that my clock was running a few minutes slow, even though I have ntpd running on the box. Now I'm seeing this on occasion. Aug 24 20:17:10 kanga dovecot: Time just moved backwards by 105 seconds. This might c ause a lot of problems, so I'll just kill myself now. http://wiki.dovecot.org/TimeMov edBackwards Does this suggest a hardware clock issue? Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpTrtovpE1Uc.pgp Description: PGP signature
Re: add route failed for ppp
On 17/07/07 Steve Bertrand said: What is the next hop for the route you are trying to add? This error generally means you have set a next-hop IP address of a subnet of which you are not directly connected, and either a previous line in your config(s) set an appropriate route (hisaddr for instance), or a later line in the process as to make things work. Well, I guess it's supposed to set up my peer as the default gateway. tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1492 inet6 fe80::20a:e6ff:fe4a:56c2%tun0 prefixlen 64 scopeid 0x5 inet6 2001:410:90fc:4:20a:e6ff:fe4a:56c2 prefixlen 64 autoconf inet 216.106.102.70 -- 209.87.255.1 netmask 0x Opened by PID 79728 It's on a different network certainly. But, Internet: DestinationGatewayFlagsRefs Use Netif Expire default209.87.255.1 UGS 0 1276106 tun0 127.0.0.1 127.0.0.1 UH 0 619391lo0 192.168.1 link#1 UC 00 sis0 192.168.1.200:0a:e6:4a:56:c2 UHLW119380lo0 192.168.1.300:20:78:1f:32:55 UHLW1 29836087 sis0816 192.168.1.400:0d:56:6c:2d:0e UHLW1 3042 sis0945 192.168.1.199 00:14:bf:7f:da:42 UHLW1 1307213 sis0 1195 209.87.255.1 216.106.102.70 UH 10 tun0 it did put the default route in place. Perhaps it's just complaining because the route is already there, and ppp restarted. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpkyHuHwdCyq.pgp Description: PGP signature
add route failed for ppp
Hi, I'm on an ADSL connection at home, and ppp in BSD is working great. But, I get this in the logs. Jul 16 17:34:54 kanga ppp[79728]: Phase: Pap Input: SUCCESS () Jul 16 17:34:54 kanga ppp[79728]: Phase: deflink: lcp - open Jul 16 17:34:54 kanga ppp[79728]: Phase: bundle: Network Jul 16 17:34:54 kanga ppp[79728]: Warning: Add! route failed: 0.0.0.0/0: errno: Network is unreachable Now, everything is working fine, but I'm wondering why ppp is complaining about not being able to set up the route. Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpH5FtceLF0J.pgp Description: PGP signature
macosx stuff seeping into the ports?
I just tried a merge with mercurial, built out of ports. /usr/local/bin/hgmerge: /Developer/Applications/Utilities/FileMerge.app/Contents/MacOS/FileMerge: not found Umm, why the hell would I have that on FreeBSD?? Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpVnbf6eVLEf.pgp Description: PGP signature
Re: macosx stuff seeping into the ports?
On 12/07/07 Michael P. Soulier said: I just tried a merge with mercurial, built out of ports. /usr/local/bin/hgmerge: /Developer/Applications/Utilities/FileMerge.app/Contents/MacOS/FileMerge: not found Umm, why the hell would I have that on FreeBSD?? Hmm, actually looks like a bug in hgmerge itself. I can override with the HGMERGE environment variable for now, but that's broken. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpxQDWDmzlRb.pgp Description: PGP signature
running portupgrade -a
Hi, It seems like a lot of people keep their ports regularly up to date by just running portupgrade -a. I've seen it online, and in books. As /usr/ports/UPDATING is rather large, it seems impossible to look for potential issues with every package that you're going to upgrade. So, is running portupgrade -a a good idea, as you likely haven't checked for issues for your system? Otherwise, the ports change so fast that if you don't regularly update, when you do go to upgrade you may find yourself in a difficult position to do so. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgprNjZB3MaPm.pgp Description: PGP signature
Re: debugging pppoe
On 04/06/07 Nikos Vassiliadis said: ppp does not write much on the console. And that is probably a decision made by the authors, since it is meant to be run mostly interactively. You can see its logs in /var/log/ppp.log Indeed. I turned up the logging and I had to turn it down before it filled /var. :) If I could get it to log like that to the console, then I could supervise it with runit, logging via svlogd. I guess there's no way to force that log level to stdout? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpHNcGUfFG5F.pgp Description: PGP signature
debugging pppoe
I've turned logging up to All for ppp, for my DSL connection, and I've been disappointed to find that when it can't connect, ppp offers no help whatsoever as to why. I'm going to try rp-pppoe from ports, since on Linux it's actually quite helpful in full debug, but I'm surprised at how little BSD's ppp tells me when logging is turned right up. Any other suggestions? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: looking for ethernet errors, collisions
On 17/05/07 Ted Mittelstaedt said: Note that error counters are often bogus because so many cards today filter errors out in hardware, long before the OS driver gets them. Well, there are plenty there on my sis0 interface (internal). [EMAIL PROTECTED] ~]$ netstat -i NameMtu Network Address Ipkts IerrsOpkts Oerrs Coll sis0 1500 Link#1 00:0a:e6:4a:56:c2 37989565 3980 36808783 5749 6492857 sis0 1500 192.168.1 kanga 12380344 - 9255757 - - sis0 1500 fe80:1::20a:e fe80:1::20a:e6ff:0 -7 - - fxp0 1500 Link#2 00:a0:c9:9a:b0:f2 29693875 12009 27373887 0 1846203 fxp0 1500 fe80:2::2a0:c fe80:2::2a0:c9ff:0 -3 - - plip0 1500 Link#3 0 00 0 0 lo0 16384 Link#4 235446 0 235446 0 0 lo0 16384 your-net localhost 228064 - 228064 - - lo0 16384 localhost.dig ::1413 - 413 - - lo0 16384 fe80:4::1 fe80:4::10 -0 - - tun0 1492 Link#529408809 0 27143719 0 0 tun0 1492 2001:410:90fc 2001:410:90fc:4:20 -1 - - tun0 1492 216.106.102.7 hs-216-106-102-70 1535341 - 1578465 - - tun0 1492 fe80:5::a1ed: fe80:5::a1ed:c9e80 -2 - - Mike pgpeXxvDxzqaS.pgp Description: PGP signature
looking for ethernet errors, collisions
Hi, I'm used to this showing on the interface in the ifconfig output on Linux, but on FreeBSD it doesn't seem to show errors, collisions, etc. What's the standard way to show that on FreeBSD? I'm finding my network connection very bursty of late, sudden lags for no apparent reason, etc. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpajkPuVfkJL.pgp Description: PGP signature
Re: regular portsdb maintanence
On 28/03/07 [EMAIL PROTECTED] said: I am not sure you would want to do that, as if it were to overlap with a normal portupgrade the results may be interesting. Yes, it's become plain to me that the pkgdb -L is working off of metadata that was updated with the last cvsup, and not the packages that I currently have installed. So, unless I've done a full portupgrade, pkgdb -L just breaks the dependencies and I must then fix them via pkgdb -F. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpnatur0QAIR.pgp Description: PGP signature
Re: the art of pkgdb -F
On 28/03/07 Robert Huff said: But I bet I'm not the only one who, once upon a time, happened to try portupgrade -arR or equivalent after forgetting to read UPDATING and ended up with more to do than I originally thought. Might as well paint PLEASE KICK ME! and an arrow pointing down on your back I'm used to binary-package distributions that seem to try a lot harder to not break. I suppose that ports is evolving, and it used to be worse, so I shouldn't complain. Still, if the handbook says to use portupgrade -R to upgrade a port, that's what BSD newbies like me are going to use. I'm just glad that portupgrade has a -n switch. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgphORTxDiaJu.pgp Description: PGP signature
Re: regular portsdb maintanence
On 27/03/07 David J Brooks said: Have you looked at 'man pkgdb'? Yes. I'm looking for how it works, not how to use it. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgp0riZwcEdRk.pgp Description: PGP signature
Re: the art of pkgdb -F
On 28/03/07 Kevin Kinsey said: Here is a time-honored and rather canonical diatribe on The Art of Pkgdb -F (a great thread title, BTW). Note also that it is nearly six years old, and that additional package-management tools have been proposed, created, and released to the public, and some may have already been EOL'ed and buried, but the rest of them aren't considered standard by any means, and currently the FreeBSD world is in a pseudo-Biblical every man did as he saw fit state these days[1]. http://www.onlamp.com/pub/a/bsd/2001/11/29/Big_Scary_Daemons.html I suppose I'm curious as to how my ports got into this state in the first place, since I would have expected a package managements system to have prevented it. Now, I've been upgrading ports via portupgrade -R port as suggested in the handbook. As -R upgrades only those packages that require those supplied, and not those that it requires, would that cause it? I'm wondering how my port dependencies became broken in the first place. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpEjniW1tlh0.pgp Description: PGP signature
Re: the art of pkgdb -F
On 28/03/07 RW said: The gettext upgrade is actually a good example of what portupgrade offers. With portupgrade the -rf option is advisable, but not essential, with portmaster, it's essential that the -r option is used, If it's not, or the upgrade fails to complete, you can end-up with not much more than the base-system working. Wow. You would think that such tools would prevent you from getting into that situation. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpGNniQrLuol.pgp Description: PGP signature
Re: the art of pkgdb -F
On 28/03/07 Gerard Seibert said: You can run: portmanager -u -p -l That will rebuild all broken and or missing dependencies for all of your ports. How does it know what ports are installed? Originally, I thought that the pkgdb was that source of information, so if it was gone, how could it be rebuilt? Obviously there is installed package metadata elsewhere. Just not sure where. If you just want to correct a single port, try this: portmanager /port/name-of-port -p -l Thanks. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpNiY0kiBlC7.pgp Description: PGP signature
Re: using nut-ups with apc UPS on USB
On 28/03/07 Derek Ragona said: I still have one server running 5.X release. 5.X also should automatically generate the devs. Do you have support for usb in your kernel? If you do have usb compiled in your kernel, check your dmesg that the usb devices are properly being identified. It's there. ugen0: APC Back-UPS ES 500 FW:824.B1.D USB FW:B1, rev 1.10/1.06, addr 2 [EMAIL PROTECTED] ~]# usbdevs addr 1: OHCI root hub, SiS addr 2: Back-UPS ES 500 FW:824.B1.D USB FW:B1, APC addr 1: OHCI root hub, SiS Hmm, seems that I have it now. [EMAIL PROTECTED] ~]# ls -l /dev/usb* crw-rw 1 root operator 240, 255 Mar 24 11:07 /dev/usb crw-rw 1 root operator 240, 0 Mar 24 11:07 /dev/usb0 crw-rw 1 root operator 240, 1 Mar 24 11:07 /dev/usb1 Mike pgp9dBRRXH3H3.pgp Description: PGP signature
vim port not upgrading
I tried to upgrade vim, and I get a lot of these. === Cleaning for vim-7.0.214 = 7.0.189 doesn't seem to exist in /usr/ports/distfiles/vim. = Attempting to fetch from ftp://ftp.vim.org/pub/vim/patches/7.0/. 7.0.189 100% of 2290 B 1487 kBps = 7.0.190 doesn't seem to exist in /usr/ports/distfiles/vim. = Attempting to fetch from ftp://ftp.vim.org/pub/vim/patches/7.0/. 7.0.190 100% of 1778 B 129 kBps = 7.0.191 doesn't seem to exist in /usr/ports/distfiles/vim. = Attempting to fetch from ftp://ftp.vim.org/pub/vim/patches/7.0/. 7.0.191 100% of 10 kB 31 kBps = 7.0.192 doesn't seem to exist in /usr/ports/distfiles/vim. = Attempting to fetch from ftp://ftp.vim.org/pub/vim/patches/7.0/. The number on the left just keeps going up and it just keeps spinning it wheels. Any suggestions? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
understanding this portupgrade error
Hi, I'm upgrading cacti, and it's failing on the net-snmp port. === Installing for net-snmp-5.3.1_2 === net-snmp-5.3.1_2 depends on file: /usr/local/bin/perl5.8.8 - found === Generating temporary packing list === Checking if net-mgmt/net-snmp already installed === An older version of net-mgmt/net-snmp is already installed (net-snmp-5.2.3_4) You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of net-mgmt/net-snmp without deleting it first, set the variable FORCE_PKG_REGISTER in your environment or the make install command line. *** Error code 1 I'm confused. Of course an older version is installed, that's why it's called an upgrade. Why is this happening? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpR7OXnoW9cR.pgp Description: PGP signature
Re: vim port not upgrading
On 27/03/07 Kevin Brunelle said: As you have most likely noticed by now, it stopped at 7.0.214, which is the minor version of vim. Actually it's a patch version. vim applies a series of patches to the original source instead of constantly releasing a large file including all the source. It makes patching fairly easy and saves some bandwidth for them. Just let it run... it will get them all and your build will complete. Indeed it did. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpoGbhXfjfoX.pgp Description: PGP signature
Re: using nut-ups with apc UPS on USB
On 26/03/07 Derek Ragona said: I use nut-ups on a number of systems both attached to a UPS and some as network slaves. In all my systems I use UPS's that have serial interfaces and USB, but connect them via serial. If you read the docs on nut-ups you will see some drivers do support the USB's. You will need to specify the port in ups.conf typically in /usr/local/etc/nut The line would be: port = /dev/usb0 You can experiment with the port to get the right one. Nut will tell you if is can or cannot talk to the UPS. I don't seem to have a /dev/usb0 device file. Do I need to mknod it? Mike pgpDmhloIoKNX.pgp Description: PGP signature
regular portsdb maintanence
Hello, I just upgraded portupgrade, and it recommended that I run pkgdb -L to look for lost dependencies. This raised the question to me of what I should regularly run in cron jobs to maintain the db. Is it wise to put say, pkgdb -L into a weekly cron? Anything else? How are dependencies lost anyway? Beyond reading the source, is there a document that tells me how pkgdb works? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpZKRFCg4M4o.pgp Description: PGP signature
Re: using nut-ups with apc UPS on USB
On 27/03/07 Derek Ragona said: Which FreeBSD version are you running? In 6.X the devs are created automatically on bootup. In earlier versions you may need to make it. Look at the Makefile in /dev for the correct make option. I'm running 5-STABLE. I don't see a Makefile in /dev. Mike pgpZUIIzjtp4l.pgp Description: PGP signature
Re: regular portsdb maintanence
On 27/03/07 [EMAIL PROTECTED] said: I can't say I've used that option lately, but I'm pretty sure that what you're experiencing occurs because stuff a) gets moved or b) gets removed. Versioned port like lib/libnet10 for instance gets replaced by lib/libnet11 in the future for instance. You shouldn't really have to do something like this more than once a month though I would think unless you're a heavy ports user, because ports don't get moved / removed frequently (except as of late where there seems to be a bit of a ports revamp going on). So, maybe once every two weeks for now? Thanks, I'll try that. I think I'll run portsclean now and then too, and whatever other regular cleaning I can do. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpmNb5nfbY3E.pgp Description: PGP signature
Re: Does freebsd have the equivelent command to linux mii-tool or ethtool?
On 28/03/07 essential li said: Actually, I want to port mii-tool to freebsd for linux command compatible, so I want to know if there is the equivelent command to linux mii-tool or ethtool essential li [EMAIL PROTECTED] 写道: I saw there are mii.h and mii.c in freebsd source code but do not have mii-tool command. Does freebsd have the equivelent command to linux mii-tool or ethtool ? or the functions of these two command are included in ifconfig ? They seem to be in ifconfig, if you're looking to override autoneg. ie. sudo ifconfig xl0 media 100baseTX mediaopt full-duplex Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpHSfKa0cpwn.pgp Description: PGP signature
the art of pkgdb -F
I'm looking at http://www.freebsddiary.org/pkgdb.php while I run it myself. I'm finding wonderful questions like Stale dependency: p5-Authen-SASL-2.09 - p5-GSSAPI-0.24 (security/p5-GSSAPI): p5-Geography-Countries-1.4 (score:26%) ? ([y]es/[n]o/[a]ll) [no] I must ask. How the hell am I supposed to know?? I build that as a dependency of something that I built months ago. There's a good chance that I'll be simply guessing at all of the answers. Is it really useful to run this if you can't remember? And why am I remembering anyway? That's what a packaging system is for, isn't it? Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgp8MyUeIp4ep.pgp Description: PGP signature
using nut-ups with apc UPS on USB
Hey, I'm new to using nut-ups, or any UPS monitoring software. Mainly I want some kind of reporting on power failures, and for a clean shutdown in the event of a prolonged outage. The UPS is an APC Back-UPS ES 500, with a USB interface. With usbd running, usbdevs shows it connected. [EMAIL PROTECTED] ~]$ sudo usbdevs Password: addr 1: OHCI root hub, SiS addr 2: Back-UPS ES 500 FW:824.B1.D USB FW:B1, APC addr 1: OHCI root hub, SiS The syntax of upsd.conf requires a pathname for the port to talk do. What device file would this work out to? Any hints on setting this up? If nut-ups isn't the right software, I'm open to suggestions. Cheers, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
rebuilding world
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html This document says that after the make installkernel, you reboot in single user mode, and then run mergemaster -p. This gives me errors about a read-only filesystem. Can't create /var/tmp/temproot. Do the instructions need updating? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Launching a telnet session from a process
On 1/17/07, Kailas Ramasamy [EMAIL PROTECTED] wrote: Hi, How do I launch a telnet session from a process and tell that session to use console port (/dev/console) for stdin and stdout?. Appreciate your help. I read through fork() and exec() man pages but it is not mentioned there. Personally I'd use expect around the telnet, and then send the output to any file desired. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
man page synopsis syntax reference
Hello, Is there an authoritative reference of what manpage syntax should look like? ie. foo [optional arg] required arg required multiple... I can't seem to find a reference that explains this syntax. Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
who's using that port?
I came home tonight to find my server with a full /var partition due to httpd-error.log being very full of error messages. I cleaned it up, and restarted apache to find that it wouldn't bind to ports 80 and 443 as they were in use. netstat -na confirmed that they were, but not by who. There's no -p argument to track the pid of the process using the port. How do you track that on BSD? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Use of CVS
On 1/11/07, Doug Hardie [EMAIL PROTECTED] wrote: one for the new development or the other way around. Will it be easier to merge the fixes to the production branch back in to the new system later or should those fixes be made to both branches at the same time? Any suggestions on these approaches will be appreciated. Thanks, This is really a basic stream management question, not specific to freebsd, or CVS for that matter. Perhaps you should reference one of numerous texts on stream management, and find a development model that is most comfortable for you. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: debugging ipnat
On 1/6/07, Michael P. Soulier [EMAIL PROTECTED] wrote: I have a simple port-forwarding rule that I want to work from my gateway to a box on my LAN, but it doesn't seem to be working. [EMAIL PROTECTED] ~]$ sudo ipnat -l Password: List of active MAP/Redirect filters: rdr tun0 0.0.0.0/32 port 6882 - 192.168.1.3 port 6882 tcp What I was doing wrong is that the rule should have been this. rdr tun0 0.0.0.0/0 port 6882 - 192.168.1.3 port 6882 tcp Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ipmon group and rule
I'm trying to understand the logs that ipmon is generating. Looking at the ipmon manpage, I see that the group and rule line are given. Jan 6 22:39:42 kanga ipmon[182]: 22:39:41.827406 tun0 @0:5 b 216.98.226.44,1335 - 216.106.102.70,135 PR tcp len 20 48 -S IN So, this is coming in the tun0 interface, and it matches group @0, rule 5? Looking at the output of ipfstat -ni, there is no group zero. So, it's a rule without a group, such as this one? block in quick all I'm trying to understand why this is being blocked. Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
debugging ipnat
I have a simple port-forwarding rule that I want to work from my gateway to a box on my LAN, but it doesn't seem to be working. [EMAIL PROTECTED] ~]$ sudo ipnat -l Password: List of active MAP/Redirect filters: rdr tun0 0.0.0.0/32 port 6882 - 192.168.1.3 port 6882 tcp Trying to telnet to port 6882 on the public interface from outside, I just get a connection refused. The port is open in the firewall. tcpdump shows the traffic arriving, and a reset packet in response. tcpdump on the private interface shows nothing, so no attempt to forward the traffic is made. What am I doing wrong? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Advice on which FreeBSD firewall package to choose.
On 1/5/07, Agus [EMAIL PROTECTED] wrote: It seems is unanimousPF it isremember u have to compile the Kernel to activate this, i´ve done it for the first time, yesterday and its very simplealso checkout the ALTQ for QoS, good luck Does PF and/or ipfilter have ipv6 support? I'm currently using ipfilter, but a friend went back to ipfw because he has an ipv6 tunnel to protect as well. Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
tracking port requires
Hello, I'm trying to figure out where ports keep their dependency information, and the best way to parse it? On a Linux rpm-based system, I can do the following: Linux RPM | FreeBSD Ports | Task = rpm -qa pkg_info List all installed packages rpm -ql package pkg_info -L package List files in package rpm -qf file pkg_which file Which package does file belong to? rpm -q --requires package ? List dependencies of package rpm -q --whatrequires package ? Reverse-dependencies of package If anyone has compiled this, it would help me out. Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: tracking port requires
On 1/5/07, Dan Nelson [EMAIL PROTECTED] wrote: The dependencies themselves are stored as @pkgdep lines in the /var/db/pkg/packagename/+CONTENTS file. The reverse link is stored in /var/db/pkg/packagename/+REQUIRED_BY . You can list the dependencies with the pkg_info -r packagename command, and the packages that require a package with pkg_info -R packagename. Great, thanks. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I install ports hands-off?
On 1/4/07, Atom Powers [EMAIL PROTECTED] wrote: For most ports I can pkg_add them to get them installed without prompts. But for some ports I special make configurations that require me to build the port from source. Usually I use portinstall for this, but this causes problems if the make process requires additional input. How can I build a port using the default options, except those defined in make.conf, without requiring me to confirm the option for each port? This seems to suggest batch mode. http://lists.freebsd.org/pipermail/freebsd-ports/2003-August/003694.html Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple port versions
On 1/3/07, Vizion [EMAIL PROTECTED] wrote: What is the safest way to remove the earlier versions? I think if you portupgrade the apps that require those, like portupgrade -R name then it'll upgrade both the app and the required port, removing the duplication. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Routing
On 1/1/07, Office of the CIO-rithy4u.NET [EMAIL PROTECTED] wrote: I try to do dual routing on my freebsd box but its was not sucecssfull. any one can help? Not with the information that you've provided. Perhaps you could explain what you tried, and what you mean by not successful? Details are important. Cheers, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to stop automatic creation of /var/mail/$USER
On 1/1/07, Sahil Tandon [EMAIL PROTECTED] wrote: When I 'adduser' a new account, a /var/mail/$USER file is created. This is unnecessary as our MTA is configured to deliver mail directly to a user's ~/Maildir/, where the IMAP server looks by default. There is nothing in the adduser or adduser.conf man pages that explains how to manipulate (or, in my case, simply stop) the creation of this file. I do the same. I don't really care about the file, as it's not hurting anything. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to stop automatic creation of /var/mail/$USER
On 1/1/07, Sahil Tandon [EMAIL PROTECTED] wrote: It doesn't hurt anyone but is it possible to disable its creation? Not sure if there's an easier way, but you could always patch it and rebuild it. Or, you could just put a wrapper around it that removes the file after creating it. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: where to get the iso c90 compiler?
On 12/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: so, where? (also for linux?) Can you not use gcc in pedantic mode? Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: where are /usr/local/etc/rc.d init scripts run from?
On 12/23/06, Kevin Brunelle [EMAIL PROTECTED] wrote: I was unintentionally confusing in my answer. Sorry about that. If your startup script is in the old style, it will be handled by /etc/rc.d/localpkg when that is called during the boot process. That is ONLY if it's the old style. I should have mentioned that I'm running 5.4. I suspect you're talking about 6.X code, as some of what you're mentioning, I don't see on my system. Something to look forward to when I upgrade then. Thanks for the detail explanation. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FF 2.0 hogging the cpu in FreeBSD 6.2-PRELEASE
On 12/23/06, Abdullah Al-Marrie [EMAIL PROTECTED] wrote: Hello, I installed FF 2.0 from the ports. I noticed that FF 2.0 uses alot of CPU power every time I open a new page in the tabs, or refresh an opened page, it's not app startup issue, beside I don't know if Linux has the same issue too. Firefox is a pig on every platform. Plus, more sites are using javascript for AJAX these days, pushing more and more load onto the client. What are the specs of the machine? Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FF 2.0 hogging the cpu in FreeBSD 6.2-PRELEASE
On 12/23/06, Abdullah Al-Marrie [EMAIL PROTECTED] wrote: How about Opera, does it have the same issue? No idea, but using a lot of cpu during activity isn't necessarily a bad thing. It's there to be used. The question is, is your system unacceptably slow when using Firefox? AMD Turion(tm) 64 X2 Mobile Technology TL-50 (1596.01-MHz 686-class CPU) Dual CPU. RAM: 1.5 GB DDR2 533 MHz. Certainly adequate. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
not everything coming up on a reboot
Hello, I had to reboot recently (a truly rare event), and I found that my PPPoE connection didn't come back up automatically. Quite disturbing if I happen to be away from the house and a power failure lasts longer than my UPS. After boot, if I run /etc/rc.d/ppp-user start, it comes up perfectly, using my settings in /etc/rc.conf. So, why wouldn't it come up at boot? I thought that every initscript was passed a start argument. I can't find a log of an attempt at all. Help appreciated. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: not everything coming up on a reboot
On 12/23/06, Christian Walther [EMAIL PROTECTED] wrote: Hello Mike, do you have ppp_enable=YES in your /etc/rc.conf? If you never configured /etc/rc.conf to start ppp on boot, you should take a look at /etc/defaults/rc.conf to see what options are available, and what options apply to your setup. As I said, the ppp-user script brings it up fine. It would not if I did not have rc.conf configured properly. [EMAIL PROTECTED] ~]# grep ppp /etc/rc.conf ppp_enable=YES ppp_mode=ddial #ppp_nat=YES # if you want to enable nat for your local network, otherwise NO ppp_profile=storm It still doesn't come up at boot. Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: not everything coming up on a reboot
On 12/23/06, Beech Rintoul [EMAIL PROTECTED] wrote: Do you have ppp-user_enable=yes in your /etc/rc.conf? No, and looking at ppp-user, I don't see why I'd need one. I have ppp_enable=YES. # PROVIDE: ppp-user # REQUIRE: netif isdnd # KEYWORD: nojail . /etc/rc.subr name=ppp rcvar=ppp_enable start_cmd=ppp_start stop_cmd=: Now, I do notice that the stock script comes with a REQUIRE isdnd as well as netif. As I'm not running isdn, would that stop rc from bringing the script up, or are REQUIREs OR'd and not AND'd? Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: not everything coming up on a reboot
On 12/23/06, Beech Rintoul [EMAIL PROTECTED] wrote: I forgot to mention, as a workaround if you can't get the rc.d script working you can start it from cron. Just replace the time/day/month variables with @reboot and the path to the exicutable. I use it for a couple of things that don't have start scripts. See man(5) crontab for examples. Hmm. Thanks. Good to know, that could do as a workaround for now. Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: not everything coming up on a reboot
On 12/23/06, Lane [EMAIL PROTECTED] wrote: It does not appear that rcorder is invoked when you run the script from the command line ... thus it will start when you invoke it manually as long as /etc/rc.conf agrees. Do this: rcorder -s nostart /etc/rc.d/* [EMAIL PROTECTED] ~]$ rcorder -s nostart /etc/rc.d/* | grep -A1 -B1 ppp-user /etc/rc.d/netif /etc/rc.d/ppp-user /etc/rc.d/ipfw Does ppp show up? If not then there is the problem. As to WHY .. well you'd have to ask the developer. But If I was trouble-shooting to get it to work until the developer of rcorder got back with me, I this I'd do it this way: Thanks. I might take some time to tinker with it. I've opened a bug report for now. Maybe I'll have something to append to it soon. Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
where are /usr/local/etc/rc.d init scripts run from?
I was looking in /etc/rc, and it's obvious to see where the /etc/rc.d scripts are run from. skip=-s nostart [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ] skip=$skip -s nojail files=`rcorder ${skip} /etc/rc.d/* 2/dev/null` for _rc_elem in ${files}; do run_rc_script ${_rc_elem} ${_boot} done So rcorder is run over /etc/rc.d/*. When is the same done for /usr/local/etc/rc.d/*? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: where are /usr/local/etc/rc.d init scripts run from?
On 12/23/06, Kevin Brunelle [EMAIL PROTECTED] wrote: They are called from /etc/rc.d/localpkg if they are the old style. The directories searched are defined with local_startup (which defaults to: /usr/local/etc/rc.d /usr/X11R6/etc/rc.d). Ok, looking in localpkg, I see this. pkg_start() { # For each dir in $local_startup, search for init scripts matching *.sh # case ${local_startup} in [Nn][Oo] | '') ;; *) echo -n 'Local package initialization:' slist= if [ -z ${script_name_sep} ]; then script_name_sep= fi for dir in ${local_startup}; do if [ -d ${dir} ]; then for script in ${dir}/*.sh; do slist=${slist}${script_name_sep}${script} done fi done script_save_sep=$IFS IFS=${script_name_sep} for script in ${slist}; do if [ -x ${script} ]; then (set -T trap 'exit 1' 2 ${script} start) elif [ -f ${script} -o -L ${script} ]; then echo -n (skipping ${script##*/}, not executable) fi done IFS=${script_save_sep} echo '.' ;; esac } So rcorder is not used for the rc scripts in /usr/local/etc/rc.d? That explains much, since I have a runsvstat.sh script needed to start runit, and a script to start one of its services starts with an 'm' and is executing first, which I don't want. Why is rcorder not used on these files as well? It's such a good system. The new style scripts are found in /etc/rc as well. You may want to look at the find_local_scripts_new() function in /etc/rc.subr to see how some of this functions. There is some trickery here because we have to do this in more than one step. Since /usr/local/etc/rc.d/ may not be on a mounted filesystem until we run through some of the earlier scripts. Ok, thanks. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mailman upgrade problem
On 17/12/06 Paul Schmehl said: Apparently you're running Postfix. Is this problem unique to postfix? Put this in /usr/local/etc/pkgtools.conf, and you will never have this problem again: MAKE_ARGS = { # Preset mailman so it will compile with the right group 'mail/mailman' = 'MAIL_GID=mailman' } Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpTRzjyUf8bH.pgp Description: PGP signature
Re: openssh security issues
On 17/12/06 Eric said: why not install the portable version? its much newer than the one you have. I don't know what you mean by the portable version. Can I assume that the answer to my original question then, is no? Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgphoqhNV6IiV.pgp Description: PGP signature
Re: upgrade of portupgrade fails
On 16/12/06 Michael P. Soulier said: Stop in /usr/ports/lang/ruby18. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade12405.0 make PORT_UPGRADE=yes reinstall egrep: /var/db/pkg/ruby-1.8.4_9,1/+CONTENTS: No such file or directory --- Restoring the old version Any ideas why? So, the logs tell me why. swap_pager_getswapspace(9): failed swap_pager_getswapspace(9): failed swap_pager_getswapspace(2): failed swap_pager_getswapspace(3): failed swap_pager_getswapspace(2): failed swap_pager_getswapspace(2): failed pid 24321 (ruby18), uid 0, was killed: out of swap space I guess ruby used too much memory for my system. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpxEO55HHPWE.pgp Description: PGP signature
upgrade of portupgrade fails
I did a portupgrade -R on sysutils/portupgrade, and it started upgrading ruby. Unfortunately, it failed. No definition for sock_s_unpack_sockaddr_un stringio.c: c. strscan.c: cc. zlib.c: mcc... Generating RI... Killed *** Error code 137 Stop in /usr/ports/lang/ruby18/work/ruby-1.8.5. *** Error code 1 Stop in /usr/ports/lang/ruby18. *** Error code 1 Stop in /usr/ports/lang/ruby18. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade12405.0 make PORT_UPGRADE=yes reinstall egrep: /var/db/pkg/ruby-1.8.4_9,1/+CONTENTS: No such file or directory --- Restoring the old version Any ideas why? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpslScfnxpX3.pgp Description: PGP signature
Re: upgrade of portupgrade fails
On 16/12/06 Lane said: I had this problem as well after going from 6.1 to -CURRENT I fixed it by doing cd /usr/ports/lang/ruby18 make -DFORCE_PKG_REGISTER install and then rebuilt sysutils/portupgrade Well, it seemed to be a problem in building the ruby rdocs, so I removed that option for now. I upgraded portupgrade on its own, and then upgraded ruby, and that seems to have worked. Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpQMapgaKZAz.pgp Description: PGP signature
mailman upgrade problem
I just did a portupgrade on mailman, and now it's doing this. Dec 16 22:05:27 kanga Mailman mail-wrapper: Group mismatch error. Mailman expected the mail wrapper script to be executed as group nobody, but the system's mail server executed the mail script as group mailman. Try tweaking the mail server to run the script as group nobody, or re-run configure, providing the command line option `--with-mail-gid=mailman'. Dec 16 22:05:27 kanga postfix/local[87645]: 830DE6E: to=[EMAIL PROTECTED], relay=local, delay=0, status=bounced (Command died with status 2: /usr/local/mailman/mail/mailman post opag. Command output: Group mismatch error. Mailman expected the mail wrapper script to be executed as group nobody, but the system's mail server executed the mail script as group mailman. Try tweaking the mail server to run the script as group nobody, or re-run configure, providing the command line option `--with-mail-gid=mailman'. ) I guess I need to rebuild it... Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein pgpt72TmULpn9.pgp Description: PGP signature