23 Dec
Following is a guid to install Redmine (svn trunk) on Ubuntu 9.10.
The assumed location of Redmine is /srv/redmine
Step 1
Install required packages.
Step 2
Check out Redmine trunk.
Step 3
Install required ruby gems:
Note 1: We may need to update Rails RAILS_GEM_VERSION in file [redmine]/config/environment.rb to reflect actual version of Rails gems installed.
Note 2: We may need to create soft link for rails & mongrel executables for convenient
Step 4
Create mysql database
Run the following code in mysql, substitute your own database name, password, …
Step 5
Create/Update database parameters in [redmine]/config/database.yml accordingly to prior step info.
Step 6
Initialize the database
Step 7
Create redmine user & setting up directory permission
Step 8
Testing the application server
The server is listening on [http://localhost:3000].
Step 1
Create mongrel cluster configuration files for Redmine.
Step 2
Create apache virtual host file at /etc/apache/sites-available/
Step 3
Turn on the virtual host and required modules
Step 1
Create global mongrel_cluster configuration
Step 2
Update the services
Step 3
Configure G!Mail
16 Oct
When developing with CakePHP, we can setup Apache to automatically redirect a domain to a specific CakePHP application.
We can set computer’s aliases using hosts file. Apache will automatically map aliases to different DocumentRoot:
app1.mybox.com -> /var/www/cakephp/app1.mybox.com/webroot
app2.somewhere.com -> /var/www/cakephp/app2.somewhere.com/webroot
Step 1: Enable the mod_vhost_alias:
Step 2: Replace the DocumentRoot statement in default virtualhost configuration file with two lines:
(If you use a different virtualhost, make sure that you’re editing the right configuration file)
Step 3: However, the mod_rewrite doesn’t play nice with mod_vhost_alias. We need to edit the .htaccess file in {APP}/webroot folder.
Step 4: Restart Apache.
Below is my default virtual host configuration for your reference:
16 Sep
In Linux, files which name start by a dot ‘.’ are hidden by default in most file managers. However, there are cases when we want to hide dot-file from our view. For examples:
In Nautilus (default GNOME file manager) there’s a way. Add a file named
with each line is the name of the file/folder you want to hide.
For example, if you want to hide Desktop from home folder you may type this command in the terminal:
Note: This trick only works in Nautilus. It won’t work in Konqueror or Dolphin. I don’t know if it works in other file managers or not.
10 Jun
The GNOME-Colors is a project that aims to make the GNOME desktop as elegant, consistent and colorful as possible.
The current goal is to allow full color customization of themes, icons, GDM logins and splash screens. There are already five full color-schemes available; Brave (Blue), Human (Orange), Wine (Red), Noble (Purple) and Wise (Green).
GNOME-Colors is mostly inspired/based on Tango, GNOME, Elementary, Tango-Generator and many other open-source projects.
9 Jun
Here is a way to rename files in bash, from upper case filenames to lowercase ones
via Rename files from upper case filename to lower case (in bash).
8 Jun
Pyinotify is a pure Python module for monitoring filesystems changes. Pyinotify relies on inotify, a Linux Kernel functionnality (since kernel 2.6.13). inotify is an event-driven notification mechanism, its notifications are exported to user space through three system calls. Pyinotify binds these system calls and provides an implementation on top of them.
via Pyinotify.
8 Jun
Khi bạn làm việc với máy chủ thông qua SSH thì bạn sẽ thường gặp một vấn đề nhỏ. Đó là dịch vụ SSH sẽ đóng kết nối của bạn sau một khoảng thời gian nhất định. Để ngăn dịch vụ SSH đóng kết nối thì chúng ta có cách sau:
Sửa file
hoặc
và thêm vào đó dòng dưới đây
Chương trình C nhỏ dưới đây có thể giúp bạn tạm giữ một phiên làm việc bằng cách in ra một thanh xoay trong lúc chạy.
Recent Comments