How to experiment with LXC on Debian

Okay LXC is hot and getting widely used by different stack in the infrastructure.So I decided to play with it little bit and show you how you can actually do it yourself with minimal fuss.

I am sitting on Debian Wheezy and I will get debian lxc container to run it on top of host os.First thing first…..let get the lxc package from debian repo…

You don’t have to sweat a bit ,because debian package maintainers do all the hard work for you.So,just go ahead and type in console like below:

<code>

apt-get install lxc lxcctl

</code>

The outcome will lot of packages if not all the dependency already installed in your system.But, nevermind ,as I said early..all will be downloaded if you say “y” on the prompt.

Like I have mine like this :

<code>

root@Debian_09:59:55_Sat Feb 22:/usr/share/lxc/templates # apt-get install lxc lxctl
Reading package lists… Done
Building dependency tree
Reading state information… Done
lxc is already the newest version.
lxctl is already the newest version.
The following packages were automatically installed and are no longer required:
anthy-common aumix aumix-common bsh bsh-gcj dasher dasher-data db4.8-util dmz-cursor-theme dvd+rw-tools ekiga emacs espeak etherboot-qemu foomatic-filters-ppds freedesktop-sound-theme
freeglut3 fuse-utils g++-4.4 genisoimage gnome-desktop-data gnome-doc-utils gnome-media-common gnome-office gnome-session-canberra gnome-themes gnome-themes-extras gnome-themes-more
growisofs gstreamer0.10-fluendo-mp3 gtk2-engines-pixbuf gtk2-engines-smooth guile-1.8-libs javascript-common kaboom libanthy0 libart2.0-cil libaudiofile0 libavahi-ui0 libavcodec52
libavdevice52 libavfilter0 libavformat52 libavutil49 libbabl-0.0-0 libboost-date-time1.42.0 libboost-python1.42.0 libboost-python1.49.0 libboost-signals1.42.0 libboost-thread1.42.0
libcamel1.2-14 libcapi20-3 libcdio-cdda0 libcdio-paranoia0 libcdio10 libcdt4 libcelt0-0 libchamplain-0.4-0 libchamplain-gtk-0.4-0 libcheese-gtk18 libclutter-gtk-0.10-0 libcryptui0
libdb4.7-java libdb4.7-java-gcj libdvbpsi6 libebackend1.2-0 libebml0 libedataserver1.2-13 libeggdbus-1-0 libegroupwise1.2-13 libevince2 libexiv2-9 libexo-0.3-0 libfreerdp-plugins-standard
libfreerdp0 libfreerdp1 libgalago3 libgcr0 libgdata-google1.2-1 libgdata1.2-1 libgdata7 libgegl-0.0-0 libgexiv2-0 libgirepository1.0-0 libglade2.0-cil libglademm-2.4-1c2a libgmime-2.4-2
libgmime2.4-cil libgmp3c2 libgnome-bluetooth7 libgnome-desktop-2-17 libgnome-media0 libgnome-menu2 libgnome-vfs2.0-cil libgnome-window-settings1 libgnome2-canvas-perl libgnome2-perl
libgnome2-vfs-perl libgnome2.24-cil libgnomekbd4 libgp11-0 libgraph4 libgraphicsmagick3 libgraphite3 libgs8 libgssdp-1.0-2 libgtkglext1 libgtkhtml-editor-common libgtkhtml3.14-19
libgtkimageview0 libgtksourceview2.0-0 libgtksourceview2.0-common libgucharmap7 libgupnp-1.0-3 libgupnp-igd-1.0-3 libgvc5 libgweather1 libhunspell-1.2-0 libicu44 libimobiledevice1
libiso9660-7 libjpeg62 libjs-jquery libkpathsea5 libkprintutils4 libkutils4 liblapack3gf libmagick++3 libmagickcore3 libmagickcore3-extra libmagickwand3 libmatroska0 libmono-cairo2.0-cil
libmono-corlib2.0-cil libmono-i18n-west2.0-cil libmono-posix2.0-cil libmono-security2.0-cil libmono-sharpzip2.84-cil libmono-system2.0-cil libmozjs17d libmozjs2d libmusicbrainz3-6
libmusicbrainz4c2a libmysqlclient16 libndesk-dbus-glib1.0-cil libndesk-dbus1.0-cil libnet1 libnice0 libnm-glib2 libnm-util1 libntfs10 liboil0.3 liboobs-1-4 libopal3.10.4 libopal3.6.8
libopenspc0 libpathplan4 libpolkit-qt-1-0 libpoppler-glib4 libpoppler5 libpostproc51 libpt2.10.4 libpt2.6.7 libpython2.6 libqt4-webkit libraptor1 librasqal2 librpmio1 libserf-0-0 libslab0a
libsoundtouch1c2 libsrtp0 libstdc++6-4.4-dev libswscale0 libsysfs2 libtcltk-ruby libtcltk-ruby1.8 libtextcat-data-utf8 libthunar-vfs-1-2 libthunar-vfs-1-common libtracker-client-0.8-0
libunique-1.0-0 libvncserver0 libvpx0 libwebkit-1.0-2 libwebkit-1.0-common libwpd8c2a libwpg-0.1-1 libwps-0.1-1 libxcb-atom1 libxcb-aux0 libxcb-event1 libxcb-render-util0 libxdot4
libxfce4menu-0.1-0 libxine1 libxine1-bin libxine1-console libxine1-ffmpeg libxine1-misc-plugins libxine1-plugins libxine1-x liferea liferea-data menu-xdg min12xxw mono-2.0-gac ntfsprogs
openoffice.org-base openoffice.org-calc openoffice.org-common openoffice.org-draw openoffice.org-emailmerge openoffice.org-filter-binfilter openoffice.org-filter-mobiledev
openoffice.org-gtk openoffice.org-impress openoffice.org-java-common openoffice.org-math openoffice.org-officebean openoffice.org-style-galaxy openoffice.org-style-tango
openoffice.org-writer openvpn-blacklist phonon-backend-xine pnm2ppa postgresql-contrib-8.4 python-axiom python-bugbuddy python-clientform python-coherence python-configobj python-crypto
python-epsilon python-gdata python-gmenu python-gnomedesktop python-gtkglext1 python-gtksourceview2 python-lazr.restfulclient python-lazr.uri python-louie python-mechanize python-nevow
python-oauth python-opengl python-openssl python-pam python-pyasn1 python-pysqlite2 python-rdflib python-rsvg python-serial python-simplejson python-tagpy python-twisted-bin
python-twisted-conch python-twisted-core python-twisted-web python-wadllib python-webkit python-zope.interface remmina remmina-common remmina-plugin-rdp remmina-plugin-vnc ruby-elisp
ruby1.8-elisp rubygems1.8 software-center tcptraceroute ttf-lyx ttf-opensymbol ttf-sil-gentium update-manager-core update-manager-gnome update-notifier update-notifier-common xli xsltproc
xulrunner-1.9.1 xulrunner-10.0 xulrunner-17.0
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
</code>

See,I have already got those packages …nothing to be done in my case.But if you don’t have you will be prompted for install ,probably along with the dependency.

Now,lets check what it bring down with those package ,we are going to use! fist thing you need to run this to know how lxc inflated in your host system:

<code>

root@Debian_12:02:13_Sat Feb 22:~ # lxc-checkconfig
Kernel config /proc/config.gz not found, looking in other places…
Found kernel config file /boot/config-3.2.0-4-686-pae
— Namespaces —
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
Multiple /dev/pts instances: enabled

— Control groups —
Cgroup: enabled
Cgroup clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

— Misc —
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
</code>

Then,

I added a line like this on my host debian /etc/fstab

<code>

cgroup  /sys/fs/cgroup  cgroup  defaults  0   0

</code>

O BTW when you install lxc ,it will ask you where to store your container,the default path /var/lib/lxc, but I decided to installed it on one of my lvm partition ,nothing just because of more space and out of root file system.It all depends on you where you want to put up those…mine is here

/lvm/lxc/ .

<code>

root@Debian_10:02:56_Sat Feb 22:~ # whereis lxc
lxc: /usr/bin/lxc /etc/lxc /usr/bin/X11/lxc /usr/share/lxc /usr/share/man/man1/lxc.1.gz /usr/share/man/man7/lxc.7.gz
root@Debian_10:03:00_Sat Feb 22:~ # cd /usr/share/lxc
root@Debian_10:03:18_Sat Feb 22:/usr/share/lxc # ls
cache  packages  templates
root@Debian_10:03:19_Sat Feb 22:/usr/share/lxc # cd templates/
root@Debian_10:03:21_Sat Feb 22:/usr/share/lxc/templates # ls
lxc-altlinux  lxc-archlinux  lxc-debconf  lxc-debconf.d  lxc-debian  lxc-fedora  lxc-opensuse  lxc-progress  lxc-progress.d  lxc-sshd  lxc-ubuntu-cloud
</code>

The bold section in the above is the predefined lxc template come along with the package you download .In this example I will deal with lxc-debian

How to create lxc template with userspace tools:

<code>

root@Debian_11:43:47_Sat Feb 22:~ # lxc-create -n debian-lxc -t debian
Note: Usually the template option is called with a configuration
file option too, mostly to configure the network.
For more information look at lxc.conf (5)

debootstrap is /usr/sbin/debootstrap
Checking cache download in /var/cache/lxc/debian/rootfs-wheezy-i386 …
Copying rootfs to /var/lib/lxc/debian-lxc/rootfs…
Copying rootfs to /var/lib/lxc/debian-lxc/rootfs…Generating locales (this might take a while)…
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = “en_IN:en”,
        LC_ALL = (unset),
        LANG = “en_IN”
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
*** update-locale: Error: invalid locale settings:  LANG=en_IN
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = “en_IN:en”,
        LC_ALL = (unset),
        LANG = “en_IN”
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
update-rc.d: using dependency based boot sequencing
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = “en_IN:en”,
        LC_ALL = (unset),
        LANG = “en_IN”
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
update-rc.d: using dependency based boot sequencing
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = “en_IN:en”,
        LC_ALL = (unset),
        LANG = “en_IN”
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
update-rc.d: using dependency based boot sequencing
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = “en_IN:en”,
        LC_ALL = (unset),
        LANG = “en_IN”
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
update-rc.d: using dependency based boot sequencing
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = “en_IN:en”,
        LC_ALL = (unset),
        LANG = “en_IN”
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Current default time zone: ‘Asia/Kolkata’
Local time is now:      Sat Feb 22 11:44:48 IST 2014.
Universal Time is now:  Sat Feb 22 06:14:48 UTC 2014.

Root password is ‘root’, please change !
‘debian’ template installed
‘debian-lxc’ created
</code>

Whoa! so fast..no it was not at first time! because I have done it in the past on this same machine ,so the packages are cached so it get from there.I just destroy my previous container of debian and recreate it for the sake of showing you.But if it hand’t been done before it will simply pull all the required package and verify then show the last section of the above code!!

Now,time to get into the console and change the root passwd first.But,please take a note that when you get into the lxc console always use screen or some other tool to get in.Because CTRL-c ,CTRL-d doesn’t work properly.So , the console can hung and you can no way terminate it normally.

So here is the procedure to get into the lxc debian(in this case) console,but before that you need to start the container like below:

<code>

root@Debian_11:52:01_Sat Feb 22:~ # lxc-start -n debian-lxc -d
</code>

Make sure you use “d” or daemonize option to send it to background…not doing so has other effect ..which I will point out with a pointer in the below resource section.

Verify you container is up

<code>

root@Debian_11:52:55_Sat Feb 22:~ # lxc-list
RUNNING
debian-lxc

FROZEN

STOPPED
</code>

Okay, lets get into the container :)

<code>

root@Debian_11:53:55_Sat Feb 22:~ #lxc-console -n debian-lxc

</code>


Here is pic how it look like :

Debian-lxc

Debian-lxc

 

Hope this will help.

Resources:

https://wiki.debian.org/LXC

http://lxc.teegra.net/

http://www.pdxsys.com/articles/lxc/lxc1/

http://www.ibm.com/developerworks/library/l-lxc-containers/index.html

Cheers!

Bhaskar

PS: I am having trouble to get fedora and opensuse container going on Debian …hopefully it will resolve soon and I will post the content here.

RVM- Ruby Version Manager

Exploring RVM

I am trying get a feel for it …following the documentation …probabaly upate later.I was basically doing everything by gem..lack of awareness..heck…

This was provided by my colleague Brian ..thanks mate…

Converting ext3 to ext4 filesystem

Here is a little tip which might help people to do the required thing to get the job done. As the title of this post said..will outline the procedure for that.

Here we go..


bhaskar@GentooLinux_10:50:09_Thu Mar 28:~> sudo blkid
Password:
/dev/sda1: LABEL="ARCH" UUID="9db5a364-ee86-4c57-8252-bfff8581e4b6" TYPE="ext4"
/dev/sda2: LABEL="Fedora-boot" UUID="ff94a6b0-3eee-4dc9-83e0-cbde449e93d7" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: UUID="kiCF1K-xTxV-t2Yu-CrBX-oENB-1kSn-6UY4Va" TYPE="LVM2_member"
/dev/sda5: UUID="X2MDAl-EaD9-s0kY-FbpZ-X6Wo-GowQ-yvTu1z" TYPE="LVM2_member"
/dev/sda6: LABEL="Fedora" UUID="7945ae6e-7061-4153-a5a1-ab9f60f693ae" TYPE="ext4"
/dev/sda7: UUID="61147c93-cf06-4d45-8204-b79b5b5d19a4" TYPE="swap"
/dev/sda8: LABEL="Slackware" UUID="77de30c7-fb6a-42d8-9cc3-7bd29e2cba06" TYPE="ext4"
/dev/sda9: LABEL="Gentoo" UUID="d83b45ce-ce1c-4678-9663-b884bab6f5cb" TYPE="ext4"
/dev/sda10: LABEL="Debian" UUID="1c0feb69-e586-4b2a-b774-176066a12e00" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda11: LABEL="ScientificLinux" UUID="7dedb9fe-8d77-4c93-bdbd-3297281041be" TYPE="ext4"
/dev/sda12: LABEL="openSUSE" UUID="924f28b3-8cda-4d7e-a833-c7687580e113" TYPE="ext4"
/dev/sda13: UUID="1Ke3cG-vv1Y-vgi6-Sszr-r3nz-xbQx-QzFyp1" TYPE="LVM2_member"
/dev/mapper/home-home: UUID="9fa403bf-858d-4ce2-9b5e-03bdeb2e9406" TYPE="ext3"
/dev/mapper/data-lvmdata: UUID="569e992f-3782-4689-8abf-85b59af4ba17" TYPE="ext3"
bhaskar@GentooLinux_11:58:30_Thu Mar 28:~> cat convert_to_ext4
tune2fs -O extents,uninit_bg,dir_index /dev/dev-name

For example convert /dev/sdb1 to ext4, enter:
# cd /; umount /dev/sdb1
# tune2fs -O extents,uninit_bg,dir_index /dev/sdb1
Next run fsck, enter:
# fsck -pf /dev/sdb1
a10skar@GentooLinux_11:58:38_Thu Mar 28:~> sudo tune2fs -O extents,uninit_bg,dir_index /dev/sda10
tune2fs 1.42 (29-Nov-2011)
bhaskar@GentooLinux_11:59:18_Thu Mar 28:~> fsck -pf /dev/sda10
bash: fsck: command not found
bhaskar@GentooLinux_11:59:36_Thu Mar 28:~> whereis fsck
fsck: /sbin/fsck.cramfs /sbin/fsck.minix /sbin/fsck.ext2 /sbin/fsck.ext4dev /sbin/fsck.ext4 /sbin/fsck.ext3 /sbin/fsck /usr/share/man/man8/fsck.8.bz2
bhaskar@GentooLinux_11:59:42_Thu Mar 28:~> sudo /sbin/fsck -pf /dev/sda10
fsck from util-linux 2.21.2
Debian: 261230/1220608 files (1.1% non-contiguous), 1666171/4882432 blockssudo blkid
/dev/sda1: LABEL="ARCH" UUID="9db5a364-ee86-4c57-8252-bfff8581e4b6" TYPE="ext4"
/dev/sda2: LABEL="Fedora-boot" UUID="ff94a6b0-3eee-4dc9-83e0-cbde449e93d7" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: UUID="kiCF1K-xTxV-t2Yu-CrBX-oENB-1kSn-6UY4Va" TYPE="LVM2_member"
/dev/sda5: UUID="X2MDAl-EaD9-s0kY-FbpZ-X6Wo-GowQ-yvTu1z" TYPE="LVM2_member"
/dev/sda6: LABEL="Fedora" UUID="7945ae6e-7061-4153-a5a1-ab9f60f693ae" TYPE="ext4"
/dev/sda7: UUID="61147c93-cf06-4d45-8204-b79b5b5d19a4" TYPE="swap"
/dev/sda8: LABEL="Slackware" UUID="77de30c7-fb6a-42d8-9cc3-7bd29e2cba06" TYPE="ext4"
/dev/sda9: LABEL="Gentoo" UUID="d83b45ce-ce1c-4678-9663-b884bab6f5cb" TYPE="ext4"
/dev/sda10: LABEL="Debian" UUID="1c0feb69-e586-4b2a-b774-176066a12e00" TYPE="ext4"
/dev/sda11: LABEL="ScientificLinux" UUID="7dedb9fe-8d77-4c93-bdbd-3297281041be" TYPE="ext4"
/dev/sda12: LABEL="openSUSE" UUID="924f28b3-8cda-4d7e-a833-c7687580e113" TYPE="ext4"
/dev/sda13: UUID="1Ke3cG-vv1Y-vgi6-Sszr-r3nz-xbQx-QzFyp1" TYPE="LVM2_member"
/dev/mapper/home-home: UUID="9fa403bf-858d-4ce2-9b5e-03bdeb2e9406" TYPE="ext3"
/dev/mapper/data-lvmdata: UUID="569e992f-3782-4689-8abf-85b59af4ba17" TYPE="ext3"

In the many partition I have changed the “Debian” partition from ext3 to ext4.Next time you get into that specific drive …please check the file /proc/filesystems …and it should enlist ext4 in it.

Hope this will help.

Cheers!
Bhaskar

How to add Gnome-Shell Weather Extension on Arch Linux

Easy as you like..follow the below description…if you don’t like the description below then why not look in here for your mental peace!!

WGET:


-git.tar.gzhLinux_10:40:55_Mon Nov 26:~> wget https://aur.archlinux.org/packages/gn/gnome-shell-extension-weather-neroth-git/gnome-shell-extension-weather-neroth
--2012-11-26 10:41:01-- https://aur.archlinux.org/packages/gn/gnome-shell-extension-weather-neroth-git/gnome-shell-extension-weather-neroth-git.tar.gz
Resolving aur.archlinux.org (aur.archlinux.org)... 78.46.78.247, 2a01:4f8:120:34c2::2
Connecting to aur.archlinux.org (aur.archlinux.org)|78.46.78.247|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1023 [application/x-gzip]
Saving to: ‘gnome-shell-extension-weather-neroth-git.tar.gz

100%[======================================================================================================================================================>] 1,023 --.-K/s in 0s

2012-11-26 10:41:03 (130 MB/s) - ‘gnome-shell-extension-weather-neroth-git.tar.gz’ saved [1023/1023]

UNTAR:

bhaskar@ArchLinux_10:41:03_Mon Nov 26:~> tar -xvzf gnome-shell-extension-weather-neroth-git.tar.gz
gnome-shell-extension-weather-neroth-git/
gnome-shell-extension-weather-neroth-git/PKGBUILD
gnome-shell-extension-weather-neroth-git/gschemas.install
bhaskar@ArchLinux_10:41:39_Mon Nov 26:~> cd gnome-shell-extension-weather-neroth-git
bhaskar@ArchLinux_10:41:43_Mon Nov 26:~/gnome-shell-extension-weather-neroth-git> ls
gschemas.install PKGBUILD

MakePKG:

bhaskar@ArchLinux_10:41:44_Mon Nov 26:~/gnome-shell-extension-weather-neroth-git> makepkg -si
==> Determining latest git revision...
-> Version found: 20121126
==> Making package: gnome-shell-extension-weather-neroth-git 20121126-1 (Mon Nov 26 10:41:54 IST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Starting build()...
==> Connecting to GIT server....
Cloning into 'gnome-shell-extension-weather'...
remote: Counting objects: 1795, done.
remote: Compressing objects: 100% (742/742), done.
remote: Total 1795 (delta 1246), reused 1551 (delta 1017)
Receiving objects: 100% (1795/1795), 2.30 MiB | 60 KiB/s, done.
Resolving deltas: 100% (1246/1246), done.
==> GIT checkout done or server timeout
/usr/bin/gnome-autogen.sh
checking for autoconf >= 2.53...
testing autoconf2.50... not found.
testing autoconf... found 2.69
checking for automake >= 1.9...
testing automake-1.12... found 1.12.5
checking for intltool >= 0.25...
testing intltoolize... found 0.50.2
Checking for required M4 macros...
Checking for forbidden M4 macros...
Processing ./configure.ac
Running intltoolize...
Running aclocal-1.12...
Running autoconf...
Running automake-1.12...
configure.ac:8: installing 'config/install-sh'
configure.ac:8: installing 'config/missing'
Running ./configure --prefix=/usr ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... yes
checking whether NLS is requested... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for intltool >= 0.26... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.16.2
checking for XML::Parser... ok
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.22... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: executing depfiles commands
config.status: executing po/stamp-it commands
Now type `make' to compile gnome-shell-extension-weather
Making all in src
make[1]: Entering directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/src'
GEN weather-settings
GEN weather-settings.desktop
GEN metadata.json
ITMRG org.gnome.shell.extensions.weather.gschema.xml
GEN org.gnome.shell.extensions.weather.gschema.valid
make[1]: Leaving directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/src'
Making all in po
make[1]: Entering directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/po'
MSGFMT ca.gmo
MSGFMT cs.gmo
MSGFMT da.gmo
MSGFMT de.gmo
MSGFMT es.gmo
MSGFMT fi.gmo
MSGFMT fr.gmo
MSGFMT he.gmo
MSGFMT it.gmo
MSGFMT ja.gmo
MSGFMT lt.gmo
MSGFMT nb.gmo
MSGFMT nl.gmo
MSGFMT pt.gmo
MSGFMT ro.gmo
MSGFMT ru.gmo
MSGFMT sk.gmo
MSGFMT sv.gmo
MSGFMT uk.gmo
MSGFMT vi.gmo
MSGFMT zh_CN.gmo
MSGFMT zh_TW.gmo
MSGFMT pl.gmo
make[1]: Leaving directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/po'
make[1]: Entering directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather'
==> Entering fakeroot environment...
==> Starting package()...
Making install in src
make[1]: Entering directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/src'
make[2]: Entering directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/src'
make[2]: Nothing to be done for `install-exec-am'.
/usr/bin/mkdir -p '/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/applications'
/usr/bin/install -c -m 644 weather-settings.desktop '/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/applications'
/usr/bin/mkdir -p '/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/gnome-shell/extensions/weather@gnome-shell-extensions.gnome.org'
/usr/bin/install -c -m 644 extension.js stylesheet.css weather-settings.ui '/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/gnome-shell/extensions/weather@gnome-shell-extensions.gnome.org'
/usr/bin/mkdir -p '/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/gnome-shell/extensions/weather@gnome-shell-extensions.gnome.org'
/usr/bin/install -c -m 644 metadata.json '/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/gnome-shell/extensions/weather@gnome-shell-extensions.gnome.org'
/usr/bin/mkdir -p '/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/gnome-shell/extensions/weather@gnome-shell-extensions.gnome.org'
/usr/bin/install -c weather-settings '/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/gnome-shell/extensions/weather@gnome-shell-extensions.gnome.org'
if test -n "org.gnome.shell.extensions.weather.gschema.xml"; then \
test -z "/usr/share/glib-2.0/schemas" || /usr/bin/mkdir -p "/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/glib-2.0/schemas"; \
/usr/bin/install -c -m 644 org.gnome.shell.extensions.weather.gschema.xml "/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/glib-2.0/schemas"; \
test -n "/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg" || glib-compile-schemas /usr/share/glib-2.0/schemas; \
fi
make[2]: Leaving directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/src'
make[1]: Leaving directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/src'
Making install in po
make[1]: Entering directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/po'
linguas="ca cs da de es fi fr he it ja lt nb nl pt ro ru sk sv uk vi zh_CN zh_TW pl "; \
for lang in $linguas; do \
dir=/home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/$lang/LC_MESSAGES; \
/bin/sh /home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/config/install-sh -d $dir; \
if test -r $lang.gmo; then \
/usr/bin/install -c -m 644 $lang.gmo $dir/gnome-shell-extension-weather.mo; \
echo "installing $lang.gmo as $dir/gnome-shell-extension-weather.mo"; \
else \
/usr/bin/install -c -m 644 ./$lang.gmo $dir/gnome-shell-extension-weather.mo; \
echo "installing ./$lang.gmo as" \
"$dir/gnome-shell-extension-weather.mo"; \
fi; \
if test -r $lang.gmo.m; then \
/usr/bin/install -c -m 644 $lang.gmo.m $dir/gnome-shell-extension-weather.mo.m; \
echo "installing $lang.gmo.m as $dir/gnome-shell-extension-weather.mo.m"; \
else \
if test -r ./$lang.gmo.m ; then \
/usr/bin/install -c -m 644 ./$lang.gmo.m \
$dir/gnome-shell-extension-weather.mo.m; \
echo "installing ./$lang.gmo.m as" \
"$dir/gnome-shell-extension-weather.mo.m"; \
else \
true; \
fi; \
fi; \
done
installing ca.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/ca/LC_MESSAGES/gnome-shell-extension-weather.mo
installing cs.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/cs/LC_MESSAGES/gnome-shell-extension-weather.mo
installing da.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/da/LC_MESSAGES/gnome-shell-extension-weather.mo
installing de.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/de/LC_MESSAGES/gnome-shell-extension-weather.mo
installing es.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/es/LC_MESSAGES/gnome-shell-extension-weather.mo
installing fi.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/fi/LC_MESSAGES/gnome-shell-extension-weather.mo
installing fr.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/fr/LC_MESSAGES/gnome-shell-extension-weather.mo
installing he.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/he/LC_MESSAGES/gnome-shell-extension-weather.mo
installing it.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/it/LC_MESSAGES/gnome-shell-extension-weather.mo
installing ja.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/ja/LC_MESSAGES/gnome-shell-extension-weather.mo
installing lt.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/lt/LC_MESSAGES/gnome-shell-extension-weather.mo
installing nb.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/nb/LC_MESSAGES/gnome-shell-extension-weather.mo
installing nl.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/nl/LC_MESSAGES/gnome-shell-extension-weather.mo
installing pt.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/pt/LC_MESSAGES/gnome-shell-extension-weather.mo
installing ro.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/ro/LC_MESSAGES/gnome-shell-extension-weather.mo
installing ru.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/ru/LC_MESSAGES/gnome-shell-extension-weather.mo
installing sk.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/sk/LC_MESSAGES/gnome-shell-extension-weather.mo
installing sv.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/sv/LC_MESSAGES/gnome-shell-extension-weather.mo
installing uk.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/uk/LC_MESSAGES/gnome-shell-extension-weather.mo
installing vi.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/vi/LC_MESSAGES/gnome-shell-extension-weather.mo
installing zh_CN.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/zh_CN/LC_MESSAGES/gnome-shell-extension-weather.mo
installing zh_TW.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/zh_TW/LC_MESSAGES/gnome-shell-extension-weather.mo
installing pl.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/pl/LC_MESSAGES/gnome-shell-extension-weather.mo
make[1]: Leaving directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/po'
make[1]: Entering directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather'
make[2]: Entering directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather'
make[1]: Leaving directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather'
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Adding install file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: gnome-shell-extension-weather-neroth-git 20121126-1 (Mon Nov 26 10:43:30 IST 2012)
==> Installing package gnome-shell-extension-weather-neroth-git with pacman -U...
[sudo] password for bhaskar:
loading packages...
resolving dependencies...
looking for inter-conflicts...

Targets (1): gnome-shell-extension-weather-neroth-git-20121126-1

Total Installed Size: 0.44 MiB
Net Upgrade Size: 0.02 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity [#####################################################################] 100%
(1/1) loading package files [#####################################################################] 100%
(1/1) checking for file conflicts [#####################################################################] 100%
(1/1) checking available disk space [#####################################################################] 100%
(1/1) upgrading gnome-shell-extension-weather-neroth-git [#####################################################################] 100%

Just restart GNOME Shell ([Alt]+[F2], r).
What new ?
* Number localization
* Forcast temp modification
* Add a submenu for choose locations
* Add Beaufort scale + kPa unit
* Fix bug (delete all locations bug)
For more informations, see https://github.com/Neroth/gnome-shell-extension-weather.

bhaskar@ArchLinux_10:43:55_Mon Nov 26:~/gnome-shell-extension-weather-neroth-git> cd ~
bhaskar@ArchLinux_10:44:05_Mon Nov 26:~>
[ ArchLinux ][ 0-$ bash (1*$ bash) ][0.42 0.46 0.51][ 11/26 10:44 ]
installing sk.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/sk/LC_MESSAGES/gnome-shell-extension-weather.mo
installing sv.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/sv/LC_MESSAGES/gnome-shell-extension-weather.mo
installing uk.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/uk/LC_MESSAGES/gnome-shell-extension-weather.mo
installing vi.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/vi/LC_MESSAGES/gnome-shell-extension-weather.mo
installing zh_CN.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/zh_CN/LC_MESSAGES/gnome-shell-extension-weather.mo
installing zh_TW.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/zh_TW/LC_MESSAGES/gnome-shell-extension-weather.mo
installing pl.gmo as /home/bhaskar/gnome-shell-extension-weather-neroth-git/pkg/usr/share/locale/pl/LC_MESSAGES/gnome-shell-extension-weather.mo
make[1]: Leaving directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather/po'
make[1]: Entering directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather'
make[2]: Entering directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather'
make[1]: Leaving directory `/home/bhaskar/gnome-shell-extension-weather-neroth-git/src/gnome-shell-extension-weather'
==> Tidying install...
-> Purging unwanted files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
-> Generating .PKGINFO file...
-> Adding install file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: gnome-shell-extension-weather-neroth-git 20121126-1 (Mon Nov 26 10:43:30 IST 2012)
==> Installing package gnome-shell-extension-weather-neroth-git with pacman -U...
[sudo] password for bhaskar:
loading packages...
resolving dependencies...
looking for inter-conflicts...

Targets (1): gnome-shell-extension-weather-neroth-git-20121126-1

Total Installed Size: 0.44 MiB
Net Upgrade Size: 0.02 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity [#####################################################################] 100%
(1/1) loading package files [#####################################################################] 100%
(1/1) checking for file conflicts [#####################################################################] 100%
(1/1) checking available disk space [#####################################################################] 100%
(1/1) upgrading gnome-shell-extension-weather-neroth-git [#####################################################################] 100%

Just restart GNOME Shell ([Alt]+[F2], r).
What new ?
* Number localization
* Forcast temp modification
* Add a submenu for choose locations
* Add Beaufort scale + kPa unit
* Fix bug (delete all locations bug)
For more informations, see https://github.com/Neroth/gnome-shell-extension-weather.

Hope this will help.

Cheers!
Bhaskar

Version check for important software build tool

Here is a small script , which will scan the system for important development tools for their version check.Simple and mundane.


#!/bin/bash
export LC_ALL=C

# Simple script to list version numbers of critical development tools

bash --version | head -n1 | cut -d" " -f2-4
echo "/bin/sh -> `readlink -f /bin/sh`"
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
bison --version | head -n1
if [ -e /usr/bin/yacc ];
then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
else echo "yacc not found"; fi
bzip2 --version 2>&1 `readlink -f /usr/bin/awk`";
else echo "awk not found"; fi
gcc --version | head -n1
/lib/libc.so.6 | head -n1 | cut -d"," -f1
grep --version | head -n1
gzip --version | head -n1
cat /proc/version
m4 --version | head -n1
make --version | head -n1
patch --version | head -n1
echo Perl `perl -V:version`
sed --version | head -n1
tar --version | head -n1
echo "Texinfo: `makeinfo --version | head -n1`"
echo 'main(){}' > dummy.c && gcc -o dummy dummy.c
if [ -x dummy ]; then echo "Compilation OK";
else echo "Compilation failed"; fi
rm -f dummy.c dummy

Running this script on my laptop shown the below output( I am on Slackware 13.37):


bhaskar@Slackware_12:18:38_Thu Aug 23:/lvm/Adm_scripts> sudo ./version-check.sh
bash, version 4.1.10(2)-release
/bin/sh -> /bin/bash
Binutils: (Linux/GNU Binutils) 2.21.51.0.6.20110118
bison (GNU Bison) 2.4.3
/usr/bin/yacc -> /usr/bin/yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.15
diff (GNU diffutils) 3.0
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /bin/gawk-3.1.8
gcc (GCC) 4.5.2
GNU C Library stable release version 2.13
grep (GNU grep) 2.7
gzip 1.4
Linux version 2.6.37.6-smp (root@midas) (gcc version 4.5.2 (GCC) ) #2 SMP Sat Apr 9 23:39:07 CDT 2011
m4 (GNU M4) 1.4.16
GNU Make 3.82
patch 2.6.1
Perl version='5.12.3';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
Compilation OK

You can customize it to include more.Hope this will help.

Cheers!
Bhaskar

Implementing Qemu-Kvm on Slackware-13.37

In this article I will show you how you can integrate qemu-kvm into the Slackware OS and utilise it to get other OS up.So, fasten you seat belt for the ride..it might be little bumpy..but we will take it…

Step 1: Get the required source from this site

So, I went ahead and get the required source mentioned in the above mentioned site.

Step 2: Untar it

bhaskar@Slackware_19:26:23_Wed Jun 06:~/Downloads> tar -xvzf qemu-kvm\(1\).tar.gz
qemu-kvm/
qemu-kvm/slack-desc
qemu-kvm/patches/
qemu-kvm/patches/deprecate-time-drift-fix.patch
qemu-kvm/patches/fixup_udev_rules.patch
qemu-kvm/README
qemu-kvm/qemu-kvm.info
qemu-kvm/qemu-kvm.SlackBuild

Step 3: Put the actual source into the previously inflated dir..the execution script look for it in that dir

bhaskar@Slackware_19:26:58_Wed Jun 06:~/Downloads> mv -v qemu-kvm-1.0.1.tar.gz ~/Downloads/qemu-kvm/
`qemu-kvm-1.0.1.tar.gz' -> `/home/bhaskar/Downloads/qemu-kvm/qemu-kvm-1.0.1.tar.gz'

Step 4:Get into the Step 2 inflated dir and execute this script qemu-kvm.SlackBuild

bhaskar@Slackware_19:38:23_Wed Jun 06:~/Downloads/qemu-kvm> sudo ./qemu-kvm.SlackBuild
....
....
....
usr/share/qemu/pxe-eepro100.rom
usr/share/qemu/vgabios-cirrus.bin
usr/share/qemu/linuxboot.bin
usr/share/qemu/vgabios.bin
usr/share/qemu/openbios-sparc32
usr/bin/
usr/bin/qemu-nbd
usr/bin/kvm_stat
usr/bin/qemu-img
usr/bin/qemu-kvm
usr/bin/qemu-io
usr/bin/qemu-ga
etc/
etc/qemu/
etc/qemu/target-x86_64.conf

Slackware package /tmp/qemu-kvm-1.0.1-i486-1_SBo.tgz created.

Step 5: Now get that source implemented into the system by below methods

root@Slackware:/tmp# installpkg qemu-kvm-1.0.1-i486-1_SBo.tgz
Verifying package qemu-kvm-1.0.1-i486-1_SBo.tgz.
Installing package qemu-kvm-1.0.1-i486-1_SBo.tgz:
PACKAGE DESCRIPTION:
# qemu-kvm (Stable branch - KVM requires QEMU)
#
# KVM (Kernel-based Virtual Machine) is a full virtualization solution
# for Linux on x86 hardware containing virtualization extensions
# (Intel VT or AMD-V).
#
# KVM is divided into the KVM-KMOD package (kernel modules) and the
# QEMU-KVM package (slightly modified QEMU) which are both available
# as separate Slackbuilds.
#
Package qemu-kvm-1.0.1-i486-1_SBo.tgz installed.

Step 6: Now time to test it out!

bhaskar@Slackware_19:44:08_Wed Jun 06:~> sudo /sbin/modprobe kvm
bhaskar@Slackware_19:44:21_Wed Jun 06:~> sudo /sbin/modprobe kvm_intel
bhaskar@Slackware_19:44:25_Wed Jun 06:~> whereis lsmod
lsmod: /bin/lsmod /sbin/lsmod /usr/man/man8/lsmod.8.gz /usr/share/man/man8/lsmod.8.gz /usr/X11/man/man8/lsmod.8.gz
bhaskar@Slackware_19:44:32_Wed Jun 06:~> sudo /bin/lsmod | grep kvm
kvm_intel 41712 0
kvm 283908 1 kvm_intel

Step 7: Run against a ISO file of OS

bhaskar@Slackware_20:08:41_Wed Jun 06:~/Downloads> /usr/bin/qemu-kvm -enable-kvm -cdrom /home/bhaskar/Downloads/BT5-GNOME-32.iso

and the outcome is below:

Hope this will help.

Cheers!
Bhaskar

How to manually install LibreOffice on Scientific Linux

So, Once I downloaded the tar file from this link LibreOffice , it is 150MB of size.

Fine, next I got into downloaded dir and untar it ..then get into the inflated dir like this :


bhaskar@Scientific-Linux_18:48:52_Mon Apr 09:~/Downloads> tar -xvzf LibO_3.5.2_Linux_x86_install-rpm_en-US.tar.gz
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/desktop-integration/
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/desktop-integration/libreoffice3.5-freedesktop-menus-3.5-202.noarch.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/desktop-integration/libreoffice3.5-mandriva-menus-3.5-202.noarch.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/desktop-integration/libreoffice3.5-suse-menus-3.5-202.noarch.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-kde-integration-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-gnome-integration-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-core01-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-math-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-extension-python-script-provider-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-calc-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-en-US-base-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-binfilter-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-en-US-res-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-dict-fr-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-core05-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-ogltrans-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-dict-es-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-writer-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-draw-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-extension-presentation-minimizer-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-core02-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-core06-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-en-US-calc-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-en-US-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-stdlibs-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-extension-mediawiki-publisher-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-extension-javascript-script-provider-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-math-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-impress-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-writer-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-images-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-draw-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-extension-report-builder-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-base-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-pyuno-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-core04-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-extension-beanshell-script-provider-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-en-US-math-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-dict-en-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-base-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-core07-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-en-US-writer-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-impress-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-postgresql-sdbc-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-ooolinguistic-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-extension-presenter-screen-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-ooofonts-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-extension-nlpsolver-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-xsltfilter-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-en-US-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-graphicfilter-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-calc-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-core03-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libreoffice3.5-ure-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-onlineupdate-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-extension-pdf-import-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/libobasis3.5-javafilter-3.5.2-202.i586.rpm
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/readmes/
LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/readmes/README_en-US

Now it’s pretty simple to install all the rpm’s at once like below:


bhaskar@Scientific-Linux_18:51:02_Mon Apr 09:~/Downloads/LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS> sudo rpm -ivh *.rpm
Preparing... ########################################### [100%]
1:libreoffice3.5-ure ########################################### [ 2%]
2:libobasis3.5-core01 ########################################### [ 4%]
3:libobasis3.5-core02 ########################################### [ 6%]
4:libobasis3.5-core03 ########################################### [ 7%]
5:libobasis3.5-core04 ########################################### [ 9%]
6:libobasis3.5-core05 ########################################### [ 11%]
7:libobasis3.5-core06 ########################################### [ 13%]
8:libobasis3.5-core07 ########################################### [ 15%]
9:libobasis3.5-en-US ########################################### [ 17%]
10:libobasis3.5-base ########################################### [ 19%]
11:libobasis3.5-impress ########################################### [ 20%]
12:libobasis3.5-en-US-base########################################### [ 22%]
13:libobasis3.5-en-US-calc########################################### [ 24%]
14:libobasis3.5-en-US-math########################################### [ 26%]
15:libobasis3.5-en-US-res ########################################### [ 28%]
16:libobasis3.5-en-US-writ########################################### [ 30%]
17:libobasis3.5-calc ########################################### [ 31%]
18:libobasis3.5-draw ########################################### [ 33%]
19:libobasis3.5-images ########################################### [ 35%]
20:libreoffice3.5 ########################################### [ 37%]
21:libobasis3.5-math ########################################### [ 39%]
22:libobasis3.5-writer ########################################### [ 41%]
23:libreoffice3.5-writer ########################################### [ 43%]
24:libreoffice3.5-math ########################################### [ 44%]
25:libreoffice3.5-base ########################################### [ 46%]
26:libreoffice3.5-calc ########################################### [ 48%]
27:libreoffice3.5-dict-en ########################################### [ 50%]
SUCCESS: unopkg returns successful!
28:libreoffice3.5-dict-es ########################################### [ 52%]
SUCCESS: unopkg returns successful!
29:libreoffice3.5-dict-fr ########################################### [ 54%]
SUCCESS: unopkg returns successful!
30:libreoffice3.5-draw ########################################### [ 56%]
31:libreoffice3.5-en-US ########################################### [ 57%]
32:libreoffice3.5-impress ########################################### [ 59%]
33:libobasis3.5-ogltrans ########################################### [ 61%]
34:libobasis3.5-postgresql########################################### [ 63%]
35:libobasis3.5-extension-########################################### [ 65%]
36:libobasis3.5-extension-########################################### [ 67%]
37:libobasis3.5-extension-########################################### [ 69%]
38:libobasis3.5-extension-########################################### [ 70%]
39:libobasis3.5-extension-########################################### [ 72%]
40:libobasis3.5-extension-########################################### [ 74%]
41:libobasis3.5-extension-########################################### [ 76%]
42:libobasis3.5-extension-########################################### [ 78%]
43:libobasis3.5-extension-########################################### [ 80%]
44:libobasis3.5-binfilter ########################################### [ 81%]
45:libobasis3.5-gnome-inte########################################### [ 83%]
46:libobasis3.5-graphicfil########################################### [ 85%]
47:libobasis3.5-javafilter########################################### [ 87%]
48:libobasis3.5-kde-integr########################################### [ 89%]
49:libobasis3.5-onlineupda########################################### [ 91%]
50:libobasis3.5-ooofonts ########################################### [ 93%]
51:libobasis3.5-ooolinguis########################################### [ 94%]
52:libobasis3.5-pyuno ########################################### [ 96%]
53:libobasis3.5-xsltfilter########################################### [ 98%]
54:libreoffice3.5-stdlibs ########################################### [100%]

But wait…I am not able to see the menu’s..okay there is directory inside the inflated dir called ” desktop-integration” and then get into that .

Next , only install the freedesktop rpm…which will eventually install the menus into the system.BTW while doing this you might come across those errors..I safely ignore those and it works..it might not be the case for you.


bhaskar@Scientific-Linux_18:53:54_Mon Apr 09:~/Downloads/LibO_3.5.2rc2_Linux_x86_install-rpm_en-US/RPMS/desktop-integration> sudo rpm -ivh libreoffice3.5-freedesktop-menus-3.5-202.noarch.rpm
Preparing... ########################################### [100%]
1:libreoffice3.5-freedesk########################################### [100%]
/usr/bin/update-desktop-database
/usr/bin/update-mime-database
Unknown media type in type 'all/all'

Unknown media type in type 'all/allfiles'

Unknown media type in type 'uri/mms'

Unknown media type in type 'uri/mmst'

Unknown media type in type 'uri/mmsu'

Unknown media type in type 'uri/pnm'

Unknown media type in type 'uri/rtspt'

Unknown media type in type 'uri/rtspu'

Unknown media type in type 'fonts/package'

Unknown media type in type 'interface/x-winamp-skin'

mkdir: cannot create directory `/usr/share/icons/hicolor/icon-theme.cache': Not a directory
mkdir: cannot create directory `/usr/share/icons/hicolor/index.theme': Not a directory
/usr/bin/gtk-update-icon-cache
/usr/bin/gtk-update-icon-cache
/usr/bin/update-desktop-database
/usr/bin/update-desktop-database

That’s all!!

Hope this will help.

Cheers!
Bhaskar

Follow

Get every new post delivered to your Inbox.

Join 93 other followers