Aario's blog about life and technology

Linux How-Tos

How to Install Libreoffice 4.3.4 on any non-supported Linux Distro

If you are using any linux distro that does not provide LibreOffice in its repository by any reason, and you are tired of facing error messages during compilation want to install LibreOffice at all cost, this is how:

First I went to libreoffice site and downloaded 4.3.4-1 package for 64bit debian.

Then I became root in terminal:

su

Then I extracted what I downloaded:

tar -xf <path to downloaded libreoffice file>

It created a folder named:

LibreOffice_4.3.4.1_Linux_x86-64_deb

So I entered:

cd ./LibreOffice_4.3.4.1_Linux_x86-64_deb

cd DEBS

mkdir unzip

cd unzip

for file in $(find ../ -type f -name *.deb); do echo $file; ar vx $file 1>/dev/null; tar -xf ./data.tar.gz; if [ -f ./preinst ]; then ./preinst; fi; /usr/bin/cp -rfp ./opt/libreoffice4.3 /opt/; /usr/bin/cp -rfp ./usr /; tar -xf ./control.tar.gz; if [ -f ./postinst ]; then ./postinst; fi; rm -rf ./*; done

That’s it. Now you should be able to run it by:

/opt/libreoffice4.3/program/soffice

After log out/log in you should also see menu items of it. If running it in terminal shows an error message of a shared library, do not panic! Search for how to install that specific library into your distro.

Remember: Freedom comes at a cost.

Enjoy!

libreoffice-writer


Solved Debian Wheezy wlan “deauthenticating by local choice” error

Living in Iran with an Islamic regime who follows former soviet union strategies in almost all sort of policies, access to ADSL internet is a rare and time consuming process and in some regions of the country is almost impossible! It’s one year since I moved to my new apartment an I still don’t have ADSL access. Last week decided to sue the manager of local public communication bureau of not letting people of the republic have access to ADSL internet! But in the last minute, they said we have one ADSL coupon freed today. Do you want to use it to subscribe for your home Internet?!

They’re supposed to connect my internet within a week but meanwhile I decided to clean-up my ADSL modem after a year and to connect my laptop WLAN to it and I faced:

[ 1005.872116] wlan0: no IPv6 routers present

And after a while:

[ 1049.628263] wlan0: deauthenticating from 54:e6:fc:a5:74:49 by local choice (reason=3)

The kde network manager icon shows “Setting network address…” for a while and then it just disconnects. Searched trough internet using my expensive and slow 3G mobile network for a while. Skipped all weblog posts which are globally censored by the government, and in here found that the solution is to:

open /etc/default/grub as root and in an editor. i.e. in KDE:

Press Alt+F2
Run kdesu kate /etc/default/grub

in opened text file replace below:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet”

With below:

GRUB_CMDLINE_LINUX_DEFAULT=”ipv6.disable=1 quiet”

Then run in command line:

sudo update-grub

And then reboot your system. It will update the grub boot loader with a new option to disable ipv6 on boot. As far as I investigated, there’s a bug inside software bundled with debian wheezy which makes dhcp client slow on wifi when ipv6 is not present on modem/router. So dhcp connection times out and wifi disconnects by “local choice”. You can increase this time limit or simply disable ipv6 as I described above and it should solve the problem.