Command line video player

2009-02-21 Thread Mehul Ved
Hi,
I am setting up a P1 90MHz machine for some light multimedia
playback for a friend. As of now, it is running on FreeBSD 5.5. We
have been able to play mp3's using mpd and it's doing well till now.
Next, I am looking for a video player. But, I have following problems
while proceeding :
1) Would the machine be able to handle any kind of videos
2) I am not able to find mplayer for 5.5 so I tried to get it's
package from 5-RELEASE, which lists lots of dependancies. How do I get
mplayer package for 5.5
3) Is there any other video player with lesser dependencies since the
machine has just 4GB HDD.

-- 

Forgive him, for he believes that the customs of his tribe are the
laws of nature! -- G.B. Shaw
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Command line video player

2009-02-21 Thread nawcom

Mehul Ved wrote:

Hi,
I am setting up a P1 90MHz machine for some light multimedia
playback for a friend. As of now, it is running on FreeBSD 5.5. We
have been able to play mp3's using mpd and it's doing well till now.
Next, I am looking for a video player. But, I have following problems
while proceeding :
1) Would the machine be able to handle any kind of videos
2) I am not able to find mplayer for 5.5 so I tried to get it's
package from 5-RELEASE, which lists lots of dependancies. How do I get
mplayer package for 5.5
3) Is there any other video player with lesser dependencies since the
machine has just 4GB HDD.

  
the only dependencies it really has are the codecs that you want it to 
support. Heck, you can compile it so it only plays mp3 audio and xvid 
avis if you want to. So if you insist to go down the package route, i'm 
sure it was compiled with a ton of codecs included. if you compile it 
yourself, you just need to include what you want supported. And 
compiling those codec libraries or whatever won't take up too much disk 
space either.  That's my suggestion to this situation you have.

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


Re: Command line video player

2009-02-21 Thread Mehul Ved
On Sat, Feb 21, 2009 at 10:45 AM, nawcom naw...@nawcom.com wrote:
 if you compile it yourself, you
 just need to include what you want supported. And compiling those codec
 libraries or whatever won't take up too much disk space either.  That's my
 suggestion to this situation you have.

Compile it on P1 90MHz? :( I can't install FreeBSD on any other PC.

-- 

Forgive him, for he believes that the customs of his tribe are the
laws of nature! -- G.B. Shaw
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


USAFestival.net Event Portal

2009-02-21 Thread USAFestival . net Team
Upload Your event free at www.usafestival.net/upload

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


Re: Command line video player

2009-02-21 Thread Wojciech Puchar

   I am setting up a P1 90MHz machine for some light multimedia
playback for a friend. As of now, it is running on FreeBSD 5.5. We
have been able to play mp3's using mpd and it's doing well till now.
Next, I am looking for a video player. But, I have following problems
while proceeding :
1) Would the machine be able to handle any kind of videos


only low res.


2) I am not able to find mplayer for 5.5 so I tried to get it's
package from 5-RELEASE, which lists lots of dependancies. How do I get
mplayer package for 5.5


install FreeBSD 7


3) Is there any other video player with lesser dependencies since the
machine has just 4GB HDD.


still should be no problem to compile it even on 1GB HDD
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Command line video player

2009-02-21 Thread Mehul Ved
On Sat, Feb 21, 2009 at 4:36 PM, Wojciech Puchar
woj...@wojtek.tensor.gdynia.pl wrote:
 install FreeBSD 7

How do I upgrade to FreeBSD 7? Use ports?

-- 

Forgive him, for he believes that the customs of his tribe are the
laws of nature! -- G.B. Shaw
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Command line video player

2009-02-21 Thread Manolis Kiagias
Mehul Ved wrote:
 On Sat, Feb 21, 2009 at 4:36 PM, Wojciech Puchar
 woj...@wojtek.tensor.gdynia.pl wrote:
   
 install FreeBSD 7
 

 How do I upgrade to FreeBSD 7? Use ports?

   
No. Strictly speaking, you would have to obtain the  sources for
7.1-RELEASE and rebuild the base system. This is described in Chapter 24
of the FreeBSD Handbook.  However, you wouldn't want to do any of this
on a P1 90. Just download the CD/DVD and reinstall from scratch.

As far as video playback on a P1 90, I doubt you will accomplish much.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


questions

2009-02-21 Thread leva Thecouch
Hello!
It is possible, whether in FreeBSD 7.0 to use programs for creation of music 
and processing of a sound, such as FLStudio 8.0, Sony Sound Forge 8.0? Cubase 
Studio 4.1, Wave Lab 5 etc.?
All of them work in system Windows XP, whether somehow it is possible to make 
active them in FreeBSD?
If it can be impossible there are any analogues of the similar Software?
Very much I hope on выш the answer...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Rsync | Push script

2009-02-21 Thread Jos Chrispijn
Just having made a backup script that should take care of nocturnal 
backup of my mySQL data from one server to my backup server.


cd /backup
DATE=`date +%d%m%y`
DIR=backup.$DATE

/letc/rc.d/mysql-server stop
rsync -avpog /var/db/mysql//r...@10.10.10.50:123/usr/backup/$DATE/
/letc/rc.d/mysql-server start

It goes wrong when I run the rsync line; I run my backup thru port 123 
(can be any portnumber).
10.10.10.50 is backup server on which I want to logon as root; during 
script run I will fill out root password myself.


Can someone hint me in the right direction? rsync deamon is running.

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


kernel compile problems

2009-02-21 Thread daemon
Hi,

I try to build a 7.1 kernel but when i does

# make depend  make clean depend

make shows :

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

anyone know anything? Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Rsync | Push script

2009-02-21 Thread Bill Moran
Jos Chrispijn j...@webrz.net wrote:

 Just having made a backup script that should take care of nocturnal 
 backup of my mySQL data from one server to my backup server.
 
 cd /backup
 DATE=`date +%d%m%y`
 DIR=backup.$DATE
 
 /letc/rc.d/mysql-server stop
 rsync -avpog /var/db/mysql//r...@10.10.10.50:123/usr/backup/$DATE/
 /letc/rc.d/mysql-server start
 
 It goes wrong when I run the rsync line; I run my backup thru port 123 
 (can be any portnumber).
 10.10.10.50 is backup server on which I want to logon as root; during 
 script run I will fill out root password myself.
 
 Can someone hint me in the right direction? rsync deamon is running.

Based on your description, I have no idea what your actual problem is.
I mean, you're basically saying, it doesn't work.  Which doesn't give
folks any way to help you, really.

What error message do you see?  What's in the logs?  You're running the
rsync client with -v, which should be pretty verbose, have you tried
running the rsync server with the logging amped up?

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


USB INSTALL SCRIPTS

2009-02-21 Thread Sergio de Almeida Lenzi
Ok...
the scripts are at:
http://dist.k1.com.br/scripts/baselist_amd64
http://dist.k1.com.br/scripts/baselist_i386
http://dist.k1.com.br/scripts/makebootdisk
http://dist.k1.com.br/scripts/zfsetup

install these scripts on /root

makebootdisk:
formats the disk (or usb stick) at da0,da1...) make a bsdlabel on it
and using the baselist file, copies the running system files into the
USB 
it will work on FreeBSD  versions greater 7.0
this way the usb is bootable, have a filesystem on it.
the same root password...
you can fix the files/etc/rc.conf, /boot/loader.conf  in the usb
filesystem in
order for it to boot from your kernel. 
remeber to check for an a  partition on your usb stick

the script needs to have access to install bash (pkg_add -r bash) so it
needs internet of a package repository with bash in it.

Once boot from your usb stick, you can do the same procedure to
transport the running system to another disk
if you intend to make a zfs running filesytem on the target disk (hd)
make the disklabel (bsdlabel) this way
a: 1gb16 unused
b: 4gb*swap
d: **unused
that is: 
a partition 1gb at offset 16
b swap partition 4gb after partion A
d: the rest of the disk (this will hold the zpool).

the makebootdisk will install a running system on A (about 300mb...)


ZFSETUP
is a script that, when boot from the hd created with makebootdisk
moves the running system (booted from a partition) to the the zfspool
created, in the d partition mentioned above..
it edits the loader.conf  in order to boot on zfs.. in order to boot
from

After that, you are running on ZFS...

Sergio





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


moused + sysmouse

2009-02-21 Thread t-u-t

hi,
i am having some issues with moused and have spent alot of time these 
past few days playing with it.
finally i just let it be since it not that critical; but i can't get it 
out the back of my mind and have a couple of questions for anyone who 
has a moment because it works ok in x11 and i am mainly just interested 
in seeing how moused works in console. (so mention of x11 is just for 
info); plus i am not sure if there are some known issues.


i have a (usb) copperhead razer on 7.1-release i386 and in rc.conf it 
was always set to /dev/mse0, which doesn't exist in /dev.
so i don't think it ever really loaded. the mouse cursor usually still 
comes up in console and responds to movement - but that's about it. then 
it works ok in x11 (sett as /dev/sysmouse by xorg -configure). pse0 
doesn't exist in /dev either, but there is sysmouse, and also ukbd0, 
which is actually what the system says it is atached to when it is 
plugged in.


when ever i tried /dev/sysmouse in rc.conf, the cursor would be 
extremely *jiggery*, fly to the screen edges and only move along the 
borders when i move it - eventually getting stuck in some corner after a 
few seconds of that. at long last i added usbd_enable=YES to rc.conf 
and played around with a lot of different settings in moused flags.


finally i got it to stand still and move properly enough, but has wierd 
issues with cut and paste and when enbling the -V option. in cut and 
paste it always -always, and always, *loses* some characters, like cut 
the word -question- pastes  something like  -questin- and so on.
with -V enabled, once i use the scroll wheel (not press), it 
contuinually pastes large chunks of whatever was on screen ( like motd) 
for pages on end. if i switch to  another virtual tty  at that point i 
get login : and a whole line of  flickering a few times, then 
spits  incorrect login into a vicous cycle untill all i can do is 
force a reboot with ctl+alt+del.


removing -V and leaving settings which seemed to work prevously, seem to 
eventually not hold for some reason.


eventually i installed 8-current from 200812 snapshot on another disk, 
csup'd, built world+kernel without debugging stuff and it was easier to 
control the mouse with the same flags ( -F -r -T -A and -a ). same 
issues with cut and paste. in 8-current, whenever i change to a 
different tty (alt+f2..3..), i get a

   ukbd_set_leds_callback:556: error=USB_ERR_STALLED
on the virst tty. not sure if this is related to the mouse, keyboard, or 
just a tty thing.


as mentioned, i'd like to know what is going on and if i can resolve 
tis, but it is not critical. i'm just learning to use freebsd and plan 
to take up programming ( but sorry if this is a nuisence to ask about)


would i be  better off with usb2, and is that only in current or also in 
stable?


thanks in advance if anyone has a moment.

p.s. at the moment i just set moused_enable to NO and left the flags 
there ( which x11 still seems to be picking up on and using correctly)



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


Re: RE: vi set comment #

2009-02-21 Thread af300wsm

On Feb 20, 2009 7:56am, Johan Hendriks jo...@double-l.nl wrote:



 define service{



 use generic-service



 host_name w2003hk03



 service_description Explorer



 check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe



 }







 And now i want to set a # to all the 6 lines.




Thanks all for the fast and usefull response.





Regards,



Johan Hendriks



As if you haven't already gotten enough help and such, I'd like to give you  
another alternative that will be handy in the future too. Please note  
however that this only applies if you're using VIM.


1) Place your cursor on top of the first character you want to put the  
comment in front of (in your example, which I left above, that would on top  
of the 'd' in define)

2) Hit Ctrl-v (this places the editor in visual mode)
3) Hit 'j', or use the down arrows, until your highlighted section is on  
top of the last character you want the comment in front of (in your  
example, it is the closing '}')

4) Hit Shift-I
5) Type a single '#'
6) Hit escape

After hitting escape, you'll have a new column of '#' characters in front  
of every character in that vertical column. Also, one of your first  
respondents mentioned a mailing list at vim.org (I believe, going off  
memory), you can also get great vi/vim advice from comp.editors. They  
discuss all kinds of editors there, but the group is mainly vi dominated.


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


Re: questions

2009-02-21 Thread t-u-t

Roland Smith wrote:

On Sat, Feb 21, 2009 at 08:43:30AM +0300, leva Thecouch wrote:
  

Hello!



  

It is possible, whether in FreeBSD 7.0 to use programs for creation of
music and processing of a sound, such as FLStudio 8.0, Sony Sound
Forge 8.0? Cubase Studio 4.1, Wave Lab 5 etc.?  All of them work in
system Windows XP, whether somehow it is possible to make active them
in FreeBSD?



You could try using them with the windows emulator wine
(available in ports: /usr/ports/emulators/wine) 

  

If it can be impossible there are any analogues of the similar Software?
Very much I hope on выш the answer...



There is /usr/ports/audio/ardour, which labels itself as a 'digital
audio workstation'. See their website: http://ardour.org/

Roland
  
yes, install wine in any case. you can use most windows wav editors with 
it plus you can build ardour with VST support (which needs wine)


i have sound forge in wine but haven't really used it. audacity is the 
only real equivelent of wavelab or sound forge in the linux/ *nix world, 
and practical but not so evolved as any windows version ( it is also the 
only real option in apple's osx).


like cubase there is rosegarden but mainly midi based and i'm not sure 
how well freebsd's midi is , if it even exists at the moment.


beast (ports/audio/.beast) is similar to reaktor, but the best all round 
programs i found are the old style mod trackers, where it all started 
and much more fiun to use in my opinion. my favourite is renoise, it 
that is commercial and windows version in wine so far. some free ones in 
ports are milkytracker and soundtracker.


other audio programs in ports are mixxx and terminatorx, jamin, jack-rack.

still ardour is the most professional DAW around
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Command line video player

2009-02-21 Thread Wojciech Puchar

no ports are not base system.

you may just do reinstall.

if you fell a bit more advanced you may try the following:

1) replace kernel with generic from 7.0
2) reboot. it should work as there is backward compatibility.
3) unpack FreeBSD userland binaries from CD - by just entering every 
directory (like base, doc, etc...) and running install.sh
4) then upgrade manually /etc . maybe it could be done more automatic but 
i never did it that way - maybe someone else will help you.


5) install compat5x from ports unless you like to reinstall all ports.

reboot
On Sat, 21 Feb 2009, Mehul Ved wrote:


On Sat, Feb 21, 2009 at 4:36 PM, Wojciech Puchar
woj...@wojtek.tensor.gdynia.pl wrote:

install FreeBSD 7


How do I upgrade to FreeBSD 7? Use ports?

--

Forgive him, for he believes that the customs of his tribe are the
laws of nature! -- G.B. Shaw



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


Re: Command line video player

2009-02-21 Thread Wojciech Puchar


As far as video playback on a P1 90, I doubt you will accomplish much.


P200 MMX plays TV class videos fine, but P1 90 - maybe only half-res
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: questions

2009-02-21 Thread Wojciech Puchar

Hello!
It is possible, whether in FreeBSD 7.0 to use programs for creation of music 
and processing of a sound, such as FLStudio 8.0, Sony Sound Forge 8.0? Cubase 
Studio 4.1, Wave Lab 5 etc.?
All of them work in system Windows XP, whether somehow it is possible to make 
active them in FreeBSD?


you may try running it in wine, but anyway - if you wish to use windows 
based software, using windows is a best choice.



If it can be impossible there are any analogues of the similar Software?
Very much I hope on ??? the answer...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



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


Re: questions

2009-02-21 Thread t-u-t

Wojciech Puchar wrote:

Hello!
It is possible, whether in FreeBSD 7.0 to use programs for creation 
of music and processing of a sound, such as FLStudio 8.0, Sony Sound 
Forge 8.0? Cubase Studio 4.1, Wave Lab 5 etc.?
All of them work in system Windows XP, whether somehow it is possible 
to make active them in FreeBSD?


you may try running it in wine, but anyway - if you wish to use 
windows based software, using windows is a best choice.



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


Re: kernel compile problems

2009-02-21 Thread Michael Powell
daemon wrote:

 Hi,
 
 I try to build a 7.1 kernel but when i does
 
 # make depend  make clean depend
 
 make shows :
 
 make : don't know how to make ../../../dev/agp/agp.c. Stop
 
 anyone know anything? Thanks!
[snip]

Have you tried cd to /usr/src and make buildkernel KERNCONF=yourkernel
and make installkernel KERNCONF=yourkernel ? Where yourkernel would be the 
name of your custom kernel (yourkernel.conf) minus the .conf part.

-Mike




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


Re: kernel compile problems

2009-02-21 Thread Wojciech Puchar


# make depend  make clean depend

make shows :

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

anyone know anything? Thanks!


that you miss some files - this file do exist.


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


Re: Command line video player

2009-02-21 Thread Mehul Ved
On Sat, Feb 21, 2009 at 8:52 PM, Wojciech Puchar
woj...@wojtek.tensor.gdynia.pl wrote:
 you may just do reinstall.

I guess that's what I will ask someone to do since I won't be there
till next Saturday.

 if you fell a bit more advanced you may try the following:

 1) replace kernel with generic from 7.0
 2) reboot. it should work as there is backward compatibility.
 3) unpack FreeBSD userland binaries from CD - by just entering every
 directory (like base, doc, etc...) and running install.sh
 4) then upgrade manually /etc . maybe it could be done more automatic but i
 never did it that way - maybe someone else will help you.

 5) install compat5x from ports unless you like to reinstall all ports.

 reboot

I'd like to try this... but some other time now.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Rsync | Push script

2009-02-21 Thread Jos Chrispijn

Sorry for the confusion; the problem is in the rsync line:

rsync -avpog /var/db/mysql //r...@10.10.10.50:123/usr/backup/

Running this line causes rsync to say:
Unexpected remote arg: r...@10.10.10.50:123
rsync error: syntax or usage error (code 1) at main.c(1202) [sender=3.0.5]

On the server that I use this push script, I want to connect as root to the 
backup server; thru port 123 (can be any port). With rsync running I can't get 
this to work. Can someone tell me what I do wrong here?

Jos Chrispijn


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


Re: w(5) shows non-existent or lost process?

2009-02-21 Thread Frank Shute
On Tue, Feb 17, 2009 at 02:54:47PM +, Anton Shterenlikht wrote:

 On Tue, Feb 17, 2009 at 08:02:12AM -0600, Randy Belk wrote:
  On Tue, Feb 17, 2009 at 7:43 AM, Anton Shterenlikht me...@bristol.ac.uk 
  wrote:
   The who (or w, or finger) command shows that I'm still logged into ttyp5,
   even though I have rebooted the xxx box many times since. Does this mean
   the corresponding entry in /var/run/utmp is wrong and shouldn't be there, 
   or is there
   still some process attached to ttyp5?
  
   ouput of w:
  
   USER TTY  FROM  LOGIN@  IDLE WHAT
   mexasp4   xxx 1:32pm - w
   mexasp5   xxx:0. 26Jan09 21days -
  
   ps ax | grep ttyp5
shows no process
  
   Looking at w(1) man page it seems that - in WHAT can be an indication
   that the process failed but not cleanly and that there could be some 
   forked
   sub-process still alive. Does this make sense? Which other commands I can 
   use
   to see what's going on?
  
  
  LSOF is your friend! The port is located in /usr/ports/sysutils/lsof
  To find out what is using ttyp5 type in lsof | grep ttyp5 and it
  should show you the process
 
 # lsof |grep ttyp5
 #
 
 this is 6.4-stable alpha which might not be fully supported by lsof,
 according to the man page. Anything else I can try?

I'm not sure why everybody recommends lsof for these sorts of problems
when fstat(1) does pretty much the same thing!

Glad you got your problem sorted anyway.

 
 many thanks
 anton
 

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


FreeBSD 7.1 on Intel server board S3200SHV

2009-02-21 Thread Martin Schweizer
Hello

Does FreeBSD 7.1 run on Intel S3200SHV mainboards with S3200 chipset? I did 
not find any hints in HARDWARE.TXT (also not on support.intel.com and not in 
Google).

Regards,
-- 

Martin Schweizer
off...@pc-service.ch

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;

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


unique groups

2009-02-21 Thread Pieter Donche

FreeBSD adduser creates by default users with GID equal to UID. There is
a very short notice in the man page ('UNIQUE GROUPS') from Rod Grimes. 
Where can a more elaborate argumentation be found on the net?


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


Re: Top returning 0.0% cpu usage

2009-02-21 Thread Frank Shute
On Fri, Feb 20, 2009 at 01:07:54PM -0800, mojo fms wrote:

 What would cause top to report back 0.0% cpu usage across the top row?  It
 shows the minmal adverage and max correctly and seems to show the correct
 amount for the processes.

How about showing us the lines of top that seem to be a problem?

I think you are reading the load averages which have a different
meaning than current cpu usage. They are the load averages over 1, 5
 15 mins respectively. ie: the average number of processes *running*
(processes spend most of their time idle. RUN in the State column of
top shows when a process is actually using the cpu).

If your machine is virtually idle then the 1 minute load average will
be 0 or close to 0 and is normal.

If you've just turned on your machine or it's been sitting idle for 15
mins then the other load averages will also be 0.

E.g: On this machine doing not a lot:

last pid: 96158;  load averages:  0.00,  0.04,  0.05up 1+23:50:42 17:41:46

(7.1 RELEASE)

 
 Copyright (c) 1992-2009 The FreeBSD Project.
 Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
 The Regents of the University of California. All rights reserved.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
 FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009
 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
 Timecounter i8254 frequency 1193182 Hz quality 0
 CPU: Intel Pentium III (996.77-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0x68a  Stepping = 10

[snip]

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


Re: FreeBSD 7.1 on Intel server board S3200SHV

2009-02-21 Thread Abdullah Ibn Hamad Al-Marri

- Original Message 

 From: Martin Schweizer lists_free...@bluewin.ch
 To: freebsd-questions@freebsd.org
 Sent: Saturday, February 21, 2009 8:37:42 PM
 Subject: FreeBSD 7.1 on Intel server board S3200SHV
 
 Hello
 
 Does FreeBSD 7.1 run on Intel S3200SHV mainboards with S3200 chipset? I did 
 not find any hints in HARDWARE.TXT (also not on support.intel.com and not in 
 Google).
 
 Regards,
 -- 
 
 Martin Schweizer

CPU: Intel ® Core ™ 2 CPU e8...@3.16ghz (3165.08-MHz 686-class CPU) 
Origin = GenuineIntel  Id = 0x1067a  Stepping = 10 Origin = GenuineIntel Id 
= 0x1067a Stepping = 10 
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLU
 Features = 0xbfebfbff FPU, VME, DE, PSE, TSC, MSR, PAE, MCE, CX8, APIC, SEP, 
MTRR, PGE, MCA, CMOV, PAT, PSE36, CLFLU 
SH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE SH, DTS, ACPI, MMX, FXSR, SSE, 
SSE2, SS, HTT, TM, PBE 
Features2=0x309SSE3,MON,TM2,SSSE3 Features2 = 0x309 SSE3,MON,TM2,SSSE3 
AMD Features=0x2010NX,LM AMD Features = 0x2010 NX,LM 
AMD Features2=0x1LAHF AMD Features2 = 0x1 LAHF 
Cores per package: 2 Cores per package: 2 
real memory  = 1071620096 (1021 MB) real memory = 1071620096 (1021 MB) 
avail memory = 1038602240 (990 MB) avail memory = 1038602240 (990 MB) 
ACPI APIC Table: INTEL  S3200SHV ACPI APIC Table: INTEL S3200SHV 
 

FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD / SMP: 
Multiprocessor System Detected: 2 CPUs 
cpu0 (BSP): APIC ID:  0 cpu0 (BSP): APIC ID: 0 
cpu1 (AP): APIC ID:  1 cpu1 (AP): APIC ID: 1 

This is with FreeBSD 7.0

 Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/




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


Re: kernel compile problems

2009-02-21 Thread Bruce Cran

daemon wrote:

I try to build a 7.1 kernel but when i does

# make depend  make clean depend

make shows :

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

anyone know anything? Thanks!
  


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


make buildkernel KERNCONF=configfile

Leave the KERNCONF out to build GENERIC.

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


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


Re: kernel compile problems

2009-02-21 Thread Wojciech Puchar
The process for building a kernel has changed since the days of 4.x.  Now you 
should just use:


make buildkernel KERNCONF=configfile

Leave the KERNCONF out to build GENERIC.

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


--

if userland and kernel are in sync old method is OK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: NanoBSD :: smallest image size

2009-02-21 Thread Tim Judd

On Thu, 2009-02-19 at 23:48 -0800, per...@pluto.rain.com wrote:
  I did consider running it off a straight cd, but I alter my routes
  enough through various tunnels I have established that this would
  be a pain.  (i.e. updating vtund configs) ...
 
 System on CD, reading config from floppy?

I've tried this, in my own mix
due to rcorder, an external /etc filesystem is not read NOR mounted in
time to be read.  When I did it and tried to bring it up ASAP, the
system failed to read hostname variable in the external /etc filesystem.

I haven't yet, and probably won't try -- to rewrite the /etc/rc startup
to allow it.  And I think it's because /etc/rc sources /etc/rc.conf even
before it runs  So how can I start rc and get the
external /etc/rc.conf read before rc starts?

I'd like to know, if it's possible.


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


Re: Rsync | Push script

2009-02-21 Thread Roland Smith
On Sat, Feb 21, 2009 at 06:14:27PM +0100, Jos Chrispijn wrote:
 Sorry for the confusion; the problem is in the rsync line:
 
 rsync -avpog /var/db/mysql //r...@10.10.10.50:123/usr/backup/
 
 Running this line causes rsync to say:
 Unexpected remote arg: r...@10.10.10.50:123
 rsync error: syntax or usage error (code 1) at main.c(1202) [sender=3.0.5]
 
 On the server that I use this push script, I want to connect as root
 to the backup server; thru port 123 (can be any port). With rsync
 running I can't get this to work. Can someone tell me what I do wrong
 here?

You got the syntax for the rsync command wrong. Either remove the '//' in
front of the remote address or use 'rsync://'. See the rsync(1) manual page.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpL5uR37bpx6.pgp
Description: PGP signature


Re: KGDB connection failure - Please help, I'm desparate! (= or desperate)

2009-02-21 Thread Peter Craft

First off - Make that desperate.  Sorry.

Second, an update..

I've modified remote.c in gdb to print the data coming across the
serial line.  When I boot with -d and enter gdb followed by s, absolutely
nothing comes across the serial line - readchar times out every time.

If I then reboot without -d (with the same modified gdb running) and set 
console=comconsole
I see all of the expected console characters read by readchar.

So it appears that the gdb stub on the target isn't outputing any data to
the serial line whatsoever.  Again, I have KDB, DDB, and GDB set in the
configuration file and the sio flags set to 0x90 (I've tried 0xc0 as well)
in the loader.conf file.  Furthermore, when I boot with -d I see the
message:
GDB: Current port: sio

Can anyone think of a reason why the target isn't outputting debug packets to
the serial port?  Can anyone suggest a method to debug a debugger?

Thanks


  - Original Message - 
  From: Peter Craft 
  To: freebsd-questions@freebsd.org 
  Sent: Friday, February 20, 2009 3:28 PM
  Subject: KGDB connection failure - Please help, I'm desparate!



  I've been trying for three days to get KGDB to work.

  I've followed the instructions here:
  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-online-gdb.html

  and here:
  http://www.lemis.com/grog/Papers/Debug-tutorial/tutorial.pdf

  without success.  Specifically, I've rebuilt my kernel with:
  makeoptions DEBUG=-g# Build kernel with gdb(1) debug 
symbols
  ..
  options KDB
  options DDB
  options GDB

  My boot.config file contains -P and my /boot/loader.conf file contains:
  hint.sio.0.flags=0x90

  When I issue the boot -d on the target, the system breaks in to the db 
prompt
  as expected, at which point I enter gdb followed by s.  All of which 
seems to
  work perfectly.

  On the debugger side I enter kgdb with kgdb -r /dev/cuad0 -v kernel.debug
  from the build directory and I get:

  Ignoring packet error, continuing...
  Ignoring packet error, continuing...
  Ignoring packet error, continuing...
  Couldn't establish connection to remote target
  Malformed response to offset query, timeout

  If I boot the remote system with set console=comconsole, I'm able to 
communicate
  across the serial line as a console, so I believe that the serial ports and 
cable are
  functioning properly.  I just can't get gdb to connect.

  Can anyone offer any suggestion on what to try next?  Or tips on how to go
  about debugging the problem?  This is with FreeBSD 7.1.

  Thanks in advance,

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


read two files simultaneously

2009-02-21 Thread Junsuk Shin
Hello,

I need to read two files simultaneously, and simply read(2) is
interleaved to do this. The problem is the performance varies
dramatically depending on the file size. I'm wondering what is the
problem in this case.

The test application does following:

open 2 files
  - the size of two file is same
  - since I read only once, bypass cache with O_DIRECT
read 16Kbytes of file1, then read 16K of file2, and so on

simplified code is like this:

fd1 = open(file1, O_RDONLY | O_DIRECT);
fd2 = open(file2, O_RDONLY | O_DIRECT);

for(...) {
/* read 16K of file1 */
while(...) {
count = read(fd1,...);

}
/* read 16K of file2 */
while(...) {
count = read(fd2,...);

}
}

When I tested with two 100M files, it takes 3.17 seconds (about 31MB/s
per file, 62MB/s in total)
However, if I test with two 700M files, it takes 162 seconds (about
4.5MB/s per file, 9MB/s in total)

I'm just guessing inode structure, the physical file location on HDD
might be related to this. But, if I read only one file, the size
doesn't matter. Reading file (10M, 100M, 700M) gives constantly about
70MB/s, and the weird thing happens when I read 2 files of big size.

The seek time might be related to this, but it looks like too huge
difference. What is going on this?

Thanks.

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


Re: When is there going to be a USB install and run iso iamge for FreeBSD?

2009-02-21 Thread pete wright
On Fri, Feb 20, 2009 at 6:12 PM, Fbsd1 fb...@a1poweruser.com wrote:
 Sergio de Almeida Lenzi wrote:

 Em Sex, 2009-02-20 às 20:51 +, Formula 1 escreveu:

 Is there going to be a possibility for FreeBSD, in the future or now,
 that there will be a release of it that allows for install and running of
 the operating system off of a USB memory stick?



 I have it running here... two small scripts save it from the disk into a
 2mb usb stick.
 once in the usb you can boot (from the usb) and install it on any other
 disk in 5 minutes
 and using zfs (a 1gb ufs partition, a swap partition and a big zfs
 partition.
 if needed I can put the script in the web fo testing or download.

 I adivse that  there is no need to enter sysinstall.

 Hope it can help

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


 Sure would like a copy of your scrips.
 Thanks


+1 here.  would it be possible to post the scripts, or a url, to the list?

cheers,
-pete




-- 
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Rsync | Push script

2009-02-21 Thread Polytropon
Just a small note which has nothing to do with the
actual rsync problem:

On Sat, 21 Feb 2009 14:40:21 +0100, Jos Chrispijn j...@webrz.net wrote:
 DATE=`date +%d%m%y`

In order to be able to sourt your backups by date,
you could use the form 

DATE=`date +%y%m%d`

or

DATE=`date +%Y%m%d`

to get a date signature that can be sorted.



Just a suggestion - I've had the best experiences
with the form

DATE=`date +%Y-%m-%d`

attached to the backup's subject.




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: kernel compile problems

2009-02-21 Thread Reed Loefgren

Wojciech Puchar wrote:


# make depend  make clean depend   --?

make shows :

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

anyone know anything? Thanks!


that you miss some files - this file do exist.


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



boozer [105] [9:56am] [/sys/i386/conf]# cp GENERIC sample
boozer [106] [9:56am] [/sys/i386/conf]# config sample
Kernel build directory is ../compile/sample
Don't forget to do ``make cleandepend  make depend''--!

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


Re: When is there going to be a USB install and run iso iamge for FreeBSD?

2009-02-21 Thread George Hartzell
Formula 1 writes:
  Is there going to be a possibility for FreeBSD, in the future or now, that 
  there will be a release of it that allows for install and running of the 
  operating system off of a USB memory stick?
  

There's a pretty simple script here that builds a bootable usb stick.

  http://yds.coolrat.org/zfsboot.shtml

While you're there, there's a second script for setting up a mostly
ZFS based system, it's a bit behind the time given the zfs boot code
work going on in -CURRENT, but still seems pretty relevant if you're
in -STABLE world.

g.


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


Re: read two files simultaneously

2009-02-21 Thread Wojciech Puchar

I'm just guessing inode structure, the physical file location on HDD
might be related to this. But, if I read only one file, the size
doesn't matter. Reading file (10M, 100M, 700M) gives constantly about
70MB/s, and the weird thing happens when I read 2 files of big size.


if you use O_DIRECT it's read from disk exactly as you specified, without 
readahead, so you do a lot of seeks.


simply use bigger buffer like 1MB
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


USB INSTALL SCRIPTS

2009-02-21 Thread Sergio de Almeida Lenzi
Ok...
the scripts are at:
http://dist.k1.com.br/scripts/baselist_amd64
http://dist.k1.com.br/scripts/baselist_i386
http://dist.k1.com.br/scripts/makebootdisk
http://dist.k1.com.br/scripts/zfsetup

install these scripts on /root

makebootdisk:
formats the disk (or usb stick) at da0,da1...) make a bsdlabel on it
and using the baselist file, copies the running system files into the
USB 
it will work on FreeBSD  versions greater 7.0
this way the usb is bootable, have a filesystem on it.
the same root password...
you can fix the files/etc/rc.conf, /boot/loader.conf  in the usb
filesystem in
order for it to boot from your kernel. 
remeber to check for an a  partition on your usb stick

the script needs to have access to install bash (pkg_add -r bash) so it
needs internet of a package repository with bash in it.

Once boot from your usb stick, you can do the same procedure to
transport the running system to another disk
if you intend to make a zfs running filesytem on the target disk (hd)
make the disklabel (bsdlabel) this way
a: 1gb16 unused
b: 4gb*swap
d: **unused
that is: 
a partition 1gb at offset 16
b swap partition 4gb after partion A
d: the rest of the disk (this will hold the zpool).

the makebootdisk will install a running system on A (about 300mb...)


ZFSETUP
is a script that, when boot from the hd created with makebootdisk
moves the running system (booted from a partition) to the the zfspool
created, in the d partition mentioned above..
it edits the loader.conf  in order to boot on zfs.. in order to boot
from

After that, you are running on ZFS...

Sergio





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


The FreeBSD Diary: 2009-02-21

2009-02-21 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 

RECENT ARTICLES:

2-Dec : Obscuring smtp auth headers
 If you consider your smtp-auth location to be private, this is what you 
want. 
 http://freebsddiary.org/smtp-headers-rewrite-auth.php?2

29-Nov : OpenVPN - creating a routed VPN
 If you have multiple VPN clients, this is a practical solution. 
 http://freebsddiary.org/openvpn-routed.php?2

27-Nov : Creating your own Certificate Authority
 How to create a CA and generate your own SSL certificates
 http://freebsddiary.org/openvpn-easy-rsa.php?2

27-Nov : OpenVPN - getting it running
 Using OpenVPN to create a secure pathway between home and office 
 http://freebsddiary.org/openvpn.php?2

5-Oct : Removing dead mailing lists from Mailman
 Mailing lists can outlive their usefulness 
 http://freebsddiary.org/mailman-removing-dead-lists.php?2

30-Aug : gmirror - recovering from a failed HDD
 an HDD failed.  gmirror to the rescue. 
 http://freebsddiary.org/gmirror-failure.php?2

6-Jul : ezjail - A jail administration framework
 This makes jails easier 
 http://freebsddiary.org/ezjail.php?2

24-Jun : Adding gmirror to an existing installation
 Adding RAID-1 to an existing FreeBSD 7 installation
 http://freebsddiary.org/gmirror.php?2

20-Mar : ThinkPad x61s
 Unpacking the box, installing PC-BSD 
 http://freebsddiary.org/thinkpad-x61s.php?2

17-Mar : Using two monitors with X.org
 The GeForce 8600 GT with two monitors 
 http://freebsddiary.org/xorg-two-screens.php?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


Re: NanoBSD :: smallest image size

2009-02-21 Thread perryh
Tim Judd gmail.com!taj...@agora.rdrop.com wrote:

 On Thu, 2009-02-19 at 23:48 -0800, per...@pluto.rain.com wrote:
   I did consider running it off a straight cd, but I alter my routes
   enough through various tunnels I have established that this would
   be a pain.  (i.e. updating vtund configs) ...
  
  System on CD, reading config from floppy?

 I've tried this, in my own mix
 due to rcorder, an external /etc filesystem is not read NOR mounted in
 time to be read.  When I did it and tried to bring it up ASAP, the
 system failed to read hostname variable in the external /etc filesystem.

 I haven't yet, and probably won't try -- to rewrite the /etc/rc startup
 to allow it.  And I think it's because /etc/rc sources /etc/rc.conf even
 before it runs  So how can I start rc and get the
 external /etc/rc.conf read before rc starts?

 I'd like to know, if it's possible.

There's no way to mount /etc AFAIK, because parts of it are
needed too soon:  /etc/fstab if nothing else.  However, I had
gotten the impression that the only frequently-changing part
of the config in question involved vtund.

Rather than trying to do the mount early, I was thinking
of starting vtund later than usual -- perhaps by making
it depend on the completion of mount -a -- and having
it read its config from a file on the mounted floppy.

If vtund has to start sooner than that, an alternate approach
might be to have vtund read its config from the /dev/fd0 device
itself, rather than from a filesystem mounted on /dev/fd0
(having prepared the floppy ahead of time by something like
dd if=/path/to/vtund/config/file of=/dev/fd0).

Yet another approach would be to have boot and root (and thus
/etc) on floppy, but /usr on CD.  Tweaking things so that /usr
can be read-only dates back at least as far as SunOS 4.0.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


cups - printer busy; will retry in 10 seconds

2009-02-21 Thread Vasadi I. Claudiu Florin


Hello ppl.

After messing with the problem for about 1w, posting to some forums, and  
torture-interogating mister google I was unable to solve this particular  
matter.


It's about a FreeBSD 7.1-STABLE box with cups and a Brother hl-2032 laser  
printer. I keep getting (in cups web interface and terminal) printer  
busy. Tracing back my stept I remember that I managed to install the  
printer (with a ppd file for hl1240. driver seems to work with 2030  
series) and print a test page from cups web interface.


But to start from scrach.

After plugins in the usb printer freebsd recognized it as /dev/ulpt0,  
root:operator own and 644 permisions. Afterwards I installed cups (from  
ports) modified the config file so it would allow acces from certain IP's,  
added the printer from the web interface and printed a test page. All  
worked out smoothly. Shuted down the pc(sleep time), and in the morning  
when I powered it up again cups had a little surprise for me, kept going  
on and on about printer busy; will retry in 10 seconds. Like that wasn't  
enough doing echo whatever  /dev/ulpt0 or /dev/lpt0 would also return  
with printer busy message. After 1 w or so, not managing to solve the  
problem, I deinstalled cups and all dependencies it installed originaly  
(this is why I didn't provide any conf file so far). Now I wan't to try  
again.



So first of all let's rull out the firewall. I have pf built into my  
kernel (a generic kernel with pf, altq built-in and ISA, RAID, SCSI_DELAY,  
Firewire commented out; nopthing exotic;;also rebuilded the world) and  
this particular line in my pf.conf - pass in on $ext_if proto {tcp, udp}  
from 192.168.0.6 to any port {0:65535}. This alows full acces from  
192.168.0.6 (my xp box) to the bsd box. Also tryed with pf disabled.


Installed cups from ports with all options. Ended up with cups-1.3.9 and  
cups-base-1.3.9_3.

Now the cups conf file:

LogLevel info
SystemGroup wheel

# Allow remote access
Port 631
Listen /var/run/cups.sock

# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic

Location /
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow @LOCAL
/Location

Location /admin
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
/Location

Location /admin/conf
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow @LOCAL
/Location

Policy default
  Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job  
Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription  
Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job  
Suspend-Current-Job Resume-Job CUPS-Move-Job

Require user @OWNER @SYSTEM
Order deny,allow
  /Limit

  Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class  
CUPS-Delete-Class CUPS-Set-Default

AuthType Default
Require user @SYSTEM
Order deny,allow
  /Limit

  Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer  
Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs  
Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer  
Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs  
CUPS-Reject-Jobs

AuthType Default
Require user @SYSTEM
Order deny,allow
  /Limit

  Limit Cancel-Job CUPS-Authenticate-Job
Require user @OWNER @SYSTEM
Order deny,allow
  /Limit

  Limit All
Order deny,allow
  /Limit
/Policy







error_log reports:

I [22/Feb/2009:01:38:13 +0200] Started  
/usr/local/libexec/cups/cgi-bin/printers.cgi (pid=93251)
E [22/Feb/2009:01:38:14 +0200] SSL shutdown failed: Error in the push  
function.
I [22/Feb/2009:01:38:23 +0200] Started  
/usr/local/libexec/cups/cgi-bin/printers.cgi (pid=93253)
I [22/Feb/2009:01:38:34 +0200] Started  
/usr/local/libexec/cups/cgi-bin/printers.cgi (pid=93254)
I [22/Feb/2009:01:38:44 +0200] Started  
/usr/local/libexec/cups/cgi-bin/printers.cgi (pid=93255)
I [22/Feb/2009:01:38:54 +0200] Started  
/usr/local/libexec/cups/cgi-bin/printers.cgi (pid=93256)
E [22/Feb/2009:01:38:54 +0200] SSL shutdown failed: Error in the push  
function.
I [22/Feb/2009:01:39:04 +0200] Started  
/usr/local/libexec/cups/cgi-bin/printers.cgi (pid=93257)
I [22/Feb/2009:01:39:14 +0200] Started  
/usr/local/libexec/cups/cgi-bin/printers.cgi (pid=93258)
I [22/Feb/2009:01:39:24 +0200] Started  
/usr/local/libexec/cups/cgi-bin/printers.cgi (pid=93259)



I really don't thinmk that ssl line is causing all this.

Again, doing echo from the terminal doesn't help.

I'm really tired of this. If you have any ideas, do tell.

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


Re: cups - printer busy; will retry in 10 seconds

2009-02-21 Thread prad
On Sun, 22 Feb 2009 01:44:09 +0200
Vasadi I. Claudiu Florin claudiu.vas...@gmail.com wrote:

 I'm really tired of this. If you have any ideas, do tell.

the only thing i can suggest at this point (since i have the same
problem) is the post from rem:

==
Do you have devfs.rules in your /etc directory that has this contained
within:

[system=10]
add path 'unlpt*' mode 0660 group cups
add path 'ulpt*' mode 0660 group cups
add path 'lpt*' mode 0660 group cups

There is a whole permissions thing that has to be correct or cups won't
play.
==

here's a link to that thread:
http://www.nabble.com/printer-hp-officejet-pro-k8600-to22070484.html

i haven't had a chance to look into this yet so i don't know if it is a
solution or not.


-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Security Alert : Account Information

2009-02-21 Thread Bankofamerica

   [mhd_reg_logo.gif]
   [em_title_red.gif]

   Dear Bank Of America customer, 

   Protecting the security of our customers and the Bank Of America
   network , as a preventative measure, we have temporarily limited
   access to sensitive account features.

   To restore your account access, please take the following steps to
   ensure that your account has not been compromised:

   After updates :

   1.Login to your Bank Of America Online Banking account. In case you
   are not enrolled for Online Banking, you will have to fill in all the
   required information, including your name and you account number.

   2. Review your recent account history for any unauthorized withdrawals
   or deposits, and check you account profile to make sure not changes
   have been made. If any unauthorized activity has taken place on your
   account, report this to Bank Of America staff im! mediately.

   To get started, plea! se click the link below:

   [1]http://www.bankofamerica.com/Survey/online-secure/BankOfAmerica/
 _

   This alert has been sent to you based on your preferences. If you
   would like to make any changes to your Online Banking Alerts service,
   please sign in to Online Banking and visit the Manage Alerts section.

   Because your reply will not be transmitted via secure e-mail, the
   e-mail address that generated this alert will not accept replies. If
   you would like to contact Bank of America with questions or comments,
   please sign in to Online Banking and visit the customer service
   section.
 _

   Bank of America, N.A. Member FDIC. Equal Housing Lender
   © 2008 Bank of America Corporation. All rights reserved
 _

References

   1. http://mindandbodywellness.org/templates/rhuk_milkyway/html/update.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


gmirror keeps breaking

2009-02-21 Thread Dan
Is gmirror known to break on power failure - i.e., one of the drives
(the same drive every time) becomes unsynchronized, needing a rebuild?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Security Alert : Account Information

2009-02-21 Thread Bankofamerica

   [mhd_reg_logo.gif]
   [em_title_red.gif]

   Dear Bank Of America customer, 

   Protecting the security of our customers and the Bank Of America
   network , as a preventative measure, we have temporarily limited
   access to sensitive account features.

   To restore your account access, please take the following steps to
   ensure that your account has not been compromised:

   After updates :

   1.Login to your Bank Of America Online Banking account. In case you
   are not enrolled for Online Banking, you will have to fill in all the
   required information, including your name and you account number.

   2. Review your recent account history for any unauthorized withdrawals
   or deposits, and check you account profile to make sure not changes
   have been made. If any unauthorized activity has taken place on your
   account, report this to Bank Of America staff im! mediately.

   To get started, plea! se click the link below:

   [1]http://www.bankofamerica.com/Survey/online-secure/BankOfAmerica/
 _

   This alert has been sent to you based on your preferences. If you
   would like to make any changes to your Online Banking Alerts service,
   please sign in to Online Banking and visit the Manage Alerts section.

   Because your reply will not be transmitted via secure e-mail, the
   e-mail address that generated this alert will not accept replies. If
   you would like to contact Bank of America with questions or comments,
   please sign in to Online Banking and visit the customer service
   section.
 _

   Bank of America, N.A. Member FDIC. Equal Housing Lender
   © 2008 Bank of America Corporation. All rights reserved
 _

References

   1. http://mindandbodywellness.org/templates/rhuk_milkyway/html/update.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: gmirror keeps breaking

2009-02-21 Thread Wojciech Puchar

Is gmirror known to break on power failure - i.e., one of the drives
(the same drive every time) becomes unsynchronized, needing a rebuild?


if you turned autosync off - yes

turn it on or do gmirror rebuild


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



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


ATI Radeon X600: no DRI upon X restart :-(

2009-02-21 Thread Vladimir Kushnir
Hi,
Here's a problem. I start X from console via startx. For a long while DRI
gets initialized only if X is started practically immediately after boot
and only for the first time. Otherwise (if X is closed, then restarted,
or something has been done prior to startx) I get :

(EE) RADEON(0): [pci] Out of memory (-12)
(EE) RADEON(0): [pci] PCI failed to initialize. Disabling the DRI.

This is amd64-CURRENT,
uname -a:
FreeBSD kushnir1.kiev.ua 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Wed Feb  4
08:15:51 EET 2009 r...@kushnir1.kiev.ua:/usr/obj/usr/src/sys/KUSHNIR
amd64

NForce4 based MB (s939) Asus A8N SLI, Athlon 3000+, 512 MB RAM, Radeon
X600 PCIE.

Any suggestions?

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