UnixServerAdmin

Server Administration & Management

How to hide PC/workstation from workgroup list

Start Registry Editor, and then click the following registry key:

HKEY_CURRENT_Local Machine –> System –> currentControlSet –> Services –> LanMan Server –> parameters

Click on hidden and modify value from 0 to 1

or

type following command

net config server /hidden:yes

July 9, 2011 Posted by | Windows | , | Leave a comment

How to removing Entries in the Windows Remote Desktop Connection Client

To remove entries from the Remote Desktop Connection Computer box in the Windows Remote Desktop Connection client, start Registry Editor, and then click the following registry key:

HKEY_CURRENT_USER –> Software –> Microsoft –> Terminal Server Client –> Default

Entries appear as MRUnumber, and are visible in the right pane. To delete an entry, right-click it, and then click Delete.

Removing Entries in the Mac Remote Desktop Connection Client,  To remove entries from the Remote Desktop Connection Computer box in the Mac Remote Desktop Connection client, delete the Users:Username:Library:Preferences:Microsoft:RDC Client:Recent Servers file.

Note :- The list of all destination connections (including previous connections) are stored in an MRUnumber value in the following registry key:

HKEY_CURRENT_USER –> Software –> Microsoft –> Terminal Server Client –> Default

Every new connection is given the value of MRU0, and the other values are then sequentially moved down in number. The MRU value can contain a Fully Qualified Domain Name or an IP address of the computer to which you connect.

For example:
MRU0 REG_SZ 192.168.16.60
MRU1 REG_SZ computer.domain.com

July 8, 2011 Posted by | Windows | , | 1 Comment

SVCHOST.EXE Application Error

Verify Windows Update Service Settings

Click on Start, Run and type the following command in the open box and click OK

services.msc

Find the Automatic Updates

Service and double-click on it.

–> Click on the Log On Tab and make sure the “Local System Account” is selected as the logon account and the box for “allow service to interact with desktop” is UNCHECKED. Under the Hardware Profile section in the Log On Tab, make sure the service is enabled.

–> On the General Tab, the Startup Type should be Automatic, if not, drop the box down and select Automatic. Under “Service Status” on the General tab, the service should be Started, click the Start button enable it. Repeat the steps above for the service “Background Intelligent Transfer Service (BITS)”

Re-Register Windows Update DLLs

–> Click on Start, Run, and type CMD and click ok

–> In the black command window type the following command and press Enter

1. REGSVR32 WUAPI.DLL

Wait until you receive the “DllRegisterServer in WUAPI.DLL succeeded” message and click OK
Repeat the last two steps above for each of the following commands:

2. REGSVR32 WUAUENG.DLL
3. REGSVR32 WUAUENG1.DLL
4. REGSVR32 ATL.DLL
5. REGSVR32 WUCLTUI.DLL
6. REGSVR32 WUPS.DLL
7. REGSVR32 WUPS2.DLL
8. REGSVR32 WUWEB.DLL

Remove Corrupted Windows Update Files

At the command prompt, type the following command and press Enter

net stop WuAuServ  Still at the command prompt,

type cd %windir% and press Enter
In the opened folder, type the following command and press Enter to rename the SoftwareDistribution Folder

ren SoftwareDistribution SD_OLD
Restart the Windows Update Service by typing the following at the command prompt

net start WuAuServ
type Exit and Press Enter to close the command prompt

Reboot Windows

click on Start, Shut Down, and Restart to reboot Windows XP

July 7, 2011 Posted by | Windows | | Leave a comment

How to make firefox speed 5x

NOS for Firefox (make firefox speed 5x)  Just fit the NOS in your firefox (Fast Five)

1. Open Firefox and in the address bar type about:config.

2. Click on “I’ll be careful, I promise“

3. Use the search bar above to look for network.http.pipelining and double click on it to set it’s value to True.

4. Create a new boolean value named network.http.pipelining.firstrequest and set that to True, as well.

5. Find network.http.pipelining.maxrequests, double click on it, and change its value to 8.

6. Look for network.http.proxy.pipelining and set it to True.

7. Create two new integers named nglayout.initialpaint.delay and content.notify.interval, set them to 0.

8. Restart your browser.

All done. You should feel the browser is 5x more responsive than before while navigating websites.

July 6, 2011 Posted by | Tips & Tricks, Unix/Linux, Windows | , , , | Leave a comment

When regedit is not open/access in adminstrative account in Windows

If you have Windows, register editor[regedit] is not open and access to an administrative user account, you could change the registry editor options in the Group Policy Editor.

1. Click Start, Run
2. Type GPEDIT.MSC and Press Enter
3. Go to the following location
* User Configuration
* Administrative Templates
* System
4. In the Settings Window, find the option for “Prevent Access to Registry Editing Tools” and double-click on it to change.
5. Select Disabled or Not Configured and choose OK
6. Close the Group Policy Editor and restart your computer
7. Try opening REGEDIT again

July 4, 2011 Posted by | Windows | | Leave a comment

How to disable USP Port in Windows

To disable the access to USB port, in windows XP and 2000, follow the steps below :-

1. Click Start, and then click Run.

2. In the Open box, type regedit, and then click OK.

3. Locate, and then click the following registry key:

HKEY_LOCAL_MACHINE –> SYSTEM –> CurrentControlSet –> Services –> UsbStor

4. In the right pane, double-click Start.

5. In the Value data box, type 4, click Hexadecimal (if it is not already selected), and then click OK.

6. Quit Registry Editor.

To re-enable a disabled port, follow these steps below :-

1. Click Start, and then click Run.

2. In the Open box, type regedit, and then click OK.

3. Locate, and then click the following registry key:

HKEY_LOCAL_MACHINE –> SYSTEM –> CurrentControlSet –> Services –> UsbStor

4. In the right pane, double-click Start.

5. In the Value data box, type 3, click Hexadecimal (if it is not already selected), and then click OK.

6. Quit Registry Editor.

June 28, 2011 Posted by | Windows | , , | 1 Comment

How to connect BSNL EVDO Connection in CentOS/RHEL

Here’s how you can configure a BSNL CDMA data modem to work in Linux. The device I have is a HUAWEI EC325 meant for the 144 Kb/s connection, but this guide should work fine for other BSNL devices as well (2 Mb/s device, for eg.) Let’s start off by installing the software. We’ll be needing wvdial and gnome-ppp. So let’s install that.

# yum update

# yum install wvdial gnome-ppp

The next step is to setup wvdial. Follow these steps:

1. Make sure the device is plugged in.

2. Type the following command (as root)

# lsusb

3. You’ll see a bunch of lines of the form:
Bus XYZ Device XYZ: ID AAAA:BBBB [Name of Device]

4. Note down the AAAA and BBBB part of your BSNL device. In case no such device is listed, unplug all USB devices except your data card and run the command again. All entries except one will have AAAA and BBBB values of 0. Note this down.

5. Alright, now we have the vendor and product ID of the device. Type the following command:
#modprobe usbserial vendor=0xAAAA product=0xBBBB
(Here replace AAAA and BBBB with the ID you wrote down earlier)

6. Now we can configure wvdial. We’ll need to edit the wvdial.conf file. So do this:

#  vim /etc/wvdial.conf

7. Edit it so that the [Dialer Defaults] section looks like this:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = USB Modem
ISDN = 0
Phone = #777
New PPPD = yes
Modem = /dev/ttyUSB0
Username = Your BSNL username here
Password = Your BSNL Password
Baud = 460800

Here, replace username and password with the ones provided to you by BSNL.

8. Let’s test if everything’s working. Type:

# wvdial

9. If everything’s configured properly, you should see a series of lines in the terminal and the connection should be successful. You might want to fire up the browser and visit a site to check if it’s working…

10. Now let’s configure gnome-ppp. Start it up by running Run -> ‘gksudo gnome-ppp’

11. Click Setup

12. In the Modem page, set Device to “/tty/USB0”, Type -> USB Modem, Speed -> 460800, Volume -> Off, Wait for Dialtone -> Checked.

13. Leave the Networking page as it is. The Options page should look something like this:

gppp Options

14. Close the Setup page, type your username and password in the respective boxes and click connect. If you did everything right, the connection should get established.

15. All done! Now you can create a shortcut to ‘gksudo gnome-ppp’ and configure it to start at system startup (using Sessions manager in Gnome/KDE).

June 27, 2011 Posted by | Windows | , , | Leave a comment

Changing Remote Desktop Port in Windows

How to change Remote Desktop port from default TCP 3386 to any port number you want as according to your requirement. This might be needed if the default port is already used by other application on your network.

1) Let me use Windows 7 as example here: Go to Start and run registry editor program (regedit)

2) Registry editor window will appear, browse and locate following registry subkey – PortNumber. Right click to modify it.

–> HKEY_LOCAL_MACHINE –> SYSTEM –> CurrentControlSet –> Control –> TerminalServer –> WinStations –> RDP-Tcp –> PortNumber

3) Change to decimal mode, after that key in new port number. As an example, I change it to port 20000. Click OK and close registry program finally.

Note: Please note that if you have enabled firewall on this Remote Desktop enabled computer, you need to configure firewall to permit Remote Desktop traffic on new port. If not, other users will face problem to connect to this computer.

4) Restart you computer or Remote Desktop program for the change to take effect. From now on other user can only connect to this Remote Desktop enabled computer by using client program in this format: IP-address:port-number (example: 192.168.1.100:20000)

June 26, 2011 Posted by | Windows | | 5 Comments

IP Forwarding – How to make Windows as a Router

Router (Windows XP Professional)

Network Card A (connect to network A):
IP: 10.10.10.1
Netmask: 255.255.255.0
Gateway (GW): [leave it blank]

Network Card B (connect to network B):
IP: 192.168.20.1
Netmask: 255.255.255.0
Gateway (GW): [leave it blank]

Network Card C (connect to Internet via cable/dsl connection)
This information will be based on the Internet connection service which you have subscribed.
IP: 192.168.1.1
Netmask: 255.255.255.0
Gateway (GW): 192.168.1.1

Configure all the computers in network A with following information.

Network A
IP: 10.10.10.2-254
Netmask: 255.255.255.0
Gateway (GW): 10.10.10.1

Configure all the computers in network B with following information.

Network B
IP: 192.168.20.2-254
Netmask: 255.255.255.0
Gateway: 192.168.20.1

Ok.. Now it’s the time to configure IP forwarding on that router…

1) Go to Start and click Run, then type in regedit to run registry editor.

2) Registry editor window will appear. Browse for the following registry key at the left hand side window:

–> HKEY_LOCAL_MACHINE –> SYSTEM –> CurrentControlSet –> Services –> Tcpip –> Parameters –> IPEnableRouter

Right click IPEnableRouter registry object, and click Modify.

Note: Be extra careful when you deal with registry editor, wrong editing will crash you Windows OS.

3) The IPEnableRouter window will appear. Type 1 as Value data and click OK.

4) Close the regisrty editor and reboot the computer. After rebooting, all the computers should be able to access Internet and also share the file/printer between network A and B.

Note: When I did the test, IP forwarding will only work after rebooting the computer. So don’t forget to do it.

June 25, 2011 Posted by | Windows | | Leave a comment

Quick Way to Solve Page Cannot be Displayed Problem in Internet Explorer in Windows

If you encounter the page cannot be displayed in Internet Explorer in Windows XP, and you have actually configured network setting on this computer correctly, managed to ping gateway IP and could resolve domain name/URL with no problem by using nslookup, then most likely the problem is caused by unregistered dll files.

Please follow simple steps here to register dll files and test again:

1) Go to Start and click Run.

2) Run window will appear. Type cmd and click OK.

3) Command prompt window will appear, after that type following 2 commands.

regsvr32 urlmon.dll
regsvr32 actxprxy.dll

4) Continue to register following 6 dll also.

regsvr32 scrrun.dll
regsvr32 msxml.dll
regsvr32 mshtml.dll
regsvr32 shdocvw.dll
regsvr32 browseui.dll
regsvr32 msjava.dll

5) Reboot computer and open Internet Explorer to test again.

Note: Please also check whether you have enabled personal firewall (Windows firewall, antivirus firewall, etc) on this computer. Sometimes personal firewall with wrong configuration would block the IE from connecting to Internet, so you are advised to disable firewall temporary and test again.

June 24, 2011 Posted by | Windows | | Leave a comment