export gen_install_cmd=/cygdrive/C/Data/`hostname`/conf/install/install-cygwin-on-`hostname`.cmd
echo $gen_install_cmd
mkdir -p `dirname $gen_install_cmd`
echo mkdir -p `dirname $gen_install_cmd`
for package in `cygcheck -c | perl -nle 'm/([a-zA-Z\.\-\+_0-9]*)\s+/g;print $1'`; do echo echo "setup-x86_64.exe -n -q -s http://cygwin.mirror.constant.com -P $package" ; done > $gen_install_cmd
Now all you need is :
EDIT THE C:\Data\%COMPUTERNAME%\conf\install\install-cygwin-on-%COMPUTERNAME%.cmd
add ( by adding new lines ) , enable ( by disabling the echo in front) or disable packages
Start - Run - type cmd
:: elavate to local admin yourself
RUNAS /profile /user:%COMPUTERNAME%\some_local_admin_user cmd.exe
::otherwise your admin will not able to the winnt dir
cd C:\Temp
C:\Data\%COMPUTERNAME%\conf\install\install-cygwin-on-%COMPUTERNAME%.cmd
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!