Category: Linux

  • Determining a devices WWID in Linux

    For multipath drivers connecting to storage area networks (SAN), it is useful in your /etc/multipath.conf to blacklist devices. This prevents the multipath driver from attempting to use the device(s). To find out a drive’s WWID, run the following command: >scsi_id -g -u -s /block/sda This will return a WWID. On my system it was returned […]

  • Finding a count of files in a directory

    In Linux, you can count all of the files in a directory, of a given type. To do this run: >find . -maxdepth 1 -type f -name “*.gz” | wc -l If you want to count all of the gzipped files in all directories below your current directory. Run the same command without the -maxdepth: […]

  • Starting a user’s VNC server automatically on Linux

    On some Linux systems, it can be advantageous for users to have a way to login to a console. Unfortunately, if they do not have physical access to the machine, there needs to be a way to do it remotely. Fortunately on Linux, there is Virtual Network Computing (VNC). VNC can be set up as […]

  • Auto commit for MySQL databases

    In corporate database systems, it is generally preferred to build transaction stacks. This allows for having multiple database statements run and be finally committed if everything is ok. In MySQL, auto commit is on by default; which means that every statement is instantly committed. To check the value of auto commit, run the following MySQL […]

  • Error in /etc/fstab stopping Linux boot

    In Linux, there are times when you need to edit your /etc/fstab file to add a new disk. Sometimes, you may accidentally edit the wrong information which will cause Linux to not boot. Usually though, Linux plays nice and boots to a command prompt. Unfortunately, you are now booted into a read-only filesystem so you […]

  • Changing the host name in IBM WAS

    Many times in a virtual environment, it is advantageous to be able to change the host name. But if you have a virtual guest with IBM WAS installed, cloning the guest may result in the new guest being unable to stop the server, run CORBA properly, or gain access to your message queues within WAS. […]

  • Restoring all reports to Jasper Server

    Sometimes it is necessary to restore an entire copy of Jasper Reports generic lipitor. This can only be done by first removing all of the existing entries in the Jasper Reports server to be restored to. First, on the source machine, backup the entire Jasper Reports server by running the following commands: > cd /home/jasper/jasperserver-3.5/scripts […]

  • Enabling Apache support for pretty permalinks in WordPress

    In WordPress, there is a feature called PermaLinks. These create URL’s that are better searched by Google. So instead of getting a URL like, you get something like Now the search engines will see a URL that they can parse for information, rather than an arbitrary number. Enabling Apache support for what is […]

  • Linux log error – Could not receive trustdoms : xxx Time(s)

    When using Samba with Linux, Red Hat Enterprise Linux attempts to connect to a Windows server that acts as the domain controller. This is called a trustdom; as Linux is attempting to build a trust relationship with a Windows Domain Controller. You will see the following message in your log: ——————— samba Begin ———————— **Unmatched […]

  • QEMU seems to make Windows read-only

    The Problem: The server is acting all weird, thought i might raise a flag to you: – after you said you attached the larger drive/partition, nothing changed – when i logged on as administrator tonight, it acted like ive never logged on before – the profile is fucked up somehow; i dont have any icons, […]