Laconica and Amazon EC2
0This is something I just read about on the Laconica Dev List! Looks like Jay Ridgeway of http://bit.ly/jay has created an Amazon EC2 image for laconica! Check out his post over at:
http://jayridgeway.com/post/46565655/laconica-ec2-image
Thanks Jay!
DreamHost Invites!
0I’ve got access to five of those wonderful DreamHost invite codes available for someone who wants one! Let me know and I’ll send one your way!
This is what DH says about the codes:
DreamHost Invitations:
- Up our plan features to 2TB disk and 20TB bandwidth!
- Give $150 off a 5-year signup or $200 off a 10-year signup!
- Are way better than regular promo codes.. but are in very limited supply!
Please note: if anbody who used one of your DreamHost Invitations is ever disabled for fraud/spamming/illegal activities, you will immediately lose all current and future invitations… so please be discriminating with these things!
So that last part… no spammers… phishers… and so on and so on should request these codes! If you still want one just comment here!
Another Laconica Easy Install Script Update
12*** Start News ***
I’m currently working on a web-based installer for laconica:
http://www.gimmesoda.com/2008/10/03/laconica-web-based-installer/
*** End News ***
I checked up on Laconica and did some testing to see if the new version would install without any real changes to my script.
ERROR 1071 (42000) at line 163: Specified key was too long; max key length is 1000 bytes
Ouch! Looking up the error I found that a quick and easy fix to this is to change the DB table to InnoDB, which means a modification to the laconica.sql file! I’ve added a small section to my scripts which removes the default sql file, and downloads a very slightly modified version from here:
http://files.gimmesoda.com/laconica/
Which BTW is the new location for a copy of my files. I’m updating my other posts with the correct location now. Also, I can now confirm that this new copy of the script installs 0.4.4 without any problems. Let me know if you run into any.
Files can be found here:
http://files.gimmesoda.com/laconica/install_run.sh
http://files.gimmesoda.com/laconica/install_pear.sh
http://files.gimmesoda.com/laconica/install_laconica.sh
-JJ
Once again:
For those of you who don’t already have a DreamHost Account and want to grab a discount or a free domain + a discount use either of these codes:
PRIMEPROMO : $50 Off Any Plan
PRIMEDOMAINCASH : Free Domain And $30 Discount
Those codes come from here:
Laconica Easy-ish Install Scripts Finished
16Yet another update! Check out:
Another Laconica Easy Install Script Update
It’s beta, it’s ugly, it works!
I’ve written up two scripts in order to get Laconica installed quickly and easily on any DreamHost account. It’s really ugly, mostly because of all the config details you have to fill out. Still, it’s a whole lot faster then doing everything yourself.
Main install script/config file: http://files.gimmesoda.com/laconica/install_run.sh
Pear install script: http://files.gimmesoda.com/laconica/install_pear.sh
Laconica install script: http://files.gimmesoda.com/laconica/install_laconica.sh
You MUST run the main install script and not the others – it sets all the config variables!
Here is what you need to do for a completely clean install including PEAR:
1) Create the database/db user/password you want for your laconica install.
2) Put these three files in your shell user’s home directory.
3) Modify the install_run.sh file to fit your needs. Here is an example – MySQL is self-explanatory!
export CURUSER=”puretest” ### Shell Username
export YOURDOMAINFOLDER=”example.domain.com/pathforlaconica”
export YOURDOMAINFOLDERESCAPED=”example.domain.com\/pathforlaconica”
export PATHTOCLASSES=”\/home\/${CURUSER}\/${YOURDOMAINFOLDERESCAPED}\/classes”export LACONICA_CONFIG_SERVER=”example.domain.com”
export LACONICA_CONFIG_PATH=”pathforlaconica”
export LACONICA_CONFIG_FANCY=”false” ###Having trouble with fancy url’sexport MYSQLHOST=”mysql.domain.com”
export MYSQLUSER=”user”
export MYSQLPASS=”password”
export MYSQLDB=”dbname”
4) Run command: chmod +x install_*
5) Run ./install_run.sh
For those who already have PEAR installed to their liking:
You need to modify two lines in install_run.sh
1) export PHPINCLUDEPATHCODE=”ini_set(‘include_path’, ini_get(‘include_path’) . PATH_SEPARATOR . ‘\/home\/${CURUSER}\/pear\/php:\/home\/${CURUSER}\/${YOURDOMAINFOLDERESCAPED}\/extlib’);”
See the part with the /home/${CURUSER}/pear/php? Modify each of those to your pear repository path. Make sure to keep all those escape characters in front of each of your /’s. Notice I also add the extlib folder into the path with this line, so if you’re keeping your extlib/ folder in a different place – modify that too.
2) Comment out: /bin/bash install_pear.sh it should look like this:
###/bin/bash install_pear.sh
3) Make sure you have an empty DB ready and fill out the rest of the config file as usual, then run:
./install_run.sh
With any luck you’ll have a laconica install within a minute of the script being run. You’ll need to modify it manually in order to set things up exactly the way you want them but this should give you a seriously decent starting point without all the fuss of mucking around in the files just to make things run in the first place.
So whether you have a current PEAR install or not the scripts are there for you, I’d recommend running them on a nice shiny new user and subdomain though since I’m not taking any responsibility if your sites/data/first born child goes missing due to the running of my scripts.
Good luck! Feed back is encouraged!
Oh and for those who are wondering why I did this using bash scripting instead of PHP like I normally pump out code, it’s because there are many commands I could accomplish running more smoothly on any DH account using bash and not with PHP. That’s because shared servers @ DH don’t have the exec functions for PHP enabled. (Wisely enough I’d say!)
Original Post:
http://www.gimmesoda.com/2008/07/05/easyinstall-of-laconica-on-dreamhost/
More Resources:
http://decafbad.com/blog/2008/07/03/getting-laconica-up-and-running
http://laconi.ca/Main/LaconicaOnDreamhost
P.S.:
For those of you who don’t already have a DreamHost Account and want to grab a discount or a free domain + a discount use either of these codes:
PRIMEPROMO : $50 Off Any Plan
PRIMEDOMAINCASH : Free Domain And $30 Discount
Those codes come from here:
EasyInstall of Laconica on DreamHost!
31Yet another update! Check out:
Another Laconica Easy Install Script Update
Old Update:
Scripts for the install are finished and are located here:
http://www.gimmesoda.com/2008/07/13/laconica-easy-ish-install-scripts-finished/
——————–
I’ve got most things worked out for the autoinstall – all I basically need to do now is have the scripts do the config and run the mysql command. The second of the two is simple, the first well there are a few little hacks to the code that need to be done but I should be done with it tomorrow.
You can find the current bash scripts here: http://laconica2.gimmesoda.com/
—————————–
So yeah… I’m working on a script that should help setup a Laconia install on DH without any problems. Still writing it and hopefully should have it done soon. I’ll keep all you crazy people up to date on this post!
Don’t forget to check out: http://laconi.ca/
—-
After a bit of work it looks like it’s going to take few mods to the config file and a custom PEAR install on the DreamHost account that is going to be running this. I should hopefully have a script for this finished soon! Give me a day or two (hopefully before my baby girl is born!) and I’ll have it done – otherwise you’ll have to wait until things calm down with the new baby around.
For those who are interested I’m using the instructions found here as the base of my script:
http://decafbad.com/blog/2008/07/03/getting-laconica-up-and-running
You can also find my test install of Laconica here: http://laconica.gimmesoda.com
—-
In order to use sockets it looks like we need a custom install of PHP on DreamHost. Not a bid deal and something I prefer actually, it gives you more control over the php.ini file and you can compile in any extra things you need – such as IMAP support. If you need it.
—-
I may have mentioned this before but it is becoming all the more evident – get that PEAR repository installed on your DH account! It can be a pain to setup sometimes, especially if you aren’t used to working on the shell command, but it’s worth it:
http://wiki.dreamhost.com/PEAR
—-
Another update. I’m actually at the hospital right now watching my wife and baby girl sleep so I decided to get a little more work done. I’ve finished up the initial PEAR install script, which creates a nice clean PEAR repository setup and sets PHP5 as the PHP version used by PEAR and testing it out it works pretty smoothly!
You can grab a copy of this at: http://laconica2.gimmesoda.com/install_pear.sh I’ve tried to make this as safe as possible in case you need to run it multiple times BUT no guarantees your account isn’t going to meltdown! ;)
Make sure to modify the second line and use your own user:
export CURUSER=”puretest”
Oh and for anyone interested, her name is Ileana Sarai Galvez.
-JJ
-bash: /bin/rm: Argument list too long (AKA: Too Many Files)
0find /path/to/directory/ -exec rm {} \;
So apparently that command is magical! Alright, so it’s not magical but it was able to delete over 200,000 spam messages from a users Maildir/ when the rm command failed. “-bash: /bin/rm: Argument list too long”, it complained! So asking around I found out about that beauty of a command and how rm can only take a certain amount of arguments before failing.
Nice to know, as my journey of learning more about Debian Linux (and Linux in general) continues.
Basic Instructions for Moving a Website to Dreamhost
01) Signup for an account
2) Download all files from your current host
3) Get a database dump of any databases you are using
4) Once your account is active add your domain to the dreamhost system <-- getting activated can take a few days so bunker down for a wait
5) Upload all your files to your new account
6) Upload all your databases to new databases on dreamhost
7) Test your site! <-- very important
8) Switch the nameservers – this part is where the real switch is made and can take up to 48 hours for your new host to be used world-wide.
9) Watch a flawless transfer of your website from one host to another :) I love that part.
Let me know if you need help!
Need A Drink?
0Today was a horrible day at work and just kinda makes me want to sit at a bar for the next few hours and let myself forget about the horrors of not being able to get anything done, but if you’re like me and don’t like paying absolutely outrageous prices for a drink, mix your own!
Which makes this the prefect day to announce that I’m working on a site for a community of those who enjoy their drinks – not just alcohol based (although mainly it will be). You can see the current database over at http://drinks.gimmesoda.com/ and a simple random drink page at http://drinks.gimmesoda.com/
Globat = Fraud
14I don’t know how many people they have done this to, but I’m pissed! What have they done you ask? I took a look at my CC bill this month and I found a charge for $49.95 from Globat Business Services. Okay, odd I don’t remember ordering anything even remotely recently from Globat. Apparently I signed up for one of their free promotions sometime back, okay cool so we had a business relationship, no big deal there – where does the fee come from?
Well apparently it seems that Globat (Glob@at) has gotten into the habbit of charging all there customers automatic upgrade fees of $49.95 a pop!!! Going through my past statements and checking the Globat invoices I found that they’ve done this in the past too! A few months ago I was apparently charged the same amount for another “upgrade” without my consent. Oh I’m pissed by this point, checking the, now closed, company email I find that they were about to charge me for another of their automatic upgrades!
So okay, a wave of calm passes over me for about a 5 minutes as I log back into the globat control panel, head to the support section and write them an email requesting them to close my account, reverse their obviously fraudulent charges, and remove my information from their system as I NEVER want to hear from them again. I press send. I feel good, no company really wants to risk their credit rating with the amount of chargebacks that something like this could cause – I mean they would want to keep those customers who complain, quiet… right? Wrong!
A minute passes, I’m closing the window for the email account linked to globat – an email comes in from them. It’s an automatic reply, “Okay, great they recieved the message…. What…. The…. FUCK!” It read:
Thank you for contacting Globat!
Your original message was not received. This is an autoresponder. You cannot send an email directly to this email address. Please use one of the services listed below.
If ever I had more of a reason to be absolutely furious at a company, I can’t remember! I had sent the email through their control panel, this can’t be right… but it is. They are deliberatly blackholing these emails! Needless to say, I’ll be calling my CC company and having them do chargebacks for all the charges up to now. If you’re a current Globat client I suggest you take a look at your statements and watch out for this horrible act of outright theft!
FLV Media Player with PHP Streaming
11Modified to Work Smoothly with DreamHost
***UPDATE***
The example script has been updated due to the help from MattaProductions.com – a problem was noticed in that the swfobject.js script wasn’t being called in the example.html page!
***END UPDATE***
I’ve seen some people have trouble with the media player on DreamHost (mostly due to instructions). I’ve put together a simple, easy to install, and use flv player package. Hope you DreamHost people’s like it! I’ll be making changes to this post as I build out a nice set of instructions as to how to make it work, but for most people, this should be pretty easy.
Please note this is meant to be used on DreamHost because of the way I build the filepath to the videos. Also, you can NOT use remote video files, because the stream script will only attempt to use videos inside your filepath. Not to mention DreamHost gives a HUGE amount of space/bandwidth that can be used to play your videos from.
You can see an example of it working here. (The video is from a buddy of mine!) Then download the files!
Also if you have trouble with having your videos que up make sure you run it through the FLV MetaData Injector!
Top Commenters