Lenovo Thinkpad W530 – 30 day sleep howto.

I was curious how  the 30 day sleep (S4) feature works. In normal sleep mode(S3) my Lenovo Thinkpad W530 overnight takes around 10% from 9 cell battery.   First of all you will need to have hibernation partition which size is not necessary equal to your RAM memory size. Not many people know that if […]

Windows 7 low disk space warning.

Recently I have come across an annoying problem. If you have a big HDD, for example 1TB, windows will issue a  red warning bar on your computer when you have still around 100GB of free disk space. For me seeing something red means that disk is failing, it draws my attention for no reason. For […]

Ispconfig fcgid – phpmyadmin big files upload.

I had problem when uploading 11 meg db file to phpmyadmin:  mod_fcgid: read data timeout in 40 seconds Solution that works for me (apache2, fast-cgi): Modify php.ini proper to Your website: upload_max_filesize = 20M post_max_size = 22M   Post max size set bigger than upload_max_size. You can set higher values if You want.   Add […]

Cookie policy

Domain vberry.net use cookie files to store information about Your login, date of last visit and improve Your experience. Cookies mechanism enchance Your security too. You can change Your cookie policy, by changing settings in Your web browser. To change cookie policy follow the instructions bellow: Internet Explorer Chrome Safari Firefox Opera Mobile devices: Android […]

How To Use UUID To Mount Partition in Linux

UUID benefits: System maps partitions correctly even if hard drive is re-attached to different disk controller. You system will always boot even if You add new hard drive, change sata port, etc. To list UUID use command: blkid Then You can use UUID number in fstab: UUID=0f75c223-cb58-4586-a3cz-aad0c3f4f80f / ext3 errors=remount-ro 0 1 UUID=05e1cdb9-7818-4e26-bbd4-9601ecdffcdc none swap […]

Debian 6 linux installation in 26 figures for beginners.

In this article it is described how to install Linux Debian 6 on the computer equipped in one hard drive in the most simple configuration. We boot computer from a netinstall.iso cd. Make sure that computer is properly connected to the router with dhcp server running, so installer can access Internet to download updates and […]

Cure for VMware „STOP: 0x0000007B” error

A problem has been detected and windows has been shut down to prevent damage to your computer. If this is the first time you’ve seen this stop error screen, restart your computer. If this screen appears again, follow these steps: Check for viruses on your computer. Remove any newly installed hard drivers or hard drive […]

Mikrotik pptp, l2tp, eoip tunnel dns adress resolve script – VPN by domain name

Script is searching for interface by given name. It resolves dns name to ip addres, then checks if resolved ip addres is equal to address given in connect-to field of the interface. If ip address is different then script will update it to keep Your VPN connected to ip address given by a domain name. […]

LMS mbank parser – import customer payments from csv file

Skrypt: http://vberry.net/wp-content/uploads/2012/04/lms_mbank_parser.7z Skrypt pozwala importować pliki csv z mbanku prosto do tabeli cashimport lmsa. Testowany z wersją 1.11.9 Moloc (1.1006/1.29). Skrypt zapisuje wiersze nie przetworzone w pliku /var/log/lms/cashimport.log, więc ta ścieżka musi istnieć i mieć prawa do zapisu. skrypt poszukuje frazy ID:xxxx gdzie xxxx – czterocyfrowy nr id klienta np 0001 i na tej podstawie […]

Mount usb ntfs hard drive under linux

Tested under debian squeeze. We need package ntfs-3g. apt-get install ntfs-3g cat /var/log/messages We must find what is the drive name, eg /dev/sdc1 – partition one on hard disk sdc (master second channel) Now mount hard disk under dir /mnt: mount -t ntfs /dev/sdc1 /mnt When You finish useing hard drive unmount it, to avoid […]