How to allow rdp:// vnc:// ssh:// and smb:// on your intranet web site

I think it is handy to have these protocols enabled on my Intranet web site. rdp://hostname[:port] vnc://hostname[:port] ssh://hostname[:port] smb://hostname[/path] Here is how to do it on Windows PC * install [[http://realvnc.com|RealVNC]] (use the installer) * install [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|putty]] (use the installer) * install [[http://urlconf.codeplex.com/|UrlConf]] * run UrlConf and enable rdp, vnc, ssh, smb protocols I use […]

Read More…

mysql basic commands

Basic commands login to mysql (from linux shell) mysql -u root -p mysql -h hostname -u root -p create database mysql> create database database_name; show all databases mysql> show databases; use a database. mysql> use database_name; To see all the tables in the db. mysql> show tables; delete a database mysql> drop database database_name; delete […]

Read More…

Delete un-used tags in WordPress

Open phpMyAdmin, make a backup of your database first Find all un-used tags SELECT * From wp_terms wt INNER JOIN wp_term_taxonomy wtt ON wt.term_id=wtt.term_id WHERE wtt.taxonomy=’post_tag’ AND wtt.count=0; Delete all un-used tags DELETE wt, wtt From wp_terms wt INNER JOIN wp_term_taxonomy wtt ON wt.term_id=wtt.term_id WHERE wtt.taxonomy=’post_tag’ AND wtt.count=0; Use ”’wtt.count< =1”’ to delete only tags […]

Read More…

How to wrap programming and command codes in MediaWiki

there are two ways to wrap long programming code or command lines Method 1 use <pre style=”white-space: normal”> and </pre> around the code Method 2 use <pre style=”overflow: auto;”> and </pre> around the code make it default Method 2 looks better, so I will make it global add to the MediaWiki:Common.css page pre {overflow: auto;} […]

Read More…

Install VMware tools in Endian 2.1

Software used: * Endian Firewall Community 2.1.1 Community Edition * VMware Server 2.01 on Windows 2003 x64 host Endian 2.1.1 Download Login as root, make a temp directory for the work: mkdir /work cd /work mount /dev/cdrom /mnt cp /mnt/VMwareTools*.gz /work umount /dev/cdrom Install wget and dependant info package. rpm -Uvh http://archives.fedoraproject.org/pub/archive/fedora/linux/core/3/i386/os/Fedora/RPMS/info-4.7-5.i386.rpm rpm -Uvh http://archives.fedoraproject.org/pub/archive/fedora/linux/core/3/i386/os/Fedora/RPMS/wget-1.9.1-17.i386.rpm […]

Read More…