Re: [9fans] plan9 httpd/pegasus on unix?

2008-02-25 Thread maht

for an unlikely value for best

this one will get you started, and it's pretty secure once you've
learned how to chroot it and run it from tcpserver

http://www.proweb.co.uk/~matt/rc/webserver.rc

for CGI it's a matter of adding if(test -x $file) and going from there :)






Re: [9fans] plan9 httpd/pegasus on unix?

2008-02-25 Thread ron minnich
I run my web site on plan9. After watching my friends suffer through
all the security warnings that come with apache, php, and all the
other little bits that go with *nix web servers, I feel like I made an
easier choice.

Latest one for one site: We blocked the ports to your web server, you
were running php x.y.4 and you need to run x.y.5. And, of course,
x.y.5 didn't bulid correctly on macos ... ah fun.

ron


[9fans] Plan 9 on Fit-PC

2008-02-25 Thread sqweek
 I ordered a fit-pc recently to replace my old noisy server, and
figured I should do the right thing and give plan9 a chance before
installing netbsd or somethnig.
 It has proven a bit awkward to bootstrap with no IDE/floppy slots to
plug in to, but eventually I worked out if you plug a usb cd drive in
and tell the BIOS there's an IDE Primary slave and to boot from
CDROM it actually boots from the usb...
 So I stuck the PLAN 9 - FEB 8 2008 04:01 iso in, and it gets this far:

PBS1...Plan 9 from Bell Labs
ELCR: 0E20

 And freezes.

 I also tried to netboot from my existing cpu/auth/file server. The
netboot ROM on the ethernet downloads the kernel but couldn't seem to
find a spot in memory to put it[1], so I grabbed gPXE 0.9.3 from
http://www.etherboot.org/ and built an ISO. The last thing I see there
is Booting from /386/9pc... and then the machine reboots. I'm not
sure if this is even getting the whole kernel... last line in
/sys/log/ipboot is:

phoenix Feb 26 00:24:43 send file '/386/9pc' octet to 192.168.1.11!1024

 THNX might be another option for bootstrap, or at least useful for
getting the plan 9 bootloader on the MBR - I have it on a usb stick
and got it running with a bit of messing around.
 Finally, the thing has a serial port, but I don't know how to use those things.

 Does it sound like this hardware is likely to run plan 9?

-sqweek

[1] segment [009DC00,009DE00) does not fit in any memory region


Re: [9fans] Plan 9 on Fit-PC

2008-02-25 Thread erik quanstrom
  I also tried to netboot from my existing cpu/auth/file server. The
 netboot ROM on the ethernet downloads the kernel but couldn't seem to
 find a spot in memory to put it[1], so I grabbed gPXE 0.9.3 from
 http://www.etherboot.org/ and built an ISO. The last thing I see there
 is Booting from /386/9pc... and then the machine reboots. I'm not
 sure if this is even getting the whole kernel... last line in
 /sys/log/ipboot is:

that went by a bit fast for me.

do you mean that you are pxe loading 9pxeload but the bios pxeloader
can't find a place for 9pxeload in memory?  or that 9pxeload loaded but
couldn't load the kernel?  the plan 9 kernel can't be pxe loaded directly.
it's too big  l.s doesn't handle real mode.

- erik


Re: [9fans] Plan 9 on Fit-PC

2008-02-25 Thread ron minnich
can you boot a standalone linux and
cat /proc/cpuinfo
and
lspci
and
lspci -v

thanks

ron


Re: [9fans] plan9 httpd/pegasus on unix?

2008-02-25 Thread John Barham
ron minnich wrote:
 I run my web site on plan9. After watching my friends suffer through
  all the security warnings that come with apache, php, and all the
  other little bits that go with *nix web servers, I feel like I made an
  easier choice.

If you just want to serve static content on Unix/FreeBSD, Dan
Bernstein's HTTP server in his publicfile package
(http://cr.yp.to/publicfile.html) is one option.  Considering his
reputation for writing secure software it's probably as good a choice
as any.

  John


Re: [9fans] plan9 httpd/pegasus on unix?

2008-02-25 Thread lejatorn
Yeah I wish I could. But I'm really doing a lot of torrenting and I
can't afford to have another server at home dedicated for that (would be
too noisy), so both the torrenting and the webserving have to be on the
same machine. Hence FreeBSD and not plan9... :/

On Mon, Feb 25, 2008 at 07:25:57AM -0800, ron minnich wrote:
 I run my web site on plan9. After watching my friends suffer through
 all the security warnings that come with apache, php, and all the
 other little bits that go with *nix web servers, I feel like I made an
 easier choice.
 
 Latest one for one site: We blocked the ports to your web server, you
 were running php x.y.4 and you need to run x.y.5. And, of course,
 x.y.5 didn't bulid correctly on macos ... ah fun.
 
 ron

-- 
GPG key on subkeys.pgp.net:

KeyID:  | Fingerprint:
683DE5F3 | 4324 5818 39AA 9545 95C6 09AF B0A4 DFEA 683D E5F3
--


Re: [9fans] plan9 httpd/pegasus on unix?

2008-02-25 Thread Kernel Panic

[EMAIL PROTECTED] wrote:


Yeah I wish I could. But I'm really doing a lot of torrenting and I
can't afford to have another server at home dedicated for that (would be
too noisy), so both the torrenting and the webserving have to be on the
same machine. Hence FreeBSD and not plan9... :/
 

now here is a reason for you to port/write bittorrent software for 
Plan9! ;-)


cinap



Re: [9fans] Plan 9 on Fit-PC

2008-02-25 Thread sqweek
On Tue, Feb 26, 2008 at 1:19 AM, ron minnich [EMAIL PROTECTED] wrote:
 can you boot a standalone linux and
  cat /proc/cpuinfo

processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 5
model   : 10
model name  : Geode(TM) Integrated Processor by AMD PCS
stepping: 2
cpu MHz : 499.932
cache size  : 128 KB
fdiv_bug: no
hlt_bug : no
f00f_bug: no
coma_bug: no
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu de pse tsc msr cx8 sep pge cmov clflush mmx mmxext
3dnowext 3dnow up
bogomips: 1001.46
clflush size: 32

  and
  lspci

00:01.0 Host bridge: Advanced Micro Devices [AMD] CS5536 [Geode
companion] Host Bridge (rev 31)
00:01.1 VGA compatible controller: Advanced Micro Devices [AMD] Geode LX Video
00:01.2 Entertainment encryption device: Advanced Micro Devices [AMD]
Geode LX AES Security Block
00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
00:0e.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
00:0f.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode
companion] ISA (rev 03)
00:0f.2 IDE interface: Advanced Micro Devices [AMD] CS5536 [Geode
companion] IDE (rev 01)
00:0f.3 Multimedia audio controller: Advanced Micro Devices [AMD]
CS5536 [Geode companion] Audio (rev 01)
00:0f.4 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode
companion] OHC (rev 02)
00:0f.5 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode
companion] EHC (rev 02)

  and
  lspci -v

00:01.0 Host bridge: Advanced Micro Devices [AMD] CS5536 [Geode
companion] Host Bridge (rev 31)
Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] Host 
Bridge
Flags: bus master, 66MHz, medium devsel, latency 248

00:01.1 VGA compatible controller: Advanced Micro Devices [AMD] Geode
LX Video (prog-if 00 [VGA])
Subsystem: Advanced Micro Devices [AMD] Geode LX Video
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 11
Memory at e000 (32-bit, non-prefetchable) [size=16M]
Memory at e100 (32-bit, non-prefetchable) [size=16K]
Memory at e1004000 (32-bit, non-prefetchable) [size=16K]
Memory at e1008000 (32-bit, non-prefetchable) [size=16K]
Memory at e100c000 (32-bit, non-prefetchable) [size=16K]

00:01.2 Entertainment encryption device: Advanced Micro Devices [AMD]
Geode LX AES Security Block
Subsystem: Advanced Micro Devices [AMD] Geode LX AES Security Block
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 11
Memory at e101 (32-bit, non-prefetchable) [size=16K]

00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 64, IRQ 10
I/O ports at f800 [size=256]
Memory at e1014000 (32-bit, non-prefetchable) [size=256]
Capabilities: access denied

00:0e.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 64, IRQ 5
I/O ports at f400 [size=256]
Memory at e1014100 (32-bit, non-prefetchable) [size=256]
Capabilities: access denied

00:0f.0 ISA bridge: Advanced Micro Devices [AMD] CS5536 [Geode
companion] ISA (rev 03)
Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] ISA
Flags: 66MHz, medium devsel
I/O ports at f000 [size=8]
I/O ports at ec00 [size=256]
I/O ports at e800 [size=64]
I/O ports at e400 [size=32]
I/O ports at e000 [size=128]
I/O ports at 9c40 [size=64]

00:0f.2 IDE interface: Advanced Micro Devices [AMD] CS5536 [Geode
companion] IDE (rev 01) (prog-if 80 [Master])
Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] IDE
Flags: bus master, 66MHz, medium devsel, latency 0
[virtual] Memory at 01f0 (32-bit, non-prefetchable) [disabled] 
[size=8]
[virtual] Memory at 03f0 (type 3, non-prefetchable) [disabled] 
[size=1]
[virtual] Memory at 0170 (32-bit, non-prefetchable) [disabled] 
[size=8]
[virtual] Memory at 0370 (type 3, non-prefetchable) [disabled] 
[size=1]
I/O ports at d800 [size=16]

00:0f.3 Multimedia audio controller: Advanced Micro Devices [AMD]
CS5536 [Geode companion] Audio (rev 01)
Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] Audio
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 10
I/O ports at d400 [size=128]

00:0f.4 USB Controller: Advanced Micro Devices [AMD] CS5536 [Geode
companion] OHC (rev 02) (prog-if 10 [OHCI])
Subsystem: Advanced Micro Devices [AMD] CS5536 [Geode companion] OHC
Flags: bus master, 66MHz, medium devsel, latency 

Re: [9fans] Plan 9 on Fit-PC

2008-02-25 Thread sqweek
On Tue, Feb 26, 2008 at 12:57 AM, erik quanstrom [EMAIL PROTECTED] wrote:
   I also tried to netboot from my existing cpu/auth/file server. The
   netboot ROM on the ethernet downloads the kernel but couldn't seem to
   find a spot in memory to put it[1], so I grabbed gPXE 0.9.3 from
   http://www.etherboot.org/ and built an ISO. The last thing I see there
   is Booting from /386/9pc... and then the machine reboots. I'm not
   sure if this is even getting the whole kernel... last line in
   /sys/log/ipboot is:

  that went by a bit fast for me.

  do you mean that you are pxe loading 9pxeload but the bios pxeloader
  can't find a place for 9pxeload in memory?  or that 9pxeload loaded but
  couldn't load the kernel?  the plan 9 kernel can't be pxe loaded directly.
  it's too big  l.s doesn't handle real mode.

 Ahh, that's what I'm doing wrong. Doesn't surprise me, I'm new to netbooting ;)
 Also, /lib/ndb/local.complicated has bootf arguments that refer to
real kernels so it didn't occur to me to look for something else. With
bootf=/386/9pxeload, the netboot gets as far as the cd boot - ie it
freezes after ELCR: 0E20.
 Thanks.
-sqweek


[9fans] assembly loading

2008-02-25 Thread Iruata Souza
9fans,

In this mips assembly code, R5 is not receiving the value of array. Am
I doing something wrong?

TEXTmain+0(SB),0,$0
MOVWarray+0(SB), R5

DATAarray+0(SB)/8,$Plan 9\z\z
GLOBL   array+0(SB),$8
END ,


thanks,
iru


Re: [9fans] plan9 httpd/pegasus on unix?

2008-02-25 Thread Uriel
If you want to write web apps in rc, p9p is enough.
http://gsoc.cat-v.org is built with rc based templates and the 'werc'
framework (barely over a hundred lines of rc code).

If you want to do things right I would use mjl's new httpd for Inferno.

uriel

On Sat, Feb 23, 2008 at 10:22 PM,  [EMAIL PROTECTED] wrote:
 Hi all,

  I have a machine running FreeBSD that I want to set up as a web server
  (among other things). It's not powered by plan9 because I also want to
  run libtorrent/rtorrent on it, and afaik there's no bittorrent client
  yet for plan9.
  I used to run thttpd because I want something small, relatively secure,
  and simple, but now I would like to set up something plan9-ish if
  possible. One of the reasons being that I found Kenji's rc based cgi
  thingie he showed at iwp9 quite nice, and I'd like to eventually use
  that (especially since it would be a nice rc learning exercise for me
  to port all my current perl cgis in rc.)

  So my question is what is my best option?
  Setting up inferno on FreeBSD and run httpd from there? Setting up plan9
  in xen (or lguest) and set httpd inside that? Try to port plan9's httpd
  to unix, using p9p as an example? Just stick to some unix httpd because
  it's not worth it? (I guess it wouldn't be that hard to get thttpd to
  run some rc cgis actually).

  Please bear in my mind that this is an old box (p200, 256MB ram), so the
  solution has to be light (for example I'm not even sure it's possible to
  achieve the xen or inferno one). Well, I guess it can't be worse than
  apache2, which actually used to run on that machine...

  Thanks,
  Mathieu.

  --
  GPG key on subkeys.pgp.net:

  KeyID:  | Fingerprint:
  683DE5F3 | 4324 5818 39AA 9545 95C6 09AF B0A4 DFEA 683D E5F3
  --



[9fans] Plan9 on Intel Pentiul D Dualcore (D94RPLrn)

2008-02-25 Thread cinap_lenrek
dumping the mptable shows that here is just one PCMPprocessor enty
and nothing else so this is the reason here is no busses found and
mpintrenablex fails.

Plan 9
E820:  0009fc00 memory
E820: 0009fc00 000a reserved
E820: 000e 0010 reserved
E820: 0010 3fe6 memory
E820: 3fe6 3fee9000 acpi nvs
E820: 3fee9000 3feed000 memory
E820: 3feed000 3feff000 acpi reclaim
E820: 3feff000 3ff0 memory
mp found 0xfe680
found mp table 0xfe680
pcmp-length=40
pcmp-version=4
pcmp-checksum=81
pcmp-oemtable=0
pcmp-oemlength=0
pcmp-entry=1
pcmp-lapicbase=fee0
pcmp-xlength=0
pcmp-xchecksum=0
126 holes free
00018000 0009f000 552960
003ef000 1000 264310784
264863744 bytes free
cpu0: 2999MHz GenuineIntel P4 (cpuid: AX 0x0F62 DX 0xBFEBFBFF)
ELCR: 0E00
LAPIC: fee0 e000
mptable: f00fe6bc-f00fe6d0
0 0 14 3 62 F 0 0 FF FB EB BF 0 0 0 0 0 0 0 0 

f00fe6bc processor...
processor p-apicno=0
processor p-version=14
processor p-flags=3
processor p-feature=bfebfbff 0x1 
mpintrenable: out of choices -1 -1
intrenable: couldn't enable irq 1, tbdf 0x for kbd
ioapicirq: can't find bus type 12
mpintrenable: out of choices -1 -1
intrenable: couldn't enable irq 11, tbdf 0xC04 for ether0


i guess the processor has some hyperthreading feature-flag set, 
but if here are no bus entries in the mptable, how is it supposed
to work?


cinap



Re: [9fans] assembly loading

2008-02-25 Thread Iruata Souza
On Mon, Feb 25, 2008 at 4:59 PM, Charles Forsyth [EMAIL PROTECTED] wrote:
   doing something wrong?
  
 TEXTmain+0(SB),0,$0
   MOVWarray+0(SB), R5


for anyone wanting to know, it has been resolved thanks to jmk.

MOVW$setR30(SB), R30
right in the program beginning sets up the static base register.

and Charles, I'm doing MOVW $array+0(SB), R5, it was a typo. thanks
for noting.

iru


Re: [9fans] Plan9 on Intel Pentiul D Dualcore (D94RPLrn)

2008-02-25 Thread erik quanstrom
if i'm reading the output you've sent correctly, linux is getting
the interrupt mappings from ACPI not the MP table. and your
mp table is broken.  i don't know very much about linux irq
handling or acpi irq tables, but it's likely that your mb manufacturer
didn't think a full mp table was worth his time.

so, i guess this is the menu of options in increasing amount
of effort and accomplishment:

1.  *nomp=1
2.  bios update.
3.  figure out what the mp table should be from the acpi
tables and forge an mp table for archmp's benefit.
4.  teach plan 9 to parse the acpi irq tables.

cheer up!  the acpi documentation is less than two feet
thick.

- erik


Re: [9fans] Soekris 5501s (was kenfs)

2008-02-25 Thread Tharaneedharan Vilwanathan
hi,

thanks, geoff. this is really a good news!!

i will try to order a 5501 box to play with it.

i have a quick question: any guess on whether lan1641 will work? i think it
should wok since it has National Semiconductor DP83816 chip but just wanted
to confirm.

regards
dharani


Re: [9fans] Soekris 5501s (was kenfs)

2008-02-25 Thread erik quanstrom
 
 i have a quick question: any guess on whether lan1641 will work? i think it
 should wok since it has National Semiconductor DP83816 chip but just wanted
 to confirm.

i have a 4801 with a 3 dp83816 chips and it works fine.

- erik


Re: [9fans] Plan9 on Intel Pentiul D Dualcore (D94RPLrn)

2008-02-25 Thread Uriel
  4.  teach plan 9 to parse the acpi irq tables.

  cheer up!  the acpi documentation is less than two feet
  thick.

Don't worry, I don't think the thickness of the documentation will be
an issue, most mb manufacturers ignore it and simply test that the
junk they build works (ie., boots) with NT's broken ACPI
implementation...

This makes adding ACPI support to your favorite OS most fun, fun, fun.

uriel