Difference between revisions of "Setting up Dreamwidth on Linode"

From Dreamwidth Notes
Jump to: navigation, search
(Install using the Dreamwidth image: fixing up and clarifying)
(Install using the Dreamwidth image: removing outdated section)
Line 58: Line 58:
 
Tada!  You are now logged in and can issue commands.
 
Tada!  You are now logged in and can issue commands.
  
== Install using the Dreamwidth image ==
 
  
We're going to install a canned Dreamwidth image to make things easier on us.  You're going to want to be logged in with SSH to the node, as talked about above.
 
 
First, install wget:
 
 
apt-get install wget
 
 
If you are on a Newark node:
 
 
<i>use the earlier noted "for manual configuration" line</i>
 
wget http://192.168.133.102:6887/Linode-Dreamwidth-Ubuntu.img
 
 
If you are *NOT* in Newark:
 
 
wget http://ns1.andreanall.com:6887/Linode-Dreamwidth-Ubuntu.img
 
 
Now you can copy the image to your deployment:
 
 
dd if=Linode-Dreamwidth-Ubuntu.img of=/dev/xvdc
 
 
[[Image:LinodeDreamwidthImage.png]]
 
 
<b>Note:</b> This may take a while. 
 
 
Now you can delete the old Ubuntu image and switch over to the Dreamwidth image. To delete the old Ubuntu image:
 
 
# Press "Shutdown"(Image 1), and wait for it to finish
 
# Ticky the box next to "Ubuntu 8.04 LTS 64 Bit Disk Image (ext3)"(Image 2) and hit "Delete"(Image 3)
 
# Click on "Ubuntu 8.04 LTS 64 Bit Profile"(Image 4)
 
 
[[Image:DeleteOldUbuntuImage.png]]
 
 
To switch to the Dreamwidth Image, click on your profile's link and:
 
 
# Change /dev/xvda to "Dreamwidth Image"
 
# Clear /dev/xvdc
 
# Hit "Save Profile"
 
 
[[Image:SwitchToDreamwidthImage.png]]
 
 
# Click on "Dreamwidth Image"
 
# Enter "12032" in the "New Size" field
 
# Hit "Save Changes"
 
# Wait till it completes
 
 
[[Image:EditDiskImage.png]]
 
 
=== Setting up the new disk image ===
 
 
# Go to the "Settings & Utilities" tab
 
# In the "Change a Filesystem's root Password" section
 
# Set the "Disk Image" to "Dreamwidth Image"
 
# Enter your password
 
# Hit "Change Password"
 
# Go to the "Dashboard" tab
 
 
[[Image:ChangeFilesystemRootPassword.png]]
 
 
Now, resign into your node:
 
 
# Hit "Boot"
 
# Wait 30 seconds after the job completes.
 
# Open your SSH client and SSH to root@<i>noted eth0 address</i>, and enter your root password
 
<b>Note:</b> you may have to tell SSH that nothing funky is happening
 
 
rm /etc/ssh/*key*
 
dpkg-reconfigure openssh-server
 
exit
 
 
Open your SSH client and SSH to root@<i>noted eth0 address</i>, and enter your root password. <b>Note:</b> you may have to tell SSH that nothing funky is happening.
 
 
=== Set up database and postfix ===
 
 
passwd dw
 
wget http://ns1.andreanall.com:6887/LDW-patch1.tgz
 
cd /
 
tar xzvpf ~/LDW-patch1.tgz
 
rm ~/LDW-patch1.tgz
 
mysqladmin -pomg\!dreamwidth password <i>newpassword</i>
 
echo 'set password = password("othernewpass")' | \
 
  mysql -udw -pyay\!dreamwidth
 
 
You will also want to install postfix:
 
 
  dpkg-reconfigure postfix
 
 
Choose "Internet Site".  Enter your domain information and other information it asks for; the rest of the defaults should be fine.
 
 
<b>Note:</b> If you can't enter your domain name in the Mac OS X Terminal because it won't delete the default, go to Preferences-&gt;Advanced and click "Delete sends Ctrl-H".  Change it back afterwards, or <code>vi</code> will delete before instead of after the cursor.  Now you can switch into your Dreamwidth user account:
 
 
su - dw
 
 
=== Set up ljconfig.pl ===
 
 
vi etc/ljconfig.pl
 
 
# Use the right domain: Change $DOMAIN to your domain
 
# Get the right database password: Search for "yay" (<code>/yay</code> in vi). Change "yay!dreamwidth" to "other_new_password"
 
 
[[Image:EditLJConfig.png]]
 
 
Save and quit vi (:wq) and restart apache:
 
 
sudo /etc/init.d/apache2 restart
 
 
# ??
 
# PROFIT!
 
  
 
== Installing from scratch ==
 
== Installing from scratch ==

Revision as of 00:27, 15 January 2009

These instructions will help you set up Dreamwidth on Linode hosting, brought to you by [info]exor74.

Ordering

Newark is the best choice for a node location for 2 reasons:

  • Guaranteed 64-bit host
  • Fast internal-network disk image fetch from [info]exor674

There are two ways to set up Dreamwidth on Linode. This guide will show you how to set up a Linux deployment that will support a Dreamwidth installation.

If you want the easiest install, [info]exor674 has made an image you can use. We also, however, have instructions on how to install Dreamwidth on a Linode system from scratch.

Setting up a Linux Deployment

Click on "Deploy a Linux Distribution":

DeployDistribution.png

This will bring you to the Linode Distribution Wizard.

  1. Click on "Ubuntu 8.04 LTS 64 Bit"
  2. Enter "3096" as the disk image size if you are going to be using the Dreamwidth Image. Or, if you are planning on installing from scratch, you can use whatever space you have left for this disk image.
  3. Enter "256" for Swap
  4. Enter password, and hit "Create Profile"

LinodeDistributionWizard.png

Wait for it to complete, and then hit "Create new disk image".

  1. Label: "Dreamwidth Image"
  2. Size: "1024"
  3. Filesystem Type: "ext3"
  4. Hit "Create Disk"

CreateDiskImage.png

  1. Click on "Ubuntu 8.04 LTS 64 Bit Profile"
  2. Set /dev/xvdc to "Dreamwidth Image", and hit "Save Profile"

LinodeConfigurationProfile.png

Go to the "Network" tab, and click on "Add Private IP".

AddPrivateIP.png

And take note of the text after "eth0"--this is your node's public IP--and the text under "for manual configuration"--your private network IP.

LinodeNetworkConfiguration.png

Getting into the node

Go back to the "Dashboard" tab, hit "Boot", and wait for the task to complete. Open your SSH client and SSH to root@noted eth0 address, and enter your root password:

LinodeSSH.png

Tada! You are now logged in and can issue commands.


Installing from scratch

Don't bother with the image and do Dreamwidth Scratch Installation on the profile you created.