To be able to connect Windows XP SP2 to a secured wireless network with WPA2 encryption, you need to install add-on:


Windows XP SP2 WPA2

Note, you can install it only on Windows XP SP2 (not SP3)

Quite often I make system images of Windows OS using Sysprep. The latest delivery of Dell laptops with preinstalled Windows happily greeted me the message “A fatal error occurred while trying to sysprep the machine.” The same problem occurred after installing OS from a DVD, without Dell utilities.  I began to suspect that it is a matter of the operating system.

sysprep fatal error eng[ENG]:  “A fatal error occurred while trying to sysprep the machine.”

sysprep error pl[PL]:  “Wystąpił błąd krytyczny podczas próby wykonania programu sysprep na komputerze”

The problem is:  WMPNetworkSvc (Windows 7 Media Player Network Sharing Service)


Before Sysprep stop wmpnetworksvc service by command-line or in services.msc

sysprep net stop

In my case the service wmpnetworksvc was disabled but Sysprep generate a fatal error.
The solution was to start, and then stop wmpnetworksvc services.

sysprep net stop start

This solution helped me to make image of Win7 OS by Sysprep tool.

For a few hours I struggled with the problem properly display the information in php of MySQL database encoded in “utf8_unicode_ci”. Uncle google did not say too much about this issue, so I decided to present a solution.

My database is Moodle Database, but it is not important.
Of course, I will describe both interfaces to MySQL: mysql and mysqli.

If you are getting characters similar to those below, this solution is for you




<!--- optional -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
$password = "password";
$hostname = "localhost";
$database = "database";
$username = "root";
$conn = mysql_connect($hostname, $username, $password) 
or die("Connecting to MySQL failed");
mysql_select_db($database, $conn) 
or die("Selecting MySQL database failed");
$result = mysql_query("SET NAMES utf8");
$sSQL = "SELECT * FROM whatever_you_like";
$result = mysql_query($sSQL, $conn);
while($row = mysql_fetch_object($result)) {
echo $row->name . " " . $row->summary . " ";


   <!--- optional -->
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
if (mysqli_connect_errno()) {
   echo "Failed to connect to MySQL: " . mysqli_connect_error();
/* change character set to utf8 */
if (!mysqli_set_charset($con, "utf8")) {
   printf("Error loading character set utf8: %s\n", mysqli_error($con));
} else {
        printf("Current character set: %s\n", mysqli_character_set_name($con));
/* SQL query */ 
$result = mysqli_query($con,"SELECT * FROM whatever_you_like");
while($row = mysqli_fetch_array($result)) {
   echo $row['name'] . " " . $row['summary'];
   print '<br>';
/* test/check encoding */
$charset = mysqli_client_encoding($con);
echo "The current character set is:" . $charset; 
echo $charset;

Recently I bought a cheap micro (mini) adapter LAN: Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN

In Fedora 16, Linux Mint 12 was installed automatically, but still not functioning properly.

My WiFi network was not found (Authentication WPA with TKIP + sign and also without authentication), but what is weird a few other WiFi networks with WPA authentication adapter has detected. Yes, it is very strange and indicates a a problem with software.

Here’s a solution for this problem:

1. Determine model of WLAN adapter and version of OS

user@computer:  lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp.  RTL8188CUS 802.11n WLAN

user@computer:   cat /etc/issue
Linux Mint 12 Lisa

user@computer:   cat /etc/issue

2. Download latest drivers for linux from here

3. Unpack drivers

4. Install drivers typing:

change permissions to run installation script
user@computer:   chmod a+rwx   ./
run installer
user@computer:   ./

5. Restrict loading old drivers by adding at the end of file /etc/modprobe.d/blacklist.conf  line:

blacklist rtl8192cu

6. Reboot computer and enjoy :)

If you installed Google Chrome and you can not run it on the root account, receiving messages like the following:

Google Chrome can not be run as root
Please start Google Chrome as a normal user. To run as root, you must specify an alternate –user-data-dir for storage of profile information


[polish version]
Przeglądarki Google Chrome nie możesz uruchamiać jako użytkownik root.
Uruchom aplikację Google Chrome jako zwykły użytkownik. Uruchamianie jako użytkownik root wymaga podania alternatywnego katalogu –user-data-dir do przechowywania danych profilu.


Here is a solution:

  • [optional]
    root@localhost > xhost +

    Turns off acccess control (all remote hosts will have access to X server).
    o turn access control back on type xhost –
  • root@localhost > vim /usr/bin/google-chrome
    Edit in any text editor Google Chrome configuration file and find line
    exec -a “$0″ “$HERE/chrome” “$@”
    and type at the end of line -user-data-dir
    so edited line should look like this:
    exec -a “$0” “$HERE/chrome” “$@” -user-data-dir

Now you should be able to run Google Chrome with root rights. Of course, for safety reasons I would advise careful with too frequent use of applications in this way.