The Joyent Community

A place where the Joyent community can gather, help each other out, and stay informed.

You are not logged in.

#1 2005-08-10 04:22:34

lbmyers
New member
Registered: 2005-06-18
Posts: 22
Expertise

A Basic Typo Install Guide

This is really right now just to remind myself what I did, if people like it I can expand upon it more.

1. ssh into your account
2. mkdir ~/sites/ (or where ever you put your Ruby on Rails apps for deployment if you already have one created)
3. cd ~/sites/
4. svn checkout svn checkout svn://leetsoft.com/typo/trunk typo
5. cd typo
6. change the /usr/bin/env ruby to /usr/local/bin/ruby in public/dispatch.rb and public/dispatch.fcgi
7a. mysql -u username -p
7b. create database username_typo;
7c. exit;
7d. mysql -u username -p username_typo < db/schema.mysql.sql
8. ln -s /home/username/sites/typo/public /home/username/web/public/typo
9. add a $HTTP["host"] entry into your lighttpd.conf for typo (there are plenty of tutorials out of there in the forum for this)
10. kill all your dispatch.fcgi processes and your lighttpd process
11. restart lighttpd
12. navigate to http://typo.yourdomain.tld/

You should be greeted with the request to create the initial user account for typo, if so, hurrah, you did it!

Offline

 

#2 2005-08-22 21:18:49

Ellington
New member
From: London
Registered: 2005-08-22
Posts: 5
Expertise

Re: A Basic Typo Install Guide

Hi I wonder if you can expand on points 8 and 10. i am quite new to the shell and didn't quite follow the instructions:

8. ln -s /home/username/sites/typo/public /home/username/web/public/typo

what does the -s refer to?

10. kill all your dispatch.fcgi processes and your lighttpd process

what are the terminal commands to kill /restart the relevant processes...

thanks

Offline

 

#3 2005-08-22 21:31:33

ben.myles
Moderator
From: Brisbane, Australia
Registered: 2005-04-01
Posts: 59
Website  Expertise

Re: A Basic Typo Install Guide

-s stands for symbolic link (rather than a hard link). you pretty much always want to use ln -s

killall -9 -u your_username lighttpd
killall -9 -u your_username ruby18

or do a ps aux, look for the lighttpd and ruby18 process, take note of their PID (process ID - the first number in the row) and do a kill -9 pid (replacing pid with the PID you found)

then to restart just start your lighttpd server however you're doing it: lighttpd -f mylighttpd.conf

Offline

 

#4 2005-08-23 05:42:48

rosshill
Member
From: Geelong, Australia
Registered: 2005-02-25
Posts: 67
Website  Expertise

Re: A Basic Typo Install Guide

When I tried to ls it just gave an error saying that the home/username/web/public/typo doesn't exist.. all else went fine. When I launch lighttpd however it just spits out a blank page :(

Should configuring database.yml be an extra step? (I've done this btw)


Thrive Web Marketing - It is time to let your website Thrive!
Ross Hill - Personal site.
CoverHunt - Free cd cover album artwork search.
HatchThat - weekly entrepreneurial interviews.

Offline

 

#5 2005-09-04 18:16:35

rasheqrahman
New member
Registered: 2005-03-22
Posts: 26
Expertise

Re: A Basic Typo Install Guide

How are you supposed to configure the database.yml file:

Here is the database.yml.example:

login: &login adapter: mysql host: localhost username: root password:

development:

database: typo_dev <<: *login

test:

database: typo_tests <<: *login

production:

database: typo <<: *login

I have created the mysql database per lbmyers instructions above. (ex: my database is sheqman_typo).

Offline

 

#6 2006-02-19 21:15:35

knewter
New member
Registered: 2005-09-13
Posts: 1
Expertise

Re: A Basic Typo Install Guide

If you're trying to follow this guide, it'll save you a few minutes to point out that the first svn checkout line should be changed to:

svn checkout svn://typosphere.org/typo/trunk typo

Offline

 

#7 2006-03-26 21:55:19

mlemos
New member
From: São Paulo - Brazil
Registered: 2006-03-23
Posts: 22
Website  Expertise

Re: A Basic Typo Install Guide

Hi Guys, these post was my first reference to install Typo on my TxD.
Then I generate another complete tutorial, you can find it here:

http://www.sharklog.com/articles/2006/03/26/google-sitemaps-check-this-free-on-line-sitemaps-generator

Byes


Manoel Lemos
manoel@lemos.net
http://pocsw.com/
http://blogblogs.com.br/

Offline

 

#8 2006-05-08 03:48:31

jonto
Litho / Lifer
From: Denver
Registered: 2006-01-04
Posts: 1183
Expertise

Re: A Basic Typo Install Guide

mlemos wrote:

Hi Guys, these post was my first reference to install Typo on my TxD.
Then I generate another complete tutorial, you can find it here:

http://www.sharklog.com/articles/2006/03/26/google-sitemaps-check-this-free-on-line-sitemaps-generator

Byes


Don't you mean this link?

http://www.sharklog.com/articles/2006/03/25/how-to-install-and-configure-typo-on-textdrive

Do I still need a Typo account to install @ Textdrive?

Offline

 

#9 2006-05-15 22:15:19

jonlandrum
Lt. Commander
From: Shi'Kahr
Registered: 2006-01-16
Posts: 3099
Website  Expertise

Re: A Basic Typo Install Guide

If this is basic then I'm in trouble. I'm having a little difficulty grasping the concept of Ruby. Can someone point me to a "1 + 1 = 2" version of how to get started? I'm reading through the page jonto suggested, but still don't get it. It's the jargon that's throwing me off. I have a strong desire to learn about this, but I need to start from the level of complete n00b. Any ideas?

~Jonathan


\\//_  Live long and prosper.

Offline

 

#10 2006-05-24 01:27:05

stevensacks
New member
Registered: 2006-05-23
Posts: 2
Expertise

Re: A Basic Typo Install Guide

So I went through all the installation, got it up and running and then run into this:

Mysql::Error: Table 'username_typo.triggers' doesn't exist: SELECT * FROM triggers WHERE (due_at <= '2006-05-24 01:22:43')

Excuse me? There is no table 'triggers' defined in the schema.mysql.sql file.

So far, installing typo has been a complete pain.

Offline

 

#11 2006-05-24 02:36:50

jonto
Litho / Lifer
From: Denver
Registered: 2006-01-04
Posts: 1183
Expertise

Re: A Basic Typo Install Guide

I was referred to this link which shows how to set up a Rails app using lighttpd properly.
http://help.textdrive.com/index.php?pg= … &id=71

I have not had a chance to try this, but let me know how it goes if you get it working.

Offline

 

#12 2006-05-24 22:45:02

owain
New member
Registered: 2006-04-18
Posts: 5
Expertise

Re: A Basic Typo Install Guide

stevensacks wrote:

So I went through all the installation, got it up and running and then run into this:

Mysql::Error: Table 'username_typo.triggers' doesn't exist: SELECT * FROM triggers WHERE (due_at <= '2006-05-24 01:22:43')

Excuse me? There is no table 'triggers' defined in the schema.mysql.sql file.

So far, installing typo has been a complete pain.


Ditto. I got the same problem only it was looking for a 'blogs' table. Not solved it yet.

Offline

 

#13 2006-05-25 00:08:00

owain
New member
Registered: 2006-04-18
Posts: 5
Expertise

Re: A Basic Typo Install Guide

stevensacks wrote:

So I went through all the installation, got it up and running and then run into this:

Mysql::Error: Table 'username_typo.triggers' doesn't exist: SELECT * FROM triggers WHERE (due_at <= '2006-05-24 01:22:43')

Excuse me? There is no table 'triggers' defined in the schema.mysql.sql file.

So far, installing typo has been a complete pain.


FIX: SSH into your account, then navigate to the typo directory. Enter

rake migrate


Sorted!

Offline

 

#14 2006-07-23 14:49:54

wotsrovert
New member
Registered: 2005-10-04
Posts: 2
Expertise

Re: A Basic Typo Install Guide

If you follow all the above steps, then navigate to http://typo.yourdomain.tld/ and see the following message:

"Typo failed to start properly"

... it's probably because your trying to access your domain via port 80 (the default), rather than the unique port you need to request from TextDrive.

For info on requesting a port: http://help.textdrive.com/index.php?pg= … amp;id=252

Once you've got your unique port - say 8345 - then you should be able to see your Typo instal at http://typo.yourdomain.tld:8345

Next, you'll want to set up a proxy for port 8345: http://help.textdrive.com/index.php?pg= … amp;id=255
... which will allow you to view your shiny new blog at http://typo.yourdomain.tld

Clearly, this isn't software for someone who wants to concentrate solely on their creative writing. :)

Trevor

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson