Changing Your IP Address to Static on Ubuntu Server

July 11th, 2008

sudo nano /etc/network/interfaces

update the file to look like the following (of course change to your network info)

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

sudo /etc/init.d/networking restart

References

http://www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a-static-ip-address/

vCard to Gmail CSV

July 2nd, 2008

This is a really cool vCard to Gmail CSV conversion tool.

http://labs.brotherli.ch/vcfconvert/

Redmine on Dreamhost with Passenger

May 16th, 2008

Dreamhost LogoAs of May 13, 2008 Dreamhost provides a feature called Passenger for Ruby on Rails. This make is significantly easier to install Ruby On Rails Apps on Dreamhost!!!

The following is how I install Redmine on Dreamhost with Passenger

  1. From the Dreamhost control panel, create a new subdomain for the application such as yoursubdomain.yourdomain.com
    1. Make sure the domain supports “Ruby on Rails Passenger (mod_rails)?”
    2. Specify your web directory: /home/username/yoursubdomain.yourdomain.com/public
      • you must add the public!!!
  2. From the Dreamhost control panel create a new MySQL database named yourdatabasename
  3. ssh into your Dreamhost account
  4. cd ~/yoursubdomain.yourdomain.com
  5. svn export --force svn://rubyforge.org/var/svn/redmine/branches/0.7-stable ./
    • check http://www.redmine.org/wiki/redmine/Download for the latest version
  6. also watch out for permissions
    • chmod -v -R 755 ./*
  7. cd ~/yoursubdomain.yourdomain.com/config
  8. cp database.yml.example database.yml
  9. nano database.yml
    1. edit the database.yml config file with the appropriate info. Should be similar to the following
      production:
      adapter: mysql
      database: yourdatabasename
      username: yourusername
      password: yourpassword
      host: mysql.yourdomain.com
  10. cd ~/yoursubdomain.yourdomain.com/public
  11. cp dispatch.rb.example dispatch.rb
  12. nano .htaccess (replace with following text)
    Options +FollowSymLinks +ExecCGI
    RewriteEngine On
    RewriteRule ^$ index.html [QSA]
    RewriteRule ^([^.]+)$ $1.html [QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    ErrorDocument 500 “<h2>Application error</h2>Rails application failed to start properly”
  13. cd ~/yoursubdomain.yourdomain.com
  14. from application root type
    • rake db:migrate RAILS_ENV="production"
  15. also type the following to load config defaults
    • rake redmine:load_default_data RAILS_ENV="production"
    • choose “en” for english
  16. browse to http://yoursubdomain.yourdomain.com

Reference

http://www.redmine.org/wiki/redmine/RedmineInstall
www.jorgeivanmeza.com

http://www.redmine.org/boards/2/topics/show/69
http://wiki.dreamhost.com/Passenger

Location of “Trash” in Ubuntu 8.04

May 15th, 2008

Not sure when the happened, but the location of “Trash” has moved from “~/.Trash” to “~/.local/share/Trash”.  There is also a new structure for the trash folder.  It has a directory named “files” for the deleted files. There is an additional directory named “info” which contains when the files were deleted & where they were deleted from.

To delete the trash from the command line type

rm -rI ~/.local/share/Trash/*

Or you could use this command, if you don’t want to confirm your delete

rm -rf ~/.local/share/Trash/*

Redmine on Dreamhost

May 12th, 2008

Dreamhost Logo

As of May 13, 2008 Dreamhost provides a feature called Passenger for Ruby on Rails. This make is significantly easier to install Ruby On Rails Apps on Dreamhost!!! Use this method instead (Click Here)

http://alandaveline.com/blog/2008/05/16/redmine-on-dreamhost-with-passenger/

The following is how I install Redmine on Dreamhost

  1. From the Dreamhost control panel, create a new subdomain for the application such as yoursubdomain.yourdomain.com
    1. Make sure the domain supports “FastCGI”
    2. Specify your web directory: /home/username/yoursubdomain.yourdomain.com/public
      • you must add the public!!!
  2. From the Dreamhost control panel create a new MySQL database named yourdatabasename
  3. ssh into your Dreamhost account
  4. cd ~/yoursubdomain.yourdomain.com
  5. svn export --force svn://rubyforge.org/var/svn/redmine/branches/0.7-stable ./
    • check http://www.redmine.org/wiki/redmine/Download for the latest version
  6. also watch out for permissions
    • chmod -v -R 755 *
  7. cd ~/yoursubdomain.yourdomain.com/config
  8. cp database.yml.example database.yml
  9. nano database.yml
    1. edit the database.yml config file with the appropriate info. Should be similar to the following
      production:
      adapter: mysql
      database: yourdatabasename
      username: yourusername
      password: yourpassword
      host: mysql.yourdomain.com
  10. cd ~/yoursubdomain.yourdomain.com/public
  11. cp dispatch.fcgi.example dispatch.fcgi
  12. cp dispatch.rb.example dispatch.rb
  13. nano .htaccess
    1. change line with
      • RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
    2. to
      • RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
  14. cd ~/yoursubdomain.yourdomain.com
  15. from application root type
    • rake db:migrate RAILS_ENV="production"
  16. also type the following to load config defaults
    • rake redmine:load_default_data RAILS_ENV="production"
    • choose “en” for english
  17. browse to http://yoursubdomain.yourdomain.com

Reference

http://www.redmine.org/wiki/redmine/RedmineInstall
www.jorgeivanmeza.com

http://www.redmine.org/boards/2/topics/show/69

rake aborted! No such file or directory - /tmp/mysql.sock

May 12th, 2008

The Ruby on Rails logoTo resolve this issues, change the “localhost” in yourrailsapp/config/database.yml to “127.0.0.1″

How to Install Fonts in Ubuntu 8.04

May 10th, 2008

The way to install fonts in Ubuntu 8.04 has changed a little, and in my option it is a bit easier.

  • open the “.fonts” folder in your home directory
    • You probably have to create it first
    • make sure you can view hidden files
  • copy your font files to this folder
  • next time you open your application, the fonts should be available

Reference
Tombuntu

Ubuntu/Firefox 3 Huge CSS Font Fix

May 7th, 2008

Recently after upgrading to Ubuntu 8.04/Firefox 3, all of my CSS fonts have been HUGE! I didn’t have the opportunity to look for a solution, so I have been using Opera as my primary browser. After finally getting a little time to dig, I found a quick fix using the following steps.

  1. Type “about:config” in the address bar of Firefox
  2. Accept the crazy warning about voiding your warranty
  3. Change the setting of “layout.css.dpi” from -1 to 96 (or 72)
  4. Now all should be fine in the CSS/Font world

Reference
http://blog.wolffmyren.com/2008/04/26/firefox-3-ubuntu-804-large-fonts-fix/

Dell Knows Linux

May 5th, 2008

Seems that Dell is a pretty good judge of Linux character

First major company to factory install Red Hat Linux corporate systems.
http://www.redhat.com/about/news/prarchive/1999/press_linuxsuccess.html

First to install ubuntu in 2007
http://www.ubuntu.com/news/dell-to-offer-ubuntu

Switching the port for the built-in ColdFusion web server

May 2nd, 2008

ColdFusion LogoStraight from the ColdFusion Documentation

You can change the port on which the built-in web server runs.

To change the port for the built-in web server:

1. Back up the jrun.xml file.
This file is in the cf_root\runtime\servers\default\SERVER-INF directory in Windows, and in the cf_root/runtime/servers/default/SERVER-INF directory on UNIX.
2. Open the original jrun.xml file for editing.
3. Change the port number specified in the WebService port attribute (near the bottom of the file):
<service class=”jrun.servlet.http.WebService” name=”WebService”>
<attribute name=”port”>8500</attribute>
<attribute name=”interface”>*</attribute>
<attribute name=”deactivated”>false</attribute>

</service>
Note: Make sure that the deactivated attribute is set to false.
4. Save the file.
5. Restart ColdFusion.

Reference

ColdFusion LiveDocs