Tuesday, September 11, 2012

How to Install ZeroShell to Hard Disk

How to Install ZeroShell to Hard Disk.

In www.zeroshell.net navigate to download section. you will see "2GB image for IDE, SATA, SCSI e USB disks" and "Iso image for CD" release on July 25, 2012, download both of them.

Option I
  • Rename "ZeroShell-2.0.RC1-IDE-USB-SATA-Disk-2GB.img.gz" to some type friendly letters zeroshell.img.gz and copy it to a Pen Drive.
  • Burn "ZeroShell-2.0.RC1.iso" to CD.
  • Plug the Pen Drive and boot Live CD:
  • Once booted hit "S" to bring up Shell Prompt:
  •  Get the list of drives: 
fdisk -l
/dev/sda is the Hard Disk
/dev/sdb1 is the Pen Drive
  • Delete if there is any partitions on the drive that you are going to install.
fdisk /dev/sda
m (for help).
d (for delete partitions).
  • Once you are done, mount the Pen Drive.
mkdir /mnt/pendrive
mount /dev/sdb1 /mnt/pendrive
  •  Next step is extract "zeroshell.img.gz" from pen drive to hard disk.
cd /mnt/pendrive
gunzip -c zeroshell.img.gz > /dev/sda
  • Once rebooted ZeroShell will boot from Hard Disk.

Monday, September 10, 2012

Installing OpenERP 6.1 on Ubuntu 12.04 LTS x64

Installing OpenERP on Ubuntu 12.04 LTS x64

In this tutorial I am running Ubuntu 12.04 LTS Server on VMware Workstation.

After Fresh Installation do a:
sudo apt-get update && apt-get upgrade && apt-get dist-upgrade

PostgreSQL Server Installation and Configuration:
 sudo apt-get install postgresql
Default superuser for PostgreSQL is "postgres" with no password.
Option I:
sudo su postgres
Create a new superuser for OpenERP:
createuser openerp
Shall the new role be a superuser? (y/n) y
Use table template1 and apply access rights:
psql template1
alter role openerp with password 'postgres'
 Option II:
sudo su postgres
createuser --createdb --username postgres --no-createrole --pwprompt openerp
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) y

OpenERP Server Installation:
Install Prerequisites:
sudo apt-get install python-dateutil python-feedparser python-gdata python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi
Grab the link of latest .deb package from here:
wget http://nightly.openerp.com/6.1/releases/openerp_6.1-latest-1_all.deb
Execute the package:
sudo dpkg -i openerp_6.1-latest-1_all.deb
Point your web browser to Server IP:
http://xx.xx.xx.xx:8069
 

Friday, August 31, 2012

Bluecoat PacketShaper goes into safe mode

Couple of weeks ago after updating Packet Shaper new license, the device started going to safe mode. 
I tried to revert back old image (PacketShaper v9.1.1g1), but device was still going safe mode, cannot even load latest firmware. (PacketShaper v9.1.3g1) giving me an error.
So I followed below steps.
Backup of configuration from CLI.
setup capture complete backup.cmd
cd cfg
delete CONFIG.LDI
delete TRAFFIC.CFG
delete SETTINGS.CFG

reset
But still the device going to safe mode. so as a last resort option i decided to factory reset the device, from the browser ftp://xx.xx.xx.xx/cmd
Download the backup.cmd file.

setup reset all
Device came up with default IP Address: 207.78.98.254
Add a matching subnet on the computer, from the cmd:
ftp 207.78.98.254
cd 9.258/
put 9_1_3.zoo (make sure to put image file in cmd directory)
bye
Now load the image.
telnet 207.78.98.254
cd 9.258/
image load 9_1_3.zoo
It fixed the safe mode issue, and even I have updated firmware same time. I could have loaded the old configurations backup file i took. but its so messy full of unnecessary traffic classes and partition that in my organization don't need, so I did the configurations and traffic classes, partition from scratch to keep it clean.
Works Great.

Tuesday, August 28, 2012

Mounting Windows Share on FreeNAS

Mounting Windows Share on FreeNAS

  1. SSH to server
  2. Create a directory to mount
    mkdir /mnt/WindowsShare
  3. Use command mount_smbfs to mount windows share
    mount_smbfs -I IP Address //Username@NetBIOS Name/SharedFolderName /mnt/WindowsShare

Monday, August 27, 2012

BIOS update on Dell PowerEdge R710

BIOS update on Dell PowerEdge R710 

Current Installed version: 2.0.11
  1. Grab the latest version of BIOS update for R710 Here
  2. In my case I downloaded Update Package for Red Hat Linux.
  3. Put it into a pen drive.
  4. Booted Dell Systems Management Tools DVD
  5. F3 to get the console
  6. Get the devices name
    fdisk -l
  7. Create a directory to mount the pen drive.
    mkdir /mnt/pendrive
  8. Mount
    mount /dev/sdc1  /mnt/pendrive
  9. Now run the update
    ./XXX_BIOS_XXXXX_XXXX_X.X.X.BIN
Read the release information before proceed and make sure not shutdown or reboot. 

Continue? Y/N:Y
Executing update...
WARNING: DO NOT STOP THIS PROCESS OR INSTALL OTHER PRODUCTS WHILE UPDATE IS
IN PROGRESS.
THESE ACTIONS MAY CAUSE YOUR SYSTEM TO BECOME UNSTABLE!
................................................................................................................................................................................
The BIOS image file is successfully loaded. To apply the BIOS update
successfully, the OMSA data manager service is stopped in case it is already
running. Do not shutdown, cold reboot, power cycle, or switch off the system
before the BIOS update is completed. Restart the system for the update to
take effect. The update remains incomplete until the system is rebooted.
Would you like to reboot your system now?
Continue? Y/N:Y

Broadcast message from root (pts/0) (Mon Aug 27 07:50:46 2012):

The system is going down for reboot NOW!
shutdown: timeout opening/writing control channel /dev/initctl
BusyBox v1.2.0 (2008.05.26-10:41+0000) multi-call binary

Usage: init

Init is the parent of all processes.

I got a successful update. Do it only if you know what you are doing.


Manually Force XP Workstations to WSUS


Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"WUServer"="http://Replace with WSUS Server IP"
"WUStatusServer"="http:// Replace with WSUS Server IP"
"TargetGroupEnabled"=dword:00000001
"TargetGroup"=""
"ElevateNonAdmins"=dword:00000000


[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoUpdate"=dword:00000000
"AUOptions"=dword:00000004
"ScheduledInstallDay"=dword:00000000
"ScheduledInstallTime"=dword:0000000a
"NoAutoRebootWithLoggedOnUsers"=dword:00000001
"AutoInstallMinorUpdates"=dword:00000001
"RebootRelaunchTimeoutEnabled"=dword:00000001
"RebootRelaunchTimeout"=dword:0000003c
"RescheduleWaitTimeEnabled"=dword:00000001
"RescheduleWaitTime"=dword:0000000f
"DetectionFrequencyEnabled"=dword:00000001
"RebootWarningTimeoutEnabled"=dword:00000001
"RebootWarningTimeout"=dword:0000001e
"UseWUServer"=dword:00000001
"NoAUShutdownOption"=dword:00000000
"NoAUAsDefaultShutdownOption"=dword:00000000


Open up a notepad
Copy the text.
Change Replace with WSUS Server IP
Save it with .reg extension
Run it
Reboot