Re: KDE process is unkillable

2003-07-15 Thread Bruce Cran
On Tue, Jul 15, 2003 at 03:30:28PM -0500, Neu, Benjamin S. wrote:
 Dear God! REBOOT it man!

The system probably won't be able to shutdown cleanly, because if kill -9 doesn't
work then 'reboot' won't be able to kill the processes.   I've had this happen
with nfs-mounted drives when the network dies - FreeBSD just sits there forever
trying to read the file, and the system refuses to shutdown.

--
Bruce Cran

 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 [EMAIL PROTECTED]
 Sent: Tuesday, July 15, 2003 3:29 PM
 To: dick hoogendijk
 Cc: [EMAIL PROTECTED]
 Subject: Re: KDE process is unkillable
 
  On 15 Jul [EMAIL PROTECTED] wrote:
   I tried it multiple times. I was able to kill all the other KDE
   related processes (even the parent), but this one just doesn't die.
  
  Then kill (-9) the login session itself (the one kde came from in the
  first place)
  
  And if that too does not help: a home server is very easely rebooted.
  Nobody will notice or at least hardly..
 
 Thanks for the advice, but I really don't want to kick my users off.
 If it is really necessary, I want to get a core dump before rebooting.
 Do you know how I could do this?
 
 I'm trying to install lsof, but it takes forever (KDE takes up all the
 CPU
 time).
 Here's the output from fstat, maybe this solves the problem:
 
 root kdeinit62100 root / 2 drwxr-xr-x 512  r
 root kdeinit62100   wd /usr 6690817 drwxr-xr-x2048  r
 root kdeinit62100 text /usr 341416 -r-xr-xr-x  412176  r
 root kdeinit621000 / 65411 crw---   ttyv3 rw
 root kdeinit621001 / 65411 crw---   ttyv3 rw
 root kdeinit621002 / 65411 crw---   ttyv3 rw
 root kdeinit621007 / 64909 crw-rw  #C145:0 rw
 root kdeinit621008* pipe e390a2a0 - e390a520  0 rw
 root kdeinit621009* pipe e390a520 - e390a2a0  0 rw
 root kdeinit62100   10* pipe df266260 - df2652c0  0 rw
 root kdeinit62100   11* pipe df2652c0 - df266260  0 rw
 
 -- 
 +++ GMX - Mail, Messaging  more  http://www.gmx.net +++
 
 Jetzt ein- oder umsteigen und USB-Speicheruhr als Pr?mie sichern!
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dmesg showing wrong frequency (IBM T30)

2003-07-18 Thread Bruce Cran
On Fri, Jul 18, 2003 at 07:24:20PM +0200, Tobias Roth wrote:
 On Fri, Jul 18, 2003 at 06:22:27PM +0200, Poul-Henning Kamp wrote:
  What's wrong here is that the BIOS/ACPI firmware in your laptop
  runs your CPU at a reduced rate in order to make the battery last
  longer.
 
 it should NOT do this. I set the bios to disable speedstep and to
 'max performance' while on AC. also, i run apm and not acpi.
 

That's probably the problem.   For some reason, certainly on my Dell, disabling
SpeedStep throttles the CPU down to 1.2GHz on bootup, from its full 2.0GHz.
Nothing the OS can do will change it.  Enabling SpeedStep means that FreeBSD
sees the full 2.0GHz.   I've also heard about someone whose Dell had a broken
BIOS, which meant that the CPU could never run at full speed, but was always
running at 60%.   Upgrading the BIOS was the solution in that case.

--

Bruce Cran


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


Re: sendmail timeout

2003-03-27 Thread Bruce Cran
On Thu, Mar 27, 2003 at 11:52:49AM -0600, Karl Hammerschmidt wrote:
 Thanks for the tip!
 
 Telnet does fail, and I found out that my ISP (earthlink) is known to block
 25. The information I found said to put 'mail.earthlink.net' in SMART_HOST
 in /etc/mail/sendmail.mc. Is that /etc/mail/freebsd.mc on a freebsd system?
 
 I tried putting it there, but it seems to get ignored. The docs on
 sendmail.org say things like LOCAL_RELAY override SMART_HOST, but I didn't
 find anything like that in freebsd.mc.
 
 Anybody know what I did wrong?

You need to put it in freebsd.mc or a customised version of that, then
run 'make freebsd.cf' or whatever you called the custom copy, but with a
.cf instead of .mc.  Then, copy the .cf file to sendmail.cf and restart
sendmail by running 'killall -HUP sendmail'.  

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


Re: paths - a newbie question

2003-04-05 Thread Bruce Cran
On Sat, Apr 05, 2003 at 05:25:01PM +0100, Ceri Davies wrote:
 On Sat, Apr 05, 2003 at 11:06:02AM -0500, Walter wrote:
  Mike Meyer wrote:
  In [EMAIL PROTECTED], Walter [EMAIL PROTECTED] typed:
  
  After installing a port using pkg_add -r util, the only
  way I know to be able to type util at the command prompt
  to have it execute is either to reboot, or to make an alias
  for it by hand.  Surely there's a better way.  Is there a
  way to make the OS make a link auto-majically?  Thanks.
  
  This is your shell, not the OS. Without knowing which shell you are
  using, I can't say for sure, but you might try the rehash command.
  
  Beauty!  Worked great.  (It's the /bin/csh.)
  Maybe someone could add a note on this to the
  ports/packages section of the handbook??
 
 I don't wish to be rude, but maybe you could read your shells' manual page,
 or a book for new UNIX users ?
 
 The handbook is rather unwieldy as it is, and is really meant for FreeBSD
 specific things (hence the name).  Sometimes we do hand hold in that document,
 but there has to be a limit.
 
 As I said, please don't take offence.
 

It's already in the documentation for FreeBSD - try looking in the book
'For People New to Both FreeBSD and Unix'
(http://www.freebsd.org/doc/en_US.ISO8859-1/articles/new-users/index.html) :)   
Under the 'Next Steps' chapter it does indeed tell you to 'rehash' after
installing new software.

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


Re: Mount command...again

2003-06-09 Thread Bruce Cran
On Thu, Jun 05, 2003 at 02:45:04PM -0800, [EMAIL PROTECTED] wrote:
 Ok, here is what I am trying to do. I am trying to mount a samba served
 directory on a remote system onto my local system. Both servers are
 running freebsd4.8. I want to mount the remote directory with the
 priveliges of the remote owner of the directory onto my local system.
 
 In Linux I can do it this way:
 mount -t smbfs -o username=loginname,password=passwdtoshare,
 uid=jonr,gid=jonr //sambaserver/share /path/to/mount/point
 
 This will send my username and password then mount the share with the
 remote users uid and gid.
 
 Is there a way to do this on FreeBSD? I have been reading the man pages
 for mount and mount_smbfs and can't find out how to do this.
 -- 
 Jon Reynolds [EMAIL PROTECTED]
 

Have you tried

mount_smbfs -u uid -g gid //loginname@sambaserver/share /mountpoint

where uid and gid is the user/group whom you want the files to be accessible
by.   This works on my -current system.

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


Re: crashing fresbsd 5.1-current?

2003-07-02 Thread Bruce Cran
On Wed, May 21, 2003 at 06:39:27AM -0600, Aaron Wohl wrote:
 How do I crash freebsd? I changed the dump* stuff in /etc/rc.conf.  I
 want to make sure it works.  I looked at man shutdown and man poweroff
 but I dont see a crash option.  There should be some option to a system
 call you need to be root to do that internaly does panic(test crash) ?

You can panic on-demand by using sysctl machdep.enable_panic_key and 
modifying the .kbd file for your layout to 
include a 'panic' key combination. Press
the keys and the system will panic.   Also, try 'man panic' for the
kernel-level syscall.

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


Re: Hard error??

2003-02-14 Thread Bruce Cran
On Fri, Feb 14, 2003 at 01:19:39PM -0500, northern snowfall wrote:
 I used to get this error on a FreeBSD while using a perfectly stable 
 harddrive. That
 harddrive is managed via Solaris now, but, I determined the issue during 
 its FreeBSD
 usage was DMA. If you are running two disks on the same ATA channel with
 different DMA capabilities, the capabilities may be causing scrambles in 
 the
 negotiation of I/O on the line. The solution is to put ATA drives that 
 use _only_ the
 same DMA caps on the same ATA channel. If you only have two drives, simply
 put ATA0.1 on ATA1.0. This stopped my falling back to PIO messages and
 probably saved the disk from hard failure caused by misuse.
 Don

Is this a bug in the FreeBSD ATA driver then?  I used an IBM DeskStar
drive and had Linux running perfectly well on it.  I backed up all my
data, deleted the partitions and went to install FreeBSD on it.   The
installation failed with lots of 'hard error' messages.  Did FreeBSD
kill my hard drive, or was it just luck that I got my data off the drive
with minutes to spare?   I know DeskStar drives are notorious for
failure, but I did indeed have DMA66 and DMA33 drives on the same
channel, and thought it a bit suspicious that the drive died at the
instant I tried to install FreeBSD.

Bruce Cran

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Hard error??

2003-02-14 Thread Bruce Cran
On Fri, Feb 14, 2003 at 02:19:34PM -0500, Chuck Swiger wrote:
 Henrik W Lund wrote:
 [ ... ]
 Anyway, I want to know for sure that this disk failure is not due to any 
 FreeBSD shenanigans, as I do not want to buy a new drive and install 
 FreeBSD to it, only to have it crash on me just days later.
 
 Fair enough.  Check with the vendor of your hard drive (or the laptop) 
 for their hard-drive test utilities.  You should be able to do a 
 non-destructive read test and see what you see


My drive really did fail after attempting to install FreeBSD - I
mananged to get the BIOS and Windows to recognise it long enough to run
IBM's smartdefender program.   It told me the drive was basically dead.

Bruce Cran

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: NVidia vs FreeBSD 5.0

2003-02-14 Thread Bruce Cran
On Fri, Feb 14, 2003 at 12:22:25PM +0100, Antoine Jacoutot wrote:
 On Friday 14 February 2003 11:45, Valentin Al. Sitnick wrote:
  I have problem with installation FreeBSD 5.0 to my PC because I have
  NVidia MX440 SE-T videocard. The original drivers from NVidia.com cannot
  be installed for this FreeBSD Version.
  Is there decission of this problem?
 
 Yes, use the nv driver included in XFree86.


Is there any news about a new driver for FreeBSD?   I'm guessing they're
waiting for XFree86 4.3 now, but that 'initial beta' driver has been out
for a few months, so does anyone know if there's any work going on inside
NVidia on getting a 5.0-CURRENT or 5.0-RELEASE driver released?

Bruce

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



where is gated?

2003-02-26 Thread Bruce Cran
I've just setup a network, and have been thinking about configuring the
routing.   I've seen various references to gated in the documentation,
which seems to suggest that it's part of the base FreeBSD installation. 
I've found /usr/src/etc/rc.d/gated on my -current box, but there doesn't
appear to be any corresponding source code or binary.  There also doesn't
appear to be a port for gated - has it been removed from FreeBSD, or am
I just missing something?

Bruce Cran

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: where is gated?

2003-02-26 Thread Bruce Cran
On Wed, Feb 26, 2003 at 08:11:06PM +, Matthew Seaman wrote:
 On Wed, Feb 26, 2003 at 08:07:24PM +, Bruce Cran wrote:
  I've just setup a network, and have been thinking about configuring the
  routing.   I've seen various references to gated in the documentation,
  which seems to suggest that it's part of the base FreeBSD installation. 
  I've found /usr/src/etc/rc.d/gated on my -current box, but there doesn't
  appear to be any corresponding source code or binary.  There also doesn't
  appear to be a port for gated - has it been removed from FreeBSD, or am
  I just missing something?
 
 Nope.  gated has been removed from the ports collection:
 
 happy-idiot-talk:/usr/ports:% grep -i gated MOVED 
 net/gated||2002-12-13|no longer distributed by vendor
 
 Try GNU zebra instead.
 

Thanks.   Should this be submitted as a PR so that the handbook page about routing 
can be updated to remove references to gated?

Bruce

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Blackholes?

2003-03-02 Thread Bruce Cran
On Sun, Mar 02, 2003 at 02:08:52AM -0800, Remington L. wrote:
 I noticed that all values 1+ in sysctl net.inet.tcp(udp).blackhole= are
 valid. If 0 is off and 1 is on, what is 2+. What purpose does this
 server, I cant find documentation of this anywhwere
 

man blackhole :-)

A value of 1 makes it drop SYN packets only, a value of 2 makes it drop
whole segments without sending an RST.

Bruce Cran

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: BT878(Prolink PV-BT878P+4E)

2003-03-22 Thread Bruce Cran
On Sat, Mar 22, 2003 at 02:51:04PM +0100, Michael wrote:
 Has anyone had any success with this TV-Tuner BT878(Prolink PV-BT878P+4E)?
 Any thoughts on if any generic drivers could work?

The bttv driver, bktr, hasn't had any major updates for over 2 years
now, and so doesn't support the newer cards or tuners.   Even Linux
struggles to use my Pinnacle PCTV Pro card (bt878, tda9887)  with the newest 
drivers.   I've seen quite a few posts about TV cards recently, maybe we need a 
project to either port bttv/v4l2 from Linux, or start a new project to properly 
support tv cards in FreeBSD?

Bruce Cran

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Binding SCTP sockets to the IPv6 lopback address

2008-10-15 Thread Bruce Cran
I've been writing some basic SCTP socket code and have found that SCTP 
doesn't bind to the loopback IPv6 address - it binds to all the other 
addresses, including the external IPv6, link-local and IPv4 loopback 
addresses.  Is there something about the way SCTP works that means it 
doesn't work over IPv6 loopback?


The code I'm running calls getaddrinfo with the hints to set AF_UNSPEC, 
SOCK_STREAM, AI_PASSIVE and then it calls bind with the protocol set to 
IPPROTO_SCTP.


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


Re: High Performance Computing Mini-Cluster

2008-10-21 Thread Bruce Cran

David Robillard wrote:

On Tue, Oct 21, 2008 at 2:25 PM, Gerardo Paredes
[EMAIL PROTECTED] wrote:
  

From what i have read, Matt Olander and Brooks Davis are the foremost experts at cluster 
building on FreeBSD. However i believe a document needs to be written explaining in 
detailed steps how to do it, so the common user can do it. Obviously not every 
common man needs a cluster.

In my case i am pitching the project of a big cluster to our University here in 
Honduras to run some kinds of apps we have, like a Trade Exchange Market 
Simulation written in Python we have about two years developing which we plan 
to run distributed across the cluster.


Since I cannot attend that seminar, i will be expecting for at least the 
presentation to be posted.



Actually, this was a presentation I attended last year. So the slides
already exist. You can also grab their old paper at
http://people.freebsd.org/~brooks/papers/bsdcon2003/ but this is a bit
out-dated.

My advice would be to try and contact Mr. Brooks Davis directly. If
you can't find him, try and send an email to the organisers of BSDCan
from http://www.bsdcan.org/2008/contact.php. I believe you should talk
to Dan Langille on the BSDCan commitee
http://www.bsdcan.org/2008/committee.php

Good luck and have fun! Your project seems quite interesting :)

David
  


It seems the same presentation was given at AsiaBSDCon 2007: it's linked 
to from

http://2007.asiabsdcon.org/papers/index.html

The slides are at http://2007.asiabsdcon.org/papers/P02-slides.pdf and 
the paper is at

http://2007.asiabsdcon.org/papers/P02-paper.pdf

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


Re: GCC help

2008-10-23 Thread Bruce Cran

RW wrote:

On Wed, 22 Oct 2008 10:07:09 -0400
Victor Farah [EMAIL PROTECTED] wrote:

  

I was wondering how I would update gcc to version 4.2?
I'm not sure I can just do a portupgrade gcc ??




If you install a later version of gcc it won't automatically get used
because the port will use the base-system version. 
  


Can't you set $CC to gcc44 or whatever to make the ports system use a 
different version of gcc?


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


Re: the age old 3D hardware question

2008-10-25 Thread Bruce Cran





On Sat, 25 Oct 2008, [EMAIL PROTECTED] wrote:


On 20081025 10:18:01, Wojciech Puchar wrote:

I'm looking to buy a new workstation that needs to be able to run in
64-bit (long) mode (working with large data sets). What are my options
for 3D acceleration without binary drivers? My needs are quite 
minimal,

I'm not running any games.


you actually need 3D accelerator or just fast 2D card?

if second - buy for 50$ (or get for free) used computer, lowest end
pentium will suffice, plug good PCI graphics in it, and make an X 
terminal

to connect to your high-speed computer.

there is one more adventage of it - you may connect more than one :)


Unfortunately, yeah, I do need 3D acceleration. I'm not running any 
games

but I am doing some OpenGL development (should've said that in the first
place, really).

Wojciech Puchar wrote:

afaik openGL always requires local display


I would guess the development and testing will be done on the same 
machine.  


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


Re: Is KDE4 usable on FreeBSD?

2008-11-01 Thread Bruce Cran
On Sat, 01 Nov 2008 19:43:54 -0700
Yuri [EMAIL PROTECTED] wrote:

 Wojciech Puchar wrote:
  Also GUI makes life much easier even for advanced users.
 
  exactly wrong. it make my life harder. these advanced users you
  say don't like to read manuals and do once simple config taking few
  minutes.
 
 totally wrong. imagine setting up WiFi network. one mouse click opens 
 WiFi manager window. another double-click selects network to connect. 
 another click closes the window of WiFi manager. How in the world it
 can be easier to do this with config files 
 
  Unfortunately open source is pretty much a failure when it comes
  to GUI and
  desktop. Any kind of GUI, look at ddd for example. Untested 
  development-stage
  software (like kde4) is being released to the public for some
  reason.
 
  they try to compete with windoze - so they behave the same way! who 
  first learned that giving unfinished/buggy/incomplete software to 
  users is a good (in marketing point of view) thing?
 
  Microsoft! they learn from it.
 
 they try to compete and fail. doesn't matter who did what first.
 today windoze gui is way more usable than kde4. that's the only thing
 that matters.
 if kde4 were a commercial company they would have been fired or go
 out of business long time ago.

I think it depends on what you want to do.  For developers KDE4
provides all the features you'd want such as smart text editors, a
nice terminal and lots of applications.  For normal users I'm not so
sure a stock KDE4 is so usable; however having recently used Ubuntu and
seen what can be done with Gnome, I'm sure KDE can be configured to be
just as good.  Talking of Ubuntu, I believe it's now almost as easy to
use as Windows, and that's for 'normal' users who don't know much
about computers. There are some things that are missing: for example if
for some reason it fails to automatically setup the monitor then you're
kinda stuck, but all the rest works.  

As an example of its usability I plugged a new printer in and a few
seconds later a notification popped up asking me to select settings,
paper type etc. That's neat.  I took some photos and plugged my SDHC
card into a reader: a photo import application popped up and I could
nagivate the photos and select which to copy over.  It's smarts like
these that really make the difference. I consider myself a power user
but I do enjoy things like that being done for me, since I would much
prefer to spend my time coding instead of hacking config files to
import files, get stuff printed etc.   Most people I know are moving
from Debian to Ubuntu for the same reason - things just work.  At the
same time, it's nice to know that if anything does start getting in
your way it's still easy to change a few settings to turn it off.

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


Re: Is KDE4 usable on FreeBSD?

2008-11-02 Thread Bruce Cran
On Sun, 2 Nov 2008 18:32:39 +0100 (CET)
Wojciech Puchar [EMAIL PROTECTED] wrote:

 
  You have to realize that this is the question of every user's
  individual needs. Some users, like for example yourself, like going
  deep, using the shell for tasks from everyday life, some users are
  more GUI-oriented and like somewhat more graphic approach to the
  same tasks.
 
 true. that's why there unix and there windows.
 
 don't mix.

And what about OS X? To me it seems it's a combination of the
user-friendliness of Windows with the power of *NIX.  And lots of
people have moved over to using it.

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


Re: garmin forerunner 305

2008-11-03 Thread Bruce Cran
On Thu, 4 Sep 2008 20:24:02 +0100
Bruce Cran [EMAIL PROTECTED] wrote:

 On Thu, 4 Sep 2008 11:51:33 -0300
 Joey Mingrone [EMAIL PROTECTED] wrote:
 
  Hi,
  
  Has anyone had any success collecting data from a Garmin Forerunner
  305?
  
  When I connect the device I see the kernel messages:
  Sep  4 11:39:22 jrm root: Unknown USB device: vendor 0x091e product
  0x0003 bus uhub1
  Sep  4 11:39:22 jrm kernel: ugen0: vendor 0x091e product 0x0003,
  class 255/255, rev 1.10/0.01, addr 2 on uhub1
  
  The documentation for the port astro/GPSMan seems to indicate it
  supports this model, but I haven't had any luck.
  
  % uname -a
  FreeBSD xxx.xxx 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #3: Thu Jun 12
  18:47:50 ADT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/xxx  i386
 
 Unfortunately Garmin use their own protocol for communicating between
 the GPS and the PC.  Under Linux it's supported by the garmin_gps
 driver but there's no equivalent for FreeBSD yet.
 

Sorry, it turns out that's wrong: the gpsbabel developers recommend not
using garmin_gps because apparently it often doesn't work.  Instead
they recommend using gpsbabel's 'garmin' input/output format.  It
interfaces to the device using libusb - which, fortunately for us runs
on FreeBSD! I've just successfully read back GPS data into a GPX file
using gpsbabel on FreeBSD 8-CURRENT and the 'usb2' usb stack. 

I don't know if it'll work with the usb stack that's in shipping
version of FreeBSD though, and even with the new stack I had to make a
change to libgpsusb.c in gpsbabel to get it working.

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


Re: garmin forerunner 305

2008-11-04 Thread Bruce Cran
On Tue, Nov 04, 2008 at 08:28:05AM -0500, Bob McConnell wrote:
 On Behalf Of Bruce Cran
  On Thu, 4 Sep 2008 20:24:02 +0100
  Bruce Cran [EMAIL PROTECTED] wrote:
  
  On Thu, 4 Sep 2008 11:51:33 -0300
  Joey Mingrone [EMAIL PROTECTED] wrote:
  
   Has anyone had any success collecting data from a Garmin Forerunner
   305?
   
   When I connect the device I see the kernel messages:
   Sep  4 11:39:22 jrm root: Unknown USB device: vendor 0x091e product
   0x0003 bus uhub1
   Sep  4 11:39:22 jrm kernel: ugen0: vendor 0x091e product 0x0003,
   class 255/255, rev 1.10/0.01, addr 2 on uhub1
   
   The documentation for the port astro/GPSMan seems to indicate it
   supports this model, but I haven't had any luck.
   
   % uname -a
   FreeBSD xxx.xxx 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #3: Thu Jun
 12
   18:47:50 ADT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/xxx  i386
  
  Unfortunately Garmin use their own protocol for communicating between
  the GPS and the PC.  Under Linux it's supported by the garmin_gps
  driver but there's no equivalent for FreeBSD yet.
  
  
  Sorry, it turns out that's wrong: the gpsbabel developers recommend
 not
  using garmin_gps because apparently it often doesn't work.  Instead
  they recommend using gpsbabel's 'garmin' input/output format.  It
  interfaces to the device using libusb - which, fortunately for us runs
  on FreeBSD! I've just successfully read back GPS data into a GPX file
  using gpsbabel on FreeBSD 8-CURRENT and the 'usb2' usb stack. 
  
  I don't know if it'll work with the usb stack that's in shipping
  version of FreeBSD though, and even with the new stack I had to make a
  change to libgpsusb.c in gpsbabel to get it working.
 
 The best way to help fix these problems are:
 
 A) Submit a patch for the changes you made.
 
 B) Contact the maintainers and provide them with all of the details,
 what you found, what didn't work, what you modified and the final
 results. If you have traces or data captures, they may want to see them.
 They can't fix problems they don't understand. If they don't have access
 to that hardware, or something similar, they might even ask you to do
 some experiments for them to extend their knowledge. All of that will
 help them improve the quality of future releases.


It looks like it may be a bug in libusb20 or the usb2 stack. I've sent
an email to Hans and freebsd-usb@ and will see what they think.  I very
much suspect it's not a bug in gpsbabel itself because
USB_ENDPOINT_ADDRESS_MASK must exist for a reason, and removing the
masking was just a hack to get things working just now.

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


Re: garmin forerunner 305

2008-11-04 Thread Bruce Cran
On Tue, 04 Nov 2008 14:57:14 +0300
Boris Samorodov [EMAIL PROTECTED] wrote:

 Bruce Cran [EMAIL PROTECTED] writes:
 
  I don't know if it'll work with the usb stack that's in shipping
  version of FreeBSD though, and even with the new stack I had to
  make a change to libgpsusb.c in gpsbabel to get it working.
 
 Can you submit a patch? Thanks!

Having just read about endpoint addresses I'm not sure who's wrong.
gpsbabel truncates the address to the first 4 bytes using
USB_ENDPOINT_ADDRESS_MASK from libusb20 while
the stack clearly wants the rest, including the top 'direction' bit.  In
fact in /sys/dev/usb2/core/usb2_device.c line 114 it masks out the
reserved bits but still keeps the direction bit. usb2_get_pipe_by_addr
was failing when passed address 1 because the full endpoint address is
0x81 (endpoint 1, direction IN).  It looks as though by changing EA_MASK
to be just the endpoint number would fix the problem, but I'm not
sure if that's correct.

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


Re: /etc/src.conf WITHOUT_PROFILE=yes

2008-11-04 Thread Bruce Cran
On Tue, 4 Nov 2008 16:33:08 +0100
Johan Hendriks [EMAIL PROTECTED] wrote:

 Is it wise to set the WITHOUT_PROFILE to yes
 Some say it is, some not, and what does it do exactly?

All it does is prevent building the profiled versions of the libraries:
look in /usr/lib and you'll see for example libc.so and libc_p.so - the
_p version is the profiled version.  The only problem I can see with
disabling it using WITHOUT_PROFILE is that unless you remove the _p
libraries they'll become stale over time.

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


Re: uhub0: device problem

2008-11-05 Thread Bruce Cran
On Wed, 5 Nov 2008 12:21:30 +
stephen farrell [EMAIL PROTECTED] wrote:

 Hi, first off I'm new to FreeBSD so be gentle! :)
 
 I seem to be having problems with a HP 7260 usb printer.  Cups is
 installed and setup correctly following the Handbook method but i'm
 finding that the uhub is getting disabled, stalling and timing out.
 I have reproduced the same results on my other system.
 
 Both systems are running FreeBSD 7.0-RELEASE  GENERIC kernel.
 
 The error message from dmesg is:
 uhub0: device problem (IOERROR), disabling port 1
 
 I do not have any issues with usb mouse or keyboards.  Is this a
 known issue or can i rectify the problem at all.  Would be grateful
 for some help as i am new to this level of configuration.

I've seen problems like this on my old PC, which is running an Asus
A7V333 motherboard from 2002. Its EHCI controller is reported as
adhering to the 0.95 standard, which according to the update document
from http://www.intel.com/technology/usb/ehcispec.htm was finished in
2000. I've assumed that since it's so ancient it's no surprise
that it struggles with modern USB devices.

Unfortunately I don't know of any solutions - or even if that's the
problem. The first step would probably be to
let people see what sort of hardware you have: could you post the
output of the dmesg command please?

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


Re: Sluggish scheduling during a long disk copy

2008-11-09 Thread Bruce Cran
On Sun, 09 Nov 2008 14:12:34 -0800
Kris Kennaway [EMAIL PROTECTED] wrote:

 Dan wrote:
  Kris Kennaway([EMAIL PROTECTED])@2008.11.09 12:57:16 -0800:
  could be an issue with ntfs-3g driver
  Sounds like it to me.  ntfs-3g uses FUSE, which is a userland
  filesystem framework.  By design it will have poor I/O performance
  since every I/O transfer will require multiple trips into and out
  of the kernel.
  
  The FS performance isn't the issue, the poor interactive
  performance is.
 
 If you're thrashing your system with too many context switches or I/O 
 load it is expected that performance will suffer.  You should do some 
 additional investigation with the standard monitoring tools (top, 
 vmstat, gstat, etc) to determine what your system is doing.

It may be that FUSE is aggressively caching data and pushing your
applications out of memory.  This commonly happens on Linux and may
be happening here too.

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


Re: Official FreeBSD Forums

2008-11-16 Thread Bruce Cran
On Sun, 16 Nov 2008 22:56:28 +0100 (CET)
Wojciech Puchar [EMAIL PROTECTED] wrote:

  Having a larger user-base is definitely a good thing.  That means
  attracting
 
 NO IT IS NOT!

Well, it sounds like Minix may be gaining a new user soon then ;)

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


Re: re changing from vista

2008-11-17 Thread Bruce Cran
On Sun, 16 Nov 2008 22:41:27 +0100 (CET)
Wojciech Puchar [EMAIL PROTECTED] wrote:

  improving FreeBSD, there wouldn't be a need to convert.  Build
  it (and secure/stabilise it) and they will come.
 
  Indeed, what IS the value of more users to a volunteer project like
  FreeBSD?
 
 to some level - better driver support. but 
 windows-converters-seeking-for-nicer-windows don't write drivers.
 
 this level is OK, more users can make only harm.
 
 exactly what happened with linux.
 
 as heavyweight sponsors did. they pay but request not just adding 
 drivers but to add strange-but-trendy features and solutions that
 take system's quality down quickly.
 
 exactly that happened to NetBSD. i recently installed newest NetBSD 
 version just to look at it. it was damn slow and even slower under
 high load!!
 
 not mentioning linux that got just billion$ total sposoring from IBM.
 

Could you point out some of those strange-but-trendy features?  I tried
Ubuntu for a while on my laptop and it more or less Just Works.  It
boots up quickly, detects all my devices, has accelerated 3D etc.
Now I did move back to FreeBSD because I had problems with its
autodetection system - in particular the graphics card wasn't
configured properly. But that's a problem with Ubuntu specifically, and
I could just as easily have switched to Debian or Gentoo where more
manual configuration is required - just like in FreeBSD.   One of the
strengths of Linux is that if you find one of the new trendy features
doesn't work, you can generally just build a new kernel - without
including it. If it's user-space you don't like - well, that's a
problem with the distribution, not linux itself.

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


Re: FreeBSD and hardware??

2008-11-18 Thread Bruce Cran
On Tue, 18 Nov 2008 15:40:09 +0100
Manfred Usselmann [EMAIL PROTECTED] wrote:

 On Tue, 18 Nov 2008 14:18:13 +0100 (CET)
 Wojciech Puchar [EMAIL PROTECTED] wrote:
 
   usage or need.
  
   You seem to be reserving FBSD only for the experts. I wouldn't be
   here
  
  is someone that simply use unix an expert?
  
  no.
  
  
   By constantly repeating that UNIX is no Windows replacement you
   are
  
  and i will repeat it because it's true. it's every other unix
  replacement.
  
  as linux tries for many years to be windows replacement - it's both
  low end unix and low end windows replacement, windows for poor.
 
 This is nonsense. The Windows interface itself is quite limited and
 not very powerful. Compared e.g. with the old OS/2 desktop, which was
 really powerful, flexible (and object oriented). How disappointed I
 was when Win/95 came out being an OS/2 user at that time. From what I
 have read even the user interface of Mac OS X is much better that
 Windows although they have a much smaller market share. Anyhow, of
 course you can fully replace Windows with a unix(-like) system and a
 suitable desktop enviroment (e.g. KDE, Gnome, XFCE). It depends on
 your specific requirements and if applications exist which do what
 you need. But saying that GUI's under Unix are per se inferior is
 just spreading FUD. Leave that to MS. ;-)
 
 Just a small example, how limited Windows really is: Even today it is
 not possible to configure the standard interface of Windows XP (Luna)
 in any other color than blue, olive green and silver. LOL.
 

I think the fundamental problem with the Windows UI is that it's trying
to cater for both advanced (e.g Shutdown, Restart, Sleep, Hibernate or
Log Off in Vista) and beginner users (Clippy, lots of wizards) at the
same time. As a result it's far too complex for everyday users but
doesn't have the flexibility that the really advanced users would
like.  An example of the complexity can be found in the mouse
operations: it's taken for granted that mice have two buttons so
Windows Explorer takes advantage of that: for most things you
left-click but for others you right-click.  I think even that's too
much for a lot of people who can't memorise the rules for the different
operations - and it's not for lack of trying!  It's something that
Apple got right: I find OS X to be incredibly limiting since
right-click isn't a first-class citizen, keyboard shortcuts aren't
enabled by default and it seems to be necessary to move the mouse a lot
to get things done. However for most people it works perfectly and is so
much simpler that they can learn it much better than they have
Windows.  

I think that's where the likes of Gnome and KDE go wrong too,
in trying to cater for two types of users at once and possibly failing
both. I think beginners might actually be better off using one of the
simpler window managers like Window Maker which have fewer items on
the screen with simple rules to get things done.  

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


Re: FreeBSD and hardware??

2008-11-19 Thread Bruce Cran
On Wed, 19 Nov 2008 10:07:14 +0100 (CET)
Wojciech Puchar [EMAIL PROTECTED] wrote:

  I think the fundamental problem with the Windows UI is that it's
  trying to cater for both advanced (e.g Shutdown, Restart, Sleep,
  Hibernate or
 
 well funny - that being able to restart is being advanced user. good
 to know.
 

Actually, I think it is.  See
http://www.joelonsoftware.com/items/2006/11/21.html for the reasoning.

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


Re: large binary, why not strip ?

2008-11-27 Thread Bruce Cran
On Thu, 27 Nov 2008 07:32:23 +
Matthew Seaman [EMAIL PROTECTED] wrote:

 Paul B. Mahol wrote:
  On 11/26/08, Matthew Seaman [EMAIL PROTECTED] wrote:
  Matthew Seaman wrote:
  Kris Kennaway wrote:
 
  Bonus points if you come up with a patch to do this: in most
  cases it will be a simple matter of changing the port's
  do-install: target to use INSTALL_* macros instead of cp/bsdtar
  etc.  This would be a good project to get some familiarity with
  the ports tree.
  Would it be worthwhile to add a test and warning that all
  installed binaries
  have not been stripped to the 'security-check' target in
  bsd.port.mk? That's
  not really what that target was intended for (feeping creaturism
  alert!) but
  it's the obvious place to put such a test.
 
  Probably cleaner to create a whole new target, but that's going to
  duplicate
  some code.
 
  H... I shall work up some patches, probably over the weekend,
  so there's
  something substantive to talk about.
  Done: ports/129210
 
  For the record, I also discovered that, contrary to what I said
  earlier, there is  apparently one class of binary object that will
  not work correctly if stripped: kernel loadable modules.
  
  Kernel loadable modules are already stripped (--strip-debug).
  
 
 KLDs aren't stripped in a way that file(1) recognises:
 
 happy-idiot-talk:/boot/kernel:% file if_em.ko 
 if_em.ko: ELF 32-bit LSB shared object, Intel 80386, version 1
 (FreeBSD), dynamically linked, not stripped
 
 Unfortunately file(1) seems to be about the only tool available to
 test a priori whether a binary object is stripped or not.  It's
 possible that objdump(1) or readelf(1) could do a similar thing, but
 I can't work it out from those man pages.

It seems nm also tells you fairly simply whether a file contains
symbols or not: 

 nm /bin/ls
nm: /bin/ls: no symbols
 nm /usr/local/bin/a2p
004030d0 T Myfatal
00510308 D No
0051a200 B Str
00510300 D Yes
00519e00 A _DYNAMIC
[...]

KLD .ko files are built with full debug data but the source
information (filenames, line numbers etc.) is stripped out into
separate .ko.symbols files, in a similar way that Windows uses .PDB
files; it lets you store the debug information separately and only
match them up if something goes wrong.

To see if a binary contains source data, you can run 'readelf
-w'; no output seems to mean it couldn't find any data.

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


Re: FreeBSD and hardware??

2008-12-02 Thread Bruce Cran
On Tue, 02 Dec 2008 14:04:51 -0500
michael [EMAIL PROTECTED] wrote:
 Bob McConnell wrote:
  2. Do an SMB mount of remote directories onto the desktop or your
  home directory. Open any application and access files in that
  directory as easily as when they are on the local drive.
[...]
 also, my vlc sees any mounted drive or directory, no matter the 
 protocol. so does mplayer, etc. i don't know why your system doesn't 
 operate correctly, but i don't have that issue at all.
 e,g:
 /mnt/Azureus Downloads
 this mount is mounted over samba from a computer on the other side of 
 the house, and i see everything on it and play my files over the
 network.

But it doesn't work if you use Places - Connect to Server - the share
appears on the Desktop as though it's mounted, but you have to realise
that it's actually a GVFS mount, not a kernel-level mount.  So only
Gnome applications which know about GVFS are able to see the files.

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


Re: Swapping to MMC (Was: To swap or not to swap)

2008-12-02 Thread Bruce Cran
On Tue, 2 Dec 2008 22:46:40 +
RW [EMAIL PROTECTED] wrote:

 On Tue, 2 Dec 2008 20:47:26 +
 Anthony M. Rasat [EMAIL PROTECTED] wrote:
 
 
  Pros: 1) System requires swap. Period. 2) Swap may need size in
  range between 2.17 times to 2.22 time or whatever size it need.
  This is not prohibited by Eee's SSD size (4GB btw, 701 series).
 
 Add what swap you need, but in my experience things get pretty slow
 before you even reach 1x system memory on hard disks. AFAIK the 2x
 figure is to do with saving kernel dumps, which you probably don't
 want to bother with.
 
  
  Cons: 1) Since SSD is manufactured have limited lifetime (around
  100,000 times write operation or so, I read it somewhere), swapping
  to SSD is more likely not a wise thing to do.
 
 I don't think it's much of a problem with modern wear-levelling.
 It's 100,000 writes per block with the writes being spread evenly over
 the device (albeit with extra write for the wear-levelling). 
 
 There are few writes to swap until you run low on memory, so simply
 having swap wont by itself wear out the device.
 
  Two against one. I concurr that swap is needed. However since SSD in
  701 series is not removable, having a bad sector in SSD is one thing
  you don't want to have.
 
 I would think they have spare sectors like hard disks do.
 
 
  performances? And what happened if FreeBSD kernel suddenly lose its
  swap file by absent-minded human? Is it going to be just angry or
  having massive heart attack?
 
 
 I'm not sure whether an active swap file can be deleted or not, but it
 would be owned by root, so not deletable by a normal user. I suspect
 that it would behave like an open file and not be genuinely deleted
 until swapoff'ed. In any case it's not more of a risk than deleting
 any critical file.

I suspect it was more a worry about someone pulling the MMC card out of 
the slot; in that case I think FreeBSD would panic rather quickly!
Another thing to consider is that the bus the MMC sits on is probably
somewhat slower than the bus the SSD is on, so any swapping is going
to slow the system down even more than usual.

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


Re: To swap or not to swap

2008-12-04 Thread Bruce Cran
On Thu, 4 Dec 2008 23:16:23 +
Frank Shute [EMAIL PROTECTED] wrote:

 The alternative to not having swap is a machine that on occasion could
 run out of memory. I don't know what happens in those circumstances
 but I doubt if it's pretty.

FreeBSD behaves fairly nicely when it runs out of memory: when I last
checked it killed off the memory hog, as one might expect. There's an
argument that the memory hog might just be your important
database or something and the right course of action would be to panic
and make sure someone gets alerted to the fact the machine's run out of
memory; however the current behaviour seems good to me.

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


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Bruce Cran
On Fri, 05 Dec 2008 04:30:20 +
[EMAIL PROTECTED] wrote:

 I'm just curious to see how it looks for my own sanity's sake. At
 work, someone got the grand idea that we should move to Windoze
 embedded (CE and XPe) and it's been quite discouraging I must say,
 though I must admit, it's nice to actually know why Windows is ugly
 underneath. From a programming perspective, it's just not simplistic.
 Anyway, I digress, I'm just curious to see how things compare to
 Windows on similar benchmarks to what Kris provided if its ever been
 done.


The userland win32 API might be rather unpleasant but I was surprised
to learn to driver interface in the kernel is actually quite nice, and
isn't too dissimilar to FreeBSD in some ways.  In
terms of performance Windows-based machines have made it into the
Top500 list of supercomputers, so at the high end performance must be
acceptable at least.

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


Re: what is umtxn

2008-12-05 Thread Bruce Cran
On Sat, Dec 06, 2008 at 03:36:29AM +, RW wrote:

 What's procstat?  find isn't finding it, neither is make search in
 ports. 

It's a new utility that was introduced into -CURRENT in the past year
and seems to have been MFC'd at least to 7.x. It should be in
/usr/bin

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


Re: FreeBSD cannot power down

2008-12-06 Thread Bruce Cran
On Thu, Dec 04, 2008 at 03:42:51AM -0800, Unga wrote:
 --- On Tue, 12/2/08, Unga [EMAIL PROTECTED] wrote:
 
  From: Unga [EMAIL PROTECTED]
  Subject: FreeBSD cannot power down
  To: freebsd-questions@freebsd.org
  Date: Tuesday, December 2, 2008, 11:22 PM
  Hi all
  
  After a kernel recompilation on i386 RELENG_7 (not the
  latest), I cannot power down the machine.
  
  kldstat shows acpi.ko is loaded.
  
  It used to switch off but now the shutdown -p
  now halts the system with following messages:
  The operating system has halted.
  Please press any key to reboot.
  
  What else could I check to identify the cause? 
  
  Appreciate your ideas on this.
  
 
 I had a look at source code. The program flow seems to be is as follows:
 
 shutdown = (signals) init = reboot() = boot() = shutdown_final = 
 shutdown_halt() = cpu_halt()
 
 I did not see which function is called to request a power down.
 
 The __asm__ (hlt) doesn't power down, isn't it?
 
 Could you guys help me to identify how shutdown request a power down.
 

HLT is just an old power-saving instruction that was traditionally run 
in the idle loop.  From reading the code it looks like the system 
should be powered off during poweroff_wait but I can't see where ACPI is 
told to remove power.   You might get more help by asking on the 
freebsd-acpi list.

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


Re: Persistent Kernel Variables

2008-12-25 Thread Bruce Cran
On Thu, 25 Dec 2008 07:39:18 -0800
Jason C. Wells j...@highperformance.net wrote:

 I have a new kernel variable in /boot/device.hints.
 
 kern.timecounter.hardware=i8254
 
 but it's not set during boot.   I have other hints that are set
 during boot.  Why is kern.timecounter.hardware not being set?  How
 can I fix it.

I think it's something that has to be set later during boot,
via /etc/sysctl.conf.  I tried setting it through /boot/loader.conf and
it didn't work but there's no problem setting it once the system has
booted.

-- 
Bruce Cran
___
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: Perl 5.10?

2008-12-25 Thread Bruce Cran
On Thu, 25 Dec 2008 18:47:21 -0700
Tim Judd taj...@gmail.com wrote:

 Jerry wrote:
  On Tue, 23 Dec 2008 04:06:46 -0800 (PST)
  Dr. Jennifer Nussbaum bg271...@yahoo.com wrote:
 

  Its now just over a year since Perl 5.10.0 was relased, but its
  still not in FreeBSD. (/usr/ports/lang only has 5.8). 
[...]
 on the contrary, when 5.8 was released, it took a long time to move
 to that.  And when I asked that question on IRC (why 5.10 isn't
 currently used), it was described to me that the 5.6 to 5.8 move
 broke everything and caused lots of headache.  World and Kernel used
 to (at least) use perl as a glue to make stuff works.  I bet there's
 at least some 5.8 glue for world or kernel.

perl was removed from the base system back in 2002
(http://lists.freebsd.org/pipermail/freebsd-announce/2002-May/000823.html)
so there can't be anything in the world or kernel build that depends on
it. It's one of the first things installed during an initial ports
installation though.

-- 
Bruce Cran
___
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: Wireless router?

2008-12-27 Thread Bruce Cran
On Sat, 27 Dec 2008 11:27:56 -0800
Corey Chandler li...@sequestered.net wrote:

 Mel wrote:
  On Monday 22 December 2008 14:48:52 Corey Chandler wrote:

  Failing that, the
  Linksys WRT54GL isn't a half bad unit.
  
 
  Yes it is a half bad unit. 
 
 Absolutely-- if you're running out of the box firmware.  I use DD-WRT
 or Tomato specifically to get around the issues you describe.  The
 reason I go for the GL is that it's a more robust platform than their
 standard wrt-54g, which for some ungodly reason they started
 stripping flash and processing power out of after their switch to
 VxWorks.

Probably because they realised they could get away with less memory and
a slower CPU because code runs more efficiently on VxWorks vs. Linux
on the same hardware.  Of course it also provides fewer features than
Linux, so I'd prefer a Linux-based router over VxWorks.

-- 
Bruce Cran
___
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: local copy of handbook

2008-12-29 Thread Bruce Cran
On Mon, 29 Dec 2008 20:27:17 +
Frank Shute fr...@shute.org.uk wrote:

 You can keep a local copy of the docs  update the sources for the
 docs with csup but you have to regenerate them with a make command
 after you have csup'd.
 
 The process is described within this page I just put up:
 
 http://www.shute.org.uk/misc/freebsd_uptodate.html
 
 There maybe some errors there or things I've missed, so apologies for
 that in advance. Any questions, just drop me an email.
 
 It's good practice IMO to have a locally updated copy of the handbook.
 
 You always need the handbook when your 'net connection is down ;)

Are the docs branched?  I tried running a csup with
tag=RELENG_7 and nothing got created; changing the line

doc-all

to

doc-all tag=. 

fixed it and fetched all the docs.

-- 
Bruce Cran
___
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: local copy of handbook

2008-12-29 Thread Bruce Cran
On Tue, 30 Dec 2008 06:12:51 +
Frank Shute fr...@shute.org.uk wrote:

 As Giorgios points out, the docs aren't branched.
 
 I'll try  make it clearer on that page that it's only for
 SUPFILE(source) that there is a branch you have to follow.
 PORTSSUPFILE(ports)  DOCSUPFILE(docs) are just given the current tag,
 which they should have by default.

Sorry I missed where you say to use the doc-supfile; I thought both
src and doc were being fetched using a single cvsupfile like in
Masoom's original email.   On reading the page again it's actually
quite clear that you should use the standard doc-supfile which will
contain the correct tag line.

-- 
Bruce Cran
___
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: Last q of '08...

2008-12-31 Thread Bruce Cran
On Wed, 31 Dec 2008 16:43:53 -0800
Gary Kline kl...@thought.org wrote:

 is there a C-beauitful//reformatter in ports?  need one Badly!!

It's not in ports, but /usr/bin/indent reformats C code.

-- 
Bruce Cran
___
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: hex editors, disk info

2009-01-25 Thread Bruce Cran
On Sun, 25 Jan 2009 23:51:45 +0200
Alex Karpovic alekar2...@gmail.com wrote:

 I need a hex editor able to work directly with disks, preferably
 those, which can be started without X.
 I tried hexcurse, chexedit, bpatch - and it seems that they are unable
 to open /dev/something.

Have you tried /usr/bin/hd? It seems it doesn't have any problem opening
disk devices.

-- 
Bruce Cran
___
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: Laptop battery life on FreeBSD

2009-01-27 Thread Bruce Cran
On Tue, 27 Jan 2009 16:19:31 -0700
Shawn Badger shawnbad...@gmail.com wrote:

 Hi, I recently installed FreeBSD 7.1 on my laptop, replacing Arch
 Linux and I noticed a significant drop in my battery life (from ~3
 hours to ~1.5 hours).  I realize that Linux has their tickless
 kernel, which I am sure explains the difference, but my question
 is...  is there anything I can do in FreeBSD right now to improve
 this?  And is there going to be any work done the kernel to allow the
 hardware to enter into a low-power state for an extended period of
 time? 
 
 My laptop is an Acer Travelmate 4100 which has the following hardware:
- Pentium M 1.6 GHz processer
   - 2 GB RAM
   - integrated video/sound
   - 802.11bg / bluetooth
 
 I'm somewhat of a minimalist and don't use X11.  I've disabled the 
 bluetooth adapter, but frequently use my wireless adapter (intel 
 pro/2200bg).  Does anyone have any suggestions that could potentially 
 extend my battery life?

powerd isn't run by default, so the laptop will always be running at
maximum frequency.  By putting powerd_enable=YES in /etc/rc.conf the
CPU will throttle back whenever the system is idle.

You can also tell FreeBSD to enter lower Cx states when idle by
setting dev.cpu.x.cx_lowest, if it's supported.  For example my VIA
EPIA system has the following dev.cpu tree:

 sysctl dev.cpu
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 533
dev.cpu.0.freq_levels: 533/-1 266/-1
dev.cpu.0.cx_supported: C1/0 C2/90 C3/900
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% 0.00% 0.00%

-- 
Bruce Cran
___
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: Question about install of Fortran compiler

2009-01-28 Thread Bruce Cran
On Tue, 27 Jan 2009 16:30:11 -0500
V. M. Tame-Reyes mt...@instec.cu wrote:

 
 Hello FreeBSD community,
 
 I had a friend download all the files in freeBSD ports site
 (the official one) so i have a large collection of .tbz files
 but i don't seem to be able to find a correct fortran 77
 compiler, i already installed c compiler, but calling g77
 wouldn't work.
 
 Any help anyone could provide ?

With the import of GCC 4.2 the Fortran compiler was removed from the
base system a few versions ago.  There are several in the ports system
you can install instead.

-- 
Bruce Cran
___
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: system time on top output

2009-02-05 Thread Bruce Cran
On Thu, 5 Feb 2009 00:00:35 +0200
Omer Faruk Sen omerf...@gmail.com wrote:

 Hi,
 
 I have a running pgsql server but on heavy loads it consumes lots of
 time in system (more than %50). I can see that
 
 CPU states: 15.4% user,  0.0% nice, 81.9% system,  1.5% interrupt,
 1.2% idle
 
 But how can I debug that kind of system. vmstat and other tools only
 show most cpu is used by system. But how can I go deeper and debug
 that kind of a problem?
 Any tools that you can suggest me?

I've not used it, but I believe DTrace is probably the best tool to
find the cause of the problem.  It's in 7.1 and later.

-- 
Bruce
___
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: RTL8201 not explicitly in 7.1 / 2nd POSTING

2009-02-07 Thread Bruce Cran
On Sat, 07 Feb 2009 11:08:51 -0600
Len Conrad lcon...@go2france.com wrote:

 
 A client wants to buy some TigerDirect/VisionMan 1U's with this mobo:
 
 http://www.biostar-usa.com/mbdetails.asp?model=P4M900%20MICRO%20775
 
 RTL8201 PHY Ethernet
 
 http://www.freebsd.org/releases/7.1R/hardware.html
 
 ... shows only RTL81xx
 
 has anybody got RTL8201 working with FreeBSD 7.1?

I've got a laptop which has a NIC which uses the RTL8201L PHY:

re0: RealTek 8101E/8102E/8102EL PCIe 10/100baseTX port 0x2000-0x20ff
mem 0xd10 1-0xd1010fff,0xd100-0xd100 irq 19 at device 0.0
on pci10 re0: Chip rev. 0x2480
re0: MAC rev. 0x
miibus0: MII bus on re0
rlphy0: RTL8201L 10/100 media interface PHY 1 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
re0: Ethernet address: 00:11:22:33:44:55
re0: [FILTER]

It's now running 8-CURRENT but it used to run 7.1.

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


Re: How to compile a network driver given source code

2009-02-08 Thread Bruce Cran
On Sun, 8 Feb 2009 04:20:48 -0500
Glen Barber glen.j.bar...@gmail.com wrote:

 On Sat, Feb 7, 2009 at 1:13 PM, Glen Barber glen.j.bar...@gmail.com
 wrote:
  On Sat, Feb 7, 2009 at 12:36 PM, Amer Alhabsi
  amer.alha...@gmail.com wrote:
  Hi,
 
  I have Benq Joybook R43 notebook. It has network interface based
  on SiS 191. However, I can't configure it as it does not show up
  in ifconfig nor in sysinstall/configure/networking/interfaces.
  Dmesg says: No Driver Attached.
 
  After some search I found that someone has written a driver but it
  hasn't been put int the official FreeBSD release. I want to try my
  luck with the driver. My question is where to place the source code
  files? and how to compile it (I assume it can be part of a kernel
  rebuild if placed in the right directory)
 
  The source code for the driver consists of the 3 files:
  if_sis19x.c, if_sis19xreg.h and Makefile.
 
 
  Edit the Makefile to match the standard installation directories
  that FreeBSD uses (/usr/local), and use `make'.  Depending on what
  the drivers needs are, you may have to edit more.
 
 
 Erm... I must've had a synaptic misfire.  Not /usr/local,
 but /boot/modules.

/boot/modules doesn't seem to be used any more: modules are put
into /boot/kerneldir which is /boot/kernel by default.

-- 
Bruce Cran
___
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: Bios chip update suggestions

2009-02-11 Thread Bruce Cran
On Sat, 14 Mar 2009 18:37:55 +0800
Fbsd1 fb...@a1poweruser.com wrote:

 Chris Whitehouse wrote:
  Fbsd1 wrote:
  I have an desktop manufactured in 2002 by a South Korean company
  Hyunju. The company is now out of business.
  It's bio's do not allow booting from a usb memory stick.
 
  I want to find an bio's update that adds booting from usb memory
  stick.
 
  I know the desktop uses AWARD bio's chip and the bio's id string
  is 01/08/2002-694T-686-P6VXM2TC-00
 
  All the internet bio's chip update url's found by Google search
  are customized for MS windows.
 
  Suggestions on how or where to purchase the correct bio's chip
  update?
 
  
  What do you mean the update url's are customised for windows? The
  bios doesn't know anything about operating system. Most likely you
  could download a dos boot disk image - google, there are plenty
  around - create a bootable floppy and copy your latest bios image
  and bios update program, eg awdflash.exe onto it. Just boot from
  the floppy and run the update.
  
  Just be sure the bios image is really intended for your motherboard
  and don't interrupt the update.
  
  Chris

 What i mean is all the bio update sites have a utility that runs from 
 the website to fetch your bio id string info. This utility will not
 work on a non-windows operating system.

I'd recommend having a copy of the Ultimate Boot CD
(http://www.ultimatebootcd.com/) for such situations.  I even needed it
when I had Vista x64 installed and found that the flash program wanted
to load an unsigned driver - I had to boot into XP using the CD because
Vista x64 blocked the driver.  

Once booted from the CD you can access the Internet and see local
drives.

-- 
Bruce Cran
___
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: USB Hard disk with LUKS AES encryption regarding.

2009-02-12 Thread Bruce Cran
On Thu, 12 Feb 2009 10:17:38 +0100 (CET)
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

 i don't know what's LUKS AES but it sound like something
 proprietary, so unless LUKS AES software for FreeBSD exist you can't
 do it

I'd not heard of it either but apparently LUKS is the Linux Unified Key
Setup (http://code.google.com/p/cryptsetup/) but it appears nobody's
done the work to port it to FreeBSD.

-- 
Bruce
___
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: kernel compile problems

2009-02-21 Thread Bruce Cran

daemon wrote:

I try to build a 7.1 kernel but when i does

# make depend  make clean depend

make shows :

make : don't know how to make ../../../dev/agp/agp.c. Stop

anyone know anything? Thanks!
  


The process for building a kernel has changed since the days of 4.x.  
Now you should just use:


make buildkernel KERNCONF=configfile

Leave the KERNCONF out to build GENERIC.

See 
http://www.freebsd.org/doc/en/books/handbook/kernelconfig-building.html 
for more details.


--
Bruce Cran
___
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: where is gtk+-2?

2009-02-28 Thread Bruce Cran
On Sat, 28 Feb 2009 11:10:01 -0800 (PST)
gahn ipfr...@yahoo.com wrote:

 Which is the package gtk+-2 located under /usr/ports?

/usr/ports/x11-toolkits/gtk20

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


Re: What does df command use to get Used column?

2009-03-12 Thread Bruce Cran
On Thu, 12 Mar 2009 15:59:54 -0700 (PDT)
Peter Steele pste...@maxiscale.com wrote:

 A typical df command looks like this: 
 
 # df -h 
 Filesystem Size Used Avail Capacity Mounted on 
 /dev/mirror/gm0a 4.8G 2.0G 2.4G 46% / 
 devfs 1.0K 1.0K 0B 100% /dev 
 linprocfs 4.0K 4.0K 0B 100% /proc 
 /dev/mirror/gm0d 3.9G 88K 3.6G 0% /tmp 
 /dev/mirror/gm0e 15G 79M 13G 1% /var 
 /dev/ad4s3e 116G 2.3M 107G 0% /v0 
 /dev/ad6s3e 116G 2.2M 107G 0% /v1 
 /dev/ad8s3e 116G 2.1M 107G 0% /v2 
 /dev/ad10s3e 116G 2.1M 107G 0% /v3 
 
 I know what calls to make to get the Size and Avail columns. I'm
 not sure what df does to get the value for the Used column. Anyone
 know how df gets this value? 

Line 417 of /usr/src/bin/df/df.c:

used = sfsp-f_blocks - sfsp-f_bfree;

-- 
Bruce
___
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: updated world to CURRENT, how to update ports to CURRENT?

2009-03-24 Thread Bruce Cran
On Tue, Mar 24, 2009 at 10:54:31AM +0100, Matthias Apitz wrote:
 
 Hello,
 
 I've updated FreeBSD in some VM from 7.0-REL to CURRENT (without any
 problem); but I'm unsure now how to bring the ports tree /usr/ports to
 CURRENT;
 
 normally in 7.0-REL I've used 'portsnap fetch update', but this will
 perhaps not bring the ports tree to CURRENT; I've read a lot the
 handbook about, but it is not clear for me; should I use CVS as well to
 bring the /usr/ports to CURRENT, or something else?
 

The ports tree isn't versioned like /usr/src; 'portsnap fetch' will
always fetch the latest copy from cvs mainline, and the only way to go back to
a branch (e.g RELENG_5_5_0) is by using csup, which you would only
really want to do if you're using a release of FreeBSD which has gone
out of support, such as 5.x.

-- 
Bruce Cran
___
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: utility that scans lan for client?

2009-03-24 Thread Bruce Cran
On Tue, Mar 24, 2009 at 12:43:34AM -0700, per...@pluto.rain.com wrote:
 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote:
  On Monday 23 March 2009 19:59:36 John Almberg wrote:
   What I'm looking for is a utility that can scan a LAN for attached
   clients... i.e., computers that are attached to the LAN.
  
   I have one box (an appliance that I have no access to), that is on
   the LAN but I don't know what IP address it's using. I'd like to
   complete my network map, and that is the one empty box on my chart.
 
  security/nmap
 
  If the box pings, you can simply scan your LAN like:
  $ nmap -sP 192.168.2.0/24
 
 Or, with no ports needed:
 
 $ ping -n -t 5 -i 10 192.168.200.255
 
 Granted you need to know the broadcast address.  If you know the
 interface name, you can get the broadcast address from ifconfig:

That only works if the OS is configured to reply to broadcast ping,
which appears to be usually disabled nowadays. At least on FreeBSD 7.1
net.inet.icmp.bmcastecho defaults to 0.

-- 
Bruce Cran
___
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: [perl] sysopen(CD, /dev/cd0, O_RDONLY | O_NONBLOCK) fails

2009-03-26 Thread Bruce Cran
On Thu, 26 Mar 2009 22:20:45 +0100
Tobias Rehbein tobias.rehb...@web.de wrote:

 Hi all.
 
 I have a perl script which seems to work fine under Linux but fails
 on FreeBSD. The Problem is the line:
 
 sysopen(CD, /dev/cd0, O_RDONLY | O_NONBLOCK)
 
 After this line the following evaluates to true:
 
 $! eq No such file or directory.
 
 /dev/cd0 is readable and writable for me. I rebooted multiple times
 and tried with and without atapicam. 
 
 sysopen(CD, /dev/acd0, O_RDONLY | O_NONBLOCK)
 
 fails either. So what's up here? Is sysopen a linuxism?
 

sysopen certainly works on FreeBSD:

 perl
use POSIX;
sysopen(CD,/dev/acd0, O_RDONLY|O_NONBLOCK) || perror(sysopen)
 

and before I fixed the permissions:

 perl
use POSIX;
sysopen(CD,/dev/acd0, O_RDONLY|O_NONBLOCK) || perror(sysopen)
sysopen: Permission denied


-- 
Bruce Cran
___
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: [perl] sysopen(CD, /dev/cd0, O_RDONLY | O_NONBLOCK) fails

2009-03-26 Thread Bruce Cran
On Thu, 26 Mar 2009 18:17:46 -0400
Robert Huff roberth...@rcn.com wrote:

 
 Glen Barber writes:
 
I have a perl script which seems to work fine under Linux but
fails on FreeBSD.  The Problem is the line:
   
       sysopen(CD, /dev/cd0, O_RDONLY | O_NONBLOCK)
   
After this line the following evaluates to true:
   
       $! eq No such file or directory.
   
   
   I may be wrong, but shouldn't that be '/dev/acd0' ?
 
   /dev/cd0 = SCSI CD-ROM (and maybe other stuff).
 
   I don't know if that's what the OP has, but it is a possible
 value.

cd0 is also what you get if you use atapicam (ATAPI is SCSI over ATA
from what I remember) - for example cdrecord has traditionally used it
when writing CDs. Apparently the OP has the issue both when using
atapicam (/dev/cd0) and the normal ata node /dev/acd0.

-- 
Bruce Cran
___
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: [perl] sysopen(CD, /dev/cd0, O_RDONLY | O_NONBLOCK) fails

2009-03-27 Thread Bruce Cran
On Fri, 27 Mar 2009 10:44:07 +
Vincent Hoffman vi...@unsane.co.uk wrote:

 On 27/3/09 10:32, Mel Flynn wrote:
  On Thursday 26 March 2009 22:20:45 Tobias Rehbein wrote:

  Hi all.
 
  I have a perl script which seems to work fine under Linux but
  fails on FreeBSD. The Problem is the line:
 
  sysopen(CD, /dev/cd0, O_RDONLY | O_NONBLOCK)
 
  After this line the following evaluates to true:
 
  $! eq No such file or directory.
  
 
  If you're running this in a jail, then cd0 is hidden by devfs,
  hence the ENOENT. You will need to provide a jail specific ruleset,
  or override devfsrules_jail from /etc/defaults/devfs.rules
  in /etc/devfs.rules so it applies to all jails without modification
  to /etc/rc.conf. 
 By default for an ATA/ATAPI CDROM, you get an /dev/acd0 not a /dev/cd0
 in FreeBSD.
 
 [r...@seaurchin ~]# ls -la /dev/cd0
 ls: /dev/cd0: No such file or directory
 [r...@seaurchin ~]# ls -la /dev/acd0
 crw-r-  1 root  operator0,  74 Feb  6 12:11 /dev/acd0
 [r...@seaurchin ~]#
 
 To have a /dev/cd0 either use a scsi CDROM or kldload atapicam which
 allows ATAPI devices to be accessed via the cam subsytem and will
 create a /dev/cd0 node
 
 [r...@seaurchin ~]# kldload atapicam
 [r...@seaurchin ~]# ls -la /dev/cd0
 crw-r-  1 root  operator0, 113 Feb  6 12:11 /dev/cd0
 
 or just change the code to use /dev/acd0
 

From the original message:

/dev/cd0 is readable and writable for me. I rebooted multiple times and
tried with and without atapicam.

So it sounds like the OP is aware of the different device nodes created
with and without atapicam, has checked he has permission to access the
appropriate device and has come across a problem with perl itself.

-- 
Bruce Cran
___
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: Question about forcing fsck at boottime

2009-03-31 Thread Bruce Cran
On Tue, 31 Mar 2009 11:35:11 +0530
manish jain invalid.poin...@gmail.com wrote:

 
 Hi,
 
 I am migrating from Linux and am still learning the basics of
 FreeBSD. One thing that I would to carry over from my Linux days is
 to force an fsck on all filesystems at system startup. On Linux, this
 was simply a matter of editing /etc/rc.sysinit. Things seem a bit
 more complicated in the BSD world. Can somebody please point me in
 the right direction ?
 

I found this from a post last year:

echo '/sbin/fsck -y -f'  /etc/rc.early

-- 
Bruce Cran
___
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: Why?? (prog question)

2009-03-31 Thread Bruce Cran
On Tue, 31 Mar 2009 11:21:22 +0200
Polytropon free...@edvax.de wrote:

 4. Use the predefined return codes, don't hardcode them.
FreeBSD has EXiT_SUCCESS and EXIT_FAILURE, they're for
maximum compatibility (such as with Linux). There are
more exit codes for differentiation, but they're specific
to FreeBSD, as far as I know.

Linux seems to have adopted sysexits.h too, which provides error codes
such as EX_USAGE and EX_CANTCREAT. However, in FreeBSD at least the most
common programming style is to use 1 for error and 0 for success - e.g.
from style(9):

errx(1, number overflowed);

-- 
Bruce Cran
___
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: Build/Install world via ssh

2009-04-01 Thread Bruce Cran
On Wed, 1 Apr 2009 22:38:47 +0100
Simon Griffiths simon.griffi...@tenenbaum.co.uk wrote:

 Hello,
 
 I tried to get an answer to this via web searches etc.  I have a
 freebsd 7 box that I plan on upgrading remotely via 
 
 Make buildworld
 Make buildkernel KERNCONF=xyz
 
 Now im stuck,  I cannot get it down to single user because I only have
 access via ssh.  Would it hurt to 
 
 Make installkernel KERNCONF=xyz
 Make installworld
 
 Mergemaster etc.
 
 Reboot
 
 ?
 

Don't forget a 'mergemaster -p' too before installing.

Officially running installworld in multi-user mode isn't supported
because although it usually works, it can fail.  What I do when
upgrading over ssh is to kill off everything except sshd and essential
things like ppp so as little as possible is left that could cause
problems - that includes cron and syslogd.  I've never had any problems
but I know it's discouraged because you could be left with a broken
system if something does go wrong.

-- 
Bruce Cran
___
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: Question about forcing fsck at boottime

2009-04-05 Thread Bruce Cran
On Sun, 5 Apr 2009 21:40:52 +0100
Chris Rees utis...@googlemail.com wrote:

 2009/3/31 Oliver Fromme o...@lurza.secnetix.de:
  Chris Rees utis...@googlemail.com wrote:
    2009/3/31 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl:
    
     IMHO this background fsck isn't good idea at all
   
    Why?
 
  Google background fsck damage.
 
  I was bitten by it myself, and I also recommend to turn
  background fsck off.  If your disks are large and you
  can't afford the fsck time, consider using ZFS, which
  has a lot of benefits besides not requiring fsck.
 
  Best regards
    Oliver
 
 
 Right... You were bitten by background fsck, what _exactly_ happened?
 All the 'problems' here associated with bgfsck are referring to
 FreeBSD 4 etc, or incredibly vague anecdotal evidence. Have you
 googled for background fsck damage? Nothing (in the first two pages at
 least) even suggests that background fsck causes damage.


http://www.google.co.uk/search?q=background+fsck+corruption

You'll find the first few results are about panics during background
fsck resulting in an endless cycle of boot-panic-reboot, which don't
occur with foreground fsck. And at least the first result is from 6.x.

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


Re: How big can a tar file get?

2009-04-06 Thread Bruce Cran
On Mon, 6 Apr 2009 19:25:03 -0400
John Almberg jalmb...@identry.com wrote:

 Because of a big problem I had this weekend, I need to do an  
 emergency backup. I'm basically just creating a tar file of my /home  
 directory.
 
 My question: how big can a file get on FreeBSD? This tar.gz file is  
 already 5G. Hard drive space is no problem, but as I'm watching this  
 file grow, I'm wondering if there is some file size limit that is  
 going to make this long backup abort.
 
 Naturally, that will happen when the backup is almost complete :-)

With the default blocksize (16384) UFS2 can deal with files up to 128TB.
However traditional tar only supports up to 8GB while the newer ustar
format goes up to 64GB.  It seems that at least on 7.x tar creates
ustar archives by default.

-- 
Bruce Cran
___
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: iwi-firmware-kmod port

2009-04-14 Thread Bruce Cran
On Wed, 15 Apr 2009 00:33:13 +1000
caleb s0x...@netspace.net.au wrote:

 hi,
 
 I have just installed FreeBSD on one of my laptops. It has a wireless
 adapter (intel 2200) so I need to get it working. I went into the
 ports and tried to install
 
 /usr/ports/net/iwi-firmware-kmod
 
 but got an error;
 
 === iwi-firmware-kmod-3.0_3 is already included in the base system.
 *** Error code 1
 
 Does this mean the kernel module is install? or the firmware
 installed?

See iwi(4) - the firmware is in src/sys/contrib/dev/iwi but will be
loaded automatically if you have device firmware in your kernel
config file.

-- 
Bruce Cran
___
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: hard drive performance

2009-04-15 Thread Bruce Cran
On Wed, 15 Apr 2009 13:54:13 +0200 (CEST)
Alexander Best alexbes...@math.uni-muenster.de wrote:

 hi there,
 
 i have 2 hard drives running. the first one is SATA300 and the other
 one UDMA100. here are the dmesg entries:
 
 ad0: 238474MB SAMSUNG SP2504C VT100-50 at ata0-master SATA300
 ad1: 157066MB Hitachi HDS722516VLAT80 V34OA63A at ata4-master
 UDMA100
 
 i've tried to test the drives' performances using the following
 commands:
 
 dd if=/dev/ad0 of=/dev/null bs=1m count=300
 and
 dd if=/dev/ad1 of=/dev/null bs=1m count=300
 
 the results are:
 ad0 = 314572800 bytes transferred in 4.325645 secs (72722751
 bytes/sec) ad1 = 314572800 bytes transferred in 5.166126 secs
 (60891430 bytes/sec)
 
 the results for ad0 are a bit disappointing though. is this normal or
 is bs=1m wrong?

70MB/s is a very good transfer rate for a hard drive. The 300MB/s rate
refers to the maximum the physical interface can support, but drives
never get close to that because they can't read from disk at that
speed.

-- 
Bruce Cran
___
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 space in lost+found directory (formerly: SORRY. NO SPACE IN lost+found DIRECTORY)

2009-04-16 Thread Bruce Cran
On Thu, 16 Apr 2009 14:03:58 +0100
Chris Rees utis...@googlemail.com wrote:

2009/4/16 vijay kumar vijay.ku...@nirvanainfocom.com:

 SORRY. NO SPACE IN lost+found DIRECTORY  

 Please don't shout.

fsfsck_ffs/dir.c:467:   pfatal(SORRY. NO SPACE IN
lost+found DIRECTORY

Maybe we should tell FreeBSD to stop shouting too? :)

-- 
Bruce Cran
___
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: Support for Apple iBook keyboards

2009-04-17 Thread Bruce Cran
On Fri, 17 Apr 2009 15:12:16 +0100
jigger smith jig...@webtribe.net wrote:

 Hi,
 
 I would like to use FreeBSD on my Apple G4 iBook, can you tell me if
 the ADB keyboard is supported in the latest version available?
 
 I use FreeBSD on both my i386's and servers, so it would make sense to
 use it on my laptop instead of OpenBSD.

ADB support was added fairly recently and is only available on
-current and hasn't been MFC'd to -stable.  On the G4 you'll probably
want to run the following at the OpenFirmware prompt to make the CPU
run at full speed:

dev /cpus/PowerPC,g...@0
set-dfs-high

You can find powerpc -current ISO images at
pub/FreeBSD/snapshots/200812 on most FreeBSD ftp mirrors - I can't
find any newer images, they don't seem to have been built for powerpc in
February.

-- 
Bruce Cran
___
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: write_dma error

2009-04-19 Thread Bruce Cran
On Sun, 19 Apr 2009 08:49:10 -0400
Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote:

 Hmm.  ICRC errors are about the controller talking to the disk
 electronics.  They don't generally have anything to do with the 
 magnetic medium itself.
 
 Try replacing the cable.

The only time I've seen ICRC errors was when FreeBSD was programming
UDMA100 mode when I only had a UDMA33 cable installed. Overridding the
mode using atacontrol solved it, as did installing a UDMA66 cable.

-- 
Bruce Cran
___
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: mergemaster -U overwriting modified files

2009-04-25 Thread Bruce Cran
On Sat, 25 Apr 2009 12:10:42 +0200
Peter Schuller peter.schul...@infidyne.com wrote:

 I recently began testing mergemaster -U since the perpetual review
 diff of file I never touched grows annoying real quick.
 
 Unfortunately I recently discovered that it does not seem to do what
 you might expect. For example it nuked my mailer.conf on one machine,
 and my /etc/namedb/named.conf (!!!) on another machine.
 
 Is this a bug or intended? What is the intended functionality of -U?
 

I noticed this recently too: after using mergemaster -U without
problems for a long time it suddenly went and overwrote named.conf on
a recently upgrade of 7-STABLE.

-- 
Bruce Cran
___
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 beastie plush toy?

2009-12-21 Thread Bruce Cran
On Mon, 21 Dec 2009 13:41:05 -0500
Aleksandr Miroslav alexmiros...@gmail.com wrote:

 Where can I purchase a FreeBSD beastie plush toy?

Something like
http://www.freebsdmall.com/cgi-bin/fm/bsdbeanie?id=NkWSe8g8mv_pc=144 ?

-- 
Bruce Cran
___
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: Tuning for very little RAM

2010-01-06 Thread Bruce Cran
On Tue, 05 Jan 2010 20:03:45 +1000
Da Rock freebsd-questi...@herveybayaustralia.com.au wrote:

 Its been a while- work's has been keeping me very busy for months now.
 
 I have revived an old laptop which has very little RAM, and it is
 absolutely hammering the swap.
 
 I'm trying to set it up as a demo for some skeptics with no money, so
 I need email, internet (with plugins), openoffice, acrobat, and wine.
 
 Aside from all that though, for the academics of it how can I help
 this situation? The laptop has around 100MB RAM, with 16k free, and
 has a new install of FreeBSD 8.0.

You can save a bit of memory by building a custom kernel. First, remove
any options you don't need such as INET6, NFS, AUDIT etc. Then, you can
replace device ata with more specific drivers, and device mii with
specific PHY drivers for your NIC. On a 128MB box I have that's running
8-STABLE my kernel is just 4.1MB.

You should also be able to build Xorg so it'll use less memory - for
example by not requiring hald but getting it to read the
configuration from xorg.conf instead.

You can also tell FreeBSD to agressively swap idle processes out by
setting vm.swap_idle_enabled to 1.

-- 
Bruce Cran
___
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: Should root partition be first partition?

2010-02-08 Thread Bruce Cran
On Monday 08 February 2010 14:09:48 Peter Steele wrote:
 I've set up a system with gpart and have the swap partition first followed
  by root, var, and so on. This works fine but I've seen documents that
  always have root first, then swap. Is there any reason that root should be
  the first partition or can it follow swap space?

It may partly be historical: old PCs couldn't boot from past 504MB due to the 
1023 cylinder limitation so /boot had to be first on the disk. 

-- 
Bruce Cran
___
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


Mounting a v1.5 UDF filesystem

2010-02-12 Thread Bruce Cran
I'm trying to mount a UDF filesystem (mount -t udf /dev/acd0 /mnt), and am 
wondering if the error I'm seeing is because the DVD I have uses an 
unsupported revision. I have a v1.5 DVD which I know is ok because Windows 7 
can use it; on FreeBSD the kernel fails to mount it with with the message FSD 
does not lie within the partition!.  I'm wondering if it maybe only supports 
the newer revisions?

-- 
Bruce Cran


signature.asc
Description: This is a digitally signed message part.


Re: Why Linux Firefox doesn't play flash movies?

2010-02-15 Thread Bruce Cran
On Monday 15 February 2010 13:53:27 Alexandre L. wrote:
 I can play Youtube movies using Firefox 3.5.x or Firefox 3.6, and
  linux-f10-flashplugin10 10.0r45.
 
 I followed the tutorial : http://forums.freebsd.org/showthread.php?t=5786

There are also good instructions at 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-
browsers.html

-- 
Bruce Cran


signature.asc
Description: This is a digitally signed message part.


Re: Undocumented Userland Change ?

2010-02-15 Thread Bruce Cran
On Monday 15 February 2010 18:08:01 perr...@copesd.org wrote:
 /usr/bin/window is missing as is the man page for  window on FreeBSD 8.0R.
 I do not see this change documented anywhere, was the file dropped
 by accident ?

It was documented in /usr/src/UPDATING:

20090602:
window(1) has been removed from the base system. It can now be
installed from ports. The port is called misc/window.

-- 
Bruce Cran


signature.asc
Description: This is a digitally signed message part.


Re: how to disable loadable kernel moduels?

2010-02-24 Thread Bruce Cran
On Wed, 24 Feb 2010 16:47:25 -0600 (CST)
Robert Bonomi bon...@mail.r-bonomi.com wrote:

 I'm building custom kernels for use in 'hostile' environments --
 where I need to enforce restricted capabilities, even in the event
 of malicious 'root' access.  (if the bad guy has *physical* access to
 the machine, I know I'm toast, so I don't try to protect against
 _that_ in software -- beyond the usual access-control mechnisms, that
 is.)

See security(7) -
http://www.freebsd.org/cgi/man.cgi?query=securitysektion=7

Securelevel 1 disables the loading of kernel modules; the manual page
has far more details of how to secure the system further.

-- 
Bruce Cran
___
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: compiler flags

2010-02-28 Thread Bruce Cran
On Sunday 28 February 2010 15:31:55 Jerry wrote:
 I am attempting to redo a Gateway GT5220 PC. The CPU is recognized as:
 
 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (2009.16-MHz 686-class
  CPU)
 
 Now, would it be advantageous to set the CPU type in the
 '/etc/make.conf' and possibly '/etc/src.conf' files.

I'd guess that since amd64 is a relatively new platform there shouldn't be 
much advantage to specifying the CPUTYPE. On i386 there's a huge difference 
between an i486 and core2 so it can make sense to specify the CPU, but there's 
much less difference between the various amd64 CPUs.

-- 
Bruce Cran
___
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: Severe instabilities and system lockups

2010-03-08 Thread Bruce Cran
On Monday 08 March 2010 16:52:08 David Jackson wrote:

 Are there any diagnostic tools uch as getting a log of tranmissions on
 USB and probe it, ,or finmd out what code it is lockilng up on ?Has
 anyone else seen these problems with USB disks?

You'll probably get a better response by asking on the freebsd-usb mailing 
list.

The following debug nodes for USB in 8.0 are present:

 sysctl hw.usb | grep debug
hw.usb.ehci.debug: 0
hw.usb.ohci.debug: 0
hw.usb.uhci.debug: 0
hw.usb.ctrl.debug: 0
hw.usb.umass.debug: 0
hw.usb.debug: 0
hw.usb.dev.debug: 0
hw.usb.ugen.debug: 0
hw.usb.uhub.debug: 0
hw.usb.proc.debug: 0
hw.usb.ulpt.debug: 0
hw.usb.ucom.debug: 0
hw.usb.uhid.debug: 0
hw.usb.ukbd.debug: 0
hw.usb.ums.debug: 0

Your first step should probably be to get a verbose boot log (boot -v) - one 
of the USB developers will likely know better than I do which sysctl debug 
nodes to set to get more details.

-- 
Bruce Cran
___
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: md5 of /dev/acd0

2010-03-08 Thread Bruce Cran
On Monday 08 March 2010 11:25:20 Christoph Kukulies wrote:
 I was trying to determine a md5sum from a DVD I had inserted into a
 FreeBSD 8.0
 on my Dell Inspiron 9400 notebook.
 
 I thought dd if=/dev/acd0 | md5 would work but I got Invalid argument.
 
 Trying dd if=/dev/acd0 bs=1048k | md5 worked  in so far that it didn't
 yield an error
 but after the DVD stopped spinning the command  hung and I only could
 bail out using ^C.

Try using bs=2048 .

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


Re: [FreeBSD 8.0] Installing KDE4 from sources: building xmlto fault

2010-03-13 Thread Bruce Cran
On Saturday 13 March 2010 14:08:46 Антон Клесс wrote:
 Good day!
 
 I'm running FreeBSD 8.0-STABLE-201002 amd64.
 
 Trying to install KDE4 from port, compiling the sources, I get xmlto-0.0.23
 building fault:
 
 What do I have to do to continue port installation?

It took me a while to figure out. I guess you've deselected some DocBook 
formats that you may think you'd never want to use, in textproc/docbook - go 
back and reinstate (reconfigure) the default selections, because otherwise 
things break. Don't just reinstate the 4.2 format because things depend on the 
XML formats too :)

-- 
Bruce Cran
___
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: Compiling kernel with gcc43

2010-03-25 Thread Bruce Cran
On Thu, Mar 25, 2010 at 02:18:34PM -0300, Mario Lobo wrote:

 All right !! Thanks for replying !
 
 There are a lot of locations throughout the source code where -Werror is
 enabled
 How can I disable -Werror globally? via src.conf ? will it do it for
 world/kernel?
 will this damage the resulting kernel/world binaries?

You should be able to use NO_WERROR in src.conf to prevent -Werror 
being used.

-- 
Bruce Cran
___
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: make delete-old question (removing old binaries)

2010-04-04 Thread Bruce Cran
On Saturday 03 April 2010 11:04:37 Ihsan Junaidi Ibrahim wrote:
 Hi folks,
 
 I've rebuild my world with NO_MAIL (in src.conf) and a few other NO_
 options however I noticed that related binaries are not removed
 entirely i.e. mailwrapper when I ran make delete-old /
 delete-old-libs. I can see that the old binaries have a timestamp
 older than the binaries rebuilt by the make world process.
 
 [anggerik:/usr/sbin]# ls -l mailwrapper
 -r-xr-xr-x  1 root  wheel  7808 Nov 21 22:31 mailwrapper
 [anggerik:/usr/sbin]# ls -l trac
 traceroute*  traceroute6*
 [anggerik:/usr/sbin]# ls -l traceroute
 -r-sr-xr-x  1 root  wheel  28240 Apr  3 08:54 traceroute
 
 Is this simply a cosmetic issue and I can just remove those binaries
 manually or if not so, is there a special configs needed to remove
 them.
 
 Apologize if this question has been asked before.

You should  be using WITHOUT_ versions of the options - see src.conf(5). Files 
won't be removed unless they're listed in ObsoleteFiles.inc, and it's 
typically not been kept up-to-date. This is being fixed in -CURRENT but for 
just now you can remove the binaries manually.

-- 
Bruce Cran
___
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: question about FreeBSD installing

2010-04-21 Thread Bruce Cran
On Wednesday 21 April 2010 16:50:20 Ross Cameron wrote:
 On Wed, Apr 21, 2010 at 5:35 PM, Michael Powell nightre...@hotmail.com 
wrote:
  王跃辉 wrote:
  hi
  I have a problem when I try to install FreeBSD as client OS on a
  Linux OS.
  
  Sorry, but this does not make any sense to me. How are you trying to
  install FreeBSD on Linux? FreeBSD is an operating system, not an
  application.
 
 It's quite simple, he wants to host a virtualized FreeBSD ontop of a
 Linux server OS.
 
  following the instruction I find that I can't open the website of
  www.fsmware.com to finish some download work.
  it seems that the dns server
  don't support the address in China Mainland. do you have any way to
  solve the problem?
 
 Uhm no idea where the www.fsmware.com domain comes into anything,...
 sorry cant help here.

It's mentioned in several places, including the Handbook:

http://www.freebsd.org/doc/en/books/handbook/virtualization-guest.html

Download the FreeBSD domU kernel for Xen 3.0 and disk image from 
http://www.fsmware.com/;

I'd be happy to host the files that used to be on that site if it would help - 
it would be good to get the broken links fixed because I came across the same 
problem and ended up having to create a Xen image manually.

-- 
Bruce Cran
___
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: Upgrade/Install in one command?

2010-04-21 Thread Bruce Cran
On Wednesday 21 April 2010 18:06:23 Atom Powers wrote:
 I would like to make my configuration management system update and/or
 install packages on FreeBSD. I've been avoiding that little thorn
 because I haven't had very many hosts and updates have been fairly
 rare recently; but no more. (cfengine2)
 
 Basically, I wish pkg_add would upgrade a package if it was already
 installed; of that portupgrade would install a package if it was
 missing. Neither seem to work.
 
 How do you manage packages on a large number of FreeBSD hosts?

I use portmaster, since it seems to mostly DTRT.

-- 
Bruce Cran
___
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: KDE 4.4.2

2010-04-23 Thread Bruce Cran
On Fri, Apr 23, 2010 at 07:58:12PM +1200, Andrew Hill wrote:
 Hi does anyone know if kde 4.4.2 is in freebsd ports?

It's not yet - a big upgrade to Xorg and KDE is being worked on so I 
guess it'll be available in a few days. 

-- 
Bruce Cran
___
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: email address on google through this link

2010-04-27 Thread Bruce Cran
On Tuesday 27 April 2010 21:32:07 Chuck Swiger wrote:
 On Apr 27, 2010, at 1:00 PM, Drew White wrote:
  http://www.mavetju.org/mail/view_message.php?list=freebsd-questionsid=26
  14063
  
  My email address is showing up in google from this thread, I get a lot of
  spam at this email address... Is there anything we can do about this?
 
 Nope, sorry.  Posting to a mailing list which is archived at dozens (if not
 hundreds) of mirrors means the address is public.
 
  Perhaps turning off people's email address showing in these threads is
  possible.. Thank You - Trying to clean up.
 
 Some mailing lists have attempted to obfuscate email addresses.  That seems
 to be mostly futile, as spammers not only suck postings from lists
 directly before some archive tries to obscure them on a webpage being
 displayed, the spammers also use extensive dictionary attacks and will hit
 email addresses which have never been published anywhere.

At least one mailing list I'm on obfuscates the addresses on the server so all 
messages would, for example, appear to come *from* freebsd-
questi...@freebsd.org.

-- 
Bruce Cran
___
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: Firefox3 - can't deinstall

2010-05-01 Thread Bruce Cran
On Saturday 01 May 2010 19:14:28 John Pollock wrote:

 When I cd /usr/ports/www/firefox3 then run make deinstall, I get a error
 message that port is not installed.

You should use pkg_delete instead: running make deinstall could fail if the 
port has been updated since installing it.

-- 
Bruce Cran
___
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: using gpart(8) to slice a disk

2011-02-28 Thread Bruce Cran
On Mon, 28 Feb 2011 14:52:44 +0100
Matthias Apitz g...@unixarea.de wrote:

 I've read the man page of gpart(8) but do not see clearly what I did
 wrong with the above sequence and esp. what would have set the missing
 boot flag?

gpart set -a active -i 1 ad4

-- 
Bruce Cran
___
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: atacontrol spindown 0 does not work

2011-03-01 Thread Bruce Cran
On Tue, 2011-03-01 at 09:21 +0100, David Demelier wrote:

 But I can still hear the noise every 10 seconds, I think atacontrol does 
 not totally close the APM feature of the device.

atacontrol's spindown setting doesn't change anything in the disk
itself: it just controls a timer in the ad(4) driver which sends a
spindown command when it expires. You'll need to keep using ataidle to
fix the APM value.

-- 
Bruce Cran

___
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: atacontrol spindown 0 does not work

2011-03-01 Thread Bruce Cran
On Tue, 2011-03-01 at 11:47 +0100, Matthias Apitz wrote:

 I'm wondering why you would
 prefere atacontrol?

I think everyone's been looking for an official solution.

-- 
Bruce Cran

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


Re: portmaster -afv -no-confirm --clean-distfiles-all command - too much automation???

2011-03-02 Thread Bruce Cran
On Wed, 2 Mar 2011 09:57:14 -0800
Ed Flecko edfle...@gmail.com wrote:

 Do you think that's a little too much automation, or do you think that
 would be pretty safe to run without screwing things up?

I think portmaster's documentation explicitly advises against using -af
to rebuild all ports. See the man page for details.

-- 
Bruce Cran
___
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 kernel init slower than linux

2011-03-04 Thread Bruce Cran
On Fri, 2011-03-04 at 23:10 +0100, David Demelier wrote:

 Why FreeBSD is so slower than Linux to boot the kernel?

I think it's because no concerted effort has been put into optimizing
the boot time on FreeBSD. I tested a stripped-down kernel on my iBook G4
a while ago and it would boot in a couple of seconds - but that was
without any network card, USB support etc.

-- 
Bruce Cran

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


Re: Is it safe to run tcpdump?

2011-03-05 Thread Bruce Cran
On Sat, 5 Mar 2011 11:47:19 -0700
Modulok modu...@gmail.com wrote:

 What do you mean by 'safe'?

As in secure?
http://security.freebsd.org/advisories/FreeBSD-SA-07:06.tcpdump.asc

-- 
Bruce Cran
___
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: Quick question about sound drivers (esp. snd_hda)

2011-03-12 Thread Bruce Cran
On Fri, 11 Mar 2011 15:29:44 -0500
Brian Waters brianmwat...@gmail.com wrote:

 It seems to me that under /dev, you can have the following
 sound-related device files:
 
 dspX
 dspX.Y
 (among others)
 
 I'm having some trouble getting my sound to work (Dell Inspiron
 E1705/Inspiron 9400 with Sigmatel STAC9220 codec). I've read the
 manpages for snd and snd_hda (which is the appropriate driver), and
 increased the verbosity of the drivers and read the kernel log and
 /dev/sndstat, but I still can't quite wrap my head around everything.

If the driver appears to load, then /dev/dsp should be created
automatically when something tries to access it (e.g. cat /dev/random
 /dev/dsp).

-- 
Bruce Cran
___
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: spam?

2011-03-13 Thread Bruce Cran
On Sun, 2011-03-13 at 06:49 -0500, ajtiM wrote:
 In the last week I got four emails like this one today:
 
 From: a href=mailto:br...@cran.org.uk;br...@cran.org.uk/abr/
 To: a href=mailto:per...@pluto.rain.com;per...@pluto.rain.com/abr/
 CC: a href=mailto:free...@edvax.de;free...@edvax.de/a, a 
 href=mailto:lum...@gmail.com;lum...@gmail.com/a, a href=mailto:freebsd-
 questi...@freebsd.orgfreebsd-questions@freebsd.org

That's not from me - it's from a company called ParkLogic who are
forging emails.  See
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2010-12/msg00591.html 
for more details.

-- 
Bruce Cran

___
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: allBSD Japan servers ?

2011-03-25 Thread Bruce Cran
On Fri, 25 Mar 2011 08:59:19 -1000
Al Plant n...@hdk5.net wrote:

 Anybody know what happened to the http; or ftp servers for allbsd.org 
 japan? Did the Tsumnami put them down?

The machine's there but is refusing connections:

 ping6 pub.allbsd.org
PING6(56=40+8+8 bytes) 2a01:348:0:15:5d59:5c40:0:1 --
2001:2f0:104:e001::34 16 bytes from 2001:2f0:104:e001::34, icmp_seq=0
hlim=48 time=269.213 ms 16 bytes from 2001:2f0:104:e001::34, icmp_seq=1
hlim=48 time=268.705 ms 16 bytes from 2001:2f0:104:e001::34, icmp_seq=2

-- 
Bruce Cran
___
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: searching for a good IDE

2011-03-27 Thread Bruce Cran
On Sun, 27 Mar 2011 15:41:28 +0200
Alokat mail...@alokat.org wrote:

 I'm searching for a good IDE for my development stuff - c, c++,
 python, rails, php 
 Can someone advise one?
 And I don't wanna use eclipse. :-)

KDevelop (http://www.kdevelop.org/) 4 is quite good.

-- 
Bruce Cran
___
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: console based sound control

2011-04-03 Thread Bruce Cran

On 03/04/2011 14:59, Alokat wrote:


I'm looking for a sound control tool (like alsamixer) but for oss.

Does someone know one?


Have you tried mixer(8)?
http://www.freebsd.org/cgi/man.cgi?query=mixerapropos=0sektion=0manpath=FreeBSD+8.2-RELEASEformat=html

--
Bruce Cran



Re: am i back up....???

2011-04-03 Thread Bruce Cran

On 02/04/2011 21:54, David Chanters wrote:


You could have just sent yourself an email.  But yes, here you are.


I was going to suggest Gary should have used the freebsd-test mailing 
list but then I realised it's been broken since May last year.


--
Bruce Cran



Re: am i back up....???

2011-04-04 Thread Bruce Cran
On Sun, 03 Apr 2011 13:04:39 -1000
Al Plant n...@hdk5.net wrote:

 Recently I've sent tests to a couple of our subscribers that I know 
 personally since the tests never came back. Thanks for the heads up
 as to why.
 
 Any chance of getting it fixed?

I told the admin about it last year and it doesn't appear to have been
fixed yet.

-- 
Bruce Cran
___
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   3   4   5   >