Author: David Dietrich

  • Samba – Stop homes from showing in shares

    When using Samba on Linux, there are times that you want to allow user to have a private user directory, but do not want the “homes” directory share to show up. This is relatively simple. Edit your /etc/samba/smb.conf file with your favorite Linux editor. Look for the section [homes] and find the line browseable = set…

  • The Essential Startup Reader: 10 Lessons in Entrepreneurship

    By Om Malik Jan. 2, 2010, 2:47pm 24 Comments 0 3 74 847 As a blogger, I spend most of my time writing. But it’s time spent reading that’s most satisfying. Here’s a short (and by no means a complete) list of 10 articles that encapsulate the art of the startup. Most were published during…

  • Initializing a new instance of Linux

    After a fresh install of Linux, there are a number of tasks I like to do. I like having commands and aliases that I am used to installed. Copy /opt/scripts Create /opt/sw /opt/scripts/stopUnusedServices.sh set up MySQL Install WebMin and VirtualMin for managing your domain names and their.

  • Connecting Red Hat 5.3 to a Dell MD3000i

    Connecting to a DELL MD3000i is no trivial matter with Linux. First, you need to ensure that you have the DKMS package installed. >yum -y install dkms >yum -y install iscsi-initiator-utils >yum -y install gcc >yum -y install kernel-devel >yum -y install sgpio >yum -y install sg3_utils Now you can install the Dell Tools and…

  • Jasper Server Permission Denied error

    Occasionally, Jasper Server has an error relating to being unable to write files. The errors show up in the Apache web server log, catalina.out. You have probably started the service as the user root on accident. This will cause ownership to change to root on some log files. Then when you log back on as user jasper…

  • Linux overwrites DNS resolver /etc/resolv.conf

    Linux will overwrite your /etc/resolv.conf in 3 cases. If you have: Network Manager enabled. Disable the Network Manager by turning it off with the following commands: >service NetworkManager stop >chkconfig NetworkManager off         DHCP enabled. dhcpd will overwrite your /etc/resolv.conf when it acquires an IP address. Convert to a static IP if you are in control of…

  • 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…