Windows8 Developer Preview

Yeah even I never thought that I would find myself writing about a Microsoft Product but the whole thing looked so exciting that I just couldn’t resist. Features: Metro style apps. I believe the idea is to give people a heads-up in creating applications for the devices on which Windows 8 is going to run (//TODO: restructuring required!).

Windows8 Preview for Developers is out (http://dev.windows.com).

And their BUILD site says that it was downloaded 500K times within the first 12 hours of its release. Good for them!

Earlier in the evening I was trending #Windows8 (http://twitter.com/nikunjlahoti) about how my attempts at the installation were falling short. I am so glad that I finally did it (think: Die in peace. think: slumber)!!

Look for yourself ….

Let us quickly go thru the procedure:

Procure the Installation Media:

ISO (DVD Image)

URL: http://msdn.microsoft.com/en-us/windows/apps/br229516

Type: 64bit/32bit Depending upon your system (I have installed Windows 8 Developer Preview with developer tools English, 64-bit (x64))

Installation Location:

1) Inside a Virtual Machine (VirtualBox used):

http://www.addictivetips.com/windows-tips/how-to-install-windows-8-on-virtualbox/

Pretty detailed steps with screenshots given.

Make sure that your System supports Hardware Virtualization

2) On the Harddisk

  • upgrade Windows 7

if you have an existing installation then it may ask you to upgrade Windows 7. I don’t see much of a point going ahead with that. Lets just test it and wait for the full version to be out. So, select CUSTOM instead, for Dual-Boot. If you choose Dual-Boot now later you may be able to uninstall it as well otherwise things may get a little tricky.

  • dual-boot (say Windows 7 and Windows 8)

Windows gives you a recommended installation plan but you need to select a custom one for dual boot to happen.

Prerequisite: Resize the partition (C Drive: .. Using Windows Vista/Windows 7 Manage Computer Tools  or GParted etc) and create a new partition having at least 20Gb of Free Space. If not already then convert it to NTFS filesystem.

Installation Medium:

1) boot using USB/DVD:

Burn the downloaded image to the USB or DVD (for 4.8Gb ISO, regular DVD would not suffice) using a tool.

Microsoft’s USB Tool:

http://www.microsoftstore.com/store/msstore/html/pbPage.Help_Win7_usbdvd_dwnTool

Plug the USB/insert the DVD and hit reboot.

Instructions are self-explanatory.

2) as software (extract the ISO using WinRAR etc. No DVD/USB required):

Running Setup.exe in the ROOT folder wouldn’t give you enough options. And it may even scare you saying something close to FORMATTING the entire system (Saving Nothing). Go to “sources” folder instead and run the Setup from there. It works like a charm.

Select the partition where you wish to install the Windows8 Developer Preview on.

Windows 8 looks promising.

Do try it at least inside VirtualBox.

Peace!

unixODBC: Connect to .mdb in Linux?

Background:

Ah!! Like all the things which you leave and try to forget about .. come back and haunt you . .. there was this old project I was doing .. .(Tags: PDF creation, Servlets JSP, XML parsing, XLS reading) in the year 2007. Of late due to some unforeseen circumstances I had to exhume it & find what the ghost wanted.

Well the UI looked professional and I started exploring it but for some reason Eclipse on my Windows didn’t quite work properly… SVCHOST was eating up all the CPU. So I had to give it a thought to migrate to Ubuntu. But there was this big blocker… ODBC on Unix….     [and the story continues ….]

Stuff I told synaptic to download:

mdbtools
unixODBC

Configuration done using this Link.

/etc/odbcinst.ini

[MDBToolsODBC]
Description = MDB Tools ODBC
Driver = /usr/lib/libmdbodbc.so.0
Setup =
FileUsage =
CPTimeout =
CPReuse =

/etc/odbc.ini

[logindb]
Description = Microsoft Access Try DB
Driver = MDBToolsODBC
Database = /home/nikunj/programming/logindb.mdb
Servername = localhost
Username =
Password =
port = 5432

Done?: (not yet)

nikunj@ubuntu-desktop:~$ isql logindb
+-------------------------------+
| Connected!
| sql-statement
| help [tablename]
| quit
+-------------------------------+
SQL> select name from profile
+-------------------------------+
| name
+-------------------------------+
| Mukesh Kumar Lahoti
| Nikunj Lahoti
| OneTwoThreeFour
| OneTwoThreeee
| M K Lahoti Ji
+-------------------------------+
SQLRowCount returns 5
5 rows fetched

Now [TODO]

1) Connect Java to this ODBC

2) Use MS Excel Connector for Unix+Java.
The Java Excel API is an open source Java API which allows Java developers toread Excel spreadsheets and to generate Excel spreadsheets dynamically.

That’s how OALD7’s Successfully Installed on amd64!!

😀 Well.. . as crazy as if sounds .. . I finally managed to Break the Code! 😛

IF you-don’t-follow-my-blogs OR you-don’t-remember-stuff THEN
URL.refer (http://mrdigerati.blogspot.com/2010/02/this-is-what-i-did-on-v-day.html)
🙂

oops!
END IF;
// Yeah Some PL/SQL *HIT I’m into these days.  Sucks?

Anyway! Coming to the point. I looked for answers like almost everywhere and couldn’t really find even one…! Finally I went deep and mined some stuff, similar issues that the gamers were facing. Hail Loki.

ISSUES:
#1 (regular usage)

$ ./installation.sh
Verifying archive integrity… All good.
Uncompressing ……………………..
This installation doesn’t support glibc-2.1 on Linux / x86_64

#2 (using x86 emulation)

$ linux32 ./installation.sh
Verifying archive integrity… All good.
Uncompressing ……………………..
/home/nikunj/.setup5913: error while loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: No such file or directory
Couldn’t load ‘atal’
The setup program seems to have failed on x86/glibc-2.1

Both the times it said:
Please contact Loki Technical Support at support@lokigames.com
The program returned an error code (1).

Anyway. ‘linux32’ should’ve ideally worked but .. . . there was more.

WHAT I DID TO MAKE OALD7 run:

#1. To run 32-bit apps on 64-bit Linux, you first need to install these prerequisite packages:

$ sudo apt-get install ia32-libs ia32-libs-gtk ia32-libs-sdl dpkg-dev


#2. Then I downloaded the i386 package from the Ubuntu site.
libGTK1.2: http://packages.ubuntu.com/jaunty/i386/libgtk1.2/download

#3. Deflate (Unzip/Un… hmm… Deb?) the libgtk1.2_1.2.10-18.1build2_i386.deb (right-click and extract) and then go inside the folder hence created. Deflate data.tar.gz and go inside ./usr,

$ cd libgtk1.2_1.2.10-18.1build2_i386/usr/lib (in short)


#4. Now we need to copy the files (lib? Modules?) to the location where OALD7 desires to find it!

$ sudo cp -v -i * /usr/lib32

#5. Try installation now. [ERROR. still?]
(Even after that another library was required)

$ linux32 ./installation.sh

Verifying archive integrity… All good.
Uncompressing ……………………..
/home/nikunj/.setup6372: error while loading shared libraries: libgmodule-1.2.so.0: cannot open shared object file: No such file or directory
Couldn’t load ‘atal’
The setup program seems to have failed on x86/glibc-2.1

#6. Then I downloaded two i386 packages for the Ubuntu site.


Follow the same procedure (#3-5) for libglib1.2ldbl_1.2.10-19build1_i386.deb

😀 and voilà .. . 😛 this is what you get! Don’t kill me 😛

Looks Kinda…  hmm….Nude!!

I don’t know why but just couldn’t see any TEXT 😐 I closed my eyes, trusted my senses and from the last time I installed it without this ‘Chick Chick’. Pushing the third Check-Box would save all the Sounds etc and makes it offline! 🙂 DO THAT.

Finally 😀 ….. Legen — wait for it —- Dary!!!

Update:
OALD8 installation is like so easy. Works Great! But I like the UI of v7 better! 🙂

OALD8 looks Light W8! (Rhyme?)

Update (2012-09-19):

For OALD8 on Ubuntu 12.04 Amd64

#1 Dependencies

$ sudo apt-get install ia32-libs ia32-libs-gtk ia32-libs-sdl dpkg-dev

#2 Mount the ISO/CD

using Furious ISO Mount Tool, etc!

#3 Begin Installation

Go to the mount directory

$ cd linux

$ linux32 ./setup.sh

Tweaks:

#1

No Sound?

Try padsp – PulseAudio OSS Wrapper:

padsp starts the specified program and redirects its access to OSS compatible audio devices (/dev/dsp and auxiliary devices) to a PulseAudio sound server.

$ padsp path-to-the-oald8

eg:

$ padsp ‘/home/nikunj/oald8/oald8’

#2

Create a Shell-Script on the Desktop

#!/bin/sh

padsp ‘/home/nikunj/oald8/oald8’

Make it executable. Also, optionally set the ICON from: /home/nikunj/oald8/chrome/icons/default/main-window.xpm

#3 (adjust)

Annoying Dialog: Click OK to download Plugin

Click Cancel. Yeah! Adjust! 😛

 
Update (2012-09-20)

Just copied and pasted it to my brand new Linux Mint.

It didn’t work by default.

/run-oald8.sh: 166: ./run-oald8.sh: ./oald8-bin: not found

So all I had to do was install the libraries.

$ sudo apt-get install ia32-libs ia32-libs-gtk ia32-libs-sdl dpkg-dev

 

 

things were good…

but…. I noticed Vuze not starting up!! [to fix that, I removed and reinstalled from “Ubuntu Software Center”, and it got even upgraded. Cool no?]

and All the more sad… My VMWare Workstation stopped working. [Ubuntu 10.04 uses Linux Kernel higher than 2.6.32]

The workstation was old and so couldn’t build modules for the new kernel and sadly I can’t even logon to my Mac OS X Virtual Machine!

I know its very sad depressing!

I’ve tried a lot of things but none seemed to work.

Possible Solutions:

  1. Downgrade to a Linux Kernel which the VMWare Supports. //TODO didn’t try that enough. Need to download Kernel!
    Just yesterday I removed all the unused obsolete Kernel Headers! Sadly If I would’ve just booted in an earlier one, at least my VMWare would’ve worked.
  2. Upgrade VMWare. Yeah I can do that. They will fix the bug and it will work just great on my own system.
    Sounds k. But I would then need a license for the new version as well. //NOTODO I’m not that rich you knoww!! [Not Yet. hehe]
  3. Well, then there is VirtualBox! It still works out-of-the-box [of late I’ve been using this word a lot. Sounds good no?]. If I could just take the VMDX (Mac OS X virtual disk of type VMWare) and use it in VirtualBox. So simple no issues right? 😐 But the image never booted. It showed me a Gray Apple Logo and Loading never completed.
  4. Then We can convert the VMDX image to VDI (suited for VMWare) [after all we just want the Mac OS X running], I followed the steps at some blog..sudo apt-get install qemu
    qemu-img convert debian.vmdk /tmp/debian.bin
    VBoxManage convertdd /tmp/debian.bin debian.vdiNaah! Same story! 😐 It never really got alive. //TODO tinker with the VirtualBox settings.
  5. Patching the VMWare (so that it can use the new Kernel and build modules accordingly)
    😉 I found a few forum threads on the same. There are a lot of people having similar issues. They have even posted the patches. Like here. But my VMWare is still not happy enough.
  6. I can optionally install the Ubuntu 9.10 back (separate installation of course). //TODO But doesn’t make sense.
  7. Completely Remove the Workstation and Install again.  //TODO I don’t know why it will help anyway!

What else can I say. Wish Me Luck! 😀 Will post back soon with updates!

Update:

I uninstalled VMWare Workstation and then installed it again [Think: 7]

Then I tried patching the Kernel and guess what It worked. [Think: 5]

I’ll tell you how. See this blog: http://communities.vmware.com/message/1401588#1401588

a) Create a Folder [anyname]

b) Save the two files inside that.

c) Enter Console and change directory to [anyname]. Make the Script executable & run it:

$ chmod u+x patch-modules.sh

$ ./patch-modules.sh

d) All is done [if bottom two lines don’t suggest that “make” failed]. Just Start the Player. 😀

Cheers Mate. Thanks for Support! 😉

Upgraded to Ubuntu10.04

GNOME is elegant!

GNOME Ubuntu 10.04

KDE Plasma, Cool Widgets

KDE Kubuntu 10.04

Ah! Well its been ages already since I’ve been trying to upgrade to “Lucid Lynx” from “Keramic Koala“!

I downloaded the alternate disc and the desktop disc as well. But none seemed to upgrade my existing Ubuntu.

It kept asking for a disc (as in to insert it etc) which I was running the installer from [Sad situation. I know! Its even worse than being in a situation where you need to download a Wifi-Driver From the internet to make the Wifi Work! :O]!

To try it I wrote a DVD with Ubuntu-10.04-Desktop-amd64.iso and even installed it on a bootable USB Drive. Its fun, just plug and boot and even offers a persistence for documents.

Anyway.. I kept on telling myself that already I’ve downloaded around two Diskettes totaling about 1.4Gigs and then if I use the “Update Manager” to Upgrade to 10.04 then it’ll be a total waste of already applied effort and network bandwidth, but having a Fun-Unlimited InterNet Connection I thought.. Y NOT! 😀 and so I switched to Upgrade “frame-of-mind”! The Upgrade Manager is very robust and starts every time for the the same state where it left or had to abort because of limited connectivity. It was interactive and finally after 3 hours the new Ubuntu was up and running.

I must tell you, its amazing. Its even all the more beautiful and works just great. Initially I had some skepticism about its performance though but 🙂 it got back to being awesome again.

Soon once I was logging in and saw under “sessions” .. it was KDE. I think as I was using K3B and other KDE packages some initial files must have got downloaded I logged in but couldn’t see the task-bar even. I had to download the KDE-Basepackages to make it work. Now I have Kubuntu and Ubuntu both in my system. Take a look! 😀

Mac OS X

My Brandnew MAC OS X Leopard

Ain't that SWEET! 😀

Earlier this morning, I woke up to find out that the Virtual Machine had been downloaded completely… and I asked VMWare to Launch it and out of the box.. it showed me the desktop! This is so AWESOME.

The Story:

Someone Ported Mac to x86 (Our general Intel PCs) [think: http://www.insanelymac.com/%5D

Someone downloaded and installed it on his system inside a Virtual Machine.

the second Someone Zipped the machine and uploaded on Torrentz.

Yours truly downloaded and is using it, inside my VMWare Workstation.

Btw:

I also have these operating systems in VirtualBox + VMWare:

  • OpenSolaris 10
  • Fedora 12
  • Windows XP sp3
  • Chromium OS
  • FreeBSD 8.0 and Ubuntu 10.04 are x64 and my machine’s Hardware Sucks enough to not boot them!

Anyway. FYI 🙂 Cheers.