Re: Dual Booting OpenBSD vs Windows7

2015-06-27 Thread Matthew Clarke
Sat, Jun 27, 2015 at 17:39:38 +0330, Mohammad BadieZadegan may have written:

 Hi,
 I want to dual booting OpenBSD with Windows7 and read many more pages about
 customizing windows *bcdedit* tools to booting dual OS like
 *http://cromwell-intl.com/linux/multiboot-windows-openbsd/
 http://cromwell-intl.com/linux/multiboot-windows-openbsd/*
 *BUT*, all of these pages nothing changed and could not running dual OS.
 Is that any hints about dual booting OpenBSD vs Windows7?

I use http://gag.sourceforge.net/ for that.

-- 
Perfection [in design] is achieved not when there is nothing left to add,
but rather when there is nothing left to take away.
-- Antoine de Saint-Exupery



Re: ThinkPad T60 screen brightness

2014-06-26 Thread Matthew Clarke
Fri, Jun 27, 2014 at 00:18:57 +0200, Riccardo Mottola may have written:

 Hi,
 
 I noticed that since I upgraded to 5.5, the two keys that controls the
 screen brightness do not work anymore, my LCD is constantly set to a
 mid-dark. This happens when the new framebuffer console runs, but also when
 X11 runs.
 
 During BIOS post or furing the first boot phase, setting works, but will
 reset as soon as the framebuffer loads.
 
 Posts on the net seem to succest xbacklight, but I get:
 
 $ xbacklight
 No outputs have backlight property
 
 
 Suggestions? Getting the two keys (those activated by the blue Fn) would be
 the best of course.
 
 Riccardo

Same thing on my T60, but if I suspend and resume, those keys work until
the next reboot.

Matt.
-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.  -- Kernighan
-- quoted by Quentyn Taylor



[patch] src/usr.bin/calendar/calendars/calendar.music: JJ Cale 1938-2013

2013-09-30 Thread Matthew Clarke
Index: calendar.music
===
RCS file: /cvs/src/usr.bin/calendar/calendars/calendar.music,v
retrieving revision 1.27
diff -u -r1.27 calendar.music
--- calendar.music  7 Jul 2011 13:52:55 -   1.27
+++ calendar.music  30 Sep 2013 05:38:51 -
@@ -304,6 +304,7 @@
 07/25  Bob Dylan goes electric at the Newport Folk Festival, 1965
 07/25  Crosby, Stills, Nash  Young debut at the Fillmore East, 1969
 07/26  Mick Jagger is born in Kent, England, 1943
+07/26  JJ Cale (John Weldon Cale) dies in La Jolla, California, 2013
 07/27  Enrique Granados is born in Lleida, Catalonia, Spain, 1867
 07/28  Johann Sebastian Bach dies in Leipzig, Germany, 1750
 07/28  The Watkins Glen Summer Jam opens, 1973
@@ -485,6 +486,7 @@
 12/04  Frank Zappa dies in his Laurel Canyon home shortly before 18:00, 1993
 12/04  Lord Benjamin Britten dies, 1976
 12/05  Wolfgang Amadeus Mozart dies in Vienna, Austria, 1791
+12/05  JJ Cale (John Weldon Cale) is born in Oklahoma City, Oklahoma, 1938
 12/06  First sound recording made by Thomas Edison, 1877
 12/06  The Rolling Stones play Altamont Speedway near San Francisco, 1969
 12/07  Harry Chapin is born in New York City, 1942

-- 
Thank goodness modern convenience is a thing of the remote future.
-- Pogo, by Walt Kelly



Re: help configuring Huawei E182E

2010-09-26 Thread Matthew Clarke
Sun, Sep 26, 2010 at 11:13:47AM -0500, Anony (chicken) Mous may have written:

 Thank you so much for all your kind help Mathew  Joachim, I have
 used a hybrid of both your configuration and things are working
 accept for DNS I have put a public OpenDNS (208.67.222.222)
 servers in my /etc/resolv.conf to overcome this? Any advice on
 fixing that would be appreciated.

[ snip ]

I can't speak from personal experience because I run a local name server
on that machine and have 127.0.0.1 in its /etc/resolv.conf, but look up
the enable dns and resolv commands in the ppp(8) manual page.  Some
combination of those should be able to get ppp automatically updating
/etc/resolv.conf when you connect.

Matt.

P.S.  It was pointed out to me in private mail that I had an error in my
first reply.  The Kyocera KPC650 is a CardBus, not PCMCIA, card.
-- 
Perfection [in design] is achieved not when there is nothing left to add,
but rather when there is nothing left to take away.
-- Antoine de Saint-Exupery



Re: help configuring Huawei E182E

2010-09-25 Thread Matthew Clarke
Sat, Sep 25, 2010 at 07:34:59AM -0500, Anony (chicken) Mous may have written:

 Hello Misc,
 
 I'm having difficulty figuring out the configuration required to get
 Huawei E182E wireless dongle working with Telus mobility in
 Canada, I'm using 4.8-current, I have copied the verizon ppp.conf
 example from umsm(4) manpage only changing phone, authname,
  authkey without any success?
 
 Technical specification:  http://tinyurl.com/2g3hszd
 
 My ppp.conf and error message from dialing ppp:
 http://pastebin.com/KvwcF48U
 
 Thank you all greatly for any help.

Here's the ppp(8) configuration that I use for Telus Mobility (I have a
Kyocera KPC650 PCMCIA card, which is also umsm(4)):

--
telusevdo:
add default HISADDR
allow users elided
disable ipv6cp
rename telusevdo
set authkey elided
set authname elided@1x.telusmobility.com
set device /dev/cuaU0
set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \\ AAAT OK-AT-OK 
ATE1Q0 OK \\dATDT\\T TIMEOUT 50 CONNECT
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
set login
set phone \#777
set server /tmp/telusevdoctl  0177
set speed 115200
--

Matt.
-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.  -- Kernighan
-- quoted by Quentyn Taylor



Re: Clock settings and FAQ 8.25

2009-10-24 Thread Matthew Clarke
Sat, Oct 24, 2009 at 09:36:45PM +1100, Rod Whitworth may have written:

 On Sat, 24 Oct 2009 20:32:36 +1100, Rod Whitworth wrote:
 
 Hi Nick,
 You may notice that I've made this public. Not to get a democratic
 election started, just to get the info out to some who may find it
 useful even if you don't reckon it's good enough for an FAQ entry.
 8 snip unneeded copy
 
 I forgot to say that the only version of windows I know  uses that
 method correctly is XP.

[ snip ]

This was in the FAQ at one point.  I was using that registry setting in
late 2007 and early 2008 with Windows XP Professional (SP2 at the time).
XP would honour the setting at boot, but not at several other times, such
as when resuming from standby or hibernation, or when performing some DST
calculations.  Lots of fun if you use standby or hibernation and forget
to reset the XP clock after resuming, only to realize later that the
time you've been glancing at in the system tray is wrong by your local
timezone's offset to UTC.  Not to mention things like file modification
timestamps.

I sent www@ a patch for the FAQ to warn of the pitfall; Nick rejected it
(off-list) on the basis that the above behaviour effectively renders that
registry setting useless.

Patch:
http://marc.info/?l=openbsd-wwwm=120224167015343w=2

Part of the patch included adding a link to an informative web page by
one Markus Kuhn.  I've just checked that page again; it has been updated
and indicates that there may be hope for Vista SP2 and Windows 7 (comment
dated 2008-10-31 in the Current support status in Windows section).

See:
http://www.cl.cam.ac.uk/~mgk25/mswish/ut-rtc.html

Matt.
-- 
Disraeli was pretty close: actually, there are Lies, Damn lies, Statistics,
Benchmarks, and Delivery dates.



Re: /dev/audio: Device busy

2009-10-02 Thread Matthew Clarke
Fri, Oct 02, 2009 at 02:33:27PM -0700, Buzzer may have written:

 pO DANNYM RADIOPEREHWATA OT  2-Oct-2009 07:18, Paul de Weerd
 BYL ZAME^EN W \FIRE, NA ^ASTOTE misc, S TAKIM SOOB]ENIEM:
 
  |   I need to play a few audio files simultaneously.
  | 
  |   can't open /dev/audio: Device busy.
  | 
  |  man 1 aucat
  |
  | Could you be more verbose? What make you think that I did not read man
  | aucat?
  
  tried aucat. Mine seems to be misfunctioning too, can you share with
  the list what problems you had with aucat in servermode ? Did it give
  any errormessages ?
 
 I ran aucat with '-l' key, then I try to play wav file with 'aucat
 file.wav' command or 'aucat -s deafault file.wav'.
 
 aucat -s default send.wav
 aucat: can't open /dev/audio: Device busy
 aucat: send.wav: could not play

[ snip ]

The LEGACY MODE section of aucat(1) says that if neither -i nor -o are
given, aucat falls back to legacy mode; legacy mode wants to open the
device directly rather than going through the aucat -l server.  Use the
'-i' flag.

I start aucat -l in my .xsession and have both gkrellm's mail checker
and psi configured to use the following helper script to play event
sounds.  These event sounds mix into the music stream from mpd just fine.

--
#!/bin/ksh
# @(#)~clamat/bin/playsound -- Dump sound file to /dev/audio
##

# aucat needs the file extension to figure out what parameters to set; if
# the file is a symbolic link, figure out the real name and give that to
# aucat so it can see the real extension (e.g. for my $HOME/sound/startup
# symbolic link that can point to .wav or .au file)

FILE=$1

[[ -h $1  -x /usr/bin/readlink ]]  FILE=$(/usr/bin/readlink -f $FILE)

# If file exists and is not empty, send to sound card.
#
[[ -s $FILE ]]  exec /usr/bin/aucat -i $FILE
--

-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.  -- Kernighan
-- quoted by Quentyn Taylor



Re: New disklable doesn't keep old partitions if requested

2009-07-05 Thread Matthew Clarke
Sat, Sep 05, 2009 at 10:13:05PM -0400, Daniel Ouellet may have written:

  You need to learn how to listen.
 
 That's fair Theo.
 
 But to make it short. Before when at the disklabel part of the install, one
 could just type 'q' and it was then asked for the mount point of that actual
 unchanged partition as before and skip the 'm' steps if you want. Now you 
 can't
 just type 'q' and do this, but needs to do 'm' for each partitions and keep 
 the
 same size, offset, etc the same and provide then the mount point, then save,
 quit and keep going.
 
 If there is a way to skip these additional steps using 'm' on disk unchanged
 partition between install and just need to type 'q' as before and provide the
 needed mount points obviously, I would like to know how now?
 
 Doesn't appear to be possible anymore. Am I wrong?
 
 Best,
 
 Daniel

Use 'n' instead of 'm' to provide the needed mount points.

With the old installer, while in the disk label editor, you could name
your mount points while creating (command 'a') or modifying (command 'm')
your partitions, or you could just name the mount points for existing
partitions without otherwise those partitions (command 'n').

After you finished the disk label editor, the old installer would then
prompt you to name your mount points.  If you'd already named them in the
disk label editor, this was redundant.  The new installer removes the
redundancy and requires that you name your mount points in the editor.

When you choose C for a custom layout, the installer shows you this:

--
You will now create an OpenBSD disklabel inside the OpenBSD MBR
partition. The disklabel defines how OpenBSD splits up the MBR partition
into OpenBSD partitions in which filesystems and swap space are created.
You must provide each filesystem's mountpoint in this program.
--

Note the last sentence.

Matt.
-- 
... let us keep in mind the basic governing philosophy of The
Brotherhood, as handsomely summarized in these words: we believe in
healthy, hearty laughter -- at the expense of the whole human race, if
needs be.
Needs be.   -- H. Allen Smith, Rude Jokes



Re: removing a pesky file

2009-05-14 Thread Matthew Clarke
Thu, May 14, 2009 at 08:47:46PM -0400, Ryan Flannery may have written:

 I've been in similar situations countless times, but this one is
 throwing me a for a loop.
 
 I have a file that I'm trying to remove with non-printable characters
 in the name.  Additionally, some of the characters appear to be
 backspace/delete/etc.
 
 All my normal tricks with rm(1) fail.

[ snip ]

Even

# pwd
/usr
# rm -i -- ??*

followed by very careful use of the y, n and Enter keys?

Matt.
-- 
With trembling hands he unfurled the ancient cracked parchment, this was
the place, it had to be. Uncertainly he began to mumble the chant rdbms,
sql , third normal formal form, java,  table, scalable. Something moved..
From outside they heard a scream and a thud. The sales department had awoken
-- .sig by Alan Cox



Re: error : pkg add phpMyAdmin

2009-04-14 Thread Matthew Clarke
Tue, Apr 14, 2009 at 06:14:35PM +0200, Jean-Francois may have written:

 
 Hello,
 Can you please help me with this :
 
 $ sudo pkg add phpMyAdmin-2.11.7.1.tgz
 Can't install php5-gd-5.2.6: lib not found X11.11.1

phpMyAdmin needs php5 and the php5 GD extension.  There are two versions
of that extension, one that needs X libraries and one that doesn't.  By
default, pkg_add is picking the one that needs those libraries.

 Dependencies for php5-gd-5.2.6 resolve to: jpeg-6bp3, php5-core-5.2.6, 
 t1lib-5.1.0p1, png-1.2.28
 Full dependency tree is libiconv-1.12,jpeg-6bp3,libxml-2.6.32p1,php5-
 core-5.2.6,t1lib-5.1.0p1,gettext-0.17,png-1.2.28
 Can't install php5-gd-5.2.6: lib not found Xpm.8.0
 Can't install php5-gd-5.2.6: lib not found freetype.16.1
 Can't install phpMyAdmin-2.11.7.1: can't resolve php5-gd-5.2.6
 
 FYI box is 4.4 fresh install, i386, working as a server, so graphic support.

I'll assume here you meant no graphic support, and by that you mean that
you did not install the X sets.  Since pkg_add picked the GD extension
package that needs X libraries, you get the error.

Use:

$ sudo pkg_add -i phpMyAdmin

and pkg_add will recognize that there are two versions of the php5 GD
extension package available and ask you which one to install.  Use the one
whose name includes no_x11.

Alternatively, you can install package php5-gd-5.2.6-no_x11.tgz manually
first, then install phpMyAdmin.

Matt.
-- 
With your own code to haunt you, who needs users?
-- Maarten Wiltink



Re: gkrellm memleak?

2009-03-17 Thread Matthew Clarke
Tue, Mar 17, 2009 at 11:32:39PM +0100, frantisek holop may have written:

 
 hi there,
 
 is it normal for gkrellm to use as much memory as 100 megs?
 
   PID USERNAME PRI NICE  SIZE   RES STATEWAIT  TIMECPU COMMAND
 24630 f  20  120M  128M sleeppoll  0:14  0.00% gkrellm
 
 could this be some kind of memory leak?
 this is on a -current (feb 28) with the latest packages.
 
 i'd like to ask some others to monitor their gkrellm memory
 usage for a while to confirm this.  a silly cronjob with
 some shell-fu would do nicely i think.

http://marc.info/?l=openbsd-ports-cvsm=123624061627873w=2

-- 
On two occasions I have been asked [by members of Parliament!], `Pray, Mr.
Babbage, if you put into the machine wrong figures, will the right answers
come out?'  I am not able rightly to apprehend the kind of confusion of
ideas that could provoke such a question.  -- Charles Babbage



Re: OpenBSD PR #5239 and #5577

2007-10-26 Thread Matthew Clarke

Matt Rowley wrote:

 Amarendra Godbole wrote:


I use OpenBSD 4.2-current on IBM ThinkPad X60, and face similar issue
mentioned in PRs' #5239, and #5577 - as soon as I insert a PCMCIA
card in the slot (mine is Sierra Wireless AirCard 555), the kernel
panics. This happens if I boot with the card in the slot, or if I
insert the card in the slot when the machine is up and running.


I can confirm the same behavior on my T60p.  Inserting Cisco Aeronet 340 
and 350 cards causes the kernel to panic.  If the card is in the slot 
at boot, when the kernel gets to it in boot up, it panics, too.  I 
haven't had a chance to record the trace / ps dumps yet...


Also on my ThinkPad T60 on insertion of either an IBM PC Card analog 
modem or a Megahertz PC Card analog modem and on removal of a Kyocera 
KPC650 CDMA wireless modem PC Card.  PR kernel/5607.




Re: Troubleshooting PCMCIA modem 3Com 3CXM756

2007-06-13 Thread Matthew Clarke
Wed, Jun 13, 2007 at 11:21:35AM +0200, Raimo Niskanen may have written:

 Hi all!
 
 I have an old laptop on whith I want to use ppp
 to connect to Internet, using a PCMCIA modem
 3Com 3CXM756 Global GSM  Cellular Modem PC Card
 
 First, I _think_ it shows up as /dev/cua03. In
 dmsg it pops up as device pccom3, and when trying
 with tip it appears that while the card is in
 it fails as described below, while the card is
 out it fails with device not configured.
 
 Nevertheless. ppp, minicom and tip all try to
 send AT commands but get no responses, as
 it appears. I do not see any logs, almost.
 ppp says it does ATZ^M and waits for OK
 which does not happen. minicom and tip
 try to dial and say it fails.
 
 Have you got any tip on how to troubleshoot this
 card, or does anyone know this card is a dead end
 and can name a proper serial line, USB or PCMCIA
 modem that is known to work?

I don't know anything about that 3Com card.  If you can't get it working,
I do know that the following two (fairly old) PCMCIA modems work well for
me with OpenBSD in a couple of laptops that I use:

- Megahertz by USRobotics model XJ4288

- IBM 56K PC Card Modem (FRU 02K4249)

-- 
Perfection [in design] is achieved not when there is nothing left to add,
but rather when there is nothing left to take away.
-- Antoine de Saint-Exupery



[patch] addition to calendar.music

2007-05-04 Thread Matthew Clarke
Index: usr.bin/calendar/calendars/calendar.music
===
RCS file: /cvs/src/usr.bin/calendar/calendars/calendar.music,v
retrieving revision 1.20
diff -u -r1.20 calendar.music
--- usr.bin/calendar/calendars/calendar.music   27 Jun 2006 14:52:49 -  
1.20
+++ usr.bin/calendar/calendars/calendar.music   4 May 2007 20:32:25 -
@@ -349,6 +349,7 @@
 09/04  Darius Milhaud is born in Aix-en-Provence, France, 1892
 09/06  Hanns Eisler dies in East Berlin, 1962
 09/07  Keith Moon (The Who) dies in London of a drug overdose, 1978
+09/07  Warren Zevon dies in Los Angeles, California, 2003
 09/08  Anton Dvorak is born in Nelahozeves, Czechoslovakia, 1841
 09/08  Ron Pigpen McKernan (Grateful Dead) is born in San Bruno,
California, 1945

-- 
Perfection [in design] is achieved not when there is nothing left to add,
but rather when there is nothing left to take away.
-- Antoine de Saint-Exupery



Re: CVS server question

2007-03-30 Thread Matthew Clarke
Fri, Mar 30, 2007 at 05:47:53PM +0300, Zoli may have written:

 Hi
 I have a cvs server running on OpenBSD 4.0. I use this documentation
 to create the CVS server :
 http://davespicks.com/writing/programming/cvsonopenbsd.html
 
 The cvs server work great!
 
 I use this command for login:
 
 $ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvs login
 
 And for checkout:
 
 $ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvs co folder
 
 If someone commit changes all user want to receive an e-mail on
 mailing list. Exist a script to do this ? To send an e-mail with
 changes to mailing list ? I need something like OpenBSD-cvs mailing
 list.
 
 I appreciate any help!
 
 Thanks

I like Russ Allbery's cvslog and cvsprep scripts for this.

http://www.eyrie.org/~eagle/software/cvslog/

-- 
On two occasions I have been asked [by members of Parliament!], `Pray, Mr.
Babbage, if you put into the machine wrong figures, will the right answers
come out?'  I am not able rightly to apprehend the kind of confusion of
ideas that could provoke such a question.  -- Charles Babbage



Re: CVS server question

2007-03-30 Thread Matthew Clarke
Fri, Mar 30, 2007 at 07:50:43PM +0300, Zoli may have written:

 Sorry because I ask a stupid question, I need to configure my sendmail
 for loginfo?
 
 DEFAULT $CVSROOT/CVSROOT/log_accum2 -m [EMAIL PROTECTED] -f
 $CVSROOT/CVSROOT/ChangeLog -s %s
 
 After CVS commit I don't receive the message on e-mail.

log_accum2 submits mail via sendmail, so yes, your sendmail needs to be
configured to accept mail from the local system and deliver it on to
whereever it should go.  Check /var/log/maillog for clues.

-- 
 Thus again, we have successfully proven that I cannot read minds. 
 It doesn't help.  Almost all you ever get is This mind intentionally
 left blank. 
-- Steve VanDevender, to AJS, in ASR

 Thanks!
 
 On 3/30/07, Matthew Clarke [EMAIL PROTECTED] wrote:
 Fri, Mar 30, 2007 at 05:47:53PM +0300, Zoli may have written:
 
  Hi
  I have a cvs server running on OpenBSD 4.0. I use this documentation
  to create the CVS server :
  http://davespicks.com/writing/programming/cvsonopenbsd.html
 
  The cvs server work great!
 
  I use this command for login:
 
  $ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvs login
 
  And for checkout:
 
  $ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvs co folder
 
  If someone commit changes all user want to receive an e-mail on
  mailing list. Exist a script to do this ? To send an e-mail with
  changes to mailing list ? I need something like OpenBSD-cvs mailing
  list.
 
  I appreciate any help!
 
  Thanks
 
 I like Russ Allbery's cvslog and cvsprep scripts for this.
 
 http://www.eyrie.org/~eagle/software/cvslog/
 
 --
 On two occasions I have been asked [by members of Parliament!], `Pray, Mr.
 Babbage, if you put into the machine wrong figures, will the right answers
 come out?'  I am not able rightly to apprehend the kind of confusion of
 ideas that could provoke such a question.  -- Charles Babbage



md5 -c digest comparison is case-sensitive

2006-11-09 Thread Matthew Clarke
Hi.

[ OpenBSD/i386-current as of a couple of days ago ]

Is there a good reason why md5 -c should say FAILED when the digest in
the checklist file and the digest calculated by md5 differ only in letter
case?  I can't think of any.

e.g.:
--

% ls -l Tortoise*
-rw-r--r--  1 clamat  clamat   78 Nov  9 16:43 
TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.md5
-rw-r--r--  1 clamat  clamat  9134080 Nov  9 16:26 
TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi
% cat TortoiseSVN*.md5
916C103C14664B784A54692CF5E00CA2  TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi
% md5 -c TortoiseSVN*.msi
MD5 (TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi) = 
916c103c14664b784a54692cf5e00ca2
% md5 -c TortoiseSVN*.md5
(MD5) TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi: FAILED

--

If not, here's a trivial patch:

Index: bin/md5/md5.c
===
RCS file: /cvs/src/bin/md5/md5.c,v
retrieving revision 1.35
diff -u -r1.35 md5.c
--- bin/md5/md5.c   15 Mar 2006 03:15:07 -  1.35
+++ bin/md5/md5.c   10 Nov 2006 00:42:43 -
@@ -486,7 +486,7 @@
close(fd);
(void)hf-end(context, digest);
 
-   if (strcmp(checksum, digest) == 0)
+   if (strcasecmp(checksum, digest) == 0)
(void)printf((%s) %s: OK\n, algorithm, filename);
else {
(void)printf((%s) %s: FAILED\n, algorithm, filename);

Matt.
-- 
With your own code to haunt you, who needs users?
-- Maarten Wiltink



Re: PPTP client

2005-09-30 Thread Matthew Clarke
vendredi, le 30 septembre, 2005, Peter Bako nous a dit ceci:

 I have a situation where I need to connect an OpenBSD box to a MS Windows
 PPTP server (yep, I know it is not secure, but in this case I have no choice
 in the matter).
 
 After looking around the net I found myself at
 http://pptpclient.sourceforge.net/.  So I downloaded, complied and installed
 the program and tried to connect to my test box.  (Also complied a custom
 kernel using the GENERIC files with only the pseudo-device GRE line
 commented out.)  There aren't any OpenBSD specific instructions on the site,
 but reading the generic docs, as well as the docs for NetBSD, the PPTP man
 pages, etc. I think I have enough to get started.  However when I try to
 connect up I get nothing but a list of errors (connection timed out, could
 not open connection, etc.)  I know the path from my OpenBSD box to the test
 server is correct, because if I plug my Win2k laptop in it is able to
 successfully connect to the server.
 
 As far as I can tell the problem is a lack of MPPE support either in the
 Kernel or in PPP.  However I cannot find any information on how to get this
 support onto an OpenBSD system.
 
 Has anyone gotten PPTP-client to work on an OpenBSD box and if yes, would
 you be kind enough to send me some steps or any other info on how you did
 it?

Yes.  Search the openbsd-misc archives (start at the bottom of
http://www.openbsd.org/mail.html); there have been several threads about
the PPTP client over the past couple of years and some of those include
sample configuration information.

-- 
On two occasions I have been asked [by members of Parliament!], `Pray, Mr.
Babbage, if you put into the machine wrong figures, will the right answers
come out?'  I am not able rightly to apprehend the kind of confusion of
ideas that could provoke such a question.  -- Charles Babbage



Re: Alpha CS20 wanted

2005-07-15 Thread Matthew Clarke
vendredi, le 15 juillet, 2005, Michael Erdely nous a dit ceci:

 On 7/15/05, Kevin [EMAIL PROTECTED] wrote:
  This is one of those places where given its importance to the
  community, some more of us can--and really should--step up immediately
  and help cover the small cost. We're talking about a lousy $500 or so
  in pledges that we're short, so covering this should be trivial with a
  few (even $10 or $20) donations.
 
 I'd be glad to donate $50.  I can either send a check or use Paypal. 
 Just say when and where and how.
 
  Let's help get things back on solid footing once more.
  
  
  Best,
  Kevin Smith
 
 -ME

I can chip in USD 100.  In fact, I just sent it as a donation through the
usual OpenBSD North America secure ordering form.

Matt.
-- 
On two occasions I have been asked [by members of Parliament!], `Pray, Mr.
Babbage, if you put into the machine wrong figures, will the right answers
come out?'  I am not able rightly to apprehend the kind of confusion of
ideas that could provoke such a question.  -- Charles Babbage



Re: Dual monitor for openbsd box

2005-07-06 Thread Matthew Clarke
mercredi, le 6 juillet, 2005, Whyzzi nous a dit ceci:

 Just out of curiosity, anyone have Dual/Display xorg.config file for a
 Radeon 9600Pro? I cannot seem to get mine working, and I was wondering
 if it had something to do with the fact that the second head wasn't
 identified in the kernel. Dmesg below.
 
 Thanks in advance,

[ snip dmesg ]

Here's the /etc/X11/xorg.conf from my OpenBSD/i386 3.7-stable system that
has a Radeon 9600 Pro that I run as a dual-screen display.

[ cut here ]--
# File generated by xf86config.
# (and heavily modified since)

#*
# for the ATI Radeon 9600 PRO (AGP)
# and the two Planar PX191 monitors
#*
# with XFree86 V4.x.x using the XFree86 server  modules
# on OpenBSD using the wsmouse mouse device.
#*

Section Files
RgbPath /usr/X11R6/lib/X11/rgb
#   FontPath/usr/X11R6/lib/X11/fonts/local/
FontPath/usr/local/lib/X11/fonts/jmk/
FontPath/usr/local/lib/X11/fonts/terminus/
FontPath/usr/X11R6/lib/X11/fonts/misc/
FontPath/usr/X11R6/lib/X11/fonts/Type1/
FontPath/usr/X11R6/lib/X11/fonts/75dpi/:unscaled
FontPath/usr/local/lib/X11/fonts/ghostscript/
#   FontPath/usr/X11R6/lib/X11/fonts/100dpi/:unscaled
#   FontPath/opt/ttfonts/
EndSection

Section Module
Loaddbe
Loadextmod
Loadglx
#   Loaddri
Loadtype1
Loadfreetype
EndSection

Section DRI
Mode0666
EndSection

Section ServerFlags
Option  BlankTime 0 # disable this
Option  StandbyTime   0 # disable 'standby mode'
Option  SuspendTime   0 # disable 'suspend mode'
Option  OffTime   30# turn the screen right off
EndSection

Section InputDevice
Identifier  LogiTechInternetKeyboard
Driver  keyboard
Option  autorepeat250 30
#Option XkbLayout my_kb_layout
#Option XkbVariantmy_kb_variant
Option  XkbModel  itouch
Option  XkbRules  xfree86
EndSection

Section InputDevice
Identifier  TrackManMarble
Driver  mouse
Option  Protocol  wsmouse
Option  Device/dev/wsmouse
Option  ZAxisMapping  4 5
EndSection

Section Monitor
Identifier  Planar PX191 LCD 1
VendorName  Planar
ModelName   PX191
HorizSync   31.5-80
VertRefresh 56-75
Option  DPMS
# This monitor is connected directly to the DVI connector
# and the server can therefore pull EDID information from
# the monitor through the card during initialization, so
# we don't need to put the display size here.
EndSection

Section Monitor
Identifier  Planar PX191 LCD 2
VendorName  Planar
ModelName   PX191
HorizSync   31.5-80
VertRefresh 56-75
Option  DPMS
# This monitor is connected to the VGA connector through a
# KVM switch that does not pass EDID information, so we
# put the screen size here so the X server knows how big
# the screen is and can figure out the DPI.
DisplaySize 380 300
EndSection

Section Device
### Available Driver options are:-
### Values: i: integer, f: float, bool: True/False,
### string: String, freq: f Hz/kHz/MHz
### [arg]: arg optional
#Option NoAccel   # [bool]
#Option SWcursor  # [bool]
#Option Dac6Bit   # [bool]
#Option Dac8Bit   # [bool]
#Option Display   # str
#Option PanelWidth# i
#Option PanelHeight   # i
#Option ProgramFPRegs # [bool]
#Option UseFBDev  # [bool]
#Option VideoKey  # i
#Option ShowCache # [bool]
Identifier  ATI Radeon 9600 PRO Screen0
Driver  radeon
VendorName  ATI Technologies Inc
BoardName   Radeon 9600 PRO
BusID   PCI:1:0:0
Screen  0   # DVI connector on this card.
EndSection

Section Device
### Available Driver options are:-
### Values: i: integer, f: float, bool: True/False,
### string: String, freq: f Hz/kHz/MHz
### [arg]: arg optional
#Option NoAccel   # [bool]