Re: /dev/srandom vs. /dev/arandom
On Tue, Oct 18, 2011 at 12:20 PM, Theo de Raadt dera...@cvs.openbsd.org wrote: In any case, I'm getting just under 600KB/s on average with /dev/random. This is on a rather old machine, so I guess it's not too bad. I am getting 9MB/sec on a zaurus (416 MHz xscale arm). Just so everyone is on the same page, how are you measuring that? dd if=/dev/random of=/dev/null ? If my math is right, you would see 600KB/sec on a 10 MHz Xeon. Yes, I said MHz. -- -- Paul D. Ouderkirk Senior UNIX System Administrator p...@ouderkirk.ca -- laughing, in the mechanism -- William Gibson
Re: tar -J for xz
On Sat, Oct 8, 2011 at 8:30 AM, Francois Pussault fpussa...@contactoffice.fr wrote: If you eliminate standalone commands bzip gzip add their code to tar only then you never more can use bzip command or gzip command No one is suggesting to do that. -- -- Paul D. Ouderkirk Senior UNIX System Administrator p...@ouderkirk.ca -- laughing, in the mechanism -- William Gibson
Re: Invalid argument on mount (again)
Hi Daniel On Fri, Apr 15, 2011 at 11:08 AM, Daniel B. dan...@bolgh.eng.br wrote: Hi misc@, I'm trying to mount 2 external devices at umass(4) but I'm receiving: $ sudo mount /dev/sd0a sd0a mount_ffs: /dev/sd0a on /home/dbolgheroni/sd0a: Invalid argument $ Are there a workaround for this? OpenBSD 4.9-current (GENERIC) #10: Wed Apr 13 10:58:09 MDT 2011 dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC Someone will correct me if I'm wrong, but I'm pretty sure you can't mount a little-endian (i386/amd64) FFS filesystem on a big-endian (PowerPC) machine in OpenBSD. Paul -- -- Paul D. Ouderkirk Senior UNIX System Administrator p...@ouderkirk.ca -- laughing, in the mechanism -- William Gibson
Re: what is the “Online Certificate Status Protocol”
On Wed, Mar 9, 2011 at 4:30 AM, erikmccaskey64 erikmccaske...@zoho.com wrote: I use privoxy. In the user.action file i have a redirect rule and a few websites: What version of OpenBSD are you running? -- -- Paul D. Ouderkirk Senior UNIX System Administrator p...@ouderkirk.ca -- laughing, in the mechanism -- William Gibson
Re: SSD with firmware upgrade under OpenBSD
On Tue, Nov 30, 2010 at 3:21 PM, Brad Tilley b...@16systems.com wrote: Kevin Chadwick wrote: I almost completely agree, but also disagree and yes I'd say it's not worth getting into again. I would have to check the latest developments as I can imagine an algorithm which solved the problem during idle periods or didn't use it's full capacity but currently I don't agree fully with huge amounts of data. The problem was reduced immensely by spreading writes across all free sectors rather than sequentially but I believe? the problem re-appears on a busy nearly full disk. I would also hope/imagine the only affect would be getting bad sectors in that area but I haven't looked into it very far as I currently have no need to and so maybe I should shut up untill I do. However, I for one will not be treating SSDs like HDDs in all applications of disks untill after I learn more. One thing you might consider... buy a SSD and do some testing. Attach it to an OpenBSD box, put a file system on it, then write a script similar to this to repeatedly fill and empty the file system: while : do dd if=/dev/arandom of=big_un.bin bs=64k sync sleep 1 rm -P big_un.bin done Let that run for a few years and see how long the disk actually lasts. You could put up a website with live results. You'd become famous too... especially if you hit the decade mark and the thing still works :) Also, I just noticed that the high-end Intel SSDs claim 2,000,000 hours MTBF. I wonder why they market that number and then say 3 year warranty. There's only roughly 26,280 hours in a three year period. Brad MTBF numbers are typically cumulative, i.e. for the population of devices as a whole. If you had 2,000,000 Intel SSDs, you could expect (statistically) for one of them to fail every hour. Paul. -- -- Paul D. Ouderkirk Senior UNIX System Administrator p...@ouderkirk.ca -- laughing, in the mechanism -- William Gibson
Re: It is 2010. Still no 3GB support by default?
On Tue, Jun 8, 2010 at 12:14 PM, Chris Cameron ch...@upnix.com wrote: I'm not complaining about what OpenBSD can or can't do. I'm just saying that telling people what their needs are is rather insulting. I imagine they'd just like to use their favourite OS in more places. +1 IMHO OpenBSD doesn't make apologies for its choices, so don't make any on its behalf. -- -- Paul D. Ouderkirk Senior UNIX System Administrator p...@ouderkirk.ca -- laughing, in the mechanism -- William Gibson
Re: Mysql connection from within php
On Tue, Jun 1, 2010 at 9:30 AM, What you get is Not what you see wygin...@gmail.com wrote: Freshly installed on openbsd 4.6 mysql,php and php5-mysql packages. Done the configs. Now php and mysql works. But I couldnt make it connect to mysql from within php with such a command mysql_connect(localhost,user,pass) It used to give Cant connect to mysql through socket error till I change the command to mysql_connect(127.0.0.1,user,pass) I want to learn why? From: http://dev.mysql.com/doc/refman/5.0/en/connecting.html On Unix, MySQL programs treat the host name localhost specially, in a way that is likely different from what you expect compared to other network-based programs. For connections to localhost, MySQL programs attempt to connect to the local server by using a Unix socket file. On OpenBSD, the MySQL socket file is outside the httpd chroot, so your PHP script can't access it. Accessing 127.0.0.1 over TCP is no problem. Paul. -- -- Paul D. Ouderkirk Senior UNIX System Administrator p...@ouderkirk.ca -- laughing, in the mechanism -- William Gibson
Re: boot disk ???
On Wed, Aug 5, 2009 at 6:39 PM, Peter N. M. Hansteenpe...@bsdly.net wrote: PJ af.gour...@videotron.ca writes: The first question should probably be, did you verify that the .iso file matched the checksum before you burned it to disk? Checksums match! Show me. I need to see the exact command and any output. Before anyone spends any more time trying to help this individual, take a look at the last couple years worth of posts he's made to other lists so you can make an informed decision about whether your time would be wasted or not. http://marc.info/?a=11841782285r=1w=2 -- -- Paul D. Ouderkirk Senior UNIX System Administrator p...@ouderkirk.ca -- laughing, in the mechanism -- William Gibson
Re: low-MHz server
On Jan 30, 2008 1:35 PM, Douglas A. Tutty [EMAIL PROTECTED] wrote: Here's the hardware-type I'll envisioning: Multiple CPU so that multiple apps can run better on limited individual CPUs, running under 200 MHz Probably PCI bus. Paralell port for the printer (or I would just use a USB adapter) USB for future needs serial port for console multi-port serial for terminal(s) and my external 3Com Courier modem. 10 or 10/100 Ethernet Multiple hard drives: IIRC, the older boxes had 9 GB SCSI drives. I don't know if one can plunk new eg. 250 GB SCSI drives in them. SCSI HBA for a tape drive Probably your best bet to cover these requirements would be some old school Compaq Proliant with 2 or 4-way Pentium Pro CPUs. You can find them clocked around 200MHz. You can get them on eBay cheaply, but you'll probably get screwed on shipping. Paul. -- -- Paul D. Ouderkirk Senior UNIX System Administrator Exothermic Technologies [EMAIL PROTECTED] -- We'll ride the spiral to the end; and may just go where no one's been. -- Tool, Lateralus
Re: Sun Netra X1 Firewall Throughput?
On 5/18/07, Edd Barrett [EMAIL PROTECTED] wrote: I must say that the LOM (Lights Out Management) on this machine is absolutely superb. The bad thing with it is that it has no cd drive, so you have to open it up and balance one on top for the initial install. From there on i reccommend bsd.rd upgrades:P I recommend bsd.rd installs :) I'm actually running an X1 off compact flash on a CF-IDE adapter. Paul. -- Paul D. Ouderkirk Senior UNIX System Administrator JadedPixel Technologies [EMAIL PROTECTED] -- laughing, in the mechanism -- William Gibson
Re: Sun Netra and DAS
On 5/8/07, Kevin [EMAIL PROTECTED] wrote: Hello all, I'm about out of space on a Sun Netra T1 that has been happily running OpenBSD for some time. I'd rather keep this server in action and add space to it, but both internal drive slots are occupied, so that means the only choice (short of reloading on bigger disks, which for a variety of reasons I'd rather avoid) is adding external storage. It seems like the logical choice would be a Direct Attached Storage box like a D1000 plugged into the external SCSI port or a PCI RAID card. So: ... 3.) Are there better alternatives that I'm just overlooking? A StorEdge S1 would be a nice alternative, only 1U and will work off the external SCSI port on your Netra T1. Paul. -- Paul D. Ouderkirk Senior UNIX System Administrator JadedPixel Technologies [EMAIL PROTECTED] -- laughing, in the mechanism -- William Gibson
Re: strange output on openbsd C code
On 3/19/07, Gustavo Rios [EMAIL PROTECTED] wrote: No! p sizeof is 4 bytes, p is the frst byt of x, and p + 1 is the 4th byte. Casting is only on attribution of x to p. Realize, p[0] evals to 1 and p[1] evals to 2 as it should be. Only problem relates to p[0] * p[1]. I believe it should (1 * 2), i.e., 2. Not a random value. For what it's worth, when I run this code I always get the same (presumably correct) values: [EMAIL PROTECTED]:~ $ ./a.out x:8589934593 0,1:1,2 c:2 [EMAIL PROTECTED]:~ $ uname -rm 4.0 i386 -- -- Paul D. Ouderkirk Senior UNIX System Administrator JadedPixel Technologies [EMAIL PROTECTED] -- laughing, in the mechanism -- William Gibson
Re: strange output on openbsd C code
On 3/19/07, Paul D. Ouderkirk [EMAIL PROTECTED] wrote: On 3/19/07, Gustavo Rios [EMAIL PROTECTED] wrote: No! p sizeof is 4 bytes, p is the frst byt of x, and p + 1 is the 4th byte. Casting is only on attribution of x to p. Realize, p[0] evals to 1 and p[1] evals to 2 as it should be. Only problem relates to p[0] * p[1]. I believe it should (1 * 2), i.e., 2. Not a random value. For what it's worth, when I run this code I always get the same (presumably correct) values: And because I love to reply to myself, if I compile it with -O3, I can reproduce your results: [EMAIL PROTECTED]:~ $ cc -O3 test.c [EMAIL PROTECTED]:~ $ ./a.out x:8589934593 0,1:1,2 c:1387628864 (value of c changes with every execution) -- -- Paul D. Ouderkirk Senior UNIX System Administrator JadedPixel Technologies [EMAIL PROTECTED] -- laughing, in the mechanism -- William Gibson
Re: web sites not accessible
On 2/10/07, Gustavo Rios [EMAIL PROTECTED] wrote: Dear list members, i am trying to build a firewall. Up to now, everything is ok, except for some http sites that cannot be shown. ... I can ping world outside my private network, as also telnet, ssh, etc ... This may be a long-shot, but I once had similar symptoms on a network with a PPPoE DSL connection. Everything would work as I expected, but certain web sites would just never load. Try lowering the MTU on the PPPoE interface, it worked for me. In /etc/ppp/ppp.conf: set mtu max 1480 Try setting various values starting at 1480 and lowering the value until the web page problem is fixed. -- -- Paul D. Ouderkirk Senior UNIX System Administrator JadedPixel Technologies [EMAIL PROTECTED] -- laughing, in the mechanism -- William Gibson
Re: web sites not accessible
On 2/11/07, Gustavo Rios [EMAIL PROTECTED] wrote: Thanks, but i am using kernel pppoe! How can it be changed? In that case, check man 4 pppoe in the section labelled MTU/MSS ISSUES Paul. -- -- Paul D. Ouderkirk Senior UNIX System Administrator JadedPixel Technologies [EMAIL PROTECTED] -- laughing, in the mechanism -- William Gibson