Saturday, July 19, 2014

How to build obmenu-generator for Debian Linux

 obmenu-generator generates a menu with icons for openbox

These are the steps that need to be followed:

1) Dependencies: perl-linux-desktopfiles and perl-data-dump

A) How to download, compile and install perl-linux-desktopfiles:

$ wget http://cpan.metacpan.org/authors/id/T/TR/TRIZEN/DesktopFiles-0.08.tar.gz
$ tar -zxvf DesktopFiles-0.08.tar.gz
$ cd Linux-DesktopFiles-0.08/
$ perl Build.PL
$ ./Build
$ ./Build test
$ sudo ./Build install

B) How to download and install perl-data-dump:

$ wget http://mirror.us.leaseweb.net/archlinux/community/os/i686/perl-data-dump-1.22-1-any.pkg.tar.xz
$ sudo tar -Jxvf perl-data-dump-1.22-1-any.pkg.tar.xz -C / --exclude=.PKGINFO --exclude=.MTREE

Then you need to run the following command to find obmenu-generator Data:

$ sudo cp -av /usr/share/perl5/vendor_perl/Data /usr/local/share/perl/5.14.2/

If the command fails repeat it after installing obmenu-generator.

2) obmenu-generator

How to download, build and install the deb obmenu-generator:

$ mkdir obmenu-generator
$ cd obmenu-generator/
$ mkdir DEBIAN
$ nano DEBIAN/control

Copy paste these contents

Package: obmenu-generator
Version: 1.0
Section: custom
Priority: optional
Architecture: all
Essential: no
Installed-Size: 1375
Maintainer: Daniel Șuteu
Description: Menus generator for OpenBox

Save and close it with Ctrl + O and Ctrl + X

$ mkdir -p usr/bin/
$ wget -nv http://trizen.googlecode.com/files/obmenu-generator
$ chmod +x obmenu-generator
$ mv obmenu-generator usr/bin/
$ cd ..
$ dpkg-deb -b obmenu-generator
$ sudo dpkg -i obmenu-generator.deb
$ dpkg -l obmenu-generator
$ obmenu-generator

For generating a static menu, use:
   obmenu-generator -i -s

or dynamic menu:
   obmenu-generator -i -p

and reconfigure the Openbox, by executing:
       openbox --reconfigure





1 comment:

edps said...

hi, a simple way to this is a packaging the perl modules:

https://edpsblog.wordpress.com/2015/04/18/how-to-criacao-de-pacotes-deb-a-partir-de-modulos-cpan/