I a small user on mysql Database .Today i have to restore the Data only DB from old server to new server . i faced aerror Error: mysql: Got a packet bigger than ‘max_allowed_packet’ bytes Here is the way to fix this issue . I am using CentOS /etc/my.cnf Default file [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql […]
Category Archives: Unix
How to test the JAve version on Ubuntu kartook@K:~$ kartook@K:~$ java -version java version “1.6.0_18” OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) kartook@K:~$
Step 1 : To rebuild Debian package (.deb) from an installation kartook@H4C<3r:~$apt-get install dpkg-repack Now here i am going to rebuild K3B from my Ubuntu 10.04 kartook@H4C<3r:~/packagebuild$ sudo dpkg-repack k3b dpkg-deb: warning: ‘./dpkg-repack-13038/DEBIAN/control’ contains user-defined field ‘Original-Maintainer’ dpkg-deb: building package `k3b’ in `./k3b_1.91.0~rc2-0ubuntu3_amd64.deb’. dpkg-deb: warning: ignoring 1 warnings about the control file(s) kartook@H4C<3r:~/packagebuild$ kartook@H4C<3r:~/packagebuild$ kartook@H4C<3r:~/packagebuild$ […]
This is for the CentOS user out there. Sometimes when you try to search for rpm packages, the only thing that you find is the source file. I like to create rpm file usingfrom source file: 1. save the source file(usually in tar.gz or tar.bz2 format) 2. extract the files-> tar -xvzf filename.tar.gz or […]
This tutorial will explain How to change the boot splash screen image for 10.04 Open the terminal and run the following commands sudo cp /usr/share/applications/gnome-appearance-properties.desktop /usr/share/gdm/autostart/LoginWindow Then logout, and you’ll see an Appearance window pop up. Change it to how you prefer it, then close it and login as usual. When you have logged in […]
Hi , Today i did my ubuntu upgrade just small easy command ,ubuntu 9.10 installation to 10.04 the magic command is sudo do-release-upgrade
How to : mysqladmin command to change root password If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows: $ mysqladmin -u root password NEWPASSWORD However, if […]
A fresh install of OpenBSD does not include any graphical environment beyond the basic XFree86 (soon to be X.org). If you want to run Gnome you must add it yourself. Fortunately, Gnome and it’s graphical login manager (gdm) are available in the ports and as packages. Assuming you have a working XFree86 config (not explained […]
Hi , I like to nano all teh time ,but the vi also good . Here you go how to add nano editor on OPENBSD step 1 – Remotely add the nano package step 2 – Using nano step 3 – Making nano your default editor in BASH 1. Remotely add the nano package # […]