Wednesday, June 30, 2010

MySQL Service Could Not Start, 1067 Errors fix


If you’ve unzipped mysql out to a folder and you set it up to run as a service, like so

C:\mysql5_x64\bin\mysqld-nt.exe --install-manual

You might try to launch the service from the Control Panel -> Administrative Tools -> Services Window. But if you’re getting the error message:

‘Could not start the MySQL service on Local Computer

Error 1067: The process terminated unexpectedly.’

Running from the command line:

C:\mysql5_x64\bin\mysqld-nt.exe --console

Should work fine. So what’s the problem? You are missing your my.ini file. Create the file (you can copy one of the defaults that come with it such as my-small.ini), and make the following changes by adding the basedir & datadir lines, so it looks something like this:

# The MySQL server

[mysqld]

###################################

basedir=C:/mysql5_x64

datadir=C:\mysql5_x64/data

###################################

port = 3306

socket = /tmp/mysql.sock

If you try to launch the service again, you should feel alot happier.

How to completely remove a Printer and Print driver

To completely remove a Printer and Print driver, perform the following tasks:

1. Remove the printer from Print Manager
2. Delete the printer Drivers located in%windir%\system32\spool\drivers\w32x86\2 and/or \0 and/or \1
3. Edit the registry and delete the driver references at:

Hkey_Local_Machine\System\CurrentControlSet\Control\Print\Environments\WIndows NT x86\Drivers\Version-1 for NT 3.51

Hkey_Local_Machine\System\CurrentControlSet\Control\Print\Environments\WIndows NT x86\Drivers\Version-2 for NT 4.0

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\

For a Network printer, edit:

HKEY_CURRENT_USER\Printers\Connections\

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers\\Printers\

4. Restart the computer

Sunday, June 13, 2010

10 Steps to Securing Your Wireless Network


A wireless network is more challenging to safeguard than a traditional wired one. Here are some easy-to-follow steps to help keep your private data private and your wireless home network secure.

1. Install a firewall

A hardware or software device placed around the perimeter of your wireless home network, a firewall is the first line of defense against intruders. To learn more about setting up a firewall, read Protect Your PC—Firewalls.

2. Change default administrator passwords and usernames

At the core of your wireless home network is the access point or router. Its manufacturer provides Web pages where you first enter your username and password in order to set up your home network. Hackers can unearth these initial default settings via the Internet—so change them immediately after installing the access point or router via its Administrator Account feature.

3. Turn on compatible encryption

All wireless equipment supports a form of Wi-Fi Protected Access (WPA) or Wired Equivalent Privacy (WEP) encryption technology, which scrambles messages sent over wireless networks so no one other than you can easily read them. You need to select the strongest form of encryption that works with your wireless home network but also shares the same WPA or WEP encryption settings as your home network’s other wireless devices. (That may mean finding a “lowest common denominator” setting.)

4. Change the default network name

Known as the Service Set Identifier (SSID), the name of the wireless local area network (WLAN) must be the same for all your home network’s wireless devices for them to communicate with each other. Manufacturers of access points and routers normally ship their products with the same SSID set. While knowing just the SSID does not enable anyone to break into your home network, using a default SSID is a sign of a poorly configured network and is easy prey for hackers. So, when configuring your WLAN, change the default SSID as soon as possible to a name that you can remember and is: not easily known (doesn’t contain personal information, such as your birthday); includes both numbers and letters; and uses the maximum length allowed.

5. Activate address filtering

Each piece of wireless gear possesses a unique identifier called a Media Access Control (MAC) address. Access points and routers keep track of the MAC addresses of all wireless devices that connect to them. Many such products let you input the MAC addresses of your home equipment, which restricts your network to allow connections only from those devices. While this does not completely prevent hackers from attacking your home network, it is another helpful step toward safeguarding it.

6. Disable SSID broadcast

In wireless networking, the access point or router typically broadcasts the Service Set Identifier (SSID) over the air at regular intervals. This feature was designed for businesses and mobile hot spots, where there are many different wireless users. For your home network, though, this feature is unnecessary and also makes your network more vulnerable to hackers—so turn off the SSID broadcast by logging in to your PC’s Network Administrator setting.

7. Assign static Internet Protocol addresses to devices

Potential attackers of your home network can easily obtain valid Internet Protocol (IP) addresses from your network’s Dynamic Host Configuration Protocol (DHCP). To remedy this, disable DHCP on the router or access point, set a fixed IP address range and then match each of your connected wireless devices to it. Use a private IP range (like 10.0.0.x) to prevent your PC(s) from being reached directly from the Internet.

8. Share and communicate with care

When passing on files to others, share only what’s necessary—send the file rather than the folder, the folder rather than the hard drive and so forth. And whenever possible, protect whatever you are sharing by requiring the recipient to use a password to open it.

9. Safely position your wireless devices

Wireless signals normally reach to the exterior of your home. But sometimes they go further, across your street and into your neighbors’ homes. To minimize this kind of “leakage,” try to position your wireless devices near the center of your home, rather than by its windows. In addition, keep your wireless devices away from telephones, microwaves and other appliances that may cause interference and compromise security.

10. Shut down your home network when you’re not using it for extended intervals

The best approach to safeguarding your home network is simply to shut it down when you’re not using it. While this may be impractical if you use your home network all day, turning it off when you’re away from home or offline for considerable periods of time will definitely protect your network from hackers.

All the best and keep safe :)

Thursday, June 10, 2010

formatting a laptop using a flashdisk

Ever Struggled to format a net-book that doesn't have a CD drive?? Well i did sometime and got this guide that really worked. It works with the Acer One laptops, the EeePC and the Compaq mini's.

All the best and hope you have a coffee shop close by, STEP 8 is really loong..takes hours, but it works!

If you want to install Windows XP, but your notebook (or PC) has no CDROM, you should install Windows XP using USB Flash disk/Flash Drive/Thumb drive...
just follow this guide :

Enjoy ;)

step 1:
Buy an USB Flash Drive (at least 2GB).
When you do this tutorial, please make sure your computer/laptop/PC has a CD-ROM (or DVD).
so, now you have 2 computers, with CD-ROM support and without CD-ROM support (e.g Acer Aspire One, Asus EEE-PC).



step 2:
Download this software pack (Komku-SP-usb.exe - Download) 1.47MB



this software pack contains 3 application :

-BootSect.exe (Boot Sector Manipulation Tool)
-PeToUSB (http://GoCoding.Com)
-usb_prep8 (Prepares Windows XP Setup LocalSource for Copy to USB-Drive)

step 3:
Double click Komku-SP-usb.exe

a window will appear... and click Install


step 4:
Insert your USB Flash Drive.
When I made this tutorial, I was using 4GB Transcend USB FlashDrive...


Locate folder C:\Komku\PeToUSB\
double click PeToUSB.exe

Destination Drive : select USB Removable
check on Enable Disk Format
check on Quick Format
check on Enable LBA (FAT 16x)
Drive Label : XP-KOMKU (or whatever you want)
then click Start
Click Yes to continue....


"You are about to repartition and format a disk. Disk: .... All existing volumes and data on that disk will be lost. Are You Sure You Want To Continue?"
click Yes

Wait a few seconds...
Click OK, and you can close PeToUSB window.


step 5:
Open Command Prompt ...
Click Start > Run > type cmd > click OK

On Command Prompt window, go to directory C:\Komku\bootsect\
how to do this?
first type this cd\ and press Enter

then type cd komku\bootsect and press Enter

the result...

Don't close Command Prompt window, and go to step 6...


step 6:
on command prompt window, type bootsect /nt52 H:

H: is drive letter for my USB Flash Drive, it may be different with yours...
and press Enter

the result... "Successfully updated filesystem bootcode. Bootcode was succesfully updated on all targeted volumes."

don't close Command Prompt window, and go to step 7...


step 7:
now type this cd.. and press Enter

then type cd usb_prep8 and press Enter

type usb_prep8 again... and pres Enter


step 8:
Your command prompt window will look like this

Press any key to continue...
usb_prep8 welcome screen will appear

Prepares Windows XP LocalSource for Copy to USB-Drive:

0) Change Type of USB-Drive, currently [USB-stick]
1) Change XP Setup Source Path, currently []
2) Change Virtual TempDrive, currently [T:]
3) Change Target USB-Drive Letter, currently []
4) Make New Tempimage with XP LocalSource and Copy to USB-Drive
5) Use Existing Tempimage with XP LocalSource and Copy to USB-Drive
F) Change Log File - Simple OR Extended, currently [Simple]
Q) Quit

Enter your choice:_


now, insert your original Windows XP CD, or Windows XP with sata ahci driver to your CD/DVD ROM
and back to Command Prompt window

type 1 then press Enter...
"Browse For Folder" window will appear, select your CD/DVD drive and click OK


the result... "XP Setup Source Path" changed to G:\ (yours may be different)

now for point 2, if letter T is currently assigned to a drive in your computer, you must change it.... if not, leave it as it is
how to change it?
type 2 and press Enter...
"Enter Available Virtual DriveLetter"
for example you doesn't have drive S
so you type S and press Enter

back to usb_prep8 welcome screen...
now type 3 and press Enter...
"Please give Target USB-Drive Letter e.g type U" Enter Target USB-Drive Letter:
because my Flash drive letter is H

so, type H and press Enter...

after back to usb_prep8 welcome screen...
now type 4 and press Enter to make new temporary image with XP LocalSource and copy it to USB Flash Drive
please wait a few seconds..

"WARNING, ALL DATA ON NON-REMOVABLE DISK DRIVE T: WILL BE LOST! Proceed with Format (Y/N)?"
type Y and press Enter
please wait....
when format virtual disk complete, press any key to continue...

please wait... making of LocalSource folder is in progress...

when "Making of LocalSource folder $WIN_NT$.~LS Ready"
Press any key to continue...


"Copy TempDrive Files to USB-Drive in about 15 minutes = Yes OR STOP = End Program = No"
Click Yes, and wait...



"Would you like USB-stick to be preferred Boot Drive U: bla... bla..."
Click Yes


"Would you like to unmount the Virtual Drive ?"
Click Yes, wait a few seconds, and press any key....
press any key again to close usb_prep8...

Now, your USB Flash Drive is ready...


step 9:
Now, insert your USB Flash Drive/Flash Disk/Thumb Drive to your notebook (e.g Acer Aspire One)
go to BIOS and make USB HDD (or USB ZIP in some other machine) as primary boot device....

then boot form your USB Flash Drive....
and select "TXT Mode Setup Windows XP, Never unplug USB-Drive Until After Logon"


After Hard Disk detected, delete all partition, create single partition... and install Windows XP on that partition...
and wait...

once text mode setup is complete, computer will restart....
this time select "GUI Mode setup Windows XP, Continue Setup + Start XP"


Continue Windows XP setup.... and Done!
Windows XP Installed....



Remember, you can use this tutorial to install Windows XP on all other computers that have the option of booting from a USB.. not just Aspire One and Asus EEE-PC....

good luck!