Cygwin/X and loggin on remote server
I've used cygwin/x to use remote wm and tools for a long time, and I use connection via SSH tunnel since connection between machines are not secured. Now I would like to provide more generic way to login on remote machine, I can do this with startxwin.bat but I want to close initial _local_ xterm used to get login & password prompt after it has fired up session... How can be this done...? -- Jani Tiainen
Re: Cygwin/X and loggin on remote server
Alexander Gottwald wrote: On Thu, 21 Oct 2004, Jani Tiainen wrote: I've used cygwin/x to use remote wm and tools for a long time, and I use connection via SSH tunnel since connection between machines are not secured. Now I would like to provide more generic way to login on remote machine, I can do this with startxwin.bat but I want to close initial _local_ xterm used to get login & password prompt after it has fired up session... How can be this done...? start xterm like this: xterm -e "ssh -f -Y remotehost .xsession && exit" or (simulating xdm login) xterm -e "ssh -f -Y remotehost /etc/X11/xdm/Xsession gnome && exit" instead of "gnome" you can use kde, kde2 or whatever window managers are configured on the system. If you omit the "&& exit" the xterm will stay wow, my bug was that I omited "-f" from ssh switches and "&& exit", I tried & (single) and it always failed with error... =) Now it works. Thank you very much, now I can use my desktop as single click X-terminal. I also tried to run XDM but always got "only root would run" message... -- Jani Tiainen
Re: Cygwin/X and loggin on remote server
Jani Tiainen wrote: Alexander Gottwald wrote: On Thu, 21 Oct 2004, Jani Tiainen wrote: I've used cygwin/x to use remote wm and tools for a long time, and I use connection via SSH tunnel since connection between machines are not secured. Now I would like to provide more generic way to login on remote machine, I can do this with startxwin.bat but I want to close initial _local_ xterm used to get login & password prompt after it has fired up session... How can be this done...? start xterm like this: xterm -e "ssh -f -Y remotehost .xsession && exit" or (simulating xdm login) xterm -e "ssh -f -Y remotehost /etc/X11/xdm/Xsession gnome && exit" instead of "gnome" you can use kde, kde2 or whatever window managers are configured on the system. If you omit the "&& exit" the xterm will stay wow, my bug was that I omited "-f" from ssh switches and "&& exit", I tried & (single) and it always failed with error... =) Now it works. Thank you very much, now I can use my desktop as single click X-terminal. I also tried to run XDM but always got "only root would run" message... Actually this doesn't work. I use following line (using startxwin.bat): run xterm -ms red -fg white -bg black -e "/usr/bin/ssh -f -Y -p 22022 [EMAIL PROTECTED] xterm && exit" But initial xterm window stays, even you can't write anything in it... -- Jani Tiainen
Re: Cygwin/X and loggin on remote server
Jani Tiainen wrote: Jani Tiainen wrote: Alexander Gottwald wrote: On Thu, 21 Oct 2004, Jani Tiainen wrote: I've used cygwin/x to use remote wm and tools for a long time, and I use connection via SSH tunnel since connection between machines are not secured. Now I would like to provide more generic way to login on remote machine, I can do this with startxwin.bat but I want to close initial _local_ xterm used to get login & password prompt after it has fired up session... How can be this done...? start xterm like this: xterm -e "ssh -f -Y remotehost .xsession && exit" or (simulating xdm login) xterm -e "ssh -f -Y remotehost /etc/X11/xdm/Xsession gnome && exit" instead of "gnome" you can use kde, kde2 or whatever window managers are configured on the system. If you omit the "&& exit" the xterm will stay wow, my bug was that I omited "-f" from ssh switches and "&& exit", I tried & (single) and it always failed with error... =) Now it works. Thank you very much, now I can use my desktop as single click X-terminal. I also tried to run XDM but always got "only root would run" message... Actually this doesn't work. I use following line (using startxwin.bat): run xterm -ms red -fg white -bg black -e "/usr/bin/ssh -f -Y -p 22022 [EMAIL PROTECTED] xterm && exit" But initial xterm window stays, even you can't write anything in it... Actually it started to work after I changed to use it script that puts everything in background... Strange is that but now "everything" works as supposed... Well only if I could have nice graphical login to my server... -- Jani Tiainen
Re: Cygwin/X and loggin on remote server
Jani Tiainen wrote: I've used cygwin/x to use remote wm and tools for a long time, and I use connection via SSH tunnel since connection between machines are not secured. Now I would like to provide more generic way to login on remote machine, I can do this with startxwin.bat but I want to close initial _local_ xterm used to get login & password prompt after it has fired up session... How can be this done...? Well let's narrow down this problem... I've following batch file at desktop, that I run by doubleclicking: ---[runxwin.bat begin] @echo off SET DISPLAY=127.0.0.1:0.0 SET CYGWIN_ROOT=d:\cygwin SET PATH=.;%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%PATH% SET XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults SET XCMSDB=/usr/X11R6/lib/X11/Xcms.txt SET XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB SET XNLSPATH=/usr/X11R6/lib/X11/locale if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0 del %CYGWIN_ROOT%\tmp\.X11-unix\X0 :CLEANUP-FINISH if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\tmp\.X11-unix run XWin -fullscreen -clipboard -silent-dup-error run xterm -ms red -fg white -bg black -e "/usr/bin/ssh -f -Y -p 22022 [EMAIL PROTECTED] \~/.xsession && exit" ---[runxwin.bat end]--- at Linux side (Debian Sarge) I have .xsession with following lines: ---[.xsession begin]--- xterm & fcwm4 --daemon exec fxce4-panel ---[.xsession end]--- Now what happens? Initial, local xterm window is shown and I enter mypasswd. This far things work well. Then I have found out two different end situations depending on exit and contents in .xsession : I endup having initial login screen as empty, but sticking on desktop and everything is working Whole SSH tunnel disappeares and I'm left with empty X root.
Re: Cygwin/X and loggin on remote server
Alexander Gottwald wrote: On Fri, 22 Oct 2004, Jani Tiainen wrote: Jani Tiainen wrote: I've used cygwin/x to use remote wm and tools for a long time, and I use connection via SSH tunnel since connection between machines are not secured. Now I would like to provide more generic way to login on remote machine, I can do this with startxwin.bat but I want to close initial _local_ xterm used to get login & password prompt after it has fired up session... How can be this done...? Well let's narrow down this problem... I've tried your batch file and I was even able to start a whole remote gnome desktop and the initial xterm disappeared. Thats my intention too (exception to use xfce) Could this be problem with my .xsession, what should I have content for it..? -- Jani Tiainen
Re: Cygwin/X and loggin on remote server
Alexander Gottwald wrote: Jani Tiainen wrote: Could this be problem with my .xsession, what should I have content for it..? #!/bin/bash exec xfce exit 0 I tried following .xsession: #!/bin/bash exec xterm exit 0 should be sufficient What happens if you start .xsession from the ssh shell. Does it immediatly return or only after you closed xfce Have you tried a different window manager? like fvwm2 or for plain testing xterm. Initial window closes only after I close second xterm window. When starting window manager it doesn't close initial window unless _last_ pipe closes... that mean if I have only xfcwm4 running it will remain visible as long as session lasts. Any other ideas? -- Jani Tiainen
Re: Cygwin/X and loggin on remote server
Alexander Gottwald wrote: Jani Tiainen wrote: Initial window closes only after I close second xterm window. When starting window manager it doesn't close initial window unless _last_ pipe closes... that mean if I have only xfcwm4 running it will remain visible as long as session lasts. I have no idea what causes this. ssh -f also detaches any file descriptors (you could enforce this with ssh -f -n) and should not keep any references which will bash or xterm to stay. Hmm, strange since I can't get this working. Well it's not that big problem but anyways... Which windows version are you using? I always tested on win2k. Windoze 2k + all latest "fixes".
Re: Minimal replacement for Exceed
Boaz Harrosh wrote: [EMAIL PROTECTED] wrote: I want to find a replacement for Hummingbird Exceed. I know that Cygwin includes an X server, but I'm not interested in all of Cygwin. What would be the minimum I'd need to install to be able to run Cygwin/X? In case it matters, I'd like to run the X server with the -multiwindow and -clipboard parameters. Thanks! Amanda Dear Amanda ! I have packed a Wise-Installer with a some-what minimal installation. It uses the windows fonts and this way saves 14M of fonts. It does include a full bash + utils and SSH so it is not as minimal as it can be. The Install.exe is about 12M. I can send you the .exe but you will find that it has some specialized stuff for the purpose it was made. (automatic connection to a Linux application server). I can also send you the files listing, and the wise script, so you can pack your own. Files listing and script would be nice to lookat. Any possiblility to have it online somewhere? -- Jani Tiainen
X11/Xlib.h missing
I tried to install development headers (xorg-x11-devel, version 6.8.1.0-1). When I selected package I only get "nothing to be installed" message. No headers, nothing. Package itself is downloaded to setup directory. -- Jani Tiainen
Re: X11/Xlib.h missing
Alexander Gottwald wrote: On Fri, 12 Nov 2004, Jani Tiainen wrote: I tried to install development headers (xorg-x11-devel, version 6.8.1.0-1). When I selected package I only get "nothing to be installed" message. No headers, nothing. Package itself is downloaded to setup directory. Are you sure you did not selected "Download from Internet" in setup.exe? No. I use "Install from internet". Funny, even reinstall stated that "nothing to install". -- Jani Tiainen
Re: X11/Xlib.h missing
Jani Tiainen wrote: Alexander Gottwald wrote: On Fri, 12 Nov 2004, Jani Tiainen wrote: I tried to install development headers (xorg-x11-devel, version 6.8.1.0-1). When I selected package I only get "nothing to be installed" message. No headers, nothing. Package itself is downloaded to setup directory. Are you sure you did not selected "Download from Internet" in setup.exe? No. I use "Install from internet". Funny, even reinstall stated that "nothing to install". It seems to even unpack package but then again It even did it for "Install from local directory". Don't get it... -- Jani Tiainen
Re: X11/Xlib.h missing
Alexander Gottwald wrote: On Fri, 12 Nov 2004, Jani Tiainen wrote: Jani Tiainen wrote: Alexander Gottwald wrote: On Fri, 12 Nov 2004, Jani Tiainen wrote: I tried to install development headers (xorg-x11-devel, version 6.8.1.0-1). When I selected package I only get "nothing to be installed" message. No headers, nothing. Package itself is downloaded to setup directory. Are you sure you did not selected "Download from Internet" in setup.exe? No. I use "Install from internet". Funny, even reinstall stated that "nothing to install". It seems to even unpack package but then again It even did it for "Install from local directory". Don't get it... The files are usually installed in /usr/X11R6/lib/X11. Please send the output of cygcheck -c and /var/log/setup.log (maybe only the part from the most recent install) as attachment. bye ago Excerpt from last run. You can clearly see that it really does (or at least tries to do) something to package but... nothing happens. /var/log/setup.log: 2004/11/12 13:08:44 Starting cygwin install, version 2.427 2004/11/12 13:08:44 Current Directory: D:\WebDownloads 2004/11/12 13:08:44 Changing gid to Users 2004/11/12 13:08:44 Could not open service McShield for query, start and stop. McAfee may not be installed, or we don't have access. 2004/11/12 13:08:48 source: network install 2004/11/12 13:08:49 root: C:\cygwin binary system 2004/11/12 13:08:49 Selected local directory: D:\WebDownloads 2004/11/12 13:08:50 net: Direct 2004/11/12 13:08:52 site: ftp://ftp.funet.fi/pub/mirrors/cygwin.com/pub/cygwin 2004/11/12 13:09:14 Downloaded D:\WebDownloads/ftp%3a%2f%2fftp.funet.fi%2fpub%2fmirrors%2fcygwin.com%2fpub%2fcygwin/release/X11/xorg-x11-bin-lndir/xorg-x11-bin-lndir-6.8.1.0-1.tar.bz2 2004/11/12 13:09:14 Replacing xorg-x11-devel 2004/11/12 13:09:14 Installing file://D:\WebDownloads/ftp%3a%2f%2fftp.funet.fi%2fpub%2fmirrors%2fcygwin.com%2fpub%2fcygwin/release/X11/xorg-x11-devel/xorg-x11-devel-6.8.1.0-1.tar.bz2 2004/11/12 13:09:14 Installing file://D:\WebDownloads/ftp%3a%2f%2fftp.funet.fi%2fpub%2fmirrors%2fcygwin.com%2fpub%2fcygwin/release/X11/xorg-x11-bin-lndir/xorg-x11-bin-lndir-6.8.1.0-1.tar.bz2 2004/11/12 13:09:14 Visited: 179 nodes out of 530. 2004/11/12 13:09:14 Dependency ordered install: 2004/11/12 13:09:14 libgettextpo0 2004/11/12 13:09:14 libintl1 2004/11/12 13:09:14 texinfo 2004/11/12 13:09:14 _update-info-dir 2004/11/12 13:09:14 base-passwd 2004/11/12 13:09:14 libintl3 2004/11/12 13:09:14 libiconv2 2004/11/12 13:09:14 libintl2 2004/11/12 13:09:14 cygwin 2004/11/12 13:09:14 ash 2004/11/12 13:09:14 glib2-runtime 2004/11/12 13:09:14 glib2 2004/11/12 13:09:14 atk-runtime 2004/11/12 13:09:14 atk 2004/11/12 13:09:14 atk-devel 2004/11/12 13:09:14 m4 2004/11/12 13:09:14 libgdbm3 2004/11/12 13:09:14 libdb4.2 2004/11/12 13:09:14 crypt 2004/11/12 13:09:14 expat 2004/11/12 13:09:14 perl 2004/11/12 13:09:14 mktemp 2004/11/12 13:09:14 autoconf-devel 2004/11/12 13:09:14 autoconf-stable 2004/11/12 13:09:14 autoconf 2004/11/12 13:09:14 automake-devel 2004/11/12 13:09:14 automake-stable 2004/11/12 13:09:14 automake 2004/11/12 13:09:14 terminfo 2004/11/12 13:09:14 libncurses5 2004/11/12 13:09:14 fileutils 2004/11/12 13:09:14 termcap 2004/11/12 13:09:14 bash 2004/11/12 13:09:14 sh-utils 2004/11/12 13:09:14 textutils 2004/11/12 13:09:14 findutils 2004/11/12 13:09:14 sed 2004/11/12 13:09:14 base-files 2004/11/12 13:09:14 binutils 2004/11/12 13:09:14 libbz2_1 2004/11/12 13:09:14 bzip2 2004/11/12 13:09:14 libgdbm4 2004/11/12 13:09:14 cvs 2004/11/12 13:09:14 cygrunsrv 2004/11/12 13:09:14 libpopt0 2004/11/12 13:09:14 cygutils 2004/11/12 13:09:14 gawk 2004/11/12 13:09:14 groff 2004/11/12 13:09:14 gzip 2004/11/12 13:09:14 libpcre0 2004/11/12 13:09:14 less 2004/11/12 13:09:14 libcharset1 2004/11/12 13:09:14 libiconv 2004/11/12 13:09:14 man 2004/11/12 13:09:14 cygwin-doc 2004/11/12 13:09:14 diffutils 2004/11/12 13:09:14 libncurses7 2004/11/12 13:09:14 libreadline5 2004/11/12 13:09:14 zlib 2004/11/12 13:09:14 libxml2 2004/11/12 13:09:14 docbook-xml42 2004/11/12 13:09:14 docbook-xsl 2004/11/12 13:09:14 editrights 2004/11/12 13:09:14 file 2004/11/12 13:09:14 libfreetype26 2004/11/12 13:09:14 freetype2 2004/11/12 13:09:14 libfontconfig1 2004/11/12 13:09:14 fontconfig 2004/11/12 13:09:14 w32api 2004/11/12 13:09:14 mingw-runtime 2004/11/12 13:09:14 gcc-mingw-core 2004/11/12 13:09:14 gcc-core 2004/11/12 13:09:14 gcc-mingw-g++ 2004/11/12 13:09:14 gcc-g++ 2004/11/12 13:09:14 gcc-mingw 2004/11/12 13:09:14 libjpeg62 2004/11/12 13:09:14 libtiff4 2004/11/12 13:09:14 libpng12 2004/11/12 13:09:14 pcre-doc 2004/11/12 13:09:14 libpcre 2004/11/12 13:09:14 pcre 2004/11/12 13:09:14 gettext 2004/11/12 13:09:14 libintl 2004/11/12 13:09:14 tar 2004/11/12 13:09:14 xorg-x11-bin-lndir 2004/11/12 13:09:14 xorg-x11-xwin 2004/11/12 13:09:14 xorg-x11-fnts 2004/11/12 13:09:14 xorg-x11-fenc 2004/11/12 13:09:14 xorg-x11-libs-data 2004/11/12 13:09:14
Re: X11/Xlib.h missing
Alexander Gottwald wrote: On Fri, 12 Nov 2004, Jani Tiainen wrote: Alexander Gottwald wrote: Please send the output of cygcheck -c and /var/log/setup.log (maybe only the part from the most recent install) as attachment. bye ago Excerpt from last run. You can clearly see that it really does (or at least tries to do) something to package but... nothing happens. Hm... The cygcheck output reports xorg-x11-devel is installed and ok (no files are missing). Are files installed in /usr/X11R6/include/X11? No they are not, which is strange. Where those files disappeared..? Is there way to produce more output from setup.exe, so I could see where it tries to put those files...? -- Jani Tiainen
Re: X11/Xlib.h missing
Igor Pechtchanski wrote: On Fri, 12 Nov 2004, Jani Tiainen wrote: Alexander Gottwald wrote: On Fri, 12 Nov 2004, Jani Tiainen wrote: Alexander Gottwald wrote: Please send the output of cygcheck -c and /var/log/setup.log (maybe only the part from the most recent install) as attachment. bye ago Excerpt from last run. You can clearly see that it really does (or at least tries to do) something to package but... nothing happens. Hm... The cygcheck output reports xorg-x11-devel is installed and ok (no files are missing). Are files installed in /usr/X11R6/include/X11? No they are not, which is strange. Where those files disappeared..? Setup's output shows no files written to disk. Is the package corrupted? Did you try another mirror? Package is not corrupted (unless 7zip and MD5 sums are fucked up)... Interesting enough I just did "reinstall" and guess what - it installed. Mystical, very mystical. Might be something to do with autum storms we had here in Finland today.. =) Is there way to produce more output from setup.exe, so I could see where it tries to put those files...? /var/log/setup.log.full (overwritten on every setup run). Well now I clearly see that it installed needed files... -- Jani Tiainen
Re: X11/Xlib.h missing
Christopher Faylor wrote: On Fri, Nov 12, 2004 at 10:13:34AM -0500, Christopher Faylor wrote: On Fri, Nov 12, 2004 at 11:27:51AM +0200, Jani Tiainen wrote: I tried to install development headers (xorg-x11-devel, version 6.8.1.0-1). When I selected package I only get "nothing to be installed" message. No headers, nothing. Package itself is downloaded to setup directory. I repackaged some of the X .tar.bz2 yesterday to potentially work around a problem installing. The options that I used to tar confused setup.exe into thinking that the packages were empty. So, this is consistent with the symptoms of trying to install one of those packages. This should be rectified soon as the new versions of the tar files make it out to all of the mirrors. So, the solution is "try again". Just one more bit of data: I rectified the problem at ~12:30AM EST 2004-10-11 so the new packages should be on most mirrors soon if they are not there already. Apologies for the inconvenience I caused. You should be whipped for a such a (un)practical joke. =) Well good to know that I wasn't imaging since there is lot new to learn with XP and SP2.. But now everything... seems to work. -- Jani Tiainen
Re: CygwinX query
Sivakumar Jayapal - CTD, Chennai. kirjoitti: Hi, Would request to resolve this for me. I want to use Glade in Cygwin/X. Also would like to add opengl support to Glade. Please tell me the procedure. I tried building the latest GTK's and its dependencies on Cygwin/X but failed miserably. I know i am missing something. Please help me out. Why you need "build" those? Most of packages are prebuilt maybe you need to rebuild glade but nothing more. For another build you need all proper tools and specially developement libraries for most packages. Then try again... More output from failed buildprocess would help a lot. BTW, you messasge contained long (2/3 of total length of message), unnecessary disclaimer and top of that it was there TWICE. -- Jani Tiainen
Re: CygwinX query
Alexander Gottwald kirjoitti: On Thu, 3 Feb 2005, Sivakumar Jayapal - CTD, Chennai. wrote: First my apologies for that "unnecessary disclaimer". I have installed Cygwin/X on windows 2000 using the setup.exe from cygwin\x website. "Building" here i meant downloading the latest versions - GTK2+2.6.1, GLib2.6.1, Pango1.8.0, ATK1.9.0, fontconfig2.2.3 and configure, make and make install on these files. I was successful in Configuring but make on Glib2.6.1 gave errors. Is there an X11 version of GLib available? Is there a Glade for Cygwin/X version available. glib and gtk and the dependencies are available as cygwin packages. Also Pango, ATK, fontconfig, glade... and almost all other Gnome 2.6/2.8 libs are available. And glib is not dependent on X11, it's just bunch of funcs/strucs help making portable apps. -- Jani Tiainen