Tip of the Day: Fixing Home and End Keys in Leopard's Terminal.app 2
By default in Terminal.app the home and end scroll the the top of the screen and the end of the screen buffer respectively. To make Terminal act like a normal console (in other words the home key moves the cursor to the beginning of the line, and the end key moved the cursor to the end of the line, etc) do the following:
- Open Terminal
- Open Terminal's preferences
- Goto the Settings Tab
Ubuntu 8.04 Rails Server Using Passenger 20
Introduction
So before my monstrous OpenSolaris 2008.05 post on setting up a Ruby on Rails server I decided to write a guide on setting up a Ubuntu 8.04 server guide for all you Slicehost users! I decided to write this guide because of the new optimized kernel that was added to Ubuntu Server 8.04 for virtualized environments. I also wanted a complete guide that would be a solid reference and now just have bits and pieces for upcoming sysadmins will get lost when reading.
For simplicity I will start with a black machine and build upon that. Use the comments section for specific questions or starting points. I will try to do my best at answering any and all questions.
Requirements
This section will go over the simple requirements of the entire setup.
Hardware
Ubuntu 8.04 Server - This could be anything below:
- Slicehost
- VMware
- Bare Metal Install
Software
- Apache 2.2.8
- MySQL/PostgreSQL/SQLite3
- Git
- Ruby
- Rubygems
- Rails
- Capistrano
- RSpec
- Ultrasphinx
- Passenger
Pictrails: Up and Running
Just a quick note. I have rolled out a version of pictrails at http://benssite.org. I'm posting any of my new pictures there. As well as soon moving some of my old pictures over. In addition, I'm continuing to add features. The next feature on the boards is allowing for a custom specification of the front-page gallery by allowing the user to handpick pictures from other galleries instead of having a special gallery just for the front-page.
-Ben
My Thoughts: OpenSolaris 2008.05 1
Dear Readers,
Today Ian Murdock and Sun announced the release of OpenSolaris during the keynote speech for CommunityOne conference. I have been using this release along side Solaris 10 and OpenSolaris b87. I must say that it feels a lot more like Linux initially. After that initial shock I was able to realize that I still had the power and stability of the Solaris kernel at my fingertips as well as all the wonderful software that has been developed by Sun and all the communities involved. I will be setting up a three tiered system for a Ruby on Rails hosting framework including everything from the web hosting to the database and version control. This aims to be the most complete howto guide I have produced yet and I will release it on my blog as well as a styled PDF for those who like to print things out and take notes.
-Ron
Pictrails: RoR Based Web-gallery
Hello everyone, so if you haven't noticed I have not been posting much to Sysadmins' Chronicles lately. Well other then school, which has been consuming much of my time, I've been working on Pictrails. Pictrails is a web gallery written in Ruby on Rails. Currently my branch of the project is on Github at http://github.com/unilogic/pictrails. The original project is by a guy named Cyril Mougel and he has the master branch of the project here: http://github.com/shingara/pictrails. Currently my branch has the following features:
- Photo-blog like front page (pictures for front-page are from selected gallery/album)
- RSS feed of the front page photos and descriptions
- Support for both RMagick (ImageMagick) and ImageScience (FreeImage)
- Ability to create several galleries
- Ability to create several pictures in a gallery
- Ability to create a gallery from a defined directory on the same server as Pictrails (Mass Upload)
- Show EXIF information from the picture
- Download original photo
- Aggressive caching of all public pages including RSS feed
- Admin interface with login to add/edit/delete galleries, pictures, manage settings, and users
- Settings to control the following
- Define the thumbnails and pictures dimensions
- Reset the caching system
- Define the number of pictures per page shown per page
- Define the number of galleries shown per page
- Enable/Disable showing of EXIF info and downloading of original photos
- Regenerate thumbnails and shown pictures based on new dimensions
- Limit the number of items in your RSS feed
- Select Image Processor (Rmagick or ImageScience)
- Select the gallery the front-page is based on
The catalyst for me working on this project was http://benssite.org, which is my own web gallery based on two web application. SimpleGallery (my own app) runs the front page, and all the albums in the Gallery are hosted on Gallery. Ron and I are slowly trying to migrate away from any PHP based web application which Gallery is written in, and no web gallery written in RoR currently is available that suits my needs. Let alone running two web application for one site is a bit ridiculous.
Feel free to post any comments or suggestions here. The official bug tracking system for the master branch of the project is available at http://dev.shingara.fr/projects/show/3. However, currently I don't pay attention to it as I'm not a member of the development team of the official project. Also feel free to send me any messages on GitHub.
I will post again once I have http://benssite.org converted over to Pictrails, so you can see a full demo. Till then fair well and have a great day!
Ben