Travis Zadikem wrote:
> I have read a bit about doing a cygwin install without autoit and
> don't really see anything posted after 2004 on this.  Is anyone
> currently doing this and if so are you willing to share how-to.  The
> Cygwin with Autoit seems a bit slow.
>
Download the setup.exe and download all of the packages you need.  Copy
setup.exe and setup.ini to "z:\packages\cygwin\" and copy the download
folder as "z:\packages\cygwin\release\".

Then you can install Cygwin with the following command:

todo.pl "%Z%\packages\cygwin\setup.exe -q -R %SystemDrive%\cygwin -l
%Z%\packages\cygwin\release -L"

I've also attached my cygwin.bat which also installs sshd (and opens the
port in the firewall) and cron and doesn't install any icons (-N -d). 
"updatepasswd.txt" should be named updatepasswd.sh and placed in
z:\packages\cygwin.  If you're not using a domain remove "-d" from both
commands in the script.

Here are the command line options for setup.exe:
http://www.cygwin.com/faq/faq.setup.html#faq.setup.cli

:: Optional: Cygwin
@Echo off

:: Hide the folder
todo.pl "attrib +h %SystemDrive%\cygwin"

:: Firewall rules for rsync
:: If this isn't done there will be a security prompt when using rsync
todo.pl "netsh firewall add allowedprogram %SystemDrive%\cygwin\bin\rsync.exe 
rsync ENABLE"

:: Configure SSH
todo.pl "startup-type.pl Automatic sshd"
todo.pl "netsh firewall add portopening protocol=TCP port=22 name=ssh 
mode=ENABLE scope=ALL"
todo.pl "%SystemDrive%\cygwin\bin\bash.exe --login /usr/bin/ssh-host-config 
--yes --cygwin ntsec"

:: Configure Cron
todo.pl "startup-type.pl Automatic cron"
todo.pl "%SystemDrive%\cygwin\bin\cygrunsrv.exe -I cron -p /usr/sbin/cron -a -D"

:: Update a few permissions (ssh doesn't install if it's not set)
todo.pl "%SystemDrive%\cygwin\bin\chmod +t /var"
todo.pl "%SystemDrive%\cygwin\bin\chmod 755 /var"

:: Update password/group files
todo.pl "%SystemDrive%\cygwin\bin\chmod 644 /etc/passwd /etc/group"
todo.pl "%SystemDrive%\cygwin\bin\bash.exe --login 
/home/%UserName%/scripts/updatepasswd.sh"
todo.pl "%SystemDrive%\cygwin\bin\chmod 755 
/home/%UserName%/scripts/updatepasswd.sh"
todo.pl "copy %Z%\packages\cygwin\updatepasswd.sh 
%SystemDrive%\cygwin\home\%UserName%\scripts\updatepasswd.sh"
todo.pl "mkdir -p %SystemDrive%\cygwin\home\%UserName%\scripts"

:: Install it
todo.pl "%Z%\packages\cygwin\install\setup.exe -q -R %SystemDrive%\cygwin -l 
%Z%\packages\cygwin\install\release -L -N -d"

/usr/bin/mkpasswd -l -d >/etc/passwd
/usr/bin/mkgroup -l -d >/etc/group
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to