How to enable telnet and SSH in ESX 4.0

By default telnet and SSH is disabled in ESX 4.0 you have to enable through ESX console.

  • At the console of the ESX host, press ALT-F1 to access the console window.
  • type unsupported in the console and then press Enter. You will not see the text while you typing.
  • If you typed unsupported correctly, you will see a password prompt. Enter root password. Now you are ~# prompt.
  • Type cd /etc in # prompt
  • Type vi /etc/inetd.conf to view inetd.conf file
  • Press insert key of your key board. Find the lines that begins with #ssh and and #telnet by moving your cursor down. delete the # from the beginning of lines using backspace. Now Press ESC button of your keyboard. Type :wq and hit enter. It will save edited inetd.conf file.
  • Now either restart Host or restart the inetd process. To restart inetd run ps | grep inetd to determine the process ID for the inetd process. The output of the command will be something like 1299 1299 busybox  inetd, and the process ID is 1299.
  • Type kill -HUP <process_id> (kill -HUP 1299 in this example)

Note:

  • To change the port for SSH, edit the file /etc/services and change the SSH port listed in the file. repeat steps as above
  • Enabling telnet is not recommended for security concern.
  • Putty can be used for either telnet or SSH
  • there are two lines for SSH with ESXi 4.0 – one for IPv4 and the other for IPv6. Do as appropriate for you.
  • It is recommended that you enable SSH just after installing ESX and setting up management IP. Restarting ESX in production environment might disrupt systems access.

Setting up NTFS permission in file server/home drive for different active directory group/users

Download XCALS from Microsoft web site XCALS download link

Extract XCALS in c:\windows folder of your server

Create a test.cmd folder in c:\Windows folder of your server and type the following in test.cmd folder

@echo off
For /D %%A in (*) do echo y| cacls D:\Home\%%A /T /C /G “Domain Admins”:F
For /D %%A in (*) do echo y| cacls D:\Home\%%A /T /C /G /E Staff:C
For /D %%A in (*) do echo y| cacls D:\Home\%%A /T /C /G /E %%A:C
@echo on

Here Domain Admin get full rights and staff group gets Change rights. individual user gets change rights. Now go the specific folder you want to apply permission from command prompt

Type test.cmd

Don’t interrupt it will apply permissions to all folder of home drive. You modify it for your need.

Copy one folder to another retaining its NTFS permissions

Here is simple but handy command to copy a folder to another retaining all NTFS permissions

Go to command prompt and type

XCOPY \\oldserver\olddata   \\newserver\newdata  /Y /X /O /E /H /K /C

Or

XCOPY /? to find more.

Deploy custom Office 2007 using GPO or command prompt

Copy office 2007 DVD content into \\servername\software\office12

go to the folder containing office 2007 from command prompt

type setup.exe /admin

Click ok.

image

Provide installation location such as

\\servername\Software\Office12\Access.en-us\AccessMUIset.msi

\\servername\Software\Office12\Excel.en-us\ExcelMUI.msi

Add according to your need. You don’t need to mention the application which you don’t want to install.

image

type or paste product key, Accept EULA, display level none, check suppress, check none

image

Select office application you need, select not available on application you don’t want to install.  you must select office tools

image

Now click on file and save this file as custom.msp in \\servername\software\office12 folder

Create bat file, say office2007.bat write in one line

\\servername\software\office12\setup.exe /adminfile \\servername\software\office12\custom.msp

Go to GPO management in your server, expand domain, right click group policy object

Create new GPO and name it as you want say office 2007 custom

Expand group policy object, right click on office 2007 custom and Edit

image

double click on startup

image

click Add, browse and paste office2007.bat  image

press ok. Once GP refresh as set by your GPO refresh policy, it will install office 2007.

Command prompt deployment

Now open a notepad and write list of netbios name of xp machine in one column and save the file as desktop.txt

I created a bat file named deploy.bat containing the following command

@echo off

\\servername\software\office12\setup.exe /adminfile \\servername\software\office12\custom.msp

save desktop.txt and deploy.bat file in a C:\ Now go to that directory from command prompt

Type and wait until copied

FOR /F %i in (c:\desktop.txt) DO COPY Deploy.bat \\%i\c$ /Y

Type again

FOR /F %i in (c:\desktop.txt) DO AT \\%i 17:00 c:\Deploy.bat

Office 2007 will install in set time as 1700.

how to deploy Adobe CS3 Applications silently

Here is how to silently install Adobe CS3 i.e., Photoshop, Illustrator, InDesign, Flash and Dreamwever. It is tested and works perfect for me. I deployed using script not using GPO.

I copied the installation files into a network folder , then amend the setup.xml file that reside in the payloads folder. Open setup.xml using notepad, and inside between <Payloads> and </Payload> limiters, find entries like <Payload folder=”AdobeALMAnchorServiceAll”>Adobe CS3</Payload> Here, Adobe CS3 is the folder name where setup.exe resides. Change Adobe CS3 to current folder name.

Next, in the payloads folders, select the main application folder. say Photoshop, it should be AdobePhotoshop10en_US_volume. Inside, select file that end with ….proxy.xml. it should be AdobePhotoshop10en_US_volume.proxy.xml. Edit using notepad. find  <Requires> entry in the xml file, and delete all the entries between <Requires> and </Requires>, including <Requires> and </Requires> limiters.

Now, go to setup root folder where setup.exe resides, from command prompt type: setup.exe –record=1

This will perform a record of the installation without actually installing the apps. From here, you can also select which of the options you want installed. It will create install and remove xml file. I renamed them as install.xml and remove.xml and copied to network setup folder

Now, copy the following xml in a notepad and save  as application.xml.override file inside the application payload folder. Application.xml.override file located in adobe cs\payload folder

<?xml version=”1.0″ encoding=”utf-8″?>
<Configuration>
<Payload>
<Data key=”Serial” protected=”0″>12345XX</Data>
<Data key=”Registration”>Suppress</Data>
<Data key=”EULA”>Suppress</Data>
<Data key=”Updates”>Suppress</Data>
</Payload>
</Configuration>

 

Here 12345XXXXX is serial no.

Now I open a notepad and write list of netbios name of xp machine in one column and save the file as desktop.txt

I created a bat file named deploy.bat containing the following command

@echo off

“\\servername\AdobeCS3\Adobe CS3\setup.exe” –mode=silent –deploymentFile=”\\servername\AdobeCS3\install.xml”

save desktop.txt and deploy.bat file in a directory

Now go to that directory from command prompt

Type and wait until copied

FOR /F %i in (c:\desktop.txt) DO COPY Deploy.bat \\%i\c$ /Y

Type again

FOR /F %i in (c:\desktop.txt) DO AT \\%i 17:00 c:\Deploy.bat

 

Here setup will start silently @17.00

Good luck

How to configure Cisco 1242 AP to get authentication from MS IAS

This is a config for Cisco 1242 AP to get authenticated from MS IAS 2003. IAS 2003, MS DHCP and Cisco AP must be in same VLAN or LAN. Connect Cisco AP in the network. It will get an IP from DHCP. Make sure you reserve the IP in DHCP.

Log on the to AP using internet explorer using typical password i.e. Cisco (if you haven’t changed it)

Change hostname

Express Setup 

provide SSID settings and check the broadcast in beacon

 ssid manager

provide Radius IP and Radius secrete

Express Security

Enable Wireless Radio 802.11A/G

network interface

Now add this client IP and shared secret in your Radius server. All done. Now XP/Mac client get authenticate depending on what you have set in Radius server say PEAP, Certificate…

How to configure a VLAN

You need a RJ45 -> DB9 (serial port) cable. You connect it to the serial port of your computer. Then use HyperTerminal (on windows). Default port settings are:
baud: 9600
data: 8
parity: none
stop: 1
flow: none
Hit Enter after setting up HyperTerminal. That will get you into the command line.

>enable

Password: your password

Switch# show run                   to see your existing config

Switch# conf t

Switch(config)#

Switch(config)#interface fastethernet 0/11             say port# 11

Switch(config)#switchport access vlan 100              say vlan# 100

Switch(config)#end

Switch# wr                                                  to write permanently

Switch#show run                                         to see changed config