суббота, 27 июля 2013 г.

create maven project


#create maven project
mvn archetype:generate -DgroupId=my.company.project -DartifactId=modulename -DarchetypeArtifactId=maven-archetype-quickstart -Dversion=0.1 -DinteractiveMode=false


git init
git add *
git commit -a -m"Initial commit"
git remote add origin https://username@bitbucket.org/username/myrepo.git
git push -u origin --all
mvn idea:idea

пятница, 12 июля 2013 г.

Expand LVM volume after install

Sometimes it is necessary to expand / partition after default installation and truncate /home partition using LVM.

umount /home
lvremove /dev/VolGroup/lv_home
lvextend -l +100%FREE  /dev/VolGroup/lv_root
resize2fs  /dev/VolGroup/lv_root

delete line about /home in /etc/fstab

Install GNOME after RHEL 6 minimal installation

#if u use oracle repo then
rpm -e redhat-release-server.x86_64 --nodeps
yum install oraclelinux-release.x86_64

yum -y groupinstall "X Window System" "Fonts" "Desktop"
vi /etc/inittab
        change id:3:initdefault: to id:5:initdefault:
init 6