Wednesday, 14 December 2011

Windows Automated Installation Kit for Windows 7


Applies To: Windows 7, Windows Server 2008 R2
The Windows® Automated Installation Toolkit (AIK) is a collection of tools and documentation designed to help IT Professionals deploy Windows.
The Windows AIK is ideal for highly customized environments. The tools in the AIK enable you to configure many deployment options, and they provide a high degree of flexibility. The corporate deployment environment varies from one company to another. Depending on your business needs and resources, you may choose to use all or parts of the resources available in the AIK.
Download the Windows AIK tools from this Microsoft web site:(http://go.microsoft.com/fwlink/?LinkId=136976)
For the latest information about this release, see the Windows Automated Installation Kit for Windows 7 Readme.

Tools Included with the Windows AIK

The following table shows the important tools that are included with the Windows AIK.

Windows System Image Manager (Windows SIM): 

The tool used to open Windows images, create answer files, and manage distribution shares and configuration sets.


ImageX: 

The tool used to capture, create, modify, and apply Windows images.


Deployment Image Servicing and Management (DISM):

The tool used to apply updates, drivers, and language packs to a Windows image. DISM is available in all installations of Windows 7 and Windows Server 2008 R2.


Windows Preinstallation Environment (Windows PE): 

A minimal operating system environment used to deploy Windows. The AIK includes several tools used to build and configure Windows PE environments.


User State Migration Tool (USMT): 

A tool used to migrate user data from a previous Windows operating system to Windows 7. USMT is installed as part of the AIK in the %PROGRAMFILES%\Windows AIK\Tools\USMT directory. For more information about USMT, see the User State Migration Tool User’s Guide (%PROGRAMFILES%\Windows AIK\Docs\Usmt.chm).


Creating a Shutdown/Reboot/Logoff Icon


Windows XP has a file called SHUTDOWN.EXE which allows you to easily create icons to shutdown or restart your computer.

To create a shutdown shortcut on the desktop:

Right click on an open area of the desktop
Select New / Shortcut
Enter the following:

shutdown.exe -s -t 00

Press the Next button
For the name, enter in anything you like. I just use shutdown. Click on the Finish button.

For a reboot, enter:     shutdown -r -t 00

For a logoff, enter:      shutdown -l -t 00


Shutdown [{-l|-s|-r|-a}] [-f] [-m [\\ComputerName]] [-t xx] [-c "message"] [-d[u][p]:xx:yy]

Parameters

-l - Logs off the current user, this is also the defualt. -m ComputerName takes precedence.
-s - Shuts down the local computer.
-r - Reboots after shutdown.
-a - Aborts shutdown. Ignores other parameters, except -l and ComputerName. You can only use -a during the time-out period.
-f - Forces running applications to close.
-m [\\ComputerName] - Specifies the computer that you want to shut down.
-t xx - Sets the timer for system shutdown in xx seconds. The default is 20 seconds.
-c "message" - Specifies a message to be displayed in the Message area of the System Shutdown window. You can use a maximum of 127 characters. You must enclose the message in quotation marks.







Monday, 5 December 2011

File Sharing in Linux Using Samba

Share folders in Red Hat Enterprise Linux using Samba so that it can be accessed from a computer using Windows.

Packages required:
samba
samba-common
samba-client
samba-doc

Add a new user using useradd:
#useradd jethin
#passwd jethin

Create samba password for users using smbpasswd command:
#smbpasswd -a <username>
#smbpasswd -e <username>
eg:
#smbpasswd -a jethin
then give password.
#smbpasswd -e jethin

Add the following to the configuration file in /etc/samba/smb.conf


[Folders]
comment = linux shares
path = /
public = yes
browseable = yes
writable = yes
printable = no
valid users = jethin
hosts allow = 192.168.1.

The above details can be edited according to your necessity.
Next Step:

Start the daemons:
smb,smbpasswd

Start or restart the services:
#service smb restart

To load samba on Startup:
#chkconfig smbpasswd on


Now you will be able to access all files in / from the windows computer.
Just type the ip of the linux system in Start-> run(in Windows system).
eg: \\192.168.1.112
Then type the username and samba password which you created.





Friday, 2 December 2011

Hack the root's password in Red Hat Enterprise Linux 6





Hack the root's password in RHEL6


1. Press 'a' as soon as you see the boot menu.
A screenshot is given below:



2. In the next screen you can see a command line. Tap the 'spacebar' 
3. Press '1' or 's'.
4. Then press enter.
   The system will enter the single user mode.
   After sometime when the shell appears, Type the following command:
5. passwd -d root
6. Then press Enter.
   Your root's password has been removed. 
   Now restart the system and Enjoy!