Eric Guo's

in HTML5, JavaScript, Ruby & Rails, Python, and Cloud MES!

Running Knoppix 6.7.1 in a Sandisk Ultra Flash Drive to Do GAE Programming via PyCharm


A couple of days ago, I just re-install Windows 7 on IBM X60 based on the flash drive, now the new bought Sandisk Ultra USB flash drive is no use now, so during the National Holiday, I just install a Live-CD type Linux on it so I can play something different with MS stuff latter.

I choose Knoppix largely because of it’s size: Knoppix has the largest size among other Linux distribution like puppy/Slax as well as it’s popularity, you can Get Knoppix via a BT client like µTorrent. After you get the 3.68GB DVD ISO downloaded, the step to custom Knoppix to fit your needs will be quite simple (yes simple, but it must be consider in the Linux standard):

  1. Write ISO Image to flash drive, using UltraISO (I use method USB-ZIP+) or Universl USB Installer.
  2. Boot it and make a persistent store, I choose AES256 crypted and size 3627MB, you should be quite to input the number as at boot time, the screen has time counting.
  3. Setup the network by click the right corner of desktop applet: NetworkManager, it is quite easier to setup whether you use wirelss or wire network.
  4. Due to GFW in Chinese, you have to edit the /etc/hosts by some degree and add OpenDNS ( if needed. You can running Chromium to verify the internet is OK now and download a copy of host to reference/replace your version.
  5. Install some additional components which can not deploy by Knoppix due to license limit: Start->Perferences->install components. (Flash and MS font, two package currently), Running Chromium again to verify the flash is install OK, before that you have to change Preference in Chromium first via chrome://settings/content, to enable Plug-ins and JavaScript first.
  6. Install Chinese input method via Synapitc Package Manager (Start->Perference->Synapitc…) or via apt-get command in Accesories->Root Terminal (you may want to change background to semi trans as by default it is totally transpanrency via Edit->Perferences->Backgroud->Opacity at this moment):
      apt-get install scim-pinyin
  7. The above command will download ttf-arphic-ukai & ttf-arphic-uming as well as scim-pinyin depend on it, to Switch to use scim input method now, you need running Start->Perference->Input Methods Switcher to “Use SCIM via IM_MODULE”

After above 7 steps, you can in fact to use Knoppix now, but you may also want to install additional software like WinRAR (very popular but not free):  you can first extract to home folder ~/, run make in ~/rar folder and put rarreg.key to /etc/ if you have a license.

I also need to use PyCharm 1.5.4 to do some Google App Engine programming, so still need manually install: (in Root Terminal running)

    apt-get install sun-java6-jre
Because PyCharm say it must run Sun Java Runtime instead of Open Java Runtime, so it is need to install it first. You may also want to install some other program like python-psyco, qtm (blogging client) or scribes (a new text editor) at this time with similar apt-get install command.

Download the GAE SDK, current writing, I use version 1.5.4, extract to home folder first, then move to /usr/local if you want in root, you may refer to that folder after install PyCharm, but it is another topic I think.

You may also have to edit your /etc/profile to export an environment to ensure PyCharm can find the correct java run time after line 24:

    export PYCHARM_JDK
Now we can download the PyCharm 1.5.4 and extract & move to /usr/local also. after that you can  run /usr/local/pycharm-1.5.4/bin/ to test if every thing is OK, after run that script once, you can run PyCharm by run charm directly in Start->Run dialog.

I done to setup the Knoppix by above sequence and hoping you also go smooth with this blog while setting up your personal Knoppix USB flash drive.