Martin Braun | 20 Apr 03:02 2014
Picon

PI-like board for OpenBSD?

Hi

I know that there isn't going to be any support for the Rasberry-PI,
but I have been looking for something similar that runs OpenBSD
without any problems.

I am mainly interested because of the low power consumption and
because I want to have this box running 24/7 with OpenBSD.

I mainly need it for OpenSMTPD and Nginx stuff, so graphics isn't
important, but I also don't want to fiddle around with special cables
and stuff, ie. it should be relatively easy to install OpenBSD.

I already have a couple of R-PI's running XBMC and I have a Cubox
running Debian.

Any recommendations for a mini box that runs OpenBSD without problems?

Kind regards.

joasia et damien | 19 Apr 23:29 2014
Picon

Re: pdksh vi-like bindings

----- Wiadomość oryginalna -----

> On Fri, Apr 18, 2014 at 08:54:06AM +0200, joasia et damien wrote:
> > Hello,
> > 
> > Is there any way to change vi-bindings in pdksh? According to the
> > manual, there isn't, but maybe you know some workarounds? 
> > I am using a french bépo layout: instead of h,j,k,l I have c,t,r,s,
> > 
> > Since I make an intensive use of vi-movements on terminals 
> (especially> when using sqlite from the shell), any hint would be 
> welcome. 
> > 
> > Btw, thanks for the great openBSD man pages. Nice and short.
> 
> I don't think so, but note that you can fairly easily run some other
> shell on OpenBSD (pkg_add -i bash; ensure bash is in /etc/shells; 
> chsh.)
>        	Joachim
> 

Hello,

Thanks for your answer. I am currently using zsh but I am quite tired 
with searching its long man pages. I consider pdksh much easier, that's 
why I was considering switching to pdksh

Regards,

Damien
(Continue reading)

Kaya Saman | 19 Apr 20:45 2014
Picon

High Fan Speed in Current 5.5

Hi,

I hope someone can help me with this...

For some reason my fans are spinning up at 3000RPM and making a lot of  
noise. I have a similar chassis m/b combo running FreeBSD 10 which runs  
almost silent.

The processor usage on this machine isn't very high at all and is even  
being throttled.

Here is what I've done so far:

Enable APMD with the -C option; taken from the man page -

  -C      Start apmd in cool running performance adjustment mode.  In this
              mode, when CPU idle time falls below 10%, apmd raises  
hw.setperf
              as much as necessary.  Otherwise when CPU idle time is above  
30%,
              apmd lowers hw.setperf as much as possible to reduce heat,  
noise,
              and power consumption.

and also enable SENSORSD....

sysctl output:

hw.sensors.cpu0.temp0=51.00 degC
hw.sensors.cpu1.temp0=51.00 degC
(Continue reading)

carlos | 19 Apr 16:55 2014

Fatal: building ports requires correctly installed X11

Hi All,

Hope you are all having a wonderful day and are full of coffee.

The whole error message:
Fatal: building ports requires correctly installed X11 (in security/scrypt)
*** Error 1 in /usr/ports/security/scrypt
(/usr/ports/infrastructure/mk/bsd.port.mk:3470 '.BEGIN':  <at> exit 1)

I got the tree via

# cd /usr
# cvs -qd anoncvs <at> anoncvs3.usa.openbsd.org:/cvs get -P src xenocara ports

I did try a few different ports (bash, ncdu, scrypt), all with the
same error. I installed the system using the latest install55.fs
snapshot and made sure to leave the defaults alone, other than using
RAID and softraid0 for FDE on a secondary mSata drive.

Running 'startx' boots into fvwm and it is fully usable, so I guess
that rules out not having X11 installed?

P.S - Somewhat unrelated - I tried reinstalling, first deleted all 
partitions with gparted. When I got to the bioctl command, I only 
had to type the encryption password once. I guess I did not clean 
the partition correctly?

# bioctl -c C -l /dev/sd1a softraid0 (command used)

Full dmesg below:
(Continue reading)

Alan Corey | 19 Apr 08:12 2014
Picon

Ralink mystery usb mini WiFi adapter

I just got a cheap USB WiFi adapter that I thought was a Realtek for
some reason, turned out to be Ralink. I was interested in small
because I want to mount it at the focal point of a TVRO satellite
dish. If I'd known it was Ralink I wouldn't have bought it.

So I plug it into my laptop running OpenBSD 5.2 and it just gets a
ugen in dmesg, nothing in ifconfig at all, no drivers attach to it.
ugen0 at uhub1 port 3 "MediaTek 802.11 n WLAN" rev 2.01/0.00 addr 2

On a Linux box lsusb says
Bus 001 Device 071: ID 148f:7601 Ralink Technology, Corp.

The page at Rakuten where I got it:
http://www.rakuten.com/prod/usb-mini-wifi-wireless-adapter-network-card-802-11n-150m/236363146.html
There's a UPC code on that page.

Any new Ralink driver since 5.2? I couldn't find anything.  No
paperwork came with it, just a mini-cd with Windows, Mac and
supposedly Linux drivers for kernels 2.4 & 2.6 (ancient).  It seems to
use just "802 11N" as a model number.

Any way to get it working or do I set it aside and wait for a driver
someday?  It was only $7.49 with free shipping. I've got a Realtek
RTL8188 coming from China.

  Alan
--

-- 
Credit is the root of all evil.  - AB1JX

(Continue reading)

lilit-aibolit | 18 Apr 14:24 2014
Picon

Find last month abbreviation

This works in linux:
$ date --date="last month" +%b
Mar

In OpenBSD i tried
# MonthCurrent=`date +%m`
# MonthPrevious=`expr $MonthCur - 1`
# echo $MonthPrevious
3

But I need month's abbreviation.

Paco Esteban | 18 Apr 12:39 2014
Picon

Slow IO on SSD disk

Hi all,

I've a Lenovo T400 laptop with a SanDisk 64GB SSD disk.
It used to have Debian 7 on it (everything working just fine), and now I
want to use it as my personal laptop with OpenBSD.

I've installed 5.4. Everything is working great (sound, webcam, etc) but
disk. I get ~40MB/s writing and reding to and from disk. This very same
disk reported 250MB/s reading and 190MB/s writing on debian7.

I somehow expected some decrease on those numbers (which I don't care),
but the performance that it's giving is more like an IDE disk ...

I've tried with softdep and noatime with no success.
Any ideas ?

Thank you.

dmesg:

OpenBSD 5.4 (GENERIC.MP) #41: Tue Jul 30 15:30:02 MDT 2013
     deraadt <at> amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4204466176 (4009MB)
avail mem = 4084817920 (3895MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4  <at>  0xe0010 (80 entries)
bios0: vendor LENOVO version "7UET82WW (3.12 )" date 01/13/2010
bios0: LENOVO 2768HH4
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
(Continue reading)

Mikolaj Kucharski | 18 Apr 10:36 2014

PATCH: faq/ports/specialtopics.html

Small fix for $OpenBSD$ marker. While at it, bring example in sync
with ports tree.

Index: faq/ports/specialtopics.html
===================================================================
RCS file: /cvs/www/faq/ports/specialtopics.html,v
retrieving revision 1.37
diff -u -r1.37 specialtopics.html
--- faq/ports/specialtopics.html	5 Apr 2014 21:41:06 -0000	1.37
+++ faq/ports/specialtopics.html	18 Apr 2014 08:35:14 -0000
 <at>  <at>  -1254,13 +1254,13  <at>  <at> 
 <blockquote><pre>
 #!/bin/sh
 #
-# $OpenBSD: specialtopics.html,v 1.37 2014/04/05 21:41:06 sthen Exp $
+# &#36;OpenBSD&#36;

 daemon="${TRUEPREFIX}/sbin/munin-node"

 . /etc/rc.d/rc.subr

-pexp="perl: ${daemon}"
+pexp="/usr/bin/perl -wT $daemon"

 rc_pre() {
 	install -d -o _munin /var/run/munin

--

-- 
best regards
q#
(Continue reading)

joasia et damien | 18 Apr 08:54 2014
Picon

pdksh vi-like bindings

Hello,

Is there any way to change vi-bindings in pdksh? According to the
manual, there isn't, but maybe you know some workarounds? 
I am using a french bépo layout: instead of h,j,k,l I have c,t,r,s,

Since I make an intensive use of vi-movements on terminals (especially
when using sqlite from the shell), any hint would be welcome. 

Btw, thanks for the great openBSD man pages. Nice and short.

Kevin Chadwick | 18 Apr 02:18 2014
Picon

Secure C references and tools

There are tools such as static analysers and Todd and Theo's talk on
strl*, porting security guidelines etc. and many books (that may or may
not recommend c++ ;-)) and even Ada to C conversion but with added
worries about compilers and obfuscation or the Go language where
applicable but is there a particular reference many recommend or use to
brush up for secure C coding in a fashion akin to K&R's "C bible" being
recommended by past threads for learning C and referencing?

-- 
_______________________________________________________________________

'Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface'

(Doug McIlroy)

In Other Words - Don't design like polkit or systemd

_______________________________________________________________________

I have no idea why RTFM is used so aggressively on LINUX mailing lists
because whilst 'apropos' is traditionally the most powerful command on
Unix-like systems it's 'modern' replacement 'apropos' on Linux is a tool
to help psychopaths learn to control their anger.

(Kevin Chadwick)

_______________________________________________________________________

(Continue reading)

Lubo Diakov | 18 Apr 02:23 2014
Picon

Routine network config. gone wrong

I may be missing something very simple, so if anyone can offer some
help I'd be grateful.

I want to set up a i386 OpenBSD system (using 5.4, but can try current
5.5 if that would help) to act a gateway/firewall. 3 network
interfaces, 2 wired, one wifi (ignoring wifi ATM, want to get wired
working, then deal with wifi later).

ifconfig rl0: (static WAN IP, routable when used with another system)
inet w.x.y.z 255.255.255.0

ifconfig rl1: (static LAN IP)
inet 192.168.y.z 255.255.255.0

resolv.conf (2 known working IP addresses for nameservers, again
working in other OS)

/etc/mygate (IP address of ISP gateway used on other OS for same
connection, known working, have also tried "route add default
ISP.gateway" manually)

ping, traceroute, etc. to IP address of gateway fail, I suspect even
the default pf rules may block this, but how to confirm/or rule out?
(perhaps pfctl -d?)

what should route show -inet or netstat -rn look like if configured properly?
the first line of route show -inet reads (right after booting):
dest.              gateway              flags
default            ISP gateway       GS

(Continue reading)


Gmane