Re: pppoe problems

2007-08-10 Thread Gregory Edigarov

Hi!

Umaxx wrote:



i hope this stupid webmailer does not send this as html mail

can you please give more details? is your userland ppp connecting? did 
you use snapshot or recent current?


Yes, with most recent sources from cvs my userland ppp is connecting... 
But hangs shortly.
First I thought it is the problem in the nfe driver, but after switching 
to rl it hangs  too.  So, it definitely not a problem with underlaying 
device. 
If I ping the other site (no matter which), I could see that it hangs 
after  some 25 - 30 (depending on the situation) pings.



is your kernel pppoe connecting or what happens exactly?

My kernel mode pppoe even does not connect, though I've tried any option 
for many times.


After looking at sources, it seems like something, in  case of userland 
ppp, is screwed up with locks, possibly in if_tun.c, but I am not sure yet.


In case of kernelmode pppoe - I can never use it . It never connect to 
any of my providers.


maybe as cc to the list. 


regards,

 


joerg


*On Don Aug 9 15:18 , Gregory Edigarov sent:

*

Just want to make a confirmation with two other providers. Also I
observe this behavior with both pppoe(4) and pppoe(8).

Umaxx wrote:
 resend, since stupid webmailer killed linebreaks:



 hi,

 after upgrading my router to -current the dsl pppoe connection
does not work
 anymore.
 userland ppp connects fine but freezes after K30 seconds.
freeze means the
 connection is still there no errors shown in logs and ifconfig
state is normal
 but there is no more incoming traffic. the provider and modem
hardware is ok
 since i'm connected now through a netscreen to write this mail.
i changed
 nothing
 in ppp configuration since years and disabled pf for testing...
same problem.
 as i can see in source changes: not much has changed in userland
ppp and nfe
 code
 since 4.1.

 i read in some forums that it would be better to user kernel
pppoe...
 so i tried to use kernel pppoe as workaround, but its does not
connect. i used
 following configuration in /etc/hostname.pppoe0:

 inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev nfe1 \
 authproto pap authname  authkey  up
 !/sbin/route add default 0.0.0.1

 and of course: up in /etc/hostname.nfe1

 if i enable debug i see a lot of outgoing packages... and then a
timeout after
 a
 while. reconnect and again the same...
 it stays in the sppp phase of establish connection using pap
authname 

 I'm located in germany using arcor as provider.
 anyone else using dsl pppoe (kernel/userland) in current or
latest snapshots -
 maybe in germany with arcor?

 any hints are really welcome.
 dmesg follows

 regards,

 joerg

 OpenBSD 4.2 (GENERIC.MP) #0: Wed Aug 8 17:31:49 CEST 2007
 [EMAIL PROTECTED]
javascript:top.opencompose('[EMAIL 
PROTECTED]','','',''):/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 2145972224 (2046MB)
 avail mem = 2072682496 (1976MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf (78 entries)
 bios0: vendor Phoenix Technologies, LTD version ASUS M2N32-SLI
DELUXE ACPI
 BIOS
 Revision 0603 date 06/27/2006
 bios0: ASUSTeK Computer INC. M2N32-SLI DELUXE
 acpi0 at mainbus0: rev 0
 acpi0: tables DSDT FACP SSDT MCFG APIC
 acpitimer at acpi0 not configured
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2411.34 MHz
 cpu0:


FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
 H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
 cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache,
512KB 64b/line
 16-way L2 cache
 cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully
associative
 cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully
associative
 cpu0: apic clock running at 200MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2410.98 MHz
 cpu1:


FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
 H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
 cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache,
512KB 64b/line
 16-way L2 cache
 cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully
associative
 cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully
associative
 ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 2
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 5 (HUB0)
 acpicpu at acpi0 

Re: chflag operation not permited

2007-08-10 Thread Otto Moerbeek
On Thu, 9 Aug 2007, Aaron P. Martinez wrote:

 Ted Unangst wrote:
  On 3/15/06, Jinxi Cheng [EMAIL PROTECTED] wrote:

   Hi, I'm getting operation not permited when I do this:
   
   # chflags -R schg /bin
   chflags: /bin/chmod: Operation not permitted
   chflags: /bin/md5: Operation not permitted
   chflags: /bin/mt: Operation not permitted
   chflags: /bin/pax: Operation not permitted
   chflags: /bin/rksh: Operation not permitted
   chflags: /bin/rmd160: Operation not permitted
   
  
  you can't change the flags on immutable files. (hint: you already
  changed the flag).
  

 I'm experiencing this as well..  I'm using 4.1 fresh install and I haven't set
 (well now i have, that's how i got this message), i hadn't set anything
 immutable and ls -lo showed no files in /bin with schg set, but upon running
 the
 
 #chflags -R schg /bin
 
 i too get the  above error.  when i do an ls -lo on /bin everything is set
 schg now.
 
 Do these files somehow have the flag set on them at all times, during install,
 hidden flag until you manually run the command on them?
 
 Thanks,
 
 Aaron

These files are hard linked. The firts link succeeds, but the op on
the second one referring to the same file fails. 

-Otto



Re: howto set global environment variable (e.g. PATH, JAVA_HOME)

2007-08-10 Thread Lars Hansson
On 8/10/07, Edd Barrett [EMAIL PROTECTED] wrote:
 Is there a global Xdefaults file which can be made to source every
 users .profile and /etc/profile for xdm logins?

Yes and no. There's a global defaults for X but they deal with X
resources, not enviroment variables. You can set xterm to always use a
login shell, for example, but that does not affect your DE/WM, only
xterm.
It's not hard to create, say, /etc/xprofile and just source that from
Xsession though.

---
Lars Hansson



Re: pppoe problems

2007-08-10 Thread Umaxx
oh this is exactly the same behavior as mine... which architecture did
you use? i use amd64.

On Fre Aug 10 10:40 , Gregory Edigarov sent:

  Hi!

  Umaxx wrote:
  
  
   i hope this stupid webmailer does not send this as html mail
  
   can you please give more details? is your userland ppp connecting?
  did
   you use snapshot or recent current?
  
  Yes, with most recent sources from cvs my userland ppp is
  connecting...
  But hangs shortly.
  First I thought it is the problem in the nfe driver, but after
  switching
  to rl it hangs too. So, it definitely not a problem with underlaying
  device.
  If I ping the other site (no matter which), I could see that it hangs
  after some 25 - 30 (depending on the situation) pings.
  
  
   is your kernel pppoe connecting or what happens exactly?
  
  My kernel mode pppoe even does not connect, though I've tried any
  option
  for many times.

  After looking at sources, it seems like something, in case of
  userland
  ppp, is screwed up with locks, possibly in if_tun.c, but I am not
  sure yet.

  In case of kernelmode pppoe - I can never use it . It never connect
  to
  any of my providers.
  
   maybe as cc to the list.
  
   regards,
  
  
  
   joerg
  
  
   *On Don Aug 9 15:18 , Gregory Edigarov sent:
  
   *
  
   Just want to make a confirmation with two other providers. Also I
   observe this behavior with both pppoe(4) and pppoe(8).
  
   Umaxx wrote:
resend, since stupid webmailer killed linebreaks:
   
   
   
hi,
   
after upgrading my router to -current the dsl pppoe connection
   does not work
anymore.
userland ppp connects fine but freezes after K30 seconds.
   freeze means the
connection is still there no errors shown in logs and ifconfig
   state is normal
but there is no more incoming traffic. the provider and modem
   hardware is ok
since i'm connected now through a netscreen to write this mail.
   i changed
nothing
in ppp configuration since years and disabled pf for testing...
   same problem.
as i can see in source changes: not much has changed in userland
   ppp and nfe
code
since 4.1.
   
i read in some forums that it would be better to user kernel
   pppoe...
so i tried to use kernel pppoe as workaround, but its does not
   connect. i used
following configuration in /etc/hostname.pppoe0:
   
inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev nfe1 \
authproto pap authname  authkey  up
!/sbin/route add default 0.0.0.1
   
and of course: up in /etc/hostname.nfe1
   
if i enable debug i see a lot of outgoing packages... and then a
   timeout after
a
while. reconnect and again the same...
it stays in the sppp phase of establish connection using pap
   authname 
   
I'm located in germany using arcor as provider.
anyone else using dsl pppoe (kernel/userland) in current or
   latest snapshots -
maybe in germany with arcor?
   
any hints are really welcome.
dmesg follows
   
regards,
   
joerg
   
OpenBSD 4.2 (GENERIC.MP) #0: Wed Aug 8 17:31:49 CEST 2007
[EMAIL PROTECTED] .local
   [EMAIL PROTECTED] 
.local','','',''):/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2145972224 (2046MB)
avail mem = 2072682496 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf (78 entries)
bios0: vendor Phoenix Technologies, LTD version ASUS M2N32-SLI
   DELUXE ACPI
BIOS
Revision 0603 date 06/27/2006
bios0: ASUSTeK Computer INC. M2N32-SLI DELUXE
acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP SSDT MCFG APIC
acpitimer at acpi0 not configured
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2411.34 MHz
cpu0:
   
  
  FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
   
  H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache,
   512KB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 2410.98 MHz
cpu1:
   
  
  FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
   
  H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache,
   512KB 64b/line
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully
   associative
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped 

Re: pppoe problems

2007-08-10 Thread Umaxx
hi,

i can show my ppp.conf, because i have the same errors. this config was
working since years, i tried to comment lqr lines today... but changed
nothing in behavior.

default:
 set log Phase Chat IPCP CCP tun command
 set redial 15 0
 set reconnect 15 1

pppoe:
 set device !/usr/sbin/pppoe -i nfe1
 set server /var/run/pppoe  0177
 disable acfcomp protocomp
 deny acfcomp
 set mtu max 1454
 set mru max 1454
 set crtscts off
 set speed sync
 enable lqr
 set lqrperiod 5
 set cd 5
 set dial
 set login
 set timeout 0
 set authname **
 set authkey **
 add! default HISADDR
 enable dns
 resolv readonly
 enable mssfixup 

On Fre Aug 10 16:54 , Gregory Edigarov sent:

  Oops, I am sorry, I cannot show you my ppp.conf. It's at home, and
  the
  pc is now turned off.

  James Lepthien wrote:
   Hi,
  
   Am 10.08.2007 um 09:40 schrieb Gregory Edigarov:
   Yes, with most recent sources from cvs my userland ppp is
   connecting... But hangs shortly.
   First I thought it is the problem in the nfe driver, but after
   switching to rl it hangs too. So, it definitely not a problem with
   underlaying device. If I ping the other site (no matter which), I
   could see that it hangs after some 25 - 30 (depending on the
   situation) pings.
  
   I did not see your ppp.conf but I had a similar problem and my
   connection dropped every now and then. I had to disable the lqr
   setting in my ppp.conf. Since then I never had any problems with my
   connection.
  
   Cheers,
   James
  
  

  --
  With best regards,
  Gregory Edigarov

_
versendet mit www.Oleco.de Mail - Anmeldung und Nutzung kostenlos! Oleco
www.netlcr.de jetzt auch mit SPAMSCHUTZ.



Re: Lenovo 8744-J2U - several questions

2007-08-10 Thread Frank Bax

At 06:36 AM 8/9/07, Eric Elena wrote:


Le mercredi 08 aoC;t 2007 C  10:55 -0400, Frank Bax a C)crit :
 At 04:49 AM 8/7/07, Eric Elena wrote:

 Le lundi 06 aoC;t 2007 C  21:21 -0400, Stephan Andre' a C)crit :
   On Monday 06 August 2007 18:29:12 Matthieu Herrb wrote:
On 8/6/07, Frank Bax [EMAIL PROTECTED] wrote:
 Just got a new Lenovo 8744-J2U laptop and installed the Aug.1 
snapshot:


 vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 
0x71d4 rev

 0x00
   
Oh and I forgot: this is a Mobility FireGL V5250, which is indeed not
supported by the current X.Org ati driver. It should be supported by
the new 'avivo'  driver, but this driver is not yet available for
OpenBSD.
  
   Matthieu,  I'm also looking at the Lenovo T60.  Is the avivo driver
   ready for use, and how much effort is there in incorporating it
   into Xenocara?   I'd really like a new laptop--my A31p is old.
  
   Thanks, STeve Andre'
  
 
 I tested the avivo driver running linux, it works fine with a firegl
 5200 card. There is only one trouble with DPMS: the screen displays
 something weird when it switches off then switches on.
 Running openbsd stable, I use the vesa driver but there is no problem
 here.


 Does your laptop have a wide-screen monitor like mine?

No, my t60p has a normal screen monitor.

 In T60p BIOS, there
 is an option HV expansion which will stretch output to always fill the
 screen.  With this option enabled, I am able to fill the monitor, but
 images do not have proper aspect ratio; so for now I have disabled the 
option.


There is also this option in older thinkpad bios. I have it enabled and
as I said it works fine. What is the resolution you would like to work?



I'm trying to get 1680x1050; but so far only 1280x1024 works at the moment.
dmesg and xorg.conf were in original post, found here:
http://permalink.gmane.org/gmane.os.openbsd.misc/127104
Xorg.0.log is available here:
http://www.execulink.com/~fbax/Xorg.0.log



Re: Intel Core 2 - errata pulled?!?

2007-08-10 Thread Frank Bax

At 11:01 AM 8/8/07, Nick Holland wrote:

Asking Does OpenBSD support my new processor is usually missing the
point.  Ask if it supports your new COMPUTER.  Better yet, get yourself
one of those credit-card CDR blanks, drop cd42.iso on it, and carry
it with you and find out, or on modern computers (duh, which we are
talking about, right?), grab a USB flash drive, and put a test install
on that, and you can boot the entire OS, test X, NIC, whatever, and
grab a dmesg, drop it on disk and analyze it later.




Excellent idea; except there is only one Lenovo laptop (its a C300) on 
display in computers stores in the city I live. 



Re: pppoe problems

2007-08-10 Thread Umaxx
Hi,

On Don Aug 9 10:55 , Can Erkin Acar sent:

  Umaxx wrote:
   hi,
  
   after upgrading my router to -current the dsl pppoe connection does
  not work
   anymore.
   userland ppp connects fine but freezes after K30 seconds. freeze
  means the
   connection is still there no errors shown in logs and ifconfig
  state is normal
   but there is no more incoming traffic. the provider and modem
  hardware is ok
   since i'm connected now through a netscreen to write this mail. i
  changed
   nothing
   in ppp configuration since years and disabled pf for testing...
  same problem.
   as i can see in source changes: not much has changed in userland
  ppp and nfe
   code
   since 4.1.

  I would suggest you try with a different ethernet card if possible
  just to rule out that possibility. Have you checked your cables?
  You can also try to experiment with media settings (speed/duplex)
  of your card.

  I tried with different settings for example 10 baseT on nfe1, no
  difference.

  I have no other ethernet card around here, but Gregory Edigarov tried
  that already, no difference too.

 i read in some forums that it would be better to user kernel
pppoe...
 so i tried to use kernel pppoe as workaround, but its does not
connect. i used
 following configuration in /etc/hostname.pppoe0:

 inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev nfe1 \
 authproto pap authname  authkey  up
 !/sbin/route add default 0.0.0.1

Please read pppoe(4) for -current, you need to add -ifp pppoe0
in -current
to your route command.

  Yes I know the manpage, I tried that already before. I copy and
  pasted the lines from manpage, was not working too. The above example
  was the fifth attempt :)

First test using a kernel from the latest snapshot. With and
without MP.
This will make sure we are testing/debugging the same thing.

  I tried with and without MP and with enabled and disabled ACPI,
  everytime the same results. I downgraded (yes, I know its not
  suggested) to latest snapshots, same results, not working. Now I'm
  back on -current.

If your problem persists, please send me the debug outputs
from /var/log/messages after ifconfig pppoe0 debug
and the binary tcpdump of a session:

tcpdump -w pppoe.dump -i nfe1 not ip

  I send you the debug output in an extra mail not on the list.

  Thanks for your help,

  Cheers,

  Joerg 

  _
  versendet mit www.Oleco.de Mail - Anmeldung und Nutzung kostenlos!
  Oleco www.netlcr.de jetzt auch mit SPAMSCHUTZ.



Changes to sysctl mibs recently?

2007-08-10 Thread asmith
Hi,

I'm wondering if anyone can tell me about any recent changes in the sysctl mibs.

I notice that the current snapshot on my Zaurus doesn't seem to handle 
machdep.maxspeed any more and just says 'value is not available'.

OpenBSD 4.2 (GENERIC) #158: Wed Aug  8 15:32:05 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/zaurus/compile/GENERIC...

etc.

I also built a kernel and a new copy of sysctl from CVS and this doesn't seem 
to fix it either (although I haven't built the whole distro yet)

sysctl machdep seems to report only..

midge# sysctl machdep
machdep.debug=0
machdep.console_device=ttyC0
machdep.allowaperture=0
machdep.apmwarn=10
machdep.kbdreset=1
machdep.radix=0

Any ideas?


-Andy



Re: pppoe problems

2007-08-10 Thread Gregory Edigarov
Oops, I am sorry, I cannot show you my ppp.conf. It's at home, and the 
pc is now turned  off.


James Lepthien wrote:

Hi,

Am 10.08.2007 um 09:40 schrieb Gregory Edigarov:
Yes, with most recent sources from cvs my userland ppp is 
connecting... But hangs shortly.
First I thought it is the problem in the nfe driver, but after 
switching to rl it hangs  too.  So, it definitely not a problem with 
underlaying device. If I ping the other site (no matter which), I 
could see that it hangs after  some 25 - 30 (depending on the 
situation) pings.


I did not see your ppp.conf but I had a similar problem and my 
connection dropped every now and then. I had to disable the lqr 
setting in my ppp.conf. Since then I never had any problems with my 
connection.


Cheers,
James




--
With best regards,
   Gregory Edigarov



Re: Changes to sysctl mibs recently?

2007-08-10 Thread Andrew Smith

Thanks,

But no, this isn't the case on the Zaurus.

The hw.cpuspeed sysctl is a read only value.

The machdep.maxspeed was introduced to scale up and down the hw.setperf 
parameter on this system.


The Zaurus normally operates at 416Mhz, the sysctl.conf contains the line 
machdep.maxspeed=520 on the Zaurus.


I was going to set the maxspeed at that (worked on previous kernels) and the 
setperf value at 80 and vary it to 100 when I was running a build (along 
with atactl /dev/wd0c writecacheenable - I'm using a SanDisk Ultra III which 
provides write cache, can't remember if the Microdrive did).


Any more thoughts folks?

-Andy
- Original Message - 
From: Chris Kuethe [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Sent: Friday, August 10, 2007 4:51 PM
Subject: Re: Changes to sysctl mibs recently?



i think you might belooking in the wrong place... my zaurus is at home
right now, but on every other machine i have with adjustable cpu speed
the controls are hw.cpuspeed and hw.setperf.

CK

On 8/10/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

Hi,

I'm wondering if anyone can tell me about any recent changes in the 
sysctl mibs.


I notice that the current snapshot on my Zaurus doesn't seem to handle 
machdep.maxspeed any more and just says 'value is not available'.


OpenBSD 4.2 (GENERIC) #158: Wed Aug  8 15:32:05 MDT 2007

[EMAIL PROTECTED]:/usr/src/sys/arch/zaurus/compile/GENERIC...

etc.

I also built a kernel and a new copy of sysctl from CVS and this doesn't 
seem to fix it either (although I haven't built the whole distro yet)


sysctl machdep seems to report only..

midge# sysctl machdep
machdep.debug=0
machdep.console_device=ttyC0
machdep.allowaperture=0
machdep.apmwarn=10
machdep.kbdreset=1
machdep.radix=0

Any ideas?


-Andy





--
GDB has a 'break' feature; why doesn't it have 'fix' too?




Re: searching packages? pkg_grep?

2007-08-10 Thread John Wright
On Thu, Aug 09, 2007 at 11:24:45AM -0700, John N. Brahy wrote:
  I use alias pkg_search=echo ls | ftp -a \$PKG_PATH | sed 's/.*\ //g'
 | grep -i.
 
 That's exactly what I was looking for.

Note that you should be able to find an index.txt file in the packages
directory which I've found to be quicker to fetch than an ls.



Re: howto set global environment variable (e.g. PATH, JAVA_HOME)

2007-08-10 Thread Edd Barrett
On 09/08/07, Lars Hansson [EMAIL PROTECTED] wrote:
 If you're using xdm things are different though. The Xsession script
 does not source any global files so you'll have to modify it to source
 /etc/profile.

Is there a global Xdefaults file which can be made to source every
users .profile and /etc/profile for xdm logins?

-- 
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett



Re: howto set global environment variable (e.g. PATH, JAVA_HOME)

2007-08-10 Thread Pierre-Yves Ritschard
On Fri, 10 Aug 2007 09:11:55 +0100
Edd Barrett [EMAIL PROTECTED] wrote:

 On 09/08/07, Lars Hansson [EMAIL PROTECTED] wrote:
  If you're using xdm things are different though. The Xsession script
  does not source any global files so you'll have to modify it to
  source /etc/profile.
 
 Is there a global Xdefaults file which can be made to source every
 users .profile and /etc/profile for xdm logins?
 
Yes: /etc/X11/app-defaults/XTerm, you can use LoginShell: true
there.



Re: Possible mug in mini_sendmail-chroot.

2007-08-10 Thread Henning Brauer
* Matt [EMAIL PROTECTED] [2007-08-09 20:59]:
 However I can not seem to get the extra headers (mentioned in the MAN 
 page) to work.
 I've looked at the source code and I see things like the URI called etc. 
 but I do not see them in my mailheaders.
 Is there a specific trick I am missing?

femail can only add them when they are in the environment. that is true 
for cgis, but not php w/ mod_php.

-- 
Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg  Amsterdam



Re: various lamo questions from a shiny new person

2007-08-10 Thread Joachim Schipper
On Fri, Aug 10, 2007 at 12:18:36AM +0100, poncenby wrote:
 List

 What options are there when you have multiple IP addresses and 1 openbsd 
 4.1 box with two NICs acting as a firewall?  The Internet goes into NIC1 
 and a switch (with boxes plugged in) goes into NIC2 (10/8 address range). 
 Is the alias command used in hostname.if files the only way of utilising 
 these multiple IPs and guaranteeing the openbsd firewall is protecting the 
 boxes plugged into the switch on NIC2?

No, you can also use plain routing or create a bridge, as Nick pointed
out. Routing is likely to be easiest.

 and also, am I right in thinking rdr in PF is for forwarding individual 
 ports and binat is best used for directing all traffic to an external IP to 
 an internal address? can this internal address be a public IP or RFC1918?

Those are the most common uses for rdr and binat, yes. But do note that
if you have sufficient external IP addresses, you do not need any form
of NAT.

Joachim

-- 
TFMotD: vic (4) - VMware VMXnet Virtual Interface Controller device



Re: pppoe problems

2007-08-10 Thread James Lepthien

Hi,

Am 10.08.2007 um 19:42 schrieb Umaxx:



hi,


i can show my ppp.conf, because i have the same errors. this config  
was working since years, i tried to comment lqr lines today... but  
changed nothing in behavior.


default:
 set log Phase Chat IPCP CCP tun command
 set redial 15 0
 set reconnect 15 1

pppoe:
 set device !/usr/sbin/pppoe -i nfe1
 set server /var/run/pppoe  0177
 disable acfcomp protocomp
 deny acfcomp
 set mtu max 1454
 set mru max 1454
 set crtscts off
 set speed sync
 enable lqr
 set lqrperiod 5
 set cd 5
 set dial
 set login
 set timeout 0
 set authname **
 set authkey **
 add! default HISADDR
 enable dns
 resolv readonly
 enable mssfixup




Try deleting these two statements:


 enable lqr
 set lqrperiod 5


The default is that these settings are disabled then and if it is  
required they are automatically added. Since I disabled those two  
settings my pppoe connection runs flawlessly.


Hope that helps.

Cheers,
James



Re: pppoe problems

2007-08-10 Thread James Lepthien

Hi,

Am 10.08.2007 um 09:40 schrieb Gregory Edigarov:
Yes, with most recent sources from cvs my userland ppp is  
connecting... But hangs shortly.
First I thought it is the problem in the nfe driver, but after  
switching to rl it hangs  too.  So, it definitely not a problem  
with underlaying device. If I ping the other site (no matter  
which), I could see that it hangs after  some 25 - 30 (depending on  
the situation) pings.


I did not see your ppp.conf but I had a similar problem and my  
connection dropped every now and then. I had to disable the lqr  
setting in my ppp.conf. Since then I never had any problems with my  
connection.


Cheers,
James



Re: Pendrive detecting and mount script

2007-08-10 Thread Andrei GUDIU

This is madness ! :) the mount_umass rocks, it's worth reading it.

smonek wrote:

Hello this is my script to auto mount pendrives / usbdrivs
Script work ony with MSDOS fs
Script detecting all partitions betewn a: and l: on sd0 ,sd1 ,sd2 ,sd3


First time you must run this script as a root or manula created /umass catalog
and chmod 766 /umass

www.0penbsd.pl/webs/download/mount_umass
www.0penbsd.pl/webs/download/umount_umass


Szymon Nowak
www.0penbsd.pl
www.0penbsd.pl/forum




Re: searching packages? pkg_grep?

2007-08-10 Thread Edd Barrett
On 09/08/07, Bernd Ahlers [EMAIL PROTECTED] wrote:
 Read the pkg_info(1) manpage and look for the -Q option.

I've been looking for this functionality for ages!

Thanks!


-- 
Best Regards

Edd

---
http://students.dec.bournemouth.ac.uk/ebarrett