This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin XFree86 startx Problem


On Mon, 24 Nov 2003, Hans Dekker wrote:

> 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"

Make that "${USERNAME}" (the username may contain spaces too).  However,
why bother, if you can make "$USER" be without spaces in /etc/passwd?
	Igor

> 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 escribio:
> > 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

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]