Posts

Showing posts from October, 2008

Switching from CVS to Baazar Version Control System

Image
(note : this post will be improved soon) I'm changing my server to a new machine as the existing one as capacitor leak issue on the motherboard... I switch from sme server to ubuntu server. And as I was almost finishing the migration of my cvs repository to the new server, I asked myself : and what about SVN ? and Bazaar on which I've read about on mysql developer site ? And git, the VCS used for the linux kernel made by Linus Torvald himself (GIT and the Kernel) Here is a site that help me to have an idea of the feature of each VCS : http://www.versioncontrolblog.com/comparison/Bazaar/CVS/Git/Subversion/index.html I've made a try with GIT, but due to a poor eclipse plugin which development seems to have stalled. I've chosen to try Bazaar. And here is links that answer my main concern : CVS to Bazaar migration Through SSH connection Eclipse plug-in I've also mainly choose Bazaar because I already know cvs quite well, and made some try on SVN, but didn

Convert your CVS repository to GIT

Image
While I was on sick list, this last two week, I've search to get away from the venerable CVS and it's painful merge capabilities. (Also I was curious to try something else). Here is how I converted my CVS repository to git : Install GIT : sudo apt-get install git-core git-cvs Install cvs for the conversion : sudo apt-get install cvs cvsps Get the CVS repository backup ( a tar jcf of the cvs root dir) : mkdir ~/temp/cvs2git cd ~/temp/cvs2git scp root@10.0.0.99:/backups/local/files/20081006_ibay_cvs.tar.bz2 . tar jxf 20081006_ibay_cvs.tar.bz2 Launch the conversion : export CVSROOT=/home/thomas/temp/cvs2git/cvs/files git cvsimport -C /home/thomas/temp/cvs2gitOutput/crf-irp crf-irp git cvsimport -C /home/thomas/temp/cvs2gitOutput/crf-irp-model crf-irp-model git cvsimport -C /home/thomas/temp/cvs2gitOutput/crf-irp-monitor crf-irp-monitor git cvsimport -C /home/thomas/temp/cvs2gitOutput/crf-irp-portail crf-irp-portail git cvsimport -C /home/thomas

mount a NTFS partition on hardware RAID0 controller under linux

Image
My main computer has a major hardware issue (probably the motherboard, maybe the cpu). I can't re-install windows, it crashes in the middle of the installation. To complicate things, I've installed my windows on a (fake)hardware RAID0. It's fake because the raid part is handle by the windows driver. That's why you can still see the hard drives under linux as /dev/sda /dev/sdb etc... even after having setup your RAID0/1/5 Array in the bios. As I'm not completely dumb, I've stored no critical data on the RAID array... But still, I wanted to check that fact (I'm not dumb ;) and get some non critical files, such as game save (I don't play that much recently... so sad, but it may change once Diablo III or Starcraft II is released). To get my data back, I've used a linux Distribution and use it's DMRAID capabilities. I've downloaded and burned the Gentoo Live CD . BTW, it's a really great distribution. I loved to installed it fro

What I allways install/change on my ubuntu servers

Image
I'm installing several ubuntu servers for various purpose (home server, Secondary DNS server, new primary DNS server, web servers, development servers). For each one, I write the setup documentation (which are stored on a google apps premium account, which is by the way a must have for all the cooperative stuff). Here is what I do for all servers, no matter the final use : useful software sudo -s # switch to root account as at setup I do a lot of root stuff apt-get update # update the apt-get package list apt-get upgrade # upgrade all package that are installed by default apt-get install vim-full; # A lot of dependencies comes along, but vim is much better after (need some config modification) apt-get install sysstat; # To monitor Hard drive activities apt-get install whois; # contains the mkpasswd command apt-get install slocate; # slocate, t

Setting up UPS link with an ubuntu server

Image
I've bought a new server (build from parts) to replace the old one that has capacitor leak issues and died † And with it, I bought a new UPS (Uninterruptible Power Supply) to replace the old one that non longer work either... I've googled internet to setup this UPS with my linux server (ubuntu server 8.0.4.1) and here is the result of my search and work : When the UPS detect a power outage, it wait some times (configured depending on the capacity of the UPS and the power consumption of the server), and then send a mail with the UPS state just before the shutdown, and then shutdown the server. While waiting some time, if the power is back, the shutdown is cancelled. The UPS state is useful as it shows you the health of your UPS when it goes on battery. If the charge is really low when the server is shutdown, you might want to reduce the time it wait on battery before shutting down the server or replace the battery (or the UPS). If the charge is really close to 100, y