Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
becki:linux:cygwin [2008-04-28 12:42] becki |
becki:linux:cygwin [2016-02-15 07:45] (aktuell) becki |
||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| ===== Installation == | ===== Installation == | ||
| - | FIXME | + | Become admin and install for all users |
| + | |||
| + | http://ftp.inf.tu-dresden.de/software/windows/cygwin32/ and http://ftp.gwdg.de/pub/linux/sources.redhat.com/cygwin/ are good mirrors for Germany. | ||
| + | |||
| + | ===== Run sshd == | ||
| + | |||
| + | Install OpenSSH with the Cygwin installer. | ||
| + | |||
| + | Start cygwin bash shell //with right mouse click// as an administrator. (It is not enough to be logged into Windows as an administrator) | ||
| + | |||
| + | Run ''ssh-host-config'', answer yes to all questions, and when prompted to "Enter the value of CYGWIN for the daemon", enter 'ntsec', which enables communication with the NT authentication database. [[http://cygwin.wikia.com/wiki/Sshd|Source]] | ||
| + | |||
| + | Among others this creates new non-privileged account "sshd" and a new privileged accound "cyg_server" | ||
| + | http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1 might be useful to understand what is going on | ||
| + | |||
| + | After that, sshd can be started with ''cygrunsrv -S sshd'' and you may log in from remote via ssh with normal windows username and password. | ||
| ===== Changing the Home Directory == | ===== Changing the Home Directory == | ||
| - | Edit the home path of the user in ''/etc/passwd '' | + | <del>Edit the home path of the user in ''/etc/passwd ''</del> |
| + | |||
| + | At least since 2011-02-09 ''/etc/passwd '' doesn't contain concrete users any more. The home dir is determined from the $HOME einvironment variable. Therfore IMHO It is better to tweak $HOME in ''/etc/profile'' below the user name detection, eg: | ||
| + | <code bash> | ||
| + | # Set the user id | ||
| + | USER="`id -un`" | ||
| + | export USER | ||
| + | |||
| + | # insert something like this: | ||
| + | HOME="/cygdrive/d/$USER" | ||
| + | export HOME | ||
| + | </code> | ||
| + | |||
| + | See also [[http://cygwin.com/faq-nochunks.html#faq.setup.home|FAQ]] | ||
| ===== PHP Integration == | ===== PHP Integration == | ||
| + | |||
| + | Probably obsolete, PHP is now part of Cygwin --- 2016-02-12 11:57 | ||
| This section is about using PHP from the cygwin command line, not for dynamic web pages. Because PHP is not included in Cygwin, the [[http://de.php.net/downloads.php|windows version of PHP]] has to be installed separately. In order to call a PHP script from the Cygwin command line, you need some glue: | This section is about using PHP from the cygwin command line, not for dynamic web pages. Because PHP is not included in Cygwin, the [[http://de.php.net/downloads.php|windows version of PHP]] has to be installed separately. In order to call a PHP script from the Cygwin command line, you need some glue: | ||