1) Create NTFS partition in usb-key and make it active(primary) partition –
# cfdisk /dev/sdb

2) Create NTFS file-system the partition –
# mkfs.ntfs -f /dev/sdb1

3) Mount Windows iso and usb-key –
# mount -o loop win7.iso /mnt/iso
# mount /dev/sdb1 /mnt/usb

4) Copy over all files –
# cp -av /mnt/iso/* /mnt/usb/

5) Write Windows 7 MBR on usb-key –
# ms-sys -7 /dev/sdb

6) Keep a copy of the same as img –
# dd if=/dev/sdb of=/win7.img

Advertisements

I have bought a monster laptop (Acer Aspire 4820TG TimelineX) with awesome specification.

  • Quad core Intel Core i5-430M CPU
  • Intel HM55
  • 4GB of 1333MHz DDR3 RAM
  • 500GB SATA HDD
  • ATI Mobility Radeon HD 5650 GPU with 1GB graphics memory
  • Gigabit Ethernet, 802.11n wireless, Bluetooth 3
  • Multi DVD/RW, SD/MMC, HDMI

AND ….

  • 8+ hours of battery (6cell)

More review posts later…

* I am contributing my Linux HOWTO in wiki – https://wiki.archlinux.org/index.php/Acer_TimelineX

Android hidden code

October 12, 2010

Android generic:
*#*#4636#*#* – Phone / Battery / Usage information
*#*#7780#*#* – factory data reset.
*2767*3855# – factory format
*#*#34971539#*#* – information about phone camera
*#*#7594#*#* – End Call / Power
*#*#273283*255*663282*#*#* – File copy / backup
*#*#197328640#*#* – Service mode.

WLAN, GPS and Bluetooth Test Codes:
*#*#232339#*#* OR *#*#526#*#* OR *#*#528#*#* – WLAN test (Use “Menu” button to start various tests)
*#*#232338#*#* – Shows WiFi MAC address
*#*#1472365#*#* – GPS test
*#*#1575#*#* – Another GPS test
*#*#232331#*#* – Bluetooth test
*#*#232337#*# – Shows Bluetooth device address
*#*#8255#*#* – Launch GTalk Service Monitor.

Codes to get Firmware version information:
*#*#4986*2650468#*#* – PDA, Phone, H/W, RFCallDate
*#*#1234#*#* – PDA and Phone
*#*#1111#*#* – FTA SW Version
*#*#2222#*#* – FTA HW Version
*#*#44336#*#* – PDA, Phone, CSC, Build Time, Changelist number

Codes to launch various Factory Tests:
*#*#0283#*#* – Packet Loopback
*#*#0*#*#* – LCD test
*#*#0673#*#* OR *#*#0289#*#* – Melody test
*#*#0842#*#* – Device test (Vibration test and BackLight test)
*#*#2663#*#* – Touch screen version
*#*#2664#*#* – Touch screen test
*#*#0588#*#* – Proximity sensor test
*#*#3264#*#* – RAM version


[arp@arpd workspace]$ lsusb | grep Galaxy
Bus 002 Device 009: ID 04e8:681c Samsung Electronics Co., Ltd Galaxy Portal/Spica Android Phone

[arp@arpd workspace]$ cat /etc/udev/rules.d/90-android.rules
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb",ATTR{idVendor}=="04e8",ATTR{idProduct}=="681c",SYMLINK+="android_adb"
SUBSYSTEM=="usb",ATTR{idVendor}=="04e8",ATTR{idProduct}=="681c",SYMLINK+="android_fastboot"

[arp@arpd workspace]$ sudo udevadm control --reload-rules
[arp@arpd workspace]$ adb devices
List of devices attached
xxxxxxxxxxxx device

Kubuntu customization script

September 15, 2010

I have been using this Kubuntu customization script for long time and there are few fans of it. I believe, it’s good to release this to larger audience.
Read through … everything documented in the script. Don’t blame me if it screws up your Linux distro. 🙂


#!/bin/bash

# File : kubuntu_customize_1004_updt3710.sh
# Purpose : Extreme customization of Kubuntu for dev/multimedia workstation
# License : GNU GENERAL PUBLIC LICENSE Version 3 (C) 2010 Archan Paul
# http://www.gnu.org/licenses/gpl.txt
# Version : 1004_updt3710

export HOME=/root
export LC_ALL=C

RELEASE="lucid"
LOCAL_MIRROR="http://APTCACHE_MIRROR:3142"
APT="# Default apt sources
\\n
\\ndeb $LOCAL_MIRROR/ubuntu $RELEASE main restricted universe multiverse
\\ndeb-src $LOCAL_MIRROR/ubuntu $RELEASE main restricted universe multiverse
\\n#deb http://archive.ubuntu.com/ubuntu $RELEASE main restricted multiverse universe
\\n#deb-src http://archive.ubuntu.com/ubuntu $RELEASE main restricted multiverse universe
\\n
\\ndeb $LOCAL_MIRROR/ubuntu-updates $RELEASE-updates main restricted universe multiverse
\\ndeb-src $LOCAL_MIRROR/ubuntu-updates $RELEASE-updates main restricted universe multiverse
\\n#deb http://archive.ubuntu.com/ubuntu $RELEASE-updates main restricted universe multiverse
\\n#deb-src http://archive.ubuntu.com/ubuntu $RELEASE-updates main restricted universe multiverse
\\n
\\ndeb $LOCAL_MIRROR/ubuntu-security $RELEASE-security main restricted universe multiverse
\\ndeb-src $LOCAL_MIRROR/ubuntu-security $RELEASE-security main restricted universe multiverse
\\n#deb http://security.ubuntu.com/ubuntu $RELEASE-security restricted main multiverse universe
\\n#deb-src http://security.ubuntu.com/ubuntu $RELEASE-security restricted main multiverse universe
\\n
\\ndeb $LOCAL_MIRROR/ubuntu-backports $RELEASE-backports main restricted universe multiverse
\\ndeb-src $LOCAL_MIRROR/ubuntu-backports $RELEASE-backports main restricted universe multiverse
\\n#deb http://archive.ubuntu.com/ubuntu $RELEASE-backports main restricted universe multiverse
\\n#deb-src http://archive.ubuntu.com/ubuntu $RELEASE-backports main restricted universe multiverse
\\n
\\ndeb $LOCAL_MIRROR/ubuntu-partner $RELEASE partner
\\ndeb-src $LOCAL_MIRROR/ubuntu-partner $RELEASE partner
\\n#deb http://archive.canonical.com/ubuntu $RELEASE partner
\\n#deb-src http://archive.canonical.com/ubuntu $RELEASE partner
\\n
\\ndeb $LOCAL_MIRROR/medibuntu $RELEASE free non-free
\\ndeb-src $LOCAL_MIRROR/medibuntu $RELEASE free non-free
\\n#deb http://packages.medibuntu.org $RELEASE free non-free
\\n#deb-src http://packages.medibuntu.org $RELEASE free non-free
\\n
\\n#deb $LOCAL_MIRROR/kubuntu-backports $RELEASE main
\\n#deb-src $LOCAL_MIRROR/kubuntu-backports $RELEASE main
\\n#deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu $RELEASE main
\\n#deb-src http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu $RELEASE main
\\n
\\ndeb $LOCAL_MIRROR/kubuntu-ppa $RELEASE main
\\ndeb-src $LOCAL_MIRROR/kubuntu-ppa $RELEASE main
\\n#deb http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu $RELEASE main
\\n#deb-src http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu $RELEASE main
\\n
\\ndeb $LOCAL_MIRROR/google stable non-free main
\\n#deb http://dl.google.com/linux/deb stable non-free main
\\n
\\n#deb $LOCAL_MIRROR/samsung-driver debian extra
\\n#deb http://www-personal.umich.edu/~tjwatt/suldr/ debian extra
\\n
\\ndeb $LOCAL_MIRROR/skype stable non-free
\\n#deb http://download.skype.com/linux/repos/debian/ stable non-free
\\n
\\n#deb $LOCAL_MIRROR/opera stable non-free
\\n#deb http://deb.opera.com/opera/ stable non-free
\\n"
echo -e $APT > /etc/apt/sources.list

apt-get update
#apt-get --yes --force-yes dist-upgrade

#apt-get install --yes ubuntu-minimal
#apt-get install --yes ubuntu-standard casper laptop-detect os-prober
#apt-get install --yes linux linux-generic
#apt-get install --yes --force-yes dist-upgrade

# add gpg signatures
## Medibuntu Packaging Team
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2EBC26B60C5A2783
## Google, Inc. Linux Package Signing Key
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A040830F7FAC5991
## kubuntu-ppa - updates, backports
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8AC93F7A
## opera public key
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -

apt-get update
apt-get --yes --force-yes upgrade
#apt-get --yes --force-yes dist-upgrade

#kernel, drivers
#apt-get build-dep --yes --force-yes --no-install-recommends linux linux-headers-generic
apt-get install --yes --force-yes --no-install-recommends b43-fwcutter bcmwl-kernel-source
apt-get install --yes --force-yes --no-install-recommends ndiswrapper-utils-1.9 dkms
apt-get install --yes --force-yes --no-install-recommends ndiswrapper-utils-1.9 dkms

#misc commandline utils
apt-get install --yes --force-yes --no-install-recommends debootstrap syslinux squashfs-tools mkisofs sbm lvm2 mdadm mbr
apt-get install --yes --force-yes --no-install-recommends cryptsetup ecryptfs-utils
apt-get install --yes --force-yes --no-install-recommends preload
apt-get install --yes --force-yes --no-install-recommends minicom
apt-get install --yes --force-yes --no-install-recommends rsync lftp aria2 jigdo-file
apt-get install --yes --force-yes --no-install-recommends vim
apt-get install --yes --force-yes --no-install-recommends mc nmap vlock

#servers
apt-get install --yes --force-yes --no-install-recommends apache2-mpm-worker libapache2-mod-python
apt-get install --yes --force-yes --no-install-recommends trac trac-git trac-bzr trac-mercurial
apt-get install --yes --force-yes --no-install-recommends apt-cacher
apt-get install --yes --force-yes --no-install-recommends openssh-server

#database
#apt-get install --yes --force-yes --no-install-recommends mysql-server
apt-get install --yes --force-yes --no-install-recommends mysql-client

#development
apt-get install --yes --force-yes --no-install-recommends gcc gcc-multilib g++ g++-multilib gdb libtool
apt-get install --yes --force-yes --no-install-recommends git-core git-svn git-cvs subversion bzr bzr-git bzr-svn bzr-cvsps-import bzrtools mercurial
apt-get install --yes --force-yes --no-install-recommends make scons automake autoconf pkg-config flex bison bitbake gperf protobuf-compiler ccache
apt-get install --yes --force-yes --no-install-recommends ctags patch expect
apt-get install --yes --force-yes --no-install-recommends manpages-dev valgrind
apt-get install --yes --force-yes --no-install-recommends bitbake
apt-get install --yes --force-yes --no-install-recommends cdbs autotools-dev fakeroot dh-make build-essential devscripts
apt-get install --yes --force-yes --no-install-recommends libstdc++6-4.3-dev libmudflap0-4.3-dev libmpfr-dev libmpc-dev libncurses-dev libusb-dev libicu-dev libssl-dev libnss3-dev libxml2-dev libsqlite3-dev libgcrypt-dev libprotobuf-dev libcurl4-openssl-dev
apt-get install --yes --force-yes --no-install-recommends libglib2.0-dev libdbus-glib-1-dev
apt-get install --yes --force-yes --no-install-recommends libgtk2.0-dev libgtkmm-2.4-dev libglitz-dev librsvg2-dev libcairo2-dev libgconf2-dev libgstreamer0.10-dev libclutter-1.0-dev libclutter-gst-0.10-dev libclutter-gtk-0.10-dev libclutter-imcontext-0.1-dev
apt-get install --yes --force-yes --no-install-recommends freeglut3-dev libsdl-dev libasound2-dev libglut3-dev libglew-dev glew-utils
apt-get install --yes --force-yes --no-install-recommends libqt4-dev qt4-doc qt4-dev-tools libqt4-opengl-dev
apt-get install --yes --force-yes --no-install-recommends kdelibs5-dev

#python
apt-get install --yes --force-yes --no-install-recommends python3 python-mysqldb python-pysqlite2 python-psyco

#kubuntu kde
apt-get install --yes --force-yes kubuntu-desktop
apt-get install --yes --force-yes kubuntu-restricted-extras
apt-get install --yes --force-yes ubiquity-frontend-kde
apt-get install --yes --force-yes --no-install-recommends akonadi-server
#apt-get install --yes --force-yes plasma-widget-networkmanagement plasma-scriptengines
apt-get install --yes --force-yes network-manager-kde network-manager-pptp-kde network-manager-openvpn-kde network-manager-vpnc-kde network-manager-openconnect network-manager-strongswan
apt-get install --yes --force-yes --no-install-recommends kdeadmin kdegraphics kdemultimedia kdenetwork kdepim kdeutils koffice
apt-get install --yes --force-yes --no-install-recommends kde-style-qtcurve kwin-style-qtcurve kde-style-skulpture kwin-style-skulpture
apt-get install --yes --force-yes --no-install-recommends language-pack-en language-support-writing-en language-pack-kde-en

#multimedia, codec for kde
apt-get install --yes --force-yes --no-install-recommends amarok kdenlive kaffeine
apt-get install --yes --force-yes --no-install-recommends audex avidemux-qt
apt-get install --yes --force-yes --no-install-recommends k9copy
apt-get install --yes --force-yes --no-install-recommends xine-plugin lame mencoder flac xvidcap ffmpeg
apt-get install --yes --force-yes --no-install-recommends sox libsox-fmt-all audacity
apt-get install --yes --force-yes --no-install-recommends libavcodec-unstripped-52 libdvdread4 libk3b6-extracodecs libmp3lame0 libxine1-ffmpeg libdvdcss2
if [ $(arch)='x86_64' ]; then apt-get install --yes --force-yes --no-install-recommends w64codecs; else apt-get install --yes --force-yes --no-install-recommends w32codecs; fi

#kde tools
apt-get install --yes --force-yes --no-install-recommends partitionmanager
apt-get install --yes --force-yes --no-install-recommends digikam skanlite xsane
apt-get install --yes --force-yes --no-install-recommends qcad qcad-data
apt-get install --yes --force-yes --no-install-recommends scribus-ng okular okular-extra-backends
apt-get install --yes --force-yes --no-install-recommends kchmviewer calibre
apt-get install --yes --force-yes --no-install-recommends qbzr qgit kdiff3 kdbg qtcreator kdevelop
apt-get install --yes --force-yes --no-install-recommends usb-creator-kde

#java
apt-get install --yes --force-yes --no-install-recommends openjdk-6-jre icedtea6-plugin
#apt-get install --yes --force-yes --no-install-recommends openjdk-6-jdk
#apt-get install --yes --force-yes --no-install-recommends openjdk-6-doc openjdk-6-source
apt-get install --yes --force-yes --no-install-recommends sun-java6-jre sun-java6-plugin
#apt-get install --yes --force-yes --no-install-recommends sun-java6-jdk

#mozilla
apt-get install --yes --force-yes --no-install-recommends firefox firefox xul-ext-gears kmozillahelper
apt-get install --yes --force-yes --no-install-recommends thunderbird xul-ext-enigmail
apt-get install --yes --force-yes --no-install-recommends lightning-extension calendar-timezones calendar-google-provider

#gtk2 themes
apt-get install --yes --force-yes --no-install-recommends gtk2-engines-qtcurve gtk2-engines-murrine

#gtk tools
apt-get install --yes --force-yes --no-install-recommends gimp
apt-get install --yes --force-yes --no-install-recommends planner

#openoffice
apt-get install --yes --force-yes --no-install-recommends openoffice.org-kde openoffice.org-writer openoffice.org-calc openoffice.org-impress
apt-get install --yes --force-yes --no-install-recommends openoffice.org-draw openoffice.org-math openoffice.org-base
apt-get install --yes --force-yes --no-install-recommends openoffice.org-pdfimport openoffice.org-presenter-console openoffice.org-wiki-publisher
apt-get install --yes --force-yes --no-install-recommends openoffice.org-hyphenation-en-us openoffice.org-thesaurus-en-us

#fonts
#apt-get install --yes --force-yes --no-install-recommends msttcorefonts
apt-get install --yes --force-yes --no-install-recommends ttf-liberation
apt-get install --yes --force-yes --no-install-recommends ttf-bengali-fonts ttf-japanese-gothic

#misc xutils
apt-get install --yes --force-yes --no-install-recommends xserver-xephyr
apt-get install --yes --force-yes --no-install-recommends xmedcon

#vm
apt-get install --yes --force-yes --no-install-recommends kvm libvirt-bin ubuntu-vm-builder qemu bridge-utils
#apt-get install --yes --force-yes --no-install-recommends virtualbox-ose virtualbox-ose-fuse virtualbox-ose-dkms virtualbox-ose-guest-dkms virtualbox-ose-guest-x11 virtualbox-ose-guest-utils virtualbox-ose-qt virtualbox-guest-additions

#google
apt-get install --yes --force-yes --no-install-recommends chromium-browser chromium-codecs-ffmpeg-extra
apt-get install --yes --force-yes --no-install-recommends picasa

#skype
apt-get install --yes --force-yes --no-install-recommends skype

#adobe
apt-get install --yes --force-yes --no-install-recommends acroread flashplugin-nonfree

ln -s /usr/share/themes/QtCurve/gtk-2.0/gtkrc /etc/gtk-2.0/gtkrc

cd /usr/bin && sudo wget http://android.git.kernel.org/repo && sudo chmod a+x /usr/bin/repo

apt-get purge --yes --force-yes ttf-kacst-one ttf-khmeros-core ttf-lao ttf-punjabi-fonts ttf-thai-tlwg ttf-unfonts-core ttf-wqy-microhei

#cd /etc/rc2.d/ && mv S16ssh K16ssh
#cd /etc/rc2.d/ && mv S20apt-cacher K20apt-cacher
#cd /etc/rc2.d/ && mv S20virtualbox-ose K20virtualbox-ose
#cd /etc/rc2.d/ && mv S20virtualbox-ose-guest-utils K20virtualbox-ose-guest-utils
#cd /etc/rc2.d/ && mv S20qemu-kvm K20qemu-kvm
#cd /etc/rc2.d/ && mv S25mdadm K25mdadm
#cd /etc/rc2.d/ && mv S28libvirt-bin K28libvirt-bin
#cd /etc/rc2.d/ && mv S50saned K50saned
#cd /etc/rc2.d/ && mv S50rsync K50rsync
#cd /etc/rc2.d/ && mv S91apache2 K91apache2

groupadd developers
apt-get autoclean
apt-get autoremove

Since I purchased my Samsung Galaxy Spica (aka GT-I5700 Android phone) I wanted to put Android 2.1 Eclair. Yesterday I managed to find sometime and flashed my phone with (so called) I5700’s India firmware (ie: I570EDDJC5).

Here is the howto ( I am not responsible if anyone’s phone becomes brick in this process ) –

  1. Install Samsung New PC Studio in Windows XP/Vista/7 computer so that all required drivers will be installed & available. (don’t forget to reboot after the installation)
  2. Connect Samsung Galaxy Spica phone to the Windows PC using USB cable which came in the box.
  3. Check whether all the drivers are properly recognized from Device Manager.
  4. Close Samsung New PC Studio and disconnect the phone.
  5. Switch off the phone and remove SIM & SD card (if any).
  6. Start the Odin-v4.03 (included in the firmware pack) multi-downloader in PC
  7. Hold Vol Down + Camera + Call Off buttons to get into Download screen and connect the phone to PC using USB cable.
  8. The phone should be detected in COM3 port (USB serial) of Odin.
  9. Check “One Package” option; add spica_jc3.ops (included in the firmware pack) and firmware package I570EDDJC5.tar (included in the firmware pack).
  10. Start flashing. Once the flashing is completed the phone will automatically reboot. (for me the flashing, auto rebooting took approximately 6mins …. if it fails, reboot the phone/PC and try again)
  11. Once you get your Eclair screen, disconnect the USB cable.

Few interesting links –

1. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents
2. OOBETimer = FF D5 71 D6 8B 6A 8D 6F D5 33 93 FD
3. Set permission of WPAEvents to Deny for System

Source – crazy Internet