Re: Dual (zaphod) head on Intel i810 does not work for FreeBSD V7.0 Release
On Fri, 2008-08-29 at 17:56 +1000, Ray Newman wrote: Hi, Under FreeBSD V6.2 Release (X 6.9.0 and i810 1.4.1) with this xorg.conf, this log file is produced and the dual screen config works. Under FreeBSD V7.0 Release (X 1.4.0 and i810 1.6.5) with this xorg.conf which is nearly identical with the previous one, this log file is produced and the dual screen doesn't work. It seems to get the primary and secondary screens totally confused. Ray Newman 29 Aug 2008 With X 1.4, use driver intel ( x11-drivers/xf86-video-intel ) and xrandr to achieve the same effect. This has the benefit of dynamically enabling or disabling additional heads. The configuration is slightly different, here is a pertinent snippet from mine for comparison. There is only one device, screen and monitor specified in the conf. Section Device Identifier Card0 Driver intel VendorName Intel Corporation Option DRI true BoardName Mobile Integrated Graphics Controller BusID PCI:0:2:0 Screen 0 EndSection Section Screen Identifier Screen0 Device Card0 Monitor Monitor0 SubSection Display Viewport0 0 Depth 32 Modes 1400x1050 Virtual 26801050 EndSubSection EndSection My laptop has an internal 1400x1050 screen, and also a 1280x1024 external screen to its left. It's enabled from my .xinitrc with a command like 'xrandr --output VGA --mode 1280x1024 --left-of LVDS'. Apparently due to hardware limitations, if your 'Virtual' is more than 2048x2048 in any dimension, then DRI won't work. Cheers Tom signature.asc Description: This is a digitally signed message part
Re: FreeBSD bind performance in FreeBSD 7
On Fri, 2008-02-29 at 15:44 +, Chris wrote: On 29/02/2008, Ted Mittelstaedt [EMAIL PROTECTED] wrote: A weakness of freebsd is its fussyness over hardware in particular network cards, time and time again I see posts here telling people to go out buying expensive intel pro 1000 cards just so they can use the operating system properly when I think its reasonable to expect mainstream hardware to work, eg. realtek is mainstream and common as a onboard nic but the support in freebsd is poor and only serving datacentres to shy away from freebsd. If the same hardware performs better in linux then the hardware isnt to blame for worser performance in fbsd. Chris Not to come down too hard on you, but the reason why Pro/1000 chipsets are reasonably pricey, and uncommon to find as an integrated NIC, except on server boards or intel own brand mobos, is that it is decent hardware, and hence costs real money to use. Consumer NICs like Realtek, Via Rhine and (imo) Marvell are cheap tat that 'just about' works, until you put it under heavy stress. I have encountered a series of Marvell based chips on my personal home computers that work about as well as a slap around the face. Also, even from the 'good' manufacturers, like broadcom and intel, you have 'consumer' parts, which are reasonably cheap, like bge(4) supported parts, and 'professional' parts, like bce(4) parts. One should work fine under moderate load, one should work fine under heavy load. One will cost $4, one will cost $100. I'm not saying the drivers are bug-free, but if you want performance and reliability, you get an em(4) or another professional chipset. Only a few months ago at work, we had to order around 75 Pro/1000s as we had had enough of crashes from our bce(4) based integrated NICs on our Dell 2950s. Fortunately for our wallet, we managed to fix the issues in the driver/hardware before our supplier could source that many - thanks David Christensen! Personally, I wouldn't put something in a data-centre with only a vr(4) or re(4), regardless of OS. Tom signature.asc Description: This is a digitally signed message part
RE: Capturing dmesg upon system crash on 6.3
On Mon, 2008-02-25 at 15:41 +0200, Yehonatan Yossef wrote: I'm looking into the syslogd capabilities at the moment, it might be enough. I've tried following the serial console setup you've pointed, but when I added the 'console=comconsole' to loader.conf the OS hanged during boot time, had to re-install the system. I'm currently porting Mellanox ethernet driver, InfiniBand will be probably next. Mail me outside this list if you're interested in InfiniBand. The OS probably didnt hang, you told it to send all its output to comconsole (ie serial port) and not display anything. This might look as though it has hung. Try (in /boot/loader.conf): boot_multicons=YES console=vidconsole,comconsole to output to both of them. Also, set the correct tty on your serial console with something like (in /etc/ttys): ttyd0 /usr/libexec/getty std.9600 vt100 off secure There will be a ttyd0 line already. All of this is in the various handbooks. Cheers Tom signature.asc Description: This is a digitally signed message part
Re: Wine compatibility and performance on FreeBSD 7
On Mon, 2007-12-10 at 23:44 -0500, Tom Wickline wrote: On Dec 10, 2007 11:41 PM, Brett Glass [EMAIL PROTECTED] wrote: It's worth noting that the WINE project, not long ago, abandoned the BSD license for the GPL despite urging from many sources to keep the code open and free for use by developers. We've stopped using it as a result. --Brett Glass Wins is under a free licence, its LGPL and I'm almost 100% sure you have no idea why the licence was changed! Tom Depends upon your definition of free. signature.asc Description: This is a digitally signed message part
Re: Optimal Apache22 configuration
On Wed, 2007-11-21 at 19:49 +0100, Marcio Cicero wrote: Hello all, Tomorrow i'll start configuring an apache22 server at work and I've been searching what's the best configuration for apache22 on apache. Is it possible to use kqueue() support for apache22? Also, the best threading library around for apache22 on freebsd is libthr? The best mpm for this kind of environment is still worker? Is there any updated documentation on this matter? Thanks in advance. Regards, Marcio We use a pair of apache22 webservers in a round robin configuration at work, doing proxying to app servers and serving static content for all our websites, and they run very nicely indeed under the event MPM. This is still marked as 'experimental' as apache, but the reason is that it doesn't support accept filters or SSL yet (support is planned). If you need SSL, I'd go for worker. If you need PHP, I'd go for prefork :) We wanted a pair for redundancy and failover support, and we were unsure one server could handle the load, but load tends to hover at about 0.1 on both boxes, and they tend to 'just work', which is nice :) We use libthr, which works perfectly (as you would expect, lots of apache devs run and recommend FreeBSD). Cheers Tom signature.asc Description: This is a digitally signed message part
RE: Optimal Apache22 configuration
On Thu, 2007-11-22 at 14:58 +0100, Marcio Cicero wrote: Hi Tom, Thanks for your input. As far as I can remember there were experimental support for kqueue polling events on apache2 which I remember as nice performance improvement. But unfortunately I can't find any info regarding kqueue for apache22. Is this possible for apache22? TIA Regards, Marcio __ Subject: Re: Optimal Apache22 configuration From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED]; freebsd-questions@freebsd.org Date: Thu, 22 Nov 2007 11:39:12 + On Wed, 2007-11-21 at 19:49 +0100, Marcio Cicero wrote: Hello all, Tomorrow i'll start configuring an apache22 server at work and I've been searching what's the best configuration for apache22 on apache. Is it possible to use kqueue() support for apache22? Also, the best threading library around for apache22 on freebsd is libthr? The best mpm for this kind of environment is still worker? Is there any updated documentation on this matter? Thanks in advance. Regards, Marcio We use a pair of apache22 webservers in a round robin configuration at work, doing proxying to app servers and serving static content for all our websites, and they run very nicely indeed under the event MPM. This is still marked as 'experimental' as apache, but the reason is that it doesn't support accept filters or SSL yet (support is planned). If you need SSL, I'd go for worker. If you need PHP, I'd go for prefork :) We wanted a pair for redundancy and failover support, and we were unsure one server could handle the load, but load tends to hover at about 0.1 on both boxes, and they tend to 'just work', which is nice :) We use libthr, which works perfectly (as you would expect, lots of apache devs run and recommend FreeBSD). Cheers Tom Hi Marcio (Please don't top post, it destroys the logical flow of the conversation :) Apache 2.2 by default uses epoll() or kqueue() if it is available. Indeed, it is mandatory for the event MPM to work correctly. From the event manual page: ( http://httpd.apache.org/docs/2.2/mod/event.html ) The MPM assumes that the underlying apr_pollset implementation is reasonably threadsafe. This enables the MPM to avoid excessive high level locking, or having to wake up the listener thread in order to send it a keep-alive socket. This is currently only compatible with KQueue and EPoll. The use of kqueue is actually performed by the underlying apr implementation, but I'm sure if it is available to apr, it will use it. Regards Tom signature.asc Description: This is a digitally signed message part
Re: semi OT: sh scripting problem
On Wed, 2007-08-01 at 10:35 -0400, Robert Huff wrote: (This is probably a FAQ, and I'll take a pointer (or even the magic words to identify the problem) instead of an answer.) Let's suppose I have a file FILE, with contents: foo bar grill baz If I do cat FILE, everything comes out fine. If, however, I write a script: #!/bin/sh for i in `cat FILE` cat FILE | while read i do . . . . done $i is set to foo bar grill baz Is there a way within the script - or, failing that, by modifying FILE - to not break at the whitespace? Robert Huff signature.asc Description: This is a digitally signed message part
Re: Cleartype-similar?
On Wed, 2007-08-01 at 11:55 +0100, Adam J Richardson wrote: Roger Olofsson wrote: Dear Mailing List, Is there something similar to cleartype for FreeBSD? Grateful for any replies! Greetings /Roger Hi Roger, I believe you are after FreeType. Should be in the ports tree. Adam J Richardson Cleartype is a Windows 2000 feature that enables sub-pixel anti-aliasing on fonts displayed on a LCD panel. FreeType assists in that; this page gives full details[1]. It is a bit dated, and seems to suggest that it should work straight off the bat in recent KDE/Gnome versions. Certainly seems like it does anyways. Never been bothered enough to check! [1] http://jmason.org/howto/subpixel.html signature.asc Description: This is a digitally signed message part
Re: Increasing GELI performance
On Sat, 2007-07-28 at 14:26 +0100, Dominic Bishop wrote: I've just been testing out GELI performance on an underlying RAID using a 3ware 9550SXU-12 running RELENG_6 as of yesterday and seem to be hitting a performance bottleneck, but I can't see where it is coming from. Testing with an unencrypted 100GB GPT partition (/dev/da0p1) gives me around 200-250MB/s read and write speeds to give an idea of the capability of the disk device itself. Using GELI with a default 128bit AES key seems to limit at ~50MB/s , changing the sector size all the way upto 128KB makes no difference whatsoever to the performance. If I use the threads sysctl in loader.conf and drop the geli threads to 1 thread only (instead of the usual 3 it spawns on this system) the performance still does not change at all. Monitoring during writes with systat confirms that it really is spawning 1 or 3 threads correctly in these cases. Here is a uname -a from the machine FreeBSD 004 6.2-STABLE FreeBSD 6.2-STABLE #2: Fri Jul 27 20:10:05 CEST 2007 [EMAIL PROTECTED]:/u1/obj/u1/src/sys/004 amd64 Kernel is a copy of GENERIC with GELI option added Encrypted partition created using : geli init -s 65536 /dev/da0p1 Simple write test done with: dd if=/dev/zero of=/dev/da0p1.eli bs=1m count=1 (same as I did on the unencyrpted, a full test with bonnie++ shows similar speeds) Systat output whilst writing, showing 3 threads: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average /0 /10 /20 /30 /40 /50 /60 /70 /80 /90 /100 root idle: cpu3 X root idle: cpu1 idle root idle: cpu0 XXX root idle: cpu2 XX root g_eli[2] d XXX root g_eli[0] d XXX root g_eli[1] d X root g_up root dd Output from vmstat -w 5 procs memory pagedisks faults cpu r b w avmfre flt re pi po fr sr ad4 da0 in sy cs us sy id 0 1 0 38124 3924428 208 0 1 0 9052 0 0 0 1758 451 6354 1 15 84 0 1 0 38124 39244280 0 0 0 13642 0 0 411 2613 128 9483 0 22 78 0 1 0 38124 39244280 0 0 0 13649 0 0 411 2614 130 9483 0 22 78 0 1 0 38124 39244280 0 0 0 13642 0 0 411 2612 128 9477 0 22 78 0 1 0 38124 39244280 0 0 0 13642 0 0 411 2611 128 9474 0 23 77 Output from iostat -x 5 extended device statistics device r/s w/skr/skw/s wait svc_t %b ad42.2 0.731.6 8.10 3.4 1 da00.2 287.8 2.3 36841.50 0.4 10 pass0 0.0 0.0 0.0 0.00 0.0 0 extended device statistics device r/s w/skr/skw/s wait svc_t %b ad40.0 0.0 0.0 0.00 0.0 0 da00.0 411.1 0.0 52622.10 0.4 15 pass0 0.0 0.0 0.0 0.00 0.0 0 extended device statistics device r/s w/skr/skw/s wait svc_t %b ad40.0 0.0 0.0 0.00 0.0 0 da00.0 411.1 0.0 52616.20 0.4 15 pass0 0.0 0.0 0.0 0.00 0.0 0 Looking at these results myself I cannot see where the bottleneck is, I would assume since changing the sector size or the geli threads doesn't affect performance that there is some other single threaded part limiting it but I don't know enough about how it works to say what. CPU in the machine is a pair of these: CPU: Intel(R) Xeon(R) CPU5110 @ 1.60GHz (1603.92-MHz K8-class CPU) I've also come across some other strange issues with some other machines which have identical arrays but only a pair of 32bit 3.0Ghz xeons in them (Also using releng_6 as of yesterday, just i386 not amd64). On those geli will launch a single thread by default (cores-1 seems to be the default) however I cannot force it to launch 2 by using the sysctl, although on the 4 core machine I can successfully use it to launch 4. It would be nice to be able to use both cores on the 32bit machines for geli but given the results I've shown here I'm not sure it would gain me much at the moment. Another problem I've found is that if I use a sector size for GELI 8192 bytes then I'm unable to newfs the encrypted partition afterwards, it fails immediately with this error: newfs /dev/da0p1.eli increasing block size from 16384 to fragment size (65536) /dev/da0p1.eli: 62499.9MB (127999872 sectors) block size 65536, fragment size 65536 using 5 cylinder groups of 14514.56MB, 232233 blks, 58112 inodes. newfs: can't read old UFS1 superblock: read error from block device: Invalid argument The underlying device is readable/writeable however as dd can read/write to it without any errors. If anyone has any suggestions/thoughts on
Re: Root access loggin
On Tue, 2007-07-24 at 13:18 -0400, Ian Lord wrote: Hi, A Zend technician asked me to have a root access on one of my box to troubleshoot something wrong in Zend Platform installation that doesn't work on Freebsd. He will need root access naturally to install and debug remotely. Is there a way to log all the commands he will type and send them in a logfile ? Or is there a better solution than granting him root access from ssh ? Thanks sudosh (sudo shell) is an idea here. It gives them a root shell they can do anything in, but everything is logged. It can even play back the logs at any speed up you like (I like to watch.) This seems great in principle, but of course, you just gave them a root shell, and so they can delete their log file easily enough... signature.asc Description: This is a digitally signed message part
Re: Root access loggin
On Mon, 2007-07-30 at 08:11 -0500, Eric Crist wrote: On Jul 30, 2007, at 7:34 AMJul 30, 2007, Adam J Richardson wrote: Tom Evans wrote: This seems great in principle, but of course, you just gave them a root shell, and so they can delete their log file easily enough... You could have cron email it to you every 5 minutes. Unlikely he'd check the crontab immediately, unless he was really bent on the system's destruction. Likely you'd have at least some evidence of his behaviour. Of course your email box would fill up quickly. Adam J Richardson Tom, If you're really all that worried about this, don't give them root access. You could simply sit at the console with them while they work. IIRC, they're a contractor, not an employee. Your presence during such operations wouldn't be abnormal for a contractor. HTH Eric Crist I'm not at all worried; the OP was. I was merely pointing out that most auditing solutions have issues that can be worked around by a malicious user; sometimes you just have to trust someone. signature.asc Description: This is a digitally signed message part
Re: mode 11g, but 6Mbps
On Tue, 2007-07-24 at 11:42 +0200, Pietro Cerutti wrote: Federico Lorenzi wrote: On 7/24/07, Pietro Cerutti [EMAIL PROTECTED] wrote: Hi List, I have an Intel PRO/Wireless 3945ABG adapter using the wpi0 driver connecting to an access point using the 802.11g mode. # ifconfig wpi0 mode 11g # ifconfig wpi0 ... media: IEEE 802.11 Wireless Ethernet autoselect mode 11g (OFDM/6Mbps) ... Can anyone explain why I see OFDM/6Mbps instead of OFDM/54Mbps (or at least 19Mbps if you mean the actual throughput?) It could depend on a few things, first off remember that it's a highly experimental driver at this stage, and don't mean to be stating the obvious, but are you actually close enough to the AP to get 54mbps? Windows says 54 / 11 no matter what speed it is running at. Hi Federico, Actually I'm 4 meters away from the AP. I know that wpi is still in pre-alpha state ;-) Tnx Heh, at least you have some connectivity - mine is still using none! [EMAIL PROTECTED]:0:0: class=0x028000 card=0x135c103c chip=0x42228086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '3945ABG Intel 3945ABG Wireless LAN controller' class = network Driver either fails to initialise, or panic's my -CURRENT laptop :) I'd think its highly likely that performance issues are due to pre-release quality of the driver. signature.asc Description: This is a digitally signed message part
Re: WPI Driver Support (WAS: Re: mode 11g, but 6Mbps)
On Tue, 2007-07-24 at 16:58 +0200, Federico Lorenzi wrote: On 7/24/07, Tom Evans [EMAIL PROTECTED] wrote: On Tue, 2007-07-24 at 11:42 +0200, Pietro Cerutti wrote: Federico Lorenzi wrote: On 7/24/07, Pietro Cerutti [EMAIL PROTECTED] wrote: Hi List, I have an Intel PRO/Wireless 3945ABG adapter using the wpi0 driver connecting to an access point using the 802.11g mode. # ifconfig wpi0 mode 11g # ifconfig wpi0 ... media: IEEE 802.11 Wireless Ethernet autoselect mode 11g (OFDM/6Mbps) ... Can anyone explain why I see OFDM/6Mbps instead of OFDM/54Mbps (or at least 19Mbps if you mean the actual throughput?) It could depend on a few things, first off remember that it's a highly experimental driver at this stage, and don't mean to be stating the obvious, but are you actually close enough to the AP to get 54mbps? Windows says 54 / 11 no matter what speed it is running at. Hi Federico, Actually I'm 4 meters away from the AP. I know that wpi is still in pre-alpha state ;-) Tnx Heh, at least you have some connectivity - mine is still using none! [EMAIL PROTECTED]:0:0: class=0x028000 card=0x135c103c chip=0x42228086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '3945ABG Intel 3945ABG Wireless LAN controller' class = network Driver either fails to initialise, or panic's my -CURRENT laptop :) I'd think its highly likely that performance issues are due to pre-release quality of the driver. I have the same problem too, which forces me to use a 2 year old atheros pcmcia card. I take it you are trying the perforce version right? I don't suppose you could give me what error message you get so we could 'compare'. Mine is something about not being able to allocate memory. Cheers Yes, I knocked up a quick ruby script to scarily rip the files out of perforce web interface. Mine also fails with a similar message; I forget the exact details, and 5 time out of 10 it also panic's my laptop, so I won't try it again till after work ;) Tom signature.asc Description: This is a digitally signed message part
Re: WPI Driver Support (WAS: Re: mode 11g, but 6Mbps)
Here is the current output of loading the very latest wpi code from p4 (loaded with sysctl debug.bootverbose=1) : pci8: driver added found- vendor=0x8086, dev=0x4222, revid=0x02 bus=8, slot=0, func=0 class=02-80-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0010, cachelnsz=16 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=16 powerspec 2 supports D0 D3 current D0 MSI supports 1 message, 64 bit pci8:0:0: reprobing on driver added wpi0: Intel(R) PRO/Wireless 3945ABG mem 0xe800-0xe8000fff irq 16 at device 0.0 on pci8 wpi0: Driver Revision 20070715-nwifi wpi0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xe800 Resetting the card - clearing any uploaded firmware wpi0: Hardware Revision (0x1) Size: 44 - alignement 4096 Memory, allocated Aligned! Size: 245760 - alignement 4096 Memory, allocated Aligned! Size: 16384 - alignement 16384 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 0 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 1 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 2 Memory, allocated Aligned! Size: 93184 - alignement 16384 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 0 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 1 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 2 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 3 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 4 Memory, allocated Aligned! Size: 16384 - alignement 16384 Memory, allocated Aligned! Size: 93184 - alignement 16384 Memory, allocated Aligned! Size: 16384 - alignement 16384 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 0 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 1 Memory, allocated Aligned! Size: 93184 - alignement 16384 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 0 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 1 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 2 bus_dmamem_alloc failed to align memory properly. Memory Unaligned, trying again: 3 wpi0: could not allocate shared page DMA memory wpi0: could not allocate tx command DMA memory wpi0: could not allocate Tx ring 2 device_attach: wpi0 attach returned 6 pci24: driver added pci32: driver added On the plus side, it didn't panic.. If anyone wants my script for fetching from perforce, I've attached it. It requires rubygems, and hpricot from rubygems, but apart from that its all in base ruby iirc. signature.asc Description: This is a digitally signed message part
Re: Can cron e-mail HTML?
On Sat, 2007-07-14 at 19:14 -0400, Mikhail Teterin wrote: On субота 14 липень 2007, Daniel Bye wrote: = So it's beginning to look as if your best bet is in fact to make your = script handle sending the mail. Yeah, seems like it... = Not the cleanest solution, but one that will get your messages formatted = exactly how you want them. Well, I started looking into how much effort would it be to translate the strings returned by libmagic(3)'s routines into Content-Type. If it is easy enough, I could hack cron to analyze the job's output using magic_buffer(3) and set Content-Type if anything recognizable is detected... The translation is the difficult part :-( Instead of the standardized text/html for example, libmagic returns: HTML document text It is trying to be human-readable, while I need the machine-readable strings. There is stuff on-line that does the translation, but it is in much higher-level languages (like PHP), which think, hash-tables are free :-) Oh, well... -mi Or you could just use sendmail? 30 4 * * 1-6 ~/bin/foo 21 | sendmail [EMAIL PROTECTED] Sendmail will read in any headers you put into the message. Eg: $ cat sample.htmlh Subject: really? Really? will work just fine and set the email subject header when piped into sendmail. Or you could patch cron to use libmagic, and have cron scripts that will only work on one box. Hmmm, decisions, decisions... signature.asc Description: This is a digitally signed message part
Re: Can cron e-mail HTML?
On Thu, 2007-07-19 at 07:55 -0400, Mikhail Teterin wrote: On четвер 19 липень 2007, Tom Evans wrote: = Or you could patch cron to use libmagic Done: http://aldan.algebra.com/~mi/cron-mime.diff It even works now... = and have cron scripts that will only work on one box. And send-pr the diffs to FreeBSD :-) -mi Sarcasm really doesn't work on the internet does it :) Teaching cron about file types/mime types is an awful idea - sounds like something you'd find in gentoo. Just because something can be done, doesn't mean it should be :) signature.asc Description: This is a digitally signed message part
Re: accessing mysql server remotely
On Tue, 2007-07-10 at 12:15 +, Duane Hill wrote: On Tue, 10 Jul 2007 at 12:01 -, [EMAIL PROTECTED] confabulated: On Mon, 9 Jul 2007 at 23:33 -0400, [EMAIL PROTECTED] confabulated: Just a general question about mysql remote access. Is it possible to login to my remote mysql server and create a new db table using a file on the local system which contains the definition statements? Sure. As long as the account name used to login to MySQL has login access from the remote location. mysql -host=ip_or_hostname -user=username -password=password dbname statements.sql My bad. The command line parameters should have two hyphens: mysql --host=ip_or_hostname --user=username --password=password dbname statements.sql Whilst this syntax will work fine, it requires that the mysql server allow remote logins - well I already have a nice cryptographically secure way of allowing remote access, it's called SSH: cat statements.sql |\ ssh -C [EMAIL PROTECTED] 'mysql -uuser -ppass dbname' The main benefit of this is that my mysql server now only needs to run on localhost, and so cannot be touched by any external user. For an interactive mysql prompt, you'd need either to open up mysql, or forward a port: ssh -C -L13306:localhost:3306 [EMAIL PROTECTED] mysql -uuser -ppass -hlocalhost -P13306 dbname signature.asc Description: This is a digitally signed message part
Re: iteam - Linux project, to freeBSD team.
On Fri, 2007-07-06 at 14:03 +0100, Jorge Rosa - (BIGARTE) wrote: Hello all there. We are developing a open-source game called iteam. It will be an worms/wormux/gunbound game like, with new ideas, etc. We wanna make it like a tribute to ALL (major) linux distros, includindg yours, of course, ;) and to Linux world specifically. When asking for assistance/coders from FreeBSD world, probably best to not refer to FreeBSD as a 'linux distro' ;) So to be more ralistic/oficial, we need your opinion about the character that is similar to your symbol (logotipe). Will be great if we could also count with your code skills, etc. We are using C++, SDL, etc. Please, see images and our main links here: (there is also our IRC channel) http://www.via2b.com/iteam/produtos.asp?highlight=Downloads_and_Linksid=509 Thankyou jorgerosa (iteam art and graphics) Looks good though :) signature.asc Description: This is a digitally signed message part
Re: late filesystems and switching net configs
On Wed, 2007-07-04 at 07:59 +0200, Peter Boosten wrote: Chad Perrin wrote: I have a couple of niggling little, er, quirks that I'd like to get sorted out on my FreeBSD Thinkpad. 2. For some reason, if I use DHCP at all then want to switch back to my static IP setup, I have to restart the computer to get it to access the Internet. I haven't been able to figure out why. If I recall correctly, I can switch to static IP on bge0 and access other systems on the network, but I can't do anything related to the Internet. Yes, by the way, I am checking to make sure the contents of resolv.conf are correct. Check your default gateway when switching from DHCP to static. IIRC a /etc/rc.d/netif stop/start will recreate the default route. Peter Not as I recall though. You will need to do a /etc/rc.d/routing restart if your default router changes. The only time you might not need it is when your routes are setup via DHCP. signature.asc Description: This is a digitally signed message part
Re: freebsd / gateway / parental control
On Mon, 2007-07-02 at 12:44 -0400, Chuck Swiger wrote: Norberto Meijome wrote: On Fri, 29 Jun 2007 22:46:10 +0200 Momchil Ivanov [EMAIL PROTECTED] wrote: 4) Forget about the DSL router. Box with wireless NIC, 1 NIC for home net, 1 NIC for the DSL - same as above, just have to tell your box how to connect to your ISP ok, this is interesting. You mean, plug the phone line straight into, say, fxp1 ? and then using ppp to connect over PPoE to your ISP? I had originally thought of getting a DSL card , but there doesn't seem to be any ADSL2/2+ supported. A phone line is RJ11 and can be only a single pair; ethernet cables which go into a fxp NIC are RJ45 and have four pairs. :-) If you wanted to connect the phone line directly, you'd rightly need to get a DSL PCI card. However, you can connect a DSL modem into one side in bridge mode, and have the output of the DSL modem connect to a FreeBSD machine via ethernet which uses PPP to do the PPPoE/PPPoA negotiation, or you can use a broadband router/switch to do that, instead. Regards, In your part of the world, yes. I've encountered setups (iirc in Denmark?) where the telco terminates their line as an RJ-11 and an RJ-45. You can then plug into that either a router that talks PPPoE on an ethernet port, or directly into NIC in your computer and talk PPPoE there. This is where PPPoE clients like rp-pppoe and their ilk come into play. You can even do (rudimentary) sharing of the ADSL by plumbing it into a hub. Any other client connected to the hub can kick off a PPPoE session. Not many telcos do this these days I think.. signature.asc Description: This is a digitally signed message part
Re: The worst error message in history belongs to... BIND9!
On Tue, 2007-07-03 at 09:36 -0700, Bill Campbell wrote: On Tue, Jul 03, 2007, Martin McCormick wrote: Paul Chvostek writes: This is actually just the difference between sh and bash. You'll see the latter error if you type `a = 5` in bash in any OS. It just so happens that most Linux distributions don't have a real sh: I kind of thought that was the real issue. While something like this is maybe slightly annoying at times, the differences in, say, arithmetic handling and loops can sometimes mean rewriting parts of shell scripts depending on whether it is going to run in BSD or Linux. That's a major argument for doing things in python or perl as they are consistent across all platforms. While perl has a well deserved reputation for looking like modem noise, it's certainly no worse than shell scripts. Pure /bin/sh is very limited in its constructs compared to other shells such as ksh, bash, etc. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 Marijuana will be legal some day, because the many law students who now smoke pot will someday become congressmen and legalize it in order to protect themselves. -- Lenny Bruce sh should always be sh compatible on every platform (surprisingly). It may even be defined in one of the POSIX standards. This is why you write shell scripts in sh, even if you prefer csh, ksh or bash as your actual shell. Tom signature.asc Description: This is a digitally signed message part
Re: [SOLVED, sort of] Re: svn+ssh over nonstandard port fails to connect
On Fri, 2007-06-29 at 04:23 -0600, Chad Perrin wrote: For a moment, I thought this wasn't going to work, because nothing like that syntax seems to work in tcsh -- but then I remembered that, in this case, the only reason I was even doing this was to test whether someone else would be able to access the contents of the repository from off-site, and that person is using bash. As such, I tried a pretty much verbatim copy of what you suggested from a bash prompt, and it worked, so it should work for him. In other words, my immediate problem is solved. Thank you. It seems odd that I cannot find an easier way around this with tcsh than setting an environment variable, running the svn command I need, then unsetting the environment variable, every time. Coupled with the strange argument quoting requirements of tcsh and the fact that it's easier to get into trouble with weird filenames than in other shells I've used, I'm tempted to go back to bash. Did you miss Albert Shih's reply (slightly modified)? Put something like [tunnels] myssh=/usr/bin/ssh -p 1234 123.45.678.90 in ~/.subversion/config and use svn co svn+myssh://usr/home/svn-repos/project You can then clearly define as many transports as you like, which requires no setting of environment variables and is shell-agnostic. Full details are described in the redbook: http://svnbook.red-bean.com/nightly/en/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.sshauth In fact, if you had read the svn+ssh portion of the redbook, you would have come across this sentence: This example demonstrates a couple of things. First, it shows how to make the Subversion client launch a very specific tunneling binary (the one located at /opt/alternate/ssh) with specific options. In this case, accessing a svn+joessh:// URL would invoke the particular SSH binary with -p 29934 as arguments — useful if you want the tunnel program to connect to a non-standard port. Reading the manual is good. signature.asc Description: This is a digitally signed message part
Re: 7-Current: turn off debugging (kqread?)
On Fri, 2007-06-29 at 09:34 -0500, Kevin Kramer wrote: I know that debugging is turned on everywhere on 7-Current and I've read UPDATING. But what I can't find is how to turn off debugging. I've tried removing all debugging from the kernel, but it won't build. I can't find any userland debugging notes to turn it off. It is taking literally 5 minutes to login to my host and the same amount of time to run top. Processes get stuck in kqread. Maybe this is not a 7-Current debugging problem, but I need some guidance on where to go or what to look for. Any help appreciated. In your kernel config, remove these lines if they exist: options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN# Don't run witness on spinlocks for speed You can leave the options {K,D,G}DB lines, they incur virtually now performance costs. You would get more help (possibly) if you tried posting on current@ signature.asc Description: This is a digitally signed message part
Re: Selecting printer from apps core dumps. Howto debug?
On Thu, 2007-06-28 at 11:08 +0100, Graham Bentley wrote: Hi FreeBSD'ers ! I have now a nice desktop setup with Xfce4 etc thanks to all help from the list (what a great place to be:) I have cups setup with a ppd to print to my usb HP Busines Inkjet 1200. It works perfectly from doing the printer test page from the cups webmin:631 page. In applications, if I select this printer, the app core dumps. Apps effected are Abiword, the printer admin xfprint4 in xfce4 and a few others. Who would I go about trying to diagnose this? Any help appreciated :) I had similar problems until I removed lpr from the base. To do this, I added this to /etc/make.conf: WITHOUT_LPR=true CUPS_OVERWRITE_BASE=yes NO_LPR=yes and then rebuilt and reinstalled world and cups. Now I can print from everything - including, impressively, Lotus Notes R5 running in wine. You probably only need one of WITHOUT_LPR/NO_LPR, but darned if I know which. The extra line in make.conf seemed simpler than trawling the makefiles. signature.asc Description: This is a digitally signed message part
Re: Wine users ... unite! (Wine, as in Windows Emulation, of course)
On Wed, 2007-06-27 at 11:15 -0300, Marc G. Fournier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Over the past few weeks, a group of have been plugging away in relative obscurity to fix the world .. or, at least, the world as revolves around WINE. We have a few kernel hackers involved, some members of the wine group, some members of PC-BSD, and at least one DragonflyBSD developer ... a truly rounded group. In order to avoid having this all mixed in, and lost, with other software discussions, the work is happening on a private list, but if anyone feels that they can contribute *programming knowledge* to the effort, email me and I'll add you to the list ... we aren't looking for testers on this list, see below about that ... To the real reason for this post, we have been slowly making headway ... If you go to: http://wiki.freebsd.org/Wine You will find several patches, both against FreeBSD and wine, that get the latest wine working under both 7.x and 6.x ... under 6.x, the only 'gotcha' is don't apply the signal patch yet, as it does break things ... For testing, Tijl is running 7.x and I am running 6.x ... in my case, with all patches applied, except the signal patch, I can get Freecell running ... in his case, with all patches applied, he can get MT4 running (MT4 is an online financial trading piece of software) ... For those that are interested in Wine, and are going to test the above patches, please subscribe to [EMAIL PROTECTED] by sending a message to [EMAIL PROTECTED] ... it will also let us gauge how big/small the 'wine users' population happens to be ... I wasn't aware there was such a big problem with Wine + FreeBSD - is it just chance that I've experienced absolutely no errors at all running Lotus Notes R5 with wine from ports? FreeBSD zoot.mintel.co.uk 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Tue Jun 5 14:39:27 BST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ZOOT i386 $ wine --version wine-0.9.36 signature.asc Description: This is a digitally signed message part
Re: UFS(2, 3 ?) vs ZFS.
On Fri, 2007-06-15 at 21:49 +0200, Wojciech Puchar wrote: UFS and future derivatives are here to stay. Yeah, but you know because of how nice ZFS is, a concept of using ZFS for /home and UFS for everything else will probably turn into a if ZFS will really be so nice i will be making small (50MB) partition for /boot files, ZFS on rest. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] 50MB ? Asking for trouble that is. All I've got is a debug kernel, and a backup.. $ du -sh /boot 174M/boot signature.asc Description: This is a digitally signed message part
Re: Memory mannagment
On Thu, 2007-06-14 at 11:36 +0300, Giorgos Keramidas wrote: On 2007-06-14 01:15, cadastrosonline cadastrosonline [EMAIL PROTECTED] wrote: First of all, Each process has its own private address space. The address space is initially divided into three logical segments: text, data, and stack. But if the address is just something like 343556 then how does it really work? The memory is divided into segments is that what it means? An answer to this is a very long introductory course in UNIX systems internals. In general, you can find a lot of detail about memory management and allocation in books like ``The Design and Implementation of the FreeBSD Operating System''[1] or even the classic book of Abraham Silberschatz called ``Operating System Concepts''[2]. [1] http://www.amazon.com/Design-Implementation-FreeBSD-Operating-System/dp/0201702452 [2] http://www.amazon.com/Operating-System-Concepts-Abraham-Silberschatz/dp/0471694665 The data segment contains the initialized and uninitialized data portions of a program Is it talking about multithreading? I COULDNT FIND anything talking about how freebsd deals with multithreading, just found out it does it by man pthread. No, it's not talking about multi-threading. Please see [1] above for concepts like `process' and `thread' in FreeBSD. Tell me anything else interesting to know about memory mannagment, does it use any algorithm to substitute a page when out of pages in memory? This is also explained in [1] above :) I'd also suggest 'Operating Systems Design and Implementation' [1] by Andrew Tanenbaum (wrote MINIX, teaches OS design at a Dutch uni, lots and lots of OS research). $108 seems a lot for a book tho (sure I didn't pay that much?!). [1] http://www.amazon.com/Operating-Systems-Implementation-Prentice-Software/dp/0131429388 signature.asc Description: This is a digitally signed message part
Re: FreeBSD box/ADSL link config
On Mon, 2007-06-11 at 22:00 +0200, Erik Norgaard wrote: Hi: I am a bit confused as to what exactly I am trying to do - or that is how the protocols layers and stuff. My current setup is like this: 10.0.0/24 192.168.0/24 static IP Wireless ))--- AP --- FreeBSD -- DSL - Internet many-1 1-1 NAT NAT I'd like to have the 192.168.0/24 disappear from the network topology, and have the routable static ip right on my FreeBSD box. The DSL box is configured with PPPoE: .. The DSL router in question is a Thomson Speedtouch 546v6. Any hints, howtos or other on how to do this? Thanks, Erik My Thomson Speedtouch (716v5WL) allows it to be set up as an ethernet bridge, effectively turning into a fancy modem. Eg, my setup is like this: 172.30.0.0/16 Public IP Peer IP LAN switch/AP --- FreeBSD Router--- DSL ST Peer Effectively, the speedtouch just hands everything off to the bsd router, which in turn knows nothing about ADSL or PPP, and just uses the standard em(4) network driver. None of this stuff was configurable through the speedtouch's web interface, but is fairly straightforward once you read the 300 page manual, the 200 page CLI manual and dissect the configuration templates that tell the box how to operate. signature.asc Description: This is a digitally signed message part
Re: limited shell access
On Fri, 2007-04-27 at 20:38 -0400, kalin mintchev wrote: hi all.. is it possible to limit access for certain users only to a certain directory tree - other then his/her home directory? so... can i do that or not? for example joe logs into his home directory where there is a symbolic link to some other directory on the system but he can not go up a level (to /home or / ) or anywhere else but home and the directory under the symlink... i looked at the ssh and sshd confs but apparently nothing there... still looking... thanks man 1 bash /RESTRICTED SHELL/ signature.asc Description: This is a digitally signed message part
Re: temp
On Fri, 2007-05-11 at 18:12 -0500, Jack Barnett wrote: Is there any program that'll monitor the temperate of my motherboard? There are some windows program that'll give me status on my fans, CPU temps, motherboard temps, etc - is there anything like that in the ports collection? (basically I think my CPUs are overheating in one server) If you just want to read out the values, try ''sysctl hw.acpi.thermal'' signature.asc Description: This is a digitally signed message part
Re: WOW! {Or Holy whatever}
On Wed, 2007-05-09 at 22:04 -0700, Garrett Cooper wrote: Eric Crist wrote: On May 9, 2007, at 8:34 PMMay 9, 2007, Gary Kline wrote: On Wed, May 09, 2007 at 07:18:52PM -0500, Eric Crist wrote: Gary, Most cards that might come with DVI output instead of the standard VGA output usually include at least one DVI-VGA adapter, an additional one could be purchased at most computer retailers or your local Radio Shack. HTH It does help, thanks, Eric. I may have missed the cord adaptor that was stuck in the box. Need help to open/check. Meanwhile, I need to look at the specs for this Dell 8200 to see what kind of card is in there. What's there is a jack with two rows of sockets. I'm guessing this is the standard Dell DVI connector, yes, no, other? :-) Also, in your opinion, since I'm not a gamer and just want to display at extreme most 1600x1200, do I need anything seriously upscale? I've seen and skipped past lots of questions about lots of drivers. So let's say that I went totally ape and bought some AGP card with 256M of memory:: do we have a driveer for those kinds of very high end cards? thanks again, gary PS: Does anybody know of a website that 'splains VGA, SVGA, EVGA, and all the rest? I've been seriously guilty of being lazy; I'm fessing up! Gary, A DVI connector has 3 rows of 8 pins and a set of 4 hole is a box shape next to it: ++ | o o o o o o o o o|o | | o o o o o o o o --+-- | \ o o o o o o o o o|o / ++ There's also a mini-DVI format that's kinda like this: +-+ | o o o o o o o o|| | o o o o o o o o|| `---' I'm sure you know what a VGA connector looks like, so I won't draw that for you. ;) At work, we're using the GeForce 7600 GS AGP cards, which have 256MB of RAM and dual DVI output. We're using the FreeBSD Binary driver (available in ports) and running dual monitors with full Open GL support pretty seamlessly. I'd recommend that setup to anyone. It's a feature called Twinview which allows your desktop to span multiple monitors, and most programs that support xinerama(sp?) are 'aware' of the physical border between monitors, so you don't end up with windows popping up spanning both monitors. (i.e. maximize doesn't cross both monitors, just one). HTH Eric Crist Eric, That's one flavor of DVI; memory serves me correctly there were 2: I-DVI and some other kind (I think the one you have pictured above is I-DVI). I gave my old box to Gary, it's an HDMI ATI 7000 series card, and the card has an HDMI to Dual VGA plug along with it. I forgot that all the items were still in the box (did that to ensure that everything was put in the box and made it through shipping all right). Anyhow, getting back to the video thing at hand, if Gary was to purchase a card he should purchase an nVidia card. It's the only brand with OpenGL support properly enabled in Linux and FreeBSD. 5000-6000 series would be sufficient. -Garrett DVI comes in 3 (almost 4) flavours, DVI-D (digital data only), DVI-A (Analogue data only) and DVI-I (Integrated, both analogue and digital). The almost flavour is DVI-D dual-link, which carries more data than DVI-D (twice as much, who'd-a-thunk..) DVI cables can be any of the three types, the difference being which pins are hooked up. Most cables support the full pin-out, and therefore all the flavours. All graphics cards these days output either DVI-D dual-link, or DVI-I, depending upon the resolution you ask the graphics card to display. DVI-I can be converted to a VGA DSUB using a simple dongle. Any card that comes with a DVI port also comes with the dongle. I'd also recommend an nvidia card. The amount of memory available on a card limits the amount of 3D textures that can be loaded onto the card. If you aren't worried about gaming or 3D, then even a 32MB card should be able to handle two double buffered 1600x1200 displays. A 128 MB card will perform the same as the equivalent 256 MB card (or 384/512 MB, or even some cards now with 640 MB). Cheers Tom signature.asc Description: This is a digitally signed message part
Re: Fluxbox crashes when I startx
On Thu, 2007-05-10 at 09:21 -0400, E. J. Cerejo wrote: Since Fluxbox has moved from /usr/X11R6 to /usr/local I haven't been able to start it, it just crashes I followed the instruction on how to edit the menu file but it still crashes and I get this line. Has anyone had this problem with Fluxbox? I'm running FreeBSD 6.2 release. FreeFontPath: FPE /usr/X11R6/lib/X11/fonts/misc/ refcount is 2, should be 1; fixing. The error you've quoted is nothing more than a warning. It almost certainly has always been in your Xorg.%d.log. It is normally one of the last messages printed out, but its completely irrelevant to your problem. Can you post your /var/log/Xorg.0.log (presuming your display is :0) to the list. signature.asc Description: This is a digitally signed message part
Re: WOW! {Or Holy whatever}
On Thu, 2007-05-10 at 08:49 -0700, Garrett Cooper wrote: A good rule of thumb: Don't buy a video card with more RAM than 1/8 to 1/4 of the system RAM, because the RAM is shared with the system RAM, which means you have less overall system RAM to use for apps. -Garrett Er? Whilst I agree with the sentiment (low end graphics cards with 512MB of RAM are solely there to rip off the unwary), that is complete tosh. Some cards dont have much/any onboard dedicated RAM; instead they use system memory. Examples of these are nvidia cards labelled 'TC' (Turbo Cache), most (all?) integrated intel video chipsets. The other issue is on i386. 32-bit systems have 4GB of address space to use. Since you want to be able to address the graphics cards memory, some of this address space is allocated so the OS can address the memory. This means that if system RAM + video RAM 4 GB, some of the system RAM is unaddressable. That itself is a bit simplistic (its not 4 GB, its ~3.5 GB, for various reasons.) The main point is that if you have a system with 1 GB of system RAM and put in a graphics card with 640 MB of video RAM, you still have 1 GB of system RAM to play with, even though you have gone over 1/4 of the system RAM. Tom signature.asc Description: This is a digitally signed message part
Re: dual monitors?
On Tue, 2007-05-08 at 19:17 -0500, Paul Schmehl wrote: --On May 8, 2007 6:15:52 PM -0500 Jonathan Horne [EMAIL PROTECTED] wrote: anyone out there running dual monitors in FreeBSD? Of course. if so, what is your setup? single display adapter/2 heads, or 2 seperate adapters? Single adaptor, two heads. Actually, yours is single adaptor, single (merged framebuffer) head. I use single adaptor dual head, using i945GM (i810). Works quite nicely, although using Xinerama (move windows between heads) disables DRI. Config attached. Tom Section ServerLayout Identifier X.org Configured Screen 0 Screen0 0 0 Screen 1 WorkTFT LeftOf Screen0 InputDeviceMouse0 CorePointer InputDeviceKeyboard0 CoreKeyboard EndSection Section Files RgbPath /usr/X11R6/lib/X11/rgb ModulePath /usr/X11R6/lib/modules FontPath /usr/X11R6/lib/X11/fonts/misc/ FontPath /usr/X11R6/lib/X11/fonts/TTF/ FontPath /usr/X11R6/lib/X11/fonts/Type1/ FontPath /usr/X11R6/lib/X11/fonts/CID/ FontPath /usr/X11R6/lib/X11/fonts/75dpi/ FontPath /usr/X11R6/lib/X11/fonts/100dpi/ FontPath /usr/X11R6/lib/X11/fonts/texcm-ttf/ FontPath /usr/X11R6/lib/X11/fonts/mathfonts/ FontPath /usr/X11R6/lib/X11/fonts/bitstream-vera/ FontPath /usr/X11R6/lib/X11/fonts/freefont-ttf/ EndSection Section Module Load dbe Load dri Load extmod Load glx Load record Load xtrap Load freetype Load type1 EndSection Section InputDevice Identifier Keyboard0 Driver kbd Option CoreKeyboard Option XkbRules xorg Option XkbModel pc105 Option XkbLayout gb EndSection Section InputDevice Identifier Mouse0 Driver mouse Option Protocol auto Option Device /dev/sysmouse #Option Buttons 10 #Option ZAxisMapping 9 10 EndSection Section Monitor Identifier Monitor0 VendorName Monitor Vendor ModelNameMonitor Model EndSection Section Monitor Identifier WorkTFTMon HorizSync 64-64 VertRefresh 60-60 EndSection Section Device ### Available Driver options are:- ### Values: i: integer, f: float, bool: True/False, ### string: String, freq: f Hz/kHz/MHz ### [arg]: arg optional #Option ShadowFB # [bool] #Option DefaultRefresh# [bool] #Option ModeSetClearScreen# [bool] Identifier Card0 Driver i810 VendorName Intel Corporation BoardName Mobile Integrated Graphics Controller BusID PCI:0:2:0 VideoRam131072 Option DRI true Option MonitorLayout CRT,LFP Screen 0 EndSection Section Device Identifier Card1 Driver i810 BusID PCI:0:2:0 VideoRam131072 Option DRI true Option MonitorLayout CRT,LFP Screen 1 EndSection Section Screen Identifier Screen0 Device Card0 MonitorMonitor0 SubSection Display Viewport 0 0 Depth 16 Modes 1400x1050 EndSubSection SubSection Display Viewport 0 0 Depth 24 Modes 1400x1050 EndSubSection SubSection Display Viewport 0 0 Depth 32 Modes 1400x1050 EndSubSection EndSection Section Screen Identifier WorkTFT Device Card1 Monitor WorkTFTMon SubSection Display Depth 16 Modes 1280x1024 1024x768 EndSubSection SubSection Display Depth 24 Modes 1280x1024 1024x768 EndSubSection SubSection Display Depth 32 Modes 1280x1024 1024x768 EndSubSection EndSection Section ServerFlags Option DontZap yes Option Xinerama true EndSection Section DRI Mode 0666 EndSection signature.asc Description: This is a digitally signed message part
Re: command to inentify the process that is listening in a port.
On Wed, 2007-04-11 at 14:52 -0400, Bob Johnson wrote: On 4/10/07, Jonathan McKeown [EMAIL PROTECTED] wrote: On Monday 09 April 2007 17:37, Martin Hudec wrote: Siju George wrote: How Do you actually Identify what process is listening on a TCP/IP port? nmap does not usually give the right answer. There should be some command that can be run on the local host for identification right? man lsof 5:35pm [amber] ~# lsof -i @localhost:123 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ntpd552 root 10u IPv4 0xc4c46000 0t0 UDP localhost:ntp Just out of interest, why do so many people recommend lsof, which is a port, when sockstat/fstat are in the base system and seem to cover the same ground? Am I missing something about lsof? Linux systems don't have sockstat, so people who got to FreeBSD via Linux are used to lsof and they tend to continue using it. Same result for those who read the many Linux howto websites. - Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Ironically, coming from linux I found that FreeBSD netstat doesn't support the -l -4 flags, which is how I found out about sockstat -l4 :) Tom signature.asc Description: This is a digitally signed message part
Re: ppp.conf + resolv.conf
On Sun, 2007-05-06 at 18:32 +0100, Matthew Seaman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 JD Bronson wrote: I am using 6.2 as a DSL (PPPoE) router and also run my own internal DNS on the same machine. I would like to APPEND my ISP's dished out DNS servers to my current resolv.conf but anytime I enable dns in my ppp.conf it nukes my entire resolv.conf! I am looking to end up with this: % cat /etc/resolv.conf domain mydomain nameserver 192.168.1.1 nameserver ISP's DNS nameserver ISP's DNS How do I do this and still retain my own entries in resolv.conf? If I was using DHCPclient, I could edit dhclient.conf of course but PPPoE does not consult this file during negotiation that I am aware of. Any comments will be appreciated... As you say, PPP doesn't let you append extra servers to what it receives automatically. Your best recourse then is to find out the IP numbers of your ISPs DNS machines -- either by consulting the ISP's documentation or web site, by asking their support team or by looking at the results obtained by running PPP with 'enable dns'. Then make sure your ppp.conf does not overwrite your /etc/resolv.conf on connection, and just edit resolv.conf to insert the IP numbers you've discovered. A static resolv.conf will serve you well enough. After all, it's not like your ISP will be changing their DNS servers every few hours. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGPhE08Mjk52CukIwRCHDoAJ93yd9gz56ky1YZHKTfHo6FZINmcQCeMsqI 6tA7krSkXceKhswQO/As+eo= =ITCJ -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Not actually tested this, ip-up might be a little early for this $ cat /etc/ppp/ppp-linkup #!/bin/sh ( /bin/echo -e domain foo\nnameserver 192.168.1.1\n; /usr/bin/grep nameserver /etc/resolv.conf ) /tmp/resolv.conf /bin/mv /tmp/resolv.conf /etc/resolv.conf ^D $ chmod +x /etc/ppp/ppp.linkup Or add resolv readonly to your ppp.conf, and maintain your resolv.conf yourself. signature.asc Description: This is a digitally signed message part
Re: fusefs-sshfs fails to compile
On Thu, 2007-04-26 at 17:16 -0600, Chad Perrin wrote: I'm not sure why, but fusefs-sshfs refuses to compile on a Thinkpad R52 running FreeBSD 6.2-RELEASE. I get the following when I try (watch the line wrap after -qa on the second line): Stop in /usr/ports/sysutils/fusefs-sshfs. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall.19963.0 env make reinstall ** Fix the installation problem and try again. ** Listing the failed packages (*:skipped / !:failed) ! sysutils/fusefs-sshfs (install error) There was a lot before that, of course, but I didn't want to dump it all to the mailing list. The rest is posted online at: http://sob.apotheon.org/files/sshfs.fail.txt Thanks in advance for any help. From the log: cc -O2 -fno-strict-aliasing -pipe -I/usr/src/sbin/mount -I../include -c mount_fusefs.c mount_fusefs.c:47:21: mntopts.h: No such file or directory Verify that /usr/src/sbin/mount/mntopts.h exists. If it doesn't, freshen or fetch your sources (check the Handbook[1] for details) Tom [1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html signature.asc Description: This is a digitally signed message part
Re: How to find HorizSync / VertRefresh rates?
On Mon, 2007-04-30 at 11:02 +0200, Victor Engmark wrote: Hi all, I'm trying to create a pristine xorg.conf, but I've been unable to find proper values for HorizSync and VertRefresh for my Dell Latitude D610. Don't bother trying. If it works when you leave them unspecified, don't think any more about it. If it still doesn't work however, the easiest way is to construct a valid modeline specific to your monitor. Xorg can actually tell you what to put into your xorg.conf, see section 5.4.3.2 of the FreeBSD Handbook [1] The quickest way to get these values out is to grep your Xorg log (even from a failed run of Xorg). Eg (quoting from the Handbook) : $ grep -A 4 'Supported additional Video Mode' /var/log/Xorg.0.log (II) I810(0): Supported additional Video Mode: (II) I810(0): clock: 108.0 MHz Image Size: 340 x 270 mm (II) I810(0): h_active: 1280 h_sync: 1328 h_sync_end 1440 h_blank_end 1688 h_border: 0 (II) I810(0): v_active: 1024 v_sync: 1025 v_sync_end 1028 v_blanking: 1066 v_border: 0 (II) I810(0): Serial No: ETL5108015 This information is called EDID information. Creating a ModeLine from this is just a matter of putting the numbers in the correct order: ModeLine name clock 4 horiz. timings 4 vert. timings Heres one I made earlier (unfortunately, not the one from the log, that one works 'out-of-the-box') ModeLine 1680x1050 146.0 1680 1784 1960 2240 1050 1053 1059 1089 Cheers Tom [1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html signature.asc Description: This is a digitally signed message part
Re: Using LD_PRELOAD to make date return a specific date
On Tue, 2007-04-24 at 19:39 -0700, Kelly Jones wrote: I recently discovered LD_PRELOAD, a cool environment variable that lets a library intercept system calls. For example, setting LD_PRELOAD to /usr/lib/libtsocks.so lets tsocks intercept socket connections and redirect them to a SOCKS proxy. My question: how can I write a library that intercepts the gettimeofday() system call (or time() or whatever the 'date' command uses) and gets 'date' to return, say, Thu Jan 1 00:00:00 UTC 1970? I realize this involves a couple of steps (writing a C library for one), so any pointers are appreciated. My real intentions are more complex (and sinister G). It's quite straightforward. /bin/date actually uses localtime(), not gettimeofday(), but the principle is the same. $ cat localtime_hack.c #include sys/types.h #include time.h struct tm * localtime(const time_t *clock) { static struct tm tv; time_t epochal = 1; localtime_r(epochal, tv); return tv; } $ gcc -Wall -fpic -c -o localtime_hack.o localtime_hack.c $ gcc -shared -Wl,-soname,localtime_hack.so.1 -o \ liblocaltime_hack.so.1.0 localtime_hack.o $ LD_PRELOAD=`pwd`/liblocaltime_hack.so.1.0 /bin/date Thu 1 Jan 1970 01:00:01 BST Cheers Tom signature.asc Description: This is a digitally signed message part
Re: Code beautification and/or printing utilities that are not part of an editor
On Thu, 2007-04-19 at 15:10 -0600, Andrew Falanga wrote: Another question for everyone. Are there any programs, hopefully available in the ports, that one can use to print source code files to a printer (or create as a postscript file)? I'd like something that I can feed a C++ program, have it parse through the code, print line numbers to the left of the page and (optionally) color code the syntax. Does anything like this exist? If it's something as simple as a string of chained command line aps, hey, that's fine. Please someone point me in the correct direction. Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Assuming you can print with lpr(1): vim +syntax enable +number +hardcopy file.cc I'd put syntax enable in your ~/.vimrc , and the other attrs can be shortened to: vim +nu +ha file.cc signature.asc Description: This is a digitally signed message part
Re: Code beautification and/or printing utilities that are not part of an editor
On Fri, 2007-04-20 at 10:23 +0100, Tom Evans wrote: On Thu, 2007-04-19 at 15:10 -0600, Andrew Falanga wrote: Another question for everyone. Are there any programs, hopefully available in the ports, that one can use to print source code files to a printer (or create as a postscript file)? I'd like something that I can feed a C++ program, have it parse through the code, print line numbers to the left of the page and (optionally) color code the syntax. Does anything like this exist? If it's something as simple as a string of chained command line aps, hey, that's fine. Please someone point me in the correct direction. Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Assuming you can print with lpr(1): vim +syntax enable +number +hardcopy file.cc I'd put syntax enable in your ~/.vimrc , and the other attrs can be shortened to: vim +nu +ha file.cc My bad, I hadn't actually tried that! The correct version should be: vim +syntax enable +set printoptions=number:y +hardcopy file.cc vim +syntax enable +set popt=number:y +ha file.cc signature.asc Description: This is a digitally signed message part
Re: MS, Adobe competition heats up, Will Adobe wake and port Flash to BSD?
On Thu, 2007-04-19 at 06:59 +0300, Abdullah Ibn Hamad Al-Marri wrote: On 4/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 17/04/07, Abdullah Ibn Hamad Al-Marri [EMAIL PROTECTED] wrote: . . . Porting Flash to more OSes will sure will make adobe beats MS when it comes to web media. I hope they kill each other and take the whole retch-media enhanced web experience with them flaming into the pit of hell from which they came. But that's just my opinion. References: http://www.thebestpageintheuniverse.net/c.cgi?u=boiling_blood I'm sorry but rich media is a fact in the web, and you can't ignore it. Flash is used with Yahoo! maps, and so with alot of useful apps like stocks prices ..etc. Google Maps works just fine without flash - why would you want to constrain your viewport to some poxy applet control? If I want to watch a video, I want to use mplayer, not Firefox, Instead of ignoring it, we should see it ported to FreeBSD. I write web applications for a living, and quite happily ignore the steaming pile of excrement that is rich media applets - the number of 3rd party browser addons whose sole purpose is to disable flash reassures me that I'm not alone in this view signature.asc Description: This is a digitally signed message part
Re: BSD make vs. GNU make
On Tue, 2007-04-17 at 17:28 +0100, Soo-Hyun Choi wrote: Hi, This might be a dumb question, but would like get a clear idea about the differences between BSD make and GNU make. Why do I have to do 'gmake' in some cases instead of just plain 'make'? What's the differences? Thanks, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Slightly OT, but if the software you are building requires GNU make, the best solution is to rename the Makefile to GNUmakefile, which will be found and used by GNU make but not by BSD make. As many others said, GNU make has many many features and extensions over BSD make, to support autotools mainly. signature.asc Description: This is a digitally signed message part