[ESXi 3.5] Dell Optiplex G620 ESXi 3.5 U5 & Problems with Ubuntu 9.10 and Vmware Tools

So, we happend to get an new ESXi 3.5 Server, using an Dell Optiplex G620 for that.

To install ESXi 3.5 U5 onto that Desktop Machine, you NEED to upgrade to Bios A11 and Shutdown CPU Limit ID - and do the Install in SATA Normal Mode (not Compability!). You also need to use the Tipps to install to an IDE Drive (so changing TYPE_IDE to TYPE_ISCSI in the TargetFilter.py) - than it will work flawlessly... (As long as you get the Bios updated, we had the "orignial" A01 Bios and it refused to use an Boot CD for the Update (did load but then always did disable Keyboard - you couldn't enter anything...). We solved the Problem by using an REAL Floppy Disk... Yeah, was hard to get one. That worked! Ah and by the way, the ESXi install did load then, but the Keyboard got Stuck again - we plugged in an USB Keyboard and that one worked, the PS2 didn't wanted to.. well, it always an Adventure setting up ESXi on non-listed Hardware - especially with Dell Bios ;-)...

So - the other Problem is the new and very cool Ubuntu 9.10 - which we did install on the ESXi with latest Software Upgraded. Both Ubuntu 9.10 and ESXi 3.5 U5 (and latest Update by Infrastructure Update Client...). So Problem was: You installed everything, installed VMWare Tools and everything worked - rebooted and your Network was fried... Actually non DNS Lookup did work at all - and everything else neither. DHCP and such worked but it looked like something on the "Hardware" (lol?) / Kernel Level screwed up.

My Co Worker Sebastian came up with one Post, giving an Solution to the Problem:

Unplug the Network from your Ubuntu (by going into the Infrastructure Client, choose Settings of the Machine, choose the NICs and unklick both "Connected" Buttons, press Enter)

sudo rmmod pcnet32
sudo rmmod vmxnet
sudo modprobe vmxnet

Replug the Network

And now it works again!

.....until the next reboot.... T_T'''... >.<'

So.. no final solution here but NOT installing VMWare Tools.

And thats my recommandation after the 5th reinstall of Ubuntu.

Will try again on the next Ubuntu and ESXi Upgrade.

Remote Desktop with XDMCP on Ubuntu 9.10

To access the unsecured(!) Remote Desktop of an Ubuntu 9.10 installation, you need following:

First, install the openssh-server:

sudo apt-get install openssh-server

Then, you need to enable the XDMCP Server.

That became a bit tricky on that Installation, as the "Point 'n Click" enabling has been removed.

Dunno why. So, thats how it works. First we copy over the "empty" custom.conf for gdm:

sudo cp /usr/share/doc/gdm/examples/custom.conf /etc/gdm/

Then we edit it:

sudo vi /etc/gdm/custom.conf

It should look like this in the end:

# GDM configuration storage

[xdmcp]
Enable=true
DisplaysPerHost=2

[chooser]

[security]

[debug]

After that, we need to restart gdm:

sudo restart gdm

And thats it, the XDMCP is running. To access it on Windows i.E., you have to download Xming ( http://sourceforge.net/projects/xming/ )

Download and install the Windows Client, start the XLaunch Tool. Choose One window, Next, Open Session via XDMCP, Next, Enter the IP of the Ubuntu Server under "Connect to Host" and Press Next, Press Next, Save the Config were you want to have it and Finish.

Thats it, an X Window with the Login to your Server will open. Please bare in mind that this XDMCP Session is NOT encrypted. You should Tunnel it via SSH...

// Big Parts were taken from http://www.peppertop.com/blog/?p=690

SSH Tunneling

One of the most important things by working in "dangerous" Networking Enviroments is protection.

And by that I don't mean the usual (and important!) Anti Virus, Anti Malware and Firewall Software, but Traffic Tunneling, meaning VPN or SSH.

SSH is the secure equivalent to the good old (and Plaintext transmitted) Telnet. And its also more powerful: Its use is not limited to remote Control, but can also provide an secured Datatunnel through which all your Traffic to your Remote Location (i.e. an Mysql Database, Web- or Mailserver or the Web itself) is tunneld - and encrypted. Giving therefore little to no chance to "Wiresharkes" and other Cable Tappers or Span Users.

So lets go:

1. Setting up the SSH Server
Setting up an ssh Server is as simple as:
apt-get install openssh-server
if you're running Debian or Ubuntu.

Optional you can configure that the "root" Account
won't be able to access via ssh and you can configure that
Plaintext Passwords aren't allowed. We will go for an Keybased Setup here,
but I would recommend not shutting down this Plaintext Password Authentification
if you can't access the machine physically easily (as the Certifactes are only valid
for one year...).

2. Configuring the SSH Server
vi /etc/ssh/sshd_config

- change Port to 18000
Port 18000
// Thats an must!

- deactivate root access
PermitRootLogin yes
// Thats optional, it does NOT allow your root Account to login via SSH.
// Only set that if you know what you're doing!

- deactivate password login
PasswordAuthentication no
// Thats optional as well, you can set that after this whole thing,
// as you have working SSH Key Authentification - but beware,
// you won't be able to login via an Password then!
// ( And that will hurt if your Keys are expired and don't work anymore... )

3. Configure Router (NAT and Firewall) to Allow Access to your SSH Server.
Use Dynamic DNS (i.E. DynDNS.org) to get an Dynamic DNS Adress.
( Means that an adress like myserver.dyndns.org will always point to
your dynamically changing IP Adress of your Router. Most Routers have an
DynDNS Client built in, so they update the DynDNS Account on every IP Change -
look it up in the Handbook / Config Menu)

4. Setting up an SSH User with Restricted Shell Access
sudo apt-get install rssh
// Installs the restricted shell
sudo useradd tunnel -m -s /usr/bin/rssh
// Creates an User named tunnel with the Restricted Shell
sudo passwd tunnel
// Enter the Password you want for the User

5. Setting up Squid HTTP Proxy
sudo apt-get install squid

6. Creating the Connection using Putty and Setting up the Clients
Download the Putty installer from
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
and install. Then open Putty:

Session -> Hostname and Port: Enter your DynDNS Adress and the Port you chose for SSH
Connection -> Enable TCP Keepalives
Connection -> SSH -> Don't start a shell or command at all
Connection -> SSH -> Enable compression
Connection -> SSH -> Tunnels: Source Port you can choose i.E. 20000
// Source Port is the Port the Tunnel will end on your "Client PC"
Connection -> SSH -> Tunnels: Destination Port localhost:3128
// Destination Port is in that Case the Server (localhost) and Port 3128
// which is the Squid Proxy. But it could also be something like
// IPofyourRouter:21 to forward the Telnet of your Router to Port 20000 on
// the Remote PC, or IporNameofyourHomePc:3389 to forward the Windows
// Remote Desktop - or anything else. You would then connect with the
// Remote Desktop Tool to "localhost:20000" to Access your PC at Home.
Session -> Press Save and Save the Session
Session -> Press Open and Enter your Login, i.E. tunnel and password

You won't see anything as it stays open and "nothing happens".

Go to your Internet Explorer \ Firefox and enter as Proxy localhost, Port 20000

Internet Explorer:
Extras, Internetoptions, Lan Settings, Choose Proxy Server for Lan
Enter localhost, Port 20000

Firefox:
Extras, Settings, Advanced, Network, Settings
Manual Proxy Configuration, HTTP Proxy: localhost, Port 20000
For all Protocols

And now you'll be able to surf the Web Securely from everywhere through your
secured Tunnel!

WARNING: ONLY the Traffic is secured. Your DNS Lookups STILL go to your local
DNS Server. So i.e. the Local DNS Admin can see that you were surfing on
i.e. Google, Facebook or so - but can't see what you did transmit there.
To change that and to do DNS also tunneled via SSH do this:.

Internet Explorer:
don't know, isn't working

Firefox:
// Enter in the URL Bar:
about:config
// Look for this string and set it to "true"
network.proxy.socks_remote_dns

Only one thing to do left:
Set Keybased Authentification.
Keybased Authentification has two main Advantages:
a) You can use it allow scripts to identify themselfes via the key and use ssh
b) Its more secure as the Key does check its Serverpart and tells you if you're
connection has been redirected or intercepted. Its the way to go.

Creating keys:
su
// Enter password for root Access
ssh-keygen -t rsa -b 2048
Just "enter" through everything

Installing keys:
cd /home/tunnel/
mkdir .ssh
chmod 700 .ssh/
cd .ssh/
touch authorized_keys
cat ~/.ssh/id_rsa.pub > authorized_keys
chmod 600 authorized_keys
cd ..
chmod 700 .ssh/
chown tunnel -R .ssh/
exit

Download the key id_rsa in /root/.ssh/ via WinSCP to your PC
Startup puttygen which you did gain with the Putty installer.
Load the id_rsa in Putty and press on "Save Private Key"

Using key based Authentification with Putty:
Open Putty and load your Preset
Connection -> SSH -> Auth
And use the "Private Key File for Authentification" to point to your previously
set Private Key (wheter encrypted or not isn't important at this Point).
Go again to Session and Save again. Press Open.
You'll be asked to enter your Username and Passphrase (if you got one).
If you want to really automate that, you can even specify your Username in
Putty under SSH -> Connection -> Data "Auto Login Name"

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)

Repair Mac G4 Powersupply

Most old G4s PowerPCs have Problems with the Elkos of their Powersupply.
If you're a bit into Soldering, you can quite easily exchange these and get it working again.
Sadly, it didn't work out for me, maybe something different wrong...

BUT - for the sake of helping you out, I made a Picture with the Specs of the Elkos that normally "fail".
Red are the ones which actually were really dead as I measured the old ones (i.e. the 25V 100microF had only 68microF left),
Green were the ones that "still worked" / were in quite good condition.

But thats only from one Powersupply, on yours it might look different.

But anyway, good luck!

Mac OS X Install Problems

Last time I wanted to install Mac OS X Leopard on an Mac and had the problem of an DVD that was always reported as "defect" - It could boot but not install.
So, I came around an quite easy solution:
Installing Mac OS X Tiger - and then Updating!
Seemd that my DVD is somehow only scratched where the "Complete Reinstall" Files are.

Ah, and by the way:
I had for ages the Problem of Warcraft 3 etc which didn't wanted to run under Mac OS X (both Tiger and Leopard) in the latest Version.
It always crashed as I choose "Option" in Game.
Solution is quite easy:
Go to ~/Library/Preferences and erase the com.blizzard.WarcraftIII.24 and Warcraft III Preferences Files.
Thats it!

UnStuck CD and the Blessing called Firewire Mode

Hi there.
So know that I started to life in the more recent Mac World (through an donated G4, thanks a lot! ^.^), I also feel the need to get a bit more to grips with this little fella.
The most basic stuff I did need in recent time:

Eject CD / DVD if "stuck":
1. Through Open Firmware
Press ALT + Apple + O + F after the beep as you turned the Mac on.
A white command line will apear. Enter eject cd and press enter.
You can do this again to close the drive.
( And mac-boot if you want to boot or shutdown )

2. Through Comamnd Line \ Terminal
drutil list shows the installed CD Drives.
drutil eject NUMBER does eject the CD from the numbered drive.

Target Disk Mode \ Firewire:
If you got two Macs, the most impressive thing is the Target Mode.
In Target Mode, you connect two Macs via Firewire Cable, start your Target Mac and press T as long as some nice Firewire Logo appears, and start the second One, with, for example, ALT Key pressed. This will give you an possibility to choose your Bootvolume. So, as Target Mode is active and the Macs are connected, also the DVD Drive and Harddisk from the Target Mac does show up! You can even boot his Mac OS! Cool. Ain't it? Thats useful in cases of Harddrive Crash or for example, If you want to use the other Macs DVD Drive if your other Macs is dead or not existing (Mac Book Air?).
Also you could set the "to be installed" Mac in Target Mode, boot into Mac OS install and install on the Target Macs Harddrive. So, you got some options, use them! ^^

Ah.. by the way, as this site figures out ( http://lowendmac.com/osx/leopard/unsupported.html ) you can also install Mac OS X 10.5.1 Leopard on an old 400 MhZ G4 by starting it in Target Mode and install Mac OS X onto its Harddrive! Cool!

Firefox and Thunderbird Addons Special

Some little Special about my most beloved and used Addons for Firefox and Thunderbird!

Firefox:

Adblock:
Adblock is one of the most well known and widely used tools. It does what it says: Blocking Ads, Popups and such.

Bugmenot:
Bugmenot is an integration of the Website www.bugmenot.com into the Firefox.
Bugmenot is an service on which you can add own login data to Forums and Websites which everyone else can use to login.
So, you don't need to register on every website to gain access.

Compact Menu 2:
Duplicates the menubar on the toolbar as a menu of menus.
Great for Eee PCs!

Download Statusbar:
Shows up a little bar in the statusbar instead of the big and unhandy "Downloads" thingy popping up. Really nice and better looking.

deviantAnywhere:
Does check up your Deviantart Account regularly.

Fireftp:
An fully fledged FTP Client. This saves you from installin another WSFTP or CuteFTP or whatelse.

LiveHTTPHeaders:
Useful if you develop shell scripts which use curl to login.

ProxyButton:
Does quckly turn proxy on and off.
Hints:
To install you need to turn check security off.
Enter about:config and add an Boolean Key "extensions.checkUpdateSecurity" with 0
Then install: http://downloads.mozdev.org/proxybutton/proxybutton-0.3.1.xpi
To use the proxy tool on startup, create a link to firefox.exe and end it with
-proxy 1 (to enable proxy) or -proxy 0 (to disable proxy)
http://proxybutton.mozdev.org/

TabMixPlus:
Does improve TabBrowsing with Firefox.

WOT:
The Web of Trust. Now thats important!
This cool tool checks up the website you're visting wheter theres some "un-nice" entry about it in its database.
Entries to this Database can be submitted after registration at WOT.
So you can acctually warn other Users from Phising and untrusthworthly shops and so on.
Should be installed on every Firefox and can also be configured as child-protection.

Xmarks:
Formerly Foxmarks is an Tool which can synchronize all of your Firefox Bookmarks from Home, Work, Laptop - etc.
You'll never ever come to the point of "Damn, I only saved this favorite at Work..".
It can also be configured that for example your Work PC does only get an special "Work" Folder, while the rest of the clients are getting the full data.
Additionally, Xmarks can synchronize the Password Database of Firefox.
Well, thats I thing I haven't tried and won't. Use KeePass to store and carry your Passwords securely!

Thunderbird

ContactsSidebar:
Does add some sidebar to your Thunderbird which contains the contacts like in Outlook Express.

Lightning:
An huge Calendar Application. Powerful!

MoreFunctionsforAdressbook:
Does add fields for things like Birthdate into the Adressbook.
https://nic-nac-project.org/~kaosmos/morecols-en.html

Provider for Googlecalender:
Does include your Calender at your Googleaccount. Very useful if used with Lightning

Thunderbirthday:
Does create an Calendar from the Birthday Entries from your MoreFunctionsforAdressbook enabled Adressbook - for Lightning.

Backup Data, Website and Mysql

Well, If it comes down to a simple Homenetwork - and a PC crash, normal situation is following: You're mostly dead in the water.
Why?
Because most ppl don't backup their data on a regular basis or do it wrong.
Actually, there are 3 kinds of pepole:
a) The person who doesn't backup
b) The person who *thinks* does a backup - but does it wrong
c) The person who does a backup and stops after a while because he is too lazy... and experiences a crash...

Well, I myself count am Type c) - I did backup for example my E-Mails in Outlook Express - but stopped after a while, and a year later I got a really big crash.
So, today, I use Thunderbird ( 😉 Thats plus, ain't it? ) and I do backup at least weekly - or on an "ohmygodthatcouldturnoutbadithinkishoulddoanbackupNOW!" basis.
And because I got three computers already in my network which does need backup and updates on an daily basis, I built myself an little nice Dual Atom based Server.

But thats another story.

So, here the best tools for backing up your data and my personal notices to that, have fun and take care!

Databackup:
Rsync
Rsync is the most widely used backup tool in the unix world. And it does also come in an windows flavor!
The best thing about rsync? It does only transfer file changes, and not a stupid "folder-to-folder" copy.
Rsync is a client-server based tool. So the best idea is to install the server on an "real" server with some nice RAID5 System,
and let the client do the work on for example your windows xp machine. Oh, by the way: There is no problem in having
an unix/linux rsync server and an windows xp client. Works out all the way. But thats not the only thing you can do:
You can also install the server and client on the same pc and use it to make backups from your usb stick to your harddrive (for example).
Rsync: http://samba.anu.edu.au/rsync/
DeltaCopy (Windows Rsync with Gui): http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp

FTP / Webbackup:
FtpSync
If you're the poor kind of person which does host its Website with an "you-get-no-shell" hoster like I am, you need to backup your Website in another fashion as rsync:
FTPSync seems to be the perfect solution because it only transfers changed files, it does reduces the amount of "for backup used bandwith" by a big deal. (I myself host about 600 mb now on files, pictures and other things - and this little guy is really an helper) FTPSync does run on Windows 2000 and above. It can use scripts / ini Files which allow FTP-To-FTP Sync, as well as FTP-To-File Sync. So, also useful if you build up your Website on your Homeserver and want to commit the changes.
FtpSync: http://www.cyberkiko.com/category/FTPSync.aspx

Mysql Backup:
Mysqldumper and phpMyBackupPro
As already mentioned, no shell access is a hard thing for an Website Administrator. Especially when it comes to Mysql Backups - called Dumps. Well, yes you can use phpMyAdmin to Dump these Files - but there is a maximum php execution time which does sometimes corrupts your backup - in case the database has grown too big.
In this case there are two tools which will help you: Mysqldumper and phpMyBackupPro. First: They both do backup and restore. That said, what are the main differences? a) Mysqldumper has the advatage of using multiple mysql logins, as given away by most hosters (you get for example 3 databases, and everyone got another login name and password - its more secure and you can use it and share it with other projects). b) phpMyBackupPro is easier to configure in terms of cronjobs, so automatic backups as Mysqldumper. Which of these tools you use is your choice, and depends on the features you need.
Mysqldumper: http://www.mysqldumper.de/
phpMyBackupPro: http://www.phpmybackuppro.net/

Tipp: You should use the Mysql Backup Tools in conjunction with FTPSync to Backup your complete account.