Author Archives: kartook

MySql : how to create database user on mysql databbase?

to create new user on mysql database we can use below script; DB_NAME = KartookShop DB_USER = Kartook DB_PASSWORD = password HOST=localhost we want to give SELECT,INSERT,UPDATE,DELETE,CREATE,DROP permission on Kartook. GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON KartookShop.* TO ‘Kartook’@’localhost’ IDENTIFIED BY ‘password’; this will allow Kartook to connect to KartookShop database from localhost. If you want to give […]

FreeBSD :How do I disable desktop icons for "Computer," "Home," and "Trash?"

How do I disable desktop icons for “Computer,” “Home,” and “Trash?” If you do not want your desktop cluttered with the default icons for “Computer,” “Home,” and “Trash,” you can disable any or all of them. To do this, launch Applications > System Tools > Configuration Editor (gconf-editor from the command line), and go to […]

FreeBSD : How do I upgrade from gnome2-lite to the full GNOME 2.28 desktop?

How do I upgrade from gnome2-lite to the full GNOME 2.28 desktop? The Lite edition does not include all of the components of the standard GNOME 2.28 desktop. If you wish to install the full desktop, first remove the gnome2-lite package, then install the gnome2 port or package. For example: root@kartook# pkg_delete gnome2-lite Then one […]

How do I remove www from all my urls so that search engine can only rank domain.com ?

How do I remove www from all my urls so that search engine can only rank domain.com/ urls under Linux Apache web server? Add following code to your .htaccess or httpd.conf (directory directive) file: RewriteEngine On RewriteCond %{HTTP_HOST} ^www.yourdomain.com$ [NC] RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L] If you added directives to httpd.conf, restart Apache: # service httpd […]