BAT-файл - ищем рекурсивно в папке и меняем раcширение
@echo off
setlocal
for /r "E:\folder\" %%i in (*.nfs) do (
echo Name of folder: %%i
ren "%%i" "%%~ni"
)
cd /usr/ports && make update
cd /usr/ports/sysutils/webmin make install cleanВ конце видим:
===> Installing rc.d startup script(s) ===> Registering installation for webmin-1.560 ===> Cleaning for p5-Authen-PAM-0.16_1 ===> Cleaning for webmin-1.560
webmin_enable="YES"Для установки всех необходимых конфигов и т.д.
/usr/local/lib/webmin/setup.shНадо будет ответить на несколько вопросов:
***********************************************************************
* Welcome to the Webmin setup script, version 1.510 *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
Installing Webmin in /usr/local/lib/webmin ...
***********************************************************************
Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.
Log file directory [/var/log/webmin]: [Жмем Enter]
***********************************************************************
Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.
Full path to perl (default /usr/bin/perl): [Жмем Enter]
Testing Perl ...
Perl seems to be installed ok
***********************************************************************
Operating system name: FreeBSD
Operating system version: 7.0
***********************************************************************
Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
- What port to run the web server on. There must not be another
web server already using this port.
- The login name required to access the web server.
- The password required to access the web server.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.
Web server port (default 10000): [Жмем Enter]
Login name (default admin): [Жмем Enter]
Login password: [Ввводим ваш пароль]
Password again:
Use SSL (y/n): [y]
***********************************************************************
Creating web server config files..
..done
Creating access control file..
..done
Creating start and stop scripts..
..done
Copying config files..
..done
Changing ownership and permissions ..
..done
Running postinstall scripts ..
syslog-ng: not found
..done
/usr/local/etc/rc.d/webmin startДля доступа к Webmin-у браузере набираем
https://your-domain.com:10000/
Полезная информация:
Для того чтобы поменять пароль есть одна простая команда:
# /usr/local/lib/webmin/changepass.pl /usr/local/etc/webmin user password[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]Экспортируем ее в файл и добавляем в реестр ПК в домен не входящих. Собственно и все.
wuauclt /detectnowСмотрим логи C:\windows\WindowsUpdate.log, идем в конец файла и находим строку вида:
2010-03-25 08:03:57:375 908 1074 PT +++++++++++ PT: Synchronizing server updates +++++++++++где example.com - имя сервера, на котором у нас крутится WSUS. Если нет, проверяем значения ключей реестра HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUServer и HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUStatusServer, их значение должно соответствовать example.com:8530. Если соответствует, перезагружаемся и проверяем еще раз, если не соответствует - правим значения, перезагружаемся, проверяем.
2010-03-25 08:03:57:375 908 1074 PT + ServiceId = {3DA21691-E39D-4DA6-8A4B-B43877BCB1B7}, Server URL = http://example.com:8530/ClientWebService/client.asmx
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]А вот здесь можно почитать подробности о ключах в реестре: http://technet.microsoft.com/en-us/library/dd939844%28WS.10%29.aspx
"AcceptTrustedPublisherCerts"=dword:00000001
"WUServer"="http://example.com:8530"
"WUStatusServer"="http://example.com:8530"
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoUpdate"=dword:00000000
"AUOptions"=dword:00000003
"ScheduledInstallDay"=dword:00000000
"ScheduledInstallTime"=dword:00000010
"NoAutoRebootWithLoggedOnUsers"=dword:00000001
"DetectionFrequencyEnabled"=dword:00000001
"DetectionFrequency"=dword:00000008
"UseWUServer"=dword:00000001