<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://klaverstyn.com.au/david/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=124.178.240.153</id>
	<title>KlavoWiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://klaverstyn.com.au/david/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=124.178.240.153"/>
	<link rel="alternate" type="text/html" href="https://klaverstyn.com.au/david/wiki/index.php?title=Special:Contributions/124.178.240.153"/>
	<updated>2026-06-04T20:40:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://klaverstyn.com.au/david/wiki/index.php?title=Mysql_commands&amp;diff=154</id>
		<title>Mysql commands</title>
		<link rel="alternate" type="text/html" href="https://klaverstyn.com.au/david/wiki/index.php?title=Mysql_commands&amp;diff=154"/>
		<updated>2008-03-12T05:29:06Z</updated>

		<summary type="html">&lt;p&gt;124.178.240.153: New page: Handy Cheat-Sheet of MySQL Commands  = From your login shell =  Creating a Database&amp;lt;br&amp;gt; &amp;lt;pre&amp;gt; mysqladmin create mydatabase &amp;lt;/pre&amp;gt;  Dropping (Removing) a Database&amp;lt;br&amp;gt; &amp;lt;pre&amp;gt; mysqladmin drop ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Handy Cheat-Sheet of MySQL Commands&lt;br /&gt;
&lt;br /&gt;
= From your login shell =&lt;br /&gt;
&lt;br /&gt;
Creating a Database&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin create mydatabase&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Dropping (Removing) a Database&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin drop mydatabase&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Populating an Existing Database from a *.sql File &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql mydatabase &amp;lt; mydatabase.sql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Dumping Database Structure and Data to a *.sql file&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqldump --opt techmanual &amp;gt; techmanual.sql;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= From within the MySQL interface =&lt;br /&gt;
&lt;br /&gt;
Starting MySQL from the Command Line&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be welcomed with the following message:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;
Your MySQL connection id is ## to server version: #.##.##&lt;br /&gt;
&lt;br /&gt;
Type &#039;help;&#039; or &#039;\h&#039; for help. Type &#039;\c&#039; to clear the buffer.&lt;br /&gt;
&lt;br /&gt;
The prompt changes to &amp;quot;mysql&amp;gt;&amp;quot;, which will be shown in each example below.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Seeing What Databases are Available&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
show databases;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
(be sure to use the semi-colon to terminate the command)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Telling MySQL to Use a Specific Database&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;use mydatabase;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Seeing What Tables are Available Within a Database&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
show tables;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Looking at the Data in a Particular Table&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
select * from [tablename];&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Adding a Database User with Password&amp;lt;br&amp;gt;&lt;br /&gt;
grant all privileges on [databasename].* to [dbusername]@localhost identified by &#039;[dbpassword]&#039;;&lt;br /&gt;
&amp;lt;pre&amp;gt;grant all privileges on mydatabase.* to joeuser@localhost identified by &#039;supersecretpasswd&#039;;&lt;br /&gt;
flush privileges;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Removing a Database User&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
delete from mysql.user where user=&#039;techgeek&#039; and host=&#039;localhost&#039;;&lt;br /&gt;
flush privileges;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Performing Search-and-Replace Actions on a Table&amp;lt;br&amp;gt;&lt;br /&gt;
update DatabaseName set TableName = REPLACE(TableName,&amp;quot;[String to Search For]&amp;quot;,&amp;quot;[String Replacement]&amp;quot;);&lt;br /&gt;
&amp;lt;pre&amp;gt;update roesublist set Grades = REPLACE(Grades,&amp;quot;Grades: Any&amp;quot;,&amp;quot;K,1,2,3,4,5,6,7,8,9,10,11,12&amp;quot;);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category : Linux]]&lt;/div&gt;</summary>
		<author><name>124.178.240.153</name></author>
	</entry>
	<entry>
		<id>https://klaverstyn.com.au/david/wiki/index.php?title=HUDlite&amp;diff=153</id>
		<title>HUDlite</title>
		<link rel="alternate" type="text/html" href="https://klaverstyn.com.au/david/wiki/index.php?title=HUDlite&amp;diff=153"/>
		<updated>2008-03-06T06:02:40Z</updated>

		<summary type="html">&lt;p&gt;124.178.240.153: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Work in Progress =&lt;br /&gt;
&lt;br /&gt;
=== What is HUDlite? ===&lt;br /&gt;
&lt;br /&gt;
HUDlite is a desktop tool that provides the users on your system the ability to manage calls, manage their presence, transfer calls, park calls, and much more&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table cellSpacing=&amp;quot;0&amp;quot; cellPadding=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;th&amp;gt;Download:&amp;lt;/th&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;&lt;br /&gt;
		[http://yum.trixbox.org/centos/4/RPMS/hudlite-server-1.4.32-1.i386.rpm hudlite-server-1.4.32-1.i386.rpm]&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;th&amp;gt;Build Date:&amp;lt;/th&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;Mon Jul 23 09:35:23 2007&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;th&amp;gt;Packager:&amp;lt;/th&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;admin@fonality.com&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
	&amp;lt;tr&amp;gt;&lt;br /&gt;
		&amp;lt;th&amp;gt;Size:&amp;lt;/th&amp;gt;&lt;br /&gt;
		&amp;lt;td&amp;gt;2.81 MB&amp;lt;/td&amp;gt;&lt;br /&gt;
	&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Step by Step Install ===&lt;br /&gt;
Download:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum install cperl-Net-DNS.i386&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
http://yum.trixbox.org/centos/4/RPMS/repodata/repoview/perl-POE-Component-Client-DNS-0-0.9803-1.2.el4.rf.html&amp;lt;br&amp;gt;&lt;br /&gt;
http://yum.trixbox.org/centos/4/RPMS/repodata/repoview/perl-POE-0-0.34-1.el4.rf.html&amp;lt;br&amp;gt;&lt;br /&gt;
http://mirror.internode.on.net/pub/cpan/modules/by-module/XML/XML-Parser-2.36.tar.gz&amp;lt;br&amp;gt;&lt;br /&gt;
http://yum.trixbox.org/centos/4/RPMS/repodata/repoview/perl-XML-Simple-0-2.14-2.2.el4.rf.html&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
http://yum.trixbox.org/centos/4/RPMS/repodata/repoview/ircd-hybrid-0-7.2.1-2.html&lt;br /&gt;
&lt;br /&gt;
=== HUDlite installation process ===&lt;br /&gt;
&amp;lt;pre&amp;gt;trixbox is the easiest and quickest server for HUDlite. trixbox has HUDlite server pre installed and configured. &lt;br /&gt;
&lt;br /&gt;
If you want to install HUDlite on your scratch built Asterisk box this is how to set it up. HUDlite server&lt;br /&gt;
should work with most versions of Linux. It has been tested to work with CentOS and Fedora.&lt;br /&gt;
&lt;br /&gt;
First you need to install a few Perl modules. &lt;br /&gt;
perl-POE-0.3401 (this version is required RPM included)&lt;br /&gt;
perl-POE-Component-Client-DNS&lt;br /&gt;
perl-XML-Parser&lt;br /&gt;
perl-XML-Simple&lt;br /&gt;
&lt;br /&gt;
you can use the RPMS that are included with this package or install from CPAN&lt;br /&gt;
&lt;br /&gt;
Next the IRC server must be installed. HUDlite uses IRC to communicate with the server. An RPM has been&lt;br /&gt;
included with this package&lt;br /&gt;
&lt;br /&gt;
RPM –i ircd-hybrid-7.2.1-1.i386.rpm&lt;br /&gt;
&lt;br /&gt;
The ircd server will start on the next reboot or type service ircd start to start it.&lt;br /&gt;
&lt;br /&gt;
The HUDlite server can be installed anywhere. We usually put it in /usr/local&lt;br /&gt;
&lt;br /&gt;
Move the ./fonality directory to /usr/local&lt;br /&gt;
&lt;br /&gt;
Next configure the connections for the HUDlite server. Edit the connect.xml file. Enter the location and port for&lt;br /&gt;
your Asterisk box and the login info for your IRC server. The default file should have the right info already.&lt;br /&gt;
&lt;br /&gt;
Now edit your context.xml&lt;br /&gt;
This has the user and password for the Asterisk Management interface and all the context information for calling&lt;br /&gt;
out and parking calls. The default should be OK for trixbox or FreePBX&lt;br /&gt;
&lt;br /&gt;
The eventmap.xml configures how Asterisk Management interface messages are formated. The default file is set up&lt;br /&gt;
for Asterisk 1.2.7. If you are using another version of Asterisk you may need to edit this file.&lt;br /&gt;
&lt;br /&gt;
Copy the files from the asterisk directory to your /etc/asterisk directory users.xml must be in a sub directory&lt;br /&gt;
called hud.&lt;br /&gt;
&lt;br /&gt;
Include extensions_hud.conf in your dial-plan&lt;br /&gt;
&lt;br /&gt;
Edit the users.xml and add an entry for each phone&lt;br /&gt;
&lt;br /&gt;
Here is an example&lt;br /&gt;
&lt;br /&gt;
SIP200 - is the name of the device. The name is created by adding the Device type (SIP or ZAP) to the name of&lt;br /&gt;
your entry for this peer in SIP.conf (usually the extension of the phone)&lt;br /&gt;
e200 - is the extension. This must be the extension number of your phone with an &amp;quot;e&amp;quot; in front of it.&lt;br /&gt;
Office Phone - is the name of the extension. (Can be anything)&lt;br /&gt;
Huduser – the HUDlite client will log in as this user&lt;br /&gt;
Pass – is the HUDlite client password&lt;br /&gt;
The next three entries are the email address, IM name, and Cell phone number of the person using HUDlite. They&lt;br /&gt;
are optional and unused at this time. They must be blank if they are not used.&lt;br /&gt;
&lt;br /&gt;
10000 – the ID of the device. The ID must be numeric and unique in the users.xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;opt&amp;gt;&lt;br /&gt;
    &amp;lt;sip200&amp;gt;&lt;br /&gt;
      &amp;lt;e200&amp;gt;Office Phone&amp;lt;/e200&amp;gt;&lt;br /&gt;
      &amp;lt;e200&amp;gt;huduser&amp;lt;/e200&amp;gt;&lt;br /&gt;
      &amp;lt;e200&amp;gt;pass&amp;lt;/e200&amp;gt;&lt;br /&gt;
      &amp;lt;e200&amp;gt;test@test.com&amp;lt;/e200&amp;gt;&lt;br /&gt;
      &amp;lt;e200&amp;gt;buddy&amp;lt;/e200&amp;gt;&lt;br /&gt;
      &amp;lt;e200&amp;gt;5551231234&amp;lt;/e200&amp;gt;&lt;br /&gt;
      &amp;lt;e200&amp;gt;10000&amp;lt;/e200&amp;gt;&lt;br /&gt;
    &amp;lt;/sip200&amp;gt;&lt;br /&gt;
 &amp;lt;/opt&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That’s it. Fire up the server by typing ./hud_lite from the command line and log in with the HUDlite client. &lt;br /&gt;
Remember the server password is password (see connect.xml)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category : Asterisk]] [[Category : Software]]&lt;/div&gt;</summary>
		<author><name>124.178.240.153</name></author>
	</entry>
	<entry>
		<id>https://klaverstyn.com.au/david/wiki/index.php?title=Samba&amp;diff=3</id>
		<title>Samba</title>
		<link rel="alternate" type="text/html" href="https://klaverstyn.com.au/david/wiki/index.php?title=Samba&amp;diff=3"/>
		<updated>2007-09-10T05:04:49Z</updated>

		<summary type="html">&lt;p&gt;124.178.240.153: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Firstly install the samba server and client&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum install samba samba-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the required applicatons are installed we can add the computer to the domain by running authconfig.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
authconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Under the User infromation select &amp;lt;strong&amp;gt;Use Winbind&amp;lt;/strong&amp;gt;&lt;br /&gt;
Under Authentication select &amp;lt;strong&amp;gt;Use Winbind Authentication&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Under the Authentication column the &amp;quot;Use MD5 Password&amp;quot; and &amp;quot;Use Shadow Passwords&amp;quot; should be automatically select.  Leave them selected.&lt;br /&gt;
&lt;br /&gt;
Security Model is ads&lt;br /&gt;
Domain is NETBIOS domain name&lt;br /&gt;
Domain Controllers is the name of a Domain Controller&lt;br /&gt;
ADS Realm is DNS (FQDN) domain name &lt;br /&gt;
by default the /bin/false is selected.&lt;br /&gt;
&lt;br /&gt;
Select Join Domain.&lt;br /&gt;
Select Ok.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Authentication]] [[Category: Shares]]&lt;/div&gt;</summary>
		<author><name>124.178.240.153</name></author>
	</entry>
	<entry>
		<id>https://klaverstyn.com.au/david/wiki/index.php?title=Samba&amp;diff=2</id>
		<title>Samba</title>
		<link rel="alternate" type="text/html" href="https://klaverstyn.com.au/david/wiki/index.php?title=Samba&amp;diff=2"/>
		<updated>2007-09-10T04:59:27Z</updated>

		<summary type="html">&lt;p&gt;124.178.240.153: New page: Firstly install the samba server and client  &amp;lt;pre&amp;gt; yum install samba samba-client &amp;lt;/pre&amp;gt;  Once the required applicatons are installed we can add the computer to the domain by running authc...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Firstly install the samba server and client&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
yum install samba samba-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the required applicatons are installed we can add the computer to the domain by running authconfig.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
authconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Under the User infromation select &amp;lt;strong&amp;gt;Use Winbind&amp;lt;/strong&amp;gt;&lt;br /&gt;
Under Authentication select &amp;lt;strong&amp;gt;Use Winbind Authentication&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Under the Authentication column the &amp;quot;Use MD5 Password&amp;quot; and &amp;quot;Use Shadow Passwords&amp;quot; should be automatically select.  Leave them selected.&lt;br /&gt;
&lt;br /&gt;
Security Model is ads&lt;br /&gt;
Domain is NETBIOS domain name&lt;br /&gt;
Domain Controllers is the name of a Domain Controller&lt;br /&gt;
ADS Realm is DNS (FQDN) domain name &lt;br /&gt;
by default the /bin/false is selected.&lt;br /&gt;
&lt;br /&gt;
Select Join Domain.&lt;br /&gt;
Select Ok.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Authentication Shares]]&lt;/div&gt;</summary>
		<author><name>124.178.240.153</name></author>
	</entry>
</feed>