crontab mail

2011-02-01 Thread Leslie Jensen

If I specify
MAILTO=email@my.domain

in roots crontab.

I'll recieve mail when cron runs what I've asked it to.

With
MAILTO=root

Mails are delivered to the local mailbox on the system


In /etc/postfix/aliases I have
root:   email@my.domain

I've executed newaliases at the command prompt.


Has anyone got an idea on why I can't get the mails to root to my 
external mail address?


Thanks

/Leslie



Re: NO-IP not updating!

2011-01-31 Thread Leslie Jensen

On 2011-01-27 16:39, Orestes Leal R. wrote:

On Wed, Jan 26, 2011 at 10:56:02AM +0100, Leslie Jensen wrote:

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me
at the end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2 

echo '.'
--

When the machine is booted I get the mail, but I do not get the
updates every 30 minutes as I should.


I don't think the mail gets to you, if you run noip2 without the ''
I think it will work, you put the process in background and
that why the mail can't get delivered for some reason. this happens
to me in other situations.


Top shows the process
6013 _noip 2 0 428K 916K idle select 0:00 0.00% noip2

Everything looks fine, but note that you didn't get noip from ports (so
it may be incompatible with OpenBSD). Try posting your configuration,
running noip in debug mode (if it has one), or switching to
net/ddclient.

Joachim






I tried you suggestion with removing the '' but it had no effect what 
so ever.

I'll try out the suggestion with debug mode.

/Leslie



Re: NO-IP not updating!

2011-01-31 Thread Leslie Jensen

On 2011-01-26 19:05, Jeff Ross wrote:

On 01/26/11 10:44, Leslie Jensen wrote:

Abel Abraham Camarillo Ojeda skrev 2011-01-26 16:39:

On Wed, Jan 26, 2011 at 3:56 AM, Leslie Jensenles...@eskk.nu wrote:

Hello list.

I'm quite new to Openbsd, have used Freebsd for a while.

I have a newly installed Openbsd system.
OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me
at the
end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2

echo '.'
--

When the machine is booted I get the mail, but I do not get the updates
every 30 minutes as I should.

I cannot see if the the daemon starts because the line at the startup

screen

shows only starting local daemons:,

The command:
# ps -aux | grep noip

Gives

_noip B B 6013 B 0.0 B 0.2 B 428 B 916 ?? B Is B B 10:04AM B

B 0:00.01

/usr/local/sb

Top shows the process
6013 _noip B B B 2 B B 0 B 428K B 916K idle B B B select B B 0:00

B 0.00% noip2


If I kill that process and start noip2 from the command line it also
sends
the mail at start up but not after the following 30 minutes.

I'm not sure whether noip is running every 30 minutes I've been tailing
/var/log/messages and I cannot see anything related to noip there.

Can anyone on this list point me in the right direction?

Thanks

/Leslie




cron(8), maybe?


It is supposed to work as a daemon with no need for cron!
/L


!DSPAM:4d405e91283431811913398!



ktrace the process.

man ktrace and pay attention to how to stop the ktrace process

and

man kdump to see how to read the output.

Hope that helps!

Jeff


I tried ktrace and I could see that things happened with the update 
interval on noip2 set to 2 minutes.


Unfortunately I'm no master at interpreting the output ;-)

Here's an output from ktrace:

--
# kdump
 11273 noip2EMUL  native
 11273 noip2RET   select 0
 11273 noip2CALL  gettimeofday(0x7f7c1960,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c1960,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  stat(0x20fbe0076,0x7f7c1a00)
 11273 noip2NAMI  /etc/resolv.conf
 11273 noip2RET   stat 0
 11273 noip2CALL  gettimeofday(0x7f7c1910,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  open(0x20fbdd713,0,0x1b6)
 11273 noip2NAMI  /etc/hosts
 11273 noip2RET   open 1
 11273 noip2CALL  fstat(0x1,0x7f7c1d50)
 11273 noip2RET   fstat 0
 11273 noip2CALL  mprotect(0x205729000,0x1000,0x3)
 11273 noip2RET   mprotect 0
 11273 noip2CALL  mprotect(0x205729000,0x1000,0x1)
 11273 noip2RET   mprotect 0
 11273 noip2CALL  read(0x1,0x208422000,0x4000)
 11273 noip2GIO   fd 1 read 310 bytes
   #   $OpenBSD: hosts,v 1.12 2009/03/10 00:42:13 deraadt Exp $
#
# Host Database
#
# RFC 1918 specifies that these networks are internal.
# 10.0.0.0  10.255.255.255
# 172.16.0.0172.31.255.255
# 192.168.0.0   192.168.255.255
#
127.0.0.1   localhost
::1 localhost
172.18.0.1  machine01.no-ip.org machine01
   
 11273 noip2RET   read 310/0x136
 11273 noip2CALL  read(0x1,0x208422000,0x4000)
 11273 noip2RET   read 0
 11273 noip2CALL  close(0x1)
 11273 noip2RET   close 0
 11273 noip2CALL  gettimeofday(0x7f7c18c0,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c1050,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c0bd0,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c0ac0,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c1090,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  getpid()
 11273 noip2RET   getpid 11273/0x2c09
 11273 noip2CALL  getpid()
 11273 noip2RET   getpid 11273/0x2c09
 11273 noip2CALL  getpid()
 11273 noip2RET   getpid 11273/0x2c09
 11273 noip2CALL  getpid()
 11273 noip2RET   getpid 11273/0x2c09
 11273 noip2CALL  getpid()
 11273 noip2RET   getpid 11273/0x2c09
 11273 noip2CALL  gettimeofday(0x7f7c1080,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  gettimeofday(0x7f7c08b0,0)
 11273 noip2RET   gettimeofday 0
 11273 noip2CALL  socket(0x2,0x2,0)
 11273 noip2RET   socket 1
 11273 noip2CALL  connect(0x1,0x20ff1c918,0x10)
 11273 noip2RET   connect 0
 11273 noip2CALL  sendto(0x1,0x7f7c11f0,0x25,0,0,0)
 11273 noip2GIO   fd 1 wrote 37 bytes
   \M^N\M^B\^A\0\0\^A\0\0\0\0\0\0 
dynupdate\^Eno-ip\^Ccom\0\0\^A\0

Re: NO-IP not updating!

2011-01-27 Thread Leslie Jensen

On 2011-01-27 14:41, Joachim Schipper wrote:

On Wed, Jan 26, 2011 at 10:56:02AM +0100, Leslie Jensen wrote:

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me
at the end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2

echo '.'
--

When the machine is booted I get the mail, but I do not get the
updates every 30 minutes as I should.



Top shows the process
6013 _noip  20  428K  916K idle  select0:00  0.00% noip2


Everything looks fine, but note that you didn't get noip from ports (so
it may be incompatible with OpenBSD). Try posting your configuration,
running noip in debug mode (if it has one), or switching to
net/ddclient.

Joachim



I did get NO-IP from ports! I check out your suggestion.
Thanks :-)



NO-IP not updating!

2011-01-26 Thread Leslie Jensen

Hello list.

I'm quite new to Openbsd, have used Freebsd for a while.

I have a newly installed Openbsd system.
OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me at 
the end of the updating of the address.


So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2 

echo '.'
--

When the machine is booted I get the mail, but I do not get the updates 
every 30 minutes as I should.


I cannot see if the the daemon starts because the line at the startup 
screen shows only starting local daemons:,


The command:
# ps -aux | grep noip

Gives

_noip 6013  0.0  0.2   428   916 ??  Is10:04AM0:00.01 
/usr/local/sb


Top shows the process
6013 _noip  20  428K  916K idle  select0:00  0.00% noip2

If I kill that process and start noip2 from the command line it also 
sends the mail at start up but not after the following 30 minutes.


I'm not sure whether noip is running every 30 minutes I've been tailing 
/var/log/messages and I cannot see anything related to noip there.


Can anyone on this list point me in the right direction?

Thanks

/Leslie



Re: NO-IP not updating!

2011-01-26 Thread Leslie Jensen

Abel Abraham Camarillo Ojeda skrev 2011-01-26 16:39:

On Wed, Jan 26, 2011 at 3:56 AM, Leslie Jensenles...@eskk.nu  wrote:

Hello list.

I'm quite new to Openbsd, have used Freebsd for a while.

I have a newly installed Openbsd system.
OpenBSD machine01.no-ip.org 4.8 GENERIC.MP#335 amd64

Upon installation of noip I ran the command noip2 -C to configure it.

I want noip to run a script every 30 minutes that sends a mail to me at the
end of the updating of the address.

So I choose the settings accordingly when configuring noip.

I've put the following in my /etc/rc.local

--
# Add your local startup actions here.

/usr/local/sbin/noip2

echo '.'
--

When the machine is booted I get the mail, but I do not get the updates
every 30 minutes as I should.

I cannot see if the the daemon starts because the line at the startup

screen

shows only starting local daemons:,

The command:
# ps -aux | grep noip

Gives

_noip B  B  6013 B 0.0 B 0.2 B  428 B  916 ?? B Is B  B 10:04AM B

B 0:00.01

/usr/local/sb

Top shows the process
6013 _noip B  B  B 2 B  B 0 B 428K B 916K idle B  B  B select B  B 0:00

B 0.00% noip2


If I kill that process and start noip2 from the command line it also sends
the mail at start up but not after the following 30 minutes.

I'm not sure whether noip is running every 30 minutes I've been tailing
/var/log/messages and I cannot see anything related to noip there.

Can anyone on this list point me in the right direction?

Thanks

/Leslie




cron(8), maybe?


It is supposed to work as a daemon with no need for cron!
/L



Re: OpenBSD 4.8 can't find CD drive on Dell Latitude E6500

2010-11-10 Thread Leslie Jensen

Nick Holland skrev 2010-11-10 03:02:

On 11/09/10 13:02, Leslie Jensen wrote:



On 2010-11-09 18:00, Nick Holland wrote:

On 11/09/10 10:37, Leslie Jensen wrote:
...

Now I want to make an installation on a USB stick using the amd64
installation CD.

...

Then comes the question of installation media and the choices are ftp
http or done.

I can do the installation via http so I'm ok. But I am wondering how do
I do in order to find the CD-rom drive. My plan is to install OpenBSD on
this machine in the future.


booting from the CD is handled by the system BIOS, OpenBSD doesn't need
to know how to access the CD to boot, as it isn't running at this point.
Installing from the CD requires that OpenBSD be able to access the disk.

It seems, for unknown reasons, there's something odd about your
computer, and OpenBSD is not recognizing the CDROM.

Install via network as you propose, then post the dmesg output,
hopefully we can figure out where your CDROM is hiding and why it won't
come out and play. As the CD and the disk system share the same
interface, I wonder if your disk is going to be recognized at this point.

Nick.



This is what I've done! Boot from USB stick with hard drive present,
both i386 and amd64.

Issued command dmesg; sysctl hw.sensors  dmesg_file_name.txt

I noticed that the dmesg info did not make it to the file so I also did

dmesg  dmesg_file_name.txt

After that I booted FreeBSD and did

dmesg  dmesg_file_name.txt

The files are attached, if you need more info, let me know.

Thanks

/Leslie


Interesting.  No disks at all, hard or optical.

I think the clue might be here:
pciide0 at pci0 dev 31 function 2 Intel 82081HBM RAID rev 0x03: DMA, channel 
0 wired to native-PCI, channel 1 wired to native-PCI
pciide0: using apic 2 int 19 (irq 10) for native-PCI interrupt

I'm wondering if this little bit might be the issue:
http://www.openbsd.org/faq/upgrade48.html#ahci-raid

# ahci(4) no longer attaches to RAID-mode disks:
To avoid risk of corrupting metadata on certain Intel RAID
devices, ahci(4) no longer attaches to the PCI device IDs
used by these controllers when set to RAID mode. If your
SATA disk is attached to a ahci(4) contoller in RAID mode,
it will vanish as part of the upgrade and require resetting
the BIOS controller type to AHCI to get it back.

Does your BIOS, by any chance, have a RAID mode option?  Seems
kinda odd for a laptop, but I'm short of other ideas, and that
sure sounds like it fits.  This is new for 4.8, you might want
to try booting a 4.7 bsd.rd kernel and see if that sees your
disks.

Nick.


I have put a picture of the BIOS settings here:

http://www.eskk.nu/gallery/?album=/bios/picture=IMAG0115.jpgfullsize=0

Please advise me on what you think would be the best setting. Keeping in 
mind that I do not want to corrupt data on the hard drive.


Thanks

/Leslie



SOLVED Re: OpenBSD 4.8 can't find CD drive on Dell Latitude E6500

2010-11-10 Thread Leslie Jensen

On 2010-11-10 11:14, Anders Trobdck wrote:



I'm running 4.8 on a E6500 and my cd are working just fine but I'm
using the AHCI mode!


Br/Anders



Thank you all who replied, with you help I have managed to solve my 
problem. :-)


With a lot of fiddeling with Win7 after Goggle had found people with the 
same problem, I managed to get Win7 to start with bios set to AHCI.


OpenBSD 4.8 now finds all the drives and I'm happy :-)

Thanks :-)

/Leslie



OpenBSD 4.8 can't find CD drive on Dell Latitude E6500

2010-11-09 Thread Leslie Jensen

Hello list.

I'm quite new to OpenBSD, have made one installation in Virtualbox plus 
an installation on a USB stick on a 32-bit pc.


Now I want to make an installation on a USB stick using the amd64 
installation CD.


The machine Dell Latitude E6500 is currently running Win7 plus FreeBSD 
8.1 in a dual boot configuration.


I removed the hard drive not to make a mistake, inserted the CD and the 
USB stick.


Installation starts, when asked how to install on the stick I those use 
the whole (w) drive.


Then comes the question of installation media and the choices are ftp 
http or done.


I can do the installation via http so I'm ok. But I am wondering how do 
I do in order to find the CD-rom drive. My plan is to install OpenBSD on 
this machine in the future.


Thanks

/Leslie



Re: OpenBSD 4.8 can't find CD drive on Dell Latitude E6500

2010-11-09 Thread Leslie Jensen
On 2010-11-09 18:00, Nick Holland wrote:
 On 11/09/10 10:37, Leslie Jensen wrote:
 ...
 Now I want to make an installation on a USB stick using the amd64
 installation CD.
 ...
 Then comes the question of installation media and the choices are ftp
 http or done.

 I can do the installation via http so I'm ok. But I am wondering how do
 I do in order to find the CD-rom drive. My plan is to install OpenBSD on
 this machine in the future.

 booting from the CD is handled by the system BIOS, OpenBSD doesn't need
 to know how to access the CD to boot, as it isn't running at this point.
 Installing from the CD requires that OpenBSD be able to access the disk.

 It seems, for unknown reasons, there's something odd about your
 computer, and OpenBSD is not recognizing the CDROM.

 Install via network as you propose, then post the dmesg output,
 hopefully we can figure out where your CDROM is hiding and why it won't
 come out and play. As the CD and the disk system share the same
 interface, I wonder if your disk is going to be recognized at this point.

 Nick.


This is what I've done! Boot from USB stick with hard drive present, 
both i386 and amd64.

Issued command dmesg; sysctl hw.sensors  dmesg_file_name.txt

I noticed that the dmesg info did not make it to the file so I also did

dmesg  dmesg_file_name.txt

After that I booted FreeBSD and did

dmesg  dmesg_file_name.txt

The files are attached, if you need more info, let me know.

Thanks

/Leslie
hw.sensors.cpu0.temp0=39.00 degC
hw.sensors.cpu1.temp0=39.00 degC
hw.sensors.acpitz0.temp0=44.50 degC (zone temperature)
hw.sensors.acpiac0.indicator0=On (power supply)
OpenBSD 4.8 (GENERIC.MP) #335: Mon Aug 16 09:09:20 MDT 2010
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3744780288 (3571MB)
avail mem = 3631280128 (3463MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf6530 (57 entries)
bios0: vendor Dell Inc. version A24 date 08/19/2010
bios0: Dell Inc. Latitude E6500
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET DMAR APIC ASF! MCFG TCPA SLIC SSDT
acpi0: wakeup devices PCI0(S4) PCIE(S4) USB1(S0) USB2(S0) USB3(S0) USB4(S0) 
USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S4) RP02(S4) RP03(S4) 
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 P9500 @ 2.53GHz, 2527.40 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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG
cpu0: 6MB 64b/line 16-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P9500 @ 2.53GHz, 2527.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,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG
cpu1: 6MB 64b/line 16-way L2 cache
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
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 13 (RP03)
acpiprt5 at acpi0: bus 14 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature 107 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpivideo0 at acpi0: VID_
acpivout0 at acpivideo0: CRT_
acpivout1 at acpivideo0: LCD_
acpivout2 at acpivideo0: DVI_
acpivout3 at acpivideo0: DVI2
acpivout4 at acpivideo0: DP__
acpivout5 at acpivideo0: DP2_
acpivideo1 at acpi0: VID_
acpivout6 at acpivideo1: CRT_
acpivout7 at acpivideo1: LCD_
acpivout8 at acpivideo1: DP__
acpivout9 at acpivideo1: DP2_
acpivout10 at acpivideo1: DVI_
acpivout11 at acpivideo1: DVI2
acpivideo2 at acpi0: VID2
cpu0: Enhanced SpeedStep 2527 MHz: speeds: 2535, 2534, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: apic 2 int 16 (irq 0)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 NVIDIA Quadro NVS 160m rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 25 function 0 Intel ICH9 IGP M AMT rev 0x03: apic 2 int 22 
(irq 11), address 00:21:70:a9:4a:12
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2 int 20 (irq 
10)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2 int 21 (irq 
3