Home

Реклама

1. Прибить доменный профиль.
2. Зайти под доменным пользователем, создастся новый профиль.
3. Выйти и зайти под админом.
4. В свойствах компьютера на закладке "Дополнительно".
5. В разделе "Профили пользователей" тыкнуть в "Параметры".
6. Выбрать старый большой локальный профиль и тыкнуть в "Копировать".
7. Указать путь к новому доменному профилю.
8. В разделе "Разрешить использование" тыкнуть "Изменить" и добавить доменный аккаунт.
9. Потыкать в "ОК" до упора.
10. Войти под доменным аккаунтом и наслаждаться

Tags:

Шербет

  • 24 Ноя, 2007 at 6:38 PM
На одну порцию (надо готовить сразу 2-3):

200гр масла сливочного
3 ст.ложки молока
3 ст.ложки какао
1,5 стакана сах.песку
Положить в кастрюлю и нагреть до растворения.

Остудить до теплоты,
добавить 1 яйцо (лучше 3-4 перепелиных)
150гр ломаного печенья (типа Юбилейного)
200гр толченных (не очень мелко) грецких орехов
Всё перемешать, остудить, положить в морозильник.
Исходники:
http://msexchange.ru/articles/Moving-Exchange-Server-2007-database-Mailbox-servers.html
http://www.msexchange.org/tutorials/Moving-Exchange-Server-2007-database-Mailbox-servers.html

Замечания.

База должна быть “clean shutdown”, если нет - запускаем на нее eseutil /p
Не забыть галочку "This database can be overwritten by restore"
И скрипт get-mailbox -database e2k7srv-1\100mb-limit | move-mailbox -targetdatabase e2k7srv-2\100mb-limit -configurationonly:$true

Tags:

net time /setsntp:имя_ntp_сервера - указали, что Windows будет синхронизироваться с этим сервером NTP
net time /querysntp - проверить
net stop w32time && net start w32time - перезапустили службу времени Windows
w32tm /resync - отправили команду для принудительной синхронизации на локальный компьютер

Tags:

MailScanner

  • 19 Мар, 2007 at 2:28 PM
Ссылки
http://wiki.mailscanner.info/doku.php?id=&idx=documentation
http://mailwatch.sourceforge.net/doku.php?id=start

Установка
cd /usr/ports/mail/mailscanner
make install clean

Мониторинг
sendmail -bp -O QueueDirectory=/var/spool/mqueue.in/

Починка
mysqlcheck -p --all-databases --auto-repair

dbquery("DELETE LOW_PRIORITY FROM maillog WHERE timestamp < (now() - INTERVAL 60 DAY)");
dbquery("OPTIMIZE TABLE maillog");

Tags:

VMware

  • 21 Фев, 2007 at 11:07 AM
service vmware-vmkauthd restart
service mgmt-vmware restart

Расширение раздела до 5Гб
vmkfstools -X 5G /vmfs/volumes/ch4-1-raid10/Cluster\ Frontend\ Exchange-1/Cluster\ Frontend\ Exchange-1.vmdk

Разборки с точным временем
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=1339

Edit /etc/ntp/step-tickers so that the file looks like the following example:
0.vmware.pool.ntp.org
1.vmware.pool.ntp.org
2.vmware.pool.ntp.org

Edit the contents of the default /etc/ntp.conf
restrict 127.0.0.1
restrict default kod nomodify notrap
server 0.vmware.pool.ntp.org
server 1.vmware.pool.ntp.org
server 2.vmware.pool.ntp.org
driftfile /var/lib/ntp/drift
logfile /var/log/ntp.log

To enable the NTP daemon to autostart when the server is rebooted, run:
chkconfig --level 345 ntpd on

esxcfg-firewall --enableService ntpClient
service ntpd restart

Now you can set the local hardware clock to the NTP synchronized local system time.
hwclock --systohc

watch "ntpq -p"

Tags:

.bash_profile

  • 19 Янв, 2007 at 2:16 PM
# .bash_profile - Bourne Again SHell configuration file for login shells.
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:$HOME/bin; export PATH
# file permissions: rwxr-xr-x
umask 022
BLOCKSIZE=K; export BLOCKSIZE
EDITOR=vi; export EDITOR
PAGER=/usr/bin/more; export PAGER
# set ENV to a file invoked each time bash is started for interactive use.
ENV=$HOME/.shrc; export ENV

# some useful aliases
alias h='fc -l'
alias j=jobs
alias m=$PAGER
alias ll='ls -laFo'
alias l='ls -l'
alias g='egrep -i'

# set prompt
PS1="`whoami`@`hostname | sed 's/\..*//'`"
case `id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac

Tags:

Apache

  • 19 Янв, 2007 at 1:35 PM

I think the best way to hide PHP on Apache and Apache itself is this:

httpd.conf
-------------
# ...
# Minimize 'Server' header information
ServerTokens Prod
# Disable server signature on server generated pages
ServerSignature Off
# ...
# Set default file type to PHP
DefaultType application/x-httpd-php
# ...

php.ini
------------
; ...
expose_php = Off
; ...

How do I create a self-signed SSL Certificate for testing purposes?

  1. Make sure OpenSSL is installed and in your PATH.

  2. Run the following command, to create server.key and server.crt files:
    $ openssl req -new -x509 -nodes -days 3650 -out server.crt -keyout server.key

Tags:

pkg_add -r bash [mc, lynx, portupgrade]

Обновление софта
portsdb -Uu
portupgrade -arR

Обновление портов
portsnap fetch extract
добавить в crontab
13      4       *       *       *       root    /usr/sbin/portsnap cron > /dev/null 2>&1
portsnap update

Tags: