« Paros Web Proxy on Ubuntu 8.04 LTS | Main | WPA2 Enterprise with 802.1x / EAP-TTLS »

07 October 2008

Comments

t

When I attempt this, I get garbled video in the console window.. and an error regarding RANDR..

Xlib: extension "RANDR" missing on display "localhost:10.0".

any clue?

Edwin van Nuil

Are you using dual display (Xinerama)? And Ubuntu 8.10 ? There seems to be a bug in this combination (https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules-2.6.22/+bug/157319).

t

I am using Ubuntu 8.10 -- but I'm using it in VMware, not using RANDR or Xinerama... I'll hafta try another distro, I don't usually use Ubuntu anyway.

Seb

I get a problem with this:

Failed to determine language-specific keyboard mapping. Please see the Web page "http://vmware.com/info?id=10" for more information.
Failed to initialize mouse-keyboard-screen control.

It's a shame there is no native OS X Console already. I'm using 8.04.1 server edition. Any thoughts?

Tim Wood

I added a little feedback and some configuration variables at the top. I found that it wanted the IP of the box running vmware server in place of the localhost IP (127.0.0.1). Assuming that's true generally, people should be able to just fill out the variables and have fun ... err do work.


#! /bin/bash

# ConnectToVMWare.sh
#
# A simple slightly configurable script to allow Mac Users to connect to
# VMWare server without going through vnc/fx/whatever

# From Edwin van Nuil (http://blog.vannuil.com/2008/10/using-vmware-se.html)
# With tweaks by Tim Wood (http://www.datawranglers.com)


SERVERIP=192.168.2.190
VMWAREPORT=8333
SERVERUSER=joeuser
PROFILEID=307utwyx

# We could check for $1 here
# if it's set, use it for SERVERIP
# Ditto $2 as user, $3 as profileid
# To be really fancy, we could use GAWK to split $1
# on : ... if there's a second paramter, use it as VMWAREPORT


echo "Is X11 running? [y|n]"
read X11_RUNNING
if [[ $X11_RUNNING == "n" ]]; then
echo "Start X11 and open this script in X11's xterm"
exit
fi

echo ""
echo "When asked, enter the root vmware password and click connect"
echo "Press return"
echo ""
read cont

ssh -X -f -q $SERVERIP /home/$SERVERUSER/.mozilla/firefox/$PROFILEID.default/extensions/VMwareVMRC@vmware.com/plugins/vmware-vmrc -h "$SERVERIP:$VMWAREPORT"

byteworks

What are the steps to do this:
1) sudo startx
2) ./startVMwareConsole.sh (the script above)

When I do "sudo startx" from one shell and then try to run the script from another shell nothing happens after seeing "Press Return". I tried opening a terminal from the X11 application menu but that causes a PAM error (see below). Any thoughts?

sudo startx
xauth: creating new authority file /Users/SomeUser/.serverauth.492

xinit: Detected Xquartz startup, setting file=X, argv[0]=/Applications/Utilities/X11.app/Contents/MacOS/X11
XQuartz starting:
X.org Release 7.2
X.Org X Server 1.3.0-apple10
Build Date: 20080213
TransformProcessType: Success
font_cache.sh: Scanning user font directories to generate X11 font caches
font_cache.sh: Updating FC cache
meta mod is 4
font_cache.sh: Done
login: PAM Error (line 400): Cannot make/remove an entry for the specified session

The "login: PAM Error" does not appear until I choose Applications -> X11 -> Terminal.

byteworks

I overlooked the obvious. I have VMWare Fusion and a XP image. I just connect to VMWare Server from a browser in XP running on Fusion on OS X. Let's see... that is how many layers?

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.

www.flickr.com
This is a Flickr badge showing public photos and videos from Edwin van Nuil. Make your own badge here.
View my photos at bighugelabs.com

Twitter Updates

    follow me on Twitter

    My Other Accounts

    Digg Flickr LinkedIn MSN Messenger Skype Twitter

    Stats EvN