Roshan Book

My Tech Notebook

Category Archives: Solutions

Remove Windows Activation Key & Licence

To remove windows activation key and Licence follow these steps:


  1. Open a command prompt as an Administrator.
  2. Enter slmgr /upk and wait for this to complete. This will uninstall the current product key from Windows and put it into an unlicensed state.
  3. Enter slmgr /cpky and wait for this to complete. This will remove the product key from the registry if it’s still there.
  4. Enter slmgr /rearm and wait for this to complete. This is to reset the Windows activation timers so the new users will be prompted to activate Windows when they put in the key.

Solving : net usershare add: cannot convert name “Everyone” to a SID + unexpected information received

Today while sharing my Public folder , I was getting this error:

“net usershare add: cannot convert name “Everyone” to a SID + unexpected information received”.

Agter searching for a while, I found solution which worked from here :


[1] Do not ever use gadmin-samba again for as long as you live.

[2] Purging the “samba” package will not resolve your discombobulated smb.conf file since that file doesn’t come from the “samba” package.

[3] Restore a factory fresh copy of smb.conf:

(**) Make sure the following file exists: /usr/share/samba/smb.conf

(**) Make a backup of your current smb.conf

  sudo cp /etc/samba/smb.conf /etc/samba/smb.confMOD

(**) Start with a fresh one:

sudo cp -a /usr/share/samba/smb.conf /etc/samba/

(**) Correct one mistake in the new one:
Find the line:

encrypt passwords = false

and change it to:

encrypt passwords = true

(**) Restart samba

sudo service smbd restart

Short course on Aptitude package manager

Source :
install software for your system, with needed dependencies as well:

sudo aptitude install

remove packages as well as orphaned dependencies:

sudo aptitude remove

remove packages and orphaned dependencies, as well as any configuration files left behind:

sudo aptitude purge

search for packages in the local apt package lists:

sudo aptitude search package-name

show details about a package:

sudo aptitude show package-name

update the local packages lists:

sudo aptitude update

upgrade any installed packages that have been updated:

sudo aptitude upgrade

upgrade packages, even if it means uninstalling certain packages:

sudo aptitude dist-upgrade

delete only out-of-date packages, but keep current ones:

sudo aptitude autoclean

delete any downloaded files necessary for installing the software on your system:

sudo aptitude clean

fix a package at it’s current version, and don’t update it:

sudo aptitude hold

How to Install Webmin on Ubuntu 11.10/11.04 Server


Webmin is a web-based interface based on Perl for system administration under Unix-based systems. With Webmin, you can easily set up, via your web browser, new user accounts, manage disk quotas, configure files, control the Apache server as well as MySQL and PHP. In this guide, we will see how to install Webmin on a server running Ubuntu 11.04 or 11.10.

Webmin Installation

Before we start, you should first install the LAMP web server on your system. Now follow these instructions to install Webmin on Ubuntu 11.10/11.04:

1. Open the Terminal and run this command:

sudo gedit /etc/apt/sources.list

At the end of the file, add these two lines, then save and close:

deb sarge contrib
deb sarge contrib

2. Import now the GPG key using these commands:

sudo apt-key add jcameron-key.asc
sudo apt-get update

3. Install now Webmin with this command:

sudo apt-get install webmin

Accessing Webmin

To start Webmin, open this address using your web browser:


To login to webmin, you need to use your root account details. If you still haven’t assigned a password to your root account, then create a root password using this command via the terminal:

sudo passwd

Enter a new password, then resubmit it to confirm. Then use your root account access details to login to webmin.


To restart Webmin, use this command:

sudo /etc/init.d/webmin restart

That’s it!


How To Install The GTK3 Mac OS X Lion Theme On Ubuntu 11.10


In this tutorial we are going to help you install the GTK3 Mac OS X Lion theme for Ubuntu 11.10 Oneiric Ocelot. This will make Ubuntu 11.10 look like the new Mac OS X Lion OS. This theme is created by MBOSSG at deviantART.

A- Mac OS X Lion Theme Installation

1. Installing Cursors

Open the terminal and run these commands:

sudo tar -xzvf Mac-Lion-Cursors.tar.gz -C /usr/share/icons

2. Downloading The Theme

[Note]: If you have already a “.themes” folder at your home directory, then skip the fisrt command.

Run these commands:

mkdir ~/.themes
tar -xzvf Mac-Lion-Theme.tar.gz -C ~/.themes

3. Installing Icons:

[Note]: If you have already an “.icons” folder at your home directory, then skip the fisrt command.

Run these commands:

mkdir ~/.icons
tar -xzvf Mac-Lion-Icons.tar.gz -C ~/.icons

B- Enabling The MAC OS X Lion Theme

Method 1

Install first GNOME Tweak Tool with this command:

sudo apt-get install gnome-tweak-tool

Launch GNOME Tweak Tool and in the Theme tab, enable these options then reboot:

Cursor theme > Mac-Lion-Cursors
Icon theme > Mac-Lion-Icons
GTK+ theme > Mac-Lion-Theme
Window theme > Mac-Lion-Theme

Method 2:

Or run simply these commands from the terminal:

gsettings set org.gnome.desktop.interface gtk-theme ‘Mac-Lion-Theme’

gsettings set org.gnome.desktop.interface icon-theme ‘Mac-Lion-Icons’

gconftool-2 –set –type string /apps/metacity/general/theme ‘Mac-Lion-Theme’





Add New Comment

Optional: Login below.


Showing 5 of 15 comments

Make you own private cloud


Today I want to introduce you one of the most amazing light weight cloud based operating system known as eyeOS. eyeOS is a cloud based operating system which can be accessed from any where , think about your desktop from everywhere any device , your documents , files & applications on the web , that means your files on your private cloud.It is a complete open source offering , simply speaking it a light weight OS that can be accessed from anywhere through a web browser , currently there are two options to start with eyeOS.

It is a complete open source offering , simply speaking it a light weight OS that can be accessed from anywhere through a web browser , currently there are two options to start with eyeOS.

1. eyeOS 1.x stable

2. eyeOS 2.x beta

eyeOS 1.9 is equipped with

* More than 250 applications from eyeOS community

* 35 available languages &

* To be used in production environments

eyeOS 2.x includes live collaboration and many more social capabilities than eyeOS 1.x & is soon going to replace the 1.x

In this article we are going to install eyeOS 1.9 stable over ubuntu 10.10 32 bit OS , so sit back , relax & watch the art in detail.


In order to install eyeOS we need to have the following first in your linux distro


  • Apache HTTP Server 2.x
  • MySQL-server and MySQL-client 5.x
  • & PHP5.2 or higher

Apache HTTP Server 2.x

Install Apache 2 in your ubuntu 10.10 as shown below.

Fig -1

MySQL-server and MySQL-client 5.x

Install mysql client in your linux distro as shown below.

Fig -2

Install mysql server as shown below.

Fig -3

You need to enter a password for the administrative user of mysql server , type in a password of your choice.

Fig -4

PHP  5.2, or higher

Install php as shown in your linux distro.

Fig – 5

eyeOS installation

Now it is time for us to get in to the real installation of eyeOS , download eyeOS 1.x stable version from their site.

Extract the to our website directory & assign chmod 777 to eyeos directory.

Fig – 6

From the console type

sudo chown -R www-data.www-data /var/www/eyeOS


sudo chmod 750 -R /var/www/eyeOS

Fig -7

Restart your pc , go to the web browser & type as shown below.

Fig – 8

Now it is time for you to set a password for the root user , you will also get an option to allow your end users to add their accounts themselves .

Fig -9

Fig -10

Now we have done with it , we are in eyeos Desktop as shown below.

Fig -11

Customizing the defaults.

The default upload size with eyeos is only 2 MB , you can change it to a value of your choice by editing the php.ini file at


In php.ini change upload_max_filesize & post_max_size values


upload_max_filesize = 200M

post_max_size = 200M

Upload size changed to 200 MB now  as shown below.

Introduction to creating desktop applications with PHP and Titanium


Excerpts : 

What tools do you need ?

  • Download and install the Titanium DeveloperThe download and installation procedure has been discussed at length in the Titanium documentation in a simple and understandable way and even the steps on creating a new project and hence I am not putting the same here. I am assuming that you will download and comeback right here to know what next.
  • Text Editor with HTML / PHP syntax highlighting – If you are a web developer then you can’t be alive without one. Use your favorite.

On my Ubuntu 10.04 I got an error like : symbol lookup error: /usr/lib/lib-something: undefined symbol: something:

I did this to get rid of it :

– cd ~/.titanium/runtime/linux/1.0.0 if you install in your home dir.

or if you install in /opt/titanium/runtime/linux/1.0.0

– rm libgobject* libgthread* libglib* libgio*

Ready ?  What next ?

Follow to read more

Howto Install Mysql Database Server with Phpmyadmin Frontend


MySQL is a widely used and fast SQL database server. It is a client/server implementation that consists of a server daemon (mysqld) and many different client programs/libraries.

Installing Mysql database in Ubuntu

sudo aptitude install mysql-server mysql-client libmysqlclient15-dev

This will complete the installation of mysql server 5.0.45 in ubuntu gutsy.

Configuring Mysql in ubuntu

MySQL initially only allows connections from the localhost ( We’ll need to remove that restriction if you wish to make it accessible to everyone on the internet. Open the file /etc/mysql/my.cnf

sudo gedit /etc/mysql/my.cnf

Find the line bind-address = and comment it out

#bind-address =

You can check your configuration using the following command

#netstat -tap

Output Looks like below

tcp 0 0 *:mysql *:* LISTEN 4997/mysqld

MySQL comes with no root password as default. This is a huge security risk. You’ll need to set one. So that the local computer gets root access as well, you’ll need to set a password for that too. The local-machine-name is the name of the computer you’re working on. For more information see here

sudo mysqladmin -u root password your-new-password

sudo mysqladmin -h root@local-machine-name -u root -p password your-new-password

sudo /etc/init.d/mysql restart

Manage Mysql using Phpmyadmin

phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web. Currently it can create and drop databases, create/drop/alter tables, delete/edit/add fields, execute any SQL statement, manage keys on fields, manage privileges,export data into various formats and is available in 54 languages. GPL License information.

Install phpmyadmin in ubuntu

sudo aptitude install phpmyadmin

This will complete the installation.

Now you need to goto http://serverip/phpmyadmin/

Login using your mysql root as username and password


How To Install Gnome Themes In Ubuntu 11.10


The complexity of GTK3 themes in Gnome 3 makes it a bit confusing to add desktop themes in Ubuntu 11.10.  This is because, there is no default tool to change Ubuntu 11.10 themes. However, you can change and manage Gnome themes in Ubuntu 11.10 with the help of a third-party application, known as the Gnome Tweak Tool. In this post, we will tell you how to install and manage Gnome 3 themes in Oneiric Ocelot.

To get started, install Gnome Tweak Tool. Once done, go to the Home directory, hit CTRL+H hotkey to show hidden files and folders, and create a new folder named .Themes via right-click context menu. Now, download your favorite Gnome 3 theme and extract it within the .Themes folder. You can download some Gnome 3 themes from the link given at the end of this post.

Change theme

Now, open the Gnome Tweak Tool from Applications –> Other –> Advanced Settings. Go to Themes section within the tool, and select the extracted theme from the drop down list. For example, you can select the GTK+, icon and Window themes to transform the look and feel of your Ubuntu desktop.

Gnome Tweak Tool

This will apply the selected Gnome theme. You can download and add a wallpaper to match your theme.


Download Gnome 3 Themes

Backing Up in Ubuntu


One of the most frequent questions on the forums is “How do I back up in Ubuntu?”

Before I started using Ubuntu, I thought the best method was just to copy and paste files using the file manager (that’s one way, of course, but it has its limitations). I’m going to recommend a few popular methods. This list isn’t comprehensive—it just gives you some places to start. You can always investigate further once you’re more comfortable with Ubuntu.

Backing Up Personal Files
rsync is what I use for backing up personal files. I used to copy and paste files using the file manager, but that would involve taking about an hour to back up all my music and erase all the old copies. rsync gives me the ability to copy over only the files that have been modified or added since the last time I backed up. Now, backups take me only about fifteen seconds a week.

The most basic way to use rsync is like this (command goes into the terminal):

rsync -av /path/to/source/directory /path/to/target/directory

For example, let’s say your username is aliceand you wanted to back up your home directory to your external hard drive that mounts at /media/usbdrive, you would use the command

rsync -av /home/alice /media/usbdrive

If rsync doesn’t seem sophisticated enough for you, you can type

man rsync

to find more options than just -av. You can also explore rdiff-backup, which allows you to store (and restore) different date-stamped versions of the same file without taking up too much extra space. And, if you hate the command-line, try installing grsync, which is the graphical frontend to rsync. Here are some screenshots of grsync in action.

Backing Up Whole Installations
Not that System Restore is foolproof in Windows, but it’s still a nice feature… at least in theory. Right now, Ubuntu doesn’t have anything like System Restore. So if you’re worried an update (especially if you have unsupported or pre-release updates set to install) might break your perfect setup, it’s best to back up your system first.

tar is an archiving command, but it can also be used to archive your entire system into one little zipped up bundle. Someone on the Ubuntu Forums wrote a nice little HowTo on backing up and restoring your entire installation using tar.

ddrescue allows you to copy a partition byte for byte to another partition or to a .img file. It’s mainly designed for recovery of a crashed drive, but you can also use it as a way to back up (a non-graphical PartImage of sorts). The trick is that the name of the package is ddrescue in the repositories, but the command to use it is dd_rescue. So if you wanted to copy /dev/hda1 to /dev/sda1, you would type in the terminal:

dd_rescue /dev/hda1 /dev/sda1

Keep in mind that /dev/hda1 cannot be in use or mounted. If that requires you using a live CD, then so be it. You can also, if you don’t want to erase /dev/sda1 completely, ddrescueto an image file and then mount the image to get the files off it:

dd_rescue /dev/hda1 /dev/sda1/hda1backup.img
sudo mkdir /recovery sudo mount /dev/sda1/hda1backup.img /recovery

I don’t have a good tutorial on it, but Clonezilla also works well for backing up single partitions or entire drives.

%d bloggers like this: