Re: [9fans] I killed plan9.ini; what to do?

2015-05-23 Thread David du Colombier
You can mount the 9fat partition from any operating system supporting
FAT16, then you can edit the plan9.ini.

-- 
David du Colombier



[9fans] Empty plan9.iso.bz2?

2015-05-23 Thread Ryan Gonzalez
Just decided to download the newest CD image and ended up downloading an
empty archive. I tried downloading via Curl and Chrome, with both giving
the same results.

-- 
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/


Re: [9fans] Empty plan9.iso.bz2?

2015-05-23 Thread Ryan Gonzalez
Nevermind. I was being stupid and trying to extract the bz2 archive with
tar...


On Sat, May 23, 2015 at 4:06 PM, Ryan Gonzalez rym...@gmail.com wrote:

 Just decided to download the newest CD image and ended up downloading an
 empty archive. I tried downloading via Curl and Chrome, with both giving
 the same results.

 --
 Ryan
 [ERROR]: Your autotools build scripts are 200 lines longer than your
 program. Something’s wrong.
 http://kirbyfan64.github.io/





-- 
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/


[9fans] I killed plan9.ini; what to do?

2015-05-23 Thread Ryan Gonzalez
I was tweaking plan9.ini for autologin and must have typed something wrong
because I got this:

[image: Inline image 1]

I want to try to fix it, but I don't know how. Do I need to reinstall Plan
9 again?

-- 
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/


Re: [9fans] Is it *legal* to use the Plan 9 regex library from MIT-licensed code?

2015-05-23 Thread David du Colombier
The libregexp license is available here:

https://github.com/9fans/plan9port/blob/master/unix/NOTICE.regexp

It's part of the standalone Unix ports.

-- 
David du Colombier



[9fans] How do I get a CSR CA's like?

2015-05-23 Thread Brantley Coile
I’m trying to buy a certificate.  Actually, I’m trying to *get* a certificate.  
They seem to already have my money.  Anyway, they want me to paste a 
Certificate Signing Request into their web page.  I have done the following:

dmr% auth/rsagen -b2048 key 
dmr% auth/rsa2csr 'C=US ST=Georgia L=Athens O=South Suite 
CN=www.etherdrive.com' key xx 
dmr% auth/pemencode 'CERTIFICATE SIGNING REQUEST' xx csr 

I then pasted the contents of ‘csr’ into the page and get “This CSR has an 
invalid signature!”

What am I doing wrong?





Re: [9fans] How do I get a CSR CA's like?

2015-05-23 Thread David du Colombier
Personnaly, I don't have auth/rsa2csr, but I generate the certificate
request from Linux using OpenSSL:

$ openssl req -newkey rsa:2048 -days 730 -keyout key.pem -out csr.pem
-subj /C=FR/ST=Paris/L=Paris/CN=9grid.fr -nodes

Then, I convert the key from PEM to DER format:

$ openssl rsa -in key.pem -inform PEM -out key.der -outform DER

Then, I get the certificate from the CA and copy it to Plan 9:

% cp crt.pem /sys/lib/tls/cert.pem

Finally, I import the DER key to factotum:

% auth/asn12rsa -t 'proto=rsa service=tls owner=*' key.der key
% ramfs -p
% cd /tmp
% auth/secstore -g factotum
% cat key factotum
% auth/secstore -p factotum
% cat factotum | read -m /mnt/factotum/ctl

-- 
David du Colombier



Re: [9fans] Is it *legal* to use the Plan 9 regex library from MIT-licensed code?

2015-05-23 Thread Ryan Gonzalez
Ah! Looks really close to the MIT license.

Thanks!

On May 23, 2015 3:36:11 AM CDT, David du Colombier 0in...@gmail.com wrote:
The libregexp license is available here:

https://github.com/9fans/plan9port/blob/master/unix/NOTICE.regexp

It's part of the standalone Unix ports.

-- 
David du Colombier

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

[9fans] ot: pascal rides again?

2015-05-23 Thread erik quanstrom
well, at least dennis wrote why pascal is not my favorite programming 
language.

from go build

./cat.go:36: cannot use data (type [8192]byte) as type []byte in 
argument to cat

what?  perhaps i'm missing something about the language, but it sure seems 
ironic.

- erik



Re: [9fans] ot: pascal rides again?

2015-05-23 Thread Eduardo Alvarez
I thought the author was Brian Kernighan?
http://www.lysator.liu.se/c/bwk/index.html

On Sat, May 23, 2015 at 12:53 PM, erik quanstrom quans...@quanstro.net
wrote:

 well, at least dennis wrote why pascal is not my favorite programming
 language.

 from go build

 ./cat.go:36: cannot use data (type [8192]byte) as type []byte in
 argument to cat

 what?  perhaps i'm missing something about the language, but it sure seems
 ironic.

 - erik




Re: [9fans] ot: pascal rides again?

2015-05-23 Thread Aram Hăvărneanu
http://blog.golang.org/slices
http://blog.golang.org/go-slices-usage-and-internals

-- 
Aram Hăvărneanu



Re: [9fans] How do I get a CSR CA's like?

2015-05-23 Thread lucio
 I then pasted the contents of ‘csr’ into the page and get “This CSR
 has an invalid signature!”

It's worth playing with openssl to check the output from auth/rsa2csr.
The diagnostics are bound to be a bit less vague.  Trying your
instructions, the PEM encoded csr includes the seemingly unwanted word
SIGNING in the headers.  When I remove it (and a space) openssl req
reports a valid certificate request.

Lucio.




Re: [9fans] ot: pascal rides again?

2015-05-23 Thread C Cirello
Uhm I might be mistaken, but I guess [8192]byte is an array, and []byte are
slices - therefore they are different types.

- CC

2015-05-23 17:53 GMT+02:00 erik quanstrom quans...@quanstro.net:

 well, at least dennis wrote why pascal is not my favorite programming
 language.

 from go build

 ./cat.go:36: cannot use data (type [8192]byte) as type []byte in
 argument to cat

 what?  perhaps i'm missing something about the language, but it sure seems
 ironic.

 - erik




Re: [9fans] How do I get a CSR CA's like?

2015-05-23 Thread balaji
as lucio says, just removing the word SIGNING makes it good.
you can test it here: https://www.sslshopper.com/csr-decoder.html

On Sat, May 23, 2015 at 10:31 AM, Brantley Coile brantleyco...@me.com wrote:
 I’m trying to buy a certificate.  Actually, I’m trying to *get* a 
 certificate.  They seem to already have my money.  Anyway, they want me to 
 paste a Certificate Signing Request into their web page.  I have done the 
 following:

 dmr% auth/rsagen -b2048 key
 dmr% auth/rsa2csr 'C=US ST=Georgia L=Athens O=South Suite 
 CN=www.etherdrive.com' key xx
 dmr% auth/pemencode 'CERTIFICATE SIGNING REQUEST' xx csr

 I then pasted the contents of ‘csr’ into the page and get “This CSR has an 
 invalid signature!”

 What am I doing wrong?






Re: [9fans] ot: pascal rides again?

2015-05-23 Thread Ryan Gonzalez
I read the Go docs *once*, but I'm pretty sure you're right.

I think to make a slice out of an array, you'd do something like the_array[:].

All to say why I don't like Go. :)

On May 23, 2015 1:14:55 PM CDT, C Cirello uldericofi...@gmail.com wrote:
Uhm I might be mistaken, but I guess [8192]byte is an array, and []byte
are
slices - therefore they are different types.

- CC

2015-05-23 17:53 GMT+02:00 erik quanstrom quans...@quanstro.net:

 well, at least dennis wrote why pascal is not my favorite
programming
 language.

 from go build

 ./cat.go:36: cannot use data (type [8192]byte) as type []byte
in
 argument to cat

 what?  perhaps i'm missing something about the language, but it sure
seems
 ironic.

 - erik



-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.