Red Hat Launches Its Docker-Centric Atomic Host Linux Distribution

14987692661_81dec8850c_o Almost a year ago, Red Hat announced its plans to launch a Docker-centric version of its Enterprise Linux distribution and after a long beta, Red Hat Enterprise Linux 7 Atomic Host is now generally available. With Atomic Host, Red Hat is throwing its hat into the Docker ring and joining the likes of CoreOS in the enterprise container OS space. Project Atomic, which forms the basis of… Read More

WordPress Automatic Update Issues

When trying to use WordPress automatic update I got this error ‘Error: There was an error connecting to the server, Please verify the settings are correct.’, after trying multiple attempts to rid myself of the problem I had a eureka moment. I thought to myself, “what if it Apache wasn’t seeing the right permissions of the folders?”, and low and behold that was the problem.

Apache was expecting the owner of the folders in the document root to be www-data, I figured this is for some form of security purposes.

How I got rid of the problem

I got rid of the problem by changing the group and owner of my WordPress install folder in apache root to www-data by executing the following command:

cd /yourwordpress_dir/
sudo chown -R www-data:www-data *

How to mount a USB drive in Linux

Most Linux distribution such as Ubuntu automatically mounts your usb drive when it is plugged in. Sometimes we take this for granted and if for some reason the drive doesn’t load we tend to pull our hair out trying to figure out why. If you’re like me then this is a sad reality that you have to overcome perhaps every week.

The other day I was locked out of my Ubuntu after upgrading from Intrepid to Jaunty and GDM decided to take a break. The real problem occurred when I urgently needed my CV to be sent off that day and the most up-to-date CV was on my Ubuntu login, sigh.

What I did

After launching the recovery mode from GRUB I was able to get to a root console. This was good because my girlfriend had her laptop so I could send the CV from her Windows XP system (don’t laugh).

Anyway, here goes… but remember before accessing root you should consider backing up your important files so any mishap wont have you eating your heart out.

Please be careful when running commands under Linux as root, if you are unsure then ask someone before making any changes as root.

Detecting USB hard drive

After you plug in your USB device to your USB port, linux add new device into /dev/ folder. At this stage you are not able to use this device. You need to mount it to your system first in order to be able retrieve any data. To find out what name your device have you can run fdisk command:

# fdisk -l

You will get output similar to this:

Disk /dev/sda: 60.0 GB, 60060155904 bytes 255 heads, 63 sectors/track, 7301 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes     Device Boot      Start         End      Blocks   Id  System /dev/sda1               1        7301    58645251   83  Linux

Creating the mount point

Create directory where you want to mount your device:

mkdir /mnt/sda1

Edit /etc/fstab

To automate this process you can edit /etc/fstab file and add line similar to this:

/dev/sda1       /mnt/sda           vfat    defaults        0       0

Run mount command to mount all not yet mounted devices. Keep in mind that if you have more different USB devices in you system, device name can vary!!!

# mount -a

Original article:

Taming Ubuntu : Access shared Ubuntu folders from Windows XP

Ubuntu is a wonderful system especially for those who want to be in control of their operating system. On the other hand, sometimes you just want something to work without the hassle. Here is how to overcome one of those hassle if you or your friends want to share files across an Ubuntu installation.

On Ubuntu

Run the following command on your Ubuntu machine as root.

Please be careful when running commands under Linux as root, if you are unsure then ask someone before making any changes as root.

sudo smbpasswd -a 'yourusername'

Add a password when prompted (can be different from pc password).

On Windows

Simply access \\\. Where can either be the machines’ IP address or name.

When asked for credentials, provide user name, password for samba.

That’s it, you now have access to your Ubuntu system.