Category Archives: Linux

Any kind of Linux related subjects

Convert squid.log timestamp to readable format

Squid log looks like this: Tue May 21 07:32:33 2013     25 10.0.1.63 TCP_MISS/200 68240 GET http://www.olcsobabakocsi.com/imagebrowser/ib_p010_0_66.jpg – DIRECT/212.108.200.61 image/jpeg Use this one-liner to convert unix timestamp to readable dates: #!/usr/bin/perl -p s/^\d+\.\d+/localtime $&/e;

Posted in IT, Linux | Leave a comment

Upgrade LXC container from Ubuntu Lucid to Precise

Through the release upgrade process there is an error: unable to make backup link of `./lib/init/fstab’ before installing new version: Invalid cross-device link $ apt-get -f install Reading package lists… Done Building dependency tree       Reading state information… Done Correcting dependencies… … Continue reading

Posted in IT, Linux, Ubuntu | Leave a comment

rm * does not work

‘sudo rm -f’ does not remove directory content. $ sudo rm -f /1/* $ echo $? 0 $ sudo ls /1 1 2 3 4 5 How can this happen? Check permissions: $ ls -ld /1 d-wx–x–x 1 user user … Continue reading

Posted in IT, Linux | Leave a comment

iroute does not work for openvpn networks

There is a quite common openvpn scenario: NETWORK_A — GW_A — INTERNET — GW_B — NETWORK_B GW_A is openvpn server, GW_B is client. Everything is setup correctly including iroute. Networking routes still cannot be used.

Posted in BSD, IT, Linux | Leave a comment

Ubuntu (Quantal) 12.10: window button layout (order)

For unknown reason on my desktop the default button layout has changed. There are a lot of links on the web, but they don’t look useful in Quantal. The solution is using dconf instead of gconf. In dconf-editor go to … Continue reading

Posted in IT, Linux, Ubuntu | Leave a comment

IPA err=53

Login does not work in the application. In ipa access log there are some entries: [26/Aug/2012:16:10:49 -0400] conn=183 fd=68 slot=68 connection from 10.0.0.4 to 10.0.0.5 [26/Aug/2012:16:10:49 -0400] conn=183 op=0 BIND dn=”admin” method=128 version=3 [26/Aug/2012:16:10:49 -0400] conn=183 op=0 RESULT err=53 tag=97 … Continue reading

Posted in IT, RedHat | Leave a comment

shell fork bomb

Do not try on any kind of production environment. But good for testing for example a VM. :(){ :|:& };:

Posted in BSD, Linux | Leave a comment

RHEV: Error from Kerberos: Integrity check on decrypted field failed

There is an almost brand new RHEV 3.0 installation. Old users can authenticate and can be listed on the administration interface, but a new user cannot be added. In the IPA log no relevant information or error message, only the … Continue reading

Posted in IT, RedHat | Leave a comment

Ubuntu Lucid 10.04 + KVM + Windows XP virtio block device: “Windows could not start because of computer disk hardware configuration problem.”

With this issue Windows 7 is not affected. I installed Windows XP with virtio block device fine. After rebooting the OS cannot be started from the disk with this message: Windows could not start because of computer disk hardware configuration … Continue reading

Posted in IT, Linux, Ubuntu, Windows | Leave a comment

IPA on LXC

It’s possible to install IPA into an LXC container. First time I got this error message: Failed to create semaphore for stats file Solution: set up tmpfs for /tmp none    /tmp    tmpfs   nodev,nosuid,noatime,size=1000M,mode=1777   0   0

Posted in IT, Linux, RedHat | Leave a comment

audio calls with skype on Precise Pangolin

I could not hear skype buddies, but I could talk to them. I fixed this by installing the a library: $ apt-get install libsdl1.2debian:i386

Posted in IT, Linux, Ubuntu | Leave a comment

hpsa: monitoring on debian/ubuntu server

hpacucli, deb, hpsa Continue reading

Posted in IT, Linux, Ubuntu | Leave a comment

bridged openvpn

This solution is a mess, do not use it!

Posted in IT, Linux, Ubuntu | Leave a comment

kvm serial console access

kv, serial, console, grub, virsh Continue reading

Posted in Fedora, IT, Linux, RedHat, Ubuntu | Leave a comment

Traffic shaping with linux tc

This script can be used out of box for traffic shaping via linux. Just change the limits and the source address.

Posted in IT, Linux | Leave a comment

pid of process by a specific variable

ps ax|grep memcached|awk ‘$8=="’"$PORT"’" {print $1}’

Posted in IT, Linux | Leave a comment

optimize XFS for a RAID array

This script helps you to find the right mkfs.xfs command. Source: http://www.mythtv.org/wiki/Optimizing_Performance#Further_Information

Posted in IT, Linux | Leave a comment

tcpdump+wireshark

This command can be used to make tcpdump output readable by wireshark: tcpdump -vv -s 0 -i eth0 -w tcpdump.out tcp and port 4880 with headers and data tcpdump -i eth0 -s 1024 -l -A ‘port 80 and host 1.2.3.4’

Posted in BSD, IT, Linux | Leave a comment

KVM: using a single partition [not ready]

The original howto can be found here: http://tips.at.gg3.net/2008/07/17/kvm-virtualize-a-single-partition/ . Actually it did not work for me out of the box. The main goal of this howto is the ability of using a single real partition as a single partition in … Continue reading

Posted in IT, Linux, Uncategorized | Leave a comment

ESET NOD32 + Debian/Ubuntu + paravirtualized guest

$ apt-get install ia32-libs $ dpkg -i –force-architecture esets-3.0.15.i386.deb dpkg – warning, overriding problem because –force enabled: package architecture (i386) does not match system (amd64) Selecting previously deselected package esets. (Reading database … 16356 files and directories currently installed.) Unpacking … Continue reading

Posted in IT, Linux, Ubuntu | Leave a comment

LXC on Ubuntu

This small howto describes a basic installation Linux Containers on Ubuntu 10.04 Lucid (or on Debian Sid). A good howto, which describes and explains many things, but Archlinux specific: http://wiki.archlinux.org/index.php/Linux_Containers#Host_device_access_settings

Posted in IT, Linux, Ubuntu | Leave a comment

vim tuning

vim trick, tuning, tips, commands Continue reading

Posted in BSD, IT, Linux | Leave a comment

crontab regular jobs: clapf, backup, apt-get, mysql

These crontab entries are for a common (email) server, they can be used in common on any server.

Posted in BSD, IT, Linux | Leave a comment

MLF listaarchívumok keresése

http://groups.google.com/group/hun.lists.mlf.linux/topics http://groups.google.com/group/hun.lists.mlf.linux-flame/topics http://groups.google.com/group/hun.lists.mlf.linux++/topics

Posted in IT, Linux, Uncategorized | Leave a comment

GRUB kiirasa az osszes meghajtora (SATA, SCSI)

grub> device (hd0) /dev/sda # /boot partition root (hd0,0) setup (hd0) device (hd0) /dev/sdb # /boot partition root (hd0,0) setup (hd0)

Posted in IT, Linux | Leave a comment

vi quick tutorial magyarul

Remek vi leírás sürgős esetekre: http://www.vajko.hu/vitutor.html

Posted in BSD, IT, Linux | Leave a comment

xorg.conf + wacom

A full example xorg.conf for using wacom.

Posted in BSD, IT, Linux, Uncategorized | Leave a comment