Re: Openbsd 6.9 TCL ISSUE

2021-08-29 Thread Richard Toohey
On Wed, 25 Aug 2021 at 9:28 PM, Stuart Henderson 
wrote:

> On 2021-08-24, Error@Oddprotocol  wrote:
> > hi all
> > i have been trying to use some tcl script for an eggdrop on openbsd 6.9
> > and im getting the following error
> >
> > Error: error reading "sock7": Unknown error: 50327587
> >
> >
> > i have tested the same script on other linux distro and they/it works
> fine.
> >
> > i think there is a some dependency or lib missing, as a learner its
> really
> > tough for me to figure it out. can any one help?
>
> That isn't how a missing dependency or library would normally show itself.
> There aren't mamy Tcl people here, you could try
> asking the Tcl port maintainer but you're probably better off
> asking on Tcl mailing lists.
>
>
> I saw you asked this question in a few places and someone suggested a
newer version of tcltls.

I’ve had a quick go at using the newer version (1.7.22) on OpenBSD 6.9 and
it seems to improve things. It certainly went from throwing an error to
being able to retrieve an https page.

I didn’t use the sample code just a simple http request so not saying the
egg drop code is guaranteed to work but might get you further along.

Download and extract the source code, configure, make and use. It seems to
just work.

Do you want to give that a go - I can give more details if you need.

Thanks,
Richard


Re: Firefox and mail attachments

2020-08-21 Thread Richard Toohey
On Sat, 22 Aug 2020 at 4:45 AM, djraymondnm 
wrote:

> I notice that in firefox, when trying to add an attachment in gmail that
> the menu of available files to attach is basically empty. Is this a feature
> or a bug? I suspect it has to do with pledge/unvail. If so, how do you deal
> with attachments?


You can only use the user’s Downloads directory. Copy files in there first
and then you can attach them.

I couldn't find any documentation on this, though I vaguely remember a misc
> post on the subject.
>
>
>
> Dave Raymond
>
>
>
> Sent with [ProtonMail](https://protonmail.com) Secure Email.
>
>


Small typo in upgrade66.html

2019-10-23 Thread Richard Toohey

Hi,

Thanks for 6.6.  And sysupgrade.

Read the 6.6 upgrade notes at http://www.openbsd.org/faq/upgrade66.html 
and there's a small typo near the top.


"Before rebooting into the install kernel

    Check diskspace of /usr. Verify that the /usr partition has a size 
of at least 1.1G. With less space the upgrade may fail and you should 
consider to reinstall the system instead."


I think:

"may fail and you should consider to reinstall the system instead"

should probably be something like:

"may fail and you should consider reinstalling the system instead"

Thanks,
Richard.



Re: Monitoring system

2018-10-06 Thread Richard Toohey

On 10/07/18 09:05, flipchan wrote:

My phpinfo: dpaste.com/0VDR4TE

Have you looked in /usr/local/share/doc/pkg-readmes/ for anything useful.

I've moved off PHP 5.6 so not exactly sure what the file will be called.

The instructions for 7.0.31:

    /usr/local/share/doc/pkg-readmes/php-7.0.31

... include instructions about what to do for some extensions so you 
/may/ need to do something similar.



- some 'core' extensions with extra dependencies are packaged separately
(e.g. php-pdo_mysql, php-ldap, php-soap, and others) and can be installed
with pkg_add(1).
...
For all extensions packaged separately (and for opcache), you will find a
file named /etc/php-7.0.sample/(MODULE_NAME).ini. To enable it,
add a symlink into /etc/php-7.0 and restart:

    ln -sf ../php-7.0.sample/MODULE_NAME.ini /etc/php-7.0/


Obviously these instructions will not be directly applicable in your 
case, but do have a look in /usr/local/share/doc/pkg-readmes for 
anything php-related.


On October 6, 2018 4:42:16 PM UTC, Stuart Henderson  
wrote:

On 2018-10-06, Richard Toohey  wrote:

On 10/06/18 07:16, Stuart Henderson wrote:

On 2018/10/05 17:35, flipchan wrote:

It's weird because I have no error files that it describes the

error in, I am promted with

"Configuration file errror DB type MYSQL is not supported by

current setup"

I don't think the issue here - but if you are using PHP 7 make sure
mysqli is used.

http://php.net/manual/en/mysqlinfo.api.choosing.php

It all depends what zabbix-web wants. If it's written to use one
specific
api then you will need to use the module providing that. pdo_mysql is
probably the most common nowadays.




Re: Monitoring system

2018-10-06 Thread Richard Toohey

On 10/06/18 07:16, Stuart Henderson wrote:

On 2018/10/05 17:35, flipchan wrote:

It's weird because I have no error files that it describes the error in, I am 
promted with
"Configuration file errror DB type MYSQL is not supported by current setup"
I don't think the issue here - but if you are using PHP 7 make sure 
mysqli is used.


http://php.net/manual/en/mysqlinfo.api.choosing.php

Oh, in that case (always include the actual error message!) I'm pretty sure
you didn't enable the relevant PHP database module. I don't know which one
zabbix-web needs but I'd try php-pdo_mysql first.


I have set all configs (/var/www/zabbix/conf/zabbix.conf.php and /etc/zabbix*) 
to use 127.0.0.1
3306 , but nono :/

On October 5, 2018 12:55:15 PM UTC, Stuart Henderson  
wrote:

 On 2018-10-05, flipchan  wrote:
  Hey how did everyone get zabbix running I tried the zabbix MySQL with 
the zabbix web on 6.2 but I get a database connection error in the php , I 
assume the php can't read the config

 This is usually mysql/mariadb's annoying feature of automatically trying
 to use a unix socket when you try to make a TCP connection to localhost.
 See pkg-readmes/mariadb-server (the "chrooted daemons and MariaDB
 socket" for a workaround.




--
Take Care Sincerely flipchan layerprox dev




Re: PF possibly causing weird SSL issues ?

2018-09-18 Thread Richard Toohey

On 09/19/18 09:02, Tim Jones wrote:

Hi,

I'm wracking my brains here.   I have just replaced  
with one based on OpenBSD 6.3 PF. Nothing else has changed on the network, just the 
firewall.

Lots of "stuff" that used to work (e.g. various nightly pushes of data to "the 
cloud") have suddenly stopped working after the new firewall was put in place.

It seems to be down to some sort of weird handling of SSL by PF ?  I can't see 
why it should be OpenBSD, and yet I also can't see why it cannot be OpenBSD, 
given nothing else has changed.

The reason I say this is because of what I see if I take troubleshooting down 
to its most basic level :

This:
wget -O bp_linux.tar.gz 
https://github.com/Azure/blobporter/releases/download/v0.6.15/bp_linux.tar.gz
Fails with:
OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Unable to establish SSL connection.

And yet this (ironically !) :
wget https://cdn.openbsd.org/pub/OpenBSD/6.3/amd64/install63.iso
Works fine.

Similarly, this :
openssl s_client -connect 
github-production-release-asset-2e65be.s3.amazonaws.com:443 -servername 
github-production-release-asset-2e65be.s3.amazonaws.
com
Returns:
no peer certificate available
No client certificate CA names sent

And yet this :
openssl s_client -connect google.com:443 -servername google.com
Shows SSL certs OK  !

My PF is simple as follows (there is no NAT here, its fully routable) :
match in all scrub (no-df random-id)
block drop
set block-policy drop
set syncookies always
pass from  to any flags S/SA modulate state (pflow)

DNS and everything else is working fine.

(Not an expert, just suggesting some things that might provoke 
inspiration.  Hopefully.  But probably stuff already tried/eliminated.)


Are you sure it's pf?  If you disable pf (if that's an option here) - 
any difference?


If you take the rules out and then introduce them one-by-one - is there 
one that seems to break things?


What do the pf logs show?

Are you trying the commands on the firewall or an (OpenBSD?) machine 
behind the firewall?


[OpenBSD machine]---[OpenBSD firewall]---[the internet]

(Anything to do with LibreSSL versus OpenSSL?)

If you try those commands on another OpenBSD machine at a different 
location, do they work?


They work here (on a snapshot), so that does suggest they should work in 
general so yes, maybe the ruleset or pf.


I've not got wget installed, but can achieve the same request with ftp e.g.

$ ftp 
https://github.com/Azure/blobporter/releases/download/v0.6.15/bp_linux.tar.gz

Trying 192.30.255.112...
Requesting 
https://github.com/Azure/blobporter/releases/download/v0.6.15/bp_linux.tar.gz
Redirected to 
https://github-production-release-asset-2e65be.s3.amazonaws.com/74929278/e5e4422c-58f2-11e8-9582-3447e8bc9081?X-Amz-Algorithm=AWS4-HMAC-SHA256=AKIAIWNJYAX4CSVEH53A%2F20180919%2Fus-east-1%2Fs3%2Faws4_request=20180919T043531Z=300=d99e4c16a020810445620a2dc532f53e192ea382bff9785059d2f886981defb7=host_id=0=attachment%3B%20filename%3Dbp_linux.tar.gz=application%2Foctet-stream

Trying 54.231.81.40...
Requesting 
https://github-production-release-asset-2e65be.s3.amazonaws.com/74929278/e5e4422c-58f2-11e8-9582-3...


What do you get if you try ftp instead of wget?

$ openssl s_client -connect 
github-production-release-asset-2e65be.s3.amazonaws.com:443 -servername 
github-production-release-asset-2e65be.s3.amazonaws.com

CONNECTED(0003)
depth=2 C = IE, O = Baltimore, OU = CyberTrust, CN = Baltimore 
CyberTrust Root

...




Re: Enabling ngx_http_addition_module on OpenBSD?

2018-06-28 Thread Richard Toohey

On 06/28/18 19:43, Stuart Henderson wrote:

On 2018-06-28, Özgür Kazancci  wrote:

I need to use "add_before_body" and "add_after_body" directives for Nginx
for my personal webpage, by setting them in nginx.conf. However, it seems
that my Nginx installation (from OpenBSD packages) doesn't support these
directives:

a 'cat' to log file reports;

"2018/06/28 09:14:09 [emerg] 52287#0: unknown directive "add_before_body"
in /etc/nginx/nginx.conf:162"

These directives probably belong to the module: ngx_http_addition_module. So,
is there any way to dynamically activate that module without manually
fetching and compiling Nginx on the system?

I don't want to build Nginx from source. I cannot do that - it's a
production server.
Not sure how much work would be involved ... but I think that you could 
build and test on a machine set up as per your production machine?


Then copy across the binary file(s).

The module selection is part of the nginx build system - you can't do
this without building nginx.






Re: Virtualbox vs latest snapshot

2018-04-10 Thread Richard Toohey

On 04/11/18 10:50, Stuart Henderson wrote:

On 2018-04-10, csszep  wrote:

Hi!

I installed the latest 04.10 snapshot, the install procedure went fine, but
after reboot the VM stucks at endless boot loop .

It prints only the "booting hda0:/bsd" line.. before reboot

The 04.03 snapshot works fine.

There is a similar experience for someone with Virtualbox 5.2.8?


There's a recent bootloader problem, possibly following the update
to clang 6, that affects some machines. I suspect this might be
involved here.
Ah, that might (?) explain what was happening to me with a Lenovo 
Thinkpad X1 Carbon?


Not a VM.

Stuck in an endless boot loop, with a flash of a "heap full" message 
before the next reboot.


Tried the same snapshot on an older Thinkpad and no issues.

Looked like it was a possible SSD problem (from what I could find in the 
archives), so I tried the 6.3 installer and that was fine.


Repeated the snapshot install and got back into the endless rebooting.


To confirm if this is the problem, can you install the older
snapshot as normal, then update kernel and file sets to the newer
one? (follow the "Upgrade without the install kernel" steps on
http://www.openbsd.org/faq/upgrade63.html, except skip the part
about running installboot do install a new bootloader).

Can you report back either way please (preferably to bugs@, with
dmesg and anything special about the VM config).. If it is the
same thing it would be useful for developers to have a way to
reproduce the problem that doesn't involve specific hardware..






Re: Files corrupted by one byte when downloading from my HTTPD server, any idea?

2017-06-07 Thread Richard Toohey

On 06/07/17 22:10, tec...@protonmail.com wrote:

Hello,

I am using 6.1 Release - all patched, including packages with mtier.

I'm running a PHP56 web server, I am initiating automatic downloads using 
headers but whenever I download an image it cant be opened because no matter 
what image type it is I get:

Error interpreting JPEG image file (Not a JPEG file: starts with 0x0a 0xff)

I have been trying to figure this out all morning, I found a blog post which a 
guy has the exact same problem. 
https://shareithq.wordpress.com/tag/php-nginx-or-php-seems-to-be-adding-1-byte-to-image-files/

But I tested his fix on the file, and it works..

tail -c +2 avatest_local.jpg > avatest_fixed.jpg

Is it possible some sort of automatic compression is in use on the system? or 
is that just ridiculous?

Has anyone experienced this before and worked out the issue? Thanks
0x0a is a line feed (LF), and 0xFF looks like it is the start of the JPG 
image.


Does your PHP source file have a blank line at the top?

e.g.
[blank line]


i.e. your PHP source file has the 0x0a in it?  If I'm right then that 
will be sent as part of the output (the first byte in fact - what you 
are seeing).


Just an idea!



Re: Raspberry Pi 3 booting from USB

2017-03-05 Thread Richard Toohey

On Sat, Mar 04, 2017 at 06:40:57PM -0500, Joe Gidi wrote:


Hope this information is helpful
to someone...

--
  Joe Gidi
  j...@entropicblur.com

  "You cannot buy skill."
-- Ross Seyfried

Thanks for the info, and (a bit off-topic) great to see OpenBSD coming 
to the Pi.


So thanks to everyone making that happen, it is much appreciated.



Re: HP LaserJet Problem

2015-12-04 Thread Richard Toohey

On 12/05/15 07:33, bluesun08 wrote:

hmm, the "device busy" message is gone.
But now there is a new message:

# ./testfile > /dev/ulpt0
ksh: ./testfile: cannot execute - Permission denied

So what permissions fail?

You don't have execute permissions on testfile?

$ touch testfile
$ ./testfile
ksh: ./testfile: cannot execute - Permission denied






--
View this message in context: 
http://openbsd-archive.7691.n7.nabble.com/HP-LaserJet-Problem-tp284216p284602.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.




Re: Music On Console (MOC)

2014-12-12 Thread Richard Toohey

On 12/12/14 19:48, Ted Unangst wrote:

On Fri, Dec 12, 2014 at 15:00, Richard Toohey wrote:


(3) can help with the POSIX questions.

The maintainer has asked the same question on a MOC forum:

http://moc.daper.net/node/1369

I have no idea what posix features they want, so it's a tough question.

Thanks for all the replies - very much appreciated.

I think I should try a different tack - I'm not a MOC user nor a 
developer and I don't understand the POSIX issues.


If anyone using OpenBSD and MOC wants to ensure that future versions 
work on OpenBSD, then now is a good time to help out.  And best to 
contact the MOC developers directly: http://moc.daper.net/node/269.


Thanks,
Richard.



Music On Console (MOC)

2014-12-11 Thread Richard Toohey

Hi, guys.

This might be more a question for ports@ but it is also a general do 
you use it question.


I've been trying to help the MOC maintainer with testing changes on OpenBSD.

He wants to use some newer POSIX features but it seems that if he does 
so, he'll have to leave OpenBSD behind.  I say it seems because I 
might have led him in the wrong direction.


I'm definitely not the best person to advise him, so asking the general 
OpenBSD crowd if:


(1) they use MOC or
(2) have any interest in support for it on OpenBSD or
(3) can help with the POSIX questions.

The maintainer has asked the same question on a MOC forum:

http://moc.daper.net/node/1369

Thanks,
Richard.



Re: 5.6 arrived

2014-10-29 Thread Richard Toohey

On 10/30/14 07:26, Zé Loff wrote:

Sighted on my mailbox today, in Lisbon, Portugal.

Arrived today in Tauranga, New Zealand.



Re: 5.6 arrived

2014-10-28 Thread Richard Toohey

On 10/28/14 20:52, Harald Dunkel wrote:



I would suggest to increase the version information in the
snapshot file names as soon as the release tag is attached and
the -stable branch is created. This could help to avoid a lot
of confusion.


You get your asbestos pants on, and I'll get myself some popcorn.



Re: Changing MTU size

2014-10-02 Thread Richard Toohey

On 10/03/14 16:27, Daniel Ouellet wrote:

Unless I do not read the man page properly the information is available
there.


NAME
ifconfig — configure network interface parameters
SYNOPSIS
ifconfig[-AaC] [interface] [address_family] [address [dest_address]]
[parameters]

...
and lower you have:
...
  The following parameters may be set with ifconfig:
...
  mtu value
 Set the MTU for this device to the given value. Cloned routes
inherit this value as a default. For Ethernet devices which support
setting the MTU, a value greater than 1500 enables jumbo frames. The
hardmtu output from hwfeatures shows the maximum supported MTU.
...

So if you read the man page you should have the information you need.

Hope this help

Daniel


The OP has managed to use ifconfig, he was asking how to preserve the 
chosen settings over a reboot.


I think man hostname.if does the trick, though - there is a DHCP section 
there that says:


 A DHCP-configured network interface setup consists of

   dhcp options

 The above format has the following field values:

   dhcpThe literal string ``dhcp'' if the interface is to be
   configured using DHCP.  See dhclient(8) and
   dhclient.conf(5) for more details.

   options
   Miscellaneous options to set on the interface, e.g.,
   ``media 100baseTX mediaopt full-duplex''.  Valid options
   for a particular interface type can be found in
   ifconfig(8).



Re: low power device

2014-09-18 Thread Richard Toohey

On 09/19/14 14:26, Steve Litt wrote:

On Thu, 18 Sep 2014 19:22:32 -0500
Chuck Burns brea...@gmail.com wrote:


On Thursday, September 18, 2014 7:52:38 PM Steve Litt wrote:

I just remembered a third question: I can plug in a USB keyboard,
but how do I view the computer's output while installing OpenBSD or
troubleshooting? Ssh is good when it's running smoothly, but not for
preboot stuff.

Thanks,

Usually, it's a serial console


Thanks Chuck,

I didn't see a serial port listed as an IO device. Ugh, none of my
laptops have a serial port either, so I'd need to use an old desktop
running minicom to act as a serial port. Unless I get a serial terminal
from a junkyard.

Use USB and a USB-to-serial cable ... something like this:

http://www.dicksmith.co.nz/tv-video-cables/dse-serial-usb-adaptor-dsnz-xh8290


Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance




Re: Firefox Pkg Spellchecker

2014-07-02 Thread Richard Toohey

On 07/03/14 11:24, Adam Suhl wrote:

I've googled around looking for why Firefox 26, installed from the Openbsd
package underlines
every word as misspelled.

I have this issue as well on 5.5-stable on amd64.
--Adam



http://marc.info/?l=openbsd-portsm=140341756711398w=2

Not sure how to fix in 5.5, but it's been working for a while in current.



Re: ssh connections dropped after creating a keypair on the server

2014-04-16 Thread Richard Toohey

On 04/17/14 07:07, Ryan Freeman wrote:

On Wed, Apr 16, 2014 at 06:12:41AM -0500, Ed Ahlsen-Girard wrote:

I added a second -current box to the house. Since the first (named
FIRST below) had never had anywhere to ssh to, I created its first
keypair.

Now the Win7 laptop (LAPPER) running Putty has its connections to the
first -current box dropped before authentication. The key from the
laptop is still in authorized_keys. /etc/ssh/sshd_config has not
changed. security, authorization and message log files have nothing
to say about this. Dmesg and `tcpdump -o` output from the timeframe of a
connect attempt are below.

Hi,

Is there a chance you haven't updated that version of PuTTY recently?
OpenSSH takes a hard line on insecure HMACs and I recently had to
update PuTTY on a work machine as it wouldn't connect to a new OpenBSD
snapshot installation from a couple weeks ago.

Just hit exactly this with WinSCP - upgrade to latest version - all good.

Thanks.


Force people to update software following insecure semantics rather than
make it easy to be lazy is the song and dance here.

Cheers,

-ryan


--

Edward Ahlsen-Girard
Ft Walton Beach, FL




Re: Nonexistant domains resolve to my local domain

2014-04-10 Thread Richard Toohey

On 04/10/14 21:24, Zé Loff wrote:

On 10-04-2014 05:51, Hugo Osvaldo Barrera wrote:

On 2014-04-10 01:16, Giancarlo Razzolini wrote:

Em 10-04-2014 00:43, Hugo Osvaldo Barrera escreveu:

Hi,

I've having this extremely wierd issue.
My hostname is elysion.barrera.io. When I try to ping, curl, or 
something

alike aDomainIReallySureDoeNotExist.com, it pings/curls/whatever
my local domain. Maybe an example can me clearer:

   # ping adsfsdgasdadsfasfsdfasdf.net
   PING elysion.barrera.io (174.136.104.18): 56 data bytes
   64 bytes from 174.136.104.18: icmp_seq=0 ttl=255 time=0.032 ms
   64 bytes from 174.136.104.18: icmp_seq=1 ttl=255 time=0.081 ms


Any DNS traffic on port 53 when you ping a new nonexistant domain (i.e.
how is ping resolving / who is it getting the IP from)?

Would ASR_DEBUG help in this case?

http://marc.info/?l=openbsd-miscm=137908307611495w=2

$ ASR_DEBUG=1 ping nosuchdomainexistsok.com



Re: Is Soekris OpenBSD friendly?

2013-11-15 Thread Richard Toohey

On 11/16/13 13:03, SmithS wrote:

Greetings misc@.  After coming across a link[1] to make an OpenBSD
router using a Soekris device, I think I will make one.  Does anyone
else have this hardware and can verify all the components work?
I think Intel NICs are good, but everything else?  I have never heard
of this brand before so I want to be safe before buying.  The model
number[2] is 6501-30

[1] http://www.bsdnow.tv/tutorials/openbsd-router
[2] https://soekris.com/products/net6501/net6501-30-board-case.html

greetz,
SmithS



I've got a rack-mounted net6501-50 working well at the moment,
but I've only been using it for a few weeks so far.

Not sure all the components work, but it was easy to install
OpenBSD 5.3 to a USB stick, boot off that, then install to an SSD.

You have to connect with a serial cable, I've found a cheap USB-serial 
adapter

connected to a null modem cable to work well.

Any issues I've had - Google has given the answers.  8-)

Also got a 5501 in use and that's been working well, too.

dmesg from the 6501:

$ dmesg
OpenBSD 5.3 (GENERIC) #0: Wed Aug 28 19:46:41 NZST 2013
r...@abc.def.co.nz:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Genuine Intel(R) CPU @ 1.00GHz (GenuineIntel 686-class) 1.01 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF

real mem  = 1073131520 (1023MB)
avail mem = 1044611072 (996MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 20/21/15, BIOS32 rev. 0 @ 0xfac40
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 100MHz
cpu at mainbus0: not configured
mpbios0: bus 0 is type PCI
mpbios0: bus 64 is type ISA
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
pcibios0 at bios0: rev 2.0 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf3880/96 (4 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x8086 product 0x8186
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #13 is the last bus
bios0: ROM list: 0xc8000/0x2400 0xca800/0x4c00 0xcf800/0xee00
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06090a0a06000a0d
cpu0: using only highest, current and lowest power states
cpu0: Enhanced SpeedStep 1001 MHz: speeds: 1000, 1000, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel E600 Host rev 0x05
pchb1 at pci0 dev 1 function 0 Intel E600 Config rev 0x00
ppb0 at pci0 dev 23 function 0 Intel E600 PCIE rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 Intel EG20T PCIE rev 0x01
pci2 at ppb1 bus 2
Intel EG20T Packet Hub rev 0x01 at pci2 dev 0 function 0 not configured
Intel EG20T Ethernet rev 0x02 at pci2 dev 0 function 1 not configured
Intel EG20T GPIO rev 0x01 at pci2 dev 0 function 2 not configured
ohci0 at pci2 dev 2 function 0 Intel EG20T USB rev 0x02: apic 0 int 
19, version 1.0
ohci1 at pci2 dev 2 function 1 Intel EG20T USB rev 0x02: apic 0 int 
19, version 1.0
ohci2 at pci2 dev 2 function 2 Intel EG20T USB rev 0x02: apic 0 int 
19, version 1.0

ehci0 at pci2 dev 2 function 3 Intel EG20T USB rev 0x02: apic 0 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
Intel EG20T USB Client rev 0x02 at pci2 dev 2 function 4 not configured
sdhc0 at pci2 dev 4 function 0 Intel EG20T SDIO rev 0x01: apic 0 int 18
sdmmc0 at sdhc0
sdhc1 at pci2 dev 4 function 1 Intel EG20T SDIO rev 0x01: apic 0 int 18
sdmmc1 at sdhc1
ahci0 at pci2 dev 6 function 0 Intel EG20T AHCI rev 0x02: msi, AHCI 1.1
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 1 lun 0: ATA, INTEL SSDMAEXC02, 9CV1 SCSI3 
0/direct fixed naa.5001517803d66c24

sd0: 19087MB, 512 bytes/sector, 39091248 sectors, thin
ohci3 at pci2 dev 8 function 0 Intel EG20T USB rev 0x02: apic 0 int 
16, version 1.0
ohci4 at pci2 dev 8 function 1 Intel EG20T USB rev 0x02: apic 0 int 
16, version 1.0
ohci5 at pci2 dev 8 function 2 Intel EG20T USB rev 0x02: apic 0 int 
16, version 1.0

ehci1 at pci2 dev 8 function 3 Intel EG20T USB rev 0x02: apic 0 int 16
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
Intel EG20T DMA rev 0x00 at pci2 dev 10 function 0 not configured
puc0 at pci2 dev 10 function 1 Intel EG20T Serial rev 0x01: ports: 1 com
com3 at puc0 port 0 apic 0 int 19: ti16750, 64 byte fifo
puc1 at pci2 dev 10 function 2 Intel EG20T Serial rev 0x00: ports: 1 com
com4 at puc1 port 0 apic 0 int 19: ti16750, 64 byte fifo
puc2 at pci2 dev 10 function 3 Intel EG20T Serial rev 0x00: ports: 1 com
com5 at puc2 port 0 apic 0 int 19: ti16750, 64 byte fifo
puc3 at pci2 dev 10 function 4 Intel EG20T Serial rev 0x00: ports: 1 com
com6 at puc3 port 0 apic 0 int 19: ti16750, 64 byte fifo
Intel EG20T DMA rev 0x00 at pci2 dev 12 function 0 not configured
Intel EG20T SPI rev 0x00 at pci2 dev 12 function 1 not configured
Intel EG20T I2C rev 0x00 at 

Re: Autoinstall

2013-11-04 Thread Richard Toohey

On 11/05/13 11:14, Predrag Punosevac wrote:

I was driving last night so I have not had much sleep. I just want to
make sure that I am not hallucinating. Then minutes ago when I installed
the latest snapshot I was presented with an additional installation option

Autoinstall [A]

I picked out of curiosity but since I have not provided configuration
file I was dropped to the shell.

I think I can see where is this going and I would like to thank you
everyone involved.

I assume it's this?

http://undeadly.org/cgi?action=articlesid=20131029073058mode=expanded


Cheers,
Predrag




5.4 CDs in New Zealand

2013-10-29 Thread Richard Toohey

Hi, all.

CD sets arrived today in Tauranga, New Zealand.

Thanks to Theo and all the developers and other people behind OpenBSD - 
your work is much appreciated.




Re: Thunderbird 24.0 and Firefox 24.0 spell checking broken?

2013-10-14 Thread Richard Toohey

On 10/14/13 23:41, Fred wrote:

Hi misc@

I recently upgraded thunderbird and firefox to 24 and since then spell 
checking has stopped working - in both applications - all words get 
underlined in with a red squiggle - I've added the en-GB language packs:


port:fred ~ pkg_info|grep fire
firefox-24.0p0  Mozilla web browser
firefox-i18n-en-GB-24.0 en-GB language pack for Firefox
port:fred ~ pkg_info|grep thun
thunderbird-24.0p0  Mozilla e-mail, rss and usenet client
thunderbird-i18n-en-GB-24.0 en-GB language pack for Thunderbird

general.useragent.locale is set to en-GB

I have the same problem if I set the language to en-US.

Am I missing something obvious?

I am about to delete both firefox and thunderbird profiles to see if 
that resolves the issue...


Hi, Fred,

It's been there a while - I haven't found a solution yet (also using amd64):

http://marc.info/?l=openbsd-portsm=137950359628970w=2

I tried the spellchecker.dictionary_path but no difference.

You get to the stage where it looks like everything should work - but it 
just doesn't.




Cheers

Fred


[cut]



Re: GNOME on OpenBSD 5.3 amd64

2013-10-10 Thread Richard Toohey

On 10/10/13 18:13, obsd, cgi wrote:

Hi!

External tutorial for 4.8 vs. official documentation for 5.3.
This leads to the nonsense you've done to your 5.3 system below.

--

I went to openbsd.org, typed GNOME in the search form:
- the first hit was a PDF from 2007
- all the remaining were regarding packages

What now? Can you please point out where is the official GNOME install
documentation for 5.3? or no one uses GNOME with 5.3 on the misc list?

ps.: I found that other people have problems with GNOME on 5.3, maybe it's
a bug? (
http://community.spiceworks.com/topic/349701-gnome-on-openbsd-5-3-amd64 )

Thanks

UPDATE: oh, ok I just read the bottom part: don't use virtualbox. - so
the bug comes out when using virtualbox?, ok, Thanks! I will try it with
other VM's or directly!


2013/10/9 Jérémie Courrèges-Anglas j...@wxcvbn.org


obsd, cgi obsd...@postafiok.hu writes:


I tried to install GNOME on OpenBSD 5.3 amd64 for Desktop use (on
VirtualBox), see the howto below.

But after the howto, reboot, startx with a normal user:
https://i.imgur.com/MaT8lcW.png

Xorg.0.log
https://pastee.org/p8ppa

# original:


http://www.gabsoftware.com/tips/tutorial-install-gnome-desktop-and-gnome-disp
lay-manager-on-openbsd-4-8/

External tutorial for 4.8 vs. official documentation for 5.3.
This leads to the nonsense you've done to your 5.3 system below.


---

when installing:
-g*

---

echo 'export PKG_PATH=

ftp://ftp.openbsd.org/pub/OpenBSD/5.3/packages/amd64/'

~/.profile; . ~/.profile

pkg_add -i -vv gnome-session gdm
# if there was Can't install foo message, try the pkg_add line again

---

vi /etc/rc.local

Append/modify the following lines in /etc/rc.local:

if [ -x /usr/local/sbin/gdm ]; then
echo -n ' gdm'; (sleep 5; /usr/local/sbin/gdm) 
fi

---

echo 'exec gnome-session'  /root/.xinitrc; chmod +x /root/.xinitrc
exit
echo 'exec gnome-session'  .xinitrc; chmod +x .xinitrc

---

pkg_add -i -vv metacity
pkg_add -i -vv gnome-panel
pkg_add -i -vv nautilus

---

vi /etc/rc.conf.local

Append/modify the following lines :

xdm_flags=NO
gnome_enable=YES
gdm_enable=YES

---

pkg_add -i -vv gnome-terminal gnome-control-center gnome-menus
gnome-settings-daemon gnome-themes-standard
# for some reason, these aren't found: gnome-themes-extras gnome-utils
gnome-applets2 gnome-system-monitor gnome-nettool

---

So the question is anybody has a working howto for installing GNOME on
OpenBSD?

Just so that Antoine doesn't feel forced to send another mail about this
recurring subject: pkg_add gnome, *read* the various readmes, don't use
virtualbox.

Did you look in the archives - e.g. marc.info is a good place to search?

e.g.

http://marc.info/?l=openbsd-miscm=135275664028541w=2

Don't use Gnome on OpenBSD these days, but used to without problems.


--
jca | PGP: 0x06A11494 / 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494




Re: Dell servers

2013-10-10 Thread Richard Toohey

On 10/11/13 16:42, Friedrich Locke wrote:

Is anyone running OBSD 5.3 on Dell R*** series servers ?
What about 10G etherner devices ? And Storage ?
Is there any concern when buying these machines ?

Thanks in advance.



I had trouble with a Dell R620 with the iDRAC and FreeBSD / OpenBSD.

There's some issue to do with the iDRAC being Broadcom and also the 
other NICs.


FreeBSD 9.2 RC1 had the fix, so that was good enough for me for this 
machine:  http://forums.freebsd.org/archive/index.php/t-31769.html


I didn't keep very good notes (sorry!), but with OpenBSD 5.3 (and the 
latest snap at the time) I was getting bge0: watchdog timeout --- 
resetting


I did try turning the iDRAC NIC off, changing settings, etc., but had no 
joy until I used 9.2.


Obviously YMMV, I might have missed something, the FBSD changes might 
give you a clue what to do, etc. but it did give me a bit of grief at 
the time.


No other obvious issues with OpenBSD(/FreeBSD) on the machine - 
installed and found drives, RAM, etc. - just this NIC issue.


HTH,
Richard.



Re: update my box and Cinnamon avaible

2013-09-23 Thread Richard Toohey

On 09/23/13 22:54, Marc Espie wrote:

On Mon, Sep 23, 2013 at 11:25:57AM +0100, James Griffin wrote:

* Marc Espie es...@nerim.net [2013-09-23 12:22:47 +0200]:


On Mon, Sep 23, 2013 at 10:32:20AM +0100, James Griffin wrote:

To update packages: pkg_add -iu (-i is for interaction to selection flavors of 
pkg's and -u is for update). Must be run with privileges, i.e. sudo or root 
user.

You don't need -i in most cases these days, pkg_tools default to interactive
if run on a terminal now.

(-I can be used to revert to non-interactive mode)


Cheers Marc, I wasn't aware of that. Just a habit I got into ages ago.

Yeah, it's something I look at in usage patterns.

Lots of people don't follow the tools development too closely,
and so they keep using options which are no longer needed.

I use pkg_add -ui because that's what is in the upgrade instructions e.g.

http://www.openbsd.org/faq/upgrade53.html#Pkgup

Is that a special case?

Thanks.


Then they teach those to other people, thus ensuring that
people keep thinking things are more complicated than
they are...

I'd really like a solution that didn't involve me having
to rectify things again and again, but it's better than nothing :)




Re: Feedback about Desktop Environments

2013-09-16 Thread Richard Toohey

On 09/16/13 22:18, James Griffin wrote:

I need to install a Dektop Environment for my partner.

I thought about KDE or xfce, i've tried neither on OpenBSD before. Which of the 
3 main main DE's (gnome, KDE, XFCE) do you feel work best on OpenBSD.

I'm currently on XFCE and it works for me.

Used both Gnome and KDE and found good things and bad things - from *my* 
point-of-view.


I was happy with KDE 3.5.10 - but was missing the eye candy of newer 
things, so tried Gnome 3.


Was really enjoying Gnome 3 but it got a bit sluggish on the hardware I 
was using at the time, so headed for something more light-weight.


I've tried the more bare-bones ones like fvwm and cwm - bit too minimal 
for my liking, but worth trying cwm (in base so nothing to install.)


So moved to XFCE and been happy there for a while.  Alt-Tab works, 
performance is good, enough eye-candy for me.  Parole (the multi-media 
app) times out on some of my DVDs, so I use mplayer for those.  Picture 
viewer, GIMP for graphics, thunar file manager, Firefox  Chromium, 
Thunderbird, nice console, Libreoffice, etc., etc. Does everything I 
need and looks pretty enough.


It is really going to be down to personal preference and your 
requirements - no real short-cut to trying all three out for a few days 
and see which one works for you.


I would need things like removable media mounting from within the graphical 
environment, good sound support and multimedia applications.

Any advice would be helpful from those using any of these Desktop's. I thought 
i'd ask on this list before installing loads of packages.

Cheers, Jamie.




Re: Seeking GUI refuge

2013-05-24 Thread Richard Toohey

On 05/25/13 10:48, Patrick Mc(avery wrote:

Hi Everyone
[chop]
While about 7 out of the 9 years with Linux have been good, the 
graphical experience on Linux has plummeted for me. I don't really 
want to send prospective customers to Linux any more. I am fearing 
that Windows may end up being my only option.

Which Windows GUI is that?

Last version I liked was Windows 2000; XP was OK, 7 a disaster, and 
sounds like Microsoft are backpedaling on Windows 8 and the tile-based 
approach.


Not sure there is any perfect GUI - if you are looking for something 
exactly like Windows, then you are going to have Windows (but as I say, 
Windows is a moving target - you talking about XP, 7 or 8, or Blue?)


KDE 4 and Gnome 3 have been big jumps from their previous versions.

I've been through KDE 3.5.10 to Gnome 3 to cwm, currently on XFCE which 
suits me personally.


If you get put off by a few links to non-installed applications, then 
don't think much is going to help you.


OS X looks nice, but there are a few frustrations in there, too. And if 
your customers prefer the Windows experience, then it's no help - it's 
not Windows, it is different.


Anyway, everything is meant to be on the cloud, Web 2.0 (or is it 3.0), 
iOS, Android, etc. so no-one cares about the desktop anymore. Yeah, right!


Good luck!



Re: Problems w/apache+php+mysqld since 4.9-5.0 OpenBSD Upgrade

2013-05-22 Thread Richard Toohey

On 05/23/13 10:15, Damon Getsman wrote:

  Hello all, and thank you for taking the time to take a look at
this issue that I am currently having.  I've been a strong advocate of
OpenBSD for some time, but have only recently taken steps to start
upgrading some of my machines instead of reinstalling.
My primary server was a 4.9 installation, and it was running
apache, with PHP and MySQL integrated for the purpose of serving a
mediawiki, a gallery2 installation, and a few other utilities that I
have had up for myself and some friends.  Unfortunately, ever since I've
made the leap from 4.9 to 5.0, I've been unable to get anything other
than plain HTML documents to display via apache.  The server tells me
that there are either '500' server errors or with a little more detail
MediaWiki tells me (Can't contact the database server: MySQL functions
missing, have you compiled PHP with the --with-mysql option? ).
Now according to the pkg_info listing that I have, I _believe_
that I have all of the proper packages and libraries installed, but I
guess I am mistaken as I'm still not able to serve pages up with any
sort of MySQL back end handling.  Here is the output of 'pkg_info -a -m'
for anybody who cares to verify this:

BitTorrent-4.4.0p10 cooperative file distribution system implemented in
Python
ImageMagick-6.6.6.10p0 image processing tools
alacarte-0.12.4p7   easy GNOME menu editing tool
apache-httpd-2.2.15p0 apache HTTP server
apcupsd-3.14.8p2daemon for controlling APC UPSes
archie-1.4.1Prospero client for the archie service
bash-4.2.10 GNU Bourne Again Shell
beav-1.40.15binary editor and viewer
bzip2-1.0.6 block-sorting file compressor, unencumbered
calc-2.11.7 C-style arbitrary precision calculator
camlimages-3.0.2p0  image manipulation functions for Objective Caml
check_bioctl-1.9Nagios plugin to check RAID status with bioctl
check_email_delivery-0.7.0 Nagios plugin to check full email delivery loop
(SMTP
/IMAP)
check_hw_sensors-1.42 Nagios plugin to monitor sysctl hw.sensors
check_mssql_health-1.5.3 Nagios plugin to check Microsoft SQL Server
check_openbgpd-1.5  Nagios plugin to monitor OpenBGPd peers
cups-1.4.7p0Common Unix Printing System
cups-pdf-2.5.1  PDF backend for CUPS
curl-7.21.7 get files from FTP, Gopher, HTTP or HTTPS servers
dosbox-0.74p0   x86 with DOS emulator targeted at playing games
emacs-22.3p10   GNU editor: extensible, customizable, self-documenting
fedora_base-4.0p8   Linux compatibility package based on Fedora Core 4
firefox-5.0p3   Mozilla web browser
firefox35-3.5.19p2  Mozilla web browser
ghostview-1.5p3 X11 front-end for ghostscript
git-1.7.6p0 GIT - Tree History Storage Tool
git-svn-1.7.6p0 GIT - subversion interoperability tools
git-x11-1.7.6p0 GIT - graphical tools
gnome-common-2.34.0 common automake macros for GNOME
gnome-desktop-2.32.1p4 components for the GNOME desktop
gnome-mplayer-1.0.4p1 GTK+/GNOME frontend for MPlayer
gnome-panel-2.32.1p5 GNOME panel
gnome-screensaver-2.30.2p2 screen saver and locker for GNOME
gnome-system-monitor-2.28.2p6 sytem monitor for GNOME
gnome-system-tools-2.32.0p6 sytem configuration GUI for desktops
gnuchess-5.08   chess program
gpgme-1.1.5p1   GnuPG Made Easy
gstoraster-1.03p0   filter to convert PostScript or PDF to cups raster
format
ircII-20081115p0Internet Relay Chat client
ispell-3.2.06p6 interactive spelling checker
jove-4.16p1 Jonathan's Own Version of Emacs
kdebase-3.5.10p13   K Desktop Environment, basic applications
kermit-8.0.211  serial and network communications package
latex-mk-1.9.1p0set of Makefile fragments to manage LaTeX documents
libpurple-2.9.0 multi-protocol instant messaging library
libreoffice-3.4.1.3p1v0 multi-platform productivity suite
mediawiki-1.15.5p3  web-based collaborative editing environment
minicom-2.2p0   MS-DOS Telix-like serial communication program
mpg123-1.13.1   fast console MPEG audio player and decoder library
mrtg-2.17.1p1   multi-router traffic grapher
mutt-1.5.21v0-sasl  tty-based e-mail client, development version
mysql-server-5.1.54p9 multithreaded SQL database (server)
ncftp-3.2.3 ftp replacement with advanced user interface
nethack-3.4.3p4-qt  dungeon explorin', hackin', game.  Piece of cake
nmap-5.51p0 scan ports and fingerprint stack of network hosts
ntop-1.1network usage, interface similar to top(1)
ntp-4.2.6pl2p7  Network Time Protocol reference implementation
ocaml-3.12.0p0  ML language based on complete class-based objective
system
oinkmaster-2.0p0update your Snort rules
p7zip-9.20.1file archiver with high compression ratio
partial-wordpress-3.0.2 standard compliant weblog
pgp-2.6.3   Pretty Good Privacy 2.6.3ia
php-5.2.17p5server-side HTML-embedded scripting language
php-curl-5.2.17p3   curl URL library extensions for php5
php-gd-5.2.17p4 image manipulation extensions for 

Re: Problems w/apache+php+mysqld since 4.9-5.0 OpenBSD Upgrade

2013-05-22 Thread Richard Toohey

On 05/23/13 11:44, Damon Getsman wrote:

Bryan, after doing that it appears that it's not even getting executed.
I put the script into a web accessible file called debug.php, loaded
it in my browser and saw a blank page.  Viewing the source is
showing the original ? phpinfo(); ?, leading me to believe that it is
not even handing it off to the appropriate script engine...  Not sure if
I'm right but does that help at all?



You can't use shorttags* ...

You need to use ...

?php
?

* Well, you can if you tweak settings.



Re: Problems w/apache+php+mysqld since 4.9-5.0 OpenBSD Upgrade

2013-05-22 Thread Richard Toohey

On 05/23/13 12:08, Damon Getsman wrote:

Okay, now I've got the phpinfo output.  Nothing is jumpin' out at me,
if y'all care to take a look at it I've got it available at
bismaninfo.hopto.org/debug.php for a limited time here.



No mysql in the output.

What does php -m give you, etc.

It's like the message you are getting - something is up with the mysql 
extension in your install.


Check the ini files, etc.

You are using the base Apache and PHP is working - you need to look at 
the mysql extension and find out why it is not enabled or not loading.




Re: OpenBSD official reference book ( like FreeBSD handbook / NetBSD Guide )

2013-05-07 Thread Richard Toohey

On 05/08/13 16:01, TRUNASUCI TRUNASUCI wrote:

Hi all;

I just wanna ask if there is a project for this official refernce book for all 
users ( if any please inform ). Since i cant find any kind of like this on 
openbsd web. Just my reference is on FAQ and some other doc.

I love to have or if any handbook like this in PDF, so i can download it, and 
use/read it anywhere.

Not official, but these are good ...

http://www.nostarch.com/obenbsd2e
http://www.nostarch.com/pf2.htm

Both of them (and more) mentioned here:

http://www.openbsd.org/books.html

HTH


So do we have it? if not, is there any plan to do it?

Thank you

TRUNASUCI Arafat
http://trunasuci.pbworks.com




Re: snapshots/amd64/SHA256 x*.tgz checksums missing

2013-05-06 Thread Richard Toohey

On 05/06/13 22:04, MERIGHI Marcus wrote:

acam...@verlet.org (Abel Abraham Camarillo Ojeda), 2013.05.06 (Mon) 11:27 
(CEST):

search archives

That's what I call minimalism ;-)

I did what you told me to in advance and there's only one hit close
enough to care:

Alexander Polakov
snapshots SHA256 mismatch
2013-05-04 22:00:35
http://marc.info/?l=openbsd-miscm=136770496915566

All other hit's for
``http://marc.info/?l=openbsd-miscw=2r=1s=snapshotq=b'' or
``http://marc.info/?l=openbsd-miscw=2r=1s=sha256q=b'' or
``http://marc.info/?l=openbsd-techw=2r=1s=snapshotq=b'' or
``http://marc.info/?l=openbsd-techw=2r=1s=sha256q=b'' are to old
to care. Latest snapshot used by me with alle the checksums in SHA256
was downloaded 2013-04-28:
OpenBSD 5.3-current (GENERIC.MP) #106: Thu Apr 25 16:37:24 MDT 2013
 t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Alexander's report talks of wrong checksums, /me of missing checksums.
Therefore:

A) Maybe you can give me a 2 words pointer?
B) Read my original message?


Did you mean could not find a checksum or that it complained about a 
SHA256 mismatch?


If the mismatch, then Google found me this ... search term openbsd 
snapshot sha256 mismatch


http://openbsd.7691.n7.nabble.com/i386-and-amd64-snapshots-kernel-SHA256-mismatch-td97960.html

... basically the SHA256 is for release, so during snapshot upgrades you 
will get warnings.


It is explained in the link above.

HTH.


Bye, Marcus
  

On Mon, May 6, 2013 at 4:19 AM, MERIGHI Marcus mcmer-open...@tor.at wrote:

my snapshot upgrade procedure just puked at me because it could not find
a checksum for xbase53.tgz. This is on amd64, dmesg at the end.
Below is the result of me going through all the archs and looking for
x*.tgz checksums in the SHA256 files. I do know that this does not make
sense for some archs because some do not even have x*.tgz file sets.

alpha yes
amd64 no
armish yes
hp300 no
hppa no
i386 no
landisk yes
loongson no
luna88k no
macppc no
mvme68k no
mvme88k no
octeon yes
sgi no
socppc no
sparc yes
sparc64 no
vax yes
zaurus yes

Of course I would like to know whether this is by mistake or an intended
change (current.html does not tell anything about it).

Bye, Marcus

OpenBSD 5.3-current (GENERIC.MP) #106: Thu Apr 25 16:37:24 MDT 2013
 t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3194331136 (3046MB)
avail mem = 3101650944 (2957MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf68e0 (62 entries)
bios0: vendor Dell Inc. version A18 date 12/06/2011
bios0: Dell Inc. Latitude D630
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC ASF! MCFG TCPA SLIC SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0) USB4(S0) 
USB5(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3) RP02(S4) RP03(S3) RP04(S3) 
RP05(S3) RP06(S5) LID_(S3) PBTN(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz, 1995.34 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz, 1995.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
cpu1: 2MB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus 9 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model DELL KP4331 serial 278 type LION oem SMP
acpibat1 at acpi0: BAT1 not present
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivideo1 at acpi0: VID_
acpivideo2 at acpi0: VID2
cpu0: Enhanced SpeedStep 1995 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c
vga1 at pci0 dev 2 function 0 Intel GM965 Video rev 0x0c
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
intel_overlay_map_regs partial stub

Re: faxing

2013-04-22 Thread Richard Toohey

On 04/23/13 05:30, Peter Fraser wrote:

[cut]

  The charity operates in a Windows environment. To the problem is: how does a 
person (probably a volunteer)
  on a Windows machine put a TIFF file into a directory on an OpenBSD, and in 
addition send the information
as to where send the fax and get back a status on success or failure of sending 
a fax.

[cut]
Sounds like a job for Samba - at least the putting a TIFF file from 
Windows onto an OpenBSD directory.




Re: Can't get vsftpd to run

2013-04-01 Thread Richard Toohey

On 04/02/13 18:13, John Tate wrote:

I can't find that config option.

I think Stuart is talking about the background option from here:

https://security.appspot.com/vsftpd/vsftpd_conf.html

Also look at listen, etc.

For logging - log_ftp_protocol  syslog_enable  xferlog_enable  
vsftpd_log_file  xferlog_file options.



On Tue, Apr 2, 2013 at 9:52 AM, Stuart Henderson s...@spacehopper.orgwrote:


On 2013-04-01, John Tate j...@johntate.org wrote:

I've not used it in a while and I can't get it to run. I can't find any
logging options or anything.

# vsftpd

...
(It just sits there doing nothing)

How do I get it to work?

I'm using the default config with only my own banner.


It is waiting for a connection (there is a config option to run
it in the background).

We should probably add an rc.d script to the port to make it easier.




Re: PHP mini_sendmail problems

2013-03-14 Thread Richard Toohey

On 03/15/13 08:41, Alexey Suslikov wrote:

On Thu, Mar 14, 2013 at 9:35 PM, John Tate j...@johntate.org wrote:

 From the end of error_log:
femail: no recipients

femail commandline switches aren't 100% sendmail-
compatible.

check php.ini on how you pass recipients to femail.



Also check out /usr/local/share/doc/pkg-readmes/femail-chroot-0.98p2



Re: enabling sendmail

2013-02-23 Thread Richard Toohey

On 02/24/13 12:54, Luis Coronado wrote:

Yes and you don't have to do anything, unless you need to enable a
different set of sendmail rules but that will depend on what you want to
accomplish.

-luis



On Wed, Feb 20, 2013 at 6:29 PM, rich...@thornton.net wrote:


Is sendmail enabled by default?  If not, how do I do that?

Have a look in man afterboot, it has a section on sendmail



Re: got my 5.2 cd's today

2012-11-06 Thread Richard Toohey

Arrived in Tauranga, New Zealand.

Thanks to all involved.

On 10/27/12 05:17, goodb0fh wrote:

Got mine yesterday, thanks!!!

Sent from my iPhone 7

On Oct 26, 2012, at 11:57 AM, Dan Farrell danstermeis...@gmail.com wrote:


Just wanted to say thank-you, and the artwork is awesome.


danno




Re: sysmerge on 5.2?

2012-10-29 Thread Richard Toohey

On 10/29/12 20:12, bofh wrote:

Hi,
Can someone help me understand how sysmerge works?  I made all the
config changes and then followed the instructions at
http://openbsd.org/faq/upgrade52.html and did this:

# sysmerge -s $RELEASEPATH/etc52.tgz -x $RELEASEPATH/xetc52.tgz

but don't know where the files are stored?  My preference has always
to do a full/new reinstall - how does sysmerge merge it back into the
system?

I feel rather dumb, but read the upgrade and the man page quite a few
times, and don't really get it :(

This undeadly article might help with the history ...

http://undeadly.org/cgi?action=articlesid=20080424172821

I use something like ...

sysmerge -s http://mirror/pub/OpenBSD/snapshots/i386/etc52.tgz -x 
http://mirror/pub/OpenBSD/snapshots/i386/xetc52.tgz




Thanks!




Re: Is not possible to disable sndiod process??

2012-06-10 Thread Richard Toohey
On 10/06/2012, at 8:25 PM, carlopmart wrote:

 On 06/09/2012 12:56 PM, Alexandre Ratchov wrote:
 On Sat, Jun 09, 2012 at 12:36:19PM +0200, carlopmart wrote:
 On 06/09/2012 12:21 PM, Alexandre Ratchov wrote:
 On Sat, Jun 09, 2012 at 11:48:29AM +0200, carlopmart wrote:
 Hi all,

  How can I disable sndiod process?? I have configured under rc.conf:


 the recommended way to disable it by adding:

 sndiod_flags=NO

 in /etc/rc.conf.local

 sndiod_flags=NO

  but every time host is rebooted, sndiod starts ... Why??

 indeed, it shouldn't start. May be you've multiple sndiod_flags
 definitions, or your setting is overriden in rc.conf.local or
 whatever else.

 -- Alexandre

 Nop, I don't have a rc.conf.local file ..


 so, just do:

  echo 'sndiod_flags=NO'/etc/rc.conf.local

 see rc.conf(5) man page as well.

 -- Alexandre

 Ok, I have restored original rc.conf file, and created rc.conf.local with my
options ... and works.

 But then a doubt emerges. What files are not recommended to touch between
upgrades? Where can I found this info??

You didn't find this?

http://www.openbsd.org/faq/faq10.html

• /etc/rc.conf - Configuration file used by /etc/rc to set startup parameters
for the system. Should not be edited.
• /etc/rc.conf.local - Configuration file that overrides settings in
/etc/rc.conf so you don't have to touch /etc/rc.conf itself, which is
important when upgrading your system.




 --
 CL Martinez
 carlopmart {at} gmail {d0t} com



Re: Problems starting mysql-server-5.1.62

2012-04-12 Thread Richard Toohey
On 12/04/2012, at 7:12 PM, Hasse Hansson wrote:

 Googling the problem and the error messages didn't get me much further.

 I have to admit, this is a bit over my head. aka I don't have a clue what
 I'm doing

Why don't you go back a bit ... how did you install MySQL 5.1.62?

How are you starting MySQL?  (Should be in /etc/rc.conf.local, mysqld in
pkg_scripts line.)

Looks like two errors there - one about threading, and one about the MySQL
user account.

But let's not run before we walk!

Working for me:

$ uname -a
OpenBSD xxx.yyy.co.nz 5.1 GENERIC#198 i386
$ pkg_info | grep mysql
mysql-client-5.1.62 multithreaded SQL database (client)
mysql-server-5.1.62 multithreaded SQL database (server)
...
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 36
Server version: 5.1.62-log OpenBSD port: mysql-server-5.1.62
...



 # uname -a

 OpenBSD odin.thorshammare.org 5.1 GENERIC#160 i386



 When I run : /usr/local/bin/mysql_install_db

 I get the following errormessage :

 Installing MySQL system tables...

 120412  8:04:10 [Warning] '--skip-locking' is deprecated and will be
removed
 in a future release. Please use '--skip-external-locking' instead.

 120412  8:04:10 [ERROR] Can't create interrupt-thread (error 91, errno: 91)



 When I try to follow some recommendations from

http://dev.mysql.com/doc/mysql-linuxunix-excerpt/5.5/en/mysql-install-db-pro
 blems.html

 # /usr/local/bin/mysqld_safe --user=_mysql --skip-grant-tables 

 [1] 3016

 # 120412 08:48:38 mysqld_safe Logging to
 '/var/mysql/odin.thorshammare.org.err'.

 120412 08:48:38 mysqld_safe Starting mysqld daemon with databases from
 /var/mysql

 120412 08:48:38 mysqld_safe mysqld from pid file
 /var/mysql/odin.thorshammare.org.pid ended



 [1] + Done /usr/local/bin/mysqld_safe --user=_mysql --skip



 And the logfile says :

 120412 08:47:40 mysqld_safe Starting mysqld daemon with databases from
 /var/mysql

 120412  8:47:41 [Warning] '--skip-locking' is deprecated and will be
removed
 in a future release. Please use '--skip-external-locking' instead.

 120412  8:47:41 [ERROR] Fatal error: Can't change to run as user 'mysql' ;
 Please check that the user exists!



 120412  8:47:41 [ERROR] Aborting



 120412  8:47:41 [Note] /usr/local/libexec/mysqld: Shutdown complete



 120412 08:47:41 mysqld_safe mysqld from pid file
 /var/mysql/odin.thorshammare.org.pid ended

 120412 08:48:38 mysqld_safe Starting mysqld daemon with databases from
 /var/mysql

 120412  8:48:38 [Warning] '--skip-locking' is deprecated and will be
removed
 in a future release. Please use '--skip-external-locking' instead.

 120412  8:48:38 [Note] Plugin 'FEDERATED' is disabled.

 120412  8:48:38  InnoDB: Initializing buffer pool, size = 8.0M

 120412  8:48:38  InnoDB: Completed initialization of buffer pool

 InnoDB: Error: pthread_create returned 91

 120412 08:48:38 mysqld_safe mysqld from pid file
 /var/mysql/odin.thorshammare.org.pid ended



 Regards

 Hasse



Re: Does your USB keyboard Dot key on keypad fail? Was Re: Shuttle XS35 v2 - One key going loco

2012-04-02 Thread Richard Toohey
On 3/04/2012, at 3:35 PM, Opera wrote:

 Hlo,
 The reason for putting this on top is that I have data that are showing that
I can not blame the Shuttle.

 Here is the brief infos-

 When using a USB keyboard [native USB or with an adaptor for ps2] the keypad
Del key works perfectly but when NumLock is on that key
 does not change its output to Dot when working with any version
 of OpenBSD that I have tried. Turning NumLock off and using the shift key
does not work either.

 There are no other keys affected.

 The problem exists on every computer that I try.

 Windows 7 or XP and NetBSD both work perfectly.

 There is now some tension in the evidence.

 (I) It would seem that there is a little bug in OpenBSD that will affect any
box running with USB keyboard.

 (II) I can't believe that this can not have been noticed before if clause
(I) is true.


IIRC then yes, I have noticed this (or something very similar.)  Trying to run
an emulator program on OpenBSD.

Worked fine on my laptop, but using a USB keyboard failed - it was returning a
different value for the same key.

This was a couple of months ago, so my memory might be playing tricks on me.

 Well maybe that no OBSD person uses USB keyboard? Or doesn't use that Dot
key on the keypad?




 On 31/03/2012 04:07, Steffen Daode Nurpmeso wrote:
 Opera wrote [2012-03-30 12:58+0200]:
 Using the same keyboard where I first saw the bug but connected to a
 plain old PC.

 I use hexdump like this:
 # hexdump -C
 tap the problem key, then hit return and then Cntrol-D

 With numlock off I see:
 ^[[3~
   1b 5b 33 7e 0a
 0005
 With numlock on:
 .
   2e 0a
 0002

 Using the same keyboard with a ps2-USB adaptor I see the same
 result as the numlock off test above whether numlock is on or off.

 This is what I see on the Shuttle also but it has no ps2 sockets
 so on it I'm stuck with no working dot key on the numpad and
 of course old habits die hard so I mess up lots of  ip addresses.

 Is there something in wsconsctl or such that would let me patch
 it? I've been hunting through various related man pages but I
 have not hit on a hint so far.

 Hey, b-by!

 Just recently i've posted a patch to tech@ that let's you examine
 the scancode of a key via wsconsctl!!!
 Then you can use basic wsconsctl features to set the key to
 whatever you want, now that you can identify it!!

 By the way - Marco Peereboom has posted a great ksh(1) to tech@ on
 2011-09-06 that let you do graceful multi-character-sequence key
 binding, which may also be of interest to you.
 Was for me.

 And YOU ARE THE FIRST Windows NT user i know of who cares about
 keyboard scancodes!
 This is just a FANTASTIC EXPERIENCE for me.
 THANK YOU

 (P.S.: there is a X program which gives you even more info, so
 that you can adjust your .xmodmaprc or so.)

 --steffen
 Forza Figa!



Re: PHP/HTTP config

2012-03-19 Thread Richard Toohey
On 20/03/2012, at 5:20 PM, Duncan Patton a Campbell wrote:

 Howdy?

 I've recently lost my cache of misc mail

Why not look in the archives, then?

http://marc.info/?l=openbsd-miscr=1w=2

Not saying you'll find an answer to your questions in misc@, but it's there
(and elsewhere on the net)

This might also help with your specific issue:

http://www.openbsd.org/faq/upgrade50.html#Pkgup

HTH.

 and I was wondering
 if anyone can point me to a explanation of the rationale for
 moving the php config into /etc.  I've moved from 4.9 to 5/snap
 and am having some trouble getting apache to work with php
 so I'm hoping that an explanation for this will give me some
 idea how to get it to work, with or without chroot.

 Dhu

 --
 Ne obliviscaris, vix ea nostro voco.



Re: ping from chrooted httpd fails

2012-03-03 Thread Richard Toohey
On 3/03/2012, at 9:38 PM, fRANz wrote:

 Hi,
 I tried to make ping working inside httpd chroot from php script.
 Without chroot, ping works fine.
 I don't know what I miss in this configuration:

 # uname -a
 OpenBSD d7 5.0 GENERIC#59 i386

 # cat /etc/rc.conf | grep httpd
 # use -u to disable chroot, see httpd(8)
 httpd_flags=-DSSL # for normal use:  (or -DSSL after reading
ssl(8))

 # ps ax | grep httpd
 28641 ??  Ss  0:00.29 httpd: parent [chroot /var/www] (httpd)
 2400 ??  I   0:00.14 httpd: child (httpd)
 28041 ??  I   0:00.14 httpd: child (httpd)
 13701 ??  I   0:00.12 httpd: child (httpd)
 32659 ??  I   0:00.13 httpd: child (httpd)
 15200 ??  I   0:00.12 httpd: child (httpd)
 20758 ??  I   0:00.08 httpd: child (httpd)
 11871 ??  I   0:00.03 httpd: child (httpd)
 7365 ??  I   0:00.04 httpd: child (httpd)
 12284 ??  I   0:00.06 httpd: child (httpd)

 # ls -ls
 total 2744
 512 --  1 root  bin  243784 Sep 22 16:06 bgpctl
 512 -r-sr-xr-x  1 root  bin  235984 Aug 15  2011 femail
 480 -r-sr-xr-x  1 root  bin  214748 Sep 22 16:06 ping

 (chmod u+s set a sticky bit on root account)

 # chroot -u www /var/www/ /bin/ping
 usage: ping [-DdEefLnqRrv] [-c count] [-I ifaddr] [-i wait]
[-l preload] [-p pattern] [-s packetsize] [-T toskeyword]
[-t ttl] [-V rtable] [-w maxwait] host

 From this test, ping into chroot to 127.0.0.1 seems works fine for me.

 But if I launch ping from php script (I tried exec and shell_exec
 functions) no output is reported, also apache logs don't report
 nothing useful.


Have you got /bin/sh (off the top of my head) in the chroot bin directory?

I think PHP's exec tries to find that.

What is the return code/output from exec/shell_exec?  If 127, then that's a
clue.

See here for example -

http://stackoverflow.com/questions/438618/illegal-command-error-code-127-in-p
hp-exec-function

The bit about error 127 and /bin/sh, not the guy who says just skip chroot!

HTH.


Thanks.

 PHP version is 5.3.6, installed from packages.
 PHP's safe_mode is turned off (I'm using standard /etc/php-5.3.ini file)

 /var wasn't mounted with noexec or something else:

 # mount
 /dev/sd0a on / type ffs (local)

 What's wrong in this scenario?
 Let me know if futher information are required.
 BR,
 -f



Re: CVS checkout for OPENBSD_5_0 : aborted

2012-02-14 Thread Richard Toohey
On 14/02/2012, at 8:41 PM, Giridhari wrote:

 I'm not sure what you mean. Are you suggesting I should read up on how to
 operate cvs, or is there something specific about CVS and OPenBSD I should
 be aware of? I'm following the faq. I have updated several times in the
past
 with CVS with no trouble at all.

Google's first result (for me, hard to tell these days what other people will
get - with the Google filter bubble):

http://www.openbsd.org/faq/faq5.html#snake

It's hard to tell from your email what step(s) you've followed, so it's hard
to help you.


 -Original Message- From: Richard Toohey
 Sent: Tuesday, February 14, 2012 5:15 PM
 To: Giridhari
 Cc: misc@openbsd.org
 Subject: Re: CVS checkout for OPENBSD_5_0 : aborted

 On 14/02/2012, at 5:01 PM, Giridhari wrote:

 HELO

 have tried a cvs checkout of OPENBSD_5_0 several times in the last week or
 two
 and have seen cvs abort:



 cvs checkout: Updating src/games/snake
 cvs [chckout aborted]: could not chdir to src/games/snake/snake : Not a
 directory

 Could someone have a look at this please.

 Have you tried Google yet?



Re: CVS checkout for OPENBSD_5_0 : aborted

2012-02-13 Thread Richard Toohey
On 14/02/2012, at 5:01 PM, Giridhari wrote:

 HELO

 have tried a cvs checkout of OPENBSD_5_0 several times in the last week or
two
 and have seen cvs abort:



 cvs checkout: Updating src/games/snake
 cvs [chckout aborted]: could not chdir to src/games/snake/snake : Not a
 directory

 Could someone have a look at this please.

Have you tried Google yet?



Re: FR: Make it possible to turn off untrusted users ability to read cmdline arguments of processes they don't own

2012-02-01 Thread Richard Toohey
On 2/02/2012, at 12:30 PM, Paul Dejean wrote:

 Even though it's bad practice, a lot of commonly programs will request
 passwords or similar sensitive information as command line arguments.
 For instance, curl, svn, useradd... There will usually be a way to
 work around doing things this way (curl can read from a config file
 for instance), but doing so is a hassle (have to write a new config
 file for each request).

 I would really like some way to turn the access unprivileged users
 have to this information on and off. Ideally I'd like it off by
 default in OpenBSD (secure by default).

 Also I would like to add, that even if you folks shoot down this FR as
 being an awful idea. It's good that there's an operating system
 community where I feel comfortable bringing up this request, where I
 wouldn't hear things like:
 You have untrusted users on your system? What a n00b
 All security features are off by default, why should it be our
 responsibility to protects admins from their stupid mistakes?
 omg why should you care. hunting for sensitive information? it's not
 like anyone actually does that

I've got no comment on the idea itself ...

In this community, the reply is likely to be great idea, where is your
sample implementation?

There are not a lot of developers - I'm not one - so generally ideas need to
be accompanied by code.

It's a bit like the school P.T.A. that I help out with - there are lots of
ideas, but very few helpers - ideas welcome, but they need to be attached to
someone willing to actually do the work.

HTH.



Re: What's the location trash after move to trash

2012-02-01 Thread Richard Toohey
On 2/02/2012, at 6:05 PM, lbvvbooo lbvvbooo wrote:

 I checked folder ~/.local/share/Trash/files/, and test it again, still can't
find the deleted files. The trash icon does NOT show them either.

 Anybody help?


If you know one of the file names or part of one of the filenames - use find.

 Thanks.


 Date: Wed, 1 Feb 2012 08:44:20 +0100
 From: ajacou...@bsdfrog.org
 To: lbvvb...@live.com
 CC: misc@openbsd.org
 Subject: Re: What's the location trash after move to trash

 On Wed, Feb 01, 2012 at 07:31:23AM +, lbvvbooo lbvvbooo wrote:
 Hi,

 I'm using openbsd 5.0 with gnome-session. When I delete items under gnome,
first I choose items and click the right button of the mouse, then choose
move to trash. Question is I can't find the deleted items in the Trash icon
of the desktop. So, where the deleted items? How do I delete them completely,
like empty trash in windows?

 Here's the gnome suits I used, but the version number is incorrect.

 pkg_add -i -vv gnome-session-2.30.2p3.tgz
 pkg_add -i -vv gdm-2.20.11p1.tgz
 pkg_add -i -vv metacity-2.30.1p1.tgz
 # pkg_add -i -vv gnome-panel-2.30.2p2.tgz
 # pkg_add -i -vv nautilus-2.30.1p2.tgz
 pkg_add -i -vv gnome-terminal-2.30.2p0.tgz
 # pkg_add -i -vv gnome-control-center-2.30.1p0.tgz
 # pkg_add -i -vv gnome-menus-2.30.2p0.tgz
 # pkg_add -i -vv gnome-settings-daemon-2.30.2p1.tgz
 # pkg_add -i -vv gnome-themes-2.30.2.tgz
 # pkg_add -i -vv gnome-themes-extras-2.22.0p8.tgz
 # pkg_add -i -vv gnome-utils-2.30.0p0.tgz
 # pkg_add -i -vv gnome-applets2-2.30.0p2.tgz
 # pkg_add -i -vv gnome-system-monitor-2.28.1p3.tgz
 # pkg_add -i -vv gnome-nettool-2.30.0p0.tgz

 Deleted files are under: ~/.local/share/Trash/files/

 If the trash icon does show them, then you probably have an issue with the
gamin file monitor (which will be replaced in the next release anyway).

 --
 Antoine



Re: error report when installing gnome on openbsd 5.0

2012-01-18 Thread Richard Toohey
On 19/01/2012, at 8:15 PM, lbvvbooo lbvvbooo wrote:

 After a 2nd thought, I don't think it's caused by packages of different
versions in one folder, because the error are all tracked and rooted to one
error: can't install gnugetopt: library c.51.0 not found; library intl.4.0 not
found. It seems a mismatch between openbsd and package gnugetopt.

 Any help is appreciated.


What *exact* version of OpenBSD 5.0?  Release?  CD?  Stable? Something else?
Generic?  i386?  amd64?  What?

Fresh install?  Upgrade?  Clean disc install from CD?  What?

What *exact* commands are you typing and what output do you get?

Have you set PKG_PATH to anything?

You are not providing enough information for anyone to help you.

Every release there are questions like this, and it usually ends up someone
trying to mix versions of OpenBSD with the wrong version of ports/packages.

And in the process of trying to explain EXACTLY what they have tried to do,
the lightbulb goes off.

 Thanks.
 Any help is appreciated.

 Thanks

 
 Thanks for reply.

 I myself is a programmer, from my point of view, it's a version mismatch
here. Because I think gnome is quite common used package, I want to know if
there's a quick fix for this, so, if somebody else has met the same problem
with me, or have solution for this, or have suggestion on this, pls reply on
this.

 For the bsd and packages, I'm using the latest release version. I get bsd
5.0, download the package on internet. So I don't know where the mismatch
happens.

 Any help is appreciated.

 Thanks.



 Subject: Re: error report when installing gnome on openbsd 5.0
 From: j...@jggimi.homeip.net
 Date: Wed, 18 Jan 2012 23:58:07 -0500
 To: lbvvb...@live.com; misc@openbsd.org

 lbvvbooo lbvvbooo lbvvb...@live.com wrote:

 Hi,

 I used to use an older version of bsd, and the gnome works quit well on
that version.

 Now,
 I'm trying to install gnome on openbsd 5.0, but it report error when I
 try to install gnome-desktop, gnome-session, and gdm. They report
 similar error basically:

 can't install gnugetopt: library c.51.0 not found; library intl.4.0 not
found


 Here's the detail information:

 When adding gdm-2.20.11p22.tgz

 | /usr/lib/libc.so.60.1 (system): bad major
 | /usr/local/lib/libintl.so.5.0 (gettext-0.18.1p0): bad major
 Direct dependencies for gnugetopt-1.1.4p2 resolve to gettext-0.18.1p0
libiconv-1.13p2
 Full dependency tree is gettext-0.18.1p0 libiconv-1.13p2

 When adding gnome-desktop-2.32.1p4.tgz:

 | /usr/lib/libc.so.60.1 (system): bad major
 | /usr/local/lib/libintl.so.5.0 (gettext-0.18.1p0): bad major
 Direct dependencies for gnugetopt-1.1.4p2 resolve to gettext-0.18.1p0
libiconv-1.13p2
 Full dependency tree is gettext-0.18.1p0 libiconv-1.13p2


 When adding gnome-session-2.32.1p18.tgz:

 | /usr/lib/libc.so.60.1 (system): bad major
 | /usr/local/lib/libintl.so.5.0 (gettext-0.18.1p0): bad major
 Direct dependencies for gnugetopt-1.1.4p2 resolve to gettext-0.18.1p0
libiconv-1.13p2
 Full dependency tree is gettext-0.18.1p0 libiconv-1.13p2

 When adding gnugetopt-1.1.4p2.tgz

 | /usr/lib/libc.so.60.1 (system): bad major
 | /usr/local/lib/libintl.so.5.0 (gettext-0.18.1p0): bad major
 Direct dependencies for gnugetopt-1.1.4p2 resolve to gettext-0.18.1p0
libiconv-1.13p2
 Full dependency tree is gettext-0.18.1p0 libiconv-1.13p2


 Any help is appreciated.

 Thanks.


 Please read FAQ 15.4.1.
 --
 Sent from my phone.  Please excuse any idiotic automated word choices.
It
 wasn't me.  Honest.



Re: Failed to setup fvwm for antialiased Xft fonts

2011-12-09 Thread Richard Toohey
On 10/12/2011, at 5:18 AM, Neoklis Kyriazis wrote:

 - Original Message -
 From: Richard Toohey
 richardtoo...@paradise.net.nz
 To: Tekk t...@parlementum.net
 Cc: Neoklis
 Kyriazis n5b...@yahoo.com; OpenBSD misc@openbsd.org
 Sent: Friday, December
 9, 2011 9:03 AM
 Subject: Re: Failed to setup fvwm for antialiased Xft fonts
 On 9/12/2011, at 7:27 PM, Tekk wrote:

 iirc the binary packages are audited,
 ports are not


 Guys, they put so much effort into the docs  FAQ - read
 them.  The
 recommendation is to use the binary packages unless you know you
 are doing.


 OK, sorry about that, but I am a complete beginner in OpenBSD and
 there is so much to read that I have not been able to cover all the

 ground.

Welcome to OpenBSD.

 And it was the first attempte at ports also.

 I guess I should spend less time
 in trying to set up the installation

 and more on reading


The installation?  Boot off the CD and follow the instructions and OpenBSD
will be installed 5 minutes later.

Install an application - pkg_add

Then go and do the reading.

Expect to still be reading and learning many years later - I am.  Between the
man pages, the FAQs, the source, and your favourite search engine - it's
(usually!) all there.

Just remember - it's not Linux, it hasn't got the deep pockets (filled with
$$$s) of Ubuntu.

It's not dumbed down - it expects the end-user to do a bit of thinking - how
can it guess/assume what is required on your machine or how it should be
configured?

It's better at some things, worse at others, ahead in some ways, behind in
others.  It won't cure cancer, but no kittens or babies are harmed.  Only you
can decide if it works for work in the way you need it to.  Different jobs
need different tools. YMMV.

Good luck.

 Regards
 Neoklis - Ham Radio Call 5B4AZ
 QTH Locator KM64KR
 Website:
 http://www.qsl.net/5b4az/



Re: What generates the OpenBSD page?

2011-12-09 Thread Richard Toohey
On 10/12/2011, at 3:02 PM, John Tate wrote:

 I am wondering what software if any generates the OpenBSD and similar
 websites. It appears to be a static page generated by some software, that
 software doesn't seem to be mentioned. What is it? Or is it just hand made?
 

You might find some answers here

http://www.openbsd.org/cgi-bin/cvsweb/www/

 John Tate
 
 -- 
 www.johntate.org



Re: Failed to setup fvwm for antialiased Xft fonts

2011-12-08 Thread Richard Toohey
On 9/12/2011, at 7:27 PM, Tekk wrote:

 iirc the binary packages are audited, ports are not


Guys, they put so much effort into the docs  FAQ - read them.  The
recommendation is to use the binary packages unless you know you are doing.

http://www.openbsd.org/faq/faq15.html#Intro

The packages and ports collection does NOT go through the same thorough
security audit that is performed on the OpenBSD base system. Although we
strive to keep the quality of the packages collection high, we just do not
have enough human resources to ensure the same level of robustness and
security.

 On Thu, 8 Dec 2011, Neoklis Kyriazis wrote:

 - Original Message -
 From: Thomas Adam tho...@xteddy.org
 To: Neoklis
 Kyriazis n5b...@yahoo.com
 Cc: OpenBSD misc@openbsd.org
 Sent: Thursday,
 December 8, 2011 6:41 PM
 Subject: Re: Failed to setup fvwm for antialiased Xft
 fonts

 No -- OpenBSD's version of FVWM as included in base is ancient.  Get
 the one from ports which will have XFT support.


 Hi,

 Thanks for the tip. I
 have tried to install fvwm2 from the ports tree,
 but I saw a lot of gcc
 warnings during compilation, some of them
 possibly serious.


 This leads me to
 a more general question about using third party
 software. Is the source code
 of the binary application packages in
 the mirrors scrutinized, to fix the
 source of such warnings?And I
 suppose applications installed from the ports
 system are as is,
 since the source is downloaded from upstream?

 My thanks
 in advance.



 Regards

 Neoklis - Ham Radio Call 5B4AZ
 QTH Locator KM64KR
 Website: http://www.qsl.net/5b4az/



Re: roundcubemail packet

2011-12-05 Thread Richard Toohey
On 5/12/2011, at 9:03 PM, Wesley M. wrote:

 Hi,
 
 I have the following error : 
 
 Check DB config
 DSN (write):  NOT OK(MDB2 Error: connect failed)
 Make sure that the configured database exists and that the user has write
 privileges
 DSN: mysql://roundcube:pass@localhost/roundcubemail
 

Try 127.0.0.1

http://www.openbsd.org/faq/faq10.html#httpdchroot

 Using http://mailserver_ip/roundcubemail/installer/
 I have a user roundcube in mysql, with a roundcubemail database.
 I don't understand why it stops here... If someone can help me?
 
 What is installed on this machine (OpenBSD 5.0) :
 aspell-0.60.6p4; bzip2-1.0.6; curl-7.21.7; cvsps-2.1
 dovecot-2.0.13p5; femail-0.97p1; femail-chroot-0.97p3;
 gettext-0.18.1p0; git-1.7.6p0; libiconv-1.13p2; libidn-1.22
 libltdl-1.5.26p0; libmagic-5.00; libmcrypt-2.5.8p1; libxml-2.7.8p2
 mysql-client-5.1.54p0; mysql-server-5.1.54p9; p5-Clone-0.31p1;
 p5-DBD-mysql-4.019
 p5-DBI-1.616; p5-Error-0.17016p0; p5-FreezeThaw-0.43p2; p5-MLDBM-2.04
 p5-Net-Daemon-0.43p0; p5-Params-Util-1.00p2; p5-PlRPC-0.2018p1;
 p5-SQL-Statement-1.33
 pecl-fileinfo-1.0.4p0; php-5.2.17p5; php-mcrypt-5.2.17p3;
 php-mysql-5.2.17p3
 php-pspell-5.2.17p3; roundcubemail-0.5.3p1; rsync-3.0.8p0
 
 Also, i want to buil a mailserver (multi-domains) using sendmail(with
 virtusertable)
 and dovecot. But i want to use pop3/pop3s does this working with
 roundcubemail-0.5.3p1 ?
 
 Thank you very much for your help.
 
 Cheers,
 
 Wesley.



Re: Easy way to follow -current, a write-up

2011-12-03 Thread Richard Toohey
On 4/12/2011, at 8:36 AM, Marc Espie wrote:

 On Sat, Dec 03, 2011 at 08:01:43PM +0100, Sime Ramov wrote:
 I just wrote this document outlining the steps I do to keep up
 with -current:

 http://ramov.com/writing/obsd-current.html

 Hope someone finds it useful.

 Bad advice. As discussed with Antoine, sysmerge should be run *after* the
 update, not before, even though you may have to reboot an extra time.


But an interesting thread - I've been burning CDs for each snapshot I've
tried, thinking all the while there must be a better way ... not been a big
enough itch for me to scratch, but now I've learnt something ... so thanks for
that, guys.



Re: gkrellm and uuid's for filesystems

2011-11-18 Thread Richard Toohey
On 19/11/2011, at 1:46 PM, John Tate wrote:

 Misc/Ports,

 gkrellm has an OpenBSD specific shortcoming. Depending on what USB
 drives are plugged in, my softraid could be anywhere between sd2-sd6.
 gkrellm needs to be reconfigured every time. The OpenBSD port of
 gkrellm could instead support the uuids, and always display my two
 physical AHCI drives and the softraid. It's a little annoying having
 to configure gkrellm after every different boot scenario.

 Also, where do I get started on learning to make ports? I don't
 necessarily mean contribute but where are the docs for a wannabe
 contributor?



OpenBSD is (rightly) famed for the man pages:

man ports

Which also links you to the excellent FAQs.

openports.se is a very useful resource and I'm glad it is there - but my
understanding is that it is not an official part of the project.

You might also want to read this ... http://www.openbsd.org/mail.html

HTH

 John

 Also this leads nowhere, so I couldn't find gkrellm's maintainer:
 http://openports.se/sysutils/gkrellm

 --
 www.johntate.org



Re: Recommended working IDE

2011-11-18 Thread Richard Toohey
On 19/11/2011, at 2:51 PM, John Tate wrote:

 Misc,
 
 I've had troubles with eclipse and anjuta. Eclipse does not want to
 run, anjuta seems to be missing it's symbol browser in anjuta-extras.
 Anjuta actually works, but when I open a project it gives me an error.
 I've already posted what it is, so search. Is there an IDE that works?
 What is it? Perhaps I should just learn emacs. Though, I really like
 anjuta. Are there any IDE recommendations apart anjuta, eclipse, and
 vim and emacs editors available?
 
 John
 
 -- 
 www.johntate.org
 

vim with syntax highlighting and brace-matching etc. etc. works for me.

What language(s) and sorts of project (fat-client?  console?  GUI?  web?)



Re: Giving java apps more memory

2011-11-18 Thread Richard Toohey
On 19/11/2011, at 4:12 PM, John Tate wrote:

 Netbeans crashes with this...

 john@rothbard ~$ netbeans
 #
 # A fatal error has been detected by the Java Runtime Environment:
 #
 # java.lang.OutOfMemoryError: requested 32784 bytes for Chunk::new.
 Out of swap space?
 #
 #  Internal Error (allocation.cpp:272), pid=17843, tid=8647815168
 #  Error: Chunk::new
 #
 # JRE version: 7.0
 # Java VM: OpenJDK 64-Bit Server VM (20.0-b03 mixed mode bsd-amd64
 compressed oops)
 # An error report file with more information is saved as:
 # /home/john/hs_err_pid17843.log
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #
 Abort trap (core dumped)

 Eclipse crashes with this...
 [john@rothbard ~$ eclipse
 #
 # A fatal error has been detected by the Java Runtime Environment:
 #
 # java.lang.OutOfMemoryError: requested 1565456 bytes for Chunk::new.
 Out of swap space?
 #
 #  Internal Error (allocation.cpp:272), pid=30120, tid=8844312576
 #  Error: Chunk::new
 #
 # JRE version: 7.0
 # Java VM: OpenJDK 64-Bit Server VM (20.0-b03 mixed mode bsd-amd64
 compressed oops)
 # An error report file with more information is saved as:
 # /home/john/hs_err_pid30120.log
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #

 How should I proceed?


OpenBSD / this list appreciate people who do a bit of homework.

What did you find in Google?

What research have you done?

What have you tried?

Just mailing this list with every problem you have is going to wear people
out.

 --
 www.johntate.org



Re: How to suggest a package?

2011-11-14 Thread Richard Toohey
On 15/11/2011, at 6:03 PM, STeve Andre' wrote:

 On 11/14/11 23:38, James Hozier wrote:
 I see that ii (FIFO-based 'irc it' IRC client) is in the packages,
 but sic (ii's younger brother) is not. How can I suggest that
 sic be made as a package for OpenBSD?


 You just did.Whether someone who creates ports will do it
 is another question.  There is no formal mechanism to ask
 for a port.

 --STeve Andre'


And from what I've seen - your suggestion will carry more weight if you attach
a port (or at least make a good at it) and mail it to ports@.

But if you should ask on ports@ first - somebody *might* already be working on
a port.

HTH



Re: Burning DVDs

2011-11-13 Thread Richard Toohey
On 14/11/2011, at 6:13 PM, John Tate wrote:

 Device seems to be: Generic mmc2 DVD-R/DVD-RW.

 cdrecord: This version of cdrecord does not include DVD-R/DVD-RW support
code.
 cdrecord: If you need DVD-R/DVD-RW support, ask the Author for
cdrecord-ProDVD.
 cdrecord: Free test versions and free keys for personal use are at
 ftp://ftp.berlios.de/pub/cdrecord/ProDVD/

 Apparently this support code has been in cdrtools since 2009, the site
 it tells me to go to tells me I don't need it. It's like bureaucracy,
 lol.

 I could build their cdrtools, but the port must be ancient or something.

 Perhaps I could become a packager. Another port, gtk-gnutella, isn't
 even worth having if its not maintained.

 John Tate.


http://openports.se/sysutils/dvd+rw-tools

http://openports.se/search.php?so=dvd

 --
 www.johntate.org



userdel -p option - FAQ/man page issue?

2011-09-15 Thread Richard Toohey
Hi, guys.

I wanted to disable a user account under OpenBSD 4.9, and Google led me here:

http://www.openbsd.org/faq/faq10.html#AddDelUser

quoteRemoving users

To remove users with the user(8) hierarchy of commands, you will use
userdel(8). This is a very simple, yet usable command. To remove the user
created in the last example, simply:

# userdel -r testuser
Notice the -r option, which must be specified if you want the users home
directory to be deleted as well. Alternatively, you can specify -p and not -r
and this will lock the user's account, but not remove any
information./unquote

That last sentence - sounds exactly like what I need - so I try it:

# userdel -p testuser
usage: userdel -D [-p preserve-value]
  userdel [-prv] user

The man page suggests that it should work as well.

Looks like it has been raised before:

http://www.mail-archive.com/bugs@openbsd.org/msg01370.html

No patches because I'm not exactly sure what the right answer(s) are.

Am I just doing it wrong?

Thanks.



Re: ftpd server

2011-08-31 Thread Richard Toohey
On 31/08/2011, at 7:16 PM, matteo filippetto wrote:

 2011/8/31 fqui nonez fquinon...@gmail.com:
 Hello

 I have a ftpd server box, OBSD-4.9, and pflog shows:

 Aug 29 10:11:03.520900 rule 3/(match) pass in on rl0:
 190.87.195.241.2732  192.168.5.2.21: S 2008995709:2008995709(0) win
 65535 mss 1452,nop,nop,sackOK
 Aug 29 10:15:52.825409 rule 3/(match) pass in on rl0:
 190.87.195.241.3190  192.168.5.2.21: S 409025537:409025537(0) win
 65535 mss 1452,nop,nop,sackOK
 Aug 29 10:27:40.085461 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.2732: FP 2719210498:2719210554(56) ack 2008995823 win
 17424 (DF) [tos 0x10]
 Aug 29 10:28:44.085510 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.2732: FP 0:56(56) ack 1 win 17424 [tos 0x10]
 Aug 29 10:29:48.085560 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.2732: FP 0:56(56) ack 1 win 17424 (DF) [tos 0x10]
 Aug 29 10:30:52.085653 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.2732: FP 0:56(56) ack 1 win 17424 [tos 0x10]
 Aug 29 10:31:56.085655 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.2732: FP 0:56(56) ack 1 win 17424 (DF) [tos 0x10]
 Aug 29 10:32:29.475695 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.3190: FP 2719185758:2719185814(56) ack 409025651 win
 17424 [tos 0x10]
 Aug 29 10:33:00.085705 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.2732: FP 0:56(56) ack 1 win 17424 [tos 0x10]
 Aug 29 10:33:33.475738 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.3190: FP 0:56(56) ack 1 win 17424 (DF) [tos 0x10]
 Aug 29 10:34:04.085762 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.2732: FP 0:56(56) ack 1 win 17424 (DF) [tos 0x10]
 Aug 29 10:34:37.475788 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.3190: FP 0:56(56) ack 1 win 17424 [tos 0x10]
 Aug 29 10:35:08.085806 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.2732: R 57:57(0) ack 1 win 0 (DF) [tos 0x10]
 Aug 29 10:35:41.475843 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.3190: FP 0:56(56) ack 1 win 17424 (DF) [tos 0x10]
 Aug 29 10:36:45.475901 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.3190: FP 0:56(56) ack 1 win 17424 [tos 0x10]
 Aug 29 10:37:49.475947 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.3190: FP 0:56(56) ack 1 win 17424 (DF) [tos 0x10]
 Aug 29 10:38:53.476001 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.3190: FP 0:56(56) ack 1 win 17424 [tos 0x10]
 Aug 29 10:39:57.476044 rule 1/(match) block out on rl0: 192.168.5.2.21
 190.87.195.241.3190: R 57:57(0) ack 1 win 0 [tos 0x10]

 pf rules are:

 set skip on lo
 block in log all
 block out log all
 pass out log quick on rl0
 pass in log quick on rl0 proto tcp from any to port {20 21 22}
 antispoof quick log for rl0
 pass B  B  B  B  B  B # to establish keep-state

 Hi,

 please read how the ftp protocol works and which port should be enable
in/out
 from your server

 http://slacksite.com/other/ftp.html
 http://www.freesoft.org/CIE/Topics/69.htm


You may also find this useful:

http://home.nuug.no/~peter/pf/en/ftpproblem.html

 Regards

 --
 Matteo Filippetto
 http://www.op83.eu



Re: ntfs support on amd64?

2011-04-21 Thread Richard Toohey
On 21/04/2011, at 7:36 PM, Guillaume Duali wrote:

 On Thu, 21 Apr 2011 08:00:43 +0200, marc m...@4qm.org wrote:
 Hello everybody
 Hi,

 When I try to mount a ntfs partition,  mount /dev/sd1i /mnt/win I get:
 mount_ntfs: /dev/sd1i on /mnt/x: Operation not supported

 I formated it with Windows 7. It works on windows and ubuntu linux.

 Any ideas on this?
 Maybe you need to build a custom kernel ?

Yes, NTFS is not on by default in amd64 in 4.8.

$ dmesg
OpenBSD 4.8 (GENERIC) #0: Thu Nov 18 10:51:27 NZDT 2010
xxx...@x.yy.co.nz:/usr/src/sys/arch/amd64/compile/GENERIC

...

/usr/src/sys/arch/amd64/conf/GENERIC

#option NTFS# Experimental NTFS support

And this was discussed a month ago ...

http://marc.info/?l=openbsd-miscm=129951700232105w=2

 Look :
 Once you have determined which partition it is you want to use, you
 can move to the final step: mounting the filesystem contained in it.
 Most filesystems are supported in the GENERIC kernel: just have a look
 at the kernel configuration file, located in the
 /usr/src/sys/arch/arch/conf directory. If you want to use one of the
 filesystems not supported in GENERIC, you will need to build a custom
 kernel.


 I'm running openbsd 4.8. on amd64. ntfs is supposed to be there
 (http://openbsd.org/faq/faq14.html#foreignfs).

Some of that info is for 4.9 ...

HTH.


 # dmesg
 OpenBSD 4.8 (GENERIC) #182: Mon Aug 16 09:02:40 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
 RTC BIOS diagnostic error 80clock_battery
 real mem = 2946756608 (2810MB)
 avail mem = 2854522880 (2722MB)

 Thanks much,
 marc

 Guillaume.



Re: benchmarks

2011-04-17 Thread Richard Toohey
On 18/04/2011, at 1:07 PM, Rodrigo Mosconi wrote:

 Hi all,

 I'm interested on some benchmarks, specially with network/PF.


On the general performance:

http://www.openbsd.org/faq/pf/perf.html

 For example:

 What's the maximum bandwidth that a soekris (or alix) can handle safely as
a
 firewall? (with and without ipsec, how long the rule set are)

Why limit yourself to (low-end) machines?  Budget constraints?  Space
constraints?  Or it might to cool to play with these devices?  (I thought so
too, but in the end easier to whack in an old Dell Optiplex - as is often
recommended on this list.)


 Peter Hallin exposed a configuration that can handle near a 1Gbps on bridge
 mode.  Peter, how much traffic your new firewall handle?

 On the branded servers (Dell, HP, IBM, etc), how best traffic one firewall
 can handle?

Which goes fastest?  Ford or Holden?

What NICs are in those machines?


 These are some questions.

What does traffic mean?  Is your traffic the same as mine?

 Some of these information can help me to advocate OpenBSD based solution at
 work, starting with firewall.  Just as comment, some linuxes (argh) fw
can't
 handle as much as 100Mbps on Dells (R200 or R400).


pf is fast enough for me at my work.

It might not be fast enough for you at your work.

What are your requirements?

 Thanks for any comments,


Probably not what you were after, but that's the repeated advice I see around
here - only YOU can answer this question.

And don't forget to read this (and buy the book)

http://home.nuug.no/~peter/pf/en/

 Mosconi



Re: Installer Source

2011-02-10 Thread Richard Toohey
On 11/02/2011, at 1:30 PM, mailing list wrote:

 Can someone direct me to a copy of the OpenBSD installer, source code?
 Thanks


$ cd /usr/src/
$ grep -rs 'Choose your keyboard' *



Re: Question about filesystem

2011-02-05 Thread Richard Toohey
On 6/02/2011, at 9:31 AM, Jean-Francois wrote:

 Hi,

 Right. Could you please describe in few words whet softdeps is ?

http://www.openbsd.org/faq/faq14.html#SoftUpdates

Wouldn't you rather let Nick  the other OpenBSD developers *WORK* on OpenBSD?
I would.

Rather than answering questions that are in the docs?  Or can be found in
Google?

Or the code?  Or from your own experiments?

Thanks.


 Thanks.
 J-F

 Le Saturday 05 February 2011 20:11:17, Nick Holland a icrit :
 On 02/05/11 09:32, Jean-Francois wrote:
 Hello,

 I just read some extracts of a paper, study from Margo Seltzer  Keith A.
 Smith from Harvard university, a comparison of LFS  FFS.

 the paper from 1995??

 Dude.  That's a LONG time ago in the computer world.  It is also a very
 non-specific Log-structured file system, which may or may not have any
 real-world counterpart here 16 years later (yes, some modern file
 systems are logging FSs, but...are they descendants of this 1995 LFS?
 Or was this LFS a dead-end for real-world reasons that never show up in
 academic papers?  (I'm sure I could do some more research on this, but
 it's your question, not mine :)

 Basic questions from my side, is FFS-2 better than FFS in the sense of
 dealing with creation of many small files, and is fragmentation less
 than with FFS ?

 Please describe the fragmentation problem you have /observed/...  I do a
 lot to torment file systems, and never seen anything that looked like a
 PROBLEM caused by fragmentation on OpenBSD.  If you aren't seeing a real
 problem, how can you benefit from optimizing?

 Are other file systems with some improvement of performance compared to
 FFS available for OpenBSD ?

 Short answer: there are two file systems provided for day-to-day use on
 OpenBSD: FFS and FFS2.  FFS is the general purpose OS, FFS2 is for very
 large file systems which can't be handled by FFS.  Nice and simple.

 Other file systems that OpenBSD supports are for cross-system
 compatibility, not for better anything on OpenBSD, at least at this
 time (wouldn't mind seeing a working HAMMER port, of course).

 And...as FFS2 is used for larger file systems, I think it is safe to say
 that putting lots of small files on huge file systems is much worse than
 putting lots of small files on a few (or a lot) of small file systems.

 However, if you are looking at writing lots of small files, make sure
 you you are using softdeps, you will get a very large performance gain
 (I'm not talking 10% -- more like 10x!).  You may find you get much
 better real performance than many logging systems give.

 Nick.



Re: OpenBSD 4.8 crash unexpectedly (panic: trap type 6, code=0, pc=d056c5dd)

2010-11-30 Thread Richard Toohey
On 30/11/2010, at 5:39 PM, Bahador NazariFard wrote:

 Hi , all dear friends
 My OpenBSD crashed and rebooted agian after panic: trap type 6, code=0,
 pc=d056c5dd.
 I am trying to find where is the origination of this problem but I could
not
 find anything.

Can't help with core files, but would suggest you reduce the problem to the
smallest set of things that trigger it.

Try different machine, different RAM, different NICs.  If you've got a similar
machine, move the HD into that machine and see if you get the same behaviour.

Try starting with base install, and slowly moving up to the level you need -
perhaps on the way up you will find the trigger.

AND/OR ...

[You might already be achieving this with symon, etc.]

Write a script that logs to a file (might need to flush after the write) every
5 minutes or whatever; maybe write the output of ps (or whatever interests
you) to the file.

See what time(s) the crash happens and drill-in on that time with more
diagnostics.  If the crash is always happening at 8.05 p.m., you can start to
investigate more what happens at that time of day.

HTH.

 I used from gdb and I run file /var/crash/bsd.0  and  target kvm
 /var/crash/bsd.0.core commands.
 then I run where but gdb told No stack.
 In addition I tried to help of dmsg and iostat but it seems there is no
 information that help me.
 output both of them were empty.
 Here is the ouput of some commands that may help us
 # ls -lh /var/crash/
 total 6816168
 -rw---  1 root  wheel 2B Nov 30 01:47 bounds
 -rw---  1 root  wheel   8.5M Nov 30 01:53 bsd.0
 -rw---  1 root  wheel   3.2G Nov 30 01:53 bsd.0.core
 -rw-r--r--  1 root  wheel 5B Aug 16 19:16 minfree
 ## grep savecore /var/log/messages
 Nov 27 18:35:40 BSD savecore: no core dump
 Nov 30 01:47:00 BSD savecore: reboot after panic: trap type 6, code=0,
 pc=d056c5dd
 Nov 30 01:47:00 BSD savecore: /var/crash/bounds: No such file or directory
 Nov 30 01:47:00 BSD savecore: writing core to /var/crash/bsd.0.core
 Nov 30 01:53:04 BSD savecore: writing kernel to /var/crash/bsd.0
 # sysctl hw.physmem
 hw.physmem=3479662592
 # swapctl -l -k
 Device  1K-blocks UsedAvail Capacity  Priority
 swap_device   41929680  4192968 0%0
 # sysctl vm.swapencrypt.enable
 vm.swapencrypt.enable=0


 Also I am using of symon and rrdgraph that show usage of cpu , memory and
 hard disk is very normal before crash.




 can you help me why my core file seems empty?
 How can get useful information from core file and find problem?







 --
 Gula_Gula =;=; BNF



Re: problem patching with 004: RELIABILITY FIX: November 17, 2010

2010-11-19 Thread Richard Toohey
On 19/11/2010, at 9:01 PM, FUGU wrote:

 I experience the following when I try to patch with 004 patch on openbsd
4.8

 === mount_portal
 make: don't know how to make /usr/src/sys/sys/simplelock.h. Stop in
 /usr/src/sbin/mount_portal.
 *** Error code 2

 Stop in /usr/src/sbin (line 48 of /usr/share/mk/bsd.subdir.mk).

 Has anyone encountered this?
 I have encountered this on macppc system and on amd64.
 Both systems are 4.8 with the 3 previous errata patches applied.


 Both systems are updated from 4.7(perhaps this is to blame)
 I will try this on a clean install of 4.8 when I get home from work.


Yes, I get the same error on amd64 upgraded from 4.7 to 4.8.

This thread is for you:

http://marc.info/?l=openbsd-miscm=127574687031774w=2

And read this ...

http://www.openbsd.org/faq/faq10.html#Patches

... and this ...

http://www.openbsd.org/faq/faq5.html#BldUserland

HTH.



Installer adding user - doesn't allow periods in user name

2010-11-04 Thread Richard Toohey
Hi, guys.

This thread[1] (sync adduser with installer) reminded me of a question that I
had:

If I use adduser, I can create a user firstname.lastname; if I try that via
the installer,
it doesn't like it - firstname.lastname is not a useable loginname.

If I look in (4.7) /usr/src/distrib/miniroot/install.sub ...

user_setup() {
local _q=Setup a user? (enter a lower-case loginname, or 'no')
[--cut--]
[a-z]*([a-z0-9_]))
(( ${#resp} = 31 ))  break ;;
esac
echo $resp is not a useable loginname.
done

So it's looking for a-z 0-9 and underscore (IF I am reading the code
correctly)
- but doesn't allow period?

man adduser says:

RESTRICTIONS
 username
 It is recommended that login names contain only lowercase
charac-
 ters and digits.  They may also contain uppercase characters,
 non-leading hyphens, periods, underscores, and a trailing `$'.
 Login names may not be longer than 31 characters.  If you need a
 longer login name for e-mail addresses, you can define an alias
 in /etc/mail/aliases.

Entirely as a learning exercise - is there a technical reason, or something
that is inadvisable about using the period in the user name?

Thanks.

[1] http://marc.info/?l=openbsd-techm=128834251907064w=2



Minor nits in 4.7/001_kerberos.patch

2010-09-16 Thread Richard Toohey
Hi all.

Patching a 4.7 box from the errata patch and noticed this:

+
+if (len  checksum_sz + et-confoundersize) {
+   krb5_set_error_string(context, Encrypted data shorter then 
+ checksum + confunder);
+   return KRB5_BAD_MSIZE;
+}
+

That then should be than shouldn't it?

Encrypted data shorter THAN x?

And as I read this email again - it should be confounder not confunder in the
message string?

The member name is confounder not confunder?

(Looks like both need to be fixed in three places.)

Looks like still in 4.8 and beyond (if I am looking in the right place.)

http://www.openbsd.org/cgi-bin/cvsweb/src/kerberosV/src/lib/krb5/crypto.c?rev
=1.10.12.1;content-type=text%2Fplain

And wrong in the comments ...

/*
 * In the framework of kerberos, the length can never be shorter
 * then at least one blocksize.
 */

Then should be than.

And the nits are in the code:

if (len  checksum_sz + et-confoundersize) {
krb5_set_error_string(context, Encrypted data shorter then 
  checksum + confunder);
return KRB5_BAD_MSIZE;
}

Thanks.



Re: Minor nits in 4.7/001_kerberos.patch

2010-09-16 Thread Richard Toohey
D'oh ... didn't even cross my mind!

Now watch me mangle a diff ...

On 16/09/2010, at 8:44 PM, Bret S. Lambert wrote:

 All that, and you don't provide your own diff fixing these?

 On Thu, Sep 16, 2010 at 08:41:18PM +1200, Richard Toohey wrote:
 Hi all.

 Patching a 4.7 box from the errata patch and noticed this:

 +
 +if (len  checksum_sz + et-confoundersize) {
 +   krb5_set_error_string(context, Encrypted data shorter then 
 + checksum + confunder);
 +   return KRB5_BAD_MSIZE;
 +}
 +

 That then should be than shouldn't it?

 Encrypted data shorter THAN x?

 And as I read this email again - it should be confounder not confunder in
the
 message string?

 The member name is confounder not confunder?

 (Looks like both need to be fixed in three places.)

 Looks like still in 4.8 and beyond (if I am looking in the right place.)


http://www.openbsd.org/cgi-bin/cvsweb/src/kerberosV/src/lib/krb5/crypto.c?rev
 =1.10.12.1;content-type=text%2Fplain

 And wrong in the comments ...

/*
 * In the framework of kerberos, the length can never be shorter
 * then at least one blocksize.
 */

 Then should be than.

 And the nits are in the code:

if (len  checksum_sz + et-confoundersize) {
  krb5_set_error_string(context, Encrypted data shorter then 
checksum + confunder);
  return KRB5_BAD_MSIZE;
}

 Thanks.



Re: MTA choice

2010-08-13 Thread Richard Toohey
On 13/08/2010, at 7:41 PM, open...@e-solutions.re wrote:

 I only want to know what is better (easiest way, most secure) to use.
 And have your advice.

Easiest doesn't necessarily fit with most secure ... or everyone would
be using Windows and Macs?

You have to understand what you are setting up, and sometimes
that understanding doesn't come easy and security isn't a check box.

What is easy for you - is it the same as what is easy for me?
I started from scratch with the O'Reilly sendmail book ...

It's your network, your requirements, your time.  Webmail?  TLS?
POP?  IMAP?  Volume of email?

Why do you think there are so many choices in open source - what
one person found easy/useful/secure didn't work for someone else.

sendmail, popa3d, and openwebmail have worked for /me/ for a very
low volume mail server.  I didn't find it that easy (but I learnt a lot
on the way, it wasn't time wasted.)  I don't know how secure it is.

But as Christer has said, if it's in the OpenBSD base, that should
mean something.

As always - YMMV!

(And did you see http://www.openbsd.org/faq/faq1.html#HowAbout)
 
 On Fri, 13 Aug 2010 09:04:01 +0200, Christer Solskogen
 christer.solsko...@gmail.com wrote:
 On Fri, Aug 13, 2010 at 8:55 AM,  open...@e-solutions.re wrote:
 Hi,
 
 I want to install a mailserver.
 What is the easiest and the most secure solution ?
 OpenBSD comes with Sendmail. I seen a lot of people use Postfix instead
 Sendmail.
 Is there someone to advice me about the choice of the MTA ?
 
 
 Why do you think OpenBSD ships with (a custom and secure) sendmail by
 default?
 Do you think it is because that is the easiest and most secure option
 or do you think by installing postfix you'll be all secure and stuff?



Re: becoming a openbsd developer , any guides ?

2010-08-05 Thread Richard Toohey
On 4/08/2010, at 6:32 PM, Philip Guenther wrote:

 On Tue, Aug 3, 2010 at 10:50 PM, Aaron Lewis aaron.lewis1...@gmail.com
 wrote:
   I've been googled a lot , nothing interesting about this topic , can
 anyone get me some ideas ?
undeadly and bsdtalk (http://bsdtalk.blogspot.com/) are great resources.

e.g. things like this one

http://www.undeadly.org/cgi?action=articlesid=20060317174014

HTH.
 
 Find something that bugs you.  Submit a fix.  Lather, rinse, repeat.
 
 Always remember that you're doing these fixes because *you* care about
 them.  It isn't about making yourself a better programmer, but about
 making the code better.
 
 
 Philip Guenther



Re: Running systat queues Leads to System Hang

2010-07-08 Thread Richard Toohey
On 8/07/2010, at 2:45 PM, Daniel Melameth wrote:

 On Fri, Jun 18, 2010 at 11:08 PM, Daniel Melameth dan...@melameth.com
 wrote:
 On my firewall at home, on occasion, running systat queues leaves me with
 an
 unresponsive system.  pings are not returned and the keyboard at the
 console
 is unresponsive.  Sometimes the command works fine and sometimes it does
 not--though it does seem the issue is more likely to occur when the system
 has an uptime of more than a week or two.  I'm uncertain how to
 troubleshoot
 this further and I have been unable to reproduce the issue on other
 4.7-stable systems (though these other systems are not running the same
 hardware and software).
 
 I upgraded the system several days ago to a snapshot from just before
 the hackathon, and the system appeared more stable, but I can now also
 instantly kill the box by running netstat -m after about five days of
 uptime.
 
 Ideas appreciated...
 
Hardware?

Tried different NICs?  RAM?  Put the HD in another machine?

No-one else seems to be seeing this (or reporting it) and you can't
reproduce on other machines, so worth eliminating hardware.

Anything unusual or different about this machine or what you run on it?



Re: Installer bug? - Upgrade 4.6 to 4.7 failed to upgrade base47, on i386 and amd64

2010-06-07 Thread Richard Toohey
On 6/06/2010, at 1:27 PM, Uwe Dippel wrote:

 Philip Guenther guenther at gmail.com writes:

 You now have and now it
 seems the core discussion is just about whether (or where) an
 additional rm -rf /usr/obj/* should be added to help people that
 know enough to set up the source tree for building/patching by
 untaring src.tar.gz but don't know to remove the obj tree at the same
 time.

 So, no diff here, but a suggestion:

 If one needs to avoid stale stuff lying around in /usr/obj at applying a
patch,
 the only logical consequence is, to clean out all /obj totally, even before
 applying a single patch.
 If I am correct, the instructions should be clear for 00N_ThisApp.patch:

 Apply by doing:
 cd /usr/src
 patch -p0  00N_ThisApp.patch

 Clean the build directories by issuing the command /usr/sbin/mk_build_clean

 And then rebuild and install the library and statically-linked binaries
 that depend upon it:

 cd lib/libThisApp
 make obj
 make depend
 make includes
 make
 make install
 cd ../../sbin
 make obj
 make depend
 make
 make install


 , where mk_build_clean is just the set of steps pointed out in 'man
release',
 respectively in FAQ5.
 To me, and I guess Richard Toohey, the case is solved.

 Everyone who can read, and likes following instructions, can read and
follow
 this easily.

No, the point that people are making (over and above HOW you report an
issue) is that blindly following the patch instructions is *not* good enough.

It doesn't matter how much more gets put in the docs or the patch files,
we didn't *think* enough about what we were doing - that's my mistake
and I intend to learn from it.

If we just end up blindly doing stuff and clicking on buttons to see what
happens, we should probably be using another operating system.

This *is* in the docs - if you read a little bit further than we did, and do a
bit
more thinking.

Maybe another line in the patch file would help ... but then what about the
next
issue that comes up?  The patch file doesn't tell you how to put the source
there,
so if you do *literally* follow cd /usr/src and then the patch line, you
won't even
have the right source, will you?  You had to read elsewhere to know how to
get
the source in the first place.

Or next someone will argue that Then build and install a new kernel is too
brief and there should be full instructions in every patch file.

If we go off and read the FAQ about building the kernel because the full
instructions
were not in the patch file, why didn't we go and read the FAQ about building
userland?

That's my take on it and I think the list members are rather bored of this
thread!

 Uwe



Re: Installer bug? - Upgrade 4.6 to 4.7 failed to upgrade base47, on i386 and amd64

2010-06-05 Thread Richard Toohey
On 5/06/2010, at 5:51 PM, Theo de Raadt wrote:

 On Fri, Jun 4, 2010 at 7:49 PM, Jacob Meuser jake...@sdf.lonestar.org
 wrote:
 I'm still curious how anything left in /usr/obj can be anything
 but a possible problem after updating system binaries and sources
 to a new release.  especially for people who are just following
 the directions as they are written.

 Do you not agree barring broken makefiles and unreliable system clock
 (as someone pointed out), object files and binaries (in obj/) should
 have been rebuilt?

 It's a source tree with nearly 40,000 .[chyl] source code files, and
 probably another 40,000 further source code dependencies if you
 include manual pages and the perl parts.

 We try very hard, and the bsd.*.mk macro package helps a lot
 (enforcing consistancy-because-of-simplicity), but if you think we can
 get all the dependencies right every single time, it is a tough call.
 But this case is worse -- when the trash in the obj tree totally
 mis-matches the src tree since it is so far in the past... that is
 totally impossible.

 Dependencies don't help when they don't know about the files.  Even
 make clean or cleandir won't help you then.

 This was not an installer bug.  It had nothing to do with upgrades.
 We've said it before, and I guess we get to say it again:

  If don't know what you are doing, install a new snapshot.

 How many more times do we have to say that?

 Why are people defending a person who thinks they are smart enough,
 and has just proved that they're not?

 Miod, Dale, Kurt, Kettenis and I am quite often the first people to
 deal with bumping systems forward over bumps.  Some bumps are so
 difficult that after they are done the rest of us jump over them using
 snapshots.  When they happen, WE -- THE DEVELOPERS -- USE THE
 SNAPSHOTS!  They happen in lots of releases.  Why would we use
 snapshots, because we are stupid?  Or are we smart enough to not waste
 our time doing things the hard way?

 Uwe thinks he's being really clever, but he's not clever at all.  He's
 got a record of choosing the hardest paths.  That's his problem.  I
 just wish he wouldn't be such a loud whiner when he screws his system
 up.

But I don't understand what he's doing differently to me.  A new release is
out, you want to upgrade from the previous release to the new one, and
then you want to apply the errata patches.

Not saying I'm doing it perfectly, but I'd like to understand where he's
going wrong because I do something similar - and wrong, from the sound of it.

I don't want to follow current, I just follow the release  apply errata
patches.
(But it looks like Uwe, I am NOT doing it 100% right.)

So I was on 4.5, 4.6 came out.  I got the 4.6 CD, followed the upgrade
process.
I replaced /usr/src with the 4.6 code off the CD, downloaded the errata
patches, built.

4.7 comes out, I upgrade from CD, copied the 4.7 source over, downloaded
errata, built.

Seems to work most of the time apart from a patch requiring a userland build
(like
openssl) so this is where I am obviously going wrong.

A snapshot is a point-in-time, may-have-issues, best way to follow current
build,
isn't it?  But I'd rather follow release.

I appreciate you've got better things to do than hand-holding, so I'll work
my
way through it, but any cluesticks appreciated.

Thanks.



Re: Installer bug? - Upgrade 4.6 to 4.7 failed to upgrade base47, on i386 and amd64

2010-06-05 Thread Richard Toohey
On 5/06/2010, at 7:45 PM, Jan Stary wrote:

 On Jun 04 16:22:35, Uwe Dippel wrote:
 Jacob Meuser jakemsr at sdf.lonestar.org writes:

 oh good grief.  you had a dirty /usr/obj.

 just look at the pfctl snippet of the log you posted.  do you see pfctl
 being built?  do you see pfctl being installed from /usr/obj?

 Oh, yes. So the blame is on my side, I guess. Mea culpa maxima!
 I didn't know that the object directories need to be cleaned manually.
Until
 yesterday, I would have taken a bet that the object directories lie within
the
 source trees (/usr/xenocaram /usr/src), and be cleaned when cleaning the
 sources. Now I am aware that I need to know the location of the object
 directories and clean them manually.

 More importantly, you have now read all of
 http://www.openbsd.org/faq/faq5.html
 Right?

 Still, may I suggest, that the next Upgrade Guide gets an extra line, with
a
 remark pointing out the existence of /usr/obj; and the suggestion to clean
it?

 So you still _haven't_ read
 http://www.openbsd.org/faq/faq5.html#BldUserland ?
 Cleaning /usr/obj is the very first line.

I wanted to understand where I was going wrong in my patching
because it sounded similar to what Uwe is doing.

In my case I was *just* following the errata patch instructions, and that's
*not* enough, depending on the patch.  So, RTFM, FAQs 10.15 and 5.3.5
in my case.

Thanks ... I've learned something.

 Why would anyone waste any more time on you?

 Thanks for the various people who helped me patiently at
 analysing this problem to the very end!

 You didn't read the documentation, screwed up, and wasted
 everyone's time with nonsensical speculationas. End of analysis.
 You are welcome.



Re: Installer bug? - Upgrade 4.6 to 4.7 failed to upgrade base47, on i386 and amd64

2010-06-05 Thread Richard Toohey
On 5/06/2010, at 8:14 PM, Marc Espie wrote:

 On Sat, Jun 05, 2010 at 06:48:18PM +1200, Richard Toohey wrote:
 But I don't understand what he's doing differently to me.  A new release
is
 out, you want to upgrade from the previous release to the new one, and
 then you want to apply the errata patches.

 Look, there are several flaws to the way make works.

 Those flaws are *totally integral* to the way make works.

 In most cases, you get lucky, sometimes you don't.

 Basically, the flaw is that make needs a list of dependencies to work.
 It can either be hardcoded in makefiles, or regenerated through .depend.

 For anything but the most trivial projects, it is regenerated dynamically
 through make depend.   But if that information changes too much
 (especially when files get removed), then it fails.

 It fails HARD.

 As in, you get a make error because it can no longer find a dependency it
 used to find.

 If you're even less lucky, it fails silently. As in, it forgets to register
 a dependency/recompile a file even though things have changed.

 Make doesn't know about every dependency. Especially tweaks to compile
flags,
 changes in defines, too deep changes don't get noticed.

 Oh yeah, you *could* add more meta-junk that says that whenever you change
 THAT file, then you have to recompile this and this. More often than not,
 GNU-hell projects (as known as autoshit, as known as
automake/autoconf/libtool)
 err in the other direction. So you make a wee little tweak to a file in
there,
 and suddenly, it recompiles the WHOLE WORLD.  And assumes you have every
 crappy development tool the FSF ever shat on the world. Very offensive if
 you ask me (that's the whole point of the REORDER_DEPENDENCIES in ports
land,
 btw.  This allows up to sneak out of that problem every time we do a small
 patch to a Makefile.in in GNUlalaland).


 It's all about process. You got a process you can follow to rebuild
OpenBSD.
 Follow it to the letter. If you take shortcuts, you will get bitten
 eventually.

 If you're smart enough, you will recover. But it is complicated.


 Hint: if the guy who's actually in charge of the OS, and the guy who's
 actually maintaining make are BOTH telling you it's complicated, then it
 probably is.  Do you think you're smarter than Theo and I combined ?
 Go ahead, prove us wrong...

No way!!!  I certainly wasn't saying it wasn't complicated, or that I had a
better way, it was more that I thought I *was* following the right process.

I appreciate OpenBSD and all the work you guys do.  Especially taking
the time to explain - the cluesticks have been applied (just leave off with
the thumbscrews, please.)

I got into a pattern of clear src, get new src from CD, apply patch, follow
*literal* patch instructions (without thinking/reading about the patch
*context*,
or how I might actually need to do a little more work.)

Apart from RTFMing, we learn from mistakes, and this has been one
of mine.

Thanks.



Re: Installer bug? - Upgrade 4.6 to 4.7 failed to upgrade base47, on i386 and amd64

2010-06-04 Thread Richard Toohey
On 4/06/2010, at 6:41 PM, patrick keshishian wrote:

 On Thu, Jun 3, 2010 at 11:18 PM, Uwe Dippel udip...@gmail.com wrote:
 On Thu, Jun 3, 2010 at 7:18 PM, Richard Toohey
 richardtoo...@paradise.net.nz wrote:

 OK, I've tried it and cannot reproduce what you see.  I've never done
 an upgrade from bsd.rd before, so wanted to give it a go.

 Obviously something different with your set-up, or where you got the
files
 from, or factor X - but as other people have said, they can't guess what.

 In short - the basic bsd.rd follow these instructions worked for me
 here.

 OK, I start with 4.6 amd64 (either 4.6 or just pre-4.6 release)

 uname -a
 OpenBSD dellamd64.home 4.6 GENERIC#0 amd64

 But before I upgrade, what's /sbin/pfctl?

 $ ls -l /sbin/pfctl
 -r-xr-xr-x  1 root  bin  492664 Dec  3 23:12 /sbin/pfctl
 $ md5 /sbin/pfctl
 MD5 (/sbin/pfctl) = 3e1fa4f69809adff432f9da62010a6a7

 http://openbsd.org/faq/upgrade47.html

 One easy way to boot from the install kernel is to place the 4.7 version
 of
 bsd.rd in the root of your boot drive, then instruct the
 boot loader to boot using this new bsd.rd file. On amd64 and i386, you do
 this by entering boot bsd.rd at the initial boot prompt.

 OK, I'll get the bsd.rd from the 4.7 release CD (but could have used
FTP.)

 /usr/bin/su root
 mv /bsd.rd /bsd46.rd
 mount /dev/cd0a /mnt/
 cp /mnt/4.7/amd64/bsd.rd /bsd.rd
 umount /mnt
 eject /dev/cd0a
 reboot
 ... boot  boot bsd.rd
 ... Welcome to the OpenBSD/amd64 4.7 installation program.
 ... I choose upgrade ... take defaults all the way until ...
 Location of sets?  [What do I do here?  I'll try http, and take the
 defaults.  What did YOU do here?]
 bsd, bsd.rd, base47.tgz, misc47.tgz, comp47.tgz, man47.tgz, game47.tgz,
 xbase47.tgz
 xshare47.tgz, xfont47.tgz, xserv47.tgz ... all get to 100% no errors.
 ... rest of install, reboot ...
 $ uname -a
 OpenBSD dellamd64.home 4.7 GENERIC#112 amd64
 $ ls -l /sbin/pfctl
 -r-xr-xr-x  1 root  bin  500856 Mar 18 15:36 /sbin/pfctl
 $ md5 /sbin/pfctl
 MD5 (/sbin/pfctl) = 7720c9a4dc100fe29d2d3c4a16954eb4

 Thanks, Richard.

 No, you couldn't encounter it.
 It comes in later.
 I have now the whole upgrade session of my third machine, the log is  2
 MB.
 Whenever I rebooted, it was okay:
 1. reboot to start bsd.rd - okay
 2. reboot directly after bsd.rd upgrade - okay
 3. reboot after 'Final steps', before pkg_add - okay
 4. reboot after 'Upgrading packages' - okay
 5. reboot after patching - old files and wrong timestamps - bummer, as
 Theo might say.

 you mean applying the errata47.html patches? If so, are you certain
 your source tree is tagged OPENBSD_4_7 and not anything else?

 --patrick
I think we are getting closer, aren't we?

So, NOTHING to do with the actual upgrade, is it?  Or the ports/packages.

It is something to do with how you are PATCHING after an upgrade.

You don't mention where/when you get the source you patch?

Because that would be a separate step, wouldn't it?

(I usually install from CD, so I scrub /usr/src  load from src.tar.gz on the
CD.)




 I wonder if I can put the file up into the open, or if it contains
 security-related matter.??
 As bz2 it is just 91 k; I will of course make it available to
 individuals on request.

 Uwe



Re: Installer bug? - Upgrade 4.6 to 4.7 failed to upgrade base47, on i386 and amd64

2010-06-04 Thread Richard Toohey
On 4/06/2010, at 8:33 PM, Uwe Dippel wrote:

 On Fri, Jun 4, 2010 at 4:22 PM, Eric Faurot e...@faurot.net wrote:

 Don't you have old stuff lying around in /usr/obj that gets installed
 over your new binaries?

 That's probably the critical question now. Though, sorry to say, there
 is nowhere written that you have to rm -Rf it, when you
 - upgrade
 - patch
 Actually, I wasn't even aware of the existence of this directory until
 several minutes ago. (I expected it to be cleaned with wiping the
 source directories.)
[cut]
 I do, like many others, 'Upgrade Guide X.Y to
 X.Z', and then get and apply the errata from
 http://openbsd.org/errataXZ.html; according to their instructions.

 If this happens to be wrong, by all means, then I make a mistake, and
 have been making this mistake for 5 years. So, rm -Rf * in /usr/obj is
 necessary?

 Uwe

I've been doing upgrades from *around* the 4.2 release, but always
from the release CDs.  And then I've patched as per the errata instructions.

And I've not (so far as I can recall) can to clear /usr/obj before applying
patches.

And as I type that I remembered!  Hang on, there *was* once a patch that
didn't apply
cleanly ... think it was this one (but then I must have started with 3.9) -
definitely an SSL
one that wouldn't build without clearing /usr/obj first:

http://marc.info/?l=openbsd-miscm=116335647308807w=2

So something for the upgrade docs or the patch file(s)?

Maybe patch 3 for 4.7 might be responsible this time around?  If you try the
make clean
step when applying patch 3 (something like in the link above - it might fix
your problems.)

Anyway, absolutely nothing to do with the installer or the 4.6 to 4.7 upgrade,
so enough from me.

Thanks.



Re: Installer bug? - Upgrade 4.6 to 4.7 failed to upgrade base47, on i386 and amd64

2010-06-04 Thread Richard Toohey
On 5/06/2010, at 7:31 AM, Nick Holland wrote:

 Jacob Meuser wrote:
 On Fri, Jun 04, 2010 at 04:22:35PM +, Uwe Dippel wrote:
 Still, may I suggest, that the next Upgrade Guide gets an extra line, with
a
 remark pointing out the existence of /usr/obj; and the suggestion to clean
it?
 you can't supply a patch?  can't even attempt one?  all these posts and
 time wasted and you can't try to make a patch to maybe save someone else
 from the same fate?

 a patch to the upgrade guide would be wrong.

 The problem is the patching process (a special case of the userland build
process) assumes a clean obj dir.  This has nothing to do with upgrades.  If
you try to rebuild the same userland utility more than once for /any/ reason
without clearing the obj dir, you can run into problems.  Clearing the obj
directory as part of the upgrade is like flushing your toilet based on the
date -- may help, but after a while, things start to stink.  It isn't the
general (or proper) solution.

 faq10.html, section 10.15 would be more appropriate, I think.  It will
probably require more than a couple line diff to work it in clearly.

 Nick.


So something in or around here ...

Not all patches are for the kernel. In some cases, you will have to rebuild
individual utilities. At other times, will require recompiling all utilities
statically linked to a patched library. Follow the guidance in the header of
the patch, and if uncertain, rebuild the entire system.

Along the lines of:

In some cases (you'll know you have do this because x) you need to clean
/usr/obj first, you do this by y.

Let me learn what x and y are.

Thanks.



Re: Installer bug? - Upgrade 4.6 to 4.7 failed to upgrade base47, on i386 and amd64

2010-06-03 Thread Richard Toohey
On 3/06/2010, at 8:42 PM, Uwe Dippel wrote:

[cut]
 No, that seriously turns me off. I have given everything in detail
 that I came across, I have not been silent about any additional
 message, any unusual activity. I have stated a few times that I
 followed the upgrade procedure to the dot, I have confirmed that
 nothing unusual showed.
[cut]

quoteeverything in detail ... I have not been silent/unquote

I think that is the point that people are trying to make - you've sent
so much to the list that it is hard to keep up.  The people who can
help may not want to wade through 20 emails to keep up with you.

Take a deep breath.  Take a 4.6 CD install on a spare clean machine and
upgrade via the CD.   Problem there?  Yes/no.

Start again with the 4.6 CD a CLEAN install, upgrade via your normal process
to 4.7.  Is the issue there?  Yes/no.

And then follow the other suggestions from minds wiser than mine.

So far as you are aware, if you upgrade amd64 from a 4.6 CD to a 4.7 via
your normal upgrade process, there are issues - correct?  If so, I've got
a spare amd64 box to try on, but to be honest I'm a bit intimated by the
volume of mail you've sent - I'm losing the thread.

HTH.

Thanks.



Re: Installer bug? - Upgrade 4.6 to 4.7 failed to upgrade base47, on i386 and amd64

2010-06-03 Thread Richard Toohey
On 3/06/2010, at 9:02 PM, Richard Toohey wrote:

 On 3/06/2010, at 8:42 PM, Uwe Dippel wrote:

 [cut]
 No, that seriously turns me off. I have given everything in detail
 that I came across, I have not been silent about any additional
 message, any unusual activity. I have stated a few times that I
 followed the upgrade procedure to the dot, I have confirmed that
 nothing unusual showed.
 [cut]

 quoteeverything in detail ... I have not been silent/unquote

 I think that is the point that people are trying to make - you've sent
 so much to the list that it is hard to keep up.  The people who can
 help may not want to wade through 20 emails to keep up with you.

 Take a deep breath.  Take a 4.6 CD install on a spare clean machine and
 upgrade via the CD.   Problem there?  Yes/no.

 Start again with the 4.6 CD a CLEAN install, upgrade via your normal
process
 to 4.7.  Is the issue there?  Yes/no.

 And then follow the other suggestions from minds wiser than mine.

 So far as you are aware, if you upgrade amd64 from a 4.6 CD to a 4.7 via
 your normal upgrade process, there are issues - correct?  If so, I've got
 a spare amd64 box to try on, but to be honest I'm a bit intimated by the
 volume of mail you've sent - I'm losing the thread.

OK, I've tried it and cannot reproduce what you see.  I've never done
an upgrade from bsd.rd before, so wanted to give it a go.

Obviously something different with your set-up, or where you got the files
from, or factor X - but as other people have said, they can't guess what.

In short - the basic bsd.rd follow these instructions worked for me here.

OK, I start with 4.6 amd64 (either 4.6 or just pre-4.6 release)

uname -a
OpenBSD dellamd64.home 4.6 GENERIC#0 amd64

But before I upgrade, what's /sbin/pfctl?

$ ls -l /sbin/pfctl
-r-xr-xr-x  1 root  bin  492664 Dec  3 23:12 /sbin/pfctl
$ md5 /sbin/pfctl
MD5 (/sbin/pfctl) = 3e1fa4f69809adff432f9da62010a6a7

http://openbsd.org/faq/upgrade47.html

One easy way to boot from the install kernel is to place the 4.7 version of
bsd.rd in the root of your boot drive, then instruct the
 boot loader to boot using this new bsd.rd file. On amd64 and i386, you do
this by entering boot bsd.rd at the initial boot prompt.

OK, I'll get the bsd.rd from the 4.7 release CD (but could have used FTP.)

/usr/bin/su root
mv /bsd.rd /bsd46.rd
mount /dev/cd0a /mnt/
cp /mnt/4.7/amd64/bsd.rd /bsd.rd
umount /mnt
eject /dev/cd0a
reboot
... boot  boot bsd.rd
... Welcome to the OpenBSD/amd64 4.7 installation program.
... I choose upgrade ... take defaults all the way until ...
Location of sets?  [What do I do here?  I'll try http, and take the defaults.
What did YOU do here?]
bsd, bsd.rd, base47.tgz, misc47.tgz, comp47.tgz, man47.tgz, game47.tgz,
xbase47.tgz
xshare47.tgz, xfont47.tgz, xserv47.tgz ... all get to 100% no errors.
... rest of install, reboot ...
$ uname -a
OpenBSD dellamd64.home 4.7 GENERIC#112 amd64
$ ls -l /sbin/pfctl
-r-xr-xr-x  1 root  bin  500856 Mar 18 15:36 /sbin/pfctl
$ md5 /sbin/pfctl
MD5 (/sbin/pfctl) = 7720c9a4dc100fe29d2d3c4a16954eb4

 HTH.

 Thanks.



Re: pkg_add problems after 4.7 upgrade

2010-05-30 Thread Richard Toohey
On 30/05/2010, at 4:50 PM, Casey Allen Shobe wrote:

 On 30 May, 2010, at 12:15 AM, Denny White wrote:
 Not really sure what happened with
 ftp://obsd.cec.mtu.edu/pub/OpenBSD/4.7/packages/i386/
 since it worked fine for me including 'ls'.

 As for the 2nd one you tried which didn't work:
 ftp://openbsd.org/pub/OpenBSD/4.7/packages/i386/

 Try this:
 ftp://ftp.openbsd.org/pub/OpenBSD/4.7/packages/i386/

 Well, I've found that using an HTTP mirror works.  However, this is
concerning because all of these machines were able to use FTP properly before,
some Debian machines on the same network can use FTP mirrors correctly (plus
`ftp` to the same OpenBSD mirrors works from Debian), and the links browser on
the OpenBSD machines seems to do FTP correctly too.

 One way or the other, the 'ftp' utility seems to have gotten broken since
4.6.  I'd hazard to guess that it might not be supporting passive FTP anymore,
since active FTP does not work from the network and this is reminiscent of
what would happen if I tried using active FTP from behind a firewall in the
past...

 I've worked around the immediate problem with HTTP for now...but is there
any more useful information that I can provide from my end?

(Re-sending, don't think I cc'd list first time)

Just from my experiences ...

Two 4.6 boxes (one behind ISA, one behind a 4.3 OpenBSD box - yes urgent
upgrade planned soon!)

Both upgraded from 4.7 CD, both had packages upgraded with:

export PKG_PATH=ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.7/packages/i386
pkg_add -ui -D update -D updatedepends

(I tried the Australian mirrors but no 4.7 packages found on there when I
tried - or I did something wrong.)

Then fetched the first 5 patches by using FTP client to pull the files from
the links on the errata page.

No issues here.
 Cheers,
 --
 Casey Allen Shobe
 ca...@shobe.info



Re: maia in openbsd 4.6

2010-04-22 Thread Richard Toohey
On 22/04/2010, at 5:02 PM, sonjaya wrote:

 hi all ...

 i have problem installed maia in openbsd 4.6 , problem module perl file(1).

 Application/Module  Version   Status
 
 Perl :   5.10.0 : OK
 file(1)  :  N/A : NOT INSTALLED (required by Maia
Mailguard)
 Archive::Tar : 1.58 : OK

 # file  -v
 file-4.24
 magic file from /etc/magic
 # whereis file
 /usr/bin/file
 # ln -s  /usr/bin/file /usr/local/bin/

 any clue how to solved this  ,
Never used it myself, have you tried Google?

Where is the error message coming from?  configtest.pl?

http://www.purplehat.org/?page_id=16

quoteNote:

There is a known issue with the file() utility in the configtest check.
Dont worry about this as Maia will still find and use  file() even if the
configtest says it is not installed. This will be fixed in the next Maia
release. Otherwise, PLEASE let me know if something in the port is not working
correctly./quote

HTH

 --
 sonjaya
 http://sicute.blogspot.com
 http://www.pojokdomain.com(sell  buy domain with free )



Re: USB stick 4GB Kingston not working

2010-04-22 Thread Richard Toohey
On 20/04/2010, at 4:05 PM, STeve Andre' wrote:

 On Monday 19 April 2010 23:51:21 Sean Howard wrote:
 I have a Kingston, it has behaved very erratically (and currently lost its
 partition, leaving the drive unformatted). I've done no research into
this,
 but a similar problem is there. I found formatting it would work for a few
 days (but didn't want to try harder than that for just a USB drive).

 Somebody claiming to be Girish Venkatachalam wrote:
 Dear friends,

 Though I find that with each OpenBSD release an increasing array of
 exotic USB devices are supported, I got the shock
 of my life with my newly purchased USB stick.

 This is what I get from USB probing.
 [snip]

 Do not discount a bad usb stick.  I've seen a few brands which were (or,
 are) pretty bad.  One particular 1G/2G batch of pny sticks had about 50%
 not working on OpenBSD.  I got them to test because they were flaky on
 Windows, too.  I know there are incompatible sticks out there, but I've
 crashed into just plain badly made hardware, too.


I'll second that on PNY mem sticks - got an 8Gb one and it's hopeless!

Yer pays yer money and yer takes your choice!

 --STeve Andre'



Re: weird maildirmake problem

2010-04-21 Thread Richard Toohey
On 21/04/2010, at 9:48 AM, Ozgur Kazancci wrote:

 Hi,

 I've a strange problem;

 I installed an OpenBSD mail server last day with Postfix, Courier-Imap..etc

 Everything was working fine, until i wanted to re-create an e-mail account.

 Now, when i'm trying to make user's directory,
 (as root) /usr/local/bin/maildirmake -q 1000S
/var/vmail/domain.com/user

 Maildirmake does not response the command. It just waits for forever,
 cursor waits, no output (just like when you simply run 'cat' without
pointing to a file)
 till i interrupt with CTRL+C.

Seems to be a common thing with Courier (never used it myself.)

Googled for Maildirmake quota hangs and find a few results ...

http://www.mail-archive.com/courier-i...@lists.sourceforge.net/msg03319.html

quoteThis means that Maildir is not a valid maildir./quote

And try searching on the Courier lists for maildirmake quota hangs ...

http://markmail.org/browse/net.sourceforge.lists.courier-users

And an answer (from 2002) is there ... might even be the right answer ...

HTH.

 I thought its maybe because of the permissions,
 But neither chown -R vmail:vmail /var/vmail did not solve that.

 details:

 OpenBSD 4.6-stable

 #which maildirmake
 /usr/local/bin/maildirmake

 # ls -al /usr/local/bin/maildirmake
 -r-xr-xr-x  1 root  bin  30504 Jul  2  2009 /usr/local/bin/maildirmake

 i've created a ktrace.out file with ktrace -p $maildirmakepid while
maildirmake was waiting,
 kdump'd the ktrace.out file, got such messages:

 14969 maildirmake NAMI
/var/vmail/domain.com/info/tmp/1271783205.14969_NeWmAiLdIrSiZe.hostname.serv
er.com
 14969 maildirmake RET   stat -1 errno 2 No such file or directory
 14969 maildirmake CALL  open(0x80b30600,0x20e,0x1a4)
 14969 maildirmake NAMI
/var/vmail/domain.com/info/tmp/1271783205.14969_NeWmAiLdIrSiZe.hostname.serv
er.com
 4969 maildirmake RET   open -1 errno 2 No such file or directory
 ...

 Of course, there is no such 'domain.com' or 'domain.com/user' directory in
/var/vmail.

 maildirmake creates them, just like how it did last day.

 Same command, same permissions, same path, not working.

 Any idea?

 Thanks.



Re: File Server: fsck, memory requirements and large disk drives

2010-03-02 Thread Richard Toohey
On 2/03/2010, at 1:40 PM, Rob Sheldon wrote:

 On Sat, 27 Feb 2010 18:19:57 +0100, Claus Niesen cnie...@gmx.net
 wrote:
 I'm trying to figure out the best way to setup a home file server.  I
 have
 a 700MHz Celeron with 512MB RAM (maxed out), a gigabit network adapter
 and
 1.5TB hard drive along with a few smaller ones. Currently it is set up
 with
 OpenBSD and samba.  The 1.5 TB hard drive is partitioned in three equal
 partition so I have a chance to pass the fsck if ever needed.  This
 setup
 works well, except that I have to partition the drive into smaller
 partitions.  I really would like not to be bound by the partition size
 restriction.  But of course I would also like to be able to reboot the
 server and access the data after a power failure or such.  And read-only
 mode isn't an option either.

 I've done exactly this -- a large hard drive (1TB in my case) on a puny
 computer with specs similar to yours.

 fsck was do-able but extremely painful. In my case, it was also doing
 software RAID, but still -- it took 26 hours to mount all filesystems after
 an interruption. Not good.


26 hours!?  I have a Dell SC440 with a couple of 500 Gb drives in, and the
fsck as part of an upgrade is around 45 minutes to 1 hour per drive.
(Figures are completely from memory.)

No RAID, or anything like that, just 2 x 500Gb SATA drives.  fsck as part
of version upgrade, happy drives.

cpu0: Intel(R) Pentium(R) D CPU 3.00GHz (GenuineIntel 686-class) 3 GHz
...
real mem  = 1071722496 (1022MB)
avail mem = 1027489792 (979MB)
...
wd0 at pciide1 channel 0 drive 0: ST3500630NS
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd1 at pciide1 channel 0 drive 1: ST3500630NS
wd1: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: apic 8 int
17 (irq 10)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM ECC PC2-5300CL5
spdmem1 at iic0 addr 0x52: 512MB DDR2 SDRAM ECC PC2-5300CL5
...

An fsck of 1 TB will not necessarily take 26 hours, so definitely YMMV.

I know you said your timing was on crappy hardware, so interested in
what might be normal for bigger drives on more modern hardware.

I've probably completely missed the point, so get the cluesticks out!

 The only way around this is to (dramatically) change your block size, and
 then you might end up wasting a significant amount of disk depending on the
 type of files you're storing on it.

 As fond as I am of OpenBSD, this just isn't something it's very good at at
 the moment.

 (Alternatively, you could install an uninterruptible power supply with a
 USB connection, set up monitoring in OpenBSD, and have the machine cleanly
 shut itself down if the battery runs out. But that's kinda just a stopgap
 solution.)

 - R.

 --
 [__ Robert Sheldon
 [__ Founder, No Problem
 [__ Information technology support and services
 [__ Software and web design and development
 [__ (530) 575-0278
 [__ You must be the change you wish to see in the world. -- Mahatma
 Gandhi



Re: selling bsd in cd for profit??

2010-02-26 Thread Richard Toohey
On 27/02/2010, at 3:04 PM, Joel Wiramu Pauling wrote:

 Let me clear on this.

 Yes you can.

 Follow the BSD licence terms (none of which say anything about for
 profit) and you are fine.

 There is absolutely zero legal reason you cannot put together a cd of
 OpenBSD and sell it. The official CD has some further licencing
 restrictions, so if you were to copy it verbatim it would constitute a
 breach of these terms.

 But if you create your own and sell it. No problem.

No problem?  Maybe not (I don't know) a legal/licence problem, but you are
biting the hand that feeds / killing the golden goose.

http://www.openbsd.org/

The project pays for the development environment and developer events by
selling CDs ... These finances ensure that OpenBSD will continue to exist
...

But I sense another troll ...

 On 27 February 2010 13:44, Citra Cool cc.bel...@gmail.com wrote:
 Can I selling openBSD in CD for profit??



Re: Disk occupation problem

2009-11-09 Thread Richard Toohey

On 9/11/2009, at 9:11 PM, BARDOU Pierre wrote:


Hello,

I have a strange problem with disk occupation.
Df says my disk is nearly full (25G occupied), but when I do a du 
sh on the
mountpoint it says only 10M used !?



Are you deleting in-use log files?  Does the space come back after a
reboot?


I had the same problem a few days ago on 4.5-stable ; I upgraded to
4.6-stable and it happens again.

Some logs :
# du -sh /var/
10.7M   /var/
# du -sh /var/*
2.0K/var/account
2.0K/var/audit
2.0K/var/authpf
1.3M/var/backups
4.0K/var/crash
22.0K   /var/cron
2.2M/var/db
4.0K/var/empty
44.0K   /var/games
12.0K   /var/lib
4.2M/var/log
4.0K/var/lost+found
1.1M/var/mail
4.0K/var/msgs
92.0K   /var/named
2.0K/var/quotas
96.0K   /var/run
2.0K/var/rwho
24.0K   /var/spool
4.0K/var/tmp
1.4M/var/www
28.0K   /var/yp
# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/sd0a  3.8G2.1G1.5G59%/
/dev/sd0d 28.6G   25.0G2.2G92%/var

Could someone give me a clue on how to fix this ?
TYVM

--
Cordialement,

Pierre BARDOU
CSIM - Bureau 012




12 rue Michel Labrousse
BP93668
F-31036 Toulouse CEDEX 1

Til : 05 67 69 71 84
Fax : 05 34 61 51 00
Mail : bardo...@mipih.fr

[demime 1.01d removed an attachment of type application/x-pkcs7-
signature which had a name of smime.p7s]




Re: Segfault in Apache after upgrade to v4.6

2009-11-01 Thread Richard Toohey

On 1/11/2009, at 5:27 PM, Jeremy Bowen wrote:


Hi

I've just upgraded a couple of (old-ish) servers to 4.6 and now  
Apache has
started throwing intermittent segfaults on both. (dmesgs appended  
below)

I previously upgraded from 4.4 to 4.5 without incident.

Both of these machines have been running faultlessly for months  
without issue
so something has gone wrong following the upgrade. Both machines  
are serving
different web-sites so I don't believe there is anything specific  
to the

php/html code on the sites.


I have the following PHP5 modules loaded in /var/www/conf/php5/*.ini

Server 1
extension=gd.so
extension=mbstring.so
extension=mcrypt.so
extension=mysql.so
extension=pdo_mysql.so

Server2
extension=mcrypt.so
extension=mysql.so
extension=snmp.so


Assuming this is a fault in a loaded module it has to be either  
mcrypt or
mysql. I suspect this is mysql as one of the sites served is  
basically static

HTML without mysql and this site does not appear to cause a segfault.


Any ideas how I can track down what is causing the problem and more
importantly, how to fix it.

Thanks in advance
Jeremy


[cut]

Can't help you directly, but there are a few questions that might  
help ...


1. Upgraded as per instructions - http://www.openbsd.org/faq/ 
upgrade46.html?

2. Upgrade included packages at the end of those instructions?
3. Applied errata patches (don't think they would make a difference  
here?)

4. What version of Apache?  1.3 in base, or 2.x from ports?
5. MySQL and PHP - from packages or ports?  What versions?
6. Nothing in the archives can help?  e.g. http://marc.info/? 
l=openbsd-miscm=124516871013636w=2


Thanks.



Re: How to set up sendmail

2009-10-25 Thread Richard Toohey

On 25/10/2009, at 5:44 PM, Mark Yieh wrote:

Hi I'm trying to set up sendmail as my home mail server but it's my  
first time so I'm not sure what to do.
I know it's already installed and enabled in base but will only  
accept requests from local host.
So I've added this flag in rc.conf.local to enable it it receive  
external connections:


sendmail_flags=-L sm-mta -bd -q30m

And I've also changed my router settings to forward all packets  
from port 587 to my openbsd box.

And I've restarted the computer.
But I still can't set up an account on my Macintosh to access the  
openbsd mail server.
What am I doing wrong? And does sendmail use the IMAP or POP  
protocol? I prefer to use IMAP if possible.



[cut]

sendmail uses SMTP.  popa3d is in base for POP3.  I haven't got as  
far as IMAP yet.


Wikipedia and the manuals a good place to start!

Running an external-facing mail server might not be a good idea
until you've got a lot more of the concepts under your belt!

HTH.



Re: Daily script - wake up disk

2009-10-18 Thread Richard Toohey
On 18/10/2009, at 3:00 AM, jean-francois wrote:

 In the first place, I use to change the time of the cron job  
 because it
 used to start in a big noise (this disk is very noisy compared to the
 server itself) at 1 o clock in the night, waking me up (!) nearly  
 every
 time.


Looks like you haven't had a good night's sleep since March!

8-)

http://marc.info/?l=openbsd-miscm=123843560113380w=3

Good luck.



Re: 4.6 arriving

2009-10-06 Thread Richard Toohey

On 7/10/2009, at 12:09 AM, Victor Camacho wrote:


CD Showed up in San Antonio Texas on Monday, Oct. 6.

Thank you Theo and all the developers.

I appreciate and am grateful for the hard work and pride you put  
into OpenBSD.


Thank You,
Victor Camacho



And today in Tauranga, New Zealand.

Thanks to Theo and all the developers and everyone
behind this release.

Been using OpenBSD in production use for 2+ years
(firewalls, FTP, Samba file server), and on a number
of desktops during 2009 - been absolutely rock solid.

Thanks.



Re: Supporting OpenBSD

2009-09-09 Thread Richard Toohey

On 9/09/2009, at 9:14 PM, Johan M:son Lindman wrote:


On Wednesday 09 September 2009 08:45:41 you wrote:

I have a few questions about the stores in Australia (since we're  
on the
topic here). (http://www.openbsd.org/orders.html#au/lsl) LSL  
doesn't seem

to be doing pre-orders (see
http://www.lsl.com.au/advanced_search_result.php? 
keywords=openbsdx=0y=0);
does anybody know about the status of ESI? I cannot find any  
mention of
OpenBSD, let alone any pre-orders on their site (http:// 
www.esi.com.au/).


If anybody living in Australia could help out to call the store/s  
(I dont
live there - it's just that this is the nearest store to me) and  
enquire,

that would be great.

thanks,
-jf


Having spoken to some OpenBSD users in Australia it appears as if  
your best

bet is to order directly from https://https.openbsd.org/cgi-bin/order

That way you can make a per-order as well.


Regards
Johan M:son

Not quite Australia but I've ordered 3.5 onwards from the Computer  
Shop of Calgary
and my orders have always arrived in New Zealand in good time (and  
well before release

if I get my order in on time - pre-ordering is definitely worth it.)

The CD jewel cases used to be - without fail - broken, but NO issues  
since 4.0 and the DVD cases.


And back to Nick's original email, I'll badger a few people ...

HTH.



Re: FTP public

2009-08-04 Thread Richard Toohey

On 4/08/2009, at 7:49 AM, Yamidt Henao wrote:


Hi,

I cant publish a ftp server using the pf, my ftp server used  
autenticacion,I

have in pf:

#1:
rdr on $ext_if proto tcp from any to ($ext_if) port { ftp-data } -
serverftp port ftp-data
#2:
rdr on $ext_if proto tcp from any to ($ext_if) port { ftp } -  
serverftp

port ftp

but I cant connect ftp sesions.


Any idea.

Y.H


Not sure what you are after, but this stuff worked when I tried it:

http://www.openbsd.org/faq/pf/ftp.html

http://home.nuug.no/~peter/pf/en/ftpproblem.html

HTH



Re: F1-F10, 'HOME', 'END' keys.

2009-08-03 Thread Richard Toohey

On 3/08/2009, at 12:21 PM, 4625 wrote:


On Sat, 1 Aug 2009, Richard Toohey wrote:

'HOME' and 'END' keys will display the '~' almost everywhere in  
OpenBSD console.



openbsd home key tilde
First link might help with the HOME and END keys; depending on  
what exactly you are doing.


Maybe for ksh it would work, I don't know. First of all there is  
impropriety bind format: 'bind '^[[3'=prefix-2'. Bash advice to use  
the ':' instead of '='. Bash does not know 'prefix-2'. I have  
different scancode on HOME and END keys - ^[[7~, ^[[8~.


--
4625

So, when you say almost everywhere in OpenBSD console do you mean  
if you do, say

Alt-Ctrl-F2 and log in, and then press ...

F1you get 1~
F2you get 2~
...
F5you get 5~
... but ...
F6you get 7~
F7you get 8~
...
HOME you get ~
END you get ~

(So, at this point, we are completely outside X / xterm, nothing to  
do with bash, etc.)


Thanks.



Re: F1-F10, 'HOME', 'END' keys.

2009-08-03 Thread Richard Toohey

On 3/08/2009, at 8:19 PM, Richard Toohey wrote:


On 3/08/2009, at 12:21 PM, 4625 wrote:


On Sat, 1 Aug 2009, Richard Toohey wrote:

'HOME' and 'END' keys will display the '~' almost everywhere in  
OpenBSD console.



openbsd home key tilde
First link might help with the HOME and END keys; depending on  
what exactly you are doing.


Maybe for ksh it would work, I don't know. First of all there is  
impropriety bind format: 'bind '^[[3'=prefix-2'. Bash advice to  
use the ':' instead of '='. Bash does not know 'prefix-2'. I have  
different scancode on HOME and END keys - ^[[7~, ^[[8~.


--
4625

So, when you say almost everywhere in OpenBSD console do you mean  
if you do, say

Alt-Ctrl-F2 and log in, and then press ...

F1you get 1~
F2you get 2~
...
F5you get 5~
... but ...
F6you get 7~
F7you get 8~
...
HOME you get ~
END you get ~

(So, at this point, we are completely outside X / xterm, nothing to  
do with bash, etc.)


Thanks.



HHHmmm, never mind that jibber-jabber (I've got lots to learn ...)

Google

openbsd function keys

Second link seems to make Midnight Commander F-keys work ...

HTH



Re: F1-F10, 'HOME', 'END' keys.

2009-07-31 Thread Richard Toohey

On 1/08/2009, at 8:49 AM, 4625 wrote:

How to achieve the adequate behaviour on pressing keys F1-F10 in  
GoldED+ (message editor); 'HOME' - return to begin of line, 'END' -  
end of line in bash prompt and some text/message editors?




[cut]
'HOME' and 'END' keys will display the '~' almost everywhere in  
OpenBSD console.


--
4625



Google

openbsd home key tilde

First link might help with the HOME and END keys; depending on what  
exactly you are doing.




Re: Encrypted virtual disk.

2009-07-31 Thread Richard Toohey

On 1/08/2009, at 9:00 AM, 4625 wrote:

Can anyone explain how to create encrypted virtual disk? (similar  
to vncrypt disk on FreeBSD).


--
4625



Google

openbsd encrypted virtual disk

Not sure if it is the same as FreeBSD's vncrypt, though.



  1   2   >