Архив

Archive for the ‘HOW-TO’ Category

Как обновить Windows 7 Ultimate RC до Windows 7 Enterprise RTM

Использование на рабочем ноутбуке Windows 7 RC показало, что эта операционная система гораздо быстрее и удобнее в работе, чем Windows XP и Windows Vista.

Однако вышел официальный релиз, компаниям-партнерам давно доступны RTM версии – подходит время обновления.

Причем доступна партнерам именно Enterprise редакция. По информации с сайта Майкрософт, Ultimate и Enterprise полностью идентичны – просто последняя доступна для лицензирования только организациям.

Некоторое неудобство вызывало уведомление Майкрософт о том, что такое обновление будет недоступно.

И правда, запустив установку мы получим сообщение ошибке.

Но не переставлять же хорошо работающую систему, в самом деле!

Приступим.

Что делать с Windows 7 Ultimate RC

Запустить  Registry Editor (Start > Run > regedit)

Открыть раздел HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version

Заменить слово “Ultimate” на “Enterprise” в ключах ProductName и EditionID.

На этом изменение Windows 7 RC завершено.

Модификация установки WIndows 7 Enterprise

Я рекомендую использовать для установки USB (Flash) диск. Устанавливается система быстрее, чем с DVD. Носить удобнее. Да и модификации можно делать сразу, не записывая ничего на диски. Как это сделать, написано здесь:  http://blogs.technet.com/iwalker/archive/2009/01/21/windows-7-windows-server-2008-r2-c-usb.aspx

Нам остается открыть для редактирования файл \sources\cversion.ini,  заменить значение winclient на 7100 и сохранить его.

Это все. Можно запускать установку. Для обновления существующей системы это обязательно нужно сделать внутри нее.

Оригинал взят отсюда: http://www.gmtaz.com/index.php/how-to-upgrade-windows-7-rc-ultimate-to-rtm-enterprise/

Рубрики:HOW-TO, Microsoft, Windows 7 Метки: ,

Как добавить доменного пользователя в локальную группу

Иногда нужно добавить пользователя в локальнуюю  группу – например, дать ему административные права на компьютер.

Это можно сделать следующей командой:

net localgroup Administrators "DOMAIN\username" /ADD

С помощью команды net можно также добавить пользователя и в доменную группу:

net group LocalAdmins "DOMAIN\username" /ADD

Читать дальше…

Рубрики:AD, Batch programming, HOW-TO Метки: ,

Как упавший контроллер домена поднять

http://articles.techrepublic.com.com/5100-10878_11-6082663.html

хорошая статья – что делать, если упал один из контроллеров домена

Читать дальше…

Рубрики:AD, HOW-TO, Microsoft Метки: , ,

Как подружить Vista и Samba

Установив Microsoft Vista обнаружил, что с компьютера невозможно получить доступ к сетевым ресурсам на сервере Samba под Linux. Быстрый поиск показал, что причиной является отсутствие поддержки NTLMv2 на нашем Samba сервере. В Microsoft Vista по умолчанию отключены более старые протоколы аутентификации. 

Исправить эту ситуацию можно так:

1. Открыть окно «Run» для выполнения команд и запустить «secpol.msc»:

Vista and Samba

2. Выбрать «continue» когда Vista выведет предупреждение

3. Выбрать «Local Policies» –> «Security Options»:

Vista and Samba

4. Найти «Network Security: LAN Manager authentication level» и открыть. 

5. Изменить значение по-умолчанию «NTVLM2 responses only» на «LM and NTLM – use NTLMV2 session security if negotiated»:

Vista and Samba

Теперь Vista сможет работать с Samba нормально. Однако лучшим вариантом, пожалуй, является обновление Samba до 3-ей версии, где уже реализована поддержка NTVLM2. 

Нас ведь интересует безопасная работа :)

Original

Как настроить SVN+SSH

Сентябрь 25, 2008 Sharm 2 comments

0 Introduction
This Guide will explain in easy steps how to setup your Linux server
working for Subversion repository access through SSH client access.

The svn+ssh:// protocol enables you to use SSH client access is throught
the password prompt or using public private keys validation.
No Public/private key generation is necessary to use the simplified
svn+ssh protocol, but it might be a good idea, so that you can avoid
password prompts all the time when using the SVN client access.

This guide assumes that you know how to setup SSH with public/private
keys on the server and on your client, and that you already have
installed Subversion on your Linux box.

Читать дальше…

Рубрики:HOW-TO, Subversion, Unix and Linux Метки: , ,

Как добавить пользователей в группу в Linux

Сентябрь 25, 2008 Sharm 5 comments

Чтобы добавить пользователя в группу можно использовать команды useradd или usermod. Useradd создаст нового пользователя. Usermod модифицирует существующую запись, ее можно использовать для добавления существующего пользователя в группу.

Есть два типа групп – первичная и вторичная. Вся информация о пользователях сохраняется в файлах /etc/passwd,/etc/shadow и /etc/group.

Useradd – добавить нового пользователя во вторичную группу

Use useradd command to add new users to existing group (or create a new group and then add user). If group does not exist, create it. Syntax:

useradd -G {group-nameusername
Create a new user called vivek and add it to group called developers. First login as a root user (make sure group developers exists), enter:
# grep developers /etc/group
Output:

developers:x:1124:

If you do not see any output then you need to add group developers using groupadd command:
# groupadd developers
Next, add a user called vivek to group developers:
# useradd -G developers vivek
Setup password for user vivek:
# passwd vivek
Ensure that user added properly to group developers:
# id vivekOutput:

uid=1122(vivek) gid=1125(vivek) groups=1125(vivek),1124(developers)

Please note that capital G (-G) option add user to a list of supplementary groups. Each group is separated from the next by a comma, with no intervening whitespace. For example, add user jerry to groups admins, ftp, www, and developers, enter:
# useradd -G admins,ftp,www,developers jerry

Useradd – добавить нового пользователя в первичную группу

To add a user tony to group developers use following command:
# useradd -g developers tony
# id tony

uid=1123(tony) gid=1124(developers) groups=1124(developers)
Please note that small -g option add user to initial login group (primary group). The group name must exist. A group number must refer to an already existing group.

Usermod – добавить существующего пользователя в существующую группу

Add existing user tony to ftp supplementary/secondary group with usermod command using -a option ~ i.e. add the user to the supplemental group(s). Use only with -G option :
# usermod -a -G ftp tony

Change existing user tony primary group to www:
# usermod -g www tony

Рубрики:HOW-TO, Unix and Linux Метки: , ,

Как увеличить размер диска в виртуальной машине VMWARE

Август 7, 2008 Sharm 2 comments

vmware-vdiskmanager.exe -x 20Gb «C:\Virtual Machines\Windows XP\Windows XP Professional.vmdk»

Рубрики:HOW-TO, VMWARE Метки: ,

Как сделать, чтобы в CentOS под VMWARE время не убегало

Ситуация следующая:

под VMWARE Server, запущенном на Intel Core2 Quad Q6600 с Windows XP Professional x64, работают несколько виртуальных машин.

В качестве Linux системы используется CentOS 5. И под этими системами время очень сильно отстает от реальной жизни. Настройка ntpd в такой ситуации не помогает.

В принципе, можно регулярно запускать ntpdate для коррекции времени. Но в моем случае время за 10 секунд отстает на 5 секунд. Не ежесекундно же синхронизироваться :)

Нашел описание ситуации от VMWARE.

Сначала дописал в /boot/grub/grub.conf в конце строки с kernel:

clock=pit nosmp noapic nolapic

По описанию это должно решить проблему как с отставанием, так и со спешкой. Время стало спешить за 1 минуту на 10 секунд. Дело в том, что у меня не установлены VMWARE Tools. Поэтому я воспользовался альтернативным вариантом:

clock=pmtmr nosmp noapic nolapic

Первый вариант отключал коррекцию пропущенных тактов ядром, второй включает улучшенный механизм коррекции.

После последней перезагрузки время практически не уходит. Теперь со спокойной душой запустил ntpd и все пошло как по маслу!

Рубрики:HOW-TO, Unix and Linux, VMWARE Метки: , ,

Советы по обслуживанию серверов баз данных от Paul S. Randal

Several times a week I’m asked for advice on how to effectively maintain a production database. Sometimes the questions come from DBAs who are implementing new solutions and want help
fine-tuning maintenance practices to fit their new databases’ characteristics. More frequently, however, the questions come from people who are not professional DBAs but for one reason or another have been given ownership of and responsibility for a database. I like to call this role the «involuntary DBA.» The focus of this article is to provide a primer of database maintenance best-practices for all the involuntary DBAs out there.
As with the majority of tasks and procedures in the IT world, there isn’t an easy one-size-fits-all solution for effective database maintenance, but there are some key areas that nearly always need to be addressed. My top five areas of concern are (in no particular order of importance):
  • Data and log file management
  • Index fragmentation
  • Statistics
  • Corruption detection
  • Backups
An unmaintained (or poorly maintained) database can develop problems in one or more of these areas, which can eventually lead to poor application performance or even downtime and data loss.
In this article, I’ll explain why these issues matter and show you some simple ways to mitigate the problems. I will base my explanations on SQL Server­® 2005, but I’ll also highlight the major differences that you’ll find in SQL Server 2000 and the upcoming SQL Server 2008.

Читать дальше…

Рубрики:Database, HOW-TO, MS SQL Метки: ,

Как быстро установить Postgres 8 на RHEL/Centos

I want to share quick and specific instructions for the installation of the Postgres 8 database on Red Hat Enterprise Linux 5 / Centos 5. I am using Yum for this installation. To make sure that you have everything needed do:

yum list | grep postgre

and verify that you see:

postgresql.i386, postgresql-server.i386 and postgres-libs.i386 (i386 if on non-64 bit version)

Centos installation comes with postgresql-lib installed. If it does not, do:

yum install postgresql-libs

Now, the general installation. As root install postgres core:

yum install postgresql

Install postgres server:

yum install postgresql-server

Now create postgres user:

adduser postgres

Create the datafile for the database:

mkdir -p /usr/local/pgsql/data

Change ownership of the data files to the postgres user:

chown postgres /usr/local/pgsql/data

Now assume the role of a postgres user:

su - postgress

Important note: Installation of the postgres executables on Centos 5 / RHEL 5 is /usr/bin not /usr/local as Postgres official documentation suggests.

Initialize the datafiles for the database:

/usr/bin/initdb -D /usr/local/pgsql/data

Start the database with initialized datafiles as the background process ( & ) and log all messages and errors ( 2&1 ) in the logfile:

/usr/bin/postgres -D /usr/local/pgsql/data > logfile 2>&1 &

Create the test database:

/usr/bin/createdb test

Log in to the test database:

/usr/bin/psql test

You should see «Welcome to Postgres 8…» intro message and prompt:

test=#

Рубрики:Database, HOW-TO, Unix and Linux Метки: ,