Cleaning up Unix disk space

Posted in Unix on March 2nd, 2012 by phoenixdigital

From time to time you may need to clean up your system as disk space runs low. Realistically you should look at setting up syslog to handle areas of your disk that might be prone to blowout usage but if you haven’t then the following commands may be of use.

Read more »

Tags: , , , , ,

Modify skip forward and backwards time on XBMC with Apple TV

Posted in Apple TV, TV on February 29th, 2012 by phoenixdigital

If you want to modify the skip forward and backwards time when playing videos create or upload a file called advancedsettings.xml to /private/var/mobile/Library/Preferences/XBMC/userdata

Read more »

Tags: , , ,

Remote rsyslog on Linux

Posted in Unix on February 24th, 2012 by phoenixdigital

In order to log data from a remote machine to a central server you will need to perform the following to the central server.
Read more »

Tags: , ,

Redhat resize a LVM partition

Posted in Unix on November 10th, 2011 by phoenixdigital

This is a bit fiddly but I was in the following situation.

I had a bootable 4GB USB drive running Oracle Unbreakable Linux installation. It was installed on an LVM parition on the USB drive.

Now it came time to move this to an 8G drive which was achieved with the command

dd if=/dev/sda of=/dev/sdb conv=notrunc

Where the original 4G drive was /dev/sda and the replacement 8G drive was /dev/sdb.

All good so far. Now however how do I extend the LVM parition to use this new space. Here is where some hoop jumping comes in.
Read more »

Tags: , , , ,

Adding time sync daemon (ntpd) service to Redhat

Posted in Unix on September 28th, 2011 by phoenixdigital

Below is a basic summary of the commands required to install a ntp daemon onto your server to keep track of time.

Read more »

Tags: , , , ,

Adding Services to RHEL with chkconfig

Posted in Unix on September 27th, 2011 by phoenixdigital

If you want your daemons to start and stop with your Redhat system as it boots chkconfig is what you were looking for.
Read more »

Tags: , , , , ,

Windows System Imaging

Posted in Windows on September 2nd, 2011 by phoenixdigital

I used to use some software called Ghost for imaging windows machines. Then it was brought by Norton and got a bit bloated.

Here is the latest contender which is free for personal use
http://www.xxclone.com/

Heaps more here with Kleo looking promising
http://en.wikipedia.org/wiki/Comparison_of_disk_cloning_software

This looks good too
http://www.sysresccd.org/Main_Page

Tags: , , ,

Solaris 10 useful commands

Posted in Unix on August 31st, 2011 by phoenixdigital

A store of useful commands as I find them

displays the memory usage of running processes
prstat

List active processes (generally useful only with a grep)
ps -ef

Display physical memory size on server
prtconf|grep -i mem

Display swap size (do the math based on results of two commands)
pagesize
swap -l

Package installation
Get your version via ‘uname -a’ reference wikipedia if you dont know how to translate to Sun version.

Get packages from here

http://www.sunfreeware.com/

install with command
cd
gunzip packagename.gz
pkgadd -d packagename

Tags: , , ,

Solaris 10 SMF services

Posted in Unix on August 30th, 2011 by phoenixdigital

The SMF or Service Management Facility handles the control of services within Solaris 10. Below are some common commands for a useful lookup.

The service FMRI is an identifier of each service and can be seen by running the list services commands below. The FMRI in all the commands below can be replaced with just the service name as long as there are no other services with similar names.

List all services
svcs

List all services including disabled services
svcs -a

View a service current status
svcs -H <service_FMRI>

Read more »

Tags: , , , , , , , ,

Saved from Windows Dynamic Disk HELL!!!!

Posted in Windows on August 16th, 2011 by phoenixdigital

I made the mistake of converting a few drives to dynamic disks. Never again!

I consistently got online errors and other random corruptions.
Read more »

Tags: , , , , ,