Link to home
Start Free TrialLog in
Avatar of rtod2
rtod2Flag for United States of America

asked on

portable xcygwin

I'm having trouble portabilizing this application.  I have taken steps to install many of the x11 and net packages using the setup.exe file from x.cygwin.com.  I am under the impression that one only needs to copy the files to a thumb drive and then simply run the cygwin.bat from there.  

I decided to install to the thumb drive instead via the setup.exe using the path t:\ptapps\cygwin because I ran into problems without doing that.  So now when I click cygwin.bat, I get the correct prompt in nice colorized text with my machine name in it.  

If I take the thumb drive to another machine and keep the same path t:\ptapps\cygwin, I still have problems and get the message "could not create /tmp" and the prompt is bash-3.2$ without the machine name.  There are no permissions issues that I could see that would be preventing that.

I thought all the setup did was extract the files to a folder.  If that is correct, then why can I not get a colorized text window with the same type of prompt that I received on the PC used to download it?
Avatar of gheist
gheist
Flag of Belgium image

Xming runs on U3 or from anywhere.
Avatar of rtod2

ASKER

Why do I get the following?

If I take the thumb drive to another machine and keep the same path t:\ptapps\cygwin, I still have problems and get the message "could not create /tmp" and the prompt is bash-3.2$ without the machine name.  There are no permissions issues that I could see that would be preventing that.
Avatar of rtod2

ASKER

so the question is how come the portable app "thumb" screenshot isn't being treated the same as in the "nothumb" screenshot?
Xming is Xorg port to Windows.
It supports thumb drives - like storing config files in application directory.
Also - cygwin needs "drive mappings" for things to appear outside /cygdrive - in registry.
That is why you cannot have two cygwin versions from to cygwin-using apps on same system.
Avatar of rtod2

ASKER

My linux experience is limited at best.

What can I do to prevent the issue I am having with the thumb drive application?
Avatar of rtod2

ASKER

My question was about cygwin and I was actually looking for a specific answer as opposed to a link
You cannot have any cygwin on thumb drive. Cygwin uses system areas of registry, which means that only one instance of cygwin can be emulated / on same machine.
Since you need X server to display things I would recommend Xming. Installation of Xming on portable devices like U3 described in link I posted.
Avatar of rtod2

ASKER

I've been told by more than one source, that cygwin will run from anywhere.
From: http://emboss.sourceforge.net/download/cygwin.html
registry If you decide to install a fresh copy then be sure to delete any cygwin registry entries after deleting the cygwin directory: see (1) DELETING CYGWIN below, and the attached registry fixing script (cygtidy.reg). Your cygwin installation directory should be around 1.5 - 2Gb in size.

Between the lines: YOU CANNOT HAVE TWO CYGWIN DIRECTORIES
There are also problems running Cygwin on Windows BETA and TRIAL versions, and it causes problems with some system services when cygwin service manager is installed.

Since you do not have Linux experience I would suggest packaging Xming - at least there are references it works portable way.
Avatar of rtod2

ASKER

OK, I have a portable xming.  What do I need to do to get the gnome or kde dashboard to work with it?
Avatar of rtod2

ASKER

I would actually prefer to use xming but the reason that I went to cygwin was to get past the gui login screen.  I think you are correct in that it is better suited for portability.

Using xlaunch.exe, and the xdmcp option, I am able to get the graphical login screen.  On logging in, the screen goes black but does give me a regular cursor.  It appears that it logged in but could not display back.

When using cygwin (xwin.exe -query ip), I am able to login and can see the chosen default Gnome dashboard just fine.

If I can get past this, I think I would rather use xming but so far cygwin has been the only thing that has worked from there.

Portability is my largest concern.
From back of stables of Xming:
Connect to host
Enables XDMCP and sends Query UDP packets to the specified host.

Since portability is priority - cygwin is NOT a valid option.
Avatar of rtod2

ASKER

If you can tell me how to run Xming, I would love to use it.  I can't get an xdmcp window up in xming though where I can with xcygwin.  The folks over there tell me that it is fully capable of portability.

Please give me some specifics of how to get past the black screen in xming.
Xlauncher from Xming does all XDMCP stuff with Windows-native look.
Avatar of rtod2

ASKER

that's fantastic gheist,
so xming is what I want, correct?

I am getting a black window when I use it.  How do I resolve that?
Have you installed Xming fonts?
Do you use Xdmcp query? Or SSH? or Telnet?
Avatar of Kerem ERSOY
Kerem ERSOY

Hi,

It is possible to use Cygwin portatable.

Here's the link for a detailed how-to.

- the trick here is the author has a modified profile logon string,
- When you insert your memory stick you'll need to run X.bat after logon (it will handle the Registry)
- Before you pull your USB memory stick off the plug you need to run uninxtall.bat (which will handle th registry)

So far as you follow these instructions you'll have a portable  CygWin. I am more inclined to use CygWin because it is largely supported and contains neraly all programs that are available Open Source. It is very close to a Linux Distro.

Cheers,
K.

Avatar of rtod2

ASKER

um what link doc?
who's got that link?   :)

Thanks Kereme, looks like what you are talking about may have some real promise.  Please send link when you can.
Avatar of rtod2

ASKER

KeremeE.  I'd love to have the link :)
ASKER CERTIFIED SOLUTION
Avatar of Kerem ERSOY
Kerem ERSOY

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rtod2

ASKER

OUTSTANDING