Tuesday, September 18, 2012

Add a second HDD to ClearOS

Connect to the console on ClearOS.
  1. Type fdisk -l to display the list of HDD in your system.
  2. Type fdisk /dev/hdb to create a partition on your second drive (in this case hdb). Select P for primary partition, 1 for Partition number and Hex Code 83 (for Linux file system). At the end type W to write the partition.
  3. Type mkfs.ext3 -b 4096 /dev/hdb1 to create a filesystem to that partition. Follow prompts.
  4. Type sudo mkdir /mnt/DataDrive to create a mounting point call DataDrive (or any other label you see fit).
  5. Type mount /dev/sdb1 /mnt/DataDrive to mount the DataDrive.
  6. Type nano /etc/clearos/flexshare.conf to edit the configuration file that controls the flexshares.
  7. Find the line that shows FlexshareDirCustom and change it to FlexshareDirCustom==Disk1:/mnt/DataDrive/ to make permanent the change. Press Control+X to exit nano. It will ask you if you want to save. Say Yes.
Now you can use the second hard drive in ClearOs. I would like to thank all the people with their posts that helped me to be able to add a second HDD (finally) to my ClearOS system.

Saturday, September 8, 2012

Oracle Java 7 removal and re-installation


I had some problems with an update on the Oracle Java the other day; it couldn't upgrade. To solve this problem I followed these steps:

sudo rm oracle-java7-installer*
To remove the installer

sudo apt-get purge oracle-java7-installer
To purge the installer from the system

sudo add-apt-repository ppa:webupd8team/java
To re-enter the repository into the list

sudo apt-get update
To update the list

sudo apt-get install oracle-java7-installer
To download and install the package

And that was it.

Wednesday, September 5, 2012

WSUS doesn't report client status

Some times WSUS server will not report the status of client computers into the management screen. If the reset authorisation and reportnow commands don't work try the following:


  • Open a command prompt
  • Type in:
  1. net stop wuauserv
  2. REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f
  3. net start wuauserv
  4. wuauclt /resetauthorization /detectnow
  5. wuauclt /reportnow 
And that's it. Clients should start reporting back after a refresh in the WSUS.