Installing Jinzora on Ubuntu

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
Line 15: Line 15:
* [http://lifehacker.com/software/home-server/geek-to-live-build-an-internet-jukebox-with-jinzora-254178.php Geek to Live: Build an internet jukebox with Jinzora]
* [http://lifehacker.com/software/home-server/geek-to-live-build-an-internet-jukebox-with-jinzora-254178.php Geek to Live: Build an internet jukebox with Jinzora]
* [http://www.howtoforge.com/ultimate_freebsd_media_server The Ultimate Media Server - Apache+SSL , PHP, MySQL and Jinzora]
* [http://www.howtoforge.com/ultimate_freebsd_media_server The Ultimate Media Server - Apache+SSL , PHP, MySQL and Jinzora]
-
* [http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#aboutcerts SSL/TLS Strong Encryption: FAQ]
 
-
* [http://httpd.apache.org/docs/2.0/ssl/ssl_intro.html SSL/TLS Strong Encryption: An Introduction]
 
-
* Create a private server key.
 
-
$ openssl genrsa -des3 -out server.key 1024
 
-
Generating RSA private key, 1024 bit long modulus
 
-
..++++++
 
-
....................++++++
 
-
e is 65537 (0x10001)
 
-
Enter pass phrase for server.key:
 
-
Verifying - Enter pass phrase for server.key:
 
 +
$ openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
 +
Signature ok
 +
subject=/C=US/ST=Minnesota/L=Minneapolis/O=Navitaire Ltd./CN=hutch.navitaire.com
 +
Getting Private key
 +
Enter pass phrase for server.key:
 +
unable to write 'random state'
 +
hutch@hutch:~$ ls -ld ~/.rnd
 +
-rw------- 1 root root 1024 2007-08-20 17:17 /home/hutch/.rnd
 +
$ sudo chown hutch:hutch ~/.rnd
 +
$ openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
 +
Signature ok
 +
subject=/C=US/ST=Minnesota/L=Minneapolis/O=Navitaire Ltd./CN=hutch.navitaire.com
 +
Getting Private key
 +
Enter pass phrase for server.key:
 +
$
-
* Create a CSR.
+
$ sudo mv server.key server.crt /usr/lib/apache2/
-
$ openssl genrsa -des3 -out server.key 1024
+
-
Generating RSA private key, 1024 bit long modulus
+
-
..++++++
+
-
....................++++++
+
-
e is 65537 (0x10001)
+
-
Enter pass phrase for server.key:
+
-
Verifying - Enter pass phrase for server.key:
+
-
hutch@hutch:/tmp$ openssl req -new -key server.key -out server.csr
+
-
Enter pass phrase for server.key:
+
-
You are about to be asked to enter information that will be incorporated
+
-
into your certificate request.
+
-
What you are about to enter is what is called a Distinguished Name or a DN.
+
-
There are quite a few fields but you can leave some blank
+
-
For some fields there will be a default value,
+
-
If you enter '.', the field will be left blank.
+
-
-----
+
-
Country Name (2 letter code) [AU]:US
+
-
State or Province Name (full name) [Some-State]:Minnesota
+
-
Locality Name (eg, city) []:Minneapolis
+
-
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Navitaire Ltd.
+
-
Organizational Unit Name (eg, section) []:
+
-
Common Name (eg, YOUR name) []:hutch.navitaire.com
+
-
Email Address []:
+
-
+
-
Please enter the following 'extra' attributes
+
-
to be sent with your certificate request
+
-
A challenge password []:
+
-
An optional company name []:
+
-
 
+
-
* Create a self-signed server certificate by signing the public key with the private key.
+
-
$ openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
+
-
Signature ok
+
-
subject=/C=US/ST=Minnesota/L=Minneapolis/O=Navitaire Ltd./CN=hutch.navitaire.com
+
-
Getting Private key
+
-
Enter pass phrase for server.key:
+
-
 
+
-
* Remove the passphrase from the server key.
+
-
$ openssl rsa -in server.key -out server.key
+
-
Enter pass phrase for server.key:
+
-
writing RSA key
+

Revision as of 22:09, 3 October 2007

sudo perl -pi.bak -e 's/max_execution_time = \d+/max_execution_time = 300/;s/post_max_size = \d+M/post_max_size = 32M/;s/upload_max_filesize = \dM/upload_max_filesize = 32M/' /etc/php5/apache2/php.ini

wget http://www.jinzora.com/downloads/jz275.tar.gz sudo tar zxvf jz275.tar.gz -C /var/www/ ( cd /var/www/jinzora2 && sudo sh configure.sh )


$ sudo aptitude -y install apache2 libapache-mod-ssl php5 mysql-server php5-mysql php5-gd


$ sudo rm -r /var/www/jinzora2/install


$ openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt Signature ok subject=/C=US/ST=Minnesota/L=Minneapolis/O=Navitaire Ltd./CN=hutch.navitaire.com Getting Private key Enter pass phrase for server.key: unable to write 'random state' hutch@hutch:~$ ls -ld ~/.rnd -rw------- 1 root root 1024 2007-08-20 17:17 /home/hutch/.rnd $ sudo chown hutch:hutch ~/.rnd $ openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt Signature ok subject=/C=US/ST=Minnesota/L=Minneapolis/O=Navitaire Ltd./CN=hutch.navitaire.com Getting Private key Enter pass phrase for server.key: $

$ sudo mv server.key server.crt /usr/lib/apache2/

Personal tools