Pages

Tuesday, June 24, 2014

Preparing Ubuntu 14.04 LTS x86_64

Below are some caveats when installing IOU under Ubuntu 14.04 LTS 64bit. Certain package and path has changed slightly, but the rest remains the same.

Error : "No such file or directory"
Resolution : Install ia32-libs but 14.04 the package is not available. Install from old repo.

sudo -i
cd /etc/apt/sources.list.d
echo "deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list
apt-get update
apt-get install ia32-libs
rm ia32-libs-raring.list
apt-get update

or

sudo apt-get install -y lib32z1 \
  lib32ncurses5 \
  lib32bz2-1.0 \
  libssl1.0.0:i386 \
  libtinfo5:i386

Error : "error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory"
Resolution : Create a symbolic link

sudo ln -s /lib/i386-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.4

Saturday, June 21, 2014

Full screen flash video on dual monitor

It never occurred to me this was an annoyance till today when I tried to do full screen flash video from the Firefox on the second monitor and work on the laptop screen at the same time. Even I drag the separate window to the second monitor, the full screen would go wide on my laptops screen.

Lucky the Google didn’t not let me down today!

You will need to edit the DLL which handle this function using a Hex editor.

Hex editor – xvi32 [LINK]

Location of the DLL to modify - C:\Windows\SysWOW64\Macromed\Flash

DLL File - NPSWF32_11_9_900_117.dll

image

Instruction

*** Backup the DLL before you edit ***

1. Download and open the DLL with the Hex editor. Search for "74 39 83 E8 07 74 11 83 E8 05 75 13 8B"

image

2. Change the 74 and 39 to 90 and 90.

image

3. Restart Firefox and enjoy

Thursday, June 19, 2014

Setting up ASA inside GNS3

Setting up ASA inside GNS3 has been simplified by the GNS3 team, as now you just need to have the appropriate Initrd and Kernel files then you are good to go.

Prequisites:

  1. GNS3
  2. asa842-initrd.gz
  3. asa842-vmlinuz

*** I cant provide the ASA files ***

After you have the required files, just fire up GNS3 and point it to the right path.

GNS3 > Edit > Preferences > Qemu > ASA >

image

Under the ASA Settings, Preconfiguration .. select the proper version you are trying to load. Eg. 8.0(2) or 8.4(2)

All the RAM, Number of NICs, NIC model and Qemu Options will be automatically populated.

Then under ASA Specific Settings, select the path to the Initrd and Kernel files.

Finally click Save and you will see the setting save under ASA Images.

Click OK to close the Preference window.

To test out your setting, go the device tab and click on the Firewall icon and you will notice the ASA firewall icon has color and no longer grayed out.

image

Drag and drop the ASA firewall icon to the Workspace and Run it .. then double click on the icon and it shall open the console via the default Putty application

image

Happy learning !

Tuesday, June 17, 2014

Problem: Getting IP address but browser unable to load webpages

 

Symptoms:

  1. PC is getting IP address (eg. ipconfig /all)
  2. Able to ping the default gateway
  3. Nslookup command works for google.com etc
  4. Able to load URL using the resolved IP address

Finally when you issue the command “ipconfig /flushdns”, you getting the follow error.

Error Message:

Windows IP Configuration

Could not flush the DNS Resolver Cache: Function failed during execution.

Problem:

This problem occurs if the DNS Client service is not running on the computer.

Resolution:

To resolve this problem, follow these steps:

  1. Click Start, click Run, type services.msc, and then click OK.
  2. In the list of services, click DNS Client.
  3. Make sure that the Status column displays Started and that the Startup Type column displays Automatic.
  4. If the service is not set to Started or if the startup type for the DNS Client service is not set to Automatic, follow these steps:
    1. Right-click DNS Client, and then click Properties.
    2. In the DNS Client Properties dialog box, click the General tab, and then click Automatic in the Startup type list.
    3. Click Start, click Apply, and then click OK.