czwartek, 11 kwietnia 2013

Howto enable silverlight in ubuntu firefox

You can install moonlight from site but still - there will be no effects. You don't have apropirate codecs. In the next step you need to open page with samples. Then clik on one of given samples and allow to install codec. Thats all.

Howto remove a broken add-on from Thunderbird

When you add a broken add-on to Thunderbird it may cause Thunderbird to prevent you from doing anything, so you cannot remove add-on which is causes Thunderbird crash. Write in terminal:

thunderbird -safe-mode

Then you can remove and add-on.
source

wtorek, 12 marca 2013

freemind Unable to find an appropriate java runtime. See java_wrappers(7)

I've installed freemind on ubuntu 12.04. It did not started. I've got a message:
[warning] /usr/bin/freemind: No java runtime was found
Unable to find an appropriate java runtime. See java_wrappers(7)

I checked if I have java. Yes. Oracle 7.
I installed Open JDK 6.
I checked:
      sudo update-alternatives --config java
I got:
      * 0            /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java   1061      tryb auto
         1            /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java   1061      tryb ręczny
         2            /usr/lib/jvm/java-7-oracle/jre/bin/java                    1         tryb ręczny


Freemind started to work.

środa, 20 lutego 2013

Usuwania znaków [tab] z dokumentu w LibreOffice

1. Ctrl-H.
2. Opcje rozszerzone.
3. Wyrażenia regularne.
4. Pole szukaj: \t
5. Poza zastąp zostawić puste.

Zamiana miękkiego CR na twardy w dokumencie LibreOffice

1. Ctrl-H - zastąp.
2. Rozwinąć opcje rozszerzone.
3. Zaznaczyć wyrażenia regularne.
4. W polu szukaj wpisać: \n
5. W polu wstaw wpisać: \n

środa, 11 kwietnia 2012

Znaczniki zamykania okna w Ubuntu

Nowe wersje ubuntu mają znaczniki zamykania okna (oraz minimalizacji i maksymalizacji) w lewym górnym rogu. Stare w prawym.

O tym gdzie się znajdują decyduje manager okien.
Tę rolę w Ubuntu pełni program metacity.
Konfiguracji metacity dokonuje się przy pomocy programu gconf-editor.
Powoduje on odświetlenie informacji nieco przypominających rejestr windows.
Konfigurowanie polega na zmianie wartości odpowiednich kluczy.
Klucz przechowujący informacje o znacznikach zamykania okna to: apps/metacity/general/button_layout

Układ tradycyjny znaczników to: menu:minimize,maximize,close
Układ z lewej strony to: close,minimize,maximize:

poniedziałek, 23 stycznia 2012

MySQL ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’

After some unexpected things I got "MySQL ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock"


Solution #1:

So - delete everything in "/etc" and "/var" that has "mysql". Delete, purge, reinstall. I know... that;s not the way. But...

link

Solution #2:
It happens again, after I issued sudo service mysql stop 
I've got the error 2002 messaged trying to run sqlbrowser.

I've checked if sql server is running:
ps auxww | grep mysql
I've got empty message.
So I issued "mysqld" - fails.
So I issued "sudo mysqld - everything works.


I've checked if sql server is running:
ps auxww | grep mysql
I'got two lines, the first was:

mysql     1237  0.0  0.8 145456 18164 ?        Ssl  09:01   0:00 /usr/sbin/mysqld

You can check if server is running by:
netstat -tap | grep mysql
So mysql server is running


3. Summary
sudo service mysql start - for start server
sudo service mysql stop - for stop server
sudo service mysql status - for server status