Thursday, August 19, 2010

Telnet on SUSE Linux Enterprise Server 11

Telnet provides terminal access to a machine. The user is prompted for a user name and password which are both transmitted in cleartext. The same holds true for the ensuing communication between client and server. Because cleartext passwords should be avoided as much as possible, disable Telnet on all machines.


Configuration on Server side:

The Following package is required on Server side:-

telnet-server-1.2-134.22

use #rmp -qa |grep telnet command to ensure that telnet server is install on your machine.


Now we configure the telnet configuration file i.e. located in
/etc/xinetd.d directory. Now we move into /etc/xinetd.d directory and open telnet configuration file through vi editor, as shown below


telnet configuration file look like this


Change only disable directive
Yes to No


Save the changes and restart the xinetd services


Restart the network services


On Client Side:

There is no configuration required on client side just open the terminal on the client machine and access the server through telnet command as show below



Wednesday, August 18, 2010

Gnome and Nautilus Keyboard Shortcut Keys


Gnome Desktop Keyboard Shortcuts

Alt-F2 : Run Application Dialog

Alt-F1 : Open Applications Menu

Alt-F9 : Minimize Active Window

Alt-Tab : Rotate Current Window Focus

Ctrl+Alt+Left Arrow : Move Virtual Desktop Left

Ctrl+Alt+Right Arrow : Move Virtual Desktop Right

Ctrl+Alt+Shift+Left Arrow : Move Current Application Left

Ctrl+Alt+Shift+Right Arrow : Move Current Application Right

Ctrl+Alt+L : Lock Screen

Ctrl+Alt+Del : Log Out

Ctrl+Alt+Backspace : Restart Gnome (careful)

Nautilus File Management

Shift+Ctrl+N : Create New Folder

Ctrl+T : Delete (to Trash)

Alt+ENTER : File/Folder Properties

Ctrl+1 : Toggle View As Icons

Ctrl+2 : Toggle View As List

Shift+Right Arrow : Open Directory (List View)

Shift+Left Arrow : Close Directory (List View)

Ctrl+S : Select Pattern [enter pattern]

F2 : Rename File

Ctrl+A : Select All

Nautilus Navigation Shortcuts

Ctrl+W : Close Window

Ctrl+Shift+W : Close All Nautilus Windows

Ctrl+R : Reload Nautilus Window

Alt+Up Arrow : Open Parent

Alt+Left Arrow : Back

Alt+Right Arrow : Forward

Alt+Home : Home Folder

Ctrl+L : Location Bar

F9 : Toggle Sidepane

Ctrl+H : Show Hidden Files

Ctrl++ : Zoom In

Ctrl+- : Zoom Out

Ctrl+0 : Normal Size

Friday, August 13, 2010

How can I change the volume licensing product key on a Windows XP SP1-Based Computer?

How can I change the volume licensing product key on a Windows XP SP1-Based Computer?

There are two (legal) methods that you can use to change the product key with volume licensing media after installation. You can use either the Windows Activation Wizard graphical user interface (GUI) or a Windows Management Instrumentation (WMI) script.

The easier method to use is the Use the Activation Wizard method. Use this method when you only have a few computers on which to change the product key. The Use a Script method is best when you have a number of computers on which you have to change the product key.

Method #1: Use the Activation Wizard

If you have only a few volume licensing product keys to change, you can use the Activation Wizard.

Warning!

This document contains instructions for editing the registry. If you make any error while editing the registry, you can potentially cause Windows to fail or be unable to boot, requiring you to reinstall Windows. Edit the registry at your own risk. Always back up the registry before making any changes. If you do not feel comfortable editing the registry, do not attempt these instructions. Instead, seek the help of a trained computer specialist.

Note: Microsoft recommends that you run System Restore to create a new restore point before you complete the following steps:

  1. Click Start, and then click Run.
  2. In the Open box, type Regedit, and then click OK.
  3. In the left pane, locate and then click the following registry key:
    HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\Current Version\WPAEvents
  4. In the right pane, right-click OOBETimer, and then click Modify.
  5. Change at least one digit of this value to deactivate Windows.
  6. Click Start, and then click Run.
  7. In the Open box, type the following command, and then click OK.
    %systemroot%\system32\oobe\msoobe.exe /a
  8. Click Yes, I want to telephone a customer service representative to activate Windows, and then click Next.
  9. Click Change Product key.
  10. Type the new product key in the New key boxes, and then click Update. If you are returned to the previous window, click Remind me later, and then restart the computer.
  11. Repeat steps 6 and 7 to verify that Windows is activated. You receive the following message:Windows is already activated. Click OK to exit.
  12. Click OK.
  13. Install SP1 for Windows XP.

If you cannot restart Windows after you install SP1, press F8 when you restart the computer, select Last Known Good Configuration, and then repeat this procedure.

Method #2: Use a Script

You can create a WMI script that changes the volume licensing product key, and then deploy this script in a startup script. The sample ChangeVLKey2600.vbs script and the sample ChangeVLKeySP1 script that are described in this section use the new volume licensing key that you want to enter, in its five-part alphanumeric form, as a single argument. Microsoft recommends that you use the ChangeVLKey2600.vbs script on Windows XP-based computers that are not running SP1 and that you use the ChangeVLKeySP1.vbs script on Windows XP-based computers that are running SP1. These scripts perform the following functions:

  1. They remove the hyphen characters (-) from the five-part alphanumeric product key.
  2. They create an instance of the win32_WindowsProductActivation class. They call the SetProductKey method with the new volume licensing product key.

You can create a batch file or a CMD file that uses either of the following sample scripts, together with the new product key as an argument, and either deploy it as part of a startup script or run it from the command line to change the product key on a single computer.

ChangeVLKeySP1.vbs

\
\WMI Script - ChangeVLKey.vbs
\
\ This script changes the product key on the computer
\
\***************************************************************************

[netshelter]ON ERROR RESUME NEXT

if Wscript.arguments.count<1 then
Wscript.echo "Script can't run without VolumeProductKey argument"
Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-WYQZX"
Wscript.quit
end if

Dim VOL_PROD_KEY
VOL_PROD_KEY = Wscript.arguments.Item(0)
VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") \remove hyphens if any

for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation")

result = Obj.SetProductKey (VOL_PROD_KEY)

if err <> 0 then
WScript.Echo Err.Description, "0x" & Hex(Err.Number)
Err.Clear
end if

Next

ChangeVLKey2600.vbs

\
\ WMI Script - ChangeVLKey.vbs
\
\This script changes the product key on the computer
\
\***************************************************************************

ON ERROR RESUME NEXT

if Wscript.arguments.count<1 then
Wscript.echo "Script can't run without VolumeProductKey argument"
Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-WYQZX"
Wscript.quit
end if

Dim VOL_PROD_KEY
VOL_PROD_KEY = Wscript.arguments.Item(0)
VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") \remove hyphens if any
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents\OOBETimer" 'delete OOBETimer registry value
for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation")

result = Obj.SetProductKey (VOL_PROD_KEY)

if err <> 0 then
WScript.Echo Err.Description, "0x" & Hex(Err.Number)
Err.Clear
end if

Next

Example

The following example describes how to use the ChangeVLKeySP1.vbs script from a command line:

  1. Click Start, and then click Run.
  2. In the Open box, type the following command,
    where AB123-123AB-AB123-123AB-AB123 is the new product key that you want to
    use, and then click OK:
c:\changevlkeysp1.vbs ab123-123ab-ab123-123ab


and try using windwos key update tool from MICROSOFT.

FIREWALLS



What is a Firewall?

A computer firewall protects networked computers from intentional hostile intrusion that could compromise confidentiality or result in data corruption or denial of service. It may be a hardware device (Figure 1) or a software program (Figure 2) running on a secure host computer. In either case, it must have at least two network interfaces, one for the network it is intended to protect, and one for the network it is exposed to. A network firewall sits at the junction point or gateway between the two networks, usually a private network and a public network such as the Internet. The earliest computer firewalls were simple routers. The term "firewall" comes from the fact that by segmenting a network into different physical subnetworks, they limited the damage that could spread from one subnet to another- just like firedoors or firewalls.


Figure 1: Hardware Firewall

Hardware firewall providing protection to a Local Network


Figure 2: Computer with Firewall Software

Computer running firewall software to provide protection


What does a firewall do?

An Internet firewall examines all traffic routed between your network and the Internet to see if it meets certain criteria. If it does, it is routed between the networks, otherwise it is stopped. A network firewall filters both inbound and outbound traffic. It can also manage public access to private networked resources such as host applications. It can be used to log all attempts to enter the private network and trigger alarms when hostile or unauthorized entry is attempted. Firewalls can filter packets based on their source, destination addresses and port numbers. This is known as address filtering. Firewalls can also filter specific types of network traffic. This is also known as protocol filtering because the decision to forward or reject traffic is dependant upon the protocol used, for example HTTP, ftp or telnet. Firewalls can also filter traffic by packet attribute or state.

Wednesday, August 11, 2010

How to Enable Windows 7 GodMode

Here’s a neat Windows 7 trick that’s been doing the rounds on the Internet. It enables “GodMode,” a term devised by the Microsoft development team, which provides a single place to access all Windows settings without needing to browse options and folders in the Control Panel.

To use it:

  1. Create a new folder.

  2. GodMode windowRename the folder to

    GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

    (note that you can change the “GodMode” text, but the following period and code number are essential).

  3. The folder icon will change — double click it to show the GodMode window:

GodMode window

The window shows nearly 50 sections with quick links to configuration options. Strictly speaking, it’s not a God Mode since all the options are available elsewhere. It’s more akin to an “all tasks” list — but you may find it easier than stumbling through Windows numerous screens and panels.

How to Fix: “An Error Occurred During Directory Enumeration” in Windows XP

Last Week I got a call from my friend saying "My computer keeps restarting after there was contiunes electricity blackout" When I turn on the computer it always restart every time after displaying Windows Logo. I tried to fix the problem using Safe mode but it dosen’t work, and then I try last known good configuration but I have the same result.

To fix the issue start the computer with bootable Windows XP OS. Select second option Press "R" (To repair a Windows XP installation using Recovery Console, press "R")

Type in the administrative password and hit "Enter". If you don’t have an administrative password, simply press "Enter" to continue. This will bring you to the following command line: C:\>

Type C:\>dir to check the list of directories & files.
It prompts with “ An Error Occurred During Directory Enumeration” reason for this is that system cannot read the files in the Windows or INF directory.

At the C:\> command prompt type "Help" for a list of commands you can use.

To fix the problem use this Command line "C:\chkdsk /p /r"
Be patient as this may take a few minutes. (It may even take a few hours on a slower system). Make sure you don’t cause any interruptions once you are done with CHKDSK type in "Exit" to restart your computer, your computer will boot in normal mode.

How to Fix: “NTLDR is missing” in Windows XP

Recently there are many calls on Windows XP crashing due to Power Outage in summer season.
Fix "NTLDR" missing in Windows XP. Well there is fix to resolve the issue just follow the below steps:

1) Start the computer with Windows XP bootable CD into the computer. When prompted to press any key to boot from the CD, press any key.
2) Select second option Press "R" (To repair a Windows XP installation using Recovery Console, press "R")
3) Log into your Windows installation by pressing the "1" key and pressing enter.
4) Type in the administrative password and hit "Enter". If you don’t have an administrative password, simply press "Enter" to continue. This will bring you to the following command line: C:\>Windows
5) Copy the NTLDR and ntdetect.com files from the Windows XP CD to the C:\ directory of the hard disk type the following two commands, pressing Enter after each one:
copy d:\i386\ntldr c:\
copy d:\i386\ntdetect.com c:\
example where "d" your CD-ROM drive letter
Once NTLDR and ntdetect.com files have been successfully copied to C:\ drive remove the CD from the computer and reboot.

How to Fix: "Windows system32 config system is corrupt in Windows Server 2003"

Resolution

1. Insert your Windows Server 2003 CD and reboot from the CD drive

[To boot from CD, go to BIOS Setup option on startup and select your CD/DVD drive as the first boot drive, save the present settings and exit]

Your computer will reboot & will boot from Windows Server 2003

2. Press ‘R’ when offered the option of using the Windows Recovery Console

Recovery Console will prompt at the command prompt type the following:

C:\WINDOWS >cd system32\

this changes the current directory to C:\Windows\System32

ren config configold

This renames the config folder to configold

mkdir config

this makes a new directory called config

cd config

changes the current directory to c:\Windows\System32\Config

then type the following lines pressing enter after each one

copy c:\windows\repair\system

copy c:\windows\repair\software

copy c:\windows\repair\sam

copy c:\windows\repair\security

copy c:windows\repair\default

after each line it should say:

1 file copied

exit

Now Server will reboot

How to recover deleted mails from outlook

Helpful piece of information: Recovering deleted mails

Recovering Permanently Deleted Mails (Including Sub-Folders)

This document gives the procedure to recover permanently deleted

(using shift +del) mails from Microsoft Outlook.

Procedure:

1) First go to Run and type regedit

2)Goto:\HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\EXCHANGE\CLIENT\OPTIONS

registry key.

3) Right click options and add new DWORD VALUE (data type is REG_DWORD) and then right click and rename to DumpsterAlwaysOn. It is case sensitive.

4) Then rights click and modify and make the value 1 to turn the Recover Deleted Items menu choice on for all folders or enter 0 to turn it off.

5) Then go to Outlook, choose “Recover deleted items” option from the Tools Menu to get back your “permanently deleted” mails!

Note: As far as I know this can recover mails which were deleted by pressing shift+
del in the past 4 days only.

113 Useful RUN Windows Commands

To Access….

Run Command

Accessibility Controls access.cpl
Add Hardware Wizard hdwwiz.cpl
Add/Remove Programs appwiz.cpl
Administrative Tools control
admintools
Automatic Updates wuaucpl.cpl
Bluetooth Transfer Wizard fsquirt
Calculator calc
Certificate Manager certmgr.msc
Character Map charmap
Check Disk Utility chkdsk
Clipboard Viewer clipbrd
Command Prompt cmd
Component Services dcomcnfg
Computer Management compmgmt.msc
Date and Time Properties timedate.cpl
DDE Shares ddeshare
Device Manager devmgmt.msc
Direct X Control Panel (If Installed)* directx.cpl
Direct X Troubleshooter dxdiag
Disk Cleanup Utility cleanmgr
Disk Defragment dfrg.msc
Disk Management diskmgmt.msc
Disk Partition Manager diskpart
Display Properties control
desktop
Display Properties desk.cpl
Display Properties (w/Appearance Tab
Preselected)
control
color
Dr. Watson System
Troubleshooting Utility
drwtsn32
Driver Verifier Utility verifier
Event Viewer eventvwr.msc
File Signature Verification
Tool
sigverif
Findfast findfast.cpl
Folders Properties control
folders
Fonts control
fonts
Fonts Folder fonts
Free Cell Card Game freecell
Game Controllers joy.cpl
Group Policy Editor (XP Prof) gpedit.msc
Hearts Card Game mshearts
Iexpress Wizard iexpress
Indexing Service ciadv.msc
Internet Properties inetcpl.cpl

IP
Configuration

(Display Connection Configuration)

ipconfig /all

IP
Configuration
(Display
DNS Cache Contents)

ipconfig /displaydns

IP Configuration (Delete DNS Cache
Contents)

ipconfig /flushdns

IP
Configuration

(Release All Connections)

ipconfig /release

IP
Configuration

(Renew All Connections)

ipconfig /renew

IP
Configuration
(Refreshes
DHCP & Re-Registers DNS)

ipconfig /registerdns

IP
Configuration
(Display
DHCP Class ID)

ipconfig /showclassid

IP
Configuration
(Modifies
DHCP Class ID)

ipconfig /setclassid

Java Control Panel (If Installed) jpicpl32.cpl
Java Control Panel (If Installed) javaws
Keyboard Properties control
keyboard
Local Security Settings secpol.msc
Local Users and Groups lusrmgr.msc
Logs You Out Of Windows logoff
Microsoft Chat winchat
Minesweeper Game winmine
Mouse Properties control
mouse
Mouse Properties main.cpl
Network Connections control
netconnections
Network Connections ncpa.cpl
Network Setup Wizard netsetup.cpl

Notepad

notepad

Nview Desktop Manager (If Installed) nvtuicpl.cpl
Object Packager packager
ODBC Data Source
Administrator
odbccp32.cpl
On Screen Keyboard osk
Opens AC3 Filter (If Installed) ac3filter.cpl
Password Properties password.cpl
Performance Monitor perfmon.msc
Performance Monitor perfmon
Phone and Modem Options telephon.cpl
Power Configuration powercfg.cpl
Printers and Faxes control
printers
Printers Folder printers
Private Character Editor eudcedit
Quicktime (If Installed) QuickTime.cpl
Regional Settings intl.cpl
Registry Editor regedit
Registry Editor regedit32

Remote
Desktop

mstsc

Removable Storage ntmsmgr.msc
Removable Storage Operator
Requests
ntmsoprq.msc
Resultant Set of Policy (XP Prof) rsop.msc
Scanners and Cameras sticpl.cpl
Scheduled Tasks control
schedtasks
Security Center wscui.cpl
Services services.msc
Shared Folders fsmgmt.msc
Shuts Down Windows shutdown
Sounds and Audio mmsys.cpl
Spider Solitare Card Game spider
SQL Client Configuration cliconfg
System Configuration Editor sysedit
System Configuration Utility msconfig

System File
Checker Utility
(Scan
Immediately)

sfc /scannow

System File
Checker Utility
(Scan
Once At Next Boot)

sfc /scanonce

System File
Checker Utility
(Scan
On Every Boot)

sfc /scanboot

System File
Checker Utility
(Return
to Default Setting)

sfc /revert

System File
Checker Utility
(Purge
File Cache)

sfc /purgecache

System File Checker Utility (Set Cache Size to
size x)
sfc
/cachesize=x
System Properties sysdm.cpl
Task Manager taskmgr
Telnet Client telnet
User Account Management nusrmgr.cpl
Utility Manager utilman
Windows Firewall firewall.cpl
Windows Magnifier magnify
Windows Management
Infrastructure
wmimgmt.msc
Windows System Security Tool syskey
Windows Update Launches wupdmgr
Windows XP Tour Wizard tourstart
Wordpad write