Re: FreeBSD routing

2005-10-14 Thread Bob Hepple
On Sat, 15 Oct 2005 05:59:53 +0200
Björn König <[EMAIL PROTECTED]> wrote:
> Bob Hepple wrote:
> > [...]
> > I just want to add an arbitrary machine (eg. with IP 192.168.2.214) to my
> > home network 192.168.254.0/24. Under Linux I just do a 
> > 
> > route add -host 192.168.2.214 eth0
> > 
> > and I can ping it.
> > 
> > On FreeBSD I tried both
> > 
> > route add -host 192.168.2.214 192.168.254.245
> > route add -host 192.168.2.214 -interface rl0
> > 
> > but I'm getting some kind of redirect loop. Apparently my use of the
> > FreeBSD route command is wrong.
> >  
> Hello Bob,
> 
> welcome to FreeBSD.
> 
> I won't expect that this will work at all, even not with Linux, because 
> the IP 192.168.254.245 and 192.168.2.214 are of different subnets. 
> Either you use 192.168.254.0/24 or 192.168.2.0/24 in the 10baseT net, 
> but not both. I don't know if Linux makes it possible to do this; I 
> haven't tried it yet. At least I can reproduce your error message with a 
> similar setup. Just assign the IP 192.168.2.245 to rl0 for example; then 
> it should work without problems.
> 
> Regards
> Björn

Hi Björn

I know it looks a bit odd, but Linux is perfectly happy with it. I've
relied on it every day for the last 6 years or so. 

The reason I'm doing it this way is that I have machines at work on the
192.168.2.0/24 network that I access from home over openvpn. So I can't
grab 192.168.2 at home. But I always bring home one of many different
machines - they're already configured to 192.168.2.214. It's so
convenient to be able to access all of 192.168.2 over openvpn _except_
for the one machine 192.168.2.214.

It's just a bit of a fag to re-configure each machine for home use -
particularly as it could be freebsd, linux (x 4 distros), Solaris, AIX,
SCO OS5, SCO UW7, HPUX etc etc and they all configure in different ways.

Oh well.

Thanks very much for confirming it - at least I can stop scouring the man
pages & google - I learned a lot on the way.

I must say I like FreeBSD very much - very stable drivers compared to
Linux whose wifi drivers seem to hang the system quite a lot. That's the
main reason I'm trying to make the move to FreeBSD - my wifi connection
goes about twice as fast (4-5 Mbps on FreeBSD vs 1-2 Mbps with Linux) and
is _much_ more stable.


Bob



-- 
Bob Hepple
mailto:[EMAIL PROTECTED] http://bhepple.freeshell.org
Public Key: http://bhepple.freeshell.org/public_keys.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Hardware Support (USB)

2005-10-14 Thread Peter Clutton
On 10/14/05, T3chn0Phr34k <[EMAIL PROTECTED]> wrote:
>My mouse is a USB mouse, optical from the Gateway
> house, well none of the drivers supports it I was wandering if its
> posible to configure the kernel before starting the installation,

Well everything doesn't need to be stopped because of it, unless you
have some special need, there is no necessity for the mouse to be
configured before installation. The installation does not require a
mouse.

What makes you think the mouse is not supported? Because you haven't
seen the name in the docs? Well this may not be a problem. I would
start the installation and attempt to have the system auto detect it
at the appropriate part of the installation, or run when you run xorg
-configure after installation. When booting option 8 may help - "Start
system with USB mouse" or some such.

Also if this is the "main server" you would probably find it a better
approach to not use a GUI, and thus a mouse at all. You can do
everything necessary for a server from CLI, at the console or through
SSH, or if you want a GUI system for controlling services, maybe
Webmin, which you can access across the network.

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


Re: FreeBSD routing

2005-10-14 Thread Björn König

Bob Hepple wrote:

[...]
I just want to add an arbitrary machine (eg. with IP 192.168.2.214) to my
home network 192.168.254.0/24. Under Linux I just do a 


route add -host 192.168.2.214 eth0

and I can ping it.

On FreeBSD I tried both

route add -host 192.168.2.214 192.168.254.245
route add -host 192.168.2.214 -interface rl0

but I'm getting some kind of redirect loop. Apparently my use of the
FreeBSD route command is wrong.

[...]

Here's the detail: I'm issuing the "route add" commands on "raita" and
trying to reach "rasam":

  internet
|
  router
.192.168.0.1
.
.  wireless 
.

.ath0/192.168.0.18
  raita
|rl0/192.168.254.245
|
-- 10baseT
   |
   |
   |192.168.2.214
 rasam

bash-2.05b# ifconfig -a
rl0: flags=8843 mtu 1500
options=8
inet 192.168.254.245 netmask 0xff00 broadcast 192.168.254.255
inet6 fe80::201:29ff:fe74:99c2%rl0 prefixlen 64 scopeid 0x1 
ether 00:01:29:74:99:c2

media: Ethernet autoselect (none)
status: no carrier
ath0: flags=8843 mtu 1500
inet 192.168.0.18 netmask 0xff00 broadcast 192.168.0.255
inet6 fe80::209:5bff:fee8:b9d2%ath0 prefixlen 64 scopeid 0x3 
ether 00:09:5b:e8:b9:d2

media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
status: associated
ssid Baroona 1:Baroona
channel 6 authmode OPEN powersavemode OFF powersavesleep 100
rtsthreshold 2312 protmode CTS
wepmode MIXED weptxkey 1
wepkey 1:40-bit

[...]


Hello Bob,

welcome to FreeBSD.

I won't expect that this will work at all, even not with Linux, because 
the IP 192.168.254.245 and 192.168.2.214 are of different subnets. 
Either you use 192.168.254.0/24 or 192.168.2.0/24 in the 10baseT net, 
but not both. I don't know if Linux makes it possible to do this; I 
haven't tried it yet. At least I can reproduce your error message with a 
similar setup. Just assign the IP 192.168.2.245 to rl0 for example; then 
it should work without problems.


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


Re: D-Link wireless LAN card not working in 5.3-R

2005-10-14 Thread N Deepak
On Fri, Oct 14, 2005 at 02:41:59PM -0500, Andrew L. Gould wrote:
> 
> Don't forget about:
> 
> device ath_hal
> 
> in the kernel configuration file.
> 
Thanks.  I already found one ath_hal.ko in /boot/kernel, and I could
kldload it successfully.  But when I inserted my DWL-G650+, I got the
same messages:

Oct 15 08:56:30 deepak-bsd53 kernel: cardbus0: Expecting link target,
got 0x2a
Oct 15 08:56:30 deepak-bsd53 kernel: cardbus0: Resource not specified in
CIS: id=10, size=2000
Oct 15 08:56:30 deepak-bsd53 kernel: cardbus0: Resource not specified in
CIS: id=14, size=2
Oct 15 08:56:30 deepak-bsd53 kernel: cardbus0:  at device 0.0
(no driver attached)
Oct 15 08:56:30 deepak-bsd53 kernel: cbb0: CardBus card activation
failed

(I am in FreeBSD 5.3 RELEASE.)

Regards,
Deepak

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


Re: TSC Timer "Quality" ?

2005-10-14 Thread Björn König

Peter B schrieb:


Btw, avoid html encoded email pls.
 


I'm really sorry. :-(

Normally I disapprove HTML mails. I forgot to check that because this is 
not my PC.


Björn

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


Re: How to get a high resolution console for FreeBSD inside a VMWare image?

2005-10-14 Thread Nikolas Britton
On 10/14/05, Jared Evans <[EMAIL PROTECTED]> wrote:
> I know that this isn't exactly a standard configuration (VMWare as opposed
> to native installation) for FreeBSD so most of the answers I found online
> weren't really applicable for me.
>
> I simply wanted a high resolution FreeBSD console PTYs running under VMWare.
> It was surprisingly more complex than I expected:
>
> When attempting to change screen resolution for a console in FreeBSD running
> under VMWare, I ran across this error message:
>
> > vidcontrol -g 100x37 VESA_800x600
>
> vidcontrol: cannot set videomode inappropriate ioctl for device
>
> It seemed to me that VMWare was unable to init VESA correctly in console but
> strangely enough Xorg is capable of changing to a higher resolution without
> any problems.
>
> After some googling:
>
> VESA driver in current source tree checks the NONVGA flag of VESA
> information block when loading. If this flag is set it will refuse to
> initialize. Most VESA adapters do not set this flag, but the virtual display
> adapter in VMWare does.
>
> in src/sys/i386/isa/vesa.c, there is a check for the flag V_NONVGA in line
> 655. If you comment it out, flag check will be bypassed. After all, if Xorg
> can use higher resolution, there shouldn't be a problem using VESA on the
> console!
>
> Re-compiling my kernel to include the below as suggested by several more web
> searches:
>
> options VESA
> options SC_PIXEL_MODE
> options VGA_WIDTH90
>
> rebooting then:
>
> > vidcontrol -g 100x37 VESA_800x600
>
> vidcontrol: operation not supported by device
>
> Any more tips for me?

You computer (VMware) doesn't have a "proper" VESA BIOS and that is
why 800x600 raster text mode won't work etc. FreeBSD 6 has this all
worked just put 'allscreens_flags="MODE_279"' in rc.conf for
1024x768... you can get a list of other modes supported by typing in
vidcontrol -i MODE (I think, can never remember :-)). if you want this
for FreeBSD 5.x then your going to have to manually patch your system,
but I have a simple script that will do it for you. somewhere around
here.. check for patch errors after you run the script.
--
cd /tmp
rm current-vesa_patch.tar.gz
fetch http://www.nbritton.org/uploads/current-vesa_patch.tar.gz
rm -r current-vesa_patch
tar -zxf current-vesa_patch.tar.gz
cd /usr/src/sys/dev/syscons
patch http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: interesting past 4 hours...

2005-10-14 Thread Nikolas Britton
On 10/12/05, Gary Kline <[EMAIL PROTECTED]> wrote:
> This is to anybody with Gnome or KDE insights,
>
> First, both environments do work on my 400Mhz ThinkPad
> (with almost 300M/SDRAM).  KDE has a nicer feel for my tastes
> but the response in beyond crummy even with nearly all
> eye-candy.

Did you mean to say with all eye-candy disabled?... Have you checked out XFCE?

Intro to XFCE:
http://www.xfce.org/index.php?page=overview&lang=en

Here are some flash based demos:
http://www.xfce.org/various/flash_demos.html

The XFCE meta port is in x11-wm/xfce4 and don't forget about all the
plugins: http://www.freebsd.org/cgi/ports.cgi?query=XFCE&stype=all

After you install the XFCE meta port type in rehash and then
startxfce4, if you like it and want to keep it as your default desktop
environment type in "echo "/usr/X11R6/bin/startxfce4" > ~/.xinitrc".
the FreeBSD handbook as a bit about XFCE in section 5.7.4
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11-wm.html

I use KDE on my fast systems and XFCE on the slow ones.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: su - does not ask for password

2005-10-14 Thread Teo De Las Heras
That worked!  I thought I remembered giving root a password!?  So, if
you don't have a password set, one is not asked for?

Teo

On 10/14/05, Andrew P. <[EMAIL PROTECTED]> wrote:
> > My account has a password and when
> > I "su -" I go right in as root without a
> > password prompt. What changed?
> >
> >  Teo
> >
>
> % su
> # passwd
> Changing local password for root
> New Password:
> Retype New Password:
> #
>
> Now you're done.
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Burning DVDs

2005-10-14 Thread Paul Bridger
Hi Edward 

I found this document very useful recently for burning CD's and DVD's.  It's 
CLI only (no GUI's), but is quite straight forward when you get the hang of 
it: 

http://networking.ringofsaturn.com/Unix/FreeBSD-Burning.php 

Paul 





Robert Marella writes: 


On Fri, 14 Oct 2005 23:50:34 +0200
edward <[EMAIL PROTECTED]> wrote: 


Hi all,
My DVD drive read and mounts CDs and DVDs properly, but K3B refuses to
burn : "K3B did not find a suitable writer. You will only be able to 
create an image". Gut feeling is that there probably is something

wrong in the drive's read/write permission. I checked the /etc/fstab
file for read/write status and I got the following : 


# Device   Mountpoint  FStype  Options Dump
Pass# /dev/ad0s3bnoneswapsw
0   0 /dev/ad0s3a/   ufs rw
1   1 /dev/acd0  /cdrom  cd9660  ro,noauto
0   0 


This was the default set up that I haven't altered (yet...). Is there
a reason why the DVD drive would be set in read only mode, as a
default ? Should I just launch vi and edit the line from ro,noauto to
rw,noauto or is there another way ?
Thanks,
Edward 





less /usr/ports/sysutils/k3b/pkg-message 


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


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


help with making a release

2005-10-14 Thread Antoine Solomon
Hello everyone,

I was trying to make a release from src but for some reason it failed. Not
sure if i missed something.
Here is the log file of my build

/R/stage/trees/base/usr/share/man/cat3/uu_lock.3.gz ->
/R/stage/trees/base/usr/share/man/cat3/uucplock.3.gz
/R/stage/trees/base/usr/share/man/cat3/uu_lock_txfr.3.gz ->
/R/stage/trees/base/usr/share/man/cat3/uucplock.3.gz
/R/stage/trees/base/usr/share/man/cat3/uu_unlock.3.gz ->
/R/stage/trees/base/usr/share/man/cat3/uucplock.3.gz
/R/stage/trees/base/usr/share/man/cat3/uu_lockerr.3.gz ->
/R/stage/trees/base/usr/share/man/cat3/uucplock.3.gz
/R/stage/trees/base/usr/share/man/cat3/pidfile_open.3.gz ->
/R/stage/trees/base/usr/share/man/cat3/pidfile.3.gz
/R/stage/trees/base/usr/share/man/cat3/pidfile_write.3.gz ->
/R/stage/trees/base/usr/share/man/cat3/pidfile.3.gz
/R/stage/trees/base/usr/share/man/cat3/pidfile_close.3.gz ->
/R/stage/trees/base/usr/share/man/cat3/pidfile.3.gz
/R/stage/trees/base/usr/share/man/cat3/pidfile_remove.3.gz ->
/R/stage/trees/base/usr/share/man/cat3/pidfile.3.gz
===> lib/libypclnt (distribute)
cd /usr/src/lib/libypclnt; /usr/obj/usr/src/make.i386/make install
-DNO_SUBDIR DESTDIR=/R/stage/trees/base SHARED=copies
install -C -o root -g wheel -m 444 libypclnt.a /R/stage/trees/base/usr/lib
install -C -o root -g wheel -m 444 libypclnt_p.a /R/stage/trees/base/usr/lib
install -s -o root -g wheel -m 444 libypclnt.so.2/R/stage/trees/base/usr/lib
ln -fs libypclnt.so.2 /R/stage/trees/base/usr/lib/libypclnt.so
install -C -o root -g wheel -m 444 /usr/src/lib/libypclnt/ypclnt.h
/R/stage/trees/base/usr/include
===> lib/libalias (distribute)
cd /usr/src/lib/libalias; /usr/obj/usr/src/make.i386/make install
-DNO_SUBDIR DESTDIR=/R/stage/trees/base SHARED=copies
install -C -o root -g wheel -m 444 libalias.a /R/stage/trees/base/usr/lib
install -C -o root -g wheel -m 444 libalias_p.a /R/stage/trees/base/usr/lib
install -s -o root -g wheel -m 444 libalias.so.5 /R/stage/trees/base/lib
ln -fs /lib/libalias.so.5 /R/stage/trees/base/usr/lib/libalias.so
install -C -o root -g wheel -m 444
/usr/src/lib/libalias/../../sys/netinet/libalias/alias.h
/R/stage/trees/base/usr/include
install -o root -g wheel -m 444
libalias.3.gz/R/stage/trees/base/usr/share/man/man3
install -o root -g wheel -m 444
libalias.3.cat.gz/R/stage/trees/base/usr/share/man/cat3/libalias.3.gz
===> lib/libarchive (distribute)
printf: not found
"/usr/src/lib/libarchive/Makefile", line 28: warning: "printf "%d.%02d.%03d"
1 2 36" returned non-zero status
expr: not found
"/usr/src/lib/libarchive/Makefile", line 31: warning: "expr 1 + 2" returned
non-zero status
cd /usr/src/lib/libarchive; /usr/obj/usr/src/make.i386/make install
-DNO_SUBDIR DESTDIR=/R/stage/trees/base SHARED=copies
printf: not found
"/usr/src/lib/libarchive/Makefile", line 28: warning: "printf "%d.%02d.%03d"
1 2 36" returned non-zero status
expr: not found
"/usr/src/lib/libarchive/Makefile", line 31: warning: "expr 1 + 2" returned
non-zero status
install -C -o root -g wheel -m 444 libarchive.a /R/stage/trees/base/usr/lib
install -C -o root -g wheel -m 444 libarchive_p.a
/R/stage/trees/base/usr/lib
install -s -o root -g wheel -m 444 libarchive.so.
/R/stage/trees/base/usr/lib
install: libarchive.so.: No such file or directory
*** Error code 71

Stop in /usr/src/lib/libarchive.
*** Error code 1

Stop in /usr/src/lib/libarchive.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src/release.
+ umount /dev
*** Error code 1
1 error


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


Re: sh Scripting - String Manipulation

2005-10-14 Thread Giorgos Keramidas
On 2005-10-14 10:47, Drew Tomlinson <[EMAIL PROTECTED]> wrote:
> On 10/14/2005 9:27 AM Paul Schmehl wrote:
> >for files in /my/dir/for/files/*.jpg
> >do
> >NEWFILES=`$files | cut -d'/' -f 6`
> >ln -s $files /new/dir/for/pics/$NEWFILES
> >done
>
> But there is still one problem.  This won't search recursively which is
> why I was using find.  However if I start with
>
> "for files in `find /multimedia -iname "*.jpg" -print"
>
> this would probably work.  I'll try it and see.  Or is there some
> other (better) way to search for files recursively?

find(1) is usually nice.  One thing you may want to be careful about
with find in a for loop is that filenames with whitespace are probably
going to end up in a huge mess.  It may be better to use something like
the following:

find /multimedia -iname '*.jpg' | \
while read fname ;do
# Manipulate ${fname}
done

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


FreeBSD routing

2005-10-14 Thread Bob Hepple
Hello!

I'm new to FreeBSD (5.3) and trying to make the transition from Linux. One
thing that has me stumped is a routing question... it must be something
really simple because I can do it all the time in Linux.

I just want to add an arbitrary machine (eg. with IP 192.168.2.214) to my
home network 192.168.254.0/24. Under Linux I just do a 

route add -host 192.168.2.214 eth0

and I can ping it.

On FreeBSD I tried both

route add -host 192.168.2.214 192.168.254.245
route add -host 192.168.2.214 -interface rl0

but I'm getting some kind of redirect loop. Apparently my use of the
FreeBSD route command is wrong.

BTW - I don't want to use DHCP for various reasons (mainly because I need
to ssh to the new machine and therefore need to have a known IP address -
but also because some of the machines I need to add don't support DHCP
clients or else setting them up to do so is just too much).

I haven't got round to natd and firewalling stuff yet and I won't try
turning these on until I can at least ping the new box. For now, these
features are not enabled in /etc/rc.conf.

Just to eliminate the obvious - yes I booted Linux on this machine
and tested it and it worked - so it's not a h/w problem. 

Here's the detail: I'm issuing the "route add" commands on "raita" and
trying to reach "rasam":

  internet
|
  router
.192.168.0.1
.
.  wireless 
.
.ath0/192.168.0.18
  raita
|rl0/192.168.254.245
|
-- 10baseT
   |
   |
   |192.168.2.214
 rasam

bash-2.05b# ifconfig -a
rl0: flags=8843 mtu 1500
options=8
inet 192.168.254.245 netmask 0xff00 broadcast 192.168.254.255
inet6 fe80::201:29ff:fe74:99c2%rl0 prefixlen 64 scopeid 0x1 
ether 00:01:29:74:99:c2
media: Ethernet autoselect (none)
status: no carrier
ath0: flags=8843 mtu 1500
inet 192.168.0.18 netmask 0xff00 broadcast 192.168.0.255
inet6 fe80::209:5bff:fee8:b9d2%ath0 prefixlen 64 scopeid 0x3 
ether 00:09:5b:e8:b9:d2
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
status: associated
ssid Baroona 1:Baroona
channel 6 authmode OPEN powersavemode OFF powersavesleep 100
rtsthreshold 2312 protmode CTS
wepmode MIXED weptxkey 1
wepkey 1:40-bit

I tried two ways to add the route to rasam from raita:

1/ using the address for the interface:

# netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 0   24   ath0
127.0.0.1  127.0.0.1  UH  0  139lo0
192.168.0  link#3 UC  00   ath0
192.168.0.1link#3 UHLW1   22   ath0
192.168.254link#1 UC  00rl0

bash-2.05b# route add -host 192.168.2.214 192.168.254.245
add host 192.168.2.214: gateway 192.168.254.245
bash-2.05b# netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 0  700   ath0
127.0.0.1  127.0.0.1  UH  0  139lo0
192.168.0  link#3 UC  00   ath0
192.168.0.100:09:5b:ec:45:4a  UHLW1   44   ath0547
192.168.2.214  192.168.254.245UGHS0  448rl0
192.168.254link#1 UC  00rl0
192.168.254.24500:01:29:74:99:c2  UHLW1  448lo0

bash-2.05b# ping rasam
PING rasam.gc.eracom-tech.com (192.168.2.214): 56 data bytes
36 bytes from raita.finder.com.au (192.168.254.245): Redirect Host(New addr: 
192.168.254.245)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks  Src  Dst
 4  5  00 0054 00ba   0   40  01 f6d2 192.168.254.245  192.168.2.214 
...

2/ By using the interface name:

bash-2.05b# netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 0  708   ath0
127.0.0.1  127.0.0.1  UH  0  139lo0
192.168.0  link#3 UC  00   ath0
192.168.0.100:09:5b:ec:45:4a  UHLW1   44   ath0315
192.168.254link#1 UC  00rl0
192.168.254.24500:01:29:74:99:c2  UHLW0  448lo0

bash-2.05b# route add -host 192.168.2.214 -interface rl0
add host 192.168.2.214: gateway rl0
bash-2.05b# netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 0  708   ath0
127.0.0.1  127.0.0.1  UH  0  139lo0
192.

Re: Installing Opera 8

2005-10-14 Thread James S Blankenship
Ah, nevermind, I got it.  Thank you for your help, I appreciate it very much!

Best regards,
James

On 10/14/05, James S Blankenship <[EMAIL PROTECTED]> wrote:
> > Yes, if you installed from disk, you got what was on the disk.  You
> > need to cvsup your ports collection, then install Opera from the port.
> >  If you aren't familiar with that, read Chapter 4 of the FreeBSD
> > handbook.  See
> >
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
> >
> > In short, you will probably end up doing something like:
> >
> > pkg_add -r cvsup-without-gui
> > cvsup  -h cvsup.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
> > cd /usr/ports/www/opera
> > make install && make clean
> >
>
>
> Thanks Bob.  Everything worked so far except for one error:
>
> If you really wish to overwrite the old port of www/opera
>   without deleting it first, set the variable "FORCE_PKG_REGISTER"
>   in your environment or the "make install" command line.
>
> I'm not certain of how to do either of those things.  How do I delete
> the old ver completely and/or ste the variable to force pkg register?
>
> ~James
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installing Opera 8

2005-10-14 Thread James S Blankenship
> Yes, if you installed from disk, you got what was on the disk.  You
> need to cvsup your ports collection, then install Opera from the port.
>  If you aren't familiar with that, read Chapter 4 of the FreeBSD
> handbook.  See
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
>
> In short, you will probably end up doing something like:
>
> pkg_add -r cvsup-without-gui
> cvsup  -h cvsup.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
> cd /usr/ports/www/opera
> make install && make clean
>


Thanks Bob.  Everything worked so far except for one error:

If you really wish to overwrite the old port of www/opera
  without deleting it first, set the variable "FORCE_PKG_REGISTER"
  in your environment or the "make install" command line.

I'm not certain of how to do either of those things.  How do I delete
the old ver completely and/or ste the variable to force pkg register?

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


Re: Help Understanding While Loop

2005-10-14 Thread David Kirchner
On 10/14/05, Drew Tomlinson <[EMAIL PROTECTED]> wrote:
> OK, I've been working on an sh script and I'm almost there.  In the
> script, I created a 'while read' loop that is doing what I want.  Now I
> want to keep track of how many times the loop executes.  Thus I included
> this line between the 'while read' and 'done' statements:
>
> count = $(( count + 1 ))
>
> I've tested this by adding an 'echo $count' statement in the loop and it
> increments by one each time the loop runs.  However when I attempt to
> call $count in an 'echo' statement after the 'done', the variable is
> null.  Thus I assume that $count is only local to the loop and I have to
> export it to make it available outside the loop?  What must I do?

Oh yeah, that's another side effect of using the while read method.
Because it's "| while read" it's starting a subshell, so any variables
are only going to exist there. You'd need to have some sort of 'echo'
within the while read, and then | wc -l at the end of the while loop,
or something along those lines.

The IFS method someone else mentioned, in regards to 'for' loops,
would probably be better all around. So you'd want:

OLDIFS=$IFS
# Note this is a single quote, return, single quote, no spaces
IFS='
'

for i in `find etc`
do
done

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


Re: Burning DVDs

2005-10-14 Thread Robert Marella
On Fri, 14 Oct 2005 23:50:34 +0200
edward <[EMAIL PROTECTED]> wrote:

> Hi all,
> My DVD drive read and mounts CDs and DVDs properly, but K3B refuses to
> burn : "K3B did not find a suitable writer. You will only be able to 
> create an image". Gut feeling is that there probably is something
> wrong in the drive's read/write permission. I checked the /etc/fstab
> file for read/write status and I got the following :
> 
> # Device   Mountpoint  FStype  Options Dump
> Pass# /dev/ad0s3bnoneswapsw
> 0   0 /dev/ad0s3a/   ufs rw
> 1   1 /dev/acd0  /cdrom  cd9660  ro,noauto
> 0   0
> 
> This was the default set up that I haven't altered (yet...). Is there
> a reason why the DVD drive would be set in read only mode, as a
> default ? Should I just launch vi and edit the line from ro,noauto to
> rw,noauto or is there another way ?
> Thanks,
> Edward
> 
> 

less /usr/ports/sysutils/k3b/pkg-message

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


Re: Help Understanding While Loop

2005-10-14 Thread Will Maier
On Fri, Oct 14, 2005 at 02:48:19PM -0700, Drew Tomlinson wrote:
> OK, I've been working on an sh script and I'm almost there.  In
> the script, I created a 'while read' loop that is doing what I
> want.  Now I want to keep track of how many times the loop
> executes.  Thus I included this line between the 'while read' and
> 'done' statements:

> count = $(( count + 1 ))
 ^^^ 

You're missing something here ;)

$ count=1
$ echo $count
1
$ count = $(( $count +1 ))  # note: 'count ='
count: not found
$ ^[[A^C
$ count=$(( $count + 1 ))   # note: 'count='
$ echo $count
2

-- 

o--{ Will Maier }--o
| jabber:[EMAIL PROTECTED] | email:[EMAIL PROTECTED] |
| [EMAIL PROTECTED] | [EMAIL PROTECTED] |
*--[ BSD Unix: Live Free or Die ]--*

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


Re: Burning DVDs

2005-10-14 Thread Mark Kane

edward wrote:

Hi all,
My DVD drive read and mounts CDs and DVDs properly, but K3B refuses to
burn : "K3B did not find a suitable writer. You will only be able to 
create an image". Gut feeling is that there probably is something wrong 
in the drive's read/write permission. I checked the /etc/fstab

file for read/write status and I got the following :

# Device   Mountpoint  FStype  Options DumpPass#
/dev/ad0s3bnoneswapsw  0   0
/dev/ad0s3a/   ufs rw  1   1
/dev/acd0  /cdrom  cd9660  ro,noauto   0   0

This was the default set up that I haven't altered (yet...). Is there a
reason why the DVD drive would be set in read only mode, as a default ?
Should I just launch vi and edit the line from ro,noauto to rw,noauto or 
is there another way ?

Thanks,
Edward


Hi there. Try a "make showinfo" in /usr/ports/sysutils/k3b

There are some special steps required to set your burner up.

Hope that helps.

-Mark

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


Help Understanding While Loop

2005-10-14 Thread Drew Tomlinson
OK, I've been working on an sh script and I'm almost there.  In the 
script, I created a 'while read' loop that is doing what I want.  Now I 
want to keep track of how many times the loop executes.  Thus I included 
this line between the 'while read' and 'done' statements:


count = $(( count + 1 ))

I've tested this by adding an 'echo $count' statement in the loop and it 
increments by one each time the loop runs.  However when I attempt to 
call $count in an 'echo' statement after the 'done', the variable is 
null.  Thus I assume that $count is only local to the loop and I have to 
export it to make it available outside the loop?  What must I do?


Thanks for your help,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com

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


Burning DVDs

2005-10-14 Thread edward

Hi all,
My DVD drive read and mounts CDs and DVDs properly, but K3B refuses to
burn : "K3B did not find a suitable writer. You will only be able to 
create an image". Gut feeling is that there probably is something wrong 
in the drive's read/write permission. I checked the /etc/fstab

file for read/write status and I got the following :

# Device   Mountpoint  FStype  Options DumpPass#
/dev/ad0s3bnoneswapsw  0   0
/dev/ad0s3a/   ufs rw  1   1
/dev/acd0  /cdrom  cd9660  ro,noauto   0   0

This was the default set up that I haven't altered (yet...). Is there a
reason why the DVD drive would be set in read only mode, as a default ?
Should I just launch vi and edit the line from ro,noauto to rw,noauto or 
is there another way ?

Thanks,
Edward



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


Re: Installing Opera 8

2005-10-14 Thread Bob Johnson
On 10/14/05, James S Blankenship <[EMAIL PROTECTED]> wrote:
> On 10/14/05, Bob Johnson <[EMAIL PROTECTED]> wrote:
> > On 10/14/05, James S Blankenship <[EMAIL PROTECTED]> wrote:
> > > How do I install Opera 8 on FBSD 5.4?  I lost my Opera key for 7.54,
> > > which may not have worked for the ported build.
> >
> > I believe Opera is now free without advertising.  I installed Opera 8
> > by just doing a portinstall.
>
> That's what I did, but it installed Opera 7.54.  I lost my key for
> 7.54, and want Opera 8, but am not sure how to install it.  Did I get
> the old ver because I installed from disk maybe?

Yes, if you installed from disk, you got what was on the disk.  You
need to cvsup your ports collection, then install Opera from the port.
 If you aren't familiar with that, read Chapter 4 of the FreeBSD
handbook.  See 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html

In short, you will probably end up doing something like:

pkg_add -r cvsup-without-gui
cvsup  -h cvsup.FreeBSD.org /usr/share/examples/cvsup/ports-supfile
cd /usr/ports/www/opera
make install && make clean

But read the Handbook section for more explanation.

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


Use of the ppc->pps device for time keeping ?

2005-10-14 Thread Ken Stone
I am not currently subscribed to this list so please include me in any
response ... thanks !!

I have an HP lp1000r server that I just loaded the 5.4 Production code
onto ... everything works great other than I cannot get a /dev/pps0 to
appear.

At boot, I can see:

ppc0: parallel port found at 0x378
ppc0: using extended I/O port range
PC873xx probe at 0x2e got unknown ID 0x0
ppc0: SPP
ppc0:  port 0x378-0x37f on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0:  on ppc0
pps0:  on ppbus0
device_attach: pps0 attach returned 6
lpt0:  on ppbus0
lpt0: Polled port

No matter what mode I put the parallel port in via the BIOS config, I 
get roughly the same result ... The pps interface does not come up 
due to there being no IRQ associated with ppc0 ?  

The BIOS definately says that the parallel port is at IRQ 7

Any help appreciated 

Thanks

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


squid-cahe authentication

2005-10-14 Thread Efren Bravo
Hi,

Is there a way to authenticate client users in squid-cache with freeBSD's
users/passwd?


I'm using freeBSD 5.4 STABLE version.

Thanks...


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


Re: Installing Opera 8

2005-10-14 Thread James S Blankenship
That's what I did, but it installed Opera 7.54.  I lost my key for
7.54, and want Opera 8, but am not sure how to install it.  Did I get
the old ver because I installed from disk maybe?

~James

On 10/14/05, Bob Johnson <[EMAIL PROTECTED]> wrote:
> On 10/14/05, James S Blankenship <[EMAIL PROTECTED]> wrote:
> > How do I install Opera 8 on FBSD 5.4?  I lost my Opera key for 7.54,
> > which may not have worked for the ported build.
>
> I believe Opera is now free without advertising.  I installed Opera 8
> by just doing a portinstall.
>
> - Bob
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installing Opera 8

2005-10-14 Thread Bob Johnson
On 10/14/05, James S Blankenship <[EMAIL PROTECTED]> wrote:
> How do I install Opera 8 on FBSD 5.4?  I lost my Opera key for 7.54,
> which may not have worked for the ported build.

I believe Opera is now free without advertising.  I installed Opera 8
by just doing a portinstall.

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


RE: Looking for recommendations for external USB2.0 tape backup

2005-10-14 Thread Gayn Winters
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of daniel
> Sent: Friday, October 14, 2005 12:20 PM
> To: freebsd-questions@freebsd.org
> Subject: Looking for recommendations for external USB2.0 tape backup
> 
> 
> My boss has asked me to try to find a tape-backup solution 
> for our largely 
> FreeBSD network of machines and I'm not having a lot of luck, 
> so I was hoping 
> for some enlightend pointers from the list.
> 
> We need the following features:
>   20GB+ capacity
>   USB 2.0
>   External
>   < $600CDN
> 
> Unfortunately, I've only been able to find two drives that fit our 
> requirements, one from Ceterance:
>   http://www.certance.com/products/travan/travan40/STT6401U2-SST
> the other from HP who claims that theirs only works with 
> HP-UX.  Does anyone 
> know if (a) either of those units play nice with FreeBSD?  or 
> (b) if there 
> are other tape backup solutions available?
> 
> Thanks for any insight.

Have you considered an external USB2.0 hard drive?  I love my Maxtor One
Touch.  On nextag.com I see a 300GB for $218 USD at Newegg.  It may be
worth rethinking your backup and archiving strategies.  (I use removable
hard drives for archiving, but that's another story...)

-gayn


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


Installing Opera 8

2005-10-14 Thread James S Blankenship
How do I install Opera 8 on FBSD 5.4?  I lost my Opera key for 7.54,
which may not have worked for the ported build.

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


Re: Contact Management Software

2005-10-14 Thread Mike Hernandez
On 10/14/05, Mark Kane <[EMAIL PROTECTED]> wrote:
 I'm trying to get suggestions or input on
> what you all use for your contact management and sales software.
>
> Thanks very much in advance!
>
> -Mark

I've found that kde's pim suite (kontact) works fine for me. I haven't
had to do expense reports from it though.

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


Re: Help With 'for' Loop

2005-10-14 Thread Drew Tomlinson

On 10/14/2005 1:05 PM Will Maier wrote:


On Fri, Oct 14, 2005 at 12:33:07PM -0700, Drew Tomlinson wrote:
[...]
 


Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping
at the first space.  Is it possible to get 'i' to represent the
whole string that 'find' returns?  If so, how?
   



Bourne-style for loops use  as the delimiter by default. To
change this behavior, modify the IFS variable (which is mentioned
but not explained in the sh manpage):
   
   $ OLDIFS=$IFS	# probably want to remember this value

   $ IFS=:
   $ export $IFS
   $ for i in $PATH; do
echo $i
   done
   /home/will/bin
   /usr/local/sbin
   /usr/local/bin
   /usr/sbin
   /usr/bin
   /sbin
   /bin
   /usr/X11R6/bin
   /opt/
   /usr/games/
   $ IFS=$OLDIFS# set it back to normal
   $ export $IFS
   $ for i in $PATH; do
echo $i
   done
   
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/opt/:/usr/games/
 



Thanks for this explanation.  I will look at the sh man page.

Cheers,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com

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


Re: Help With 'for' Loop

2005-10-14 Thread Drew Tomlinson

On 10/14/2005 12:52 PM David Kirchner wrote:


On 10/14/05, Drew Tomlinson <[EMAIL PROTECTED]> wrote:
 


Sorry to be such a pest today.  I'm working on a sh script that uses a
for loop.  To test, I've written the following:

for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname
"*.gif" -print`
   do
   echo -e "\n$i"
done

The first line 'find' returns is "/multimedia/Pictures/1998
Christmas/April01.JPG"

Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping at the
first space.  Is it possible to get 'i' to represent the whole string
that 'find' returns?  If so, how?
   



'while read i' will do what you want, but may cause issues with
programs that expect to be able to read from stdin within the loop.

find $findstuff | while read i
do
   echo $i
done
 



Thank you for your reply.  I just tried 'while read i' and it works in 
this context.  I'll find out soon enough if I have the stdin trouble you 
mention.   I don't think I will but I'm very new to script writing.


What I am ultimately attempting is to recursively search a directory and 
then create symlinks with modified names in a new directory to files in 
the first directory.  For example, the first file found is 
"/multimedia/Pictures/1998 Christmas/April01.JPG".  After saving this 
string in 'i' (or maybe a more descriptive name), I want to manipulate 
the string to be "1998_Christmas-April01.JPG" and then issue 'ln -s 
"/multimedia/Pictures/1998 Christmas/April01.JPG" 
/newdir/1998_Christmas-April01.JPG'.  I've fiddled a bit with 'sed' and 
think I can make it work but I'm sure I'll be back with more questions.  :)



You can also try something like:

find $findstuff -exec echo {} \;

(where $findstuff is your -iname conditionals). {} is replaced by the
files or directories found by find, and \; is necessary to terminate
the -exec argument.
 



Another good idea although I don't think this will work as well for my 
purpose.


Thanks again,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com

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


Re: TSC Timer "Quality" ?

2005-10-14 Thread Peter B
>
>Intel pentium cpu timer tsc:
>  'Timecounter "TSC" frequency X Hz quality Y' (from dmesg)
>
>What is the definition of "quality" ..?
>
>
>I have looked briefly in the /usr/src/sys/i386/i386/tsc.c sourcefile and
>the intel-celeron datasheet. Without finding anything useful.
>
>   From src/sys/sys/timetc.h:
>54 int tc_quality;
>55 /*
>56  * Used to determine if this timecounter is
>   better than
>57  * another timecounter higher means better.
>   Negative
>58  * means "only use at explicit request".
>59  */
>   As far as I understand this, it is used internally only.
>   Regards
>   Björn

Hmm.. should have looked into the header =)
Guess I'll have to check the clock circuit physicaly..

The reason for asking is to explore a way to sample signals asynchronously.
But useing timestamps to calculate how it looks when sampled synchronously.
Thus avoiding the need for fifo circuitry.


Btw, avoid html encoded email pls.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Help With 'for' Loop

2005-10-14 Thread Will Maier
On Fri, Oct 14, 2005 at 12:33:07PM -0700, Drew Tomlinson wrote:
[...]
> Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping
> at the first space.  Is it possible to get 'i' to represent the
> whole string that 'find' returns?  If so, how?

Bourne-style for loops use  as the delimiter by default. To
change this behavior, modify the IFS variable (which is mentioned
but not explained in the sh manpage):

$ OLDIFS=$IFS   # probably want to remember this value
$ IFS=:
$ export $IFS
$ for i in $PATH; do
echo $i
done
/home/will/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/X11R6/bin
/opt/
/usr/games/
$ IFS=$OLDIFS   # set it back to normal
$ export $IFS   
$ for i in $PATH; do
echo $i
done

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/opt/:/usr/games/

-- 

o--{ Will Maier }--o
| jabber:[EMAIL PROTECTED] | email:[EMAIL PROTECTED] |
| [EMAIL PROTECTED] | [EMAIL PROTECTED] |
*--[ BSD Unix: Live Free or Die ]--*

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


Re: Help With 'for' Loop

2005-10-14 Thread Mark Cullen

Drew Tomlinson wrote:
Sorry to be such a pest today.  I'm working on a sh script that uses a 
for loop.  To test, I've written the following:


for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname 
"*.gif" -print`

   do
   echo -e "\n$i"
done

The first line 'find' returns is "/multimedia/Pictures/1998 
Christmas/April01.JPG"


Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping at the 
first space.  Is it possible to get 'i' to represent the whole string 
that 'find' returns?  If so, how?


Thanks,

Drew



Wild guess.. I would say try something like this...

for i in "`/usr/bin/find /home/mrboo -iname \"*.jpg\" -or -iname 
\"*.gif\" -print"

`
do
   echo -e "\n$i"
done


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


Re: Help With 'for' Loop

2005-10-14 Thread David Kirchner
On 10/14/05, Drew Tomlinson <[EMAIL PROTECTED]> wrote:
> Sorry to be such a pest today.  I'm working on a sh script that uses a
> for loop.  To test, I've written the following:
>
> for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname
> "*.gif" -print`
> do
> echo -e "\n$i"
> done
>
> The first line 'find' returns is "/multimedia/Pictures/1998
> Christmas/April01.JPG"
>
> Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping at the
> first space.  Is it possible to get 'i' to represent the whole string
> that 'find' returns?  If so, how?

'while read i' will do what you want, but may cause issues with
programs that expect to be able to read from stdin within the loop.

find $findstuff | while read i
do
echo $i
done

You can also try something like:

find $findstuff -exec echo {} \;

(where $findstuff is your -iname conditionals). {} is replaced by the
files or directories found by find, and \; is necessary to terminate
the -exec argument.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Looking for recommendations for external USB2.0 tape backup

2005-10-14 Thread Jerry McAllister
> 
> My boss has asked me to try to find a tape-backup solution for our largely 
> FreeBSD network of machines and I'm not having a lot of luck, so I was hoping 
> for some enlightend pointers from the list.
> 
> We need the following features:
>   20GB+ capacity
>   USB 2.0
>   External
>   < $600CDN
> 
> Unfortunately, I've only been able to find two drives that fit our 
> requirements, one from Ceterance:
>   http://www.certance.com/products/travan/travan40/STT6401U2-SST
> the other from HP who claims that theirs only works with HP-UX.  Does anyone 
> know if (a) either of those units play nice with FreeBSD?  or (b) if there 
> are other tape backup solutions available?

Any SCSI tape drive will work nicely with FreeBSD.   We have
a few different levels of DAT DDS-2, DDS-3 and DDS-4 as well
as DLT and LTO drives in various systems - all on SCSI.   
Dell sells DLT and DAT.   HP is pushing LTO (they call Ultrium).

The DLT and LTO  performance are all outstanding. 

If you do frequent backups (recommended) I would steer away
from the DAT (DDS...) because they really can't handle the
heavier usage.  Reliability becomes a problem over time.

On some other systems we also have AIT drives working well but I 
haven't used them on FreeBSD yet.   

Unfortunately the DLT and LTO drives are rather expensive.
But the high speed and reliability will be worth it in 
the long run.

As for software, we just use dump(8)/restore(8).

jerry

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


Re: Help With 'for' Loop

2005-10-14 Thread Mark Cullen

Drew Tomlinson wrote:
Sorry to be such a pest today.  I'm working on a sh script that uses a 
for loop.  To test, I've written the following:


for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname 
"*.gif" -print`

   do
   echo -e "\n$i"
done

The first line 'find' returns is "/multimedia/Pictures/1998 
Christmas/April01.JPG"


Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping at the 
first space.  Is it possible to get 'i' to represent the whole string 
that 'find' returns?  If so, how?


Thanks,

Drew



Actually, ignore that one. Wouldn't work like I thought it would :-(
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: D-Link wireless LAN card not working in 5.3-R

2005-10-14 Thread Andrew L. Gould
On Fri, 14 Oct 2005 14:33:29 -0500
Will Maier <[EMAIL PROTECTED]> wrote:

> On Fri, Oct 14, 2005 at 08:57:58AM -0700, N Deepak wrote:
> > Thanks.  A search for 'ath' in the configuration file gave no
> > matches.  There is no such .ko in my /boot/kernel either.
> 
> Look for ath_hal.ko after you've compiled your kernel.
> 
> > Do I have to add a:
> > device  ath
> 
> > line in my config file and recompile?  (as per ath(4))
> 
> Yes.
> 
> -- 
> 
> o--{ Will Maier }--o
> | jabber:[EMAIL PROTECTED] | email:[EMAIL PROTECTED] |
> | [EMAIL PROTECTED] | [EMAIL PROTECTED] |
> *--[ BSD Unix: Live Free or Die ]--*

Don't forget about:

device ath_hal

in the kernel configuration file.

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


Help With 'for' Loop

2005-10-14 Thread Drew Tomlinson
Sorry to be such a pest today.  I'm working on a sh script that uses a 
for loop.  To test, I've written the following:


for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname 
"*.gif" -print`

   do
   echo -e "\n$i"
done

The first line 'find' returns is "/multimedia/Pictures/1998 
Christmas/April01.JPG"


Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping at the 
first space.  Is it possible to get 'i' to represent the whole string 
that 'find' returns?  If so, how?


Thanks,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com

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


Re: D-Link wireless LAN card not working in 5.3-R

2005-10-14 Thread Will Maier
On Fri, Oct 14, 2005 at 08:57:58AM -0700, N Deepak wrote:
> Thanks.  A search for 'ath' in the configuration file gave no
> matches.  There is no such .ko in my /boot/kernel either.

Look for ath_hal.ko after you've compiled your kernel.

> Do I have to add a:
> deviceath

> line in my config file and recompile?  (as per ath(4))

Yes.

-- 

o--{ Will Maier }--o
| jabber:[EMAIL PROTECTED] | email:[EMAIL PROTECTED] |
| [EMAIL PROTECTED] | [EMAIL PROTECTED] |
*--[ BSD Unix: Live Free or Die ]--*

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


Re: Help With Find Syntax

2005-10-14 Thread Glenn Sieb
Drew Tomlinson said the following on 10/14/2005 3:13 PM:

> OK, duh.  I get it now.  Thanks for pointing me in the right direction!

Quite welcome! Enjoy!!

Best,
--Glenn

-- 
"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety." 
  ~Benjamin Franklin, Historical Review of Pennsylvania, 1759

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


Looking for recommendations for external USB2.0 tape backup

2005-10-14 Thread daniel
My boss has asked me to try to find a tape-backup solution for our largely 
FreeBSD network of machines and I'm not having a lot of luck, so I was hoping 
for some enlightend pointers from the list.

We need the following features:
  20GB+ capacity
  USB 2.0
  External
  < $600CDN

Unfortunately, I've only been able to find two drives that fit our 
requirements, one from Ceterance:
  http://www.certance.com/products/travan/travan40/STT6401U2-SST
the other from HP who claims that theirs only works with HP-UX.  Does anyone 
know if (a) either of those units play nice with FreeBSD?  or (b) if there 
are other tape backup solutions available?

Thanks for any insight.


-- 
nurture your minds with great thoughts.
to believe in the heroic makes heroes.
  - benjamin disraeli
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: TSC Timer "Quality" ?

2005-10-14 Thread Björn König

   Peter B schrieb:

Intel pentium cpu timer tsc:
  'Timecounter "TSC" frequency X Hz quality Y' (from dmesg)

What is the definition of "quality" ..?


I have looked briefly in the /usr/src/sys/i386/i386/tsc.c sourcefile and
the intel-celeron datasheet. Without finding anything useful.

   From src/sys/sys/timetc.h:
54 int tc_quality;
55 /*
56  * Used to determine if this timecounter is
   better than
57  * another timecounter higher means better.
   Negative
58  * means "only use at explicit request".
59  */
   As far as I understand this, it is used internally only.
   Regards
   Björn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Help With Find Syntax

2005-10-14 Thread Mark J. Sommer
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Drew Tomlinson
> Sent: 10/14/2005 12:54 PM
> To: FreeBSD Questions
> Subject: Help With Find Syntax
> 
> I want to recursively search a directory and return files that end in
".jpg" or ".gif" but I can't seem to get the find syntax right.  My basic
command lines are:
> 
> find /multimedia/Pictures -iname "*.gif" -print
> 
> OR
> 
> find /multimedia/Pictures -iname "*.jpg" -print
> 
> Both of these work perfectly.  But I can't figure out how to combine the
two.  'man find' tells me the the OR operator is '-or'.  Thus it seems that
some incantation along this line would work:
> 
> $ find /multimedia/Pictures -iname "*.gif" -or "*.jpg" -print  
> find: paths must precede expression
> Usage: find [path...] [expression]
> 
> I've tried various placement of quotes, parenthesis, etc. but can't seem
to find the right way to do this.  Can someone show me my error?
> 
> Thanks,
> 
> Drew
> 
Try:

find /multimedia/Pictures \( -iname '*.gif' -o -iname '*.jpg' \)


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


Re: Help With Find Syntax

2005-10-14 Thread Drew Tomlinson

On 10/14/2005 12:05 PM Glenn Sieb wrote:


Drew Tomlinson said the following on 10/14/2005 2:53 PM:

 


I want to recursively search a directory and return files that end in
".jpg" or ".gif" but I can't seem to get the find syntax right.  My
basic command lines are:

find /multimedia/Pictures -iname "*.gif" -print

OR

find /multimedia/Pictures -iname "*.jpg" -print
   




find /multimedia/Pictures \( -iname '*.gif' -or -iname '*.jpg' \) -print

That should do it for you.
 



OK, duh.  I get it now.  Thanks for pointing me in the right direction!

Thanks,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com

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


Re: Help With Find Syntax

2005-10-14 Thread Charles Swiger

On Oct 14, 2005, at 2:53 PM, Drew Tomlinson wrote:
$ find /multimedia/Pictures -iname "*.gif" -or "*.jpg" -print   
find: paths must precede expression

Usage: find [path...] [expression]

I've tried various placement of quotes, parenthesis, etc. but can't  
seem to find the right way to do this.  Can someone show me my error?


find /multimedia/Pictures -iname "*.gif" -or -iname "*.jpg" -print

--
-Chuck

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


Re: Help With Find Syntax

2005-10-14 Thread Glenn Sieb
Drew Tomlinson said the following on 10/14/2005 2:53 PM:

> I want to recursively search a directory and return files that end in
> ".jpg" or ".gif" but I can't seem to get the find syntax right.  My
> basic command lines are:
>
> find /multimedia/Pictures -iname "*.gif" -print
>
> OR
>
> find /multimedia/Pictures -iname "*.jpg" -print


find /multimedia/Pictures \( -iname '*.gif' -or -iname '*.jpg' \) -print

That should do it for you.

Best,
--Glenn

-- 
"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety." 
  ~Benjamin Franklin, Historical Review of Pennsylvania, 1759

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


Help With Find Syntax

2005-10-14 Thread Drew Tomlinson
I want to recursively search a directory and return files that end in 
".jpg" or ".gif" but I can't seem to get the find syntax right.  My 
basic command lines are:


find /multimedia/Pictures -iname "*.gif" -print

OR

find /multimedia/Pictures -iname "*.jpg" -print

Both of these work perfectly.  But I can't figure out how to combine the 
two.  'man find' tells me the the OR operator is '-or'.  Thus it seems 
that some incantation along this line would work:


$ find /multimedia/Pictures -iname "*.gif" -or "*.jpg" -print  
find: paths must precede expression

Usage: find [path...] [expression]

I've tried various placement of quotes, parenthesis, etc. but can't seem 
to find the right way to do this.  Can someone show me my error?


Thanks,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com

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


Contact Management Software

2005-10-14 Thread Mark Kane
Hi everyone. I have a co-worker who wants to get away from Windows as 
much as possible. I've told him about free and open source alternatives 
for everything else he needs to do, but contact management is something 
I'm having problems with.


The good thing is he doesn't already have years of data in one format 
like ACT. I'm looking for a something comparable on the FreeBSD side to 
Maximizer, ACT, or Goldmine. Some key features he requires are:


- Contact Manager
- Keep track of every aspect of every contact. Things like call logs, 
letter logs, comments, to-do lists.

- Reports of contacts. To do items, completed items, etc
- Mail merge
- Label Printing
- Expense report. Hours spent on clients or projects.
- Possible remote access so a couple associates could login and add 
things and look at things
- Possible integration with an email client like Mozilla Thunderbird to 
file incoming mail by contact.


He already owns the Maximizer 7 software for Windows but has not started 
to use it yet, so that's why I'm trying to get suggestions or input on 
what you all use for your contact management and sales software.


Thanks very much in advance!

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


X-Drive Type Opensource Project?

2005-10-14 Thread Sean P. Malone
I'd like to give my users the ability to upload/download/share files via 
a web interface much like what X-Drive used to do.


Can anyone recommend an opensource project that does such a thing that 
runs on freeBSD?


Thanks!

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


Re: su - does not ask for password

2005-10-14 Thread Andrew P.
> My account has a password and when
> I "su -" I go right in as root without a
> password prompt. What changed?
>
>  Teo
>

% su
# passwd
Changing local password for root
New Password:
Retype New Password:
#

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


Re: Natmonitor on FreeBSD

2005-10-14 Thread Bernt Hansson

ZorroBSD skrev:

Hi There.
There is any one who using Natmonitor ?
the only Nat Monitor that i find on the net is
https://sourceforge.net/projects/natmonitor/


I'm using /usr/ports/net-mgmt/bandwidthd

"bandwidthd tracks usage of TCP/IP network subnets and builds HTML files 
with

graphs to display network utilization. Charts are built by individual IP. It
color codes HTTP, TCP,UDP, ICMP, VPN, and P2P traffic. Unlike MRTG, it 
tracks

each individual IP address, not the status of any particular link.

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


Re: How to get a high resolution console for FreeBSD inside a VMWare image?

2005-10-14 Thread Jared Evans
I looked over the link but I don't think it's related to the solution I'm
looking for. I don't have any problems with high resolution X console.

I'm talking about the regular text console when you first boot the machine.

Jared

>yeah...you'll need to install the vmware tools for FreeBSD. >Here's the
link:
>
>http://www.vmware.com/support/ws45/doc/new_guest_tools_ws.html#1008244
>
>I was in the same situation and it worked for me.
>
>Teo


On 10/14/05, Jared Evans <[EMAIL PROTECTED]> wrote:
>
> I know that this isn't exactly a standard configuration (VMWare as opposed
> to native installation) for FreeBSD so most of the answers I found online
> weren't really applicable for me.
>
> I simply wanted a high resolution FreeBSD console PTYs running under
> VMWare. It was surprisingly more complex than I expected:
>
> When attempting to change screen resolution for a console in FreeBSD
> running under VMWare, I ran across this error message:
>
> > vidcontrol -g 100x37 VESA_800x600
>
> vidcontrol: cannot set videomode inappropriate ioctl for device
>
> It seemed to me that VMWare was unable to init VESA correctly in console
> but strangely enough Xorg is capable of changing to a higher resolution
> without any problems.
>
> After some googling:
>
> VESA driver in current source tree checks the NONVGA flag of VESA
> information block when loading. If this flag is set it will refuse to
> initialize. Most VESA adapters do not set this flag, but the virtual display
> adapter in VMWare does.
>
> in src/sys/i386/isa/vesa.c, there is a check for the flag V_NONVGA in line
> 655. If you comment it out, flag check will be bypassed. After all, if Xorg
> can use higher resolution, there shouldn't be a problem using VESA on the
> console!
>
> Re-compiling my kernel to include the below as suggested by several more
> web searches:
>
> options VESA
> options SC_PIXEL_MODE
> options VGA_WIDTH90
>
> rebooting then:
>
> > vidcontrol -g 100x37 VESA_800x600
>
> vidcontrol: operation not supported by device
>
> Any more tips for me?
>



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


Natmonitor on FreeBSD

2005-10-14 Thread ZorroBSD
Hi There.
There is any one who using Natmonitor ?
the only Nat Monitor that i find on the net is
https://sourceforge.net/projects/natmonitor/
The only one that show me bandwidth usage on any PC that you have.
i have a FreeBSD 5.3 Gateway on 486 PC with 64 Ram.
a small Hub and 4 PC's
1. FreeBSD 5.4 for Desktop on PIII 450 with 128 Ram.
2. Win2K on PIII 1000 with 384 Ram.
3. RedHat 9.0 on PII with 128 Ram (he has a Desktop KDE but i never use it,
its only for SSH Server, to get in from my work).
I never touch it and I'm going to format it and put FreeBSD 5.4.
4. Win XP Pro on P-IV with 512 Ram (its for my father, not my PC).

my wish is to find a good Nat Monitoring that give me all the information
abut the bandwidth usage traffic.
I see the only program that do it is "natmonitor" from:
https://sourceforge.net/projects/natmonitor/

I see that its can work on BSD but its for windows/Linux .
I get the file and open it.
I Read the README file and i create a Dir /var/natmonitord i give chmod 777
to the folder /var/natmonitord.
and then i "make natmonitord", then i get the error.
~~
[EMAIL PROTECTED] sudo make natmonitord
Password:
gcc -c natmonitord.c -pipe -Wall
In file included from /usr/include/netinet/if_ether.h:37,
from natmonitord.c:24:
/usr/include/net/if_arp.h:88: error: field `arp_pa' has incomplete type
/usr/include/net/if_arp.h:89: error: field `arp_ha' has incomplete type
*** Error code 1

Stop in /usr/home/emanuel/natmonitor-2.4.
[EMAIL PROTECTED]
~~

I try to open the file /usr/include/net/if_arp.h , and i see in line 88 &
89, (the 2 lines like in the error code).
but I don't know what to do with them.
I try to find help on google.com  and
google.com/bsdand nothing..
its look like no one use it :-( (its need to be a good program).

then i see the "REQUIREMENTS: IT MUST BE RUN ON ROUTER MACHINE."
(I run all this on my Desktop FreeBSD 5.4) so i "cp" the file to my FreeBSD
5.3 Gateway.
I have an IPFW and NATD on it.
He is also make a PPP conection (pppoe) to an old Alcatel Home.
and the option "router_enable='NO'" on my "rc.conf"
but i get the same Error.
(Its also if the option is "router_enale='YES'" ).

i try to find a port on the net and on
freebsd.org/ports.
But no luck.
any idea ?

There is a screenshots on :
http://www.linuxsoft.cz/screenshot_img/4157-a.jpg
its Beautiful. It's show you all the bandwidth That using on a local LAN.
If some one can help me, I'll be more then happy.

thank you.

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


Fwd: su - does not ask for password

2005-10-14 Thread Teo De Las Heras
-- Forwarded message --
From: Teo De Las Heras <[EMAIL PROTECTED]>
Date: Oct 14, 2005 1:45 PM
Subject: Re: su - does not ask for password
To: Emanuel Strobl <[EMAIL PROTECTED]>

My account has a password and when I "su -" I go right in as root without a
password prompt. What changed?
 Teo

 On 10/14/05, Emanuel Strobl <[EMAIL PROTECTED]> wrote:
>
> Am Freitag, 14. Oktober 2005 17:48 CEST schrieb Teo De Las Heras:
> > I've added myself to the wheel group and can successfully su - into
> > root. I'm wondering though, where I make the configuration to ask for a
> > password when su - is called.
>
> You have to assign the superuser a password first. su will always ask for
> the password if the user has one and the executing user is not root (id0)
>
> -Harry
>
> > Teo
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "[EMAIL PROTECTED] "
>
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Fwd: How to get a high resolution console for FreeBSD inside a VMWare image?

2005-10-14 Thread Teo De Las Heras
-- Forwarded message --
From: Teo De Las Heras <[EMAIL PROTECTED]>
Date: Oct 14, 2005 1:38 PM
Subject: Re: How to get a high resolution console for FreeBSD inside a
VMWare image?
To: Jared Evans <[EMAIL PROTECTED]>

yeah...you'll need to install the vmware tools for FreeBSD. Here's the link:
 http://www.vmware.com/support/ws45/doc/new_guest_tools_ws.html#1008244
 I was in the same situation and it worked for me.
 Teo

 On 10/14/05, Jared Evans <[EMAIL PROTECTED]> wrote:
>
> I know that this isn't exactly a standard configuration (VMWare as opposed
> to native installation) for FreeBSD so most of the answers I found online
> weren't really applicable for me.
>
> I simply wanted a high resolution FreeBSD console PTYs running under
> VMWare.
> It was surprisingly more complex than I expected:
>
> When attempting to change screen resolution for a console in FreeBSD
> running
> under VMWare, I ran across this error message:
>
> > vidcontrol -g 100x37 VESA_800x600
>
> vidcontrol: cannot set videomode inappropriate ioctl for device
>
> It seemed to me that VMWare was unable to init VESA correctly in console
> but
> strangely enough Xorg is capable of changing to a higher resolution
> without
> any problems.
>
> After some googling:
>
> VESA driver in current source tree checks the NONVGA flag of VESA
> information block when loading. If this flag is set it will refuse to
> initialize. Most VESA adapters do not set this flag, but the virtual
> display
> adapter in VMWare does.
>
> in src/sys/i386/isa/vesa.c, there is a check for the flag V_NONVGA in line
> 655. If you comment it out, flag check will be bypassed. After all, if
> Xorg
> can use higher resolution, there shouldn't be a problem using VESA on the
> console!
>
> Re-compiling my kernel to include the below as suggested by several more
> web
> searches:
>
> options VESA
> options SC_PIXEL_MODE
> options VGA_WIDTH90
>
> rebooting then:
>
> > vidcontrol -g 100x37 VESA_800x600
>
> vidcontrol: operation not supported by device
>
> Any more tips for me?
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


problem with ksh finding console columns and lines

2005-10-14 Thread Lei Sun
Hi guys,

I am having problem with finding $COLUMNS and $LINES from ksh.

Couldn't find any workable example on google.

Any help or direction will be appreciated.

Thanks a lot.

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


Re: sh Scripting - String Manipulation

2005-10-14 Thread Drew Tomlinson

On 10/14/2005 9:27 AM Paul Schmehl wrote:

--On Friday, October 14, 2005 08:39:04 -0700 Drew Tomlinson 
<[EMAIL PROTECTED]> wrote:





That's a good idea (and something else I never thought of) if I wanted
all the files, not just the *.jpg files.  And as I'll explain below, I
intend to expand this script to work with additional directories where I
might just want the *.mp3 or the just the *.avi, *.mpg, etc.  My thought
was to build a script and run it through cron to keep the symlinks
updated.


OK.  Then I think you're going about it the wrong way.

This would accomplish what you want without having to do any string 
manipulation, and without having to generate a list of files.  The for 
loop does all that for you.


for files in /my/dir/for/files/*.jpg
do
NEWFILES=`$files | cut -d'/' -f 6`
ln -s $files /new/dir/for/pics/$NEWFILES
done



But there is still one problem.  This won't search recursively which is 
why I was using find.  However if I start with


"for files in `find /multimedia -iname "*.jpg" -print"

this would probably work.  I'll try it and see.  Or is there some other 
(better) way to search for files recursively?


Thanks again,

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


How to get a high resolution console for FreeBSD inside a VMWare image?

2005-10-14 Thread Jared Evans
I know that this isn't exactly a standard configuration (VMWare as opposed
to native installation) for FreeBSD so most of the answers I found online
weren't really applicable for me.

I simply wanted a high resolution FreeBSD console PTYs running under VMWare.
It was surprisingly more complex than I expected:

When attempting to change screen resolution for a console in FreeBSD running
under VMWare, I ran across this error message:

> vidcontrol -g 100x37 VESA_800x600

vidcontrol: cannot set videomode inappropriate ioctl for device

It seemed to me that VMWare was unable to init VESA correctly in console but
strangely enough Xorg is capable of changing to a higher resolution without
any problems.

After some googling:

VESA driver in current source tree checks the NONVGA flag of VESA
information block when loading. If this flag is set it will refuse to
initialize. Most VESA adapters do not set this flag, but the virtual display
adapter in VMWare does.

in src/sys/i386/isa/vesa.c, there is a check for the flag V_NONVGA in line
655. If you comment it out, flag check will be bypassed. After all, if Xorg
can use higher resolution, there shouldn't be a problem using VESA on the
console!

Re-compiling my kernel to include the below as suggested by several more web
searches:

options VESA
options SC_PIXEL_MODE
options VGA_WIDTH90

rebooting then:

> vidcontrol -g 100x37 VESA_800x600

vidcontrol: operation not supported by device

Any more tips for me?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


"The Complete FreeBSD": errata and addenda

2005-10-14 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

"The Complete FreeBSD" has been through a total of five editions, including its
predecessor "Installing and Running FreeBSD".  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Have you found a problem with the book, or maybe something confusing?  Please
let me know: I'm constantly updating it.

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


How to get best results from FreeBSD-questions

2005-10-14 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the "newcomers"), and also those who answer the
questions (the "hackers").

   Note that the term "hacker" has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is "cracker", but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for "[EMAIL PROTECTED]").  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send "how to" questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  Fr

Re: Virtual Computer - Jail

2005-10-14 Thread Andrew P.
On 10/14/05, Niclas Zeising <[EMAIL PROTECTED]> wrote:
> I was thinking about having some sort of virtual computer or operating
> system to test stuff in. The point being that i can just to a rm -rf on
> it and start over if i mess something upp really bad, all without
> affecting my regular workstation. Is jail a good sulotion for this? Is
> there any other sulotions?
> Sincerely
> //Niclas
> --
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

Jail is a great solution in case you want to run
apps at full speed, without any overhead at all.

I'm currently thinking about building jails close to
fully-functional Linux vservers.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sh Scripting - String Manipulation

2005-10-14 Thread Paul Schmehl
--On Friday, October 14, 2005 08:39:04 -0700 Drew Tomlinson 
<[EMAIL PROTECTED]> wrote:



That's a good idea (and something else I never thought of) if I wanted
all the files, not just the *.jpg files.  And as I'll explain below, I
intend to expand this script to work with additional directories where I
might just want the *.mp3 or the just the *.avi, *.mpg, etc.  My thought
was to build a script and run it through cron to keep the symlinks
updated.


OK.  Then I think you're going about it the wrong way.

This would accomplish what you want without having to do any string 
manipulation, and without having to generate a list of files.  The for loop 
does all that for you.


for files in /my/dir/for/files/*.jpg
do
NEWFILES=`$files | cut -d'/' -f 6`
ln -s $files /new/dir/for/pics/$NEWFILES
done

Before you put the symlink line in the script, you'll want to echo 
$NEWFILES so you can make sure you're cutting at the right place. 
(Practice on the commandline so you can see what cut is doing.)


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


TSC Timer "Quality" ?

2005-10-14 Thread Peter B

Intel pentium cpu timer tsc:
  'Timecounter "TSC" frequency X Hz quality Y' (from dmesg)

What is the definition of "quality" ..?


I have looked briefly in the /usr/src/sys/i386/i386/tsc.c sourcefile and
the intel-celeron datasheet. Without finding anything useful.

(Btw, Crystals are often defined in terms of ppm)

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


Re: New Desktop Manager

2005-10-14 Thread Mike Hernandez
Try /usr/ports/x11/3ddesktop

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


Re: interesting past 4 hours...

2005-10-14 Thread Theo
On Thursday 13 October 2005 00:36, Gary Kline wrote:

>   Second question: as its default, firefox uses mplayer for
>   both real and windows audio streams.  Why and can I chance at
>   least the Real Audio to use /usr/local/bin/realplay?  

I use an extension for firefox which let me choose which program i 
want to use for different types of movies audio etc called 
MediaPlayer Connectivity. 
https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&id=446

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


Re: su - does not ask for password

2005-10-14 Thread Emanuel Strobl
Am Freitag, 14. Oktober 2005 17:48 CEST schrieb Teo De Las Heras:
> I've added myself to the wheel group and can successfully su - into
> root. I'm wondering though, where I make the configuration to ask for a
> password when su - is called.

You have to assign the superuser a password first. su will always ask for 
the password if the user has one and the executing user is not root (id0)

-Harry

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


pgpcJjWsAn7jL.pgp
Description: PGP signature


problem with /dev/ttypX and samba

2005-10-14 Thread Julien Lirochon

Hi,


I'm trying to configure unix passwd sync on samba. Unfortunately, when 
it tries to launch my script, samba complains that it can't open any ttyp.


Looking at the code implied, I see that samba lists all files matching 
"/dev/ttyp*" and tries to open them in a while loop.


The problem is that there is no persistant /dev/ttyp* on my server. When 
I connect via ssh, a /dev/ttyp0 appears, and it disappears when I 
disconnect. That's why samba fails to find an available ttyp... ( I 
already verified that ttyp's are not hidden in devfs rules )



How could I make my ttyp's available for samba ?

I'm running FreeBSD 5.4-STABLE


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


su - does not ask for password

2005-10-14 Thread Teo De Las Heras
I've added myself to the wheel group and can successfully su - into root.
I'm wondering though, where I make the configuration to ask for a password
when su - is called.
 Teo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sh Scripting - String Manipulation

2005-10-14 Thread Drew Tomlinson

On 10/13/2005 6:43 PM Kirk Strauser wrote:


On Thursday 13 October 2005 06:04 pm, Drew Tomlinson wrote:

 


What I'd like to is get '-exec' to run this command:

ln -s "/multimedia/Pictures/2005 Kimberly & Rich/IMG_1210.JPG" "2005
Kimberly & Rich/IMG_1210.JPG"
   



The easiest way I've found is to simply change into /multimedia/Pictures 
before running find, then refer "ln" back to your original directory.


Say that you want the links to be made inside /home/drew .  Instead of running 
find from their, do:


   $ cd /multimedia/Pictures
   $ find -iname '*.jpg' -exec ln -s {} /home/drew

There - you've removed any need for string manipulation with a simple cd.
 



Thanks for your reply.  This is a good workaround in this particular 
situation for getting it done quickly.  However I hope to learn how to 
actually manipulate the string for future reference.  I've done some 
reading and played with awk and sed a little but I can't get either to 
behave as I expect.  If awk and/or sed seem to be the best solution, 
I'll post again with specific questions.


Thanks,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com

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


Re: sh Scripting - String Manipulation

2005-10-14 Thread Drew Tomlinson

On 10/13/2005 9:03 PM Paul Schmehl wrote:

--On October 13, 2005 4:04:45 PM -0700 Drew Tomlinson 
<[EMAIL PROTECTED]> wrote:



I'm working on a script that reads a directory using 'find' and its
'-exec' primary to create a symlink to the file.  So for example, I have
the following command:


find /multimedia/Pictures -iname "*.jpg" -print | cut -d'/' -f4

You'll have to play with the field value (-f) to get the right 
location, but this would return only the filename.



Thanks for your reply.  I will look at 'cut'.  Didn't know about that 
one.  :)



This command returns a bunch of filenames.  Here's an example of one:

/multimedia/Pictures/2005 Kimberly & Rich/IMG_1210.JPG

What I'd like to is get '-exec' to run this command:


I don't understand what you're trying to do here.


ln -s "/multimedia/Pictures/2005 Kimberly & Rich/IMG_1210.JPG" "2005
Kimberly & Rich/IMG_1210.JPG"

Are you trying to create symlinks in a different directory?  If so, 
why not do this?



Yes.


ln -s dir1/ dir2/

Then, when you add new files to dir1/ they will automatically show up 
in dir2/ because the dir is symlinked rather than the individual files.



That's a good idea (and something else I never thought of) if I wanted 
all the files, not just the *.jpg files.  And as I'll explain below, I 
intend to expand this script to work with additional directories where I 
might just want the *.mp3 or the just the *.avi, *.mpg, etc.  My thought 
was to build a script and run it through cron to keep the symlinks updated.



What exactly are you trying to accomplish?



I have a FBSD 5.4 box running Samba.  One of the shares on that box 
contains all of my pictures, video clips, and music.  I have built a 
MythTV box on Gentoo.  My first thought was to just mount the smbfs 
share on the Gentoo box so that MythTV could access my media files.  But 
then I found out that MythTV needs write access to the share so it can 
cache thumbnails and video information.  I don't want MythTV writing to 
my FBSD box because then it messes up other stuff that uses the same 
share.  Thus my idea was to mount the share read-only and create 
symlinks to the files in a local directory on the Gentoo box.  Then 
MythTV could write its files locally and leave the FBSD box unaltered.


So specifically, I have the FBSD share mounted on the Gentoo box as 
/multimedia.  Within the FBSD share are subdirs named Pictures, Video, 
and Music.  Underneath these folders are many sub folders that contain 
the actual files.  I want to make symlinks on the Gentoo box in 
/tv/multimedia for each of these directories but lose the subdir 
structure.  I need to loose the subdir structure as MythTV doesn't 
recurse directories in some instances (specifically the MythGallery plugin).


So in the above example, the Gentoo box sees "/multimedia/Pictures/2005 
Kimberly & Rich/IMG_1210.JPG" as the original file mounted read-only.  I 
want a symlink named "/tv/multimedia/2005_Kimberly_&_Rich-IMG_1210.JPG" 
to point to "/multimedia/Pictures/2005 Kimberly & Rich/IMG_1210.JPG".  
But please note that some files are more nested than the above example.


Hopefully, this makes sense?  But being new to scripting and knowing 
enough about *nix to realize there's lots of ways to accomplish any one 
task, I'm looking for guidance and suggestions as to the "most generally 
accepted" way to go about this one.  :)


Thanks for your time,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com

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


Re: Virtual Computer - Jail

2005-10-14 Thread Micah

Niclas Zeising wrote:
I was thinking about having some sort of virtual computer or operating 
system to test stuff in. The point being that i can just to a rm -rf on 
it and start over if i mess something upp really bad, all without 
affecting my regular workstation. Is jail a good sulotion for this? Is 
there any other sulotions?

Sincerely
//Niclas


You could always use qemu or bochs (many prefer the former).  One handy 
thing you could do is to keep a copy of a base HD image.  Instead of an 
rm -rf you could just erase the old HD image and make a new copy of the 
base image.


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


Re: Virtual Computer - Jail

2005-10-14 Thread Eric Schuele

Niclas Zeising wrote:
I was thinking about having some sort of virtual computer or operating 
system to test stuff in. The point being that i can just to a rm -rf on 
it and start over if i mess something upp really bad, all without 
affecting my regular workstation. Is jail a good sulotion for this? Is 
there any other sulotions?

Sincerely
//Niclas


Might look into qemu.  Its in the ports tree.  Works quite well.

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


Problem Installing native jdk1.5.0 on FreeBSD 5.3-RELEASE

2005-10-14 Thread Vincent Ngundi
Objective
-

I'm trying to install native jdk 1.5.0 on a box running FreeBSD
5.3-RELEASE.


Problem
---

When I run "make install clean", I'm getting a message telling me that I
should mount LINPROCFS before starting to build jdk 1.5.0 and that the
commands "kldload linprocfs" and 
"mount -t linprocfs linprocfs /compat/linux/proc" should do that.

** Major Problem: When I run "kldload linprocfs" (as root), I get the
following error:

"kldload: can't load linprocfs: Operation not permitted"


I have the following files on my box:

/usr/src/sys/compat/linprocfs
/usr/src/sys/i386/compile//modules/usr/src/sys/modules/linprocfs
/usr/src/sys/modules/linprocfs


What I have done


  ) I have tried to googled out the error

  ) I have lowered the _kernel_secure_level to 1...even to -1

  ) I have added the following line into my /etc/fstab file:

"linprocfs  /compat/linux/proc  linprocfs  rw  0  0"

I still get the same error when I run "kldload linprocfs".

Please help!!

-- 
-Vincent

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


New Desktop Manager

2005-10-14 Thread Paul Schmehl
I became aware of a desktop manager for Mac OS X recently.  The url is 
.


This thing is really cool.  You can set it up in the preferences so that 
when you switch between desktops they appear to be on the sides of a cube 
that rotates to the desktop you want to use.


I wonder if anyone wants to tackle porting this thing over to FreeBSD?  I 
installed it on my Powerbook, and it's the coolest thing I've ever seen. 
(My C skills aren't good enough to take on something like this.)


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Virtual Computer - Jail

2005-10-14 Thread Niclas Zeising
I was thinking about having some sort of virtual computer or operating 
system to test stuff in. The point being that i can just to a rm -rf on 
it and start over if i mess something upp really bad, all without 
affecting my regular workstation. Is jail a good sulotion for this? Is 
there any other sulotions?

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


Cron Runs Script Twice - Once With Error and Once Without?

2005-10-14 Thread Drew Tomlinson
I have a script that runs from cron.  The script mounts an smbfs share 
on another machine, copies some files from it, and then unmounts the 
share.  The script is run from a 4.11 machine.  It's connecting to a 5.4 
box running Samba 3.0.20.


I'm trying to figure out why it runs twice.  Once with an error and once 
successfully.  I get both emails at 0230 although the error email is 
listed first.   The success email is just as I'd expect but I don't 
understand the error.  The script runs without any errors interactively. 
 Here is the contents of the error email:


--- BEGIN ---

#! /bin/sh -v

# Save *.bsr files to this location
backup_dir="/root/bacula_bsr"

# Mount Blacklamb's /usr filesystem.  Exit if error.
/sbin/mount -t smbfs //[EMAIL PROTECTED]/User /blacklamb && 
	echo -e "/blacklamb mounted successfully.\n" || {

echo -e Unable to mount /blacklamb\. 1>&2
exit 1
}
smbfs: can't get handle to requester (no /dev/nsmb* device)
Unable to mount /blacklamb.
--- END ---

And here is the contents of the success email:
--- BEGIN ---

#! /bin/sh -v

# Save *.bsr files to this location
backup_dir="/root/bacula_bsr"

# Mount Blacklamb's /usr filesystem.  Exit if error.
/sbin/mount -t smbfs //[EMAIL PROTECTED]/User /blacklamb && 
	echo -e "/blacklamb mounted successfully.\n" || {

echo -e Unable to mount /blacklamb\. 1>&2
exit 1
}
/blacklamb mounted successfully.


# Test that $backup_dir exists ([ is actually /bin/test). If it does
# then continue.  Otherwise create $backup_dir.
if [ -e $backup_dir ]; then
echo -e "$backup_dir exists!\n" 1>&2

else 
	{ mkdir $backup_dir &&

echo -e "Created ${backup_dir}.\n"
} || {
echo -e "Failed to create ${backup_dir}!!!\n";
exit 1
}
fi
/root/bacula_bsr exists!


# Move existing files to *.yesterday.
echo -e "Moving files..."
Moving files...
for i in `ls ${backup_dir}/*.bsr`; do
   mv -v "$backup_dir"/`basename $i` "$backup_dir"/`basename $i`\.yesterday
done
/root/bacula_bsr/BackupCatalog.bsr -> 
/root/bacula_bsr/BackupCatalog.bsr.yesterday
/root/bacula_bsr/bigdaddy.bsr -> /root/bacula_bsr/bigdaddy.bsr.yesterday
/root/bacula_bsr/blacklamb.bsr -> /root/bacula_bsr/blacklamb.bsr.yesterday
/root/bacula_bsr/blacksheep.bsr -> /root/bacula_bsr/blacksheep.bsr.yesterday
/root/bacula_bsr/lillady.bsr -> /root/bacula_bsr/lillady.bsr.yesterday
/root/bacula_bsr/restore.bsr -> /root/bacula_bsr/restore.bsr.yesterday
/root/bacula_bsr/tv.bsr -> /root/bacula_bsr/tv.bsr.yesterday

# Copy files from Blacklamb.
echo -e "\nCopying files..."

Copying files...
for i in `ls /blacklamb/var/db/bacula/*.bsr`; do
cp -pv "$i" "$backup_dir" || {
echo -e "Error creating ${backup_dir}/${i}!!!"
}
done
/blacklamb/var/db/bacula/BackupCatalog.bsr -> /root/bacula_bsr/BackupCatalog.bsr
/blacklamb/var/db/bacula/bigdaddy.bsr -> /root/bacula_bsr/bigdaddy.bsr
/blacklamb/var/db/bacula/blacklamb.bsr -> /root/bacula_bsr/blacklamb.bsr
/blacklamb/var/db/bacula/blacksheep.bsr -> /root/bacula_bsr/blacksheep.bsr
/blacklamb/var/db/bacula/lillady.bsr -> /root/bacula_bsr/lillady.bsr
/blacklamb/var/db/bacula/restore.bsr -> /root/bacula_bsr/restore.bsr
/blacklamb/var/db/bacula/tv.bsr -> /root/bacula_bsr/tv.bsr

# Unmount Blacklamb's filesystem.
/sbin/umount /blacklamb && echo -e "\n/blacklamb unmounted successfully." || {
   echo -e "\nUnable to unmount /blacklamb." 1>&2
   exit 1
}

/blacklamb unmounted successfully.

exit

--- END ---


Here is the relevant crontab:

--- BEGIN ---
# Backup bootstrap files from Blacklamb.
MAILTO="root"
# Run after incrementals at 0230 (everyday except Sunday.)
30 2 * * 1-6 /usr/local/scripts/backup_bootstrap.sh
# Run 2-5th Sundays at 0230 - Differentials
30 2 8-31 * 7 /usr/local/scripts/backup_bootstrap.sh
# Run 1st Sunday at 0930 - Fulls
30 9 1-7 * 7 /usr/local/scripts/backup_bootstrap.sh
--- END ---

Any ideas on what is happening here?

Thanks,

Drew

--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books, & More!

http://www.alchemistswarehouse.com

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


New Message in 'Daily Output'

2005-10-14 Thread Gerard Seibert
Using FreeBSD 5.4, the following has suddenly started appearing in the
'Daily Output' results>

This was today:
Local network system status:
seibercom   down 21:35

Yesterdays:
Local network system status:
seibercom   down   1+21:34

Previously, the messages had all indicated how long the network was up,
the users and load level. What would have caused the sudden change? I do
not believe that I have done anything deliberately that would have
caused it.

-- 
Ciao

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


Re: SSH Port Forwarding Specific IP

2005-10-14 Thread Lowell Gilbert
John Do <[EMAIL PROTECTED]> writes:

> If you have a FreeBSD computer with multiple IP
> addresses and you want an outside client to tunnel how
> can you force the tunnel to use a certain IP?

Isn't the -b option for exactly that?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NIS on FreeBSD 5.4/4.11

2005-10-14 Thread Lowell Gilbert
Michael Jeung <[EMAIL PROTECTED]> writes:

> Good evening all,
> 
> I am desperately trying to get NIS working in my FreeBSD 5.4 and 4.11
> environment - specifically, I'm trying to get NIS set up such that a
> NIS client is able to change the password for an account.
> 
> Like a good little rabbit, I have followed, step-by-step the NIS
> guide in the handbook:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-
> nis.html
> 
> In my test environment, I have two servers set up: BoxA and BoxB.
> BoxA is the NIS Master running 5.4, BoxB is the NIS client running
> 4.11.   I have created a NIS user named "charlie" on BoxA.   I am
> able to log into BoxB as charlie.  Great so far, right?  ypcat
> demonstrates that the correct user on BoxB is coming down and ypwhich
> passwd shows that BoxA is BoxB's daddy.
> 
> Now, I want to be able to change "charlie"'s NIS password while I'm
> logged into BoxB.  Here's where I run into problems.  Whenever I run
> yppasswd or passwd as charlie, I get "Permission Denied."  I know
> I've run into this error before (without ever being able to fix it)
> and after googling for quite some time, I've been unable to find
> anyone else who seems to be running into this problem -- but I know
> other people must have encountered this before, because I'm not doing
> anything fancy.  This is the most vanilla install of NIS I can create.
> 
> If anyone has any hints on where I should look from here, I would
> very much appreciate it!

I just set it up yesterday with no problem, working from the same doc.
Have you got yppasswdd running?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Hardware Support (USB)

2005-10-14 Thread T3chn0Phr34k
Hi, My name is WIlliam and I recently started a small foundation and
decided to install FreeBSD as main server the problem is when I try to
install my mouse, My mouse is a USB mouse, optical from the Gateway
house, well none of the drivers supports it I was wandering if its
posible to configure the kernel before starting the installation, and
how could I do this.
Thank you

My System: FreeBSD 5.4-RELEASE
MOUSE: USB, Optical from Gateway

Please I really need help everything is stopped because of this
beacuse I do not want to install another Operating System as Main
Server.

Keep Up the good work. Great system you got there
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: fsck question

2005-10-14 Thread J.D. Bronson

At 07:14 AM 10/14/2005, Bernhard Fischer wrote:

> UNREF FILE I=1060395  OWNER=root MODE=100644
> SIZE=0 MTIME=Oct 14 06:50 2005
> CLEAR? no
>
> ..how can I find *this* file its not happy about?

The option -i of ls shows you the inode number of the files. So you 
could make

an ls -lRi >tmpfile and then searching for the inode number within tmpfile.

Regards,
bh



When I shut off apache2, this problem goes away.
so it must be some file thats open or something and as such nothing 
to worry about


thanks-






--
J.D. Bronson
Information Services
Telecommunications Site Support
Aurora Health Care - Milwaukee, Wisconsin
Office: 414.978.8282 // Fax: 414.977.5299

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


Re: fsck question

2005-10-14 Thread Bernhard Fischer
On Friday 14 October 2005 13:56, J.D. Bronson wrote:
> shadow# fsck -f /dev/ad0s1d
> ** /dev/ad0s1d (NO WRITE)
> ** Last Mounted on /usr
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> UNREF FILE I=1060395  OWNER=root MODE=100644
> SIZE=0 MTIME=Oct 14 06:50 2005
> CLEAR? no
>
> ..how can I find *this* file its not happy about?

The option -i of ls shows you the inode number of the files. So you could make 
an ls -lRi >tmpfile and then searching for the inode number within tmpfile.

Regards,
bh


pgpKNJl74ZHj1.pgp
Description: PGP signature


Re: D-Link wireless LAN card not working in 5.3-R

2005-10-14 Thread Will Maier
On Thu, Oct 13, 2005 at 11:50:41PM -0700, N Deepak wrote:
> I am running FreeBSD 5.3 RELEASE on IBM ThinkPad R40e.  I have
> compiled a custom kernel.

> I have a D-Link wireless LAN card:  DWL-G650+

I have the same card working fine on 5.4; do you have ath enabled in
the kernel? There are multiple versions of the card, so I can't
guarantee that your version will work with the ath driver, but
there's a good chance you can get it to work.

-- 

o--{ Will Maier }--o
| jabber:[EMAIL PROTECTED] | email:[EMAIL PROTECTED] |
| [EMAIL PROTECTED] | [EMAIL PROTECTED] |
*--[ BSD Unix: Live Free or Die ]--*

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


fsck question

2005-10-14 Thread J.D. Bronson

I am running the beta 5 of 6.0 and was wondering if anyone could
help me figure out why fsck is not happy...

At boot time: (forced fsck - things look fine)

Oct 14 06:50:16 shadow kernel: ** /dev/ad0s1d
Oct 14 06:50:16 shadow kernel: ** Last Mounted on /usr
Oct 14 06:50:16 shadow kernel: ** Phase 1 - Check Blocks and Sizes
Oct 14 06:50:16 shadow kernel: ** Phase 2 - Check Pathnames
Oct 14 06:50:16 shadow kernel: ** Phase 3 - Check Connectivity
Oct 14 06:50:16 shadow kernel: ** Phase 4 - Check Reference Counts
Oct 14 06:50:16 shadow kernel: ** Phase 5 - Check Cyl groups
Oct 14 06:50:16 shadow kernel: 65946 files, 473793 used, 9677846 free 
(15150 frags, 1207837 blocks, 0.1% fragmentation)


But then once the machine is up I see this:

shadow# fsck -f /dev/ad0s1d
** /dev/ad0s1d (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=1060395  OWNER=root MODE=100644
SIZE=0 MTIME=Oct 14 06:50 2005
CLEAR? no

..how can I find *this* file its not happy about?




--
J.D. Bronson
Information Services
Telecommunications Site Support
Aurora Health Care - Milwaukee, Wisconsin
Office: 414.978.8282 // Fax: 414.977.5299

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


Re: chm file conversion?

2005-10-14 Thread Sandy Rutherford
> On Sun, 9 Oct 2005 12:51:43 +0400, 
> "Andrew P." <[EMAIL PROTECTED]> said:

 > On 10/9/05, Sandy Rutherford <[EMAIL PROTECTED]> wrote:
 >> Colin,
 >> 
 >> On Sat, 08 Oct 2005 you wrote:
 >> 
 >> > Vizion wrote:
 >> >> As per subject - does anyone know of any utils for converting microsofts
 >> >> compiled help files for use on freebsd?
 >> 
 >> > I've found converters/chmview to be useful in the past.
 >> 
 >> Anything available for converting chm to pdf or ps?  I believe that
 >> there are some programs for doing this under MS Windows.
 >> 
 >> Sandy
 >> ___
 >> freebsd-questions@freebsd.org mailing list
 >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 >> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
 >> 

 > Just print it to a ps file. Pdf and ps are easily
 > interconvertible.

I know.  That's not the issue.  xchm only supports printing one page
at a time, which a cumbersome way to go about printing the entire
document to file.  There is a box in the print dialogue that you can
tick in order to print the entire document.  However, it doesn't work.

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


Re: D-Link wireless LAN card not working in 5.3-R

2005-10-14 Thread Erik Norgaard

On Thu, 13 Oct 2005, N Deepak wrote:


 I am running FreeBSD 5.3 RELEASE on IBM ThinkPad R40e.  I have
 compiled a custom kernel.

 I have a D-Link wireless LAN card:  DWL-G650+


IIRC it has never worked. I had one and tried with ndis, but I 
never got it working so eventually I threw it away and got a 
reliable brand, 3Com.


I won't exclude that you cat get it working but consider if it is 
worth the effort compared to the price of a new card that "just 
works" (TM).


Cheers, Erik

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