[Win7] Asus EEEPC 1015PN: Getting Optimus working (again) on Windows 7 Pro

Optimus is a really nice concept: Having installed an low-power Intel GMA3150 next to an "high-end" (compared to the Intel ;)) NVIDIA ION2 with 512 MB RAM (and CUDA!) is very nice - switching between both cards on the fly depending on the application - awesome. But getting it to work can be quite painful. I had to reinstall the drivers on my EEE PC and got it wrong. And now that it is working, I just want to write it down. Just in case, you never know ;)!

1.) Get Windows 7 Pro or better installed
2.) Get all the Updates on your system
3.) Install and start the GraphicsSwitch for Windows 7 from Asus for your EEEPC 1015PN
4.) Choose Optimus Mode and reboot your system.
5.) Install the Intel Driver. Latest and working version is the GMA3150 15.12.75.50.7.2230
You can download that here: https://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=19494&lang=eng&wapkw=gma+3150 After that, reboot!
6.) Install the Nvidia Driver. Latest and working version (for me) is the Verde 301.42 driver. You get that here: http://www.nvidia.com/download/driverResults.aspx/44972/en-us - Could be that a newer version does work to, but thats what I came up with after trying a lot of different versions. After installing, reboot.
7.) You should be done. Right-click on your Desktop, choose NVIDIA Systemsettings. In these settings you can enable two cool options from the "Desktop" menu:
a.) "Start with graphics processor to context menu" - with right click on an Application you can choose to start that program with your highend gpu
b.) "Show Actitivy Symbol in Infobar" - that does show you whenever the GPU is working on something. And if that symbol does not show up some boots later - well, that mostly says that some update broke your Optimus Setup.

But by now, I think you know how to get that up and running again! 🙂

HTC Universal

I found a "bricked" HTC Universal without - everything.
So I decided to piece it back together.
First thing to find was an USB Cable to recharge the battery.
Working is an normal Mini USB Cable, even tough the connector looks different.

After that, I found out that the HTC was a brick.
So to unbrick:

get mtty1.42.exe, enter bootloader mode , (Power + Light Bulb + Reset)

1. Stop Activesync USB connection
2. Uni : Reboot Bootloader then Connect USB
3. PC : Run mtty1.42.exe
4. Choose USB in "Port" (Reconnect if can't find/reconglize USB and try remove sim and sd card)
5. type : task 28 55aa
6. Press Enter
7. Cause DOC reformatted, so there's no rom in DOC ,try reflash any rom that you like .

For task 28 55aa in mtty success , will show the message (attachment )

DONE .
( http://forum.xda-developers.com/showpost.php?p=1097645&postcount=4 )

Under Windows Vista / 7 you need to use these drivers and stuff: http://forum.xda-developers.com/showthread.php?t=313001&highlight=flashing+vista

After that, we want to upgrade to a new rom.
I choose Maxstegis German Rom ( http://rom.maxstegi.de/index.php )
You should go for Version 6: http://rom.maxstegi.de/downloads.php?view=detail&df_id=12
And the Radio Image 1.18.00: http://rom.maxstegi.de/downloads.php?view=detail&df_id=14

Go into Bootloader Mode, start the Version 6 and it will upgrade.
Do not do anything to the Radio, we will change that soon...

Get the HTC Universal Unlock Tool to unlock your SIM:
http://buzzdev.com/m/files/view/HTC-Universal-SIM-unlock

Install Instructions:
1. Backup your phone (not necessary, but advisable).
2. Remove your SD Card.
3. Enter bootloader mode on your Phone. To do this, simultaneously hold down the backlight key (“bulb” key, next to volume key), the power key and soft reset the phone. Your phone screen should clear, and you will see very faint writing saying “serial”. Let go of buttons etc.
4. Connect your phone to your computer using the USB lead.
5. Run the MaUpgradeUt_noID.exe program – this will reflash your phone with necessary software required to enable the unlocker.
6. Wait patiently.
7. Once the MaUpgradeUt_noID.exe upgrade completes, soft reset your phone by pressing the soft reset button on the back of the device [if the flash has been successfully applied, you should see that you now have Radio version 0.00.00]
8. Allow your phone to reboot. Once it has, connect to your PC using Activesync, and copy the UNI_Unlock_v1.exe program onto your phone. Alternatively, copy it to an SD card and insert into your phone.
9. Run UNI_Unlock_v1.exe on your phone. Wait patiently.
10. Once the process completes, soft reset your phone.
11. Process is (hopefully) complete!
http://forum.gsmhosting.com/vbb/archive/t-316584.html

After that, boot loader Mode, flash the new Radio Firmware, after that you can reflash the ROM aswell, so to be sure that everything worked.
Thats it!

Enable Wireless G (802.11g) Support in HTC Universal Pocket PC Phone
HTC Universal also kwown as Qtek 9000, T-Mobile MDA Pro, Orange SPV M5000, O2 Xda Exec, i-mate JASJAR, Dopod 900, Vodafone v1640, Vodafone VPA IV, E-Plus PDA IV, Grundig GR980 and etc as it’s be re-branded and marketed by different vendors and network operators. One major disappointment and weakness of HTC Universal is it’s only support 802.11b-compatible technology, and thus unable to connec to WiFi G (802.11g) network.
It’s possible to make the HTC Universal based Pocket PC phone to compatible and able to connect to 802.11g-only access points by a registry tweak, but the speed would still be the same as 802.11b (11 Mbit/s).
The registry tweak is to change and add the following registry decimal values using a registry editing tool like the PHM Registry Editor at your HTC Universal based Pocket PC:

HKEY_LOCAL_MACHINE\COMM\TIACXWLN1\PARMS: dot11SupportedRateMask=1
HKEY_LOCAL_MACHINE\COMM\TIACXWLN1\PARMS: dot11SupportedRateMaskG=8

After adding and editing above registry key, soft-reset the device.
( http://www.mydigitallife.info/2006/08/01/enable-wireless-g-80211g-support-in-htc-universal-pocket-pc-phone/ )

If you ever need to hardreset your Device, press the two "-" Buttons on the Keyboard and the Reset Button while the Device is turned on. A screen will come up and ask for the reset, press... o to confirm.

Additional Tutorials: http://forum.xda-developers.com/showthread.php?t=549207

[Win7] ATI HD6870 + Mjölnir 1

I recently bought an ATI HD6870, replacing my old and very noisy and hot HD2900XT+.
As far as it seems it was an really good idea, as the new graphics is just awesome in performance and price (~180€).
By the way, I would recommend the Sapphire "Not-Reference" Model which comes with an special cooler - and is damn quiet.

And another thing: ATI brought out an Preview of the new 11.4 Driver called "Mjölnir 1" which does improve overall performance.
Its not stable yet, but maybe you want to check it out: http://support.amd.com/us/kbarticles/Pages/Catalyst114earlypreview.aspx
( Windows 7, Vista Only )

Webconverger - Build your own Internetcafé

- Install Debian
- Add following lines to /etc/apt/sources.list :
deb http://live.debian.net/ sid-snapshots main contrib non-free

deb-src http://live.debian.net/ sid-snapshots main contrib non-free
- apt-get install live-helper git git-core svn sudo
- mkdir /home/webconverger
- cd /home/webconverger
- git clone git://git.debian.org/git/debian-live/config-webc.git
- modify /home/webconverger/config-webc/webconverger/auto/config
( i.e. change
homepage=http://portal.webconverger.com to the one you want,
add Kioskrest every 10 Minutes after last use:
kioskresetstation=10
change bootlogo
change website to the one you want and add an bg.png to the account,
otherwise add noxbg to the boot to make the background blank )
- cd /home/webconverger/config-webc/webconverger
- lh config
- lh build
- /home/webconverger/config-webc/webconverger/binary-hybrid.iso

Clean to rebuild:
- cd /home/webconverger/config-webc/webconverger
- lh clean --purge

[iPAQ] Building Serial Console for iPAQ 3600 to Access Cisco Equipment

After I got the iPAQ 3660 working again, I wanted to use it as Serial Console to Work on the Cisco Equipment "on the road". To achieve that, we need two or three things:

1.) An special connector Cable to attach the Serial Console of the iPAQ with an RS232 Connector / the Cisco Rollover Cable
2.) An Terminal Software. I did choose vxHpcPlus for that ( http://www.cam.com/vxhpcplus.html )
3.) Something that makes it possible to use  Landscape Mode so that you can read the Console Output more easily:  NYDITOT Virtual Display, Version 5.02 ( http://www.nyditot.com/Products.asp )

1.) Building the Connector / Adaptor Cable
I did order an iPAQ 3600 to Serial Connector for Active Sync. Sadly it was defect, so I did choose to rebuild it to these Specs. First I did open up the iPAQ Connector and desolder it. Than I did insert it into the iPAQ and identified the needed Connector Ports. So if you look at the bottom of the iPAQ, placed face up on flat surface you will see these Connectors:

2 4 6 8 10 12
1 3 5 7  9 11

Wiring:
4 - GND
7 - TX
8 - RX
11 - 3,3V

Then I got an RS232 Male Connector and did wire these things up like that:

5 4 3 2 1
6 7 8 9

( Looking at the Solder Connectors! Not the "Connector Face"! )

2 - RX
3 - TX
5 - GND

I did left the 3,3V Cable "floating around" for maybe future projects.

2.) Terminal Software
Download the vxHpcPlus from the Website and install it with the Help of ActiveSync.

The Settings for the Serial Port are:

Direct Connect - Async:
Port: "Seriallkabel an COM1:"
Settings: 9600, Databits: 8, Parity: None, Stop: 1, Flow Control: None
Telnet: Send NUL after CR
Emulation: VT100,
Font size: 6,
German Keyboard
80 Colums,
Vertial Scroll,
Auto Wrap,
Scroll,
Hot Button

You can also change these to 115200 if you want.

3.) NYDITOT Virtual Display, Landscape
Download and install with ActiveSync. You can use it to use Landscape Mode which makes reading the Serial Console more easy. Its plain forward, so play with it.

Thanks a lot to Bev Howard for the excellent Printout of the Connector Port ( http://bevhoward.com/serial.htm#36xx ) this Site: http://www.handhelds.org/Compaq/iPAQH3600/iPAQ_H3600.html

[pRoToTyPe] iGPS-M Pro USB to Serial

As I wanted an better GPS Mouse for the pRoToTyPe, I did buy an iGPS M Pro USB Mouse ( http://www.transystem.com.tw/products/index_detail.php?mcat_no=2&cat_no=32&pno=10&ver=en ). I was certain that I could resolder it to Serial and use it on the Fonera Router. And thats how I did it: I did open up the Case, which was very easy, just unsnap it. You will find an socket were 4 wires do run out: Black (GND), Red (5V+), White (USB Data) and Green (USB Data) - I did cut these Wires and soldered them to an 8 Wire Cable. From the other 4 left Wires I did use only two: Under the Metal Shielding of the Mouse you will find an TX and an RX Solder Point - these are RS232 Connection Points. I did just pry open a bit of the shielding to run two wires into it, soldered it onto the points and did close the casing again. On the other end of the cable, I did solder on an RS232 Connector, Female. I did use the pRoToTyPe scheme with Phantom Power for that. Additionally, I did wire up Power and Ground a second Time to an USB Connector as well as the USB Datalines. So I have one RS232 Socket and one USB Connector and can use the Mouse for both occasions.

Hint: Do check first the Datalines of the USB Connector and the Socket so that you're sure you will resolder the USB Data Lines again in correct order.

[iPAQ] Upgrading HP iPAQ 3660 from CE 3.0/Pocket PC 2000 to Pocket PC 2002

As the 3600 Series came out in 2000, it was one of the top notch Personal Digital Assistants and became very widely known through Business Class Users and Geeks. The only downside to this nice product was the big price tag which could go to nearly 1000 bucks. Now, after 10 Years, you got these machines for really less money and so the second named user class (Geeks, Nerds, etc - call it as you want) can accquire and use the now considered outdated Hardware. The 3660 does come with an 206 MhZ Arm (v4, SA1100) Processor, 16 MB Rom and 64 MB Ram (which are seperated dynamically into 32 MB "real" Ram and 32 MB "Flash" to save Work and Programs in). The Display takes it to an Resolution of 320x240 and does show 4096 Colours. For Connection, the 3660 does use and IRDA Port aswell as an Sync Port which can be used over USB and Serial Connection through the Cradle or an Adaptor Cable. As Expansion Slot "Sleeves" were aviable. They could contain 1 or 2 CF Card Slots or one PCMCIA Slot. Both with Battery so they extended the Running Time on the iPAQ a lot. To Upgrade the whole thing to the "not meant to be installed" Pocket PC 2002 install but than Shutdown Active Sync on your Windows PC. Attach the iPAQ to the Cradle and the get Following Software from the Compaq Site ( ftp://ftp.compaq.com/pub/softpaq/):

The Bootloader Update 1.87: ( ftp://ftp.compaq.com/pub/softpaq/sp20001-20500/SP20011.exe )

The Pocket PC 2002 Update / Rom Update 2.20: ( ftp://ftp.compaq.com/pub/softpaq/sp22501-23000/sp22899.exe )

The Pocket PC 2002 SP1: ( ftp://ftp.compaq.com/pub/softpaq/sp22501-23000/sp22547.exe )

You should download these files and start installing them one after another. First the Bootloader, than the Pocket PC Update and finally the SP1 over the ActiveSync Software. One thing to mention: The PocketPC 2002 was never meant to be installed on only 16 MB of Rom, so it does not install things like the MediaPlayer, but you can download these from Microsoft and install them in the "Rom".

To find more Drivers and Software, check out this Website: http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=100807&prodTypeId=215348&prodSeriesId=96479&swEnvOID=231&taskId=135&swLang=18

[EEE901/1000] Use Windows XP Bluetooth-Stack on Asus 901/1000

- Deactivate Bluetooth in the Asus-Tray-Utility
- Open C:\WINDOWS\INF\BTH.INF with the Editor.
- Look for:
[Manufacturer]
%Microsoft%=Microsoft
ALPS=ALPS, NT.5.1
Belkin=Belkin, NT.5.1
...

- Now add "Asus=ASUS, NT.5.1". It should look like this:
[Manufacturer]
%Microsoft%=Microsoft
ALPS=ALPS, NT.5.1
Asus=ASUS, NT.5.1
Belkin=Belkin, NT.5.1
...

- Now look for "[Zeevo.NT.5.1]". It should look like this:
[Zeevo.NT.5.1]
Zeevo Bluetooth Solution=                        BthUsb, USB\Vid_0b7a&Pid_07d0&Rev_0126
Zeevo Bluetooth Solution=                        BthUsb, USB\Vid_0b7a&Pid_07d0&Rev_0133

- Beneath it, add following:
[Asus.NT.5.1]
Asus BT-253=                        BthUsb, USB\VID_0B05&PID_B700

- Result:
[Zeevo.NT.5.1]
Zeevo Bluetooth Solution=                        BthUsb, USB\Vid_0b7a&Pid_07d0&Rev_0126
Zeevo Bluetooth Solution=                        BthUsb, USB\Vid_0b7a&Pid_07d0&Rev_0133
[Asus.NT.5.1]
Asus BT-253=                        BthUsb, USB\VID_0B05&PID_B700

- Save and leave the editor
- Now it depends wheter you did install the Widcomm Software or wheter you start with an fresh Win XP Installation

With Widcomm-Software:
- Activate Bluetooth in the Asus-Tray-Utility, Bluetooth Symbol should be white
- Go to System, Software and remove Widcomm-Bluetooth-Software
- At the end, system want that you deactivate Bluetooth - do that via the Tray Utility
- Than, it wants to reboot - DON'T do that.
- Activate Bluetooth again in the Asus-Tray-Utility
- Windows should start installing its own Bluetooth Stack
- Reboot after that, you're done

Without Widcomm-Software:
- Just activate Activate Bluetooth in the Asus-Tray-Utility and it should start installing
- If not, go to the Hardware Manager and "search for changed Hardware"

Internal Notes:
C:\WINDOWS\INF\BTH.INF
rundll32.exe bthprops.cpl,,BluetoothAuthenticationAgent
bthprops.cpl

I found it btw in an german forum and did roughly translate it, because I found it very useful as I only use Bluetooth for s25@once with my Handy.

Unbrick Royaltek RGM 2000 "Bluemouse" GPS Mouse

Hi there, I was working on an Serial GPS Mouse, Type Royaltek RGM 2000, also called "Blue Mouse", which became famous for beeing deployed with an Medion GPS Kit Years ago. Its an really cool looking Mouse (Serial/Usb depending on the properitary Connector you attach), powered by an Y-Cable with 5 Pins, powered by an quite old SiRF 2 Chipset. I did solder my own Data and Poweradaptor, which worked great. But as I wanted to be "up-to-date", I searched the Web for some more recent Firmware, stumbled upon some, flashed - and killed the Mouse ~.~''... (wrong Firmware for wrong Mouse... Couldn't set it anymore to SiRF to Flash it or ANYTHING! )...

Well... horrible thing, I browsed the Web, knowing not much about GPS Mouses and stuff, but at some point I came up with the knowledge about an 2 Staged Bootloader - an Internal and an External Flash: While the external contains the GPS Software, the internal Flash only consits of the "Bios" and provided the Recovery Mode - and thats what I wanted. Basic idea is following: You grab the VCC (5V+ in that Case), get some 10k - 15k Resistor before that and Short Circuit the "Boot Sel" Pin on the SiRF Chipset, get some Power on your Mouse... and voilá: Boot Mode! Well, sounds easy, doesn't it? Believe me, its horrible! ^^' Couldn't find any useful Datasheets and Google couldn't help me at all. Sadly. But well, hey, that thing is dead already, so lets have some fun and discover - maybe we find out! And what shall I say? I made it! I could recover flash the Mouse and now its supplying data again, running NMEA or SiRF Data - what I wanted and choose!

Good Stuff, so as there is no stuff in the net, I will hook you up with some little Instructions to get your RGM 2000 working again. So, lets go!

Needed Stuff:

- Terraterm

- Royaltek RGM 2000 Firmware ( http://www.mikrocontroller.net/topic/104240#1509333 )
- Royaltek Flash (contained in "RBT-3000 PCv1.3".zip in the AP Download, Discont. Archiv of www.royaltek.com)
OR Complete Package: Firmware + Flash Tool ( http://www.mikrocontroller.net/topic/104240#1509564 )

- SiRF Demo & SiRF Flash 3.1 ( http://www.falcom.de/support/software-tools/sirf/ )

1. Remove the two labels at the Buttom of the Mouse, you'll see two screws - open it up!

2. The big thing on top of the Mouse is the Antenna - you need to remove it by desoldering it - and one of the two metal shieldings - the one which is closer to the cmos akku / battery (not the one from which the antenna cable comes out!)

3. Get some cable, connect it to the red connector cable of the Mouse (5V), connect an 10k - 15k Resistor to it and connect it manually with the Bootsel Point (First Picture Red marked Point).

rgm2000-memoryrgm2000-bootsel

4. Set your Terraterm to 4800 Baud, Connect the GPS Mouse and power up the Device while you hold the Resistor to the Bootsel Point. You should see following in Terraterm

unbrick_rgm2000_1

You need to hold the Point about 2 Seconds. It should not give anything else but this "Symbol". If thats done, you have succesfully booted it into Recovery Mode. You can let go of the Bootpoint. Close Terraterm and load the RoyalTekFlash.exe

5. Set RoyalTekFlash to the following settings (correct to your Com Port!) and press Start, it should come up and flash the Device. If not, you maybe got the wrong Com Port, your Mouse did not correctly boot into the Boot mode or you still got any Programm running that uses the Com Port. The Programm will start erasing the Memory and then flashing with the new Firmware.

unbrick_rgm2000_2

unbrick_rgm2000_3

6. At 99% an Communication Error will occur. Most certainly. No problems, just accept it, its ok.

7. You're done! Reset your Mouse and connect with the SiRF Demo - (Nmea, 4800 Baud) - you'll see the Data again. You can now set the Mouse to SiRF Mode and 38400 Baud and reflash it with the same Firmware again with the SiRFFlash 3.1 Tool (38400 Baud, External Bootmode, Erase whole chip, choose the File and click Execute) - and after that load Factory Settings in SiRF Demo. Just to be sure that everything has been flashed correctly.

8. Resolder and Reassemble the GPS Mouse

Congrats, and thanks very much to Peter Bandhauer of  the http://www.mikrocontroller.net/ Forums which supplied me with the Firmware Dump (231.000.000) - without you I would never got that thing working again! Thank you!!!

rgm2000-sirf(Bottom View, just to complete the Documentation)

Install SunRay Server Software 4.1 on Ubuntu JeOS Server 9.04 i386 (running under ESXi 4.0)

Hi Guys,

this Guide did cost me a lot of nerves and time, but its finally complete!
The most of this stuff is ripped from this nearly perfect guide.
But problem is, I did had some difficulties setting it up and got into serious troubles about dhcp (not working), dpkg (screwed up totaly) and other nasty things.
In the end I did this installation about 4 times, but now its working, and guess what? I did do complete notes! And I'm going to share these with you! ^^.

So, thats the end of the setup:
An Ubuntu JeOS Server 9.04 i386 with Vmware Tools, running on a ESXi 4.0 machine, with an SunRay Server Software (SRSS) Version 4.1!
Now, thats somethin' ain't it?
Ok, lets rock!

Ubuntu Setup
1) Download Ubuntu-Server 9.04 i386 image ( http://www.ubuntu.com/getubuntu/download-server )
2) Upload it onto your VMWare machine
3) Setup an new VM (Custom, Ubuntu Linux(32bit!), 2(!!) NIC Cards, Dynamic (SIZE) HDD(!!!))
4) Install Ubuntu Server with JeOS (so, boot the VM, choose your Language on the inital Ubuntu Setup Screen, press F4 and chose the "Minimal Virtual Machine" and then press Install Ubuntu)
5) Just an normal installation, you can choose the "Base System" and "OpenSSH Server" as additional "apt-get"'s.
6) After installation you need to install gdm:
sudo apt-get install ubuntu-desktop
sudo apt-get install gdm
sudo /etc/init.d/gdm start
sudo dpkg-reconfigure xserver-xorg
7) Just do an quick sudo apt-get update, sudo apt-get upgrade to see wheter everything is alright.
8) Thats it, your Ubuntu Server is working!

SRSS 4.1 Setup
0) Got root?
sudo su

1) Get the required packages
apt-get install libldap-2.4-2 libmotif3 module-assistant tk8.4 tomcat5.5 sun-java6-jre
apt-get install ldap-utils dhcp3-server nscd gawk iputils-ping pdksh unzip alien libgdbm3
apt-get install libx11-6 libfreetype6 libsasl2-2 libxt6 zlib1g gdm devscripts xkb-data-legacy
apt-get install xfonts-base atftpd xfonts-100dpi xfonts-75dpi xfonts-cyrillic wget ed

1 1/2) REBOOT!
reboot

2) Download and Unzip SRSS
cd /tmp/srss
download SRSS 4.1 package from sun.com (doesn't matter, I used the SUSE Enterprise Package, should be all the same!)
unzip srss_4.1_linux.zip

3) Convert all .rpm to .deb packages
find srss_4.1 -name "SUNW*i386.rpm" -exec alien -d {} \;

4) Install the .deb packages
find . -name "sunw*deb" -exec dpkg -i {} \;

5) Apply Patches
wget -O /tmp/srss/Patch-SUNWut41-1.txt http://wiki.sun-rays.org/images/6/67/Patch-SUNWut41-1.txt
wget -O /tmp/srss/Patch-SUNWutref.txt http://wiki.sun-rays.org/images/1/15/Patch-SUNWutref.txt
wget -O /tmp/srss/Patch-SUNWkio.txt http://wiki.sun-rays.org/images/f/ff/Patch-SUNWkio.txt
cd /opt
patch -p0 # Interface, for example eth1
/opt/SUNWut/sbin/utconfig
- if asked during utconfig make sure to answer /usr/share/tomcat5.5 for the tomcat path
- everything default EXCEPT tomcat path and remote server admin on ON

18) check dhcpd.conf (if you want DHCP)
make sure that /etc/dhcp3/dhcpd.conf contains the include statements for your added subnet/interface
try: /etc/init.d/dhcp3-server restart
If its NOT working, or you get problems with permissions, build your own dhcpd.conf a new! ;-):

mv /etc/dhcpd/dhcpd.conf /etc/dhcpd/dhcpd.bak
cat /etc/opt/SUNWut/net/dhcp/SunRay-options > /etc/dhcp3/dhcpd.conf
cat /etc/opt/SUNWut/net/dhcp/SunRay-interface-eth1 >> /etc/dhcp3/dhcpd.conf

19) patch and build the required kernel modules
a) prepare for kernel module building:
m-a -t prepare

b) download and apply patches
wget -O /tmp/utadem.patch http://wiki.sun-rays.org/images/0/0c/Utadem-4.1-50.nww.patch.txt
wget -O /tmp/utio.patch http://wiki.sun-rays.org/images/5/5d/Utio-4.1-50.nww.patch.txt
wget -O /tmp/utdisk.patch http://wiki.sun-rays.org/images/e/e0/Utdisk-4.1-50.nww.patch.txt
cd /usr/src/SUNWut
patch -p0 ${PULSECONF}

# create asoundrc for pulseaudio redirection
ASOUNDRC=${HOME}/.asoundrc
echo -n > ${ASOUNDRC}
echo "pcm.!default { " >> ${ASOUNDRC}
echo " type pulse" >> ${ASOUNDRC}
echo "}" >> ${ASOUNDRC}
echo "ctl.!default { " >> ${ASOUNDRC}
echo " type pulse" >> ${ASOUNDRC}
echo "}" >> ${ASOUNDRC}

24) link tftpd server directory
ln -s /tftpboot /var/lib

25) manually fix the Xsetup file
It seems that the /etc/opt/SUNWut/gdm/SunRayInit/helpers/Xsetup in SRSS 4.1 contains a minor,
but important bug which prevents commands like 'utwho' and 'utfwload' from working properly on some Linux distros.
To fix this script you have to manually edit it and make sure that the very first like contain the
exclamation mark (!) as shown here:

#!/bin/ksh -p

26) manually fix the finishsession file
It seems that the /opt/SUNWkio/lib/finishsession file in SRSS 4.1 contains a minor bug which prevents the
POST-execution scripts from being executed. To fix this script you have to manually edit it and make sure
that the line with the if check for "$theSessionUserDynDir" actually contains the "$" sign.

if [ -d "$theSessionUserDynDir" ]

27) finally you can start the SRSS by issuing the following commands
/etc/init.d/gdm restart
/etc/init.d/zsunray-init stop
/etc/init.d/zsunray-init start

28) get server "really" online
/opt/SUNWut/sbin/utadm -l # prints network config
/opt/SUNWut/sbin/utadm -L on # gets server online
/opt/SUNWut/sbin/utrestart # needed to get server online

29) reboot?
Can always help! You know the saying "Linux: BE ROOT! Microsoft: RE-BOOT!" ? 😉

NOTES:
17) OLD config with subnet, you should NOT use that:
/opt/SUNWut/sbin/utadm -A # Subnet for example 192.168.2.0

17) utadm working example:
/opt/SUNWut/sbin/utadm -a eth1
### Configuring /etc/nsswitch.conf
### Configuring Service information for Sun Ray
### configuring eth1 interface at subnet 192.168.128.0
Selected values for interface "eth1"
host address: 192.168.128.1
net mask: 255.255.255.0
net address: 192.168.128.0
host name: SunRayServer-eth1
net name: SunRay-eth1
first unit address: 192.168.128.16
last unit address: 192.168.128.240
auth server list: 192.168.128.1
firmware server: 192.168.128.1
router: 192.168.128.1
Accept as is? ([Y]/N): Y
### successfully setup "/etc/opt/SUNWut/net/hostname.eth1" file
Warning: IP address "192.168.128.1" appears in "/etc/hosts" with another hostname, fix? ([Y]/N): Y
### successfully setup "/etc/hosts" file
### successfully setup "/etc/opt/SUNWut/net/netmasks" file
### successfully setup "/etc/networks" file
### finished install of "eth1" interface
### Configuring firmware version for Sun Ray
All the units served by "SunRayServer" on the 192.168.128.0
network interface, running firmware other than version
"4.1_50_2008.09.25.12.37" will be upgraded at their next power-on.

### Configuring Sun Ray Logging Functions

DHCP is not currently running, should I start it? ([Y]/N): Y
### Error: unable to start dhcp services.
Please restart dhcp manually after utadm has completed.

17) working utadm example:
Configure Sun Ray Web Administration? ([y]/n)? y
Enter Apache Tomcat installation directory [/opt/apache-tomcat]: /usr/share/tomcat5.5
Enter HTTP port number [1660]: 1660
Enable secure connections? ([y]/n)? y
Enter HTTPS port number [1661]: 1661
Enter Tomcat process username [utwww]: utwww
Enable remote server administration? (y/[n])? y
Configure Sun Ray Kiosk Mode? (y/[n])? n
Configure this server for a failover group? (y/[n])? n

Update 139550-02 and 139727-01

1) download patches
cd /tmp
.... (download the patch update for the core package from [2]) http://sunsolve.sun.com/pdownload.do?target=139550-02&method=h
.... (download the uttsc update package from [3] http://sunsolve.sun.com/pdownload.do?target=139727-01&method=h
unzip 139550-02.zip
unzip 139727-01.zip

2) convert
find 139550-02 139727-01 -name "SUNW*i386.rpm" -exec alien -d {} \;

3) install
find . -name "sunw*deb" -exec dpkg -i {} \;

4) apply patches
wget -O /tmp/Patch-patch.txt http://wiki.sun-rays.org/images/6/6f/Patch-patch-139550-02.txt
wget -O /tmp/Patch-SUNWutref.txt http://wiki.sun-rays.org/images/1/15/Patch-SUNWutref.txt
cd /opt/
patch -p0 Update 139550-01

1) download patches
cd /tmp
.... (download the patch update from http://sunsolve.sun.com/pdownload.do?target=139550-01&method=h )
unzip 139550-01.zip

2) convert
find 139550-01 -name "SUNW*i386.rpm" -exec alien -d {} \;

3) install
find . -name "sunw*deb" -exec dpkg -i {} \;

4) apply patches
wget -O /tmp/Patch-patch.txt http://wiki.sun-rays.org/images/5/51/Patch-patch.txt
wget -O /tmp/Patch-SUNWutref.txt http://wiki.sun-rays.org/images/1/15/Patch-SUNWutref.txt
cd /opt/
sudo patch -p0 Installing VMWare Tools
http://chrysaor.info/?page=faq#ubuntu904_tools

Extract of the Weblog mentioned above:

Open a terminal window and execute the following command to download the script:
wget http://chrysaor.info/scripts/ubuntu904vmtools.sh
Now run the script that installs VMware Tools (Warning: it will download some files):
sudo bash ./ubuntu904vmtools.sh
When the script promps for answers, just hit Enter as defaults are OK. If you're using VMware Fusion, Server or Workstation, reboot the virtual machine and you are done.

Cleaning up

Shrink VMware Image Files on Linux Appliances
Posted in: Unix \ Linux, Vmware by Nico Maas on July 16, 2009

Works only with dynamic HDDs!

1. Backup!
2. Remove old / unused Packages
3. Remove downloaded Packages: sudo apt-get clean, Remove only old downloaded Packages: sudo apt-get autoclean
4. “ZeroOut” unused Space: cat /dev/zero > zero.dat ; sync ; sleep 1 ; sync ; rm zero.dat
5. Under GUI: “sudo vmware-toolbox” and use shrink on “/”
6. Under VIClient: Defrag

Additional:
Using Cisco Vlans and Trunks on VMWare ESXi 3.5/4

Posted in: Cisco, Network, Vmware by Nico Maas on July 24, 2009

Do you desperatly need to connect an real pc to just one VM? No problem! Here we go! All we need is an Switch with vlan Trunking. I used an Cisco c3560-poe8 for this, as it is my main work switch.

So you just need these snipets on the switch side:
( Need to do this in enable mode and conf -t! )

This is going to activate ip dhcp snooping globaly on the switch
(which means only marked ports are allowed to answer an dhcp request, thats important!)
ip dhcp snooping vlan 1-4094
no ip dhcp snooping information option
ip dhcp snooping

these are the vlans, one main, one “test” for the vm
vlan 1
name main
vlan 999
name test

normal client port
interface FastEthernet0/1
switchport access vlan 1
spanning-tree portfast

vm client port which does access vlan 999
interface FastEthernet0/3
switchport access vlan 999
spanning-tree portfast

vm server port, which does access normal vlan 1, and does trunk the rest
” ip dhcp snooping trust” means, that this port is allowed to answer dhcp requests
interface FastEthernet0/7
switchport trunk encapsulation dot1q
switchport trunk native vlan 1
switchport trunk allowed vlan 1,999
switchport mode trunk
ip dhcp snooping trust
end

Thats it!
Only thing you need to do on the vm machine is to start vi\vsphere client, go to configuration, network, create an new port group and insert the nic of the vmware machine you want to use on the switch port (here 3 on the c3560) – and set the port groups vlan id to 999. ( In my config, the eth0 is the "main" NIC and does do the normal Network Connection, eth1 is the "SUN" Port as configured above in the SRSS Part, so get the eth1 (Second NIC) into the vlan 999!)

And then, you can do pxe, dhcp, sunray, and allll you want!

So, thats it finally!
A REALLY BIG Thank you to all the authors of the howtos, guides, etc mentioned and unmentioned for helping me out. Without you, this would have been absoultly impossible! Thank you!!!

NOTES:
USB Mount:
/tmp/SUNWut/sessions/11/unit/dev/dsk/disk1 /usb