Re: Recording from sound card
On Thu, 10 Feb 2011 22:17:57 -0500, Robert Ames roberta...@hotmail.com wrote: I'm having problems trying to record from a sound card under 8.1-RELEASE. The last time I tried this was many releases ago, possibly 4.x-RELEASE. Back then I would do something like cat /dev/dsp file but now when I try it I just end up with a 0 byte file. I'm using a different sound card than before so maybe that has something to do with it. Or possibly I just don't know which device to use. Playing sounds using cat file.wav /dev/dsp0.0 works fine, but I can't get recording to work. Does anyone have any suggestions? Thanks. My suggestion would be to install the port sox, it will provide a rec command that can be used to record WAV or any other supported audio file format, e. g. % rec foo.au or % rec bar.wav And sox provides other excellent command line tools for audio manipulation (sox, play, rec); see man sox for details. Note that play filename is easier than cat'ing the file to the dsp device directly (which may require specific access permissions). -- Polytropon 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: switching from gnu make to bsd make
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- questi...@freebsd.org] On Behalf Of Robert Bonomi Sent: 11 February 2011 01:59 AM To: Vikash Badal Cc: freebsd-questions@freebsd.org Subject: Re: switching from gnu make to bsd make Try typing make all and see what happens then. Make all produces the follow output: make all cc -o bin/nntpd -lpthread -lmysqlclient_r -Wall -g -Iinclude -I/usr/local/include -I/usr/local/include/mysql -L/usr/local/lib -L/usr/local/lib/mysql obj/log.o obj/cleanup.o obj/config.o obj/leecherpool.o obj/mytime.o obj/nntp.o obj/upstream.o obj/mysleep.o obj/sqlpool.o obj/sql.o obj/signalhandler.o obj/daemon.o obj/list.o obj/tcpserver.o obj/tmpfiles.o obj/listenpool.o obj/workers.o obj/nntpd.o cc: obj/log.o: No such file or directory cc: obj/cleanup.o: No such file or directory cc: obj/config.o: No such file or directory cc: obj/leecherpool.o: No such file or directory cc: obj/mytime.o: No such file or directory cc: obj/nntp.o: No such file or directory cc: obj/upstream.o: No such file or directory cc: obj/mysleep.o: No such file or directory cc: obj/sqlpool.o: No such file or directory cc: obj/sql.o: No such file or directory cc: obj/signalhandler.o: No such file or directory cc: obj/daemon.o: No such file or directory cc: obj/list.o: No such file or directory cc: obj/tcpserver.o: No such file or directory cc: obj/tmpfiles.o: No such file or directory cc: obj/listenpool.o: No such file or directory cc: obj/workers.o: No such file or directory cc: obj/nntpd.o: No such file or directory *** Error code 1 With gmake : $(OBJDIR)/%.o:${SRCDIR}/%.c ${CC} -c ${CFLAGS} ${INCDIR} ${LIBDIR} $ -o $@ This creates all the .o files I need How do I do this with bsd make ? this is my make file: - - CC= cc * LIBS = -lpthread -lmysqlclient_r CFLAGS= -Wall -g INCDIR= -Iinclude -I/usr/local/include - I/usr/local/include/mysql LIBDIR= -L/usr/local/lib -L/usr/local/lib/mysql OBJDIR= obj SRCDIR= src BINDIR= bin PREFIX= /usr/local/nntpd BINDIRFILES = ${BINDIR}/nntpd OBJS = ${OBJDIR}/log.o ${OBJDIR}/cleanup.o ${OBJDIR}/config.o \ ${OBJDIR}/leecherpool.o ${OBJDIR}/mytime.o ${OBJDIR}/upstream.o ${OBJDIR}/mysleep.o ${OBJDIR}/sql.o ${OBJDIR}/signalhandler.o ${OBJDIR}/list.o ${OBJDIR}/tcpserver.o ${OBJDIR}/listenpool.o ${OBJDIR}/workers.o \ ${OBJDIR}/nntpd.o $(OBJDIR)/%.o:${SRCDIR}/%.c ${CC} -c ${CFLAGS} ${INCDIR} ${LIBDIR} $ -o $@ all:${OBJS} ${CC} -o ${BINDIR}/nntpd ${LIBS} ${CFLAGS} ${INCDIR} ${LIBDIR} \ ${OBJDIR}/log.o ${OBJDIR}/cleanup.o ${OBJDIR}/config.o \ ${OBJDIR}/leecherpool.o ${OBJDIR}/mytime.o ${OBJDIR}/nntp.o \ ${OBJDIR}/upstream.o ${OBJDIR}/mysleep.o ${OBJDIR}/sqlpool.o \ ${OBJDIR}/sql.o ${OBJDIR}/signalhandler.o ${OBJDIR}/daemon.o \ ${OBJDIR}/list.o ${OBJDIR}/tcpserver.o ${OBJDIR}/tmpfiles.o \ ${OBJDIR}/listenpool.o ${OBJDIR}/workers.o \ ${OBJDIR}/nntpd.o - - ___ 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 Please note: This email and its content are subject to the disclaimer as displayed at the following link http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a mail to disclaim...@is.co.za and a copy will be emailed to you. ___ 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 and SSD drives
Hi, Is anyone using SSD drives on freeBSD server systems? I'm attracted by the performance increases i've seen on both my desktops and laptops (quite amazing and easy upgrade if you've not tried).. I see from here http://en.wikipedia.org/wiki/TRIM#Operating_system_and_SSD_support that full TRIM support only comes in 8.2, I'd be interested to here peoples opinions on best uses for SSD, general purpose applications such as databases , webservers etc will benefit obviously, but i'm also curious as to disk intensive applications such as mailq's, spamassassin etc? (I presume here the lack of TRIM may degrade performance rapidly?) thanks Paul. -- - Paul Macdonald IFDNRG Ltd Web and video hosting - t: 0131 5548070 m: 07534206249 e: p...@ifdnrg.com w: http://www.ifdnrg.com - IFDNRG 40 Maritime Street Edinburgh EH6 6SA - ___ 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 and SSD drives
Nothing to do oh, freebsd-questions stay in bat! 2011/02/11 09:40:37 + Paul Macdonald p...@ifdnrg.com = To FreeBSD Mailing List : PM I'd be interested to here peoples opinions on best uses for SSD, general PM purpose applications such as databases , webservers etc will benefit PM obviously, Sun.com before to bankrupt was spamming me about their nice idea on SSD appliance for their servers. It took me a some while though to know out accidentally that they apply solid-state memory devices for... FS journal. This looks wise and reasonable to me because: 1. SSD is known as less reliable storage. 2. SSD has less track-to-track seek average time. ( than usual HDD ) 73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB 12F8 0CE1 4AAC A0E2 6627) -- http://vereshagin.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: how to add a few hundred ip on one interface?
11.02.2011 8:07, Matthew Seaman пишет: ipv4_addrs_re0=xxx.xxx.yyy.134-147/23 See rc.conf(5) for details. And this construction work? ipv4_addrs_ed0=192.0.2.129/27 192.0.2.1-2/28 192.0.2.4-5/28 -- Vladislav V. Prodan VVP24-UANIC +38[067]4584408 +38[099]4060508 vla...@jabber.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to add a few hundred ip on one interface?
On 02/11/2011 09:55 AM, Vladislav V. Prodan wrote: And this construction work? ipv4_addrs_ed0=192.0.2.129/27 192.0.2.1-2/28 192.0.2.4-5/28 It would work only if all the IPs were on the same subnet. If you want to use different subnets you need to implement vlans on that interface first. Regards, Guillermo signature.asc Description: OpenPGP digital signature
Re: how to add a few hundred ip on one interface?
11.02.2011 15:25, Guillermo Fernando Cotone wrote: On 02/11/2011 09:55 AM, Vladislav V. Prodan wrote: And this construction work? ipv4_addrs_ed0=192.0.2.129/27 192.0.2.1-2/28 192.0.2.4-5/28 It would work only if all the IPs were on the same subnet. If you want to use different subnets you need to implement vlans on that interface first. man rc.conf ... One can configure more than one IPv4 address with the ipv4_addrs_interface variable. One or more IP addresses must be provided in Classless Inter-Domain Routing (CIDR) address notation, whose last byte can be a range like 192.0.2.5-23/24. In this case the address 192.0.2.5 will be configured with the netmask /24 and the addresses 192.0.2.6 to 192.0.2.23 with the non-conflicting netmask /32 as explained in the ifconfig(8) alias section. With the inter- face in question being ed0, an example could look like: ipv4_addrs_ed0=192.0.2.129/27 192.0.2.1-5/28 ... -- Vladislav V. Prodan VVP24-UANIC +38[067]4584408 +38[099]4060508 vla...@jabber.ru ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to add a few hundred ip on one interface?
On Fri, Feb 11, 2011 at 8:25 AM, Guillermo Fernando Cotone guillermo.cot...@gmail.com wrote: On 02/11/2011 09:55 AM, Vladislav V. Prodan wrote: And this construction work? ipv4_addrs_ed0=192.0.2.129/27 192.0.2.1-2/28 192.0.2.4-5/28 It would work only if all the IPs were on the same subnet. If you want to use different subnets you need to implement vlans on that interface first. Regards, Guillermo Implementing vlans makes an assumption that the network in question already does too. Though I agree, that in practice multiple subnets should not be on the same ethernet segment, it is not technically impossible. The correct response was quoted from the rc.conf manpage per the other response already sent. VLAN implementation is a whole different setup. -- Nathan Vidican nat...@vidican.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
Re: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD
On Fri, 11 Feb 2011 08:56:42 +0100 Damien Fleuriot m...@my.gd wrote: The list strips non-text attachments so there isn't much to see at the moment though... It wasn't supposed to be attached - try http://druidbsd.sourceforge.net/download/host-setup.txt :) -- 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: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD
In freebsd-questions Digest, Vol 349, Issue 8, Message: 15 On Thu, 10 Feb 2011 19:53:53 -0800 Devin Teske dte...@vicor.com wrote: Hi All, I'd like to announce the release of a new script. A script that I've developed for our field engineers that I'd like to share with the rest of the world. http://druidbsd.sourceforge.net/download/host-setup.txt host-setup(1) is a dialog(1)-based utility (written in sh(1)) designed to make configuring FreeBSD more efficient. Nice, if only as great bedtime reading so far; I've already learned some new techniques. I expect to steal lots of it wholesale (acknowledged :) cheers, Ian ___ 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's tftp and tftpd-hpa
FreeBSD's current tftp client doesn't work with tftpd-hpa. FreeBSD 9.0-CURRENT (XEN) #0: Fri Jan 21 15:54:41 EST 2011 ~(fbpv)1% tftp 192.168.1.1 tftp get pxeboot Got ERROR packet: Unsupported option(s) requested Error code 2048: Unsupported option(s) requested tftp Anybody got a solution for this? Otherwise I'll hack it up. I'm forced to use tftpd-hpa because I have diskless Linux clients that are brought up with pxelinux.0 and that one needs the option to provide file size beforehand. But FreeBSD's tftp client wants other options and KABOOM. The bad thing about this is that I'm debugging probably unrelated problems with pxeboot and I have no way of knowing for sure whether my problems might be caused by more options clashes. It's not that tftpd-hpa log which options specifically were requested and denied. Or that FreeBSD's client says which options it requested before it blew up. Martin -- %%% Martin Cracauer craca...@cons.org http://www.cons.org/cracauer/ Shameless advocate of FreeBSD. http://www.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: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD
On Fri, 2011-02-11 at 08:56 +0100, Damien Fleuriot wrote: Hi Devin, Thanks for sharing your work. The list strips non-text attachments so there isn't much to see at the moment though... Thanks Damien. Here's a link to the pic I posted online in-tandem with the post to the list(s). http://www.twitpic.com/3yhye7 -- Devin --- Fleuriot Damien On 11 Feb 2011, at 04:53, Devin Teske dte...@vicor.com wrote: Hi All, I'd like to announce the release of a new script. A script that I've developed for our field engineers that I'd like to share with the rest of the world. http://druidbsd.sourceforge.net/download/host-setup.txt host-setup(1) is a dialog(1)-based utility (written in sh(1)) designed to make configuring FreeBSD more efficient. We have this script configured to be run as root's initial login immediately after first-boot. The field engineer uses our custom installer to install RELENG_8, and after the machine presents a login prompt, they login with the pre-configured root password. After which they are presented with this dialog (image attached: host-setup.pub.png). The dialogs should all be intuitive, and I hope that you like my work. I've worked very hard to make this utility smooth, robust, fault-tolerant and even enjoyable to use. Not only that, but it helps prevents mistakes that could arise in doing these steps by-hand (like forgetting to unmount active NFS-mounts before executing route flush). Please give it a try and let me know what you think. -- Devin P.S. This is not a trivial script. ``More nuclear reactor than bike shed'' ^_^ P.P.S. Should be backward compatible to RELENG_4. P.P.S. I know the screenshot says host-setup.pub -- that's only because our in-house-only version has more functionality than the one I'm releasing to the general public today (no functionality that anyone in the public audience would ever care about though). ___ freebsd-hack...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-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: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD
Hi Devin, Thanks for sharing your work. The list strips non-text attachments so there isn't much to see at the moment though... --- Fleuriot Damien On 11 Feb 2011, at 04:53, Devin Teske dte...@vicor.com wrote: Hi All, I'd like to announce the release of a new script. A script that I've developed for our field engineers that I'd like to share with the rest of the world. http://druidbsd.sourceforge.net/download/host-setup.txt host-setup(1) is a dialog(1)-based utility (written in sh(1)) designed to make configuring FreeBSD more efficient. We have this script configured to be run as root's initial login immediately after first-boot. The field engineer uses our custom installer to install RELENG_8, and after the machine presents a login prompt, they login with the pre-configured root password. After which they are presented with this dialog (image attached: host-setup.pub.png). The dialogs should all be intuitive, and I hope that you like my work. I've worked very hard to make this utility smooth, robust, fault-tolerant and even enjoyable to use. Not only that, but it helps prevents mistakes that could arise in doing these steps by-hand (like forgetting to unmount active NFS-mounts before executing route flush). Please give it a try and let me know what you think. -- Devin P.S. This is not a trivial script. ``More nuclear reactor than bike shed'' ^_^ P.P.S. Should be backward compatible to RELENG_4. P.P.S. I know the screenshot says host-setup.pub -- that's only because our in-house-only version has more functionality than the one I'm releasing to the general public today (no functionality that anyone in the public audience would ever care about though). ___ freebsd-hack...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to freebsd-hackers-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
system clock running 2h early although ntpd enabled
Since some weeks my local clock runs two hours early. My /etc/localtime is a copy of /usr/share/zoneinfo/Europe/Berlin and I have set both ntpd_enable=YES and ntpd_sync_on_start=YES. My ntp.conf consists of server ntp1.ptb.de prefer server ntp2.ptb.de restrict default ignore restrict 127.0.0.1 Surely, I must be missing something. Does anybody have an idea? Thanks and cheers, -- Christopher J. Ruwe TZ GMT + 1 signature.asc Description: PGP signature
Re: system clock running 2h early although ntpd enabled
On Feb 11, 2011, at 1:16 PM, Christopher J. Ruwe wrote: My ntp.conf consists of server ntp1.ptb.de prefer server ntp2.ptb.de restrict default ignore restrict 127.0.0.1 Surely, I must be missing something. Does anybody have an idea? What does ntpq -p -c rv indicate? It wouldn't surprise me if you needed to remove the restrict default ignore line, or needed to add restrict ntp1.ptb.de Regards, -- -Chuck ___ 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 and SSD drives
On Fri, Feb 11, 2011 at 09:40:37AM +, Paul Macdonald wrote: I'd be interested to here peoples opinions on best uses for SSD, general purpose applications such as databases , webservers etc will benefit obviously, but i'm also curious as to disk intensive applications such as mailq's, spamassassin etc? (I presume here the lack of TRIM may degrade performance rapidly?) Ignoring the TRIM issue for a moment . . . You're probably best off saving SSD storage for cases where you have lots of reads and little to no write activity, unless you enjoy buying new SSDs a lot. Actually, let's not ignore TRIM; the work-around for lack of TRIM support on some drives is a garbage collection routine that exacerbates the problem of having to replace your SSDs more often if you do a lot of writes. I guess I would only use SSDs on servers in the same cases where I would let myself be talked into using MySQL -- cases where you just treat it pretty much like a read-only data store, and do not have to (safely) add or change data stored there most of the time. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] pgpG1etBtYC3W.pgp Description: PGP signature
Re: system clock running 2h early although ntpd enabled
On Fri, Feb 11, 2011 at 1:16 PM, Christopher J. Ruwe c...@cruwe.de wrote: Since some weeks my local clock runs two hours early. My /etc/localtime is a copy of /usr/share/zoneinfo/Europe/Berlin and I have set both ntpd_enable=YES and ntpd_sync_on_start=YES. ntpd has a sanity check -- if the clock is out by more than 1000 seconds it will give up. So you may have to manually set the clock to something close to correct before ntpd will handle it. Or pass ntpd the -g flag to disable the initial sanity check, if you're sure you trust your clock servers not to do something silly. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: system clock running 2h early although ntpd enabled
On Fri, 11 Feb 2011 12:13:43 -0800 David Brodbeck g...@gull.us wrote: On Fri, Feb 11, 2011 at 1:16 PM, Christopher J. Ruwe c...@cruwe.de wrote: Since some weeks my local clock runs two hours early. My /etc/localtime is a copy of /usr/share/zoneinfo/Europe/Berlin and I have set both ntpd_enable=YES and ntpd_sync_on_start=YES. ntpd has a sanity check -- if the clock is out by more than 1000 seconds it will give up. So you may have to manually set the clock to something close to correct before ntpd will handle it. Or pass ntpd the -g flag to disable the initial sanity check, if you're sure you trust your clock servers not to do something silly. ___ 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 Thanks to you both. My issue turned out to be a connection of the points you made. Thanks again and cheers, -- Christopher J. Ruwe TZ GMT + 1 signature.asc Description: PGP signature
Re: Scanner recommendation
Nothing to do oh, freebsd-questions stay in bat! 2011/02/03 18:02:09 -0800 Rem P Roberti remeg...@comcast.net = To FreeBSD : RPR Now that I understand how to get a scanner working, if there are any RPR photographers out there who are using scanners with FreeBSD for RPR negatives or slides I would love to hear a recommendation. I have an RPR Epson V500, but it is unsupported, and the only scanner that I have that RPR is supported is an old HP Scanjet 3970, which is a poor scanner for RPR doing negatives or slides. epson perfection 3490 scans my 35mm negatives from xsane. 73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB 12F8 0CE1 4AAC A0E2 6627) -- http://vereshagin.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: system clock running 2h early although ntpd enabled
On Fri, 11 Feb 2011 12:13:43 -0800 David Brodbeck g...@gull.us wrote: On Fri, Feb 11, 2011 at 1:16 PM, Christopher J. Ruwe c...@cruwe.de wrote: Since some weeks my local clock runs two hours early. My /etc/localtime is a copy of /usr/share/zoneinfo/Europe/Berlin and I have set both ntpd_enable=YES and ntpd_sync_on_start=YES. ntpd has a sanity check -- if the clock is out by more than 1000 seconds it will give up. So you may have to manually set the clock to something close to correct before ntpd will handle it. Or pass ntpd the -g flag to disable the initial sanity check, That's what ntpd_sync_on_start=YES does. ___ 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: VESA and SDL in tty terminal
David Demelier demelier.da...@gmail.com writes: On 10/02/2011 15:37, Anonymous wrote: David Demelierdemelier.da...@gmail.com writes: Hello, The SDL's pkg-message says we can use video driver in tty terminal. To do this you have to load the vesa kernel module or enable it in your kernel, and set environment variable SDL_VIDEODRIVER=vgl. I tried it with mplayer : $ SDL_VIDEODRIVER=vgl; export SDL_VIDEODRIVER $ mplayer -vo sdlthe file here [...] [VO_SDL] Set_fullmode: SDL_SetVideoMode failed: Unable to switch to requested mode. IIRC, vgl(3) mode setting unlike vidcontrol(8) doesn't work as regular user. Try running mplayer under root [...] Hi it works fine except after leaving mplayer or any SDL application my tty seems broken. I can't switch to a tty anymore my screen stays black and I must reboot/shutdown (no panic) I'd try changing ttyvN using chvt[1], e.g. $ sudo mplayer ...; sleep 2 sudo chvt 1 And as mode-setting is somewhat buggy I'd suggest to start with the least problematic mode, i.e. mode# flags typesize font window linear buffer 24 (0x018) 0x0001 T 80x25 8x16 0xb8000 32k 32k 0x 32k and scaling every video to the desired resolution using vf_scale [vo.sdl] #fs = false # implied #vm = false # implied # 1600x1200 (native) is broken, downscale vf-add = scale=1270:-2 vf-add = scale=-2:1020::1 [1] http://lists.debian.org/debian-bsd/2009/11/msg6.html the one I use - http://pastebin.com/f7ycYyxe Are you encountering the same issue? There is no way to use vgl as regular user or we could open a PR for 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: VESA and SDL in tty terminal
On 10/02/2011 15:37, Anonymous wrote: David Demelierdemelier.da...@gmail.com writes: Hello, The SDL's pkg-message says we can use video driver in tty terminal. To do this you have to load the vesa kernel module or enable it in your kernel, and set environment variable SDL_VIDEODRIVER=vgl. I tried it with mplayer : $ SDL_VIDEODRIVER=vgl; export SDL_VIDEODRIVER $ mplayer -vo sdlthe file here [...] [VO_SDL] Set_fullmode: SDL_SetVideoMode failed: Unable to switch to requested mode. IIRC, vgl(3) mode setting unlike vidcontrol(8) doesn't work as regular user. Try running mplayer under root, e.g. $ sudo mplayer -msgmodule -msglevel vo=9 -vo sdlthe file here [...] DEMUX: VIDEO: [avc1] 1280x720 24bpp 23.976 fps0.0 kbps ( 0.0 kbyte/s) VIDEOOUT: SDL: Opening Plugin VIDEOOUT: [VO_SDL] Using driver: vgl. VIDEOOUT: X11 opening display: VIDEOOUT: vo: couldn't open the X11 display ()! [...] CPLAYER: Starting playback... CPLAYER: Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. CPLAYER: VO: [sdl] 1280x720 = 1280x720 Planar YV12 VIDEOOUT: SDL: Using 0x32315659 (Planar YV12) image format VIDEOOUT: SDL: using hardware-surface VIDEOOUT: SDL: setting zoomed fullscreen with modeswitching VIDEOOUT: SDL Mode: 0: 1600 x 1200 VIDEOOUT: SDL Mode: 1: 1280 x 1024 VIDEOOUT: SDL Mode: 2: 1024 x 768 VIDEOOUT: SDL Mode: 3: 800 x 600 VIDEOOUT: SDL Mode: 4: 640 x 400 VIDEOOUT: SDL Mode: 5: 640 x 480 VIDEOOUT: SDL Mode: 6: 320 x 240 VIDEOOUT: SDL Mode: 7: 320 x 400 VIDEOOUT: SDL Mode: 8: 320 x 200 VIDEOOUT: SET SDL Mode: 1: 1280 x 1024 In case your keymap doesn't work under vo_sdl(vgl) try below workaround %% Index: multimedia/mplayer/files/patch-vgl-xlate_keys === RCS file: multimedia/mplayer/files/patch-vgl-xlate_keys diff -N multimedia/mplayer/files/patch-vgl-xlate_keys --- /dev/null 1 Jan 1970 00:00:00 - +++ multimedia/mplayer/files/patch-vgl-xlate_keys 10 Feb 2011 14:34:43 - @@ -0,0 +1,62 @@ + use character codes for vgl driver + +--- configure~ configure +@@ -4579,6 +4579,19 @@ EOF + fi + fi + if test $_sdl = yes ; then ++ cat $TMPC EOF ++#ifdef CONFIG_SDL_SDL_H ++#includeSDL/SDL.h ++#else ++#includeSDL.h ++#endif ++int main(void) { SDL_VIDEO_DRIVER_VGL; return 0; } ++EOF ++ if cc_check -DCONFIG_SDL_SDL_H $_inc_tmp -lvgl || cc_check $_inc_tmp -lvgl ; then ++_ld_tmp=$_ld_tmp -lvgl ++ fi ++fi ++if test $_sdl = yes ; then + def_sdl='#define CONFIG_SDL 1' + extra_cflags=$extra_cflags $_inc_tmp + libs_mplayer=$libs_mplayer $_ld_tmp +--- libvo/sdl_common.c~ libvo/sdl_common.c +@@ -27,6 +27,11 @@ + #include input/mouse.h + #include video_out.h + ++#ifdef SDL_VIDEO_DRIVER_VGL ++#includesys/fbio.h ++#includevgl.h ++#endif ++ + static int old_w; + static int old_h; + static int mode_flags; +@@ -44,6 +49,9 @@ int vo_sdl_init(void) + SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, 100 /*SDL_DEFAULT_REPEAT_INTERVAL*/); + + // Easiest way to get uppercase characters ++#ifdef SDL_VIDEO_DRIVER_VGL ++VGLKeyboardInit(VGL_XLATEKEYS); ++#endif + SDL_EnableUNICODE(1); + + // We don't want those in our event queue. +@@ -56,8 +64,12 @@ int vo_sdl_init(void) + + void vo_sdl_uninit(void) + { +-if (SDL_WasInit(SDL_INIT_VIDEO)) ++if (SDL_WasInit(SDL_INIT_VIDEO)) { ++#ifdef SDL_VIDEO_DRIVER_VGL ++VGLKeyboardInit(VGL_CODEKEYS); ++#endif + SDL_QuitSubSystem(SDL_INIT_VIDEO); ++} + } + + void vo_sdl_fullscreen(void) %% Hi it works fine except after leaving mplayer or any SDL application my tty seems broken. I can't switch to a tty anymore my screen stays black and I must reboot/shutdown (no panic) Are you encountering the same issue? There is no way to use vgl as regular user or we could open a PR for it? Cheers, -- David Demelier ___ 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
deciphering top(1) output
hi there, i'm trying to decipher the following top(1) output: otaku% top -PSHb -d2 last pid: 14206; load averages: 0.02, 0.04, 0.00 up 1+02:08:5801:13:21 256 processes: 3 running, 238 sleeping, 15 waiting Mem: 1356M Active, 141M Inact, 342M Wired, 79M Cache, 212M Buf, 44M Free Swap: 18G Total, 692M Used, 17G Free, 3% Inuse PID USERNAME PRI NICE SIZERES STATE C TIME WCPU COMMAND 10 root 155 ki31 0K32K RUN 1 21.9H 100.00% {idle: cpu1} 10 root 155 ki31 0K32K CPU00 21.6H 97.85% {idle: cpu0} 4451 arundel 210 913M 179M uwait 0 28:35 0.00% {chrome} 4446 arundel 200 836M 60040K uwait 0 26:26 0.00% {chrome} 4476 arundel 210 854M 100M uwait 0 24:52 0.00% {chrome} 4448 arundel 220 866M 109M uwait 0 23:57 0.00% {chrome} 4474 arundel 210 840M 70796K uwait 0 23:29 0.00% {chrome} 4475 arundel 200 827M 81872K uwait 0 22:37 0.00% {chrome} 4471 arundel 200 822M 61652K uwait 0 21:55 0.00% {chrome} 4442 arundel 210 824M 62872K uwait 0 21:46 0.00% {chrome} 4447 arundel 210 815M 61420K uwait 0 21:32 0.00% {chrome} 4450 arundel 210 809M 60240K uwait 0 21:21 0.00% {chrome} 2007 arundel 200 880M 12780K select 1 20:39 0.00% Xorg 4452 arundel 200 205M 30016K select 0 12:58 0.00% {initial thread} 4414 arundel 200 334M 96560K kqread 1 11:00 0.00% {chrome} 4414 arundel 200 334M 96560K select 1 9:40 0.00% {initial thread} 4472 arundel 200 M 530M futex 1 8:21 0.00% npviewer.bin 11 root -96- 0K 240K WAIT0 7:57 0.00% {irq16: vgapci0+} last pid: 14206; load averages: 0.02, 0.04, 0.00 up 1+02:09:0001:13:23 256 processes: 4 running, 238 sleeping, 14 waiting CPU 0: 8.7% user, 0.0% nice, 4.3% system, 0.4% interrupt, 86.6% idle CPU 1: 7.1% user, 0.0% nice, 3.5% system, 0.0% interrupt, 89.4% idle Mem: 1358M Active, 141M Inact, 342M Wired, 79M Cache, 212M Buf, 42M Free Swap: 18G Total, 692M Used, 17G Free, 3% Inuse PID USERNAME PRI NICE SIZERES STATE C TIME WCPU COMMAND 10 root 155 ki31 0K32K RUN 1 21.9H 100.00% {idle: cpu1} 10 root 155 ki31 0K32K CPU00 21.6H 98.00% {idle: cpu0} 4451 arundel 210 913M 179M uwait 0 28:35 0.00% {chrome} 4446 arundel 200 836M 60292K uwait 0 26:26 0.00% {chrome} 4476 arundel 210 854M 101M uwait 0 24:52 0.00% {chrome} 4448 arundel 210 866M 109M uwait 0 23:57 0.00% {chrome} 4474 arundel 200 840M 71492K uwait 1 23:29 0.00% {chrome} 4475 arundel 200 827M 81876K uwait 1 22:38 0.00% {chrome} 4471 arundel 210 822M 61652K uwait 0 21:55 0.00% {chrome} 4442 arundel 210 824M 62872K uwait 0 21:46 0.00% {chrome} 4447 arundel 210 815M 61420K uwait 1 21:32 0.00% {chrome} 4450 arundel 210 809M 60240K uwait 0 21:21 0.00% {chrome} 2007 arundel 200 880M 12780K select 1 20:39 0.00% Xorg 4452 arundel 200 205M 30016K select 0 12:58 0.00% {initial thread} 4414 arundel 200 334M 96560K kqread 0 11:00 0.00% {chrome} 4414 arundel 200 334M 96560K select 0 9:40 0.00% {initial thread} 4472 arundel 200 M 530M futex 1 8:21 0.00% npviewer.bin 11 root -96- 0K 240K WAIT0 7:57 0.00% {irq16: vgapci0+} does this mean that a) my system is 100% idle, since no processes except the idle process takes up up CPU time or b) that a or some processes take up 2% CPU time which aren't being shown or c) that each of my cpu core is only 86.6/89.4% idle? cheers. alex -- a13x ___ 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: deciphering top(1) output
On Feb 11, 2011, at 4:21 PM, Alexander Best wrote: a) my system is 100% idle, since no processes except the idle process takes up up CPU time or b) that a or some processes take up 2% CPU time which aren't being shown or c) that each of my cpu core is only 86.6/89.4% idle? It means (c). Kernel activity, short-lived transient processes, and imperfections in sampling data are the other ~13 / 10 % Regards, -- -Chuck ___ 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: deciphering top(1) output
On Fri Feb 11 11, Chuck Swiger wrote: On Feb 11, 2011, at 4:21 PM, Alexander Best wrote: a) my system is 100% idle, since no processes except the idle process takes up up CPU time or b) that a or some processes take up 2% CPU time which aren't being shown or c) that each of my cpu core is only 86.6/89.4% idle? It means (c). Kernel activity, short-lived transient processes, and imperfections in sampling data are the other ~13 / 10 % thanks. it seems in some cases these imperfections have quite an impact: last pid: 48135; load averages: 5.11, 5.38, 5.02 up 0+03:15:2019:31:52 271 processes: 15 running, 242 sleeping, 14 waiting CPU 0: 76.4% user, 0.0% nice, 21.7% system, 2.0% interrupt, 0.0% idle CPU 1: 85.0% user, 0.0% nice, 12.6% system, 2.4% interrupt, 0.0% idle Mem: 1078M Active, 334M Inact, 403M Wired, 79M Cache, 212M Buf, 68M Free Swap: 18G Total, 438M Used, 18G Free, 2% Inuse PIDUIDTHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 48131 0 1 770 92112K 67164K CPU11 0:02 17.77% cc1 48135 0 1 760 90992K 65712K RUN 0 0:01 15.87% cc1 1001 1 260 1150M 57000K select 1 14:13 7.28% npviewer.bin 2210 1001 2 200 199M 45952K kqread 0 2:38 1.37% chrome 10 0 2 155 ki31 0K32K RUN 0 89:55 1.27% idle 2249 1001 2 200 828M 82864K kqread 1 2:12 0.10% chrome 2247 1001 2 200 846M 84424K kqread 0 0:25 0.10% chrome 48133 0 1 200 13916K 2380K CPU01 0:00 0.10% top 2171 1001 23 200 327M 121M uwait 1 12:11 0.00% chrome 2151 1001 1 200 881M 15400K select 0 6:35 0.00% Xorg 2203 1001 2 200 889M 148M kqread 1 5:07 0.00% chrome 2235 1001 2 200 855M 116M kqread 0 4:51 0.00% chrome 2231 1001 2 200 847M 99464K kqread 0 4:47 0.00% chrome 2208 1001 2 200 853M 103M kqread 0 4:38 0.00% chrome cheers. alex Regards, -- -Chuck -- a13x ___ 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: deciphering top(1) output
On Feb 11, 2011, at 4:41 PM, Alexander Best wrote: It means (c). Kernel activity, short-lived transient processes, and imperfections in sampling data are the other ~13 / 10 % thanks. it seems in some cases these imperfections have quite an impact: last pid: 48135; load averages: 5.11, 5.38, 5.02 up 0+03:15:20 19:31:52 271 processes: 15 running, 242 sleeping, 14 waiting CPU 0: 76.4% user, 0.0% nice, 21.7% system, 2.0% interrupt, 0.0% idle CPU 1: 85.0% user, 0.0% nice, 12.6% system, 2.4% interrupt, 0.0% idle Mem: 1078M Active, 334M Inact, 403M Wired, 79M Cache, 212M Buf, 68M Free Swap: 18G Total, 438M Used, 18G Free, 2% Inuse PIDUIDTHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 48131 0 1 770 92112K 67164K CPU11 0:02 17.77% cc1 48135 0 1 760 90992K 65712K RUN 0 0:01 15.87% cc1 Sure. Compiling software is a classic example where lots and lots of CPU intensive, short-lived processes are started. Pay attention to last pid field; if it is steadily growing, especially at a rapid rate, lots of processes are spawning Regards, -- -Chuck ___ 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: deciphering top(1) output
On Fri Feb 11 11, Chuck Swiger wrote: On Feb 11, 2011, at 4:41 PM, Alexander Best wrote: It means (c). Kernel activity, short-lived transient processes, and imperfections in sampling data are the other ~13 / 10 % thanks. it seems in some cases these imperfections have quite an impact: last pid: 48135; load averages: 5.11, 5.38, 5.02 up 0+03:15:20 19:31:52 271 processes: 15 running, 242 sleeping, 14 waiting CPU 0: 76.4% user, 0.0% nice, 21.7% system, 2.0% interrupt, 0.0% idle CPU 1: 85.0% user, 0.0% nice, 12.6% system, 2.4% interrupt, 0.0% idle Mem: 1078M Active, 334M Inact, 403M Wired, 79M Cache, 212M Buf, 68M Free Swap: 18G Total, 438M Used, 18G Free, 2% Inuse PIDUIDTHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 48131 0 1 770 92112K 67164K CPU11 0:02 17.77% cc1 48135 0 1 760 90992K 65712K RUN 0 0:01 15.87% cc1 Sure. Compiling software is a classic example where lots and lots of CPU intensive, short-lived processes are started. Pay attention to last pid field; if it is steadily growing, especially at a rapid rate, lots of processes are spawning thanks for the hint. in this example however $pid didn't get incremented for over a minute: last pid: 14412; load averages: 0.09, 0.26, 0.29 253 processes: 3 running, 235 sleeping, 15 waiting CPU 0: 12.6% user, 0.0% nice, 7.9% system, 0.4% interrupt, 79.1% idle CPU 1: 13.8% user, 0.0% nice, 5.9% system, 0.0% interrupt, 80.3% idle Mem: 602M Active, 275M Inact, 407M Wired, 8688K Cache, 212M Buf, 669M Free Swap: 18G Total, 910M Used, 17G Free, 4% Inuse, 4K In PID USERNAMETHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 10 root 2 155 ki31 0K32K CPU00 44.7H 198.88% idle 4414 arundel 24 200 334M 93080K uwait 0 34:56 0.00% chrome 4451 arundel 2 200 905M 100M kqread 0 30:12 0.00% chrome 4446 arundel 2 200 836M 53152K kqread 1 28:41 0.00% chrome also i noticed that when a processes CPU activity goes up to let's say 10% and then down again to 0% this doesn't mean that the idle process will jump to 200% instantly, but it takes ~ 10 seconds for it to reclaim the CPU activity that was used by the other process beforehand. cheers. alex Regards, -- -Chuck -- a13x ___ 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: deciphering top(1) output
On Feb 11, 2011, at 5:08 PM, Alexander Best wrote: also i noticed that when a processes CPU activity goes up to let's say 10% and then down again to 0% this doesn't mean that the idle process will jump to 200% instantly, but it takes ~ 10 seconds for it to reclaim the CPU activity that was used by the other process beforehand. WCPU stands for weighted CPU, and is an average over time. Use -C flag if you want raw CPU instead Regards, -- -Chuck ___ 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 and SSD drives
On Fri, Feb 11, 2011 at 12:57 PM, Chad Perrin per...@apotheon.com wrote: Ignoring the TRIM issue for a moment . . . You're probably best off saving SSD storage for cases where you have lots of reads and little to no write activity, unless you enjoy buying new SSDs a lot. Actually, let's not ignore TRIM; the work-around for lack of TRIM support on some drives is a garbage collection routine that exacerbates the problem of having to replace your SSDs more often if you do a lot of writes. I guess I would only use SSDs on servers in the same cases where I would let myself be talked into using MySQL -- cases where you just treat it pretty much like a read-only data store, and do not have to (safely) add or change data stored there most of the time. Modern SSD's can do a *lot* of writes, wear-leveling and other tecniques allow SSD's to be implemented for nearly any workload. There's a great deal of literature and facts on this topic if someone was motivated enough to research it. Some legends are better off fading away. http://www.storagesearch.com/ssdmyths-endurance.html Same thing is sort of true with TRIM, on most modern drives lack of OS TRIM support isn't the performance hit it used to be although still desirable. -- Adam Vande More ___ 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: Portupgrade and Updating the portsdb
On 10 February 2011 08:33, c0re nr1c...@gmail.com wrote: Hello all! I've got set of servers that uses NFS mounted /usr/ports. When I use portupgrade samba on 1st server it says [/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid argument] [Updating the portsdb format:bdb_btree in /usr/ports ... - 22601 port entries found error] Remove and try again. [Updating the portsdb format:dbm_hash in /usr/ports ... - 22601 port entries found . . done] Okay. It took 10-15 mins to rebuild. Then I say portupgrade samba on 2nd server it says again [/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid argument] [Updating the portsdb format:bdb_btree in /usr/ports ... - 22601 port entries found error] Remove and try again. and rebuild portsdb. Why is it so? Ports are updated via portsnap fetch update. /etc/portsnap.conf has INDEX INDEX-5 DESCRIBE.5 INDEX INDEX-6 DESCRIBE.6 INDEX INDEX-7 DESCRIBE.7 INDEX INDEX-8 DESCRIBE.8 So while portupgrade rebuilds portsdb it's not possible use portupgrade on 2nd server because later build process will fail on 1st or second server. What can I do with it? Why portupgrade always thinks that [/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid argument]? The INDEX-n.db is a locally generated portupgrade thing. Edit your /usr/local/etc/pkgtools.conf for each machine to include a line such as: ENV['PORTS_INDEX'] ||= ENV['PORTSDIR'] + '/INDEX.local' Only instead of '/INDEX.local' use '/INDEX.your_hostname_here'. You might also look at changing the part ENV['PORTSDIR'] to something local (speed, etc), like adding a line up from that: ENV['LOCALINDICES'] ||= '/var/db' then ENV['PORTS_INDEX'] ||= ENV['LOCALINDICES'] + '/INDEX.thy_hostname_here' Also, if you have local space, settin' WRKDIRPREFIX= in /etc/make.conf will speed things up allow multiple machines to build at the same time. HTH -- -- ___ 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: [RELEASE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD
On Fri, 11 Feb 2011, Eitan Adler wrote: Nice Script! I intend to steal parts of it for my own use. It's great when you can plunder without robbing anyone :) P.S. Maybe I ought to expand it to IPv6 considering that the IPv4 address space has [reportedly] finally ran out (is that true?). All the available IPs were allocated to the RIRs. AFIK the RIRs have not had to deny anyone for insufficiency yet - but it will happen soon. Yes Devin, best not leave it till August! For those wanting a near-obsessively detailed analysis of IPv4 depletion stats and predictions over many years, hard to go past Geoff Huston's: http://www.potaroo.net - blog http://www.potaroo.net/ispcol/2010-10/when.html - explanatory column Oct '10 http://www.potaroo.net/tools/ipv4/index.html - the modelling as of today cheers, Ian (Sorry, missed the cc to hackers@, adding questions@ back in the loop) ___ 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