Re: Mutt Help

2007-10-02 Thread andrew clarke
On Sun, Sep 30, 2007 at 05:54:37PM -0700, Rem P Roberti wrote:

> Hi All...I am a newbie using Mutt, and I have Fetchmail running as
> daemon.  Fetchmail is doing its job, periodically retreiving my pop3
> mail, but I am so far unable to find the correct entry for the
> .muttrc file which will result in Mutt automatically retrieving mail
> from fetchmail.  Any help would be appreciated.

By default, Fetchmail will put your mail wherever $MAIL points to. 
Usually this is in a file named /var/mail/username, where username is
your login name.

$ echo $LOGNAME
ozzmosis
$ echo $MAIL
/var/mail/ozzmosis

And by default, Mutt will look in the same place, as per muttrc(5):

   spoolfile
  Type: path
  Default: ""

  If your spool mailbox is in a non-default place where Mutt  can-
  not  find  it,  you can specify its location with this variable.
  Mutt will automatically set this variable to the  value  of  the
  environment variable $MAIL if it is not set.

I use Fetchmail, Procmail, SpamAssassin, Mutt and Postfix quite
successfully here.  :-)

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mutt Help

2007-10-03 Thread andrew clarke
On Tue, Oct 02, 2007 at 01:37:11PM -0700, Bill Campbell wrote:

> >> Hi All...I am a newbie using Mutt, and I have Fetchmail running as
> >> daemon.  Fetchmail is doing its job, periodically retreiving my pop3
> >> mail, but I am so far unable to find the correct entry for the
> >> .muttrc file which will result in Mutt automatically retrieving mail
> >> from fetchmail.  Any help would be appreciated.
>
> >By default, Fetchmail will put your mail wherever $MAIL points to. 
> >Usually this is in a file named /var/mail/username, where username is
> >your login name.
> 
> I thought that the default for fetchmail was to pass the messages
> to the system's MTA (postfix, sendmail, etc.), not to attempt
> delivery itself.

Yes, but how mail gets from fetchmail to the main spool was not
critical.  I did not want to complicate the process in my reply.

Incidentally the OP's e-mail address is/was failing:

<[EMAIL PROTECTED]>:
Connected to 68.178.232.99 but connection died. (#4.4.2)

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ffmpeg not installing

2007-10-04 Thread andrew clarke
On Thu, Oct 04, 2007 at 01:51:03PM -0600, James wrote:

> > > /usr/local/include/log.h:112: error: syntax error before "A_"
> > 
> > I'm curious which port installed log.h. I don't have it on my system and it 
> > wouldn't surprise me if a local log.h conflicts with this log.h.
> > 
> > Could you show output of:
> > grep '^include/log.h' /var/db/pkg/*/+CONTENTS
> 
> 
> 
> [EMAIL PROTECTED] ~]$ su
> Password:
> secretariat# grep '^include/log.h' /var/db/pkg/*/+CONTENTS
> secretariat# 

I don't have a log.h:

$ uname -a
FreeBSD blizzard.dancer 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Wed Sep 19 21:56:10 
EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/DELLGX150  i386
$ cat /usr/local/include/log.h
cat: /usr/local/include/log.h: No such file or directory

I would do:

mv /usr/local/include/log.h /usr/local/include/log.h.backup

And try rebuilding ffmpeg again.  While it rebuilds, try to find out
where log.h came from. :)

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: BASH as root shell (static linking)

2007-10-06 Thread andrew clarke
On Sat, Oct 06, 2007 at 04:54:26AM +1000, Jerahmy Pocott wrote:

> I'm wanting to use BASH as my root shell, so I compiled a statically linked
> version then tried to log in with only / mounted. But I was locked out 
> because elf.ld.so could not be found..
> 
> I though elf was the native binary format these days? But it needs a 
> library to run them? Is it possible to statically link against elf? Or do
> standalone binary have to be in aout format? I'm a bit confused as to why it
> requires this dynamic library..

I'm not sure if this helps at all, but you can build a static version of
bash from the Ports tree:

cd /usr/ports/shells/bash
make WITH_STATIC_BASH=1

You'll need to cp bash to /bin.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


freebsd-questions@freebsd.org

2007-10-14 Thread andrew clarke
On Fri, Oct 12, 2007 at 03:15:28AM -0500, CyberLeo Kitsana wrote:

> There are quite a few PHP trackers around, though the one I use is
> Torrent Trader Lite. (http://www.torrenttrader.com/) This is a
> lightweight tracker that stores all its information in flatfiles, so no
> rdbms is necessary. This should be placed on a publicly accessible URL,
> so that the people who wish to download via bittorrent can use it.

Or http://sourceforge.net/projects/torrenttrader .

I had a quick look at Torrent Trader Lite after your suggestion, and
while it doesn't appear to depend on MySQL, it's still far from
lightweight!  It really requires you to build the web site around the
tracker rather than adding a small tracker to a pre-existing site.

I also had to do a lot of work to get it working under PHP5.  I fixed
some things by replacing "http://bnbteasytracker.sourceforge.net/documentation.php

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


rename file based on file's timestamp

2007-10-24 Thread andrew clarke
Hi,

Hopefully, a simple request...

I have a series of files in a directory:

-rw-r--r--  1 ozzmosis  ozzmosis  115201253 Jul 28  2006 209.mp3
-rw-r--r--  1 ozzmosis  ozzmosis  115201253 Jul 31  2006 212.mp3
-rw-r--r--  1 ozzmosis  ozzmosis  115201253 Aug  1  2006 213.mp3
-rw-r--r--  1 ozzmosis  ozzmosis  115201253 Aug  2  2006 214.mp3
-rw-r--r--  1 ozzmosis  ozzmosis  115201253 Aug  3  2006 215.mp3

etc.

Now I want to rename these so the new filenames are based on the file's
timestamp, like so:

-rw-r--r--  1 ozzmosis  ozzmosis  115201253 Jul 28  2006 2006-07-28.mp3
-rw-r--r--  1 ozzmosis  ozzmosis  115201253 Jul 31  2006 2006-07-31.mp3
-rw-r--r--  1 ozzmosis  ozzmosis  115201253 Aug  1  2006 2006-08-01.mp3
-rw-r--r--  1 ozzmosis  ozzmosis  115201253 Aug  2  2006 2006-08-02.mp3
-rw-r--r--  1 ozzmosis  ozzmosis  115201253 Aug  3  2006 2006-08-03.mp3

I can write some Python code to do this, but maybe there is another way,
perhaps using a shell script.  Any thoughts?

Thanks,

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Auto blacklist ssh connections ...

2008-09-18 Thread andrew clarke
On Wed 2008-09-17 19:36:02 UTC-0400, Tom Marchand ([EMAIL PROTECTED]) wrote:

>> Does anyone know of a utility that I can use with sshd to auto-block  
>> by IP if there are more then N failed attempts in a row?

> Why don't you have sshd listen on a different port?

I imagine that on some hosts where there are multiple users/customers,
moving sshd to another port isn't a practical solution due to people's
habits in trying to connect to the default port.  A human problem
rather than a technical one.

PS. Top posting is cruel.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Any way to play www.last.fm on FreeBSD?

2008-09-21 Thread andrew clarke
On Sun 2008-09-21 23:11:50 UTC-0700, Gary Kline ([EMAIL PROTECTED]) wrote:

> I can't listen to last.fm with firefox2 or firefox3--and parts of
> ff3 don't get loaded.  With the KDE3 browser, same thing; it
> won't recognize last.fm.  Nutshell: what do I need to do to
> play songs from last.fm here [FBSD]?

There is audio/last.fm in the Ports tree - have you tried that?

(Disclaimer: I've never used it.)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Filesystem of choice for a Linux/FreeBSD shared backup disk?

2008-09-23 Thread andrew clarke
On Tue 2008-09-23 17:17:21 UTC+0200, Andreas Davour ([EMAIL PROTECTED]) wrote:

> I've bought a usb connected disk to use as backup, and I've been  
> thinking about trying to make the data as available as possible. Do  
> anyone here have any suggestion about what kind of filesystem would be  
> best to use? Can ufs2 be read by linux? It looks like it from my short  
> persual of google hits, but it also looks kind of complicated. IS ext2 a  
> safer bet? Anything totally different?
>
> Any filesystem that can handle data from both BSD and Linux without too  
> much metadata mangling would do.

I'm not sure about UFS support in Linux.  You would probably need to
ask on a Linux list.  The man page for newfs says that you can create
UFS1 filesystems with it, which may help with compatibility?

mount_ext2fs is available in FreeBSD but I can't speak for its
reliability.

There is full read/write support for NTFS provided by
sysutils/fusefs-ntfs in the Ports tree.  I suspect there are some
limitations though, eg. tighter restrictions than UFS on what
characters are permitted in filenames.

For making backups I would probably just use FAT32 and tar, because
practically anything (not just FreeBSD & Linux) will mount FAT32 file
systems, and tar should respect your file attributes (owner, group,
creation timestamp, last modified timestamp, etc).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Server - Linux Compat

2008-09-23 Thread andrew clarke
On Tue 2008-09-23 17:38:57 UTC-0400, Grant Peel ([EMAIL PROTECTED]) wrote:

> When I was young, many many moons ago, and I installed FreeBSD 4.4 for 
> the first time, I enabled linux compatability ...
>
> Each build since, I have enabled it ...
>
> So not I am at the point of asking myself why?

You only need to enable the Linux ABI module if you're running Linux
binaries.  On a server, this would be fairly uncommon.  On a desktop
machine you may decide that (for example) for whatever reason, the
FreeBSD port of Firefox (www/firefox) is not working properly for you,
so you might like to run the Linux binary of Firefox
(www/linux-firefox) under FreeBSD's Linux ABI.  But even that
situation is probably fairly rare.

> All I run is webservers and namesrvers, you know, Bind, Apache, Mysql,  
> vmpop3d, PHP, Exim and shh...

These have all been ported to FreeBSD.  They are built from the Ports
tree as FreeBSD binaries and run natively.

> not to mention a few utils, ipa, ipfw etc.

I'm not sure what ipa is, but ipfw is supplied with the FreeBSD base
system as a native FreeBSD binary, as you can tell from the following
command:

$ file /sbin/ipfw
/sbin/ipfw: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for 
FreeBSD 6.3, dynamically linked (uses shared libs), stripped
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Server - Linux Compat

2008-09-23 Thread andrew clarke
On Tue 2008-09-23 14:54:30 UTC-0700, Nash Nipples ([EMAIL PROTECTED]) wrote:

> if there is no warning in the comments i think its harmless
> nobody knows when you are going to need a linux binary to run
> lsof maybe?

I'm not sure what you're trying to say here, but lsof builds from
Ports as a native FreeBSD binary:

$ file `which lsof`
/usr/local/sbin/lsof: setgid ELF 32-bit LSB executable, Intel 80386, version 1 
(FreeBSD), for FreeBSD 6.3, dynamically linked (uses shared libs), stripped

PS. "Nash Nipples" ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Filesystem of choice for a Linux/FreeBSD shared backup disk?

2008-09-23 Thread andrew clarke
On Tue 2008-09-23 23:13:32 UTC+0200, Laszlo Nagy ([EMAIL PROTECTED]) wrote:

>> For making backups I would probably just use FAT32 and tar, because
>> practically anything (not just FreeBSD & Linux) will mount FAT32 file
>> systems, and tar should respect your file attributes (owner, group,
>> creation timestamp, last modified timestamp, etc).
>
> Except that you cannot create files with >4GB size on FAT32. You might  
> be able to use an archiver that is able to split archives into smaller  
> parts.

Ah yes, I'd totally forgotten about that, sorry.  i would probably
split the tarballs in a way similar to how the FreeBSD distribution
tarballs are split, but it's not pretty.

> This has always been a problem. FreeBSD is open source. So Linux is, but  
> they do not have a common filesystem that could be accessed from both  
> system, WITHOUT compromises. :-(

Are there compromises with using ext2fs under FreeBSD?

Perhaps there should be ufs or ext2fs modules for FUSE, in an ideal world :-)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: update.FreeBSD.org / No mirrors remaining, giving up

2008-10-07 Thread andrew clarke
On Mon 2008-10-06 10:39:42 UTC+0200, Zbigniew Szalbot ([EMAIL PROTECTED]) wrote:

> I am not sure why but whenever I do:
> 
> $ freebsd-update fetch
> Fetching metadata signature for 7.0-RELEASE from update.FreeBSD.org... failed.
> No mirrors remaining, giving up.
> 
> but if type:
> $ portsnap fetch
> Fetching snapshot tag from portsnap.FreeBSD.org... done.
> 
> Many thanks for any hint as to what may be wrong with
> update.FreeBSD.org on this machine!

A similar problem to this:

http://lists.freebsd.org/pipermail/freebsd-questions/2008-April/173725.html

It may be your ISP's nameservers do not support SRV record lookups.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: uptime 2 years!

2008-10-08 Thread andrew clarke
On Wed 2008-10-08 09:21:53 UTC-0700, Jeremy Chadwick ([EMAIL PROTECTED]) wrote:

> I don't want to rain on your parade, but uptime ultimately means squat.

Agreed.

> I can install FreeBSD on a box under my desk at home, on a UPS, and
> leave it powered on for the next 30 years -- it tells people absolutely
> nothing about the reliability of the OS, or what kind of stress it's
> undergone during that time.

I'd be impressed if an ordinary PC lasted 30 years continuously
running.  Even if the HDD is solid-state you still have to think about
other moving parts, particularly the CPU and PSU cooling fans.  I've
had a bad run with PSU fans recently.

Is FreeBSD 7.1 2038-proof?  ;-)

http://en.wikipedia.org/wiki/Year_2038_problem

(I wonder what version of FreeBSD will be the latest in 2038?)

> Additionally, long uptimes also reflect directly on sysadmins: I take it
> to mean "the administrator is very lazy".  There are security holes
> (kernel or userland/library-level) which are exploitable on boxes which
> have been up for that kind of time.  I'm also making the assumption that
> said boxes have Internet connectivity, hence my point.

Yes, my initial thought was "what, you don't use freebsd-update?".

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: newsyslog naming scheme could be improved?

2008-10-12 Thread andrew clarke
On Sat 2008-10-11 14:58:39 UTC-0400, Garance A Drosehn ([EMAIL PROTECTED]) 
wrote:

> It would be bad to change the default behavior, but there have
> been several people who wished for some option for newsyslog
> which would make it use some alternate naming scheme.  There's
> at least one PR about it, for instance.
>
> It is on my list of things to do, but I've had a long stretch
> of time where I have too many things on that list.  I wouldn't
> go for a naming scheme that's as long as the above suggestion,
> though.

Perhaps newsyslog could support filenames in strftime(3) format, eg.

/var/log/messages.%Y-%m-%d

I think the format of newsyslog.conf might need to change to allow
that though, breaking compatibility...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: port maintaining & pointyhat

2008-10-13 Thread andrew clarke
On Mon 2008-10-13 15:30:43 UTC+, Desmond Chapman ([EMAIL PROTECTED]) wrote:

> I need to contact whoever is in charge of the ports collection. It
> concerns the status of a port. I'm new at this- maintaining ports,
> that is.

What is your concern?  You should probably address your question to
the freebsd-ports mailing list.

http://lists.freebsd.org/mailman/listinfo/freebsd-ports


"In FreeBSD, anyone may submit a new port, or volunteer to maintain an
existing port if it is unmaintained--you do not need any special
commit privileges to do so."

- 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/why-port.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Disable CTRL-ALT-DEL

2008-10-18 Thread andrew clarke
On Sat 2008-10-18 09:47:51 UTC+0200, Peter Boosten ([EMAIL PROTECTED]) wrote:

> > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#CAD-REBOOT
> 
> Hmmm, didn't know about the second one, and doesn't seem to be working
> either (on both 7.0 and 6.3):
> 
> sysctl hw.syscons.kbd_reboot=0
> sysctl: unknown oid 'hw.syscons.kbd_reboot'

That's odd..

$ sysctl hw.syscons.kbd_reboot
hw.syscons.kbd_reboot: 1

$ uname -a
FreeBSD blizzard.phoenix 6.3-RELEASE-p5 FreeBSD 6.3-RELEASE-p5 #0: Wed
Oct  1 05:34:19 UTC 2008 [EMAIL PROTECTED]
daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: MTA on non-standard port

2008-10-24 Thread andrew clarke
On Fri 2008-10-24 10:50:39 UTC-0500, Kevin Kinsey ([EMAIL PROTECTED]) wrote:

> For various reasons, I find myself in need of an MTA accepting
> submission on a port other than 587 (or 25).

>From what I can tell Postfix can be configured to listen on any unused
port (or multiple thereof) by editing /usr/local/etc/postfix/master.cf
as per the FAQ, then running /usr/local/etc/rc.d/postfix reload.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Running legacy i386 binaries on a amd64

2008-10-24 Thread andrew clarke
On Fri 2008-10-24 14:03:42 UTC-0200, [EMAIL PROTECTED] ([EMAIL PROTECTED]) 
wrote:

> I have a fresh install of FBSD 7 amd64, and I want to run some 
> legacy binaries from my old box (Fbsd 5.x i386).

I don't run 64-bit FreeBSD but from what I've read elsewhere, you can
install 32-bit binary support from your FreeBSD 7.x CD:

mount /cdrom
cd /cdrom/lib32
sh ./install.sh

If you're running 5.x binaries you might also need to install
misc/compat5x from the ports tree.

I hope this is some help...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports missing their packages.

2008-10-29 Thread andrew clarke
On Wed 2008-10-29 16:53:26 UTC+0800, joeb ([EMAIL PROTECTED]) wrote:

> Well if you have this cluster build process why have some ports never been
> built all the way back to release 5.0 like kdenetwork-kopete-0.12.8. That is
> almost 3 years of waiting to get in the cluster build process.

You need to understand that the FreeBSD project by its nature is
primarily source-code driven.  Making packages available (of any port)
is of very low priority in comparison to the rest of the system
(testing, documentation, etc).  Demanding that the FreeBSD volunteers
build a package just because you want to use it is a bit unfair,
particularly when you can make one yourself without much trouble.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports missing their packages.

2008-10-29 Thread andrew clarke
On Wed 2008-10-29 04:10:33 UTC-0700, [EMAIL PROTECTED] ([EMAIL PROTECTED]) 
wrote:

> I'm not sure I got all the emails in this thread... maybe some just
> haven't arrived yet.

It began on freebsd-ports, then the OP started cross-posting to
-questions, so I moved my replies to -questions.

> Anyway... I, for one, depend on packages. It literally takes days to 
> build something like Firefox on my (admittedly old) computer. I'm 
> surprised that package creation is such a low priority. Are there so 
> few people running FreeBSD on old hardware?

Well, FF eats memory.  Just running it on something older than that is
not going to be a pleasant experience.  I imagine most people using
Firefox are probably using fairly modern hardware, built within the
last 4 years or so.  

I built Firefox from ports on a 5 year old 1.6 GHz PC running 7.0-REL
in 256 Mb RAM.  It certainly didn't take _days_ to build.  From memory
I ran it overnight and it was done in the morning.  I would've killed
the build if it was still running when I woke up.

Anyway, Firefox is a pretty complicated piece of software.  Most ports
don't take anything like that long to build.  In any case, there are
packages of Firefox available, so it's not as bad as you make out!

ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/www/firefox-2.0.0.17,1.tbz
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/www/firefox-3.0.3,1.tbz

ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/www/firefox-2.0.0.17,1.tbz
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/www/firefox-3.0.3,1.tbz
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: freebsd installation order

2008-10-29 Thread andrew clarke
On Wed 2008-10-29 13:43:23 UTC+, pwn ([EMAIL PROTECTED]) wrote:

> immediately after the installation of FreeBSD what steps should be  
> performed by order
> 1 - Configuring the FreeBSD Kernel
> 2 - The Cutting Edge
> 3 - Updating FreeBSD
>
> Is this the proper order?
> there is some set of rules to be followed post-installation?
> since, i do not find any reference mentioning the order that should be  
> followed immediately after installation i would like to be informed if  
> possible what will be the proper order to facilitate the maintenance of  
> the operating system and the installation of new applications without  
> conflicts or problems with ports.

Re: Configuring the FreeBSD Kernel.  Depending on your hardware and
software requirements you may need to configure the supplied GENERIC
kernel, or perhaps even build your own custom kernel and configure
that.  These days I think many people just use the GENERIC kernel and
configure it from /boot/loader.conf.  For a desktop machine it may
just be a single entry to load a kernel module for your sound card.

If you do use a GENERIC kernel this has the advantage that you can run
freebsd-update whenever there are important security updates to the
kernel itself, and then those updates become immediately active after
a reboot.  There is no need to rebuild the kernel, and very little
downtime.

Re: The Cutting Edge.  In simple terms I would not bother with any of
this unless you want to be actively involved in the development of the
operating system.  If you just want something that works reliably,
stick with FreeBSD-RELEASE and use freebsd-update when you want to
upgrade your FreeBSD version (eg. from 6.3 to 6.4).  freebsd-update is
brilliant and really makes updating fairly painless.  Which leads me
to...

Re: Updating FreeBSD.  Every FreeBSD sysadmin should read this.  You
should know how to install packages from the command-line using
pkg_add (see the section called Installing Applications: Packages and
Ports), and if you want to use the Ports system, learn how to use
portsnap (another brilliant tool).

Also, if you're using the Ports system (to build and install software
from source code) I also recommend using portmaster, which isn't
talked about in the Handbook, but is leaps and bounds over portupgrade
(my personal opinion).

> thank you.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: freebsd-update "can't find update.FreeBSD.org"

2008-10-29 Thread andrew clarke
On Wed 2008-10-29 13:37:11 UTC-0600, Steven Susbauer ([EMAIL PROTECTED]) wrote:

> freebsd-update fetch fails if the default "ServerName
> update.FreeBSD.org" is not changed to "ServerName update1.FreeBSD.org"
> in /etc/freebsd-update.conf.

> thinkpad# freebsd-update --debug fetch
> Looking up update.FreeBSD.org mirrors... none found.

May be related to this:

http://lists.freebsd.org/pipermail/freebsd-questions/2008-October/183886.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: updating from 6.3 to 7, mirror problems

2008-10-30 Thread andrew clarke
On Thu 2008-10-30 22:38:58 UTC+1100, Alasdair Reed ([EMAIL PROTECTED]) wrote:

> I have been trying to update my system remotely using  freebsd-update.sh .

On 6.3 you should be using /usr/sbin/freebsd-update.  Can you ping
update1.freebsd.org?

$ ping -c 5 update1.FreeBSD.org
PING update1.FreeBSD.org (72.21.59.252): 56 data bytes
64 bytes from 72.21.59.252: icmp_seq=0 ttl=48 time=233.185 ms
64 bytes from 72.21.59.252: icmp_seq=1 ttl=48 time=233.034 ms
64 bytes from 72.21.59.252: icmp_seq=2 ttl=48 time=233.655 ms
64 bytes from 72.21.59.252: icmp_seq=3 ttl=48 time=234.310 ms
64 bytes from 72.21.59.252: icmp_seq=4 ttl=48 time=233.445 ms

--- update1.FreeBSD.org ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 233.034/233.526/234.310/0.446 ms

You might also like to try the --debug switch:

$ sudo /usr/sbin/freebsd-update --debug fetch
Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 6.3-RELEASE from update1.FreeBSD.org...
latest.ssl100% of  512  B  582 kBps
done.
Fetching metadata index...
344cfb64472cacb781688b5de744795f140233e84105c4100% of  225  B  234 kBps
done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 6.3-RELEASE-p5.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: updating from 6.3 to 7, mirror problems

2008-11-02 Thread andrew clarke
On Fri 2008-10-31 08:11:49 UTC+1100, [EMAIL PROTECTED] ([EMAIL PROTECTED]) 
wrote:

> localhost# /usr/sbin/freebsd-update --debug fetch
> Looking up update1.FreeBSD.org mirrors... none found.
> Fetching public key from update1.FreeBSD.org...
> fetch: http://update1.FreeBSD.org/6.3-STABLE/i386/pub.ssl: Not Found

Ah, this is not a DNS problem.

You are trying to run freebsd-update from 6.3-STABLE.  This isn't
supported.  From the freebsd-update(8) manpage:

"The FreeBSD Security Team only builds updates for releases shipped in
binary form by the FreeBSD Release Engineering Team, e.g., FreeBSD
6.1-RELEASE and FreeBSD 6.2-RC1, but not FreeBSD 6.2-STABLE or FreeBSD
7.0-CURRENT."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: BSDstats: New High Water Mark: 25 000+ Hosts Reporting In

2008-11-04 Thread andrew clarke
On Mon 2008-11-03 18:33:57 UTC-0400, Marc G. Fournier ([EMAIL PROTECTED]) wrote:

> For FreeBSD users, you just need to install /usr/ports/sysutils/bsdstats 
> to set things up.

I stopped using bsdstats after it caused my FreeBSD router to take too
long to boot up after a reboot.  If I recall correctly, I had
bsdstats_enable="YES" in /etc/rc.conf and after the reboot bsdstats
was called before ppp was able to start, so it couldn't connect to the
bsdstats server.  On the other hand this was a while ago and I am
going by memory, so I may be wrong about what happened or it was just
a coincidence.  At the time I was more interested in getting the
router running so I didn't really care for debugging what was going
on.  I realise this is a bit of a vague bug report, so feel free to
ignore it.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: gcc 3.4.4 -fno-gcse

2008-11-05 Thread andrew clarke
On Wed 2008-11-05 13:02:27 UTC+, Robin Becker ([EMAIL PROTECTED]) wrote:

> I'm trying to do some benchmarks for a new/improved version of CPython 
> and would like to know if gcc 3.4.4 as distributed with FreeBSD 6.1 
> handles the -fno-gcse option reasonably. I looked in the man page, but 
> don't see that option explicitly so perhaps the main thrust of the 
> optimisation approach is going wrong.

I don't know about FreeBSD 6.1's gcc 3.4.4, but the info page for gcc
3.4.6 (supplied with FreeBSD 6.3) explicitly mentions -fno-gcse.  It's
under the section "3.10 Options That Control Optimization".

$ info gcc option

will also find it.

Not sure if that helps you at all.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Glob error?

2008-11-07 Thread andrew clarke
On Fri 2008-11-07 15:13:03 UTC-0800, Steve Watt ([EMAIL PROTECTED]) wrote:

> % mkdir -p a/dir1/new a/dir1/cur
> % mkdir -p b/dir1/new b/dir1/cur
> % mkdir -p c/dir1/new c/dir1/cur
> % ls -ld */dir1/new
> drwxrwxr-x  2 steve  wheel  512 Nov  7 15:10 a/dir1/new/

What file system are you using?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


"Invalid address" running apps using wine-1.1.8,1

2008-11-10 Thread andrew clarke
Hi,

I'm getting an "Invalid address" error trying to run Windows apps
under WINE.  "wineconsole cmd" works OK though, and so does winefile.
The error seems to only occur with apps that aren't supplied with
WINE, eg.

C:\Program Files\Winamp>winamp.exe
wine: could not load L"C:\\Program Files\\Winamp\\winamp.exe": Invalid address

$ uname -a
FreeBSD blizzard.phoenix 6.3-RELEASE-p5 FreeBSD 6.3-RELEASE-p5 #0:
Wed Oct  1 05:34:19 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

$ pkg_info | grep wine
wine-1.1.8,1Microsoft Windows compatibility layer for Unix-like systems

Any ideas?

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD Media Center

2008-11-18 Thread andrew clarke
On Tue 2008-11-18 11:21:02 UTC-0500, Gary Hartl ([EMAIL PROTECTED]) wrote:

> I have an old laptop (Dell Inspiron 7500), P3 550mhz, 256mb ram 20 gig hdd.
> 
> I am wondering what the validity of putting FBSD on it running VLC or
> something like that feeding to my tv.

550 MHz will be a bit slow for playing DivX/XviD movies, especially if
they're high definition (beyond 640x480 approx).  Presumably Windows
is installed on it at the moment, so you can give the Windows version
of VLC a test run.

The RAM & HDD specs are fine.  Provided the laptop's integrated video
and networking is supported, you should be good to go.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD Media Center

2008-11-18 Thread andrew clarke
On Tue 2008-11-18 17:06:44 UTC-0500, michael ([EMAIL PROTECTED]) wrote:

>> 550 MHz will be a bit slow for playing DivX/XviD movies, especially if
>> they're high definition (beyond 640x480 approx).  Presumably Windows
>> is installed on it at the moment, so you can give the Windows version
>> of VLC a test run.
>>
>> The RAM & HDD specs are fine.  Provided the laptop's integrated video
>> and networking is supported, you should be good to go.
>
> Actually, an AMD k6-2 450 will play over 720 resolution divx. mplayer  
> with a proper cache setting and enough ram helps massively.

Ah, I use mplayer occasionally but never -cache setting.  What do you
use on the K6-2 450?

Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Running X without a videocard

2008-11-18 Thread andrew clarke
On Tue 2008-11-18 19:02:48 UTC-0500, Gary Hartl ([EMAIL PROTECTED]) wrote:

> I am running FBSD-stable 6.0 on some Sun Netra X1's so it is sparc64.
> There is no video card on these puppies.  But I seem to recall that we ran
> solaris X using WinAXE or VNC or something like that 
> 
> I'm wondering if it is possible to do the same with FBSD.

I use vncserver from the net/tightvnc port.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: preparing for an upgrade

2008-11-18 Thread andrew clarke
On Tue 2008-11-18 16:47:20 UTC-0700, Kelly Martin ([EMAIL PROTECTED]) wrote:

> With the release of FreeBSD 6.4 imminent, I'd like to prepare for an
> upgrade from FreeBSD 6.2 -> 6.4.

Have you considered using freebsd-update?  From memory, it supports 6.2.

> Please excuse my ignorance but in my mind here's what I plan to do
> when it's available:
> 
> 1. install / run the upgrade script using CD-ROM media to a 6.4
> GENERIC kernel, reboot
> 2. customize the kernel to my hardware (like I did in 6.2), reboot
> 3. portsnap fetch update (to get the latest ports tree for 6.4)
> 4. portupgrade -ai (to upgrade any outdated ports)

I don't think there will be any need to rebuild your ports after
upgrading from 6.2 to 6.4.  (The situation is different if you were
going from 6.2 to 7.1 though.)

> Will this work?
> 
> I'm a little confused about different versions of the ports tree. What
> I mean is, I keep updating my FreeBSD 6.2 ports tree and have never
> had any problems... it just works. I'm assuming the 6.4 ports tree is
> a little different and specific to 6.4?

No, there is only one ports tree shared between all FreeBSD versions.
If you already have an updated ports tree with a 6.2 installation, you
can keep using that with 6.4 (or even 7.x).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: freebsd-update and sources / custom kernel

2008-11-25 Thread andrew clarke
On Tue 2008-11-25 07:16:44 UTC+0100, Zbigniew Szalbot ([EMAIL PROTECTED]) wrote:

> I hope you can clear my doubts. When I use freebsd-update to update a
> machine with a custom kernel, do I need to fetch sources before I
> rebuild the kernel or are they fetched by freebsd-update utility?

freebsd-update will update the kernel sources on the condition that
the Components setting is configured correctly in freebsd-update.conf.
Normally you'd use:

Components src world kernel

Then after a successful update, if you're not using the GENERIC
kernel, you should rebuild the kernel with your custom settings.
After the new kernel is installed you should reboot the machine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: freebsd-update

2008-11-27 Thread andrew clarke
On Wed 2008-11-26 20:45:34 UTC-0800, gahn ([EMAIL PROTECTED]) wrote:

> i did "freebsd-update fetch" and i got message:
> 
> "No updates needed to update system to 6.3-RELEASE-p6"
> 
> what does that suppose to mean? My current system (this one is online) is p4.

Did you run "freebsd-update install"?

Did you reboot the machine after running the "install" command?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Temporarily blocking ports

2008-11-29 Thread andrew clarke
On Sat 2008-11-29 20:39:47 UTC+0100, Jos Chrispijn ([EMAIL PROTECTED]) wrote:

> Can someone hint me how I can block ports for let's say 30 minutes if  
> someone repeatedly tries to do a SSH login?
> I use ipfw as firewall...

security/sshguard-ipfw works well for me.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: documentation problem for times(3) man page

2008-12-01 Thread andrew clarke
On Mon 2008-12-01 09:51:46 UTC+0100, Viktor ??tujber ([EMAIL PROTECTED]) wrote:

> Hi. Half a year ago I started the following thread:
> http://lists.freebsd.org/pipermail/freebsd-questions/2008-April/172448.html.
> The subject was a documentation issue where a man page mismatched the
> actual system behavior.

Maybe the freebsd-doc mailing list is the place to discuss this?
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Uninstalling kde3 meta-port

2008-12-02 Thread andrew clarke
On Tue 2008-12-02 19:26:40 UTC+0530, Masoom Shaikh ([EMAIL PROTECTED]) wrote:

> > How would you guys uninstall a meta-port?
>
> can try `pkg_delete -a`

No Masoom, this is wrong advice.  pkg_delete(1) manpage:

 -a, --all
 Unconditionally delete all currently installed packages.

(Assuming you weren't trying to be "funny")
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [freebsd-questions] Looking @ upgrades mechanisms...

2008-12-02 Thread andrew clarke
On Tue 2008-12-02 00:41:58 UTC-0600, Javier Vasquez ([EMAIL PROTECTED]) wrote:

> I was reading chapter 4 of the handbook, as well as chapters 24 and
> 26...  If I got it clear, I pretty much might get the base system
> updated by using freebsd-update script.  Ports collection can get
> updated with portsnap, but that doesn't update neither the intalled
> ports, nor the installed packages.  To upgrade the installed ports,
> portmanager or portmaster or portupgrade can be used...  However only
> portupgrade can be used to upgrade packages, right?
> 
> Now, can something like "portupgrade -a -PP" to upgrade all packages
> without building a thing (might be that some don't get updated due to
> the lack of binary package yet, and in such case would dependencies be
> managed right)?

Right.

> More into how things work, as ports and pacakages are not part of the
> base systems, are they somehow associated to a particular release
> (most probably not)?  So that pretty much no matter the release, if
> packages and ports are kept up to date, they might be the same for all
> releases?

There are downloadable packages that are regularly built from the
latest ports tree.  There are different packages available for
different releases though (eg. 6.x vs 7.x, i386 vs amd64).

The theory goes that you can use i386 packages built for (for example)
6.4 on a 6.3 system.  Possibly all the way back to 6.0.  If you're
relying on prebuilt packages then ideally you should try to keep the
base system updated where possible.

> I'm asking these questions since I'm evaluating moving to BSD, but I
> want to avoid compiling as much as possible since my box is 800MHz
> piii celeron with just 32KB of cache and 512MB of ram, and for it
> source based distributions have proven to be too much to handle, so my
> intention would be to live with binary packages and updates/upgrades
> only...

Those specs should be fine if you're building "small" software such as
Squid, Apache, Samba, etc.  I build everything I need (http server +
http cache + mail server + spam filter + more) from source using a 1
GHz Pentium III with 256 Mb (using portmaster).

Firefox, GNOME or KDE would take a long time with 800 MHz.  But I
wouldn't really like to run those big apps at only 800 MHz either.

There's no reason why you can't install the larger software from
packages then just build the smaller stuff from source.  With
portupgrade -PP you're still going to have to keep your ports tree
updated (I use portsnap) so it's not a lot of extra effort to build
from source.

> Also if remaining under -STABLE, is all this possible?  Kind of
> understood that openoffice.org can't be installed with "pkg_add -r",
> so most probably if living under -STABLE automatic updates for
> openoffice.org won't show up...  So this kinds of answers one previous
> question about the packages been independent from the base system
> release, it looks like they aren't...

Not too sure what you're asking here, and I've never used -STABLE.
Keep in mind though that you can't use freebsd-update if you're using
-STABLE (AFAIK).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [freebsd-questions] Looking @ upgrades mechanisms...

2008-12-02 Thread andrew clarke
On Tue 2008-12-02 09:28:44 UTC+0100, Mel ([EMAIL PROTECTED]) wrote:

> Portupgrade -PP is detrimental for bandwidth. It's not really portupgrade's 
> fault (well, partially, it shouldn't offer the feature), because it will 
> quite often download Latest/foo.tbz, unpack it entirely and then say "oops, I 
> downloaded this useless package which is older or equal to what you have 
> installed". 

Yes, this happens.  -PP is not ideal for regular updates but it's
still useful for when you have a new FreeBSD install with no packages
installed, and want to get up and running quickly, grabbing the most
recent binaries of all your favourite ports instead of building them
all from source.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [freebsd-questions] Looking @ upgrades mechanisms...

2008-12-02 Thread andrew clarke
On Tue 2008-12-02 17:22:53 UTC+0100, Mel ([EMAIL PROTECTED]) wrote:

> > Yes, this happens.  -PP is not ideal for regular updates but it's
> > still useful for when you have a new FreeBSD install with no packages
> > installed, and want to get up and running quickly, grabbing the most
> > recent binaries of all your favourite ports instead of building them
> > all from source.
> 
> That's infinitely slower than pkg_add -r .

Hmm.  Yes.  I'm trying to remember why I did not like pkg_add -r.

On the other hand I may be imagining any preference I had towards
portupgrade -PP.

Sorry :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: freebsd-update through proxy with auth

2008-12-04 Thread andrew clarke
On Wed 2008-12-03 10:36:29 UTC+0200, DA Forsyth ([EMAIL PROTECTED]) wrote:

> How do I get freebsd-update to fetch through a proxy that requires 
> authentication?  I cannot find any options in the man pages.

freebsd-update is a /bin/sh shell script.  Looking at the source I can
see it uses /usr/bin/fetch, so it's probably just a matter of reading
the fetch(1) & fetch(3) manpages to get it to do what you want.

If all else fails, you might be able to hack the freebsd-update script
to use Wget instead of Fetch, but I doubt you'll need to go to that
much trouble.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cvs stupid question

2008-12-04 Thread andrew clarke
On Wed 2008-12-03 16:31:29 UTC+0100, Wojciech Puchar ([EMAIL PROTECTED]) wrote:

> export [EMAIL PROTECTED]:/home/ncvs
> cvs checkout -rRELENG_7 src
>
> waited over an hour, no files got fetched
>
> what i'm doing wrong?

Looks like the server is down:

$ export [EMAIL PROTECTED]:/home/ncvs
$ cvs checkout -rRELENG_7 src
ssh: connect to host anoncvs.FreeBSD.org port 22: Connection refused
cvs [checkout aborted]: end of file from server (consult above messages if any)

This works:

$ export [EMAIL PROTECTED]:/home/ncvs
$ cvs checkout -rRELENG_7 src
The authenticity of host 'anoncvs1.freebsd.org (216.87.78.137)' can't
be established.
DSA key fingerprint is 53:1f:15:a3:72:5c:43:f6:44:0e:6a:e9:bb:f8:01:62.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'anoncvs1.freebsd.org' (DSA) to the list of
known hosts.
cvs checkout: Updating src
U src/COPYRIGHT
U src/LOCKS
U src/MAINTAINERS
U src/Makefile
^Ccvs [checkout aborted]: received interrupt signal
$ Killed by signal 2.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread andrew clarke
On Sun 2009-10-04 15:15:05 UTC+0200, herbert langhans (herbert.raim...@gmx.net) 
wrote:

> I just compiled a nice, slim kernel on my laptop, but I dont want to
> carry all the kernel sources around there.
>
> Is it ok just to #rm the content of the /usr/src directory? And will I
> get it completely back from sysinstall or the FreeBSD-servers? Or is
> there a more elegant solution on FreeBSD?

This should be fine.

Since you've built a custom kernel you may want to keep a copy of
your kernel build config ("LINT") file, eg. /usr/src/sys/i386/conf/HOSTNAME.

Note that you can't use freebsd-update to patch a custom (non-GENERIC)
kernel.

You can restore the kernel source code by extracting the ssys.??
binaries (normally found in the /src/ directory, eg.
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.2-RELEASE/src/ )
using install.sh (found in the same directory).  Probably also with
sysinstall, but I don't recall the steps to do that.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread andrew clarke
On Sun 2009-10-04 16:29:08 UTC+0200, herbert langhans (herbert.raim...@gmx.net) 
wrote:

> Can you please tell me about the issue with freebsd-update. Does it mean if I 
> run:
> #freebsd-update fetch
> #freebsd-update install
> - it will overwrite my self compiled kernel? Good to know indeed! 

No, I suspect freebsd-update will simply refuse to patch it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: /etc/fstab + embedded spaces

2009-11-03 Thread andrew clarke
On Tue 2009-11-03 06:57:12 UTC-0500, carmel_ny (carmel...@hotmail.com) wrote:

> I was attempting to create this entry in the /etc/fstab file. It is to
> a WinXP machine.
> 
> //u...@bios/My Documents /laptop smbfs rw,noauto  0  0
> 
> It fails because 'fstab' does not allow embedded spaces in device
> names, not does it allow enclosing the name in quotes.

A workaround may be to run mount_smbfs from /etc/crontab (or perhaps
the root user's crontab), eg.

@reboot /usr/sbin/mount_smbfs -N "//u...@bios/My Documents" /laptop

or similar.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: /etc/fstab + embedded spaces

2009-11-03 Thread andrew clarke
On Tue 2009-11-03 14:07:37 UTC-0600, Adam Vande More (amvandem...@gmail.com) 
wrote:

>windows path's have alternate eg c:\Test~1

Yes, files and paths may all have an MS-DOS 8.3 equivalent (I think
this option can be disabled in NTFS), however Windows SMB shares do
not.

"\\host\My Documents" is valid, but not "\\host\MYDOCU~1".
___
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 understanding basic FreeBSD concepts (ports, updates, jails)

2009-11-08 Thread andrew clarke
On Sat 2009-11-07 19:19:52 UTC-0800, Randi Harper (ra...@freebsd.org) wrote:

> Don't bother with any of that. Just use portsnap. It's also part of
> base, and was written by the same person that wrote freebsd-update.
> It's lovely and much faster, although some people may argue with me on
> that.

> For your system, use freebsd-update.

Seconded.  Portsnap and freebsd-update are a cinch to use.

> For your ports tree, use portsnap. For installed ports, use
> portupgrade or portmanager. I'm more fond of portmanager, but it seems
> portupgrade has many more users. Both portupgrade and portmanager are
> available in the ports tree, not base.

I use portmaster and find it easy to use.  Not familiar with portmanager.
/usr/ports/UPDATING will often provide portmaster commands where
necessary and these can useful for upgrading some ports.  Maybe it's
easy to translate those commands to their equivalent portmanager commands.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Can I prevent freebsd-update from installing kernel debug files

2009-11-12 Thread andrew clarke
On Wed 2009-11-11 12:35:55 UTC-0600, Jason Fried (r...@churchofbsd.org) wrote:

> I have a fairly old install and not much room on my ROOT is there a way to
> prevent freebsd-update from installing ".symbols" files.

In /etc/freebsd-update.conf:

IgnorePaths /boot/kernel/*.symbols

>From reading the man page I get the impression this should work.  I
haven't tested it though.
___
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"


Possible workaround for 'BTX halted' error

2009-11-22 Thread andrew clarke
Hi,

I have an old 200 MHz Pentium Pro.  A slow machine by today's
standards but my intention was to put a minimal installation of
FreeBSD 7.2 on it (ultimately installing to a CF or SD memory card
using an IDE adapter), turning it into a very basic home office
firewall and not much else.

One of the problems I encountered (which I've also encountered on
other old PCs) was the dreaded "BTX halted" error when attempting to
boot from the FreeBSD install CD:

  AMIBIOS (C)1992 American Megatrends, Inc.
  (C) 1992 - 1998 Intel Corporation.
  BIOS Version 1.00.18.CS1
  Intel Corporation VS440FX Motherboard
  Serial Number: M04090465

  0131072 KB

  Press  Key if you want to run SETUP

  Hard Disk  0 Installed QUANTUM FIREBALL EL2.5A

  CD Loader 1.2

  Building the boot loader arguments
  Looking up /BOOT/LOADER... Found
  Relocating the loader and the BTX
  Starting the BTX loader
  
  BTX loader 1.00  BTX version is 1.01
  
  int=  err=  efl=00010246  eip=0002c85b
  eax=  ebx=  ecs=  edx=
  esi=  edi=00040320  ebp=00093ff8  esp=00093fc4
  cs=002b  ds=0033  es=0033fs=0033  gs=0033  ss=0033
  cs:eip=f7 f1 85 db 89 c1 89 45-94 74 08 8b 55 18 89 32
 89 7a 04 89 4d 98 8b 45-94 8b 55 98 83 c4 6c 5b
  ss:esp=91 01 00 00 dc df 09 00-00 00 00 00 00 00 00 00
 00 00 00 00 20 00 20 00-60 01 20 00 0b 00 20 00
  BTX halted

At this point the machine freezes.  Ctrl+Alt+Del won't reset it.

I've seen the same bug crop up occasionally for more than a few years
now (since FreeBSD 5.x, I think).  Presumably there's no urgency to
fix it.

Until now the workaround I used was to boot from floppy diskettes (all
five of them) made from the images in the \floppies directory on the
install CD.  The FreeBSD installer would then operate normally and
install from the CD.  But this is frustrating as diskettes are
obviously terribly slow and often unreliable.

Today by accident I found a much simpler workaround.  There's a
freeware program called PLoP Boot Manager that can be used to boot
from CD.  I burnt plpbtinnoemul.iso (from plpbt-5.0.4.zip) to CD on
another PC then got the Pentium Pro to boot from it.  When I reached
the boot menu I took out the PLoP CD, replaced it with the FreeBSD 7.2
CD and told PLoP to boot from that.  FreeBSD 7.2 then proceeded to
boot from CD with no apparent problems.

I've successfully booted FreeBSD 7.2, 7.0, 6.2, 5.4 & 5.3 from CD on
this machine using the PLoP CD as a boot loader.  Also a recent
version of the FreeNAS LiveCD.  PLoP isn't required to boot the
FreeBSD 4.10 CD on this machine, but the 4.10 CD causes it to freeze
very early on with no messages displayed if I do use PLoP to boot it.

http://www.plop.at/en/bootmanager.html

Apologies if this is long-winded, but I haven't seen this information
anywhere else, so I thought I'd pass it on!  I hope it helps someone.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Wanting to buy a laptop w/ FreeBSD, AND...

2009-12-01 Thread andrew clarke
On Tue 2009-12-01 10:00:16 UTC+0100, Polytropon (free...@edvax.de) wrote:

> > ?4).? WordPerfect 5.1? 
> 
> Could be a problem to run it natively.

WordPerfect 5.1 will run under the DOSBox emulator.

http://www.dosbox.com/

/usr/ports/emulators/dosbox in the FreeBSD Ports tree.
___
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: 6.3 uname -a weirdness

2009-12-03 Thread andrew clarke
On Thu 2009-12-03 14:46:26 UTC+0100, Andrea Venturoli (m...@netfence.it) wrote:

> Now "uname -a" reports 6.3p13, although "cat /usr/src/UPDATING" gives:
> 
> ...
> 20091203:   p14 FreeBSD-SA-09:15.ssl,
> FreeBSD-SA-09:17.freebsd-update
> Disable SSL renegotiation in order to protect against a serious
> protocol flaw. [09:15]
> 
> Fix permissions in freebsd-update in order to prevent leakage of
> sensitive files. [09:17]
> ...

>From what I understand the version number compiled into the kernel is
retrived from /usr/src/sys/conf/newvers.sh at build time.  Maybe one
of the developers forgot to update this file to p14 for FreeBSD 6.3.
Or perhaps newvers.sh is only updated when the kernel is modified.
But the latter theory does not match my experience on the FreeBSD 7.2
machine I run here:

1:52 ozzmo...@blizzard [~]grep -v # /usr/src/sys/conf/newvers.sh | head 

TYPE="FreeBSD"
REVISION="7.2"
BRANCH="RELEASE-p5"
...

Here, newvers.sh was modified only a few hours ago when I ran
freebsd-update to upgrade from 7.2-REL-p4 to 7.2-REL-p5:

1:58 ozzmo...@blizzard [~]touch x
1:59 ozzmo...@blizzard [~]ls -l /usr/src/sys/conf/newvers.sh x
-rw-r--r-- 1 root wheel3795 2009-12-03 21:24 
/usr/src/sys/conf/newvers.sh
-rw-r--r-- 1 ozzmosis ozzmosis0 2009-12-04 01:59 x

> I think the above does not affect the kernel;

Yes, I believe ihis is correct for the recent security patches for
7.2.  I saw no kernel modifications (so presumably no need to reboot
the machine).

>  in fact I recompiled it just to be able to check the OS version with
>  uname. Just curious on whether this is normal...

I wonder if the FreeBSD developers would consider it worthwhile to
make it a bit easier to find out what "patch level" the system is at.

"uname -a" only reflects the kernel patch level.  I don't think
there's an unambiguous way to determine the userland patch level.
Most Linux distros use /etc/issue.  Maybe FreeBSD could have something
like that.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


tcsh backtick/quote bug on FreeBSD 7.2

2009-12-05 Thread andrew clarke
Hi,

I just stumbled across a bug in the version of tcsh supplied with
FreeBSD 7.2.

$ uname -a
FreeBSD blizzard.phoenix 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct  2 
12:21:39 UTC 2009 
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
$ which tcsh
/bin/tcsh
$ tcsh --version
tcsh 6.15.00 (Astron) 2007-03-03 (i386-intel-FreeBSD) options 
wide,nls,dl,al,kan,sm,rh,color,filec
$ tcsh -f
> "`"
Unmatched `.
Segmentation fault (core dumped)
$

Regular tcsh isn't in the ports tree, although there is a modified
version called tcsh-bofh.  It's apparently based on an older version
of tcsh and is not vulnerable.

$ /usr/local/bin/tcsh --version
tcsh 6.12.00 (Astron) 2002-07-23 (i386-intel-FreeBSD) options
8b,nls,dl,al,rh,color,filec
$ /usr/local/bin/tcsh -f
> "`"
Unmatched `.
>

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: 'X' vs. 'Mouse'

2009-12-11 Thread andrew clarke
On Fri 2009-12-11 07:30:01 UTC-0500, Carmel (carmel...@hotmail.com) wrote:

> It is really hard to push the merits of an operating system when you
> have to give detailed instructions to the potential end user on how to
> get a "mouse" to work, when all they have to do in a Win32 based system

Last time I had X working was in FreeBSD 6.3, with no dramas.  Things
may have changed a bit since then, but the general impression I get is
that most of Xorg's design decisions are made by Linux developers, and
so folks using Xorg in FreeBSD may have to put up with a few
compromises to get it to work reliably.

To be fair to FreeBSD, I don't think you can really call this as a
fault of the OS since Xorg is not part of FreeBSD.

> is plug it in. I really cannot fathom a seven year old having to modify
> an XML document to facilitate their playing a "How to Spell" CD,
> assuming that they could even get the CD operational.

I don't believe FreeBSD is intended to be used (let alone
administered) by children.  There are Linux distros better suited to
children.  Edubuntu springs to mind.  Ubuntu is pretty much
plug-and-play & point-and-click on most PCs made in the last few
years.  Certainly no XML editing required to get Xorg working.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: startx and xinit under FreeBSD8

2009-12-12 Thread andrew clarke
On Fri 2009-12-11 16:57:06 UTC-0500, Steven Friedrich (free...@insightbb.com) 
wrote:

> I installed FreeBSD to another partition, so I could check it out.
> I selected All sources and binaries and KDE4.
> 
> When I tried startx, it complained that it didn't exist.
> It's just a script, so I copied it over from my 7.2p5 partition.
> Now it complains that xinit doesn't exist.
> 
> Why didn't these two get laid-down by the install??

The dependencies for KDE4 probably don't go as far as requiring an X
server.  Some machines run headless and so don't require an X server
(what startx runs) to be installed to run X apps.
___
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: slow clock on FreeBSD 7.2 on vmware

2009-12-12 Thread andrew clarke
On Sat 2009-12-12 12:06:18 UTC-0500, Robert Fitzpatrick (rob...@webtent.com) 
wrote:

> pgsql# cat /boot/loader.conf
> kern.ipc.semmni=32
> kern.ipc.semmns=512
> hint.apic.0.disabled=1

According to the loader.conf man page these should all be in the format:

kern.ipc.semmni="32"
kern.ipc.semmns="512"
hint.apic.0.disabled="1"

I don't know if this matters.

I'm not sure hint.apic.0.disabled is valid for 7.2.  sysctl -a doesn't
list this variable on my machine.  Maybe it's only available on some
machines.

> The only way I'm able to keep the clock up to date is to sync with
> an Internet time server regularly. Anyone have an idea how fix this
> issue?

Can you use ntpd?

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: (no subject)

2009-12-23 Thread andrew clarke
On Wed 2009-12-23 12:05:40 UTC-0700, Modulok (modu...@gmail.com) wrote:

> Is there a software method (not a microwave oven) to destroy a CD-R?
> Something like:
> 
> dd if=/dev/random of=/dev/acd0?
> 
> Obviously the above doesn't work, but the idea is there.

I suspect most CD burners are designed to disallow overwriting of data
already written to a CD-R.  Otherwise the software method would
already exist and you'd see lots of people treating CD-Rs as
rewritable discs.  Which they aren't.

Personally I'd physically destroy the disc using whatever method you
prefer, eg. removing the label with steel wool, or disintegrate the
disc with a shredder.
___
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"


pkgtools and xz compressor

2009-12-31 Thread andrew clarke
Hi,

I notice FreeBSD 7.2's pkg_add, pkg_create, etc don't have support for
the xz compressor, evidently due to lack of support for the xz format
in bsdtar.  Does bsdtar support xz in FreeBSD 8.0?  Failing that, is
xz support for the pkgtools something being looked at in future?

xz's compression ratios tend to be much better than bzip2's, eg.

-rw-r--r-- 1 root wheel 27360899 2009-12-05 03:20 samba-3.0.37,1.tbz
-rw-r--r-- 1 root wheel 16672892 2010-01-01 12:15 samba-3.0.37,1.tar.xz

Happy new year to FreeBSD users worldwide!

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD 2.0.5 Release

2010-01-04 Thread andrew clarke
On Mon 2010-01-04 20:32:54 UTC+0800, Paul Shi (shih...@hkusua.hku.hk) wrote:

> I am looking for a FreeBSD release which is most similar to 4.4 BSD-Lite and
> I chose FreeBSD 2.0.5, the oldest release since 4.4 BSD-Lite. However, after
> downloading iso file from archive
> 
> ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/ISO-IMAGES/
> 
> and burning to CDROM, it still will not boot from CDROM. The burning process
> should be fine since I just got it correctly as some of you may be aware. So
> I wondering if it is possible that the ISO file has been broken. Is there
> any one who maintains older archive know the validity of ISO file. Thank you
> very much!

I don't think the very early releases available on CD are bootable.
Not many PCs in the mid-1990s supported booting from CD.  CD-ROM
drives weren't very common and those that did exist often had
non-standard interfaces that required special drivers to work - which
meant the BIOS couldn't see them to boot from them.

To install FreeBSD 2.x, if I recall correctly you need to write the
FreeBSD diskette images (in the /floppies/ directory) to diskettes,
then boot from the first install diskette, while having the
installation CD in the CD drive.  You may need to RTFM a bit to get
this working.

ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/2.0.5-RELEASE/INSTALL

(AFAIK it's still possible to use this technique to do a network
install of FreeBSD 8.x, if you don't have a working CD-ROM drive.)

The ISO for FreeBSD 3.x is probably bootable.  I know the 4.x ISO is.

It wouldn't surprise me if FreeBSD 2.0.5 fails to boot correctly on
modern hardware.  You may need to use older hardware, or an emulator.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: OpenBSD -> FreeBSD migration

2008-04-20 Thread andrew clarke
On Sun 2008-04-20 15:59:14 UTC-0400, Andrew Wright ([EMAIL PROTECTED]) wrote:

>   - it appears that FreeBSD and OpenBSD use the same partition
> table format.  Is this true?  If so, I can potentially avoid
> rebuilding an entire disk if I am right that ...
>   - FreeBSD can mount and read OpenBSD's version of the 4.2 BSD
> filesystem implementation

My understanding is that the second ISO image of FreeBSD (eg.
7.0-RELEASE-i386-disc2.iso) is a "Live CD".  That should enable you to
boot FreeBSD from CD and attempt to mount the file system (read-only
or read-write) that your OpenBSD installation lives on.

>   If both of these are true, I can simply install FreeBSD over
>   top of the OpenBSD /, /var and /usr partitions, and then be
>   able to mount the old /home.  Is this something people do?

I think prior to the FreeBSD install you would want to erase all files
in /, /var and /usr to remove any cruft that would be otherwise left
over from the previous OpenBSD installation.

Maybe I'm paranoid, but I would be wary of file system reliability
between two OSes, especially on a production system.  On the other
hand maybe there is someone reading this who is successfully dual
booting FreeBSD and OpenBSD and sharing /home that may want to comment
further.  Failing that, you could do some testing on a spare PC or in
a VM.

I can't comment on the dump/restore or Linux compatibility.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Firefox plugins from Ports [was Re: question about "gnash" or "kde-gnash"]

2008-04-20 Thread andrew clarke
On Sun 2008-04-20 08:16:51 UTC+0100, Matthew Seaman ([EMAIL PROTECTED]) wrote:

> xpi-noscript is even better IMHO.  Blocks flash, javascript and all
> forms of embedded media.  Will remember the sites where you *do* want
> that stuff, or it will let you turn it on temporarily.  It's in ports:
> www/xpi-noscript  Not guaranteed to block every advert, but the ones it
> does let through will be relatively inoffensive.

For advert blocking there is www/xpi-adblock_plus.

But my main reason to responding to this post is because I'm wondering
what the pros and cons are of installing Firefox plugins from the
Ports tree, versus installing them directly from within Firefox itself.

I assume that plugins installed from Ports are activated for all users
and cannot be disabled by the user, unless they run pkg_delete.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Install CVsup

2008-04-21 Thread andrew clarke
On Mon 2008-04-21 15:27:11 UTC+0800, Ruel Luchavez ([EMAIL PROTECTED]) wrote:

> my freebsd server is version 6.2, I want to install cvsup and this is what i
> type in my box:
> 
> cd /usr/ports/net/cvsup-without gui
> make install
> 
> ..but during its process i allways has time-out connection then it ends up..

17:50 [EMAIL PROTECTED] [/usr/ports/net/cvsup-without-gui]make fetch
===>  Vulnerability check disabled, database not found
=> cvsup-snap-16.1h.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from 
ftp://ftp.FreeBSD.org/pub/FreeBSD/development/CVSup/snapshots/.
cvsup-snap-16.1h.tar.gz   100% of  420 kB  113 kBps

It seems to fetch the distfile fine here.  But you should probably
look at using "csup" instead.  It is functionally equivalent to
cvsup-without-gui but rewritten in C.  It should be in the base system
on FreeBSD 6.2 (or newer) under /usr/bin.

You may also want to look at Portsnap (which should be in the base
system at /usr/sbin/portsnap).  I prefer it to csup.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Looking up portsnap.FreeBSD.org mirrors... none found.

2008-04-21 Thread andrew clarke
I have serveral FreeBSD machines on my home network and was wondering
why Portsnap failed to find any mirrors on some but not others.  I had
a look at the /usr/sbin/portsnap script to find out what it is doing.
The command it calls to search for mirrors is:

host -t srv _http._tcp.portsnap.freebsd.org

resulting in:

;; connection timed out; no servers could be reached

After a bit of investigating it turns out that on the machines where
it failed, /etc/resolv.conf was configured to use my D-Link DSL-504T
ADSL modem/router's internal nameserver for DNS lookups.  Changing
resolv.conf to instead point directly at my ISP's nameservers solved
the problem.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Looking up portsnap.FreeBSD.org mirrors... none found.

2008-04-22 Thread andrew clarke
On Tue 2008-04-22 07:40:38 UTC+1000, andrew clarke ([EMAIL PROTECTED]) wrote:

> I have serveral FreeBSD machines on my home network and was wondering
> why Portsnap failed to find any mirrors on some but not others.  I had
> a look at the /usr/sbin/portsnap script to find out what it is doing.
> The command it calls to search for mirrors is:
> 
> host -t srv _http._tcp.portsnap.freebsd.org
> 
> resulting in:
> 
> ;; connection timed out; no servers could be reached
> 
> After a bit of investigating it turns out that on the machines where
> it failed, /etc/resolv.conf was configured to use my D-Link DSL-504T
> ADSL modem/router's internal nameserver for DNS lookups.  Changing
> resolv.conf to instead point directly at my ISP's nameservers solved
> the problem.

Just a short update to this.  The DSL-504T runs embedded Linux, using
dproxy as a caching name server.  So it would as though dproxy does
not support SRV record lookups.

Interestingly, dproxy isn't in the FreeBSD Ports tree.

http://www.dlink.com.au/Products.aspx?Sec=1&Sub1=1&Sub2=2&PID=49
http://dproxy.sourceforge.net/
http://en.wikipedia.org/wiki/SRV_record
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Crontab @reboot directive

2008-04-22 Thread andrew clarke
On Tue 2008-04-22 12:34:12 UTC+0200, Zbigniew Szalbot ([EMAIL PROTECTED]) wrote:

> If I want to start a program at every system reboot and the program should
> not be started by root, is it enough for me to edit a users crontab with
> the following directive?
> 
> @reboot /path/to/file.sh

Yes.  This is how I start fetchmail after a reboot:

@reboot /usr/local/bin/fetchmail -d 120
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: BSD Computers

2008-04-22 Thread andrew clarke
On Tue 2008-04-22 17:32:17 UTC+0200, Roland Smith ([EMAIL PROTECTED]) wrote:

> On Mon, Apr 21, 2008 at 09:58:29PM +0200, Wojciech Puchar wrote:
>
> >> FreeBSD, like all open source systems (that I know of), publishes a 
> >> hardware compatibility list [1] that you can consult to see if the 
> >> hardware you intend to purchase is supported.  In general, most major 
> >> manufacturers' systems will work fine, although the newest systems can 
> >> sometimes be problematic.
>
> > most desktop/servers. not laptops. all lenovo/ibm works fine but this is 
> > exception. most laptops can run only windoze.
> 
> I've got a secondhand Dell Latitude C610 that runs FreeBSD perfectly.
> Before that I had a Compaq Armada M700 that also worked perfectly.

I have an old secondhand Asus L8400 that runs GNOME under FreeBSD 7.0
surprisingly well, given its age.  Not sure about the power management
features or the infrared port, though.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Crontab @reboot directive

2008-04-22 Thread andrew clarke
On Tue 2008-04-22 16:34:56 UTC-0400, Gerard ([EMAIL PROTECTED]) wrote:

> > @reboot /usr/local/bin/fetchmail -d 120
> 
> Is there a specific reason that you choose to do that rather than
> starting it by adding: fetchmail_enable="YES" to the /etc/rc.conf file?

Since I have root access on that machine, yes I could do that.  But
for my particular setup I couldn't see any advantage.  Plus, the less
I need to edit system-wide config files, the better, I think.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Crontab @reboot directive

2008-04-22 Thread andrew clarke
On Tue 2008-04-22 17:03:41 UTC-0400, Robert Huff ([EMAIL PROTECTED]) wrote:

> >  > > @reboot /usr/local/bin/fetchmail -d 120
> >  > 
> >  > Is there a specific reason that you choose to do that rather than
> >  > starting it by adding: fetchmail_enable="YES" to the /etc/rc.conf file?
> >  
> >  Since I have root access on that machine, yes I could do that.  But
> >  for my particular setup I couldn't see any advantage.  Plus, the less
> >  I need to edit system-wide config files, the better, I think.
> 
>   I'm confused: how is /etc/rc.conf any more a "system-wide
> config file" than /etc/crontab?

I run fetchmail from the user crontab (edited with "crontab -e"), not
/etc/crontab.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: tarfs progress?

2008-04-25 Thread andrew clarke
On Fri 2008-04-25 22:56:53 UTC+0200, David Naylor ([EMAIL PROTECTED]) wrote:

> Has there been any progress on the tarfs, or any place one can find the 
> current sources for it?  

Quoting http://www.googlebit.com/doku.php?id=tarfs :

"tarfs is a tar file system implementation for FreeBSD. The current goals are:

* Support all standard read-only operations, just like a real file system.
* Support large tar files (several gb's)
* Use minimal memory
* Allow using tar file as a root file system
* Fast enough to actually use

Here's the current state of things:

* Mounts tar files (after using mdconfig to create a device)
* Can do most operations on the fs
* Supports large tar files
* Uses a relatively small amount of memory - proportional to number of 
files/dirs
* Fairly fast

Here's the current issues still needing resolution:

* No `..' directory in root of mounted tar file system
* Locking issues regarding `..' in subdirs off root of fs
* No block/char special device support. Needed?
* Needs a directory cache (like dirhash maybe?)
* Have not yet tried as a root fs

Snapshot of the current code can be found here: tarfs-2008-01-20.tar.gz"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: tarfs progress?

2008-04-25 Thread andrew clarke
On Sat 2008-04-26 07:06:34 UTC+1000, andrew clarke ([EMAIL PROTECTED]) wrote:

> On Fri 2008-04-25 22:56:53 UTC+0200, David Naylor ([EMAIL PROTECTED]) wrote:
> 
> > Has there been any progress on the tarfs, or any place one can find the 
> > current sources for it?  

Also "archivemount" may be worth a look.  You can probably get it
working using the sysutils/fusefs-libs port.

http://fuse.sourceforge.net/wiki/index.php/ArchiveFileSystems
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 'rm' Can not delete files

2012-02-08 Thread andrew clarke
On Tue 2012-02-07 23:17:16 UTC+, RW (rwmailli...@googlemail.com) wrote:

> On Tue, 07 Feb 2012 22:14:56 +
> Matthew Seaman wrote:
> 
> > ls -1 | xargs rm
> 
> but be aware that that wont work for filenames with spaces.

In addition, I don't believe it solves the OP's initial problem of the
argument list being too long!  You'd probably need to use the xargs -n
switch here.

The above will also try to 'rm' directories, which won't work.

Instead I would use 'find':

find . -type f -depth 1 -delete

This will also work with filenames with spaces.

Or the scenic route, using xargs, with one rm per file (slower):

find . -type f -depth 1 -print0 | xargs -n1 -0 rm -f

(The "scenic route" is useful if you want to do something else with
the files instead of deleting them with rm.)

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: 'rm' Can not delete files

2012-02-10 Thread andrew clarke
On Fri 2012-02-10 16:12:06 UTC+, Matthew Seaman 
(m.sea...@infracaninophile.co.uk) wrote:

> > In addition, I don't believe it solves the OP's initial problem of the
> > argument list being too long!  You'd probably need to use the xargs -n
> > switch here.
> 
> Go and read the xargs(1) man page carefully.  xargs is specifically
> designed to avoid arglist overflows.

Ah, I grepped for 'limit' and 'overflow', didn't see anything
applicable, and didn't notice the -s switch.  That it avoids arglist
overflows should perhaps be written more obviously in the man page
(though I'm not sure how...)

> >> Or the scenic route, using xargs, with one rm per file (slower):
> >>
> >> find . -type f -depth 1 -print0 | xargs -n1 -0 rm -f
> >>
> >> (The "scenic route" is useful if you want to do something else with
> >> the files instead of deleting them with rm.)
> 
> In this case, if you're going to call rm repeatedly with only one arg,
> then xargs is pretty pointless.  You might as well do:
> 
>find . -type f -depth 1 -exec rm -f '{}' ';'
> 
> but let's not leave people in any doubt that this is not the best option.

True, but I can never remember the syntax for -exec.  :-)

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ps, clang and make variables

2012-03-31 Thread andrew clarke
On Sat 2012-03-31 20:32:04 UTC+1000, R Skinner 
(ro...@herveybayaustralia.com.au) wrote:

> Stupid question, but I need to clarify and make sure I'm right here: 
> what should I see as the running process if clang is compiling? ATM I 
> see cc1plus.

clang for C, clang++ for C++

> I'm trying to set CC and friends make variables to clang for a build, 
> but it doesn't appear to be 'sticking'. It seems to change the shell env 
> to bash, but that shouldn't be the problem. So I'm trying to work out 
> whats up.

I have this in /etc/make.conf:

.include "/etc/make.clang.conf"

and /etc/make.clang.conf itself:

.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang -E
.endif
# Don't die on warnings
NO_WERROR=
WERROR=
# Don't forget this when using Jails!
NO_FSCHG=

This is from http://wiki.freebsd.org/BuildingFreeBSDWithClang which
talks about building the FreeBSD kernel & base, but it's also used by
the Ports system.

Another option is to set CC & CXX explicitly:

cd /usr/ports/*/foobar
make CC=clang CXX=clang++
  
> FWIW I'm trying to build libreoffice with clang as it doesn't build, or 
> more accurately doesn't build and test correctly. It doesn't appear to 
> honor the CC variables (CC, CXX, CPP, etc). Worth a shot anyway :)

I've never tried building LibreOffice at all, let alone with Clang,
but apparently it can be done:

http://nabble.documentfoundation.org/libreoffice-clang-success-td3788899.html

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Follow up....Re: Updating for the FreeBSD Security Advisory FreeBSD-SA-12:01.openssl

2012-05-03 Thread andrew clarke
On Thu 2012-05-03 19:17:05 UTC+0200, Leslie Jensen (les...@eskk.nu) wrote:

> After a reboot my system now has the following label
> 
> FreeBSD 8.2-RELEASE-p3 #0
> 
> How come it downgrades the label from p6 to p3 when upgrading to p7.

This is a FAQ.  There's a thread about it here:

http://lists.freebsd.org/pipermail/freebsd-questions/2010-June/217031.html

Short answer: The patch level (-p3) displayed by uname -r after a
reboot will not change if freebsd-update has not touched the kernel.

As far as I know there haven't been any patches to the 8.2-REL kernel
since -p3.

/usr/src/sys/conf/newvers.sh is always updated by freebsd-update when
there is an update. (Although now that I think about it that might not
be true if you don't have the kernel sources installed?)

Not exactly intuitive.

Several Linux distros have a file named /etc/issue that shows the
distro name and version. Perhaps this or something similar could be
provided in future FreeBSD releases and updated by freebsd-update.

$ cat /etc/issue
Ubuntu 12.04 LTS \n \l

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Follow up....Re: Updating for the FreeBSD Security Advisory FreeBSD-SA-12:01.openssl

2012-05-03 Thread andrew clarke
On Thu 2012-05-03 20:48:17 UTC+0200, Leslie Jensen (les...@eskk.nu) wrote:

> > Short answer: The patch level (-p3) displayed by uname -r after a
> > reboot will not change if freebsd-update has not touched the kernel.

...

> I have read similar answers and was partly aware of this.
> 
> But I was just curious to why.
> 
> I'll accept it and let a kernel rebuild be a part of my updates.

If you're running the GENERIC kernel then you're only creating extra
work for yourself by rebuilding it for the sole purpose of having
uname -r show the "correct" patchlevel...

On the other hand if you're running a custom kernel then you only need
to rebuild the kernel when freebsd-update touches the kernel sources.
I don't recall the kernel was touched at all with the most recently
-p7 patch (openssl), for example, so there's absolutely no need to
rebuild it.

Apologies if this was already obvious.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ls-F tcsh built-in command

2012-05-20 Thread andrew clarke
On Thu 2012-05-17 15:17:13 UTC+0200, Polytropon (free...@edvax.de) wrote:

> Search for "LS_COLORS" in the environment variables section
> of "man csh". However, I've always been satisfied with using
> $LSCOLORS as "ExGxdxdxCxDxDxBxBxegeg". :-)

Before I discovered $LSCOLORS I used gls from
/usr/ports/sysutils/coreutils and had an alias in .tcshrc:

alias ls "gls --time-style=long-iso --color=auto"

I still use this in Linux.

In FreeBSD I use /bin/ls:

setenv LSCOLORS "ExGxFxdxCxDxDxhbadExEx"
alias ls 'ls -D "%Y-%m-%d %H:%M:%S"'

The -D stuff is to display ISO 8601 style timestamps like GNU ls's
--time-style=long-iso format, eg:

-r-xr-xr-x  1 root  wheel  12612347 2011-09-28 19:13:57 /boot/GENERIC/kernel

I don't know if this helps the OP. :-)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freebsd-update housekeeping?

2011-02-27 Thread andrew clarke
On Fri 2011-02-25 17:26:52 UTC+, Neil Long (n...@cymru.com) wrote:

> Just noticed how large /var/db/freebsd-update has grown on a box I
> just upgraded from 7.3 to 7.4 (but I can't recall when I started
> using it).
> 
> Is there a recommended approach or just rm the directory if I have
> no need to roll it back?

Before I upgraded to 7.4-REL I used rm -rf /var/db/freebsd-update/ as
my /var is "only" 1 GB and was running low on free space.  Doing this
should be no different to a fresh install where this directory is
initially empty anyway.

Of course if you're still wary you could make a tarball backup of that
directory somewhere else before emptying it out.

IIRC, freebsd-update will complain if /var/db/freebsd-update/ doesn't
exist, so you may need to mkdir it after using rm -rf.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: A possibly odd upgrade question

2011-05-04 Thread andrew clarke
On Wed 2011-05-04 12:50:05 UTC-0400, Chris Brennan (xa...@xaerolimit.net) wrote:

> I have an old PIII running FreeBSD7.3 currently, ports is all kinds of
> screwed up, when I did my first cross-version upgrade from 6.x to 7.x, I
> didn't know I had to rebuild ports, I subsequently upgrades though every
> version upto to 7.3. Ports is still FUBAR, half of them no longer work. So
> my question is this, now I know for the future to upgrade ports after every
> upgrade, is it safe to nuke /usr/local (excluding  /usr/local/home), rebuild
> world/kernel for 8.2 and start with a fresh ports tree?

You only need to rebuild all your ports after a "major" FreeBSD
upgrade, eg. 6.x to 7.x, or 7.x to 8.x.

Deleting /usr/local is a bit of an extreme step.  You can run
pkg_delete -av to delete all installed ports.

Starting with a fresh ports tree is probably only necessary if your
ports tree is very out of date.  Only because if it's stale it could
take longer to update it with portsnap than to start the tree from
scratch.  Of course deleting an existing ports tree can also take a
while, too.

You shouldn't need to build world & kernel for 8.2 unless you need a
custom kernel or something else peculiar to your setup.  I have no way
of knowing, but I suspect most FreeBSD users just use freebsd-update
these days to install the premade binaries of world & kernel.

> I thought about a clean reinstall but this machine cannot boot from
> USB, both CD-ROM's are dead and have been disconnected to use IDE
> hard-drives and the floppy driver is dead as well.

You could put the boot HDD into another machine with a working CD-ROM,
install it onto that, then put the HDD back into the P3 when you're
done.  There's no requirement that the installation needs to be done
on the same machine it's going to ultimately boot from.

Do you actually need to upgrade to 8.x?  I'm not sure there's much to
gain from putting 8.x on an old P3...

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: larger disk for a zfs pool

2011-08-01 Thread andrew clarke
On Mon 2011-08-01 17:05:02 UTC+0200, Dick Hoogendijk (d...@nagual.nl) wrote:

> But I'm confused about the gpart thing I did on the original disks.
> 
> $ gpart show
> =>   34  156301421  ad4  GPT  (75G)
>   341281  freebsd-boot  (64K)
>  16283886082  freebsd-swap  (4.0G)
>  8388770  1479126853  freebsd-zfs  (71G)
> 
> =>   34  156301421  ad6  GPT  (75G)
>   341281  freebsd-boot  (64K)
>  16283886082  freebsd-swap  (4.0G)
>  8388770  1479126853  freebsd-zfs  (71G)

> Do I repeat this gpart section on the new disk(s) before putting them in 
> the rpool (one at a time).

Basically yes.  Both drives in the mirror need the freebsd-boot
partition, otherwise the drive without freebsd-boot won't be bootable
if the other drive fails to boot.

freebsd-swap can be any size.  The sector count of the freebsd-zfs
partition on the new drive needs to be equal or greater to the
existing sector count, though.  147912685 in your case.  gpart should
do that automatically if the replacement drive is larger and you tell
it just to use the remaining space.

Don't forget this step:

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i nnn device

>  Is it compatrible to putting the solaris bootcode on disk before
>  attaching them to a rootpool and resilvering? I want to expand my
>  rootpool but am a little confused about the right procedure.

I've not used Solaris, but I assume so.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: larger disk for a zfs pool

2011-08-01 Thread andrew clarke
On Mon 2011-08-01 09:37:55 UTC-0500, Dan Nelson (dnel...@allantgroup.com) wrote:

> In the last episode (Aug 01), Dick Hoogendijk said:
>
> > OK, my freebsd system runs on ZFS boot. W/ solaris getting larger disks 
> > for a pool was quit easy. Simply replace one disk from a mirror for a 
> > larger one, wait for the resilvering and after this replace the second 
> > one for a larger disk and wait for the resilvering again. That's it. 
> > Been there, done that. But my feeling tells me it is not that simple for 
> > a FreeBSD zfs root system, or is it?
> 
> Should be the same procedure.  Make sure you either use "zpool online -e"
> when swapping in the new disks, or that you have the zpool autoexpand=on
> attribute set.

On my FreeBSD 8.2-RELEASE machine, "-e" is an "invalid option" and
"autoexpand" an "invalid property".  I suspect these are features of
ZFS v28 and are not provided with the ZFS v15 provided with FreeBSD
8.2-REL.

Judging from behaviour I experienced experimenting with ZFS in a
virtual machine using 8.2-REL, it was possible to replace all drives
in a ZFS mirror with larger ones and increase the size of the pool,
but (after resilvering) it required either a reboot, or (if I recall
correctly):

  zpool export tank
  zpool import tank

for the increased size to become available.  So I assume "autoexpand"
was implied for ZFS v15.

However this was not with FreeBSD booting from 'tank'.  Trying to run
"zpool export tank" may result in a "Device busy" error if the boot
device was the "tank" pool.

It might be worthwhile experimenting in on a spare (or virtual)
machine to get a definitive answer, especially since there seem to be
differences depending on FreeBSD version.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: larger disk for a zfs pool

2011-08-01 Thread andrew clarke
On Mon 2011-08-01 16:30:50 UTC+0200, Dick Hoogendijk (d...@nagual.nl) wrote:

> OK, my freebsd system runs on ZFS boot. W/ solaris getting larger disks 
> for a pool was quit easy. Simply replace one disk from a mirror for a 
> larger one, wait for the resilvering and after this replace the second 
> one for a larger disk and wait for the resilvering again. That's it. 
> Been there, done that. But my feeling tells me it is not that simple for 
> a FreeBSD zfs root system, or is it?

By the way, a similar question appeared on the freebsd-fs list recently:

http://lists.freebsd.org/pipermail/freebsd-fs/2011-June/011887.html

Although the question was asked with regards to ZFS v28, which may be
newer than what you are using.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freebsd-update

2011-12-04 Thread andrew clarke
On Sun 2011-12-04 11:06:29 UTC+0100, Dick Hoogendijk (d...@nagual.nl) wrote:

> Why do I get a warning if I use freebsd-update about a renewal of my 
> FreeBSD installation within the next two months because after that time 
> it will nog be supported anymore?

Presumably you mean 8.2-RELEASE.

http://security.freebsd.org/ says that the estimated EOL (end-of-life)
for 8.2-RELEASE is February 29, 2012.  Looking at the source code to
freebsd-update, the EOL date is fetched from the metadata hosted by
the freebsd-update servers.

>From what I understand, the focus is on releasing FreeBSD 9.0, and 8.3
will be released after that.  But 9.0 is still in testing.

Despite the message, I suspect security updates for 8.2 will still be
issued for several months after 8.3 is released, to give people plenty
of time to test 8.3 first before upgrading their 8.2 machines.

> I run FreeBSD-release-p4. Freebsd-update 'sees' p3. Is this the cause?

If this is true, you may have a separate (possibly additional)
problem, but on my 8.2-RELEASE-p4 system, freebsd-update sees I have
p4 installed.  I still see the above message you describe.  "uname -r"
shows p3, however.  I understand this is expected behaviour on account
of there being no kernel patches between p3 & p4.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Installing FreeBSD ver. 8.2

2012-01-08 Thread andrew clarke
On Sat 2012-01-07 15:05:55 UTC-0800, leeoliveshackelf...@surewest.net 
(leeoliveshackelf...@surewest.net) wrote:

> (5) What device driver must be installed for the sound board to be
> able to receive a m.i.d.i. over u.s.b. signal?  This signal would be
> generated by a musician's keyboard, and would control a music
> synthesizer application, to be installed.  I could find no mention of
> this topic in the Handbook.

There are USB to MIDI in/out hardware devices available. Last I looked
they were selling for about US$25 on eBay. I bought one about two
years ago and use it in Ubuntu Linux. I don't think I ever tested if
it worked in FreeBSD but I suspect it would.

I also have a Casio WK3300 keyboard with USB output. I don't think it
was supported by FreeBSD, but Ubuntu Linux (10.04 Lucid) recognised it.

The sound card you use is irrelevant as to whether you can use MIDI
over USB. In fact MIDI can be used for non-audio applications, for
example lighting rigs.
___
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"


fine grained firewall?

2006-02-09 Thread andrew clarke
Is it possible to configure the FreeBSD firewall to block ports on a
per-user or per-executable basis?

eg.

- Block /usr/local/bin/irc from connecting to TCP port 6667

- Block user 'johnsmith' from connecting to TCP port 21

etc.

Thanks.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: fine grained firewall?

2006-02-09 Thread andrew clarke
On Thu, Feb 09, 2006 at 07:30:17AM -0500, Chuck Swiger wrote:

> > Is it possible to configure the FreeBSD firewall to block ports on a
> > per-user or per-executable basis?
> > 
> > eg.
> > 
> > - Block /usr/local/bin/irc from connecting to TCP port 6667
> > 
> > - Block user 'johnsmith' from connecting to TCP port 21
> 
> Yes to users (if the connections originate from the firewall box), no to
> per-executables.  The latter seems useless when "cp irc myirc" is all it would
> take to defeat it.  Frankly, neither option is very useful or would be needed
> for a good ruleset...

The latter may not be so useless if the firewall automatically blocked
all executables that were not registered with it. The full path,
filename, md5sum of the executable could be recorded and matched with
its database. Some Windows firewall software works this way.

It may also be useful for logging (not blocking) connections to/from a
certain executable, for traffic accounting.

I see now the option for per-user control in the ipfw manpage.  Not sure
why I missed that before.

 uid user
 Match all TCP or UDP packets sent by or received for a user.  A
 user may be matched by name or identification number.

Thanks,

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Protecting Windows

2006-02-09 Thread andrew clarke
On Thu, Feb 09, 2006 at 02:32:44PM +1030, Brian Astill wrote:

> Person with deteriorating vision has discovered Dragon 
> Naturally Speaking which not only allows the construction of text 
> from speech but can also speak from received text.  ie letter writing 
> and email conversing etc become possible for the visually impaired.
> 
> All of which is wonderful except - you guessed it - the [EMAIL PROTECTED]& 
> program runs on Windows 2000/XP only.  Why would anyone in their  
> right mind NOT port a program as sensible as this to a SECURE OS?

I don't know of any such software for Linux or BSD.

Does similar software exist for Mac OS X?  It might.  There is a bigger
market for it.

To me, the usual routine of securing Windows seems to be the wisest
choice in this instance, eg. not allowing end-users to have Admin
rights, and where possible, using open source software (Firefox,
Thunderbird, OpenOffice, Abiword, ...) that's written and updated
regularly by security-conscious people, etc.  Some simple words of
advice (beware of email attachments, etc) may also help.

Running a simple standalone FreeBSD/Linux firewall "in front" of the
Windows may also help security somewhat, preventing attackers connecting
directly to the Windows machine.  Note that many broadband cable/DSL
routers perform the same task when working in "Internet sharing" mode
(sometimes known as NAT).

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NATD Port Forwarding question

2004-07-04 Thread andrew clarke
On Sun, Jul 04, 2004 at 06:57:16PM +1000, Jon Kurjakovich wrote:

> My problem: I am trying to use NATD to forward packets to machines on
> the internal network using the redirect_port command.

I don't have a solution to your problem with natd, however net/rinetd
(from ports) might be a good enough workaround if all else fails.

Port:   rinetd-0.62
Path:   /usr/ports/net/rinetd
Info:   A simple TCP port redirector
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: runing FreeBSD on WinXP using free PC virtualization software

2004-07-20 Thread andrew clarke
On Sun, Jul 18, 2004 at 10:27:11AM +0600, ashadul hoque wrote:

> Is there any free software to run FreeBSD on WinXP?

QEMU:

http://fabrice.bellard.free.fr/qemu/
http://www.h7.dion.ne.jp/~qemu-win/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Ports files

2004-02-12 Thread andrew clarke
On Thu, Feb 12, 2004 at 08:09:25AM -0500, Jonathan Arnold wrote:

> My port hierarchy seems to have gotten out of date or something.
> It is missing some subdirectories, like multimedia, even though I
> run cvsup every other night on it.

I had this problem too with /usr/ports/dns not being updated, even
though ports-dns was listed in my ports-supfile.  Switched to another
cvsup server and all was well.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Creating mp3

2004-02-13 Thread andrew clarke
On Thu, Feb 12, 2004 at 10:16:12PM -0600, Earl wrote:

> What is a good program to create mp3s with?

/usr/ports/audio/lame

http://lame.sourceforge.net/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Fwd: Re: root no found

2004-05-19 Thread andrew clarke
On 2004-05-19 18:33, mehrdad nosrati wrote:
Note: forwarded message attached. 

But if see the man of atrun(8) then you can see these
line:
*/5 *   *   *   *   root   
/usr/libexec/atrun

which create an error for me!
 

atrun(8) refers to /etc/crontab, not /var/cron/tabs/root.
Note that /etc/crontab is NOT edited with /usr/bin/crontab -e.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Disabling atime updates...

2004-05-21 Thread andrew clarke
On Fri, May 21, 2004 at 01:09:03PM +1000, Norberto Meijome wrote:

> I'm plan to disable atime updates in some Web + MySQL servers (to get a 
> bit more performance, even if insignificant).
> 
> Is there any OS, Apache or MySQL feature that would be affected by 
> setting noatime in fstab? ( I couldn't find any reference, even man 8 
> mount says it's hardly ever used)

I've been using noatime for some months on /usr with no apparent ill
effects.  Running Apache 1.x, Named, Dovecot, Squid, Samba, Fetchmail &
Sendmail, among other things.

I don't use noatime on the other mounts.  I seem to vaguely recall it
causing some things to break.  It may have been something like tail -F
/var/log/messages not working the way it should, but don't quote me on
that.

Regards
Andrew
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Where can I find 2.7.1?

2004-08-21 Thread andrew clarke
On Fri, Aug 20, 2004 at 10:42:38PM -0700, Daniel Beck wrote:

> Hi, I am pretty new to freeBSD, so please excuse this question.
> However, I have a laptop with only 4Mb of RAM, and I had read on the
> website that the last version that I could install on it would be the
> 2.7.1 release.  I have no possiblilty of getting any more RAM, and no
> other laptop to install another version of freeBSD on it, so i must
> get this version or another that would be supported.  I have looked
> around the freeBSD website, but have been unable to find a location
> where I can actually download the image for a bootdisk on my 386.  Any
> information where I could download this would be much appreiciated.

There is no such FreeBSD released as 2.7.1.

I think you mean 2.1.7, circa February 1997.  I can't say whether it
will run in 4 Mb though.  I'd be looking at getting another laptop
personally!

I Googled and found 2.1.7.1 at the address below.  The FreeBSD web site
doesn't mention 2.1.7.1 though, only 2.1.7.

http://ftp.svbug.com/ftp/pub/FreeBSD/releases/2.1.7.1-RELEASE/

There are also several other older versions here, including 2.1.7:

ftp://ftp.cse.buffalo.edu/pub/FreeBSD-Archive/old-releases/i386/

Regards
Andrew
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: filter a binary file and reduce 0x150a to 0x15

2010-10-19 Thread andrew clarke
On Tue 2010-10-19 15:08:45 UTC+0200, Matthias Apitz (g...@unixarea.de) wrote:

> Before I programm it in C (or whatever), is there any normal shell tool
> to filter a (large) binary file and change any occurance of 0x150a to
> 0x15 (i.e. delete \n but only if it follows a char 0x15)?

I'd be personally more comfortable doing it in C or Python but I think
you can do this with tr -s.

Note: 0x15 == 25 octal; 0x0a == 12 octal.  I don't recall if it's
possible to use hex values in csh arguments - if so, what is the
syntax?

0:28 ozzmo...@blizzard [~/tmp]printf 'Hello\25\12world.\12' > blah

0:28 ozzmo...@blizzard [~/tmp]hd blah
  48 65 6c 6c 6f 15 0a 77  6f 72 6c 64 2e 0a|Hello..world..|
000e

0:28 ozzmo...@blizzard [~/tmp]tr -s '\25\12' '\25' < blah | hd
  48 65 6c 6c 6f 15 77 6f  72 6c 64 2e 15   |Hello.world..|
000d

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: filter a binary file and reduce 0x150a to 0x15

2010-10-20 Thread andrew clarke
On Tue 2010-10-19 21:21:00 UTC-0400, Karl Vogel (vogelke+u...@pobox.com) wrote:

>me% perl -0pe 's/\025\n/\025/g;' < blah | od -c

Nitpicking a little, but Perl isn't part of the FreeBSD base any more.
Most FreeBSD users probably have it installed, though (perhaps as a
dependency)...
___
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: Archiving directories / zip format

2010-12-06 Thread andrew clarke
On Mon 2010-12-06 08:17:17 UTC+0100, Zbigniew Szalbot (zszal...@gmail.com) 
wrote:

> From time to time I want to archive a quite a few directories to
> download them conveniently. I have been using tar to do it, endingin
> up with a tar.gz file. But the problem with it is that I do not have a
> unix machine at home so if I want to extract something or unpack the
> content, there is no easy way to do that. My question basically is if
> there is a way to end up with a zip file?

As somebody else already mentioned there is zip/unzip in the FreeBSD
Ports tree.

There's also a BSD port of rar/unrar if you'd like to use the .rar
format instead of .zip.

> Or are there any windows tools to unzip and/or extract content from
> tar.gz files?

In Windows I use 7-Zip.  It's open source and supports .tar.gz,
.tar.xz, .zip, .rar and a number of other archive formats.

http://www.7-zip.org/

On the BSD side you can also use p7zip to create .7z archives that can
be opened with 7-Zip.
___
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: Auto-mounting sshfs from /etc/fstab

2012-09-05 Thread andrew clarke
On Wed 2012-09-05 19:38:54 UTC+0200, OriS (site.free...@orientalsensation.com) 
wrote:

> I've been trying to find a page on the Internet where an example is posted
> explaining how to mount sshfs from /etc/fstab, but I can't find any!

Have you tried running sshfs from cron?  eg. run "crontab -e" as a
regular user and add:

@reboot  /usr/local/bin/sshfs remotehost: $HOME/mnt/remote

Note: Untested.
___
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: suggest pdf viewer for pdf version 1.6 with annotations

2012-10-03 Thread andrew clarke
On Wed 2012-10-03 11:26:38 UTC+0200, Polytropon (free...@edvax.de) wrote:

> On Wed, 3 Oct 2012 08:50:16 +0100 (BST), Anton Shterenlikht wrote:
>
> > I got sent a pdf file, version 1.6, with annotations.
> > xpdf can view the file, but not the annotations.
> > Please suggest a pdf viewer from ports that might help.
> 
> I haven't checked, but the "Adobe Reader" (port: acroread,
> e. g. acroread9) should be able to do this, as PDF 1.6
> support is in that product since version 7 (Jan. 2005).
> 
> I'm not sure if it would be "less bloaty" to use a PDF
> viewer coming with one of the big desktop environments
> KDE or Gnome: Evince, KPDF or Okular... I'm not using
> any of these, so I can't make better recommendations.
> Whenever I approach the border of what xpdf and gv can
> do, I use "acroread ". :-)

I'm curious if anyone's tried running the Linux version of FoxItReader
under FreeBSD's Linux emulation. There's a good chance it supports
showing annotations.

http://www.foxitsoftware.com/pdf/desklinux/download.php

Also I suspect Chromium (www/chromium) has an internal PDF viewer like
the Windows & Linux versions do. It may also show annotations.

A cursory web search for a PDF with annotations came up empty,
otherwise I'd test both natively in Ubuntu.
___
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: Info 2 Release

2012-10-10 Thread andrew clarke
On Wed 2012-10-10 10:16:35 UTC+0200, René Mercier (realmo.merc...@gmail.com) 
wrote:

> Bonjour,
> 
> Je suis sous Debian, mais travaillant dans les réseaux, je souhaiterai
> passer sur FreeBsd pour sa stabilité et pour sa sécurité,, je vois
> qu'actuellement il y une 9 rc1, pourriez vous s'il vous plait me dire
> quelle la prochaine release à venir et sa date de sortie

http://www.freebsd.org/releases/9.1R/schedule.html

PS. This is an English-speaking mailing list.
___
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: Info 2 Release

2012-10-10 Thread andrew clarke
On Wed 2012-10-10 10:02:48 UTC+0100, Anton Shterenlikht (me...@bristol.ac.uk) 
wrote:

>   From: andrew clarke 
> 
>   PS. This is an English-speaking mailing list.
> 
> What's the problem?
> If there are non-english posts
> and non-english helpful replies,
> who suffers?
> 
> You and me can just ignore those,
> like we ignore OT, right?

Then the OP suffers from being ignored.

Clearly English is preferred.

(Incidentally the page at http://www.freebsd.org/community/mailinglists.html
lists a French FreeBSD mailing list at listser...@freebsd-fr.org, with
the web site at http://www.freebsd-fr.org/, however the web address no
longer resolves, so I suspect the listserver is offline too.)
___
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"


  1   2   >