public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Hans Dekker <hans.dekker.ext@juntadeandalucia.es>
To: cygwin-xfree@cygwin.com
Subject: Re: Cygwin XFree86 startx Problem
Date: Mon, 24 Nov 2003 08:10:00 -0000	[thread overview]
Message-ID: <3FC1BBC5.3020903@juntadeandalucia.es> (raw)
In-Reply-To: <Pine.GSO.4.56.0311220925440.13219@slinky.cs.nyu.edu>

Hi,

Don't know if I am answering to the right question/ problem, but I see 
some referrals to passwd, username etc. To get to login to a Unix box 
with X you can use the following script, after starting X and getting 
into the xterm box of your local machine:

 > xhost +<host> > /dev/null
 > export IPADDR=`ipconfig | grep Address | grep "10\." | cut -f 2 -d 
":" | cut -f 2 -d " "`
 > rsh <host> -l ${USERNAME} "export DISPLAY=\"${IPADDR}:0.0\";cd $HOME; 
xterm"

Use a modified startxwin.bat like:

 > start XWin -multiwindow
 > xterm -T "your app initialisation screen" -e <startscript above>


Note that the bash shell copies the MS-Windows environment to it as you 
start it. That's the referral to ${USERNAME}. We have the same usernames 
for the MS-Windows environment as well as the Unix box logging in to. 
You can fill out your username on the remote Unix box as needed.

The string Address is what grep looks for in the output of ipconfig. 
Maybe different in your locale. Check ipconfig output in your bash box.

10\. is part of our IP-address range in the Unix/ Windows network. It's 
useful to scan your IP adresses when you have more than 1 NIC or more 
than 1 IP-address.

In case you have a $HOME on the remote machine with spaces in it try cd 
\"${HOME}\" in the script.

Regards, Hans.

Igor Pechtchanski escribió:
> Robert,
> 
> Sorry, but no.  Cygwin doesn't care about the Windows username, it looks
> in /etc/passwd.  If you change the name of the Windows account, you'd have
> to regenerate the appropriate entry in /etc/passwd anyway, so why not just
> eliminate the middle step and change /etc/passwd directly?  Simply remove
> the spaces from the username and the home directory in /etc/passwd (and
> make sure you rename the directory itself), and it should be fine.
> 	Igor
> 
> On Fri, 21 Nov 2003, Robert McNulty Junior wrote:
> 
> 
>>I think these names with spaces come from when they originally set up
>>Windows NT, 2000, XP, Server 2000 with thier full name when asked create
>>users in NT, 2000, XP or 2003 Server.
>>Correct this by going into the Windows Users' account setup in Control
>>Panel, and create a user without the spaces in the name.
>>Chan, use chansengloong as your new user name. Must be done in administrater
>>mode.
>>Over all effect will be a new account under Cygwin though windows.
>>
>>
>>-----Original Message-----
>>From: cygwin-xfree-owner@cygwin.com
>>[mailto:cygwin-xfree-owner@cygwin.com]On Behalf Of Andrew Markebo
>>Sent: Friday, November 21, 2003 10:35 PM
>>To: cygwin-xfree@cygwin.com
>>Subject: Re: Cygwin XFree86 startx Problem
>>
>>
>>/ Chan Seng Loong <johncsl82@yahoo.com> wrote:
>>|[...]
>>| $ startx
>>| + userclientrc=/home/Chan Seng Loong/.xinitrc
>>| + userserverrc=/home/Chan Seng Loong/.xserverrc
>>
>>just a wild thought, homedir with space in it, try without.. edit
>>/etc/passwd.
>>
>>        /A
>>
>>--
>>   Democracy is two hungry wolves and one sheep discussing what's for
>>dinner. Liberty is a well-armed sheep willing to contest the decision.
>>
>>
>>
> 
> 



  reply	other threads:[~2003-11-24  8:10 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-22  2:02 Chan Seng Loong
2003-11-22  3:04 ` David Andersen
2003-11-22  4:40 ` Andrew Markebo
2003-11-22  4:53   ` Robert McNulty Junior
2003-11-22 23:25     ` Igor Pechtchanski
2003-11-24  8:10       ` Hans Dekker [this message]
2003-11-24 16:13         ` Igor Pechtchanski
  -- strict thread matches above, loose matches on Subject: below --
2003-11-21 19:20 Chan Seng Loong
2003-11-21 19:52 ` Igor Pechtchanski
2003-11-21 20:04   ` Harold L Hunt II
2003-11-22 14:25     ` Igor Pechtchanski
2003-11-22 18:36       ` Harold L Hunt II
2003-11-29 18:57         ` Igor Pechtchanski
2003-12-02 20:44           ` Igor Pechtchanski
2003-12-03  1:38             ` Harold L Hunt II
2003-11-20 17:54 Chan Seng Loong
2003-11-20 17:57 ` Harold L Hunt II
2003-11-20 15:26 Henrik Schultz
2003-11-20 15:33 ` Harold L Hunt II
2003-11-20 15:07 Chan Seng Loong
2003-11-20 15:24 ` Harold L Hunt II
2003-11-20 17:30 ` Igor Pechtchanski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FC1BBC5.3020903@juntadeandalucia.es \
    --to=hans.dekker.ext@juntadeandalucia.es \
    --cc=cygwin-xfree@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).