Samson’s Weblog

Linux

Redmine on Archlinux

by Samson on Jun.30, 2009, under Linux, Ruby on Rails

[Overview]
This entry will describe a basic installation and configuration of redmine, a flexible and cross-platform project management web application, on an archlinux system.

For the official installation guide, please refer this wiki page.

[Preparation]
1. Download the latest stable release of redmine (0.8.4) from rubyforge:

$ wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz

2. Install ruby and ruby on rails
(Notes: rails is optional since the redmine official release we download above already include the appropriate rails version (2.1.2) in its vendor directory)

3. Make sure rubygems and rake meet the version requirement of redmine:

gem -v >= 1.3.1
rake --version >= 0.8.3

(continue reading…)

6 Comments :, , , more...

Install Ruby on Rails on Archlinux

by Samson on Jun.30, 2009, under Linux, Ruby on Rails

[Overview]
Here we will install ruby on rails framework on our Archlinux box. For more detail information, please refer this wiki page.

[Install ruby and rubygems]
First we need to install ruby and its package system rubygems:

$ sudo pacman -S ruby rubygems

[Install rails]
Next install rails via rubygems:

$ sudo gem install rails

gem will help us manage all the dependencies and download them automatically.

(Notes: if you execute the above command without being root (e.g. without sudo), gem will install rails in the home directory of the current user. Usually the directory is named after “.gem”, you probably need to manually add rails and rake bin directory to your PATH before you could use them, that may not be what you exactly want.)
(continue reading…)

Leave a Comment :, , more...

Install Ubuntu on VirtualBox (Part 3)

by Samson on Jun.06, 2009, under Linux

Continue from the previous 2 parts:
Install Ubuntu on VirtualBox (Part 1)
Install Ubuntu on VirtualBox (Part 2)

All right, we have finished virtualbox installation and successfully created one virtual machine on it.

Now it’s the time to…

[Install Ubuntu]
Just treat the VM like a real physical machine, what will you do to install an OS on a new gained physical machine? Yeah, that’s right, insert a CD or DVD.

Now let’s do exactly the same thing to our virtual machine.

Right click the VM, select “Settings…”, and you will be greeted with a setting dialog looks like below:

install ubuntu 1
(continue reading…)

2 Comments :, , , more...

Install Ubuntu on VirtualBox (Part 2)

by Samson on Jun.05, 2009, under Linux

Continue from the previous part: Install Ubuntu on VirtualBox (Part 1).

We have already downloaded all the needed softwares and finish the virtualbox installation, so far so good~

Now launch the newly installed virtualbox, let’s …

[Create a virtual machine]
Remember we mentioned that the OS needs to be installed on a physical machine in our last post? Yeah, right now we are gonna to prepare a virtual physical machine, using virtualbox.

The fresh installed virtualbox looks like below:

create virtual machine 1
(continue reading…)

3 Comments :, , , more...

Install Ubuntu on VirtualBox (Part 1)

by Samson on Jun.05, 2009, under Linux

[Dedication]
To my friend louchx:), welcome to the Unix/Linux world!

[Overview]
Ubuntu is one of the most popular linux distribution nowadays. It mainly focus on usability, accessibility and internationalization, to reach as many people as possible. Refer ubuntu home page and this wiki page for more detail information about ubuntu.

Usually we will need a physical machine to install an OS like ubuntu, but since that’s our first time to install linux, let’s choose another more secure way. We will use a software virtualizer to virtualize a physical machine for us.

VirtualBox is a general-purpose full virtualizer for x86 hardware. According to its official home page, it is now the only professional-quality virtualization solution that is also Open Source Software.
Another choice is VMware, but since it’s not free, that’s not my recommendation here.

So… here we will install ubuntu on virtualbox based on windows hosts.
(continue reading…)

1 Comment :, , , more...

Bugzilla on ArchLinux

by Samson on Apr.28, 2009, under Linux, Tools

Need a web server and a database engine to run bugzilla, here I choose apache and mysql.

Install apache:

$ pacman -S apache

Refer this wiki page for detailed information about apache installation and configuration.

Install mysql:

$ pacman -S mysql

The above LAMP wiki page also mentions something about mysql installation and configuration, for standalone installation, please refer this wiki page.

Then install bugzilla using:

$ pacman -S bugzilla

It requires a bunch of perl modules to be installed too, but some required modules still need to be installed manually (a little weird, why not include all required perl modules into dependencies?)

Make a module check first:

$ cd /srv/http/bugzilla
$ ./checksetup.pl --check-modules

(continue reading…)

5 Comments :, more...

ArchLinux 2009.02版本的改进

by Samson on Feb.16, 2009, under Linux

上篇文章中我说Arch发布新版本没啥意义,因为本身就是滚动更新,今天虚拟机里装了一下玩玩,发现安装过程中还是有不少明显改进的,这样看来新版本的发布还是非常有意义的(当然有意义了,否则整出来干嘛:-)……)

首先值得一提的改进应该就是时区时间设置的改进,2008.06版本只有在修改配置文件时让你修改,而且即便正确修改了,也还是会有问题

新版本里改进的那是相当彻底,一开始安装什么先都不干,一上来就问你是UTC还是localtime,然后就让你输入时区和时间,输完了以后,便会帮你自动修改/etc/rc.conf里的HARDWARECLOCK和TIMEZONE,并且copy一份zoneinfo到/etc/localtime,然后再是prepare hard drive,package什么的,这是非常要赞的,这样安装的好处就是你再也不会碰到我之前文章提到的问题了。
(continue reading…)

3 Comments :, more...

ArchLinux 2009.02

by Samson on Feb.16, 2009, under Linux

Archlinux放出了新的iso,包括了从2008.06版本以来的usb img版本,
http://ftp.archlinux.org/iso/2009.02/

当然你可以说它没有意义,因为Arch本身就是滚动更新的,我一个

pacman -Syu

就是最新的了.

但其对于新装系统,重装,系统修复等还是有意义的.

PS:事后回头想想,新装,重装估计也没啥意义……,反正每次装完都要更新一把,新的旧的又有啥关系呢?先不重刻了,麻烦……

Leave a Comment :, more...

Archlinux下的时间时区设置

by Samson on Feb.13, 2009, under Linux

上篇日志中,我还在一直纳闷抑或欣喜为什么又是星期五的时候,Sunng同学的一个comment一举消除了我的疑问,不是星期五有问题,是我自己有问题,呵呵……

经过一番研究和学习,发现原来Archlinux下仅在/etc/rc.conf里把TIMEZONE设成”Asia/Shanghai”是不够的,还要在/etc/localtime做个软链接给具体的zoneinfo:

$ sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

这个时候时区应该算是正确设置好了,把硬件时钟再同步回系统来,

$ sudo hwclock --hctosys

这个时候时间又不对了,因为之前我是人为滞后了8小时(当时是负负得正,时间倒正好是正确的,而且平时也不会去关心这个,估计Sunng不说我是不会发现的了:-)),但是现在时区对了,所以现在时间应该正好晚了8小时。
(continue reading…)

12 Comments :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!