Question

gnome-session error in cygwin over ssh

Asked by: rtod2

I get the gnome-session with no problem but this error happens as well.  Is there any way to resolve it?

http://drop.io/nyiaeyw

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-05-26 at 15:03:49ID24439796
Topics

CYGWIN

,

SSH / Telnet Software

,

CentOS

Participating Experts
1
Points
0
Comments
98

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. cygwin blank after login
    I have cygwin newly installed on a PC to run software on a fedora 5 machine. The problem is that I get the login gui screen, I use it to login as root and then I'm just left looking at a blank background of cygwin X, closing it says there are 5 clients attached to it but I ca...
  2. how to use ssh client of cygwin on windows
    I've installed cygwin's openssh library. i have created a DSA key pair using ssh-keygen with out passphrase to enable automation I copied the pub key to the server on the cygwin shell prompt i was able to start ssh-agent $SHELL ( i see ssh-agent.exe running in the task manag...
  3. PuTTY with Cygwin and SSH Tunnel
    I've setup Cygwin on an WinXP server and configured my router to forward ports 22, 5500, 5800, and 5900. I've then configured PuTTY on a WinXP laptop to connect remotely. PuTTY works when using port 22, the key is downloaded and the login appears in the terminal box. However,...
  4. Gnome Desktop on a Cygwin/X server
    Hi, I have a Sabayon (baded on Gentoo) machine running the Gnome Desktop Environment. I would like to be able to use the linux gnome environment from my windows desktop. I have the Cygwin XWin server set up on my windows machine. Seems to work ok. When it starts it brings u...
  5. CYGWIN to CentOS GDM over ssh or ssh2
    I can get the desktop environment in cygwin using xwin.exe -query ip_address . I think that it is using raw XDMCP. I want to lock down the servers and only use SSH or better SSH2. I understand that "you can tunnel XDMCP 'through' SSH". Do I have that last stateme...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: KeremEPosted on 2009-05-26 at 15:30:51ID: 24478361

I guess your problem there is related to your first problem of getting no xauth data. Please fix that problem first as I've suggested (using ssh -Y instead of ssh -X) and lets check it once more.

There's another problem that your repository for updates are not reachable through internet is it a close system placed on intranet?

Other problem is IPP problem. Do you really need to use IPP prtocol (printing over IP) and bluetooth device attachment with your CentOS?

 

by: rtod2Posted on 2009-05-26 at 15:55:58ID: 24478534

You said, "                Was this comment helpful?                         Yes               No                                 KeremE:             I guess your problem there is related to your first problem of getting no xauth data. Please fix that problem first as I've suggested (using ssh -Y instead of ssh -X) and lets check it once more. "

I'll try your suggestion about resolving the xauth data in the other post by choosing -Y over -X when I get back to work and see if that resolves it.  

You also said "There's another problem that your repository for updates are not reachable through internet is it a close system placed on intranet?"

Yes, it is in the intranet at the company I work for.

You also said "Other problem is IPP problem. Do you really need to use IPP prtocol (printing over IP) and bluetooth device attachment with your CentOS?"

That is interesting.  I will likely set up printers for the CentOS boxes later on but bluetooth is certainly not needed.  Neither is printing at this stage.
"

 

by: KeremEPosted on 2009-05-26 at 16:12:03ID: 24478634

> You also said "There's another problem that your repository for updates are not reachable through
> internet is it a close system placed on intranet?"
>
>Yes, it is in the intranet at the company I work for.

So you'd either allow access to update databases for these systems or you need to place an internal update repository server which will download the patches and make available to your CentOS hosts. We might even need some updates during the solution of the problems you're having.


> You also said "Other problem is IPP problem. Do you really need to use IPP prtocol (printing over IP) and
> bluetooth device attachment with your CentOS?"
>
> That is interesting.  I will likely set up printers for the CentOS boxes later on but bluetooth is certainly not > needed.  Neither is printing at this stage.

Ok then the errors should not bother you. Lets correct the4 xauth thing first. we'll concetrate on these issues later.

 

by: rtod2Posted on 2009-05-26 at 16:16:20ID: 24478649

To correct the xauth thing, you are suggesting ssh ...-Y instead of -X correct?  Does that just suppress the error or resolve it?

 

by: KeremEPosted on 2009-05-26 at 16:22:43ID: 24478678

It allows the xauth in CygWin to communicate with your X server. So it fixes does not suppress.

Excerpt from ssh man pages.

     -Y      Enables trusted X11 forwarding.

 


 

by: rtod2Posted on 2009-05-26 at 16:27:19ID: 24478694

excellent!

 

by: rtod2Posted on 2009-05-26 at 16:49:14ID: 24478826

ssh -Y used which did appear to get past a portion of the error but still get no auth data.  See screenshot

 

by: KeremEPosted on 2009-05-26 at 17:00:53ID: 24478896

Hi

The real problem was Xauth not working. Now it works. As you would notice it is a warning. If you think this is unacceptable you need to setup xauth on your CygWin and X system. If this is what you really want to do I'll help you to setup one but I'll suggest you to check:
man xauth

Cheers,
K.

 

by: KeremEPosted on 2009-05-26 at 17:05:06ID: 24478917

will you post the output from
xauth list

after you've logon to your X session ?

 

by: rtod2Posted on 2009-05-26 at 17:15:27ID: 24478960

OK, the idea is to have the server side require as little configuration as possible.  If not having xauth data is unimportant then I am fine.  What about the other IPP and debus warning shown screenshot?

 

by: rtod2Posted on 2009-05-26 at 17:23:08ID: 24478991

When trying to do this through xming a long time ago, I remember an option to use 'host based' as opposed to server based authentication.  Could something similar apply here?

 

by: KeremEPosted on 2009-05-26 at 17:34:31ID: 24479047

in fact it seems that there's an issue with our gdm (linux side) can not read / write your .xauth  file. This is why I've asked the outpu t of your .xaut list output here.

we're not authenticating to CygWin site. IT uses the authentication from the XP so tit does not apply here.

 

by: rtod2Posted on 2009-05-26 at 17:38:15ID: 24479066

how would I provide this ".xauth list output" ??

 

by: rtod2Posted on 2009-05-26 at 18:15:37ID: 24479256

Attached is the xauth list data.  I did some searching through my notes regarding authentication for xming some months back and found that we used a switch to change to 'host based' authentication.  It turns out that I have a note that says "resolution for magic cookie error".   Since cygwin is different, I don't know how to resolve it here.

 

by: KeremEPosted on 2009-05-27 at 15:51:01ID: 24488346

So since you have your session cookie correctly placed in the file and you're able to access your system without a problem.

Don't forget that this is a warning. IO am suspecting that this warning is because your Linux system is not properly configured. Since it does not a hostname the server name is localhost.localdomain (which is default and meant to be changed later))

Please follow this procedure:
- just give a name to your system and then edit your /etc/sysconfig/network
Locate the line:
HOSTNAME=
and add a hostname to it just like:
HOSTNAME=r2d2.company.sec

(.sec is a domain not assigned by IANA as a TLD so you're only one of a kind to have this domain so it is a ggod practice to use some TLD such as this or .local to prevent a clash with a real domain in the future)

ave and exit.

- Edit your  /etc/hosts and add you hostname there keep the first line 127.0.0.1 such as the example:

127.0.0.1       localhost.comapny.sec localhost
eth0.ip.addr        r2d2.company.sec r2d2

save exit reboot and retry.

 

by: KeremEPosted on 2009-05-27 at 15:57:47ID: 24488394

Please do that for all your Linux systems. RedHAT and thus CentOS add an alias with hostname to the localhost and this might cause problems of this kind. Becasue localhost (=127.0.0.1) only visible from the local machine and can keep a program from communicating properly if it is listening to localhost.So modify the /etc/hosts for  all your systems. Though this conversation is heading outside the initial topic but I think this is the casue of the warning while it is harmless.

 

by: rtod2Posted on 2009-05-28 at 06:58:22ID: 24493214

both etc/hosts and /etc/sysconfig/network do appear to be set correctly.

 

by: KeremEPosted on 2009-05-28 at 07:41:28ID: 24493743

But your target system (Which you'd sent the output to display xauth data) shows its hostname as loclahost.localdomain. Just see the screen you've posted on comment ID: 24479256

 

by: rtod2Posted on 2009-05-28 at 07:54:13ID: 24493896

Both work and home give the same warnings  Here is the xauth list data though at work, which is slightly different.

http://drop.io/gtkpgxb

 

by: KeremEPosted on 2009-05-28 at 17:59:07ID: 24499411

Are you sure you've xauth installed in CygWIN ??

Go to CygWin setup setup and make sure xuath is installed under X11 filesests.

I don't want to make an issue about the Warning it is a Warning only.

The reason I've broght about this localhost issue was not about CygWin. It was just to warn you against some bad practice that I know causing some problems in the long-run.

 

by: KeremEPosted on 2009-05-28 at 18:03:38ID: 24499427

If everything on Cygwin site is ok the text window must have a text like that 1nce you've launched X

xauth:  creating new authority file /cygdrive/c/Documents and Settings/user/.serverauth.7932

 

by: KeremEPosted on 2009-06-01 at 03:05:17ID: 24516070

What is the latest on the issue ? Did you check xauth thing ?

 

by: rtod2Posted on 2009-06-01 at 15:13:11ID: 24522324

I did.  No luck so far.  xauth is installed.

 

by: KeremEPosted on 2009-06-01 at 15:23:34ID: 24522382

If you want to correct the issue regardless of this is a waning and will not cause your system to malfunction though I don't see no point try to go int bits and bytes :) instead of running your server to do your j1b :)

This is being said: lets  do this: Post here the output of this command:

ls -al /var/run/gdm

if it is wrxw-xw-t execute this command : chmod +x /var/run/gdm

and retry to start Cygwin X.

 

by: KeremEPosted on 2009-06-01 at 16:11:35ID: 24522649

did you see this output on your CyGWin ??

xauth:  creating new authority file /cygdrive/c/Documents and Settings/user/.serverauth.7932

 

by: KeremEPosted on 2009-06-01 at 17:11:52ID: 24523010

anybody home ?

 

by: rtod2Posted on 2009-06-02 at 11:27:07ID: 24529848

This looks like 4 run-on sentences to me ("If you want to correct the issue regardless of this is a waning and will not cause your system to malfunction though I don't see no point try to go int bits and bytes instead of running your server to do your j1b").   I am not trying to be sarcastic, but rather trying to understand.

 

by: KeremEPosted on 2009-06-03 at 21:48:20ID: 24543641

Yeah but the problem is you don't cooperate. I am asking about settings you have :

ID: 24499427
> If everything on Cygwin site is ok the text window must have a text like that 1nce you've launched X
> xauth:  creating new authority file /cygdrive/c/Documents and Settings/user/.serverauth.7932

 ID: 24522382      
>If you want to correct the issue regardless of this is a waning and will not cause your system to >malfunction though I don't see no point try to go int bits and bytes :) instead of running your server to >do your j1b :)
>This is being said: lets  do this: Post here the output of this command:
>ls -al /var/run/gdm
>if it is wrxw-xw-t execute this command : chmod +x /var/run/gdm
>and retry to start Cygwin X.

ID: 24522649
> did you see this output on your CyGWin ??
> xauth:  creating new authority file /cygdrive/c/Documents and Settings/user/.serverauth.7932

that I could not get any answer. How do you expect me to help you when you don't cooperate. Also my initial comment "using -Y instead of -X" helped you to logon.  The rest is a warning condition. If you are willing to understand why this happens you need to be a bit more responsive.

 

by: rtod2Posted on 2009-06-04 at 06:21:14ID: 24546589

I am cooperating and appreciate your help.  I often don't have time to dive back into this.  That is my problem, not yours.  I also cannot clearly understand what you are asking.  Thank you again for your assistance.

In the /cygdrive on my windows box, which is c for me, I can locate the user folder (named by my username), but cannot find anything called .serverauth.7932.

If I do a search of the entire Windows system for serverauth, I do not get anything back.

I have re-downloaded cygwin, confirming that all necessary components (including xauth) are installed.

 

by: KeremEPosted on 2009-06-04 at 07:04:32ID: 24547041

> In the /cygdrive on my windows box, which is c for me, I can locate the user folder (named by my
> username), but cannot find anything called .serverauth.7932.

Ok let me rephrase it:
I assume that you're
- Launching "cygwin bash shell"
- When the console window appears and you have your cursor. I assume that you start your X session using a command like "startx"
- While the X session starts in another window the initial console window must be displaying some text like:

xauth:  creating new authority file /cygdrive/c/Documents and Settings/username/.serverauth.xxxxx

Where username is your username and xxxxx = is a random number.

This will tell us that xauth kicked in and created a session cookie for us so the remote sessin does not need to create one with us.

What I am asking is the text in the initial CygWin Console. Since there may be some other .session.yyyy files under the Cygwin Home which is c:\Documents and Settings\username but there are stale files from an older session.

Can you tell me do you see this type of a message in the CygWin console window ??


 

by: rtod2Posted on 2009-06-04 at 07:25:24ID: 24547284

Thank you for the explanation. I type the following:

  • bash --login -i (run from within cygwin.bat which brings up the black console window)   
  • xinit 
  • xhost + 
  • ssh -X root@server  

followed by 'gnome-session'
or whatever

If I understand you correctly, you are asking to clarify what messages I get back.  

The messages were:
  1.  The one posted here http://drop.io/gtkpgxb/asset/magic-cookie-work-png from earlier.
  2.  This message appears to have gotten magically ?better,  and is posted here http://drop.io/hculwfc


If by "console window", you mean the black window behind the "session window" (terminology?), then it contains simply the initial xinit command and nothing else.

 

by: KeremEPosted on 2009-06-04 at 07:46:33ID: 24547530

   * bash --login -i (run from within cygwin.bat which brings up the black console window)  
OK

    * xinit
OK
 
    * xhost +
You don't need it since we're directing hosts over SSH and you don't need to allow X sessions. Besides it is a bad practice to allow any connection.
 
    * ssh -X root@server  

You would remember that initallly I'd suggested you to use:

ssh -Y root@server

instead of ssh -X. The reason was -Y was allowing trusted forwarding  (hence eliminating any session cookie problems etc)

> If by "console window", you mean the black window behind the "session window" (terminology?),
>  then it contains simply the initial xinit command and nothing else.

Yeah will you please send me the contents of the window with the title "Cygwin Bash Shell".

I'm posting mine for your reference.




 

by: rtod2Posted on 2009-06-04 at 08:19:53ID: 24547919

Thank you very much for those reminders.  We even eliminated a step.  That's fantastic!

Here are both screens together.  The errors in the session window are smudged for clarity.

 

by: rtod2Posted on 2009-06-04 at 08:20:20ID: 24547926

 

by: KeremEPosted on 2009-06-04 at 08:34:54ID: 24548120

Please use "startx" instead of "xinit" it is clear that xinit dos not run xauth.

 

by: KeremEPosted on 2009-06-04 at 08:55:42ID: 24548362

dos = does :)

 

by: rtod2Posted on 2009-06-04 at 09:09:27ID: 24548520

 

by: KeremEPosted on 2009-06-04 at 09:10:14ID: 24548529

You see even the slightest detail counts:

> When the console window appears and you have your cursor. I assume that you start your X session
> using a command like "startx"

You've told init and I had thought they were interchangeable but as you see they are not :)

 

by: rtod2Posted on 2009-06-04 at 09:15:20ID: 24548580

um, I'm unclear again.  I don't want "all" those windows multiple times.  Just the gnome desktop

 

by: rtod2Posted on 2009-06-04 at 09:21:56ID: 24548640

To recap, how do I modify the following to give me the gnome desktop.  Maybe one prompt with a scroll bar and all history saved on exit, to a log file on the cygwin drive would be great.  That is way down the road though in a subsequent post.  For now, just the gnome desktop would be enough.

So far, the following brings up too much weirdness:

  • bash --login -i 
  • startx 
  • ssh -Y root@server  

 

by: KeremEPosted on 2009-06-04 at 09:22:53ID: 24548646

startx and xinit has no difference in lanching. It won't give you multiple windows. It just runs some other init scripts which runs xauth that's it

 

by: KeremEPosted on 2009-06-04 at 09:30:29ID: 24548707

yeah just put startx in:

.bash_profile

The rest should go into:

.xinitrc

but I'll sugeest you to look at manual bfore launching ssh


 

by: rtod2Posted on 2009-06-04 at 10:59:46ID: 24549584

At this stage, I don't understand much of what is written there.  I am not sure I even understand completely what you wrote.

Does this...

  • bash --login -i  
  • startx  
  • ssh -Y root@server   
Simply become this?
  • bash --login -i startx 
  • ssh -Y root@server   
I don't want the weirdness that came up before (screenshot: http://drop.io/lflv5lu)

 

by: KeremEPosted on 2009-06-04 at 16:44:34ID: 24552446

> Does this...
>
>    * bash --login -i  
>    * startx  
>    * ssh -Y root@server  
>
> Simply become this?
>
>   * bash --login -i startx
>    * ssh -Y root@server

No it won't. The explanation is: bash --login -i
is executed through the windows shell. While startx executed by bash shell.
since the execution starts the X the rest will not be executed until the X ends. So the correct place is:
- bash. --login -i     should be executed by CygWin.bat
- startx should be executed by $HOME/.profile
- ssh should be executed by $HOME/xinitrc

Because there are 3 different shell layers.

> I don't want the weirdness that came up before (screenshot: http://drop.io/lflv5lu)

You insist about that but you won't. This beavaviour is caused by --multiwindow switch to the startx command. But this switch is supplied in /usr/bin/startxwin.bat which is executed through

Start > All Programs > Cygwin-X > X-Win server

In fact I had told you about this in a previous tread that you've accepted.

You can check it by clicking the icon. I am attaching a screenshot.  

   

 

by: KeremEPosted on 2009-06-04 at 16:51:35ID: 24552484

I had previously told you that this behaviour was caused by -multiwindow switch in another tread:

http://www.experts-exchange.com/OS/Linux/Distributions/CentOS/Q_24406642.html

Message ID: 24419493

Also please note that the screenshot I've sent you which is showing the correct operation of xauth at cygwin side was produced through startx.

All in all multiwindow behavious is not depend on whether you suse startx or xinit. It depends on the the presence of the switch "-multiwindow".

startx and xinit have different initialization files. The suggested way to start X thrugh xwin is either through XWin.bat or startx command not xinit.


Cheers,
K.

      

 

by: KeremEPosted on 2009-06-04 at 16:53:10ID: 24552491

Ooops sorry XWin.exe not XWin bat  (which is linked directly to startx)

 

by: rtod2Posted on 2009-06-04 at 19:43:42ID: 24553118

I don't see the need for the sarcasm in the "as I told you before" comment.  I did not try to use -multiwindow switches as I recall though it does look like your startxwin.bat uses it.  I should have looked closer at your screenshot before posting.  I have not been successful at understanding and implementing your suggestions thus far.  Please understand that I am trying your suggestions and I thank you for hanging in there with me.

I just tried running the X Server icon which links to run.exe with a subsequent call the XWin.bat.  I removed the multi-window line from the XWin.bat and did manage to get the gnome session despite an additional error talking about the escape key.  Just as with Xinit though, I got similar errors.  This try was at home instead of at work.  There appears to be little difference.

 

by: KeremEPosted on 2009-06-04 at 20:06:47ID: 24553185

I see no sarcasm here. After I've reminded you that how did it happen last time you're still saying that my startx is different than yours.

And I am afraid the reason you can't succeed about what I say is your style. I am repeatedly telling you to use startx instead of xinit. But you're obsessesed with -multiwindow thing and you don't apply.

Since you don't want to see multiwindow again I am trying to assure you that it would only happen when you start X-Win with -multiwindow switch or through the CygWin-X and even including the screenshots how starting X through CygWin-X and you even then keep starting your windows with xinit.

I am telling you your porblem is: You start your x session through xinit but not startx. startx won't cause you to have multiwindows options on when run. This is not the default beaheviour !!!

So start your X session with startx and please be assured that I am not trying to be sarcastic.
   

 

by: rtod2Posted on 2009-06-04 at 20:55:49ID: 24553309

that is what I thought I was doing but running x server as you suggested above.

When I get to work, I will try the following steps.
1. I will look for a file called startx and click on it if I find it.
2. I will run ssh -Y root@servername
3. I will type gnome-session

I will look at the output and respond with the results.  Thank you again for your assistance.

 

by: KeremEPosted on 2009-06-05 at 03:49:49ID: 24555097

> When I get to work, I will try the following steps.
> 1. I will look for a file called startx and click on it if I find it.

you don't need to find and click you'll be in the command shelll you just type startx instead of xinit on the command line.
Click Start > All Programs > Cygwin Bash Shell and when you get your shell text screen with your prompt type "starts" it will launch the x server.

2. I will run ssh -Y root@servername

Once it launches the X and places you on bash prompt just type "ssh -Y user@server" you don't need "xhost +"
 
3. I will type gnome-session

Yup you've already running it. If you follow these steps you should not see "waning ... Magic cookie"
This warning has benn there because xinit you used to use does not launch xauth while startx does.

I hope all will be straight and OK for you.

Cheers,
K.

 

by: rtod2Posted on 2009-06-05 at 06:56:15ID: 24556431

OK,
1. I clicked the default cygwin.bat
2. I ran ssh -Y root@server
3. I typed gnome-session

What I get back does not contain any errors but is not gnome desktop in the manner I am accustomed to looking at it.  Multiple xterm sessions are opened, and the top panel, bottom panel, desktop, all separate from eachother, rather than being one cohesive unit.

That is to say that while startx does not produce the errors that xinit does, it creates a disconnected desktop that is even more of a problem than the errors are.

 

by: KeremEPosted on 2009-06-05 at 11:33:55ID: 24559073

This is why I'm directing you to use "startx" instead of the bat. If you check inside the .bat you'll see it has several options. If you don't like this behaviour edit the cygwin.bat and remove the options you don't like or just start the X typeing startx in the prompt instead of launching it through .bat file.

 

by: KeremEPosted on 2009-06-05 at 11:40:57ID: 24559126

It is not hte problem of the startx. It is that launching it through .bat file causes several switches including -multiwindow is suplplied in .bat files.

But I really don't understand why do you resist too much to start the X session through startx. As I told you'll either edit each batch file and remove the -multiwindow switches from the options and start through .bat files or you'll start your X session through "startx" in bash prompt.

The key to your answer is: Launching X through startx and make sure that no -multiwindow switches supplied to it during the launch.

This will ensure the correct operation while allowing xauth to be run prior to X

 

by: KeremEPosted on 2009-06-05 at 16:00:06ID: 24560722

Here is the proof that xinit causes the session cookie problem. I am attaching 2 screenshots. One of them was previously posted in this tread the second is the one I've just created. Please find them for your reference.

 

by: KeremEPosted on 2009-06-05 at 16:09:30ID: 24560749

If you want to automatically start X and SSH when launching CygWin you need to modify two files:
- edit $HOME/.profile and place this line in it:
startx
- edit $HOME/.xinitrc and add this line in it as the only exec line at the bottom of the file:
exec xterm -e ssh -Y user@host

 

by: rtod2Posted on 2009-06-05 at 16:24:23ID: 24560791

As I have stated several times, I have no issues with startx if it will work for me and have repeatedly experimented with it trying to achieve a positive outcome.  I appreciate your help but I keep telling you the steps I am going to take and I am having trouble with all the change this, change that stuff.  I've tried to pick it apart with you.  I still get either the errors, or the multiple windows, one way or the other.  So before I try yet again, with another change, let us re-paste the specific actions required to achieve the more positive outcome.

OBJECTIVE:  a single gnome session window with all of it's pieces attached, and no errors.

The latest steps that I tried to compile from your instructions, produced multiple windows.  They are as follows:
1. I clicked the default cygwin.bat
2. I ran ssh -Y root@server
3. I typed gnome-session


Now if I understand you correctly, you want me to change that and run the startx directly bypassing the bat file.  This means I will:
1. Click what file to bring up the initial session ???  
2. type startx
3. type ssh -Y root@server
4. type gnome-session

I'll await your response, correct the steps per your instructions, and re-paste them before trying it again.

 

by: KeremEPosted on 2009-06-05 at 16:40:57ID: 24560845

Yeah exactly what I am trying to tell is do't run any batch file in some way or another CygWin has been designed to run the required batch through related commands when required. So you don't need to run specific batch files.

All I want you to do is this:

- Click Start > All Programs >  Cygwin > Cygwin Bash Shell

Now you will be on the terminal screen (Command screen) with your bash prompt. In fact this step automatically runs the cygwin.bat. So you don't need to call it exclusively

- Type startx and launch your Logal Cygwin X server. startx will run xauth as the part of its initialization.

- X Server opens an xterm window. and bash prompt. Enter:
ssh -Y root@server

and you'll be asked the password and you'll be logged on to your remote account with X screen redirected to your local CygWin X Server. You must see no Xauh warning since startx handles it

Type:

gnomome-session &

and you should have remote gnome session now.

 

by: rtod2Posted on 2009-06-05 at 16:51:56ID: 24560880

OK so far I have:

  1. click cygwin.bat (via clicking on start > all programs > cygwin > cygwin bash shell) 
  2. type startx 
  3. type ssh -Y root@server 
  4. type gnome-session & 



 

by: KeremEPosted on 2009-06-05 at 16:56:37ID: 24560893

These are the correct steps. Please proceed to execute them and let me know.

 

by: rtod2Posted on 2009-06-05 at 17:12:04ID: 24560930

OK, to restate...

OBJECTIVE:  a single gnome session window with all of it's pieces attached, and no errors.

STEPS TAKEN:

  1. click cygwin.bat (via programs icon > cygwin > cygwin bash shell)  
  2. type startx  
  3. type ssh -Y root@server  
  4. type gnome-session &  
RESULT:  The result  was the gnome desktop in separated pieces where I had to click separately to drop each piece, and then clic to minimize each piece to end up with it the way you see it in the attached screenshot.


 

by: KeremEPosted on 2009-06-05 at 17:24:09ID: 24560972

Ok I got your problem. This is a different behaviour than the previous multivindow issue. This is because your startx is launching another window manager before gnome so it takes precedence.

Please terminate your CygWin X session now before continuing.

Edit the $HOME/.xinitrc  file located in your CygWin X host

- Find the line that reads

twm

and replace it with

# twm

save & exit restart Cygwin X and it should be correct now.

 

by: rtod2Posted on 2009-06-05 at 17:37:53ID: 24561018

I don't understand where the $HOME/.xinitrc file is.

We are talking about the windows or centos box in my case?

I do a search and don't find it.

 

by: rtod2Posted on 2009-06-05 at 17:39:47ID: 24561020

Off to dinner.  Thank you for hanging in there with me.

 

by: KeremEPosted on 2009-06-05 at 17:45:37ID: 24561034

The file is called .xinitrc and located in home folder of your cygwin installtion. Which is C:\Documents and Settings\user

 

by: KeremEPosted on 2009-06-05 at 17:48:09ID: 24561041

Here $HOME represents your home folder which is the default folder you've been placed under when you launch "cygwin bash shell"

 

by: rtod2Posted on 2009-06-05 at 17:54:23ID: 24561058

I installed cygwin on my Vista computer here.  I installed it into the same directory though as that of the one at work.  It is in c:\cygwin\home\me\ no file named that

 

by: rtod2Posted on 2009-06-05 at 17:58:09ID: 24561064

I don't see the file there in the above screenshot

 

by: KeremEPosted on 2009-06-05 at 18:20:03ID: 24561122

Then you are missnig the file. I'm sending a copy for you.
 
- Add this file under your home directory.
- Launch "Cygwin bash shell"
- execute this command:
cp xinitrc.txt .xinitrc
- launch startx

 

by: KeremEPosted on 2009-06-05 at 18:21:17ID: 24561126

Here's the file:

  • xinitrc.txt
    • 699 bytes

    .xinitrc file use "mv xinitrc.txt .xinitrc" in Cygwin to move

 

by: rtod2Posted on 2009-06-05 at 18:23:24ID: 24561131

The problem is that I am trying to develop an enterprise solution.  If the files don't appear during the install then I need to figure out how to get them there.  That file only has a single line that is commented out ??

 

by: KeremEPosted on 2009-06-05 at 18:32:37ID: 24561151

> The problem is that I am trying to develop an enterprise solution. The problem is that I am trying to develop an enterprise solution.  If the files don't appear during the install then I need to figure out how to get them there.  

The file is normally there I have no idea why are you missing the file.

> That file only has a single line that is commented out ??
Nope but since Linux terminates lines with a LF instead of CR+LF notepad will see it all a single line. Try to use WordPad or similar to view the file the file contetnts is:

#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
 
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
 
# merge in defaults and keymaps
 
if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi
 
if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi
 
if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi
 
if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi
 
# start some nice programs
 
# twm &
# xclock -geometry 50x50-1+1 &
# xterm -geometry 80x50+494+51 &
# xterm -geometry 80x20+494-0 &
 
exec xterm -geometry 132x60+0+0 -name login
#exec xterm -e ssh -Y root@10.0.0.1
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:

Select allOpen in new window

 

by: KeremEPosted on 2009-06-05 at 18:33:41ID: 24561152

As you see this is standard file installed by CygWin. As I told you earlier I have no idea why is it missing from your installation.

 

by: rtod2Posted on 2009-06-05 at 21:27:06ID: 24561585

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CUsers%5CTed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CUsers%5CTed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CUsers%5CTed%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><!--[if gte mso 9]><xml> <w:WordDocument>  <w:View>Normal</w:View>  <w:Zoom>0</w:Zoom>  <w:TrackMoves/>  <w:TrackFormatting/>  <w:PunctuationKerning/>  <w:ValidateAgainstSchemas/>  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>  <w:DoNotPromoteQF/>  <w:LidThemeOther>EN-US</w:LidThemeOther>  <w:LidThemeAsian>X-NONE</w:LidThemeAsian>  <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>  <w:Compatibility>   <w:BreakWrappedTables/>   <w:SnapToGridInCell/>   <w:WrapTextWithPunct/>   <w:UseAsianBreakRules/>   <w:DontGrowAutofit/>   <w:SplitPgBreakAndParaMark/>   <w:DontVertAlignCellWithSp/>   <w:DontBreakConstrainedForcedTables/>   <w:DontVertAlignInTxbx/>   <w:Word11KerningPairs/>   <w:CachedColBalance/>  </w:Compatibility>  <m:mathPr>   <m:mathFont m:val="Cambria Math"/>   <m:brkBin m:val="before"/>   <m:brkBinSub m:val="&#45;-"/>   <m:smallFrac m:val="off"/>   <m:dispDef/>   <m:lMargin m:val="0"/>   <m:rMargin m:val="0"/>   <m:defJc m:val="centerGroup"/>   <m:wrapIndent m:val="1440"/>   <m:intLim m:val="subSup"/>   <m:naryLim m:val="undOvr"/>  </m:mathPr></w:WordDocument></xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"  DefSemiHidden="true" DefQFormat="false" DefPriority="99"  LatentStyleCount="267">  <w:LsdException Locked="false" Priority="0" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Normal"/>  <w:LsdException Locked="false" Priority="9" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>  <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>  <w:LsdException Locked="false" Priority="39" Name="toc 1"/>  <w:LsdException Locked="false" Priority="39" Name="toc 2"/>  <w:LsdException Locked="false" Priority="39" Name="toc 3"/>  <w:LsdException Locked="false" Priority="39" Name="toc 4"/>  <w:LsdException Locked="false" Priority="39" Name="toc 5"/>  <w:LsdException Locked="false" Priority="39" Name="toc 6"/>  <w:LsdException Locked="false" Priority="39" Name="toc 7"/>  <w:LsdException Locked="false" Priority="39" Name="toc 8"/>  <w:LsdException Locked="false" Priority="39" Name="toc 9"/>  <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>  <w:LsdException Locked="false" Priority="10" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Title"/>  <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>  <w:LsdException Locked="false" Priority="11" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>  <w:LsdException Locked="false" Priority="22" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Strong"/>  <w:LsdException Locked="false" Priority="20" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>  <w:LsdException Locked="false" Priority="59" SemiHidden="false"   UnhideWhenUsed="false" Name="Table Grid"/>  <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>  <w:LsdException Locked="false" Priority="1" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>  <w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading"/>  <w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List"/>  <w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid"/>  <w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1"/>  <w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2"/>  <w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1"/>  <w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2"/>  <w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1"/>  <w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2"/>  <w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3"/>  <w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List"/>  <w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading"/>  <w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List"/>  <w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid"/>  <w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 1"/>  <w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 1"/>  <w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 1"/>  <w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>  <w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>  <w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>  <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>  <w:LsdException Locked="false" Priority="34" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>  <w:LsdException Locked="false" Priority="29" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Quote"/>  <w:LsdException Locked="false" Priority="30" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>  <w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>  <w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>  <w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>  <w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>  <w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 1"/>  <w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>  <w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 1"/>  <w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>  <w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 2"/>  <w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 2"/>  <w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 2"/>  <w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>  <w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>  <w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>  <w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>  <w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>  <w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>  <w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>  <w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 2"/>  <w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>  <w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 2"/>  <w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>  <w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 3"/>  <w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 3"/>  <w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 3"/>  <w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>  <w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>  <w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>  <w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>  <w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>  <w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>  <w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>  <w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 3"/>  <w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>  <w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 3"/>  <w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>  <w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 4"/>  <w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 4"/>  <w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 4"/>  <w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>  <w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>  <w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>  <w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>  <w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>  <w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>  <w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>  <w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 4"/>  <w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>  <w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 4"/>  <w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>  <w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 5"/>  <w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 5"/>  <w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 5"/>  <w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>  <w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>  <w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>  <w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>  <w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>  <w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>  <w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>  <w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 5"/>  <w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>  <w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 5"/>  <w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>  <w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 6"/>  <w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 6"/>  <w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 6"/>  <w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>  <w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>  <w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>  <w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>  <w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>  <w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>  <w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>  <w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 6"/>  <w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>  <w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 6"/>  <w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>  <w:LsdException Locked="false" Priority="19" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>  <w:LsdException Locked="false" Priority="21" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>  <w:LsdException Locked="false" Priority="31" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>  <w:LsdException Locked="false" Priority="32" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>  <w:LsdException Locked="false" Priority="33" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>  <w:LsdException Locked="false" Priority="37" Name="Bibliography"/>  <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/> </w:LatentStyles></xml><![endif]--><style><!-- /* Font Definitions */ @font-face      {font-family:Wingdings;      panose-1:5 0 0 0 0 0 0 0 0 0;      mso-font-charset:2;      mso-generic-font-family:auto;      mso-font-pitch:variable;      mso-font-signature:0 268435456 0 0 -2147483648 0;}@font-face      {font-family:"Cambria Math";      panose-1:2 4 5 3 5 4 6 3 2 4;      mso-font-charset:1;      mso-generic-font-family:roman;      mso-font-format:other;      mso-font-pitch:variable;      mso-font-signature:0 0 0 0 0 0;}@font-face      {font-family:Calibri;      panose-1:2 15 5 2 2 2 4 3 2 4;      mso-font-charset:0;      mso-generic-font-family:swiss;      mso-font-pitch:variable;      mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal      {mso-style-unhide:no;      mso-style-qformat:yes;      mso-style-parent:"";      margin-top:0in;      margin-right:0in;      margin-bottom:10.0pt;      margin-left:0in;      line-height:115%;      mso-pagination:widow-orphan;      font-size:11.0pt;      font-family:"Calibri","sans-serif";      mso-fareast-font-family:Calibri;      mso-bidi-font-family:"Times New Roman";}p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph      {mso-style-priority:34;      mso-style-unhide:no;      mso-style-qformat:yes;      margin-top:0in;      margin-right:0in;      margin-bottom:10.0pt;      margin-left:.5in;      line-height:115%;      mso-pagination:widow-orphan;      font-size:11.0pt;      font-family:"Calibri","sans-serif";      mso-fareast-font-family:Calibri;      mso-bidi-font-family:"Times New Roman";}.MsoChpDefault      {mso-style-type:export-only;      mso-default-props:yes;      font-size:10.0pt;      mso-ansi-font-size:10.0pt;      mso-bidi-font-size:10.0pt;      mso-ascii-font-family:Calibri;      mso-fareast-font-family:Calibri;      mso-hansi-font-family:Calibri;}@page Section1      {size:8.5in 11.0in;      margin:1.0in 1.0in 1.0in 1.0in;      mso-header-margin:.5in;      mso-footer-margin:.5in;      mso-paper-source:0;}div.Section1      {page:Section1;} /* List Definitions */ @list l0      {mso-list-id:674920698;      mso-list-type:hybrid;      mso-list-template-ids:613720646 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}@list l0:level1      {mso-level-number-format:bullet;      mso-level-text:·;      mso-level-tab-stop:none;      mso-level-number-position:left;      margin-left:1.25in;      text-indent:-.25in;      font-family:Symbol;}@list l0:level2      {mso-level-number-format:bullet;      mso-level-text:o;      mso-level-tab-stop:none;      mso-level-number-position:left;      margin-left:1.75in;      text-indent:-.25in;      font-family:"Courier New";}@list l1      {mso-list-id:1475105497;      mso-list-type:hybrid;      mso-list-template-ids:357869936 67698713 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}@list l1:level1      {mso-level-number-format:alpha-lower;      mso-level-tab-stop:none;      mso-level-number-position:left;      margin-left:1.0in;      text-indent:-.25in;}@list l1:level2      {mso-level-number-format:bullet;      mso-level-text:o;      mso-level-tab-stop:none;      mso-level-number-position:left;      margin-left:1.5in;      text-indent:-.25in;      font-family:"Courier New";}@list l2      {mso-list-id:1490830813;      mso-list-type:hybrid;      mso-list-template-ids:1247456476 67698713 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}@list l2:level1      {mso-level-number-format:alpha-lower;      mso-level-tab-stop:none;      mso-level-number-position:left;      margin-left:1.0in;      text-indent:-.25in;}ol      {margin-bottom:0in;}ul      {margin-bottom:0in;}--></style><!--[if gte mso 10]><style> /* Style Definitions */ table.MsoNormalTable      {mso-style-name:"Table Normal";      mso-tstyle-rowband-size:0;      mso-tstyle-colband-size:0;      mso-style-noshow:yes;      mso-style-priority:99;      mso-style-qformat:yes;      mso-style-parent:"";      mso-padding-alt:0in 5.4pt 0in 5.4pt;      mso-para-margin:0in;      mso-para-margin-bottom:.0001pt;      mso-pagination:widow-orphan;      font-size:10.0pt;      font-family:"Calibri","sans-serif";}</style><![endif]-->Hmm,  perhaps I missed it during the selection of packages.  I just removed cygwin and ran the install using the v1.7 beta.   I have always selected the following packages.   I'll have another look at the XP machine at work and see if it contains the

·         <!--[endif]-->Net packages<o:p></o:p>

<!--[if !supportLists]-->a.       <!--[endif]-->inetutils <o:p></o:p>

<!--[if !supportLists]-->b.       <!--[endif]-->openssh (should auto-select openssl, and others)<o:p></o:p>

<!--[if !supportLists]-->c.       <!--[endif]-->openssl097<o:p></o:p>

<o:p> </o:p>

<!--[if !supportLists]-->·         <!--[endif]-->X-11 packages<o:p></o:p>

<!--[if !supportLists]-->a.       <!--[endif]-->X-start-menu-icons (should auto-select xauth, xinit,xorg-server, xterm, and others)<o:p></o:p>

<!--[if !supportLists]-->b.       <!--[endif]-->font-adobe (all)<o:p></o:p>

<!--[if !supportLists]-->c.       <!--[endif]-->font-alias<o:p></o:p>

<!--[if !supportLists]-->d.       <!--[endif]-->twm<o:p></o:p>

<!--[if !supportLists]-->e.       <!--[endif]-->xclipboard<o:p></o:p>

<!--[if !supportLists]-->f.        <!--[endif]-->xclock<o:p></o:p>

<!--[if !supportLists]-->g.       <!--[endif]-->xeyes<o:p></o:p>

<!--[if !supportLists]-->h.       <!--[endif]-->xhost <o:p></o:p>

<!--[if !supportLists]-->i.        <!--[endif]-->xorg-docs

Could it be part of something that isn't listed here?

Incidently, I did find an xinitrc in the path C:\cygwin\etc\X11\xinit.  Could that be it?

 

by: rtod2Posted on 2009-06-05 at 21:27:58ID: 24561588

BAD post above

I did find an xinitrc in the path C:\cygwin\etc\X11\xinit.  Could that be it?

 

by: KeremEPosted on 2009-06-06 at 01:46:19ID: 24562285

It is the systemwide xinitrc. It will effect each every user who uses X. If it is what you want go and edit it (it is actually the unmodified form of the file I'd sent you just check the file headr info and see for yourself).

My modified file:
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

The preferred method is to copy it to your home directory as .xinitrc and modify it. Not the systemwide file. I've sent you the properly modified version which also included an automated ssh command and just commented it.

 

by: rtod2Posted on 2009-06-06 at 08:13:01ID: 24563256

Using the copy command above, I get a permissions error stating that it cannot copy.  I set permissions to the entire folder 'everyone full control'.   This is using the Vista computer at home.

 

by: KeremEPosted on 2009-06-06 at 10:32:01ID: 24563669

the permission error you've got belongs to cygwin not windows. So please try to execute

chmod +r xinitrc.txt

before the cp command. If you want you can post "ls -al" output here and we'll lok at it together.
 

 

by: rtod2Posted on 2009-06-06 at 12:02:29ID: 24564003

permissions change

 

by: KeremEPosted on 2009-06-06 at 12:41:11ID: 24564101

hi,

The firest line says there's no file called .xinitrc under /etc/X11/ninit. The problem there is the system-wide file's name is "xinitrc" while the file under user home is called ".xinitrc"


so the correct command to execute is:
cp /etc/X11/xinit/xinitrc "$HOME/.xinitrc"

Since it is a systemwide file the perimissions are already set. you don't need to set permissions forit.

edit it and coment the twmc &  lines.

But if you want to go with my example including the txt file:

- Download the file to your computer
- Copy the file under your home directory (C:\cygwin\home\username)
- Go to your CygWin prompt
- Execute ls -al xinitrc.txt and make sure the file is ther. Also post the result here.
- if the file exists then use the mv command :
mv xinitrc.txt .xinitrc

 

by: rtod2Posted on 2009-06-06 at 14:40:59ID: 24564435

I commented out the twm with #twm.  Edits are possible to that global xinitrc file as you suggested.  Since I did not make vi part of cygwin, I used wordpad to make that single character edit.  attached is the result.

 

by: KeremEPosted on 2009-06-06 at 16:01:21ID: 24564612

The errror was caused by the use of Notepad. As I told earlier Windows uses CR+LF to terminate a line while Unix prefers LF. Never edit Unix files with windows programs. The \r stands for CR (Character 13). To clean the file from these unwanted characters:
- cd /etc/X11/xinit
- execute this command
tr -d \r <xinitrc >xinitrc.org
mv xinitrc.org xinitrc


This is why I don't like to modify the system wide file once you make mistakes you won't have any backup. My suggestions may not seem the simplest at first but please don't forget that I have nearly 30 years of experience in the field. This was why I'd suggested you to use a copy the file under your home directory under the name ".xinitrc" using the command:

cp /etc/X11/xinit/xinitrc "$HOME/.xinitrc"

Please use it as I've posted here including double quotes.


Please apply my instructions without modifications.

 

by: rtod2Posted on 2009-06-06 at 16:18:38ID: 24564641

Excellent!  Thank you for the line: tr -d \r <xinitrc >xinitrc.org
That is very useful and alot of different task specific syntax in a command.  Off-topic for one post...

Can you tell me 'just in this case' what the following mean:
tr
-d
/r

?

 

by: KeremEPosted on 2009-06-06 at 16:25:34ID: 24564656

tr is a command. Abbreviation of Translate. It  filters out or replace some content from a file.
-d stands for delete.
\r (backslash r = CR = Char 13)

 

by: rtod2Posted on 2009-06-06 at 16:56:47ID: 24564712

thanks for that explaination, exceptional!

I tried doing that and the command was accepted, the move worked,

 

by: KeremEPosted on 2009-06-06 at 17:30:58ID: 24564771

tr -d "\r" < infile > outfile

Your platform needs double quotes before the backslash.

But it seems that there's more for line 52. Clean the file with the command and post the file here. BTW it will be helpful if you get vi to edit it.

 

by: rtod2Posted on 2009-06-06 at 19:41:45ID: 24565083

error

 

by: KeremEPosted on 2009-06-06 at 19:50:36ID: 24565100

> But it seems that there's more for line 52. Clean the file with the command and post the file here. BTW it
> will be helpful if you get vi to edit it.

My previous posting ID: 24564771
      

 

by: rtod2Posted on 2009-06-06 at 20:13:23ID: 24565143

Speaking of vi, and as you can imagine based on my questions about linux in general, I am horrible at it.  I have the charts but absolutely hate having to reference them.  It seems like there would be a vi tutor out there much like there are typing tutors.  Any recommendations?  Anyway, attached is the file.

  • xinitrc
    • 635 bytes

    still an issue with line 52

 

by: KeremEPosted on 2009-06-07 at 07:07:08ID: 24566522

Hi,

It seesm that the previous run has removed all "r" letters in the configuration. I'm sending you the default /etc/X11/xinit/xinitrc

- move the file to your cygwin home
- Launch "CygWin Bash Shell"
- copy it under /etc/X11/xinit/xinitrc with thiscommand
cp xinitrc1.txt /etc/X11/xinit/xinitrc
cp xinitrc1.txt .xinitrc
- Edit the .xinitrc with your text editor in Cygwin
- Comment the twmc &
- Save Exit
- start X via startx
- You can use any text editor of your choice. It can be an easy-to-use editor like joe or pico they are all avaliable through Cygwin Setup under "editors"

 

by: KeremEPosted on 2009-06-07 at 07:36:08ID: 24566600

Downlaod the file and copy it to your home.

  • xinitrc1.txt
    • 670 bytes

    Default Sstem-Wide xinitrc file. The extension txt was added to satisfy the EE fileuploader.

 

by: rtod2Posted on 2009-06-07 at 09:12:22ID: 24566918

say I wanted to use the editor joe or pico that are in cygwin

cmd would be joe filename or pico filename , correct?

 

by: KeremEPosted on 2009-06-07 at 13:18:57ID: 24567947

yeah exactly. Just as you do with vi. But since you say you are not used to work with vi.

 

by: KeremEPosted on 2009-06-08 at 16:36:24ID: 24577146

Any news? I'll be on leave for a week beginning on wed. So I'm trying to finalize the work for your convenience.

Cheers,
K.

 

by: rtod2Posted on 2009-06-08 at 16:51:06ID: 24577217

Thanks.  Today was CRAZY!  I'll try tomorrow.

 

by: KeremEPosted on 2009-06-08 at 16:55:55ID: 24577251

ok :)  take care

 

by: KeremEPosted on 2009-06-26 at 16:08:16ID: 24725516

Hi,

could you be able to try the solution ?

 

by: rtod2Posted on 2009-06-28 at 07:51:30ID: 24731452

yes, this is on my list of things to dive back into.  I'm very interested in seeing if this works.  I just don't have time to go back through this long thread right now.  I will soon.

 

by: rtod2Posted on 2009-08-15 at 16:56:35ID: 25107367

This is a difficult question to close due to the amount of help that was given here.  Mods, please award Kereme full points for this effort.  He certainly deserves it and much more.

The cleanest solution I have found is in my last reply here http://www.experts-exchange.com/OS/Linux/Distributions/SuSE/Q_24625912.html

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...