Hodžův blog

Archive for the 'Scriptíky' Category

28 Dub

Ubuntu update && Qutim crashes every time

What console says: hodza@hodza-desktop:~$ qutim !!!!!!! ‚kde-plasma‘ ‚0x7f2c933977c0‘ ‚oxygen‘ (qutim:9554): GLib-GObject-WARNING **: cannot register existing type ‚GstObject‘ (qutim:9554): GLib-CRITICAL **: g_once_init_leave: assertion ‚result != 0‘ failed (qutim:9554): GLib-GObject-CRITICAL **: g_type_register_static: assertion ‚parent_type > 0‘ failed (qutim:9554): GLib-CRITICAL **: g_once_init_leave: assertion ‚result != 0‘ failed (qutim:9554): GLib-GObject-CRITICAL **: g_object_newv: assertion ‚G_TYPE_IS_OBJECT (object_type)‘ failed (qutim:9554): GStreamer-CRITICAL **: […]

17 Dub

HowTo: Mounting a image file made with dd or dd_rescue

1. Make a drive image # pv -tpreb /dev/sdb | dd of=/mnt/backup/disk_image.img bs=1M 2. Detect mount offset (mount offset=sector size*partition start) # fdisk -l /mnt/backup/disk_image.img

17 Dub

HowTo: copy disk (image) using dd command with progressbar

Create image from disk /dev/sdb to image file /mnt/backup/disk_image.img. BS is for speedup. # pv -tpreb /dev/sdb | dd of=/mnt/backup/disk_image.img bs=1M Tranfer preview: 932GB 2:46:17 [95,6MB/s] [=============================================>] 100%

09 Bře

HowTo fix Warning: Couldn’t execute ‚show events‘: Access denied for user ‚root’@’localhost‘ to database ‚performance_schema‘ (1044)

This is a virtual database so you will need to add the option –skip-events to make it work.

02 Led

HowTo Fix: Libreoffice crashes when saving document

Try to enable ugly LibreOffice native dialogs Menu „Tools“ -> „Options…“ -> „General“ -> In section „Open/Save dialogs“ just enable „Use LibreOffice dialogs“

29 Pro

HowTo fix Warning: Skipping the data of table mysql.event. Specify the –events option explicitly.

Try this workaround: mysqldump -uroot –events –ignore-table=mysql.event mysql

24 Čvc

Qutim & KDE 4.1.0.5 – There is no tray icon

Problem is obviously in file ~/.kde/share/config/plasma-desktop-appletsrc Try to fix it by typing: cp ~/.kde/share/config/plasma-desktop-appletsrc ~/.kde/share/config/plasma-desktop-appletsrc.old rm ~/.kde/share/config/plasma-desktop-appletsrc sudo reboot Warnig – all you plasma settings will be lost…

18 Bře

HowTo block facebook with iptables

Insert these lines into your firewall: iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange –dst-range 66.220.144.0-66.220.159.255 –dport 443 -j REJECT –reject-with tcp-reset iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange –dst-range 69.63.176.0-69.63.191.255 –dport 443 -j REJECT –reject-with tcp-reset iptables -t filter -I FORWARD -s 192.168.0.0/24 […]

15 Bře

HowTo Install Latest Redmine on Debian 6 (Squeeze, Ruby-on-Rails, Apache2 Passenger)

This is a short .bash_history manual… First install fresh Debian Squueze from businesscard (when selecting packages uncheck ALL). Correct hostname: # vi /etc/hostname server.example.com

01 Srp

HowTo install Oracle Instant Client and PHP OCI8 module under Debian Squueze (Ubuntu) 64bit

1) Download the Basic and the SDK packages from http://www.oracle.com (registration needed). # mkdir -p /opt/oracle/instantclient # cd /opt/oracle/instantclient # wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-basic-linux-x86-64-11.2.0.2.0.zip # wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-sdk-linux-x86-64-11.2.0.2.0.zip“

Hodžův blog is is proudly powered by Wordpress and the Magellan Theme