Build Ubuntu Server 9.10 64 bit All-in-One LAMP server – Linux Apache MySQL PHP Subversion Trac and Samba – Part 4

This guide is provided for users who want to test these in testing environment. Please use this guide at your own risk.

Part 4 will focus on setting up a secondary server as a backup server.

Configure MySQL replication
* For detailed information, please refer to MySQL manual
Create a replication user in primary MySQL server

mysql> GRANT REPLICATION SLAVE ON *.* 
TO 'replication'@'%.mydomain.com' IDENTIFIED BY 'password'

Assign Server ID and enable binary log in primary – phpmyadmin DB will not be replicated (you may want to exclude mysql DB depending on your need) Continue reading “Build Ubuntu Server 9.10 64 bit All-in-One LAMP server – Linux Apache MySQL PHP Subversion Trac and Samba – Part 4”

Build Ubuntu Server 9.10 64 bit All-in-One LAMP server – Linux Apache MySQL PHP Subversion Trac and Samba – Part 3

This guide is provided for users who want to test these in testing environment. Please use this guide at your own risk.

Part 3 will focus on installing Subversion/Trac and Samba

Install Subversion

aptitude install subversion

Add a group for svn access

addgroup svn

Add users to svn groups

adduser user svn

Create a svn directory and a svn repository

mkdir -p /var/lib/svn/repos
chown user:svn /var/lib/svn/repos
chmod 2775 /var/lib/svn/repos
svnadmin create /var/lib/svn/repos

Continue reading “Build Ubuntu Server 9.10 64 bit All-in-One LAMP server – Linux Apache MySQL PHP Subversion Trac and Samba – Part 3”

Build Ubuntu Server 9.10 64 bit All-in-One LAMP server – Linux Apache MySQL PHP Subversion Trac and Samba – Part 2

This guide is provided for users who want to test these in testing environment. Please use this guide at your own risk.

Part 2 will focus on LAMP server installation and configuration

Install Linux Apache MySQL PHP server

tasksel install lamp-server

Add Fully Qualified Domain Name to Apache

echo "ServerName ubuntu.jakeyoon.com" > /etc/apache2/conf.d/fqdn

Restart Apache

/etc/init.d/apache2 restart

Enable remote MySQL connection from other hosts and enable innoDB file per table option
Continue reading “Build Ubuntu Server 9.10 64 bit All-in-One LAMP server – Linux Apache MySQL PHP Subversion Trac and Samba – Part 2”

Build Ubuntu Server 9.10 64 bit All-in-One LAMP server – Linux Apache MySQL PHP Subversion Trac and Samba – Part 1

This guide is provided for users who want to test these in testing environment. Please use this guide at your own risk.

I have been in love with Ubuntu Desktop for its polished user friendlyness and it motivated me to take a look at its server edition. I googled a bit about what kind of reviews Ubuntu Server gets nowadays but other than Ubuntu’s breif survey there are only debates about whether Debian is better or Ubuntu is better. I personally do not think there is an absolute answer for this debate because they both have its strengths and weaknesses. Anyhow I thought it would be interesting to try Ubuntu Server myself.

Continue reading “Build Ubuntu Server 9.10 64 bit All-in-One LAMP server – Linux Apache MySQL PHP Subversion Trac and Samba – Part 1”

How to Monitor Disk IO Access in Debian/Ubuntu

I alway use top in order to monitor how much resource is used for what process.  And there is iftop for network traffic monitor.  They give enough information to nail down and troubleshoot many different issues.  However, one thing that I have alway had issues with is disk IO monitoring.  I had to use iostat but it does not give information per process so I had to additional analysis to figure out exactly why.

For anyone who experiences similar difficulty with monitoring disk IO, iotop became available recently in Debian/Ubuntu distro.  It requires a newer kernel since it needs support from kernel; however, this is a tool that I have been waiting for a long time.  It give disk access info in real time per process and it is an excellent troubleshooting tool.

Continue reading “How to Monitor Disk IO Access in Debian/Ubuntu”

Ubuntu Google Trend

I was just curious about how popular Ubuntu became compared to other major distibutions nowadays.  This graph only represents frequencies from Google search but it is still very insteresting to look at.
Ubuntu Google Search Trend
Ubuntu Google Search Trend

Ubuntu 9.04 New Feature – Computer Janitor

As soon as I upgraded my laptop’s Ubuntu 8.10 to 9.04, I started looking for what new features there were. I found one that was interestingly named. “Computer Janitor” Hmm…

It turns out to be something that I have been waiting for a long time. It scans all unused files including packages, configuration files and it even makes recommendations. When I ran it for the first time it scanned some of the old kernels. Curiously I selected all of them and started cleaning, and viola!! Next time I booted, all my previous kernel options from grub are all gone.

Continue reading “Ubuntu 9.04 New Feature – Computer Janitor”

Closer to Ubuntu 9.04 Release

GO UBUNTU!!!!

Slow guest OS installation and poor integration support in Hyper-V

I have been trying out various OSes in Hyper-V environment but one thing that I am noticing is its slow installation process.  Even installling Windows guest OSes takes a long time.  However, once intergration service is installed on Windows guest OSes, performance improves.

However, linux in Hyper-V is out of question yet.  I tried to install 32, 64 bit Debian, Ubuntu Desktop/Server but Debian is the only distribution that I was able to be patient enough to complete the installation.  Debian base installation without GUI took a couple hours, where text frame buffer was horrible, almost unbareable, I had to wait about 10 seconds for each page to come up.  All other distributions, I waited about a couple hours too but it did not even get into the installation screen so I gave up.

Continue reading “Slow guest OS installation and poor integration support in Hyper-V”

How to create deb package – part 1

Creating an empty debian package for Debian/Ubuntu that just installs certain packages you need can be very useful when you install a fresh OS.  For instance, if you need Apache2, PHP5, MySQL5, and phpmyadmin on fresh-installed Ubuntu machine, you can install all of them at once by creating an empty package that depends on those packages.  

Step 1. You will need root privilege

sudo su

Step 2. Create a folder that will contains content of the package

mkdir myserver

Step 3. Create a DEBIAN folder that stores meta data for the package
Continue reading “How to create deb package – part 1”