Posts Tagged ‘linux’

Gentoo

Wednesday, June 25th, 2014

Just so that I don’t forget ;)

Installation

TBD

Maintenance

eix-sync
#layman?
emerge -aNuDv world
emerge -av --depclean
etc-update
env-update
source /etc/profil

 

Kernel update

https://wiki.gentoo.org/wiki/Kernel/Configuration
https://wiki.gentoo.org/wiki/Kernel/Upgrade
https://wiki.gentoo.org/wiki/GRUB2

eselect kernel list
eselect kernel set <new_kernel_number>
cd /usr/src/linux
zcat /proc/config.gz > .config
make oldconfig
make menuconfig
make modules_prepare
emerge --ask @module-rebuild

make
make modules_install

mount /boot
make install
groub2-install /dev/sda

 

Overlays Layman etc

https://wiki.gentoo.org/wiki/Overlay

http://gpo.zugaina.org/

http://www.gentoo.org/proj/en/overlays/userguide.xml

search in overlays: http://ddg.gg > search “!gpo <program_name>”

according to http://gpo.zugaina.org/Overlays:

We’ll go through it on example of OpenMQ messaging service for Java.

searching gets us here: http://gpo.zugaina.org/dev-java/openmq

We see the package is in overlay named bgo-overlay and that its outside of layman repository.

# layman -o http://gpo.zugaina.org/lst/gpo-repositories.xml -L
# layman -o http://gpo.zugaina.org/lst/gpo-repositories.xml -a bgo-overlay
# eix-update

At this moment eix-update got stuck according to this error:

https://forums.gentoo.org/viewtopic-t-813539-view-previous.html?sid=dfb137d19d96a4dd91d9acd20878e139

I decided to remove the bgo-overlay and fetch the ebuild for OpenMQ manually

# layman -d bgo-overlay
# eix-update

Manually installing ebuilds

I’ll be following this ancient manual: http://www.gentoo-wiki.info/HOWTO_Installing_3rd_Party_Ebuilds

If not done yet, prepare your local overlay directory.

echo 'PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/portage"' >> /etc/portage/make.conf
mkdir /usr/local/portage

Get the download link from http://gpo.zugaina.org/dev-java/openmq

# mkdir -p /usr/local/portage/dev-java/openmq
# cd /usr/local/portage/dev-java/openmq/
# wget http://gpo.zugaina.org/AJAX/Ebuild/2578055 -O openmq-4.4.1.ebuild

Then we can see it:

# eix-update
# eix openmq
* dev-java/openmq [1]
     Available versions:  ~4.4.1
     Homepage:            http://mq.dev.java.net/
     Description:         An enterprise quality Java Message Service (JMS) implementation

We still have to digest the ebuild (we’re still in the /usr/local/portage/dev-java/openmq/ directory)

vim openmq-4.4.1.ebuild ### check it carefully if you don't know the source
ebuild openmq-4.4.1.ebuild digest

Here I got stuck and quitting on error:

emerge: there are no ebuilds to satisfy "dev-java/grizzly-nio-framework-bin".

Because there is no such ebuild available anywhere in portage OR overlays. Falling back to manually installing OpenMQ from downloaded tarball.