<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.bretts.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Admin</id>
		<title>Briki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.bretts.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Admin"/>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/wiki/Special:Contributions/Admin"/>
		<updated>2026-05-08T13:44:08Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MediaWiki:Sidebar&amp;diff=8527</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MediaWiki:Sidebar&amp;diff=8527"/>
				<updated>2023-03-13T10:58:29Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* navigation&lt;br /&gt;
** mainpage|mainpage&lt;br /&gt;
** Linux_Tips|Linux Tips&lt;br /&gt;
** Docker|Docker Tips&lt;br /&gt;
** Windows_10_Tips|Windows 10 Tips&lt;br /&gt;
** MacOS_X_Tips|Mac OS X Tips&lt;br /&gt;
** Machine_List|Machine List&lt;br /&gt;
** recentchanges-url|recentchanges&lt;br /&gt;
** randompage-url|randompage&lt;br /&gt;
** Special:Allpages|All Pages&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MediaWiki&amp;diff=8526</id>
		<title>MediaWiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MediaWiki&amp;diff=8526"/>
				<updated>2023-03-13T10:57:58Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Updating user passwords ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
php /var/lib/mediawiki/maintenance/changePassword.php --user=foo --password=foopass&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Editing Sidebar ==&lt;br /&gt;
Simply load [[MediaWiki:Sidebar]] and edit it (must be admin user). For formatting help, see http://meta.wikimedia.org/wiki/Help:Navigation_bar.&lt;br /&gt;
&lt;br /&gt;
== Short or v. short URLs (depending on virtual host) ==&lt;br /&gt;
* Ensure that /etc/apache2/sites-available/default (and .../ssl if appropriate) include /etc/apache2/conf.default/*&lt;br /&gt;
* Move /etc/apache2/conf.d/mediawiki1.10.conf to /etc/apache2/conf.default/mediawiki1.10.conf&lt;br /&gt;
* Create /etc/apache/conf.d/mediawiki1.10.conf and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Alias /wiki /var/lib/mediawiki1.10&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Directory /var/lib/mediawiki1.10/&amp;gt;&lt;br /&gt;
    # Allow short URLs&lt;br /&gt;
    RewriteEngine On&lt;br /&gt;
    RewriteBase /wiki&lt;br /&gt;
&lt;br /&gt;
    RewriteRule ^[^:]*\.(php|src|jpg|jpeg|png|gif|bmp|css|js|inc|phtml|pl|ico|html|shtml)$ - [L,NC]&lt;br /&gt;
    RewriteRule ^index.php?title - [L]&lt;br /&gt;
    RewriteRule ^(.*)\&amp;amp;(.*)$ $1\%26$2&lt;br /&gt;
    RewriteRule ^(.+)$ index.php?title=$1 [L,QSA]&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create /etc/apache2/sites-available/mediawiki and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
    ServerName wiki.bretts.org&lt;br /&gt;
    DocumentRoot /var/lib/mediawiki1.10&lt;br /&gt;
&lt;br /&gt;
    # Allow short URLs&lt;br /&gt;
    RewriteEngine On&lt;br /&gt;
&lt;br /&gt;
    RewriteRule ^[^:]*\.(php|src|jpg|jpeg|png|gif|bmp|css|js|inc|phtml|pl|ico|html|shtml)$ - [L,NC]&lt;br /&gt;
    RewriteRule ^index.php?title - [L]&lt;br /&gt;
    RewriteRule ^(.*)\&amp;amp;(.*)$ $1\%26$2&lt;br /&gt;
    RewriteRule ^/?(.*)$ /index.php?title=$1 [L,QSA]&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VirtualHost *:443&amp;gt;&lt;br /&gt;
    ServerName wiki.bretts.org&lt;br /&gt;
    DocumentRoot /var/lib/mediawiki1.10&lt;br /&gt;
&lt;br /&gt;
    # Allow short URLs&lt;br /&gt;
    RewriteEngine On&lt;br /&gt;
&lt;br /&gt;
    RewriteRule ^[^:]*\.(php|src|jpg|jpeg|png|gif|bmp|css|js|inc|phtml|pl|ico|html|shtml)$ - [L,NC]&lt;br /&gt;
    RewriteRule ^index.php?title - [L]&lt;br /&gt;
    RewriteRule ^(.*)\&amp;amp;(.*)$ $1\%26$2&lt;br /&gt;
    RewriteRule ^/?(.*)$ /index.php?title=$1 [L,QSA]&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/mediawiki1.10/mediawiki.conf and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if (strpos($_SERVER['SERVER_NAME'], 'wiki') === false) {&lt;br /&gt;
    $wgScriptPath       = &amp;quot;/wiki&amp;quot;;&lt;br /&gt;
    $wgArticlePath      = &amp;quot;/wiki/$1&amp;quot;;&lt;br /&gt;
} else {&lt;br /&gt;
    $wgScriptPath       = &amp;quot;&amp;quot;;&lt;br /&gt;
    $wgArticlePath      = &amp;quot;/$1&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
## Disable caching, so that we can use alternate URLs for different virtual hosts&lt;br /&gt;
$wgEnableParserCache = false;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run '''sudo a2ensite mediawiki'''&lt;br /&gt;
&lt;br /&gt;
== Setting site homepage ==&lt;br /&gt;
Edit /etc/apache2/sites-available/default and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
RedirectMatch permanent ^/$ /wiki/Main_Page&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Windows_10_Tips&amp;diff=8430</id>
		<title>Windows 10 Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Windows_10_Tips&amp;diff=8430"/>
				<updated>2021-01-26T22:59:54Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: /* Setup MPC-BE */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Setup MPC-BE ==&lt;br /&gt;
MPC-BE: https://chamconsoft.com/cmc/forums/?w3=dmlld3RvcGljLnBocD90PTE5Nw==&lt;br /&gt;
madVR: https://forum.kodi.tv/showthread.php?tid=259188&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MediaWiki:Sidebar&amp;diff=8429</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MediaWiki:Sidebar&amp;diff=8429"/>
				<updated>2021-01-26T22:58:32Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* navigation&lt;br /&gt;
** mainpage|mainpage&lt;br /&gt;
** Linux_Tips|Linux Tips&lt;br /&gt;
** Windows_10_Tips|Windows 10 Tips&lt;br /&gt;
** MacOS_X_Tips|Mac OS X Tips&lt;br /&gt;
** Machine_List|Machine List&lt;br /&gt;
** recentchanges-url|recentchanges&lt;br /&gt;
** randompage-url|randompage&lt;br /&gt;
** Special:Allpages|All Pages&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MediaWiki:Sidebar&amp;diff=8191</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MediaWiki:Sidebar&amp;diff=8191"/>
				<updated>2011-01-04T14:38:37Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* navigation&lt;br /&gt;
** mainpage|mainpage&lt;br /&gt;
** Linux_Tips|Linux Tips&lt;br /&gt;
** MacOS_X_Tips|Mac OS X Tips&lt;br /&gt;
** Windows_XP_Tips|Windows XP Tips&lt;br /&gt;
** Sony_TR_Tips|Sony TR Tips&lt;br /&gt;
** recentchanges-url|recentchanges&lt;br /&gt;
** randompage-url|randompage&lt;br /&gt;
** Special:Allpages|All Pages&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MySQL&amp;diff=8088</id>
		<title>MySQL</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MySQL&amp;diff=8088"/>
				<updated>2009-12-08T19:47:18Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Assigning passwords to users ==&lt;br /&gt;
Login to mysql as the relevant user and run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SET PASSWORD = PASSWORD('biscuit');&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating new users ==&lt;br /&gt;
Login to mysql as root, and run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GRANT ALL ON database.* TO myuser@localhost IDENTIFIED BY 'password';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Or, to create a user with no password:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GRANT ALL ON database.* TO myuser@localhost;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To allow login for a user from a remote host (2 lines are needed because, without the first, the user privileges default to those of the anonymous local user):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GRANT ALL ON database.* TO myuser@localhost IDENTIFIED BY 'password';&lt;br /&gt;
GRANT ALL ON database.* TO myuser@'%' IDENTIFIED BY 'password';&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Obviously, different privileges can be assigned to databases and tables. To revoke privileges, the syntax is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
REVOKE ALL ON database.* FROM myuser@localhost;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Recover all corrupt tables ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo find /var/lib/mysql -name *.MYI -exec myisamchk -r {} \;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Miscellaneous&amp;diff=8087</id>
		<title>Miscellaneous</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Miscellaneous&amp;diff=8087"/>
				<updated>2009-12-08T19:43:34Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Ubuntu (Edgy) Starter Guide ==&lt;br /&gt;
http://ubuntuguide.org/wiki/Ubuntu_Edgy&lt;br /&gt;
&lt;br /&gt;
== Adding startup service ==&lt;br /&gt;
To ensure a service which exists in /etc/init.d is run on startup, simply run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo update-rc.d &amp;lt;service&amp;gt; defaults&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Enabling Printing ==&lt;br /&gt;
# /bin/chmod 06555 /usr/bin/lpr /usr/bin/lprm&lt;br /&gt;
# /sbin/chkconfig lpd on  &lt;br /&gt;
&lt;br /&gt;
== Hardware ==&lt;br /&gt;
=== ATI Radeon on a custom kernel ===&lt;br /&gt;
Stock ubuntu kernels include the ATI kernel source, but if you've built the kernel yourself and you're getting '''atiddxDriScreenInit failed''' errors in Xorg.0.log, you'll need to install this manually with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install fglrx-kernel-source &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot once the install completes, and fglrx should be good to go.&lt;br /&gt;
&lt;br /&gt;
=== Logitech MX-1000 ===&lt;br /&gt;
&lt;br /&gt;
==== Feisty ====&lt;br /&gt;
Add this section to your /etc/X11/xorg.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Logitech MX-1000&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;mouse&amp;quot;&lt;br /&gt;
        Protocol        &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;CorePointer&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Name&amp;quot;            &amp;quot;PS2++ Logitech MX Mouse&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;          &amp;quot;/dev/input/event4&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Buttons&amp;quot;         &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;ZAxisMapping&amp;quot;    &amp;quot;4 5&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;Name&amp;quot; and &amp;quot;Device&amp;quot; are read from the relevant &amp;quot;Name&amp;quot; and &amp;quot;Handler&amp;quot; for your device in /proc/bus/input/devices. Then follow the remaining instructions in http://www.ubuntuforums.org/showthread.php?t=65471&lt;br /&gt;
&lt;br /&gt;
Although this document describes the steps for a USB mouse, this also works when connected to the PS2 port. Note, however, that a Logitech MX-1000 forward and back keys are 8 and 9, and '''xvkbd''' is located in /usr/bin rather than /usr/X11R6/bin. In addition, as stated in the text, part 1.4 is unnecessary.&lt;br /&gt;
&lt;br /&gt;
==== Gutsy ====&lt;br /&gt;
Add this section to your /etc/X11/xorg.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Logitech MX-1000&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;CorePointer&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Name&amp;quot;            &amp;quot;PS2++ Logitech MX Mouse&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;          &amp;quot;/dev/input/event4&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Buttons&amp;quot;         &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;ZAxisMapping&amp;quot;    &amp;quot;4 5&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;Name&amp;quot; and &amp;quot;Device&amp;quot; are read from the relevant &amp;quot;Name&amp;quot; and &amp;quot;Handler&amp;quot; for your device in /proc/bus/input/devices&lt;br /&gt;
&lt;br /&gt;
Also, I needed to append &amp;quot;SendCoreEvents&amp;quot; to the Logitech line in the layout section&lt;br /&gt;
&lt;br /&gt;
==== Hardy ====&lt;br /&gt;
Add this section to your /etc/X11/xorg.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
    Identifier &amp;quot;Logitech MX1000&amp;quot;&lt;br /&gt;
    Driver  &amp;quot;evdev&amp;quot;&lt;br /&gt;
    Option  &amp;quot;Name&amp;quot;  &amp;quot;PS2++ Logitech MX Mouse&amp;quot;&lt;br /&gt;
    Option  &amp;quot;HWHEELRelativeAxisButtons&amp;quot; &amp;quot;7 6&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;Name&amp;quot; is read from the &amp;quot;Name&amp;quot; for your device in /proc/bus/input/devices&lt;br /&gt;
&lt;br /&gt;
== Convert m4a to mp3 ==&lt;br /&gt;
* Ensure libfaad2-0 and ffmpeg (from medibuntu) are installed, and run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -ab &amp;lt;bitrate in kb/s&amp;gt; -i &amp;lt;inputfile&amp;gt; &amp;lt;outputfile&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note: the error '''output buffer too small''' can be ignored.&lt;br /&gt;
&lt;br /&gt;
== Changing default ALSA soundcard ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
asoundconf list&lt;br /&gt;
asoundconf set-default-card &amp;lt;cardname&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List hardware details ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo lshw -businfo&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Add swap space ==&lt;br /&gt;
* Create swap partition using ''fdisk''&lt;br /&gt;
&lt;br /&gt;
* Create swap filesystem&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo mkswap &amp;lt;device&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Activate swap&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo swapon &amp;lt;device&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Modify /etc/fstab to allow swap to be activated at boot time&lt;br /&gt;
&lt;br /&gt;
== Change userid/groupid for an existing user/group ==&lt;br /&gt;
* Change groupid in /etc/group&lt;br /&gt;
* Run '''sudo grpconv''' to update /etc/gshadow&lt;br /&gt;
* Change userid in /etc/passwd (and also the primary groupid for any changed groupids)&lt;br /&gt;
* Run '''sudo pwconv''' to update /etc/shadow&lt;br /&gt;
&lt;br /&gt;
== Music Naming Strategy ==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Type!!Title!!TrackNum!!Artist!!Sort Artist!!Album Artist!!Sort Album Artist!!Album!!Sort Album!!Disc!!Genre!!Compilation&lt;br /&gt;
|-&lt;br /&gt;
!!!TIT2!!TRCK!!TPE1!!TSOP!!TPE2!!TSO2!!TALB!!TSOA!!TPOS!!TCON!!TCMP&lt;br /&gt;
|-&lt;br /&gt;
|Albums||Title||TrackNum||Artist||'''BLANK'''||''Directory1''||'''BLANK''' / ''Number word''||Album||''Directory2 [Disc n]''||Disc||Genre||'''BLANK'''&lt;br /&gt;
|-&lt;br /&gt;
|Compilations||Title||TrackNum||Artist||'''BLANK'''||'''Various Artists'''||'''ZZZD'''||Album||''Directory2 [Disc n]''||Disc||Genre||'''1'''&lt;br /&gt;
|-&lt;br /&gt;
|Singles||Title||'''BLANK'''||Artist||'''BLANK'''||'''Various Artists'''||'''ZZZH'''||'''Singles'''||'''BLANK'''||'''BLANK'''||Genre||'''1'''&lt;br /&gt;
|-&lt;br /&gt;
|Soundtracks||Title||TrackNum||Artist||'''BLANK'''||'''Various Artists'''||'''ZZZL'''||Album||''Directory2 [Disc n]''||Disc||'''Soundtrack (24)'''||'''1'''&lt;br /&gt;
|-&lt;br /&gt;
|Spoken||Title||TrackNum||Artist||'''BLANK'''||''Directory1''||'''ZZZP'''||Album||''Directory2 [Disc n]''||Disc||Genre||'''BLANK'''&lt;br /&gt;
|-&lt;br /&gt;
|Fun||Title||'''BLANK'''||Artist||'''BLANK'''||'''BLANK'''||'''ZZZT'''||'''Fun'''||'''BLANK'''||'''BLANK'''||'''Comedy (57)'''||'''1'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* '''Albums''': eyeD3 --to-v2.3 --set-text-frame=&amp;quot;TSOP:&amp;quot; --set-text-frame=&amp;quot;TPE2:$artist&amp;quot; --set-text-frame=&amp;quot;TSO2:&amp;quot; --set-text-frame=&amp;quot;TSOA:$album&amp;quot; --set-text-frame=&amp;quot;TCMP:&amp;quot; $file&lt;br /&gt;
* '''Compilations''': eyeD3 --to-v2.3 --set-text-frame=&amp;quot;TSOP:&amp;quot; --set-text-frame=&amp;quot;TPE2:Various Artists&amp;quot; --set-text-frame=&amp;quot;TSO2:ZZZD&amp;quot; --set-text-frame=&amp;quot;TSOA:$album&amp;quot; --set-text-frame=&amp;quot;TCMP:1&amp;quot; $file&lt;br /&gt;
* '''Singles''': eyeD3 --to-v2.3 --set-text-frame=&amp;quot;TRCK:&amp;quot; --set-text-frame=&amp;quot;TSOP:&amp;quot; --set-text-frame=&amp;quot;TPE2:Various Artists&amp;quot; --set-text-frame=&amp;quot;TSO2:ZZZH&amp;quot; --set-text-frame=&amp;quot;TALB:Singles&amp;quot; --set-text-frame=&amp;quot;TSOA:&amp;quot; --set-text-frame=&amp;quot;TPOS:&amp;quot; --set-text-frame=&amp;quot;TCMP:1&amp;quot; $file&lt;br /&gt;
* '''Soundtracks''': eyeD3 --to-v2.3 --set-text-frame=&amp;quot;TSOP:&amp;quot; --set-text-frame=&amp;quot;TPE2:Various Artists&amp;quot; --set-text-frame=&amp;quot;TSO2:ZZZL&amp;quot; --set-text-frame=&amp;quot;TSOA:$album&amp;quot; --set-text-frame=&amp;quot;TCMP:1&amp;quot; $file&lt;br /&gt;
&lt;br /&gt;
=== File Ownership ===&lt;br /&gt;
* chown root:admin $file&lt;br /&gt;
* chmod 664 $file&lt;br /&gt;
* chown root:admin $dir&lt;br /&gt;
* chmod 775 $dir&lt;br /&gt;
&lt;br /&gt;
== Power management on VGA / DVI monitors ==&lt;br /&gt;
&lt;br /&gt;
There is a standard called DPMS where a couple of pins are used for the computer to signal the monitor to go into a low-power mode.  This is separate from any power management settings on the computer itself, and from the kde/gnome screensaver.&lt;br /&gt;
&lt;br /&gt;
The nVidia driver fully supports DPMS, and the nvidia configuration tool typically sets it up for you.  If you want to turn it off, comment out the line in the monitor section of xorg.conf.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Option &amp;quot;DPMS&amp;quot; &amp;quot;true&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== awstats: Can't locate auto/Geo/IP/isp_by_addr.al ==&lt;br /&gt;
* Change ''/usr/share/awstats/plugins/geoip_isp_maxmind.pm'' from '''isp_by_xxx''' to '''org_by_xxx'''&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MediaWiki&amp;diff=8086</id>
		<title>MediaWiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MediaWiki&amp;diff=8086"/>
				<updated>2009-12-08T19:42:41Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Editing Sidebar ==&lt;br /&gt;
Simply load [[MediaWiki:Sidebar]] and edit it (must be admin user). For formatting help, see http://meta.wikimedia.org/wiki/Help:Navigation_bar.&lt;br /&gt;
&lt;br /&gt;
== Short or v. short URLs (depending on virtual host) ==&lt;br /&gt;
* Ensure that /etc/apache2/sites-available/default (and .../ssl if appropriate) include /etc/apache2/conf.default/*&lt;br /&gt;
* Move /etc/apache2/conf.d/mediawiki1.10.conf to /etc/apache2/conf.default/mediawiki1.10.conf&lt;br /&gt;
* Create /etc/apache/conf.d/mediawiki1.10.conf and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Alias /wiki /var/lib/mediawiki1.10&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Directory /var/lib/mediawiki1.10/&amp;gt;&lt;br /&gt;
    # Allow short URLs&lt;br /&gt;
    RewriteEngine On&lt;br /&gt;
    RewriteBase /wiki&lt;br /&gt;
&lt;br /&gt;
    RewriteRule ^[^:]*\.(php|src|jpg|jpeg|png|gif|bmp|css|js|inc|phtml|pl|ico|html|shtml)$ - [L,NC]&lt;br /&gt;
    RewriteRule ^index.php?title - [L]&lt;br /&gt;
    RewriteRule ^(.*)\&amp;amp;(.*)$ $1\%26$2&lt;br /&gt;
    RewriteRule ^(.+)$ index.php?title=$1 [L,QSA]&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create /etc/apache2/sites-available/mediawiki and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
    ServerName wiki.bretts.org&lt;br /&gt;
    DocumentRoot /var/lib/mediawiki1.10&lt;br /&gt;
&lt;br /&gt;
    # Allow short URLs&lt;br /&gt;
    RewriteEngine On&lt;br /&gt;
&lt;br /&gt;
    RewriteRule ^[^:]*\.(php|src|jpg|jpeg|png|gif|bmp|css|js|inc|phtml|pl|ico|html|shtml)$ - [L,NC]&lt;br /&gt;
    RewriteRule ^index.php?title - [L]&lt;br /&gt;
    RewriteRule ^(.*)\&amp;amp;(.*)$ $1\%26$2&lt;br /&gt;
    RewriteRule ^/?(.*)$ /index.php?title=$1 [L,QSA]&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;VirtualHost *:443&amp;gt;&lt;br /&gt;
    ServerName wiki.bretts.org&lt;br /&gt;
    DocumentRoot /var/lib/mediawiki1.10&lt;br /&gt;
&lt;br /&gt;
    # Allow short URLs&lt;br /&gt;
    RewriteEngine On&lt;br /&gt;
&lt;br /&gt;
    RewriteRule ^[^:]*\.(php|src|jpg|jpeg|png|gif|bmp|css|js|inc|phtml|pl|ico|html|shtml)$ - [L,NC]&lt;br /&gt;
    RewriteRule ^index.php?title - [L]&lt;br /&gt;
    RewriteRule ^(.*)\&amp;amp;(.*)$ $1\%26$2&lt;br /&gt;
    RewriteRule ^/?(.*)$ /index.php?title=$1 [L,QSA]&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/mediawiki1.10/mediawiki.conf and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if (strpos($_SERVER['SERVER_NAME'], 'wiki') === false) {&lt;br /&gt;
    $wgScriptPath       = &amp;quot;/wiki&amp;quot;;&lt;br /&gt;
    $wgArticlePath      = &amp;quot;/wiki/$1&amp;quot;;&lt;br /&gt;
} else {&lt;br /&gt;
    $wgScriptPath       = &amp;quot;&amp;quot;;&lt;br /&gt;
    $wgArticlePath      = &amp;quot;/$1&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
## Disable caching, so that we can use alternate URLs for different virtual hosts&lt;br /&gt;
$wgEnableParserCache = false;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run '''sudo a2ensite mediawiki'''&lt;br /&gt;
&lt;br /&gt;
== Setting site homepage ==&lt;br /&gt;
Edit /etc/apache2/sites-available/default and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
RedirectMatch permanent ^/$ /wiki/Main_Page&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=XDMCP_%26_VNC&amp;diff=8085</id>
		<title>XDMCP &amp; VNC</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=XDMCP_%26_VNC&amp;diff=8085"/>
				<updated>2009-12-08T19:39:57Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Setup ==&lt;br /&gt;
=== Common ===&lt;br /&gt;
&lt;br /&gt;
* Enable XDMCP:&lt;br /&gt;
** For kdm, edit /etc/kde3/kdm/kdmrc and change Xdmcp section to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Enable=true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
** For gdm, edit /etc/gdm/gdm.conf and change xdmcp section to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Enable=true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add the following lines to /etc/services:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vnc_1024x768             5901/tcp            # VNC (1024x768)&lt;br /&gt;
vnc_1280x1024            5902/tcp            # VNC (1280x1024)&lt;br /&gt;
vnc_1920x1200            5903/tcp            # VNC (1920x1200)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* You may wish to turn off the local X-server if you're not going to access the machine locally. To do this, comment out the line ''0=Standard device=/dev/console'' in /etc/gdm/gdm.conf&lt;br /&gt;
&lt;br /&gt;
=== Feisty ===&lt;br /&gt;
&lt;br /&gt;
* Install vnc4server&lt;br /&gt;
&lt;br /&gt;
* Add the following to /etc/xinetd.d/vnc:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service vnc_1024x768&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 950x700 -depth 24 -once securitytypes=none&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
service vnc_1280x1024&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 1260x960 -depth 24 -once securitytypes=none&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
service vnc_1920x1200&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 1860x1120 -depth 24 -once securitytypes=none&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note: To enable persistent sessions (which has the downside of only enabling 1 login per service), prefix '''-inetd''' with ''':'''''n'' where ''n'' is a number beginning at 1 for the first service, and counting up.&lt;br /&gt;
&lt;br /&gt;
* Restart xinetd&lt;br /&gt;
&lt;br /&gt;
=== Gutsy ===&lt;br /&gt;
For some reason, vnc4server doesn't play nicely with gutsy and XDMCP, so instead you need to use vncserver.&lt;br /&gt;
&lt;br /&gt;
* Install vncserver (and make sure vnc4server is not installed)&lt;br /&gt;
&lt;br /&gt;
* Add the following to /etc/xinetd.d/vnc. Note that for some reason Xvnc doesn't work with depths above 16&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service vnc_1024x768&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 950x700 -depth 16 -once&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
service vnc_1280x1024&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 1260x960 -depth 16 -once&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
service vnc_1920x1200&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 1860x1120 -depth 16 -once&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note: To enable persistent sessions (which has the downside of only enabling 1 login per service), prefix '''-inetd''' with ''':'''''n'' where ''n'' is a number beginning at 1 for the first service, and counting up (and probably remove &amp;quot;-once&amp;quot; from args).&lt;br /&gt;
&lt;br /&gt;
* Restart xinetd&lt;br /&gt;
&lt;br /&gt;
=== Gutsy amd64 ===&lt;br /&gt;
Even more unfortunately, vncserver coredumps on amd64 architecture, so we need to install an old version of vnc4server.&lt;br /&gt;
&lt;br /&gt;
* Ensure neither vncserver or vnc4server are installed&lt;br /&gt;
* Install ''http://gb.archive.ubuntu.com/ubuntu/pool/universe/v/vnc4/vnc4server_4.1.1+xorg1.0.2-0ubuntu1_amd64.deb''&lt;br /&gt;
* Put vnc4server on hold to stop it being upgraded using:&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo aptitude hold vnc4server&amp;lt;/pre&amp;gt;&lt;br /&gt;
* * Add the following to /etc/xinetd.d/vnc:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service vnc_1024x768&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 950x700 -depth 16 -once -fp /usr/share/fonts/X11/misc securitytypes=none&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
service vnc_1280x1024&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 1260x960 -depth 16 -once -fp /usr/share/fonts/X11/misc securitytypes=none&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
service vnc_1920x1200&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 1860x1120 -depth 16 -once -fp /usr/share/fonts/X11/misc securitytypes=none&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Hardy ===&lt;br /&gt;
&lt;br /&gt;
* Install vnc4server&lt;br /&gt;
&lt;br /&gt;
* Add the following to /etc/xinetd.d/vnc:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service vnc_1024x768&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 950x700 -depth 24 -once securitytypes=none -extension XFIXES&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
service vnc_1280x1024&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 1260x960 -depth 24 -once securitytypes=none -extension XFIXES&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
service vnc_1920x1200&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 1860x1120 -depth 24 -once securitytypes=none -extension XFIXES&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note 1: This setup may also work for gutsy (ie. with the addition of &amp;quot;-extension XFIXES&amp;quot;), though I haven't tested it.&lt;br /&gt;
&lt;br /&gt;
Note 2: To enable persistent sessions (which has the downside of only enabling 1 login per service), prefix '''-inetd''' with ''':'''''n'' where ''n'' is a number beginning at 1 for the first service, and counting up.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
=== Couldn't open RGB_DB '/usr/lib/X11/rgb' ===&lt;br /&gt;
Add to server_args: '''-co /usr/share/X11/rgb'''&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Main_Page&amp;diff=8084</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Main_Page&amp;diff=8084"/>
				<updated>2009-12-08T19:32:04Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== briki Contents ==&lt;br /&gt;
=== Technology ===&lt;br /&gt;
==== Software ====&lt;br /&gt;
* [[Linux Tips]]&lt;br /&gt;
* [[Windows XP Tips]]&lt;br /&gt;
* [[MacOS X Tips/ToDo]]&lt;br /&gt;
* [[Networking Tips]]&lt;br /&gt;
&lt;br /&gt;
==== Hardware ====&lt;br /&gt;
* [[Machine List]]&lt;br /&gt;
* [[Sony TR Tips]]&lt;br /&gt;
* [[SPV M5000 Tips]]&lt;br /&gt;
* [[Speedtouch 780 Tips]]&lt;br /&gt;
&lt;br /&gt;
=== Other ===&lt;br /&gt;
* [[Simpsons Quotes]]&lt;br /&gt;
* [[Temporary Pages]]&lt;br /&gt;
&lt;br /&gt;
== Other Contents ==&lt;br /&gt;
=== Media ===&lt;br /&gt;
----&lt;br /&gt;
* [http://mail.bretts.org Mail] (protected)&lt;br /&gt;
* [http://pics.bretts.org Pictures] (protected)&lt;br /&gt;
* [http://music.bretts.org Music] (protected)&lt;br /&gt;
* [http://mythweb.bretts.org MythWeb] (protected)&lt;br /&gt;
&lt;br /&gt;
=== Admin ===&lt;br /&gt;
----&lt;br /&gt;
==== Monitoring ====&lt;br /&gt;
* [http://bretts.org/mon/ Process Monitoring] (protected)&lt;br /&gt;
* [http://bretts.org/graph/ Network Monitoring]&lt;br /&gt;
* [http://bretts.org/stats/ Webserver Usage]&lt;br /&gt;
&lt;br /&gt;
==== Apache (protected) ====&lt;br /&gt;
* [http://bretts.org/doc/ Manual]&lt;br /&gt;
* [http://bretts.org/server-info Server Info]&lt;br /&gt;
* [http://bretts.org/server-status Server Status]&lt;br /&gt;
* [http://bretts.org/php-info/ PHP Info]&lt;br /&gt;
&lt;br /&gt;
==== Tomcat (protected) ====&lt;br /&gt;
* [http://bretts.org/tomcat/manager/html Manager]&lt;br /&gt;
&lt;br /&gt;
=== Development ===&lt;br /&gt;
* [http://bretts.org/fisheye/ FishEye]&lt;br /&gt;
* [http://bretts.org/jira/ JIRA]&lt;br /&gt;
&lt;br /&gt;
==== Continuous Integration ====&lt;br /&gt;
* [http://bretts.org/bamboo/ Bamboo]&lt;br /&gt;
 &lt;br /&gt;
==== Bot ====&lt;br /&gt;
* [http://bretts.org/bamboo/download/BOT-TRUNK/artifacts/latest/JARs Bot Code] (latest)&lt;br /&gt;
* [http://bretts.org/bamboo/download/BOT-TRUNK/artifacts/latest/Javadoc Bot Documentation] (latest)&lt;br /&gt;
&lt;br /&gt;
==== SVN Repositories ====&lt;br /&gt;
* [http://svn.bretts.org/ All] (protected)&lt;br /&gt;
** [http://svn.bretts.org/bot/ Bot]&lt;br /&gt;
** [http://svn.bretts.org/java-test/ Java Test]&lt;br /&gt;
** [http://svn.bretts.org/pics/ Pictures]&lt;br /&gt;
&lt;br /&gt;
=== Internal Access Only ===&lt;br /&gt;
----&lt;br /&gt;
 &lt;br /&gt;
==== Tomcat ====&lt;br /&gt;
* [http://colorado:8180 Tomcat]&lt;br /&gt;
* [http://colorado:8180/tomcat-docs Docs]&lt;br /&gt;
* [http://colorado:8180/admin Admin]&lt;br /&gt;
* [http://colorado:8180/manager/html Manager]&lt;br /&gt;
&lt;br /&gt;
==== Internal Hosts ====&lt;br /&gt;
* [http://router Router]&lt;br /&gt;
* [http://router-old Router (Old)]&lt;br /&gt;
* [http://wap Wireless Access Point]&lt;br /&gt;
 &lt;br /&gt;
== About ==&lt;br /&gt;
'''briki''' (''bretts.org wiki'') administered by Andrew Brett. Feel free to contribute to pre-existing pages.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Talk:Main_Page&amp;diff=8083</id>
		<title>Talk:Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Talk:Main_Page&amp;diff=8083"/>
				<updated>2009-12-08T19:31:36Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: Removing all content from page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MacOS_X_Tips&amp;diff=8082</id>
		<title>MacOS X Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MacOS_X_Tips&amp;diff=8082"/>
				<updated>2009-12-08T19:31:15Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TO DO ==&lt;br /&gt;
=== Issues ===&lt;br /&gt;
* Increase font size: http://thedesignspace.net/MT2archives/000196.html / TinkerTool / Silk&lt;br /&gt;
* British Windows keyboard mapping: http://neuro.me.uk/2009/08/31/getting-the-uk-keyboard-layout-right-in-snow-leopard/&lt;br /&gt;
* Maximise firefox&lt;br /&gt;
&lt;br /&gt;
=== Configuration ===&lt;br /&gt;
* DesktopManager - run at startup: http://forums.mactalk.com.au/showthread.php?t=6873&lt;br /&gt;
* smb shares - mount at startup: http://www.macosxhints.com/article.php?story=20031022164821984&lt;br /&gt;
&lt;br /&gt;
=== Software ===&lt;br /&gt;
* RemoteBuddy&lt;br /&gt;
* xvid codec&lt;br /&gt;
* VLC&lt;br /&gt;
* VNC&lt;br /&gt;
* MediaCentral&lt;br /&gt;
&lt;br /&gt;
== Useful Commands ==&lt;br /&gt;
; mdinfo : Mac equivalent to locate (since it seems locatedb isn't periodically updated for OS X)&lt;br /&gt;
&lt;br /&gt;
== Installing from the command line ==&lt;br /&gt;
* hdiutil attach ''file''.dmg&lt;br /&gt;
* cd /Volumes/''mount''/&lt;br /&gt;
* sudo installer -pkg ''install''.pkg -target &amp;quot;/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Compiling mythtv ==&lt;br /&gt;
At the time of writing the current (14660) revision of mythtv does not build for Mac OS X. One working build is 14225. To build this:&lt;br /&gt;
&lt;br /&gt;
NB.  Ensure you don't have xmms or xmms-shlibs installed via fink/apt-get&lt;br /&gt;
&lt;br /&gt;
* svn co -r 14225 http://svn.mythtv.org/svn/trunk/mythtv/contrib/OSX mythtv-14225&lt;br /&gt;
* cd mythtv-14225&lt;br /&gt;
* ./osx-packager.pl -svnrev 14225&lt;br /&gt;
&lt;br /&gt;
Alternatively, to fix the latest version for an Intel Mac:&lt;br /&gt;
&lt;br /&gt;
* svn co http://svn.mythtv.org/svn/trunk/mythtv/contrib/OSX mythtv&lt;br /&gt;
* cd mythtv&lt;br /&gt;
* Add &amp;quot;'--arch=pentium4',&amp;quot; to the mythtv args list around line 488 of osx-packager.pl&lt;br /&gt;
* ./osx-packager.pl&lt;br /&gt;
* You'll get an &amp;quot;ERROR: CPU specific ./configure options failed compile test&amp;quot; warning when osx-packager runs configure for mythtv, but this can be ignored&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Main_Page&amp;diff=8080</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Main_Page&amp;diff=8080"/>
				<updated>2009-12-08T19:08:16Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: Undo revision 7608 by 203.82.73.198 (Talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== briki Contents ==&lt;br /&gt;
english, http://www.fetish-bdsm-club.com/forum/index.php/topic,307.0.html accutane drugs,  816716, http://allworld.forums4free.de/viewtopic.php?p=267#267 purchase generic aldactone online,  xigpom, http://www.battlepulse.com/forums/showthread.php?p=35312#post35312 cheapest aldactone online,  nxk, http://skychinstudio.110mb.com/phpBB3/viewtopic.php?f=3&amp;amp;t=21049 online allegra buy,  &amp;gt;:-P, http://forum.iceiu.info/viewtopic.php?f=28&amp;amp;t=184 purchase advair diskus online,  447, http://mala-skate.myforum.ro/viewtopic.php?p=1025#1025 low cost actonel,  ztzhp, http://www.theshadowbox.net/forum/index.php?topic=10203.0 purchase generic accupril,  3682, http://taurus.tarhely.biz/index.php?topic=34.0 advair diskus without prescription ,  8-P, http://elena-gheorghe.myforum.ro/viewtopic.php?p=7935#7935 order generic adoxa,  =PPP,&lt;br /&gt;
&lt;br /&gt;
=== Other ===&lt;br /&gt;
* [[Simpsons Quotes]]&lt;br /&gt;
* [[Temporary Pages]]&lt;br /&gt;
&lt;br /&gt;
== Other Contents ==&lt;br /&gt;
=== Media ===&lt;br /&gt;
----&lt;br /&gt;
* [http://mail.bretts.org Mail] (protected)&lt;br /&gt;
* [http://pics.bretts.org Pictures] (protected)&lt;br /&gt;
* [http://music.bretts.org Music] (protected)&lt;br /&gt;
* [http://mythweb.bretts.org MythWeb] (protected)&lt;br /&gt;
&lt;br /&gt;
=== Admin ===&lt;br /&gt;
----&lt;br /&gt;
==== Monitoring ====&lt;br /&gt;
* [http://bretts.org/mon/ Process Monitoring] (protected)&lt;br /&gt;
* [http://bretts.org/graph/ Network Monitoring]&lt;br /&gt;
* [http://bretts.org/stats/ Webserver Usage]&lt;br /&gt;
&lt;br /&gt;
==== Apache (protected) ====&lt;br /&gt;
* [http://bretts.org/doc/ Manual]&lt;br /&gt;
* [http://bretts.org/server-info Server Info]&lt;br /&gt;
* [http://bretts.org/server-status Server Status]&lt;br /&gt;
* [http://bretts.org/php-info/ PHP Info]&lt;br /&gt;
&lt;br /&gt;
==== Tomcat (protected) ====&lt;br /&gt;
* [http://bretts.org/tomcat/manager/html Manager]&lt;br /&gt;
&lt;br /&gt;
=== Development ===&lt;br /&gt;
* [http://bretts.org/fisheye/ FishEye]&lt;br /&gt;
* [http://bretts.org/jira/ JIRA]&lt;br /&gt;
&lt;br /&gt;
==== Continuous Integration ====&lt;br /&gt;
* [http://bretts.org/bamboo/ Bamboo]&lt;br /&gt;
 &lt;br /&gt;
==== Bot ====&lt;br /&gt;
* [http://bretts.org/bamboo/download/BOT-TRUNK/artifacts/latest/JARs Bot Code] (latest)&lt;br /&gt;
* [http://bretts.org/bamboo/download/BOT-TRUNK/artifacts/latest/Javadoc Bot Documentation] (latest)&lt;br /&gt;
&lt;br /&gt;
==== SVN Repositories ====&lt;br /&gt;
* [http://svn.bretts.org/ All] (protected)&lt;br /&gt;
** [http://svn.bretts.org/bot/ Bot]&lt;br /&gt;
** [http://svn.bretts.org/java-test/ Java Test]&lt;br /&gt;
** [http://svn.bretts.org/pics/ Pictures]&lt;br /&gt;
&lt;br /&gt;
=== Internal Access Only ===&lt;br /&gt;
----&lt;br /&gt;
 &lt;br /&gt;
==== Tomcat ====&lt;br /&gt;
* [http://colorado:8180 Tomcat]&lt;br /&gt;
* [http://colorado:8180/tomcat-docs Docs]&lt;br /&gt;
* [http://colorado:8180/admin Admin]&lt;br /&gt;
* [http://colorado:8180/manager/html Manager]&lt;br /&gt;
&lt;br /&gt;
==== Internal Hosts ====&lt;br /&gt;
* [http://router Router]&lt;br /&gt;
* [http://router-old Router (Old)]&lt;br /&gt;
* [http://wap Wireless Access Point]&lt;br /&gt;
 &lt;br /&gt;
== About ==&lt;br /&gt;
'''briki''' (''bretts.org wiki'') administered by Andrew Brett. Feel free to contribute to pre-existing pages.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MythTV&amp;diff=3296</id>
		<title>MythTV</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MythTV&amp;diff=3296"/>
				<updated>2007-11-18T14:36:52Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: /* Errors and Solutions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Compiling from SVN ==&lt;br /&gt;
&lt;br /&gt;
=== MythTV Core/Backend ===&lt;br /&gt;
For ubuntu (gutsy), ensure the following packages are installed:&lt;br /&gt;
&lt;br /&gt;
* gcc&lt;br /&gt;
* g++&lt;br /&gt;
* make&lt;br /&gt;
* linux-headers&lt;br /&gt;
* libfreetype6-dev&lt;br /&gt;
* libqt3-mt-dev&lt;br /&gt;
* liblame-dev&lt;br /&gt;
* libxv-dev&lt;br /&gt;
* libxxf86vm-dev&lt;br /&gt;
&lt;br /&gt;
Maybe also?&lt;br /&gt;
* qt3-dev-tools&lt;br /&gt;
* libqt3-mt-mysql&lt;br /&gt;
&lt;br /&gt;
=== MythPlugins ===&lt;br /&gt;
&lt;br /&gt;
* libmad0-dev&lt;br /&gt;
* libid3tag0-dev&lt;br /&gt;
* libvorbis-dev&lt;br /&gt;
* libflac-dev&lt;br /&gt;
* libcdaudio-dev&lt;br /&gt;
* libcdparanoia0-dev&lt;br /&gt;
* libtiff4-dev&lt;br /&gt;
* kdelibs4-dev&lt;br /&gt;
* libexif-dev&lt;br /&gt;
* fftw3-dev&lt;br /&gt;
* libsdl1.2-dev&lt;br /&gt;
* libfaad2-dev&lt;br /&gt;
* libmysqlclient15-dev&lt;br /&gt;
&lt;br /&gt;
=== MythTV frontend (Install and run only) ===&lt;br /&gt;
To install and run a mythtv frontend (previously compiled on a different machine), you need:&lt;br /&gt;
&lt;br /&gt;
* g++&lt;br /&gt;
* libartsc0-dev&lt;br /&gt;
* libasound2-dev&lt;br /&gt;
* liblame-dev&lt;br /&gt;
* libqt3-mt-dev&lt;br /&gt;
* libqt3-mt-mysql&lt;br /&gt;
* libxv-dev&lt;br /&gt;
* libxvmc-dev&lt;br /&gt;
* libxxf86vm-dev&lt;br /&gt;
* qt3-dev-tools&lt;br /&gt;
&lt;br /&gt;
== Errors and Solutions ==&lt;br /&gt;
&lt;br /&gt;
=== tv_grab_uk_rt - Undefined argument in option spec ===&lt;br /&gt;
Edit /usr/bin/tv_grab_uk_rt and remove days and offset args from GetOptions variable list, and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
       'offset'        =&amp;gt; \ my $opt_offset,&lt;br /&gt;
       'days'          =&amp;gt; \ my $opt_days,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See: https://sourceforge.net/tracker/?func=detail&amp;amp;atid=424135&amp;amp;aid=1440322&amp;amp;group_id=39046&lt;br /&gt;
&lt;br /&gt;
=== QMYSQL3 driver not loaded ===&lt;br /&gt;
&lt;br /&gt;
* apt-get install libqt3-mt-mysql&lt;br /&gt;
&lt;br /&gt;
=== Missing menu items ===&lt;br /&gt;
* apt-get install msttcorefonts&lt;br /&gt;
&lt;br /&gt;
=== Opening DVB frontend device failed. eno: Permission denied (13) ===&lt;br /&gt;
''/dev/video*'' is by default only read/writable by root:video:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
andrew@colorado:~$ ls -l /dev/video*&lt;br /&gt;
crw-rw---- 1 root video 81, 0 2007-11-03 16:12 /dev/video0&lt;br /&gt;
crw-rw---- 1 root video 81, 1 2007-11-03 16:12 /dev/video1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To fix: '''sudo adduser mythtv video'''&lt;br /&gt;
&lt;br /&gt;
== Scheduler log output (meaning of &amp;quot;S C I  T N&amp;quot; etc) ==&lt;br /&gt;
&lt;br /&gt;
; Title - Subtitle : should be pretty obvious!&lt;br /&gt;
; Chan : actual channel number&lt;br /&gt;
; ChID : channel ID in mythtv database&lt;br /&gt;
; Day : day in month of recording&lt;br /&gt;
; Start : start time of recording&lt;br /&gt;
; End : end time of recording&lt;br /&gt;
; S : sourceID - ID of source of programs as defined by mythtv-setup (eg. UK Freeview)&lt;br /&gt;
; C : cardID - ID of card to be used for recording. 0 if not to be recorded.&lt;br /&gt;
; I : inputID - ID of input (combination of source and card). 0 if not to be recorded.&lt;br /&gt;
; T &lt;br /&gt;
: recording type&lt;br /&gt;
:* S - SingleRecord&lt;br /&gt;
:* T - TimeslotRecord&lt;br /&gt;
:* W - WeekslotRecord&lt;br /&gt;
:* C - ChannelRecord&lt;br /&gt;
:* A - AllRecord&lt;br /&gt;
:* F - FindOneRecord&lt;br /&gt;
:* d - FindOneDailyRecord&lt;br /&gt;
:* w - FindOneWeeklyRecord&lt;br /&gt;
:* O - OverrideRecord/DontRecord&lt;br /&gt;
; N &lt;br /&gt;
: recording status:&lt;br /&gt;
:* A - Aborted&lt;br /&gt;
:* R - Recorded&lt;br /&gt;
:* ''n'' - Recording/WillRecord on ''CardID''&lt;br /&gt;
:* X - DontRecord&lt;br /&gt;
:* P - PreviousRecording&lt;br /&gt;
:* R - CurrentRecording&lt;br /&gt;
:* E - EarlierShowing&lt;br /&gt;
:* T - TooManyRecordings&lt;br /&gt;
:* c - Cancelled&lt;br /&gt;
:* M - Missed&lt;br /&gt;
:* C - Conflict&lt;br /&gt;
:* L - LaterShowing&lt;br /&gt;
:* r - Repeat&lt;br /&gt;
:* x - Inactive&lt;br /&gt;
:* K - LowDiskSpace&lt;br /&gt;
:* B - TunerBusy&lt;br /&gt;
:* N - NotListed&lt;br /&gt;
:* V - NeverRecord&lt;br /&gt;
; Pri : recording priority&lt;br /&gt;
&lt;br /&gt;
== MythTV and LIRC ==&lt;br /&gt;
=== Using the Ctrl key in config lines ===&lt;br /&gt;
Contrary to some sources, the required format for the config line is ''config=Ctrl+X''. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
begin&lt;br /&gt;
    prog = mythtv&lt;br /&gt;
    button = TV&lt;br /&gt;
    config = Ctrl+2&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repairing broken MythTV tables ==&lt;br /&gt;
# Stop MythTV and MySQL&lt;br /&gt;
# cd /var/lib/mysql/mythconverg&lt;br /&gt;
# myisamchk *.MYI&lt;br /&gt;
# Identify broken tables&lt;br /&gt;
# myisamchk -r brokenTable.MYI&lt;br /&gt;
# Restart MythTV and MySQL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Slow mythfrontend menu transitions ==&lt;br /&gt;
This will often happen if (with an nVidia driver), the nVidia libglx file has been overwritten by an xserver upgrade. To check for this, run '''glxinfo | grep direct''' - if the driver is working the direct rendering should be on. If not, check the '''/var/log/Xorg.0.log''' for:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(EE) NVIDIA(0): Failed to initialize the GLX module...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, it's possible to reinstall the latest nvidia linux driver, or alternatively, simply (as root):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mv /usr/X11R6/lib/modules/extensions/libglx.so /usr/X11R6/lib/modules/extensions/libglx.so.orig&lt;br /&gt;
ln -s /usr/X11R6/lib/modules/extensions/libglx.so.&amp;lt;nvidia ver&amp;gt; /usr/X11R6/lib/modules/extensions/libglx.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== BBC HD ==&lt;br /&gt;
Not yet possible to play this in MythTV yet, as far as I'm aware. However, you can save it to a file, and play it back (slowly, on anything but very powerful hardware).&lt;br /&gt;
&lt;br /&gt;
* Grab latest x264, ffmpeg and mplayer from svn, and compile manually.&lt;br /&gt;
* Add the following to your channels.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BBC HD1:554000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:1502:1505:36932&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Tune to the channel, and check you're getting lock with '''tzap &amp;quot;BBC HD1&amp;quot;'''&lt;br /&gt;
* Grab a portion of the stream with '''dvbstream -o 8192 &amp;gt; myfile.ts''' (Note the use of dummy PID '''8192''' - this tells dvbstream to record the entire transport stream, rather than just selected program streams).&lt;br /&gt;
* Playback the stream with '''mplayer myfile.ts'''. MPlayer should tell you there are two program streams - an H264 video on pid 1502, and an a52 audio stream on pid 1505. Sample mplayer log snippet below: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Playing myfile.ts.&lt;br /&gt;
TS file format detected.&lt;br /&gt;
VIDEO H264(pid=1502) AUDIO A52(pid=1505) NO SUBS (yet)!  PROGRAM N. -28604&lt;br /&gt;
FPS seems to be: 25.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MythTV&amp;diff=3295</id>
		<title>MythTV</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MythTV&amp;diff=3295"/>
				<updated>2007-11-18T10:39:06Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: /* MythPlugins */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Compiling from SVN ==&lt;br /&gt;
&lt;br /&gt;
=== MythTV Core/Backend ===&lt;br /&gt;
For ubuntu (gutsy), ensure the following packages are installed:&lt;br /&gt;
&lt;br /&gt;
* gcc&lt;br /&gt;
* g++&lt;br /&gt;
* make&lt;br /&gt;
* linux-headers&lt;br /&gt;
* libfreetype6-dev&lt;br /&gt;
* libqt3-mt-dev&lt;br /&gt;
* liblame-dev&lt;br /&gt;
* libxv-dev&lt;br /&gt;
* libxxf86vm-dev&lt;br /&gt;
&lt;br /&gt;
Maybe also?&lt;br /&gt;
* qt3-dev-tools&lt;br /&gt;
* libqt3-mt-mysql&lt;br /&gt;
&lt;br /&gt;
=== MythPlugins ===&lt;br /&gt;
&lt;br /&gt;
* libmad0-dev&lt;br /&gt;
* libid3tag0-dev&lt;br /&gt;
* libvorbis-dev&lt;br /&gt;
* libflac-dev&lt;br /&gt;
* libcdaudio-dev&lt;br /&gt;
* libcdparanoia0-dev&lt;br /&gt;
* libtiff4-dev&lt;br /&gt;
* kdelibs4-dev&lt;br /&gt;
* libexif-dev&lt;br /&gt;
* fftw3-dev&lt;br /&gt;
* libsdl1.2-dev&lt;br /&gt;
* libfaad2-dev&lt;br /&gt;
* libmysqlclient15-dev&lt;br /&gt;
&lt;br /&gt;
=== MythTV frontend (Install and run only) ===&lt;br /&gt;
To install and run a mythtv frontend (previously compiled on a different machine), you need:&lt;br /&gt;
&lt;br /&gt;
* g++&lt;br /&gt;
* libartsc0-dev&lt;br /&gt;
* libasound2-dev&lt;br /&gt;
* liblame-dev&lt;br /&gt;
* libqt3-mt-dev&lt;br /&gt;
* libqt3-mt-mysql&lt;br /&gt;
* libxv-dev&lt;br /&gt;
* libxvmc-dev&lt;br /&gt;
* libxxf86vm-dev&lt;br /&gt;
* qt3-dev-tools&lt;br /&gt;
&lt;br /&gt;
== Errors and Solutions ==&lt;br /&gt;
&lt;br /&gt;
=== tv_grab_uk_rt - Undefined argument in option spec ===&lt;br /&gt;
Edit /usr/bin/tv_grab_uk_rt and remove days and offset args from GetOptions variable list, and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
       'offset'        =&amp;gt; \ my $opt_offset,&lt;br /&gt;
       'days'          =&amp;gt; \ my $opt_days,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See: https://sourceforge.net/tracker/?func=detail&amp;amp;atid=424135&amp;amp;aid=1440322&amp;amp;group_id=39046&lt;br /&gt;
&lt;br /&gt;
=== QMYSQL3 driver not loaded ===&lt;br /&gt;
&lt;br /&gt;
* apt-get install libqt3-mt-mysql&lt;br /&gt;
&lt;br /&gt;
=== Missing menu items ===&lt;br /&gt;
* apt-get install msttcorefonts&lt;br /&gt;
&lt;br /&gt;
== Scheduler log output (meaning of &amp;quot;S C I  T N&amp;quot; etc) ==&lt;br /&gt;
&lt;br /&gt;
; Title - Subtitle : should be pretty obvious!&lt;br /&gt;
; Chan : actual channel number&lt;br /&gt;
; ChID : channel ID in mythtv database&lt;br /&gt;
; Day : day in month of recording&lt;br /&gt;
; Start : start time of recording&lt;br /&gt;
; End : end time of recording&lt;br /&gt;
; S : sourceID - ID of source of programs as defined by mythtv-setup (eg. UK Freeview)&lt;br /&gt;
; C : cardID - ID of card to be used for recording. 0 if not to be recorded.&lt;br /&gt;
; I : inputID - ID of input (combination of source and card). 0 if not to be recorded.&lt;br /&gt;
; T &lt;br /&gt;
: recording type&lt;br /&gt;
:* S - SingleRecord&lt;br /&gt;
:* T - TimeslotRecord&lt;br /&gt;
:* W - WeekslotRecord&lt;br /&gt;
:* C - ChannelRecord&lt;br /&gt;
:* A - AllRecord&lt;br /&gt;
:* F - FindOneRecord&lt;br /&gt;
:* d - FindOneDailyRecord&lt;br /&gt;
:* w - FindOneWeeklyRecord&lt;br /&gt;
:* O - OverrideRecord/DontRecord&lt;br /&gt;
; N &lt;br /&gt;
: recording status:&lt;br /&gt;
:* A - Aborted&lt;br /&gt;
:* R - Recorded&lt;br /&gt;
:* ''n'' - Recording/WillRecord on ''CardID''&lt;br /&gt;
:* X - DontRecord&lt;br /&gt;
:* P - PreviousRecording&lt;br /&gt;
:* R - CurrentRecording&lt;br /&gt;
:* E - EarlierShowing&lt;br /&gt;
:* T - TooManyRecordings&lt;br /&gt;
:* c - Cancelled&lt;br /&gt;
:* M - Missed&lt;br /&gt;
:* C - Conflict&lt;br /&gt;
:* L - LaterShowing&lt;br /&gt;
:* r - Repeat&lt;br /&gt;
:* x - Inactive&lt;br /&gt;
:* K - LowDiskSpace&lt;br /&gt;
:* B - TunerBusy&lt;br /&gt;
:* N - NotListed&lt;br /&gt;
:* V - NeverRecord&lt;br /&gt;
; Pri : recording priority&lt;br /&gt;
&lt;br /&gt;
== MythTV and LIRC ==&lt;br /&gt;
=== Using the Ctrl key in config lines ===&lt;br /&gt;
Contrary to some sources, the required format for the config line is ''config=Ctrl+X''. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
begin&lt;br /&gt;
    prog = mythtv&lt;br /&gt;
    button = TV&lt;br /&gt;
    config = Ctrl+2&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repairing broken MythTV tables ==&lt;br /&gt;
# Stop MythTV and MySQL&lt;br /&gt;
# cd /var/lib/mysql/mythconverg&lt;br /&gt;
# myisamchk *.MYI&lt;br /&gt;
# Identify broken tables&lt;br /&gt;
# myisamchk -r brokenTable.MYI&lt;br /&gt;
# Restart MythTV and MySQL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Slow mythfrontend menu transitions ==&lt;br /&gt;
This will often happen if (with an nVidia driver), the nVidia libglx file has been overwritten by an xserver upgrade. To check for this, run '''glxinfo | grep direct''' - if the driver is working the direct rendering should be on. If not, check the '''/var/log/Xorg.0.log''' for:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(EE) NVIDIA(0): Failed to initialize the GLX module...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, it's possible to reinstall the latest nvidia linux driver, or alternatively, simply (as root):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mv /usr/X11R6/lib/modules/extensions/libglx.so /usr/X11R6/lib/modules/extensions/libglx.so.orig&lt;br /&gt;
ln -s /usr/X11R6/lib/modules/extensions/libglx.so.&amp;lt;nvidia ver&amp;gt; /usr/X11R6/lib/modules/extensions/libglx.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== BBC HD ==&lt;br /&gt;
Not yet possible to play this in MythTV yet, as far as I'm aware. However, you can save it to a file, and play it back (slowly, on anything but very powerful hardware).&lt;br /&gt;
&lt;br /&gt;
* Grab latest x264, ffmpeg and mplayer from svn, and compile manually.&lt;br /&gt;
* Add the following to your channels.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BBC HD1:554000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:1502:1505:36932&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Tune to the channel, and check you're getting lock with '''tzap &amp;quot;BBC HD1&amp;quot;'''&lt;br /&gt;
* Grab a portion of the stream with '''dvbstream -o 8192 &amp;gt; myfile.ts''' (Note the use of dummy PID '''8192''' - this tells dvbstream to record the entire transport stream, rather than just selected program streams).&lt;br /&gt;
* Playback the stream with '''mplayer myfile.ts'''. MPlayer should tell you there are two program streams - an H264 video on pid 1502, and an a52 audio stream on pid 1505. Sample mplayer log snippet below: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Playing myfile.ts.&lt;br /&gt;
TS file format detected.&lt;br /&gt;
VIDEO H264(pid=1502) AUDIO A52(pid=1505) NO SUBS (yet)!  PROGRAM N. -28604&lt;br /&gt;
FPS seems to be: 25.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MythTV&amp;diff=3294</id>
		<title>MythTV</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MythTV&amp;diff=3294"/>
				<updated>2007-11-16T18:38:55Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: /* MythTV Core */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Compiling from SVN ==&lt;br /&gt;
&lt;br /&gt;
=== MythTV Core/Backend ===&lt;br /&gt;
For ubuntu (gutsy), ensure the following packages are installed:&lt;br /&gt;
&lt;br /&gt;
* gcc&lt;br /&gt;
* g++&lt;br /&gt;
* make&lt;br /&gt;
* linux-headers&lt;br /&gt;
* libfreetype6-dev&lt;br /&gt;
* libqt3-mt-dev&lt;br /&gt;
* liblame-dev&lt;br /&gt;
* libxv-dev&lt;br /&gt;
* libxxf86vm-dev&lt;br /&gt;
&lt;br /&gt;
Maybe also?&lt;br /&gt;
* qt3-dev-tools&lt;br /&gt;
* libqt3-mt-mysql&lt;br /&gt;
&lt;br /&gt;
=== MythPlugins ===&lt;br /&gt;
&lt;br /&gt;
* libmad0-dev&lt;br /&gt;
* libid3tag0-dev&lt;br /&gt;
* libvorbis-dev&lt;br /&gt;
* libflac-dev&lt;br /&gt;
* libcdaudio-dev&lt;br /&gt;
* libcdparanoia0-dev&lt;br /&gt;
* libtiff4-dev&lt;br /&gt;
* kdelibs4-dev&lt;br /&gt;
* libexif-dev&lt;br /&gt;
* fftw3-dev&lt;br /&gt;
* libsdl1.2-dev&lt;br /&gt;
* libfaad2-dev&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MythTV frontend (Install and run only) ===&lt;br /&gt;
To install and run a mythtv frontend (previously compiled on a different machine), you need:&lt;br /&gt;
&lt;br /&gt;
* g++&lt;br /&gt;
* libartsc0-dev&lt;br /&gt;
* libasound2-dev&lt;br /&gt;
* liblame-dev&lt;br /&gt;
* libqt3-mt-dev&lt;br /&gt;
* libqt3-mt-mysql&lt;br /&gt;
* libxv-dev&lt;br /&gt;
* libxvmc-dev&lt;br /&gt;
* libxxf86vm-dev&lt;br /&gt;
* qt3-dev-tools&lt;br /&gt;
&lt;br /&gt;
== Errors and Solutions ==&lt;br /&gt;
&lt;br /&gt;
=== tv_grab_uk_rt - Undefined argument in option spec ===&lt;br /&gt;
Edit /usr/bin/tv_grab_uk_rt and remove days and offset args from GetOptions variable list, and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
       'offset'        =&amp;gt; \ my $opt_offset,&lt;br /&gt;
       'days'          =&amp;gt; \ my $opt_days,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See: https://sourceforge.net/tracker/?func=detail&amp;amp;atid=424135&amp;amp;aid=1440322&amp;amp;group_id=39046&lt;br /&gt;
&lt;br /&gt;
=== QMYSQL3 driver not loaded ===&lt;br /&gt;
&lt;br /&gt;
* apt-get install libqt3-mt-mysql&lt;br /&gt;
&lt;br /&gt;
=== Missing menu items ===&lt;br /&gt;
* apt-get install msttcorefonts&lt;br /&gt;
&lt;br /&gt;
== Scheduler log output (meaning of &amp;quot;S C I  T N&amp;quot; etc) ==&lt;br /&gt;
&lt;br /&gt;
; Title - Subtitle : should be pretty obvious!&lt;br /&gt;
; Chan : actual channel number&lt;br /&gt;
; ChID : channel ID in mythtv database&lt;br /&gt;
; Day : day in month of recording&lt;br /&gt;
; Start : start time of recording&lt;br /&gt;
; End : end time of recording&lt;br /&gt;
; S : sourceID - ID of source of programs as defined by mythtv-setup (eg. UK Freeview)&lt;br /&gt;
; C : cardID - ID of card to be used for recording. 0 if not to be recorded.&lt;br /&gt;
; I : inputID - ID of input (combination of source and card). 0 if not to be recorded.&lt;br /&gt;
; T &lt;br /&gt;
: recording type&lt;br /&gt;
:* S - SingleRecord&lt;br /&gt;
:* T - TimeslotRecord&lt;br /&gt;
:* W - WeekslotRecord&lt;br /&gt;
:* C - ChannelRecord&lt;br /&gt;
:* A - AllRecord&lt;br /&gt;
:* F - FindOneRecord&lt;br /&gt;
:* d - FindOneDailyRecord&lt;br /&gt;
:* w - FindOneWeeklyRecord&lt;br /&gt;
:* O - OverrideRecord/DontRecord&lt;br /&gt;
; N &lt;br /&gt;
: recording status:&lt;br /&gt;
:* A - Aborted&lt;br /&gt;
:* R - Recorded&lt;br /&gt;
:* ''n'' - Recording/WillRecord on ''CardID''&lt;br /&gt;
:* X - DontRecord&lt;br /&gt;
:* P - PreviousRecording&lt;br /&gt;
:* R - CurrentRecording&lt;br /&gt;
:* E - EarlierShowing&lt;br /&gt;
:* T - TooManyRecordings&lt;br /&gt;
:* c - Cancelled&lt;br /&gt;
:* M - Missed&lt;br /&gt;
:* C - Conflict&lt;br /&gt;
:* L - LaterShowing&lt;br /&gt;
:* r - Repeat&lt;br /&gt;
:* x - Inactive&lt;br /&gt;
:* K - LowDiskSpace&lt;br /&gt;
:* B - TunerBusy&lt;br /&gt;
:* N - NotListed&lt;br /&gt;
:* V - NeverRecord&lt;br /&gt;
; Pri : recording priority&lt;br /&gt;
&lt;br /&gt;
== MythTV and LIRC ==&lt;br /&gt;
=== Using the Ctrl key in config lines ===&lt;br /&gt;
Contrary to some sources, the required format for the config line is ''config=Ctrl+X''. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
begin&lt;br /&gt;
    prog = mythtv&lt;br /&gt;
    button = TV&lt;br /&gt;
    config = Ctrl+2&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repairing broken MythTV tables ==&lt;br /&gt;
# Stop MythTV and MySQL&lt;br /&gt;
# cd /var/lib/mysql/mythconverg&lt;br /&gt;
# myisamchk *.MYI&lt;br /&gt;
# Identify broken tables&lt;br /&gt;
# myisamchk -r brokenTable.MYI&lt;br /&gt;
# Restart MythTV and MySQL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Slow mythfrontend menu transitions ==&lt;br /&gt;
This will often happen if (with an nVidia driver), the nVidia libglx file has been overwritten by an xserver upgrade. To check for this, run '''glxinfo | grep direct''' - if the driver is working the direct rendering should be on. If not, check the '''/var/log/Xorg.0.log''' for:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(EE) NVIDIA(0): Failed to initialize the GLX module...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, it's possible to reinstall the latest nvidia linux driver, or alternatively, simply (as root):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mv /usr/X11R6/lib/modules/extensions/libglx.so /usr/X11R6/lib/modules/extensions/libglx.so.orig&lt;br /&gt;
ln -s /usr/X11R6/lib/modules/extensions/libglx.so.&amp;lt;nvidia ver&amp;gt; /usr/X11R6/lib/modules/extensions/libglx.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== BBC HD ==&lt;br /&gt;
Not yet possible to play this in MythTV yet, as far as I'm aware. However, you can save it to a file, and play it back (slowly, on anything but very powerful hardware).&lt;br /&gt;
&lt;br /&gt;
* Grab latest x264, ffmpeg and mplayer from svn, and compile manually.&lt;br /&gt;
* Add the following to your channels.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BBC HD1:554000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:1502:1505:36932&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Tune to the channel, and check you're getting lock with '''tzap &amp;quot;BBC HD1&amp;quot;'''&lt;br /&gt;
* Grab a portion of the stream with '''dvbstream -o 8192 &amp;gt; myfile.ts''' (Note the use of dummy PID '''8192''' - this tells dvbstream to record the entire transport stream, rather than just selected program streams).&lt;br /&gt;
* Playback the stream with '''mplayer myfile.ts'''. MPlayer should tell you there are two program streams - an H264 video on pid 1502, and an a52 audio stream on pid 1505. Sample mplayer log snippet below: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Playing myfile.ts.&lt;br /&gt;
TS file format detected.&lt;br /&gt;
VIDEO H264(pid=1502) AUDIO A52(pid=1505) NO SUBS (yet)!  PROGRAM N. -28604&lt;br /&gt;
FPS seems to be: 25.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MythTV&amp;diff=3293</id>
		<title>MythTV</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MythTV&amp;diff=3293"/>
				<updated>2007-11-16T14:40:28Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: /* MythTV Core */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Compiling from SVN ==&lt;br /&gt;
&lt;br /&gt;
=== MythTV Core ===&lt;br /&gt;
For ubuntu, ensure the following packages are installed:&lt;br /&gt;
&lt;br /&gt;
* gcc&lt;br /&gt;
* g++&lt;br /&gt;
* make&lt;br /&gt;
* linux-headers-''version'' (also ln -s /usr/src/linux-headers-''version'' /usr/src/linux)&lt;br /&gt;
* libfreetype6-dev&lt;br /&gt;
&lt;br /&gt;
* liblame-dev&lt;br /&gt;
* qt3-dev-tools&lt;br /&gt;
* lirc&lt;br /&gt;
* liblircclient-dev&lt;br /&gt;
* libasound2-dev&lt;br /&gt;
* libxvmc-dev&lt;br /&gt;
* libqt3-mt-dev&lt;br /&gt;
* libxxf86vm-dev&lt;br /&gt;
* libqt3-mt-mysql&lt;br /&gt;
&lt;br /&gt;
for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install gcc g++ make linux-headers liblame-dev qt3-dev-tools lirc liblircclient-dev libasound2-dev libxvmc-dev libqt3-mt-dev libxxf86vm-dev libqt3-mt-mysql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To fix freetype headers not being found, simply:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ln -s /usr/include/freetype2/freetype /usr/include/freetype&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== MythPlugins ===&lt;br /&gt;
&lt;br /&gt;
* libmad0-dev&lt;br /&gt;
* libid3tag0-dev&lt;br /&gt;
* libvorbis-dev&lt;br /&gt;
* libflac-dev&lt;br /&gt;
* libcdaudio-dev&lt;br /&gt;
* libcdparanoia0-dev&lt;br /&gt;
* libtiff4-dev&lt;br /&gt;
* kdelibs4-dev&lt;br /&gt;
* libexif-dev&lt;br /&gt;
* fftw3-dev&lt;br /&gt;
* libsdl1.2-dev&lt;br /&gt;
* libfaad2-dev&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MythTV frontend (Install and run only) ===&lt;br /&gt;
To install and run a mythtv frontend (previously compiled on a different machine), you need:&lt;br /&gt;
&lt;br /&gt;
* g++&lt;br /&gt;
* libartsc0-dev&lt;br /&gt;
* libasound2-dev&lt;br /&gt;
* liblame-dev&lt;br /&gt;
* libqt3-mt-dev&lt;br /&gt;
* libqt3-mt-mysql&lt;br /&gt;
* libxv-dev&lt;br /&gt;
* libxvmc-dev&lt;br /&gt;
* libxxf86vm-dev&lt;br /&gt;
* qt3-dev-tools&lt;br /&gt;
&lt;br /&gt;
== Errors and Solutions ==&lt;br /&gt;
&lt;br /&gt;
=== tv_grab_uk_rt - Undefined argument in option spec ===&lt;br /&gt;
Edit /usr/bin/tv_grab_uk_rt and remove days and offset args from GetOptions variable list, and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
       'offset'        =&amp;gt; \ my $opt_offset,&lt;br /&gt;
       'days'          =&amp;gt; \ my $opt_days,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See: https://sourceforge.net/tracker/?func=detail&amp;amp;atid=424135&amp;amp;aid=1440322&amp;amp;group_id=39046&lt;br /&gt;
&lt;br /&gt;
=== QMYSQL3 driver not loaded ===&lt;br /&gt;
&lt;br /&gt;
* apt-get install libqt3-mt-mysql&lt;br /&gt;
&lt;br /&gt;
=== Missing menu items ===&lt;br /&gt;
* apt-get install msttcorefonts&lt;br /&gt;
&lt;br /&gt;
== Scheduler log output (meaning of &amp;quot;S C I  T N&amp;quot; etc) ==&lt;br /&gt;
&lt;br /&gt;
; Title - Subtitle : should be pretty obvious!&lt;br /&gt;
; Chan : actual channel number&lt;br /&gt;
; ChID : channel ID in mythtv database&lt;br /&gt;
; Day : day in month of recording&lt;br /&gt;
; Start : start time of recording&lt;br /&gt;
; End : end time of recording&lt;br /&gt;
; S : sourceID - ID of source of programs as defined by mythtv-setup (eg. UK Freeview)&lt;br /&gt;
; C : cardID - ID of card to be used for recording. 0 if not to be recorded.&lt;br /&gt;
; I : inputID - ID of input (combination of source and card). 0 if not to be recorded.&lt;br /&gt;
; T &lt;br /&gt;
: recording type&lt;br /&gt;
:* S - SingleRecord&lt;br /&gt;
:* T - TimeslotRecord&lt;br /&gt;
:* W - WeekslotRecord&lt;br /&gt;
:* C - ChannelRecord&lt;br /&gt;
:* A - AllRecord&lt;br /&gt;
:* F - FindOneRecord&lt;br /&gt;
:* d - FindOneDailyRecord&lt;br /&gt;
:* w - FindOneWeeklyRecord&lt;br /&gt;
:* O - OverrideRecord/DontRecord&lt;br /&gt;
; N &lt;br /&gt;
: recording status:&lt;br /&gt;
:* A - Aborted&lt;br /&gt;
:* R - Recorded&lt;br /&gt;
:* ''n'' - Recording/WillRecord on ''CardID''&lt;br /&gt;
:* X - DontRecord&lt;br /&gt;
:* P - PreviousRecording&lt;br /&gt;
:* R - CurrentRecording&lt;br /&gt;
:* E - EarlierShowing&lt;br /&gt;
:* T - TooManyRecordings&lt;br /&gt;
:* c - Cancelled&lt;br /&gt;
:* M - Missed&lt;br /&gt;
:* C - Conflict&lt;br /&gt;
:* L - LaterShowing&lt;br /&gt;
:* r - Repeat&lt;br /&gt;
:* x - Inactive&lt;br /&gt;
:* K - LowDiskSpace&lt;br /&gt;
:* B - TunerBusy&lt;br /&gt;
:* N - NotListed&lt;br /&gt;
:* V - NeverRecord&lt;br /&gt;
; Pri : recording priority&lt;br /&gt;
&lt;br /&gt;
== MythTV and LIRC ==&lt;br /&gt;
=== Using the Ctrl key in config lines ===&lt;br /&gt;
Contrary to some sources, the required format for the config line is ''config=Ctrl+X''. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
begin&lt;br /&gt;
    prog = mythtv&lt;br /&gt;
    button = TV&lt;br /&gt;
    config = Ctrl+2&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repairing broken MythTV tables ==&lt;br /&gt;
# Stop MythTV and MySQL&lt;br /&gt;
# cd /var/lib/mysql/mythconverg&lt;br /&gt;
# myisamchk *.MYI&lt;br /&gt;
# Identify broken tables&lt;br /&gt;
# myisamchk -r brokenTable.MYI&lt;br /&gt;
# Restart MythTV and MySQL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Slow mythfrontend menu transitions ==&lt;br /&gt;
This will often happen if (with an nVidia driver), the nVidia libglx file has been overwritten by an xserver upgrade. To check for this, run '''glxinfo | grep direct''' - if the driver is working the direct rendering should be on. If not, check the '''/var/log/Xorg.0.log''' for:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(EE) NVIDIA(0): Failed to initialize the GLX module...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, it's possible to reinstall the latest nvidia linux driver, or alternatively, simply (as root):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mv /usr/X11R6/lib/modules/extensions/libglx.so /usr/X11R6/lib/modules/extensions/libglx.so.orig&lt;br /&gt;
ln -s /usr/X11R6/lib/modules/extensions/libglx.so.&amp;lt;nvidia ver&amp;gt; /usr/X11R6/lib/modules/extensions/libglx.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== BBC HD ==&lt;br /&gt;
Not yet possible to play this in MythTV yet, as far as I'm aware. However, you can save it to a file, and play it back (slowly, on anything but very powerful hardware).&lt;br /&gt;
&lt;br /&gt;
* Grab latest x264, ffmpeg and mplayer from svn, and compile manually.&lt;br /&gt;
* Add the following to your channels.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BBC HD1:554000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:1502:1505:36932&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Tune to the channel, and check you're getting lock with '''tzap &amp;quot;BBC HD1&amp;quot;'''&lt;br /&gt;
* Grab a portion of the stream with '''dvbstream -o 8192 &amp;gt; myfile.ts''' (Note the use of dummy PID '''8192''' - this tells dvbstream to record the entire transport stream, rather than just selected program streams).&lt;br /&gt;
* Playback the stream with '''mplayer myfile.ts'''. MPlayer should tell you there are two program streams - an H264 video on pid 1502, and an a52 audio stream on pid 1505. Sample mplayer log snippet below: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Playing myfile.ts.&lt;br /&gt;
TS file format detected.&lt;br /&gt;
VIDEO H264(pid=1502) AUDIO A52(pid=1505) NO SUBS (yet)!  PROGRAM N. -28604&lt;br /&gt;
FPS seems to be: 25.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MythTV&amp;diff=3292</id>
		<title>MythTV</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MythTV&amp;diff=3292"/>
				<updated>2007-11-16T14:33:51Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: /* Compiling from SVN */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Compiling from SVN ==&lt;br /&gt;
&lt;br /&gt;
=== MythTV Core ===&lt;br /&gt;
For ubuntu, ensure the following packages are installed:&lt;br /&gt;
&lt;br /&gt;
* gcc&lt;br /&gt;
* g++&lt;br /&gt;
* make&lt;br /&gt;
* linux-headers-''version'' (also ln -s /usr/src/linux-headers-''version'' /usr/src/linux)&lt;br /&gt;
* liblame-dev&lt;br /&gt;
* qt3-dev-tools&lt;br /&gt;
* lirc&lt;br /&gt;
* liblircclient-dev&lt;br /&gt;
* libasound2-dev&lt;br /&gt;
* libxvmc-dev&lt;br /&gt;
* libqt3-mt-dev&lt;br /&gt;
* libxxf86vm-dev&lt;br /&gt;
* libqt3-mt-mysql&lt;br /&gt;
&lt;br /&gt;
for example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install gcc g++ make linux-headers liblame-dev qt3-dev-tools lirc liblircclient-dev libasound2-dev libxvmc-dev libqt3-mt-dev libxxf86vm-dev libqt3-mt-mysql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To fix freetype headers not being found, simply:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo ln -s /usr/include/freetype2/freetype /usr/include/freetype&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== MythPlugins ===&lt;br /&gt;
&lt;br /&gt;
* libmad0-dev&lt;br /&gt;
* libid3tag0-dev&lt;br /&gt;
* libvorbis-dev&lt;br /&gt;
* libflac-dev&lt;br /&gt;
* libcdaudio-dev&lt;br /&gt;
* libcdparanoia0-dev&lt;br /&gt;
* libtiff4-dev&lt;br /&gt;
* kdelibs4-dev&lt;br /&gt;
* libexif-dev&lt;br /&gt;
* fftw3-dev&lt;br /&gt;
* libsdl1.2-dev&lt;br /&gt;
* libfaad2-dev&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MythTV frontend (Install and run only) ===&lt;br /&gt;
To install and run a mythtv frontend (previously compiled on a different machine), you need:&lt;br /&gt;
&lt;br /&gt;
* g++&lt;br /&gt;
* libartsc0-dev&lt;br /&gt;
* libasound2-dev&lt;br /&gt;
* liblame-dev&lt;br /&gt;
* libqt3-mt-dev&lt;br /&gt;
* libqt3-mt-mysql&lt;br /&gt;
* libxv-dev&lt;br /&gt;
* libxvmc-dev&lt;br /&gt;
* libxxf86vm-dev&lt;br /&gt;
* qt3-dev-tools&lt;br /&gt;
&lt;br /&gt;
== Errors and Solutions ==&lt;br /&gt;
&lt;br /&gt;
=== tv_grab_uk_rt - Undefined argument in option spec ===&lt;br /&gt;
Edit /usr/bin/tv_grab_uk_rt and remove days and offset args from GetOptions variable list, and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
       'offset'        =&amp;gt; \ my $opt_offset,&lt;br /&gt;
       'days'          =&amp;gt; \ my $opt_days,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See: https://sourceforge.net/tracker/?func=detail&amp;amp;atid=424135&amp;amp;aid=1440322&amp;amp;group_id=39046&lt;br /&gt;
&lt;br /&gt;
=== QMYSQL3 driver not loaded ===&lt;br /&gt;
&lt;br /&gt;
* apt-get install libqt3-mt-mysql&lt;br /&gt;
&lt;br /&gt;
=== Missing menu items ===&lt;br /&gt;
* apt-get install msttcorefonts&lt;br /&gt;
&lt;br /&gt;
== Scheduler log output (meaning of &amp;quot;S C I  T N&amp;quot; etc) ==&lt;br /&gt;
&lt;br /&gt;
; Title - Subtitle : should be pretty obvious!&lt;br /&gt;
; Chan : actual channel number&lt;br /&gt;
; ChID : channel ID in mythtv database&lt;br /&gt;
; Day : day in month of recording&lt;br /&gt;
; Start : start time of recording&lt;br /&gt;
; End : end time of recording&lt;br /&gt;
; S : sourceID - ID of source of programs as defined by mythtv-setup (eg. UK Freeview)&lt;br /&gt;
; C : cardID - ID of card to be used for recording. 0 if not to be recorded.&lt;br /&gt;
; I : inputID - ID of input (combination of source and card). 0 if not to be recorded.&lt;br /&gt;
; T &lt;br /&gt;
: recording type&lt;br /&gt;
:* S - SingleRecord&lt;br /&gt;
:* T - TimeslotRecord&lt;br /&gt;
:* W - WeekslotRecord&lt;br /&gt;
:* C - ChannelRecord&lt;br /&gt;
:* A - AllRecord&lt;br /&gt;
:* F - FindOneRecord&lt;br /&gt;
:* d - FindOneDailyRecord&lt;br /&gt;
:* w - FindOneWeeklyRecord&lt;br /&gt;
:* O - OverrideRecord/DontRecord&lt;br /&gt;
; N &lt;br /&gt;
: recording status:&lt;br /&gt;
:* A - Aborted&lt;br /&gt;
:* R - Recorded&lt;br /&gt;
:* ''n'' - Recording/WillRecord on ''CardID''&lt;br /&gt;
:* X - DontRecord&lt;br /&gt;
:* P - PreviousRecording&lt;br /&gt;
:* R - CurrentRecording&lt;br /&gt;
:* E - EarlierShowing&lt;br /&gt;
:* T - TooManyRecordings&lt;br /&gt;
:* c - Cancelled&lt;br /&gt;
:* M - Missed&lt;br /&gt;
:* C - Conflict&lt;br /&gt;
:* L - LaterShowing&lt;br /&gt;
:* r - Repeat&lt;br /&gt;
:* x - Inactive&lt;br /&gt;
:* K - LowDiskSpace&lt;br /&gt;
:* B - TunerBusy&lt;br /&gt;
:* N - NotListed&lt;br /&gt;
:* V - NeverRecord&lt;br /&gt;
; Pri : recording priority&lt;br /&gt;
&lt;br /&gt;
== MythTV and LIRC ==&lt;br /&gt;
=== Using the Ctrl key in config lines ===&lt;br /&gt;
Contrary to some sources, the required format for the config line is ''config=Ctrl+X''. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
begin&lt;br /&gt;
    prog = mythtv&lt;br /&gt;
    button = TV&lt;br /&gt;
    config = Ctrl+2&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Repairing broken MythTV tables ==&lt;br /&gt;
# Stop MythTV and MySQL&lt;br /&gt;
# cd /var/lib/mysql/mythconverg&lt;br /&gt;
# myisamchk *.MYI&lt;br /&gt;
# Identify broken tables&lt;br /&gt;
# myisamchk -r brokenTable.MYI&lt;br /&gt;
# Restart MythTV and MySQL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Slow mythfrontend menu transitions ==&lt;br /&gt;
This will often happen if (with an nVidia driver), the nVidia libglx file has been overwritten by an xserver upgrade. To check for this, run '''glxinfo | grep direct''' - if the driver is working the direct rendering should be on. If not, check the '''/var/log/Xorg.0.log''' for:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(EE) NVIDIA(0): Failed to initialize the GLX module...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case, it's possible to reinstall the latest nvidia linux driver, or alternatively, simply (as root):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mv /usr/X11R6/lib/modules/extensions/libglx.so /usr/X11R6/lib/modules/extensions/libglx.so.orig&lt;br /&gt;
ln -s /usr/X11R6/lib/modules/extensions/libglx.so.&amp;lt;nvidia ver&amp;gt; /usr/X11R6/lib/modules/extensions/libglx.so&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== BBC HD ==&lt;br /&gt;
Not yet possible to play this in MythTV yet, as far as I'm aware. However, you can save it to a file, and play it back (slowly, on anything but very powerful hardware).&lt;br /&gt;
&lt;br /&gt;
* Grab latest x264, ffmpeg and mplayer from svn, and compile manually.&lt;br /&gt;
* Add the following to your channels.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BBC HD1:554000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:1502:1505:36932&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Tune to the channel, and check you're getting lock with '''tzap &amp;quot;BBC HD1&amp;quot;'''&lt;br /&gt;
* Grab a portion of the stream with '''dvbstream -o 8192 &amp;gt; myfile.ts''' (Note the use of dummy PID '''8192''' - this tells dvbstream to record the entire transport stream, rather than just selected program streams).&lt;br /&gt;
* Playback the stream with '''mplayer myfile.ts'''. MPlayer should tell you there are two program streams - an H264 video on pid 1502, and an a52 audio stream on pid 1505. Sample mplayer log snippet below: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Playing myfile.ts.&lt;br /&gt;
TS file format detected.&lt;br /&gt;
VIDEO H264(pid=1502) AUDIO A52(pid=1505) NO SUBS (yet)!  PROGRAM N. -28604&lt;br /&gt;
FPS seems to be: 25.000000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MediaWiki&amp;diff=3291</id>
		<title>MediaWiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MediaWiki&amp;diff=3291"/>
				<updated>2007-11-16T14:16:10Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: /* Short URLs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Editing Sidebar ==&lt;br /&gt;
Simply load [[MediaWiki:Sidebar]] and edit it (must be admin user). For formatting help, see http://meta.wikimedia.org/wiki/Help:Navigation_bar.&lt;br /&gt;
&lt;br /&gt;
== Short URLs ==&lt;br /&gt;
* Edit /etc/apache2/conf.d/mediawiki1.10.conf and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    RewriteEngine On&lt;br /&gt;
    RewriteBase /wiki&lt;br /&gt;
    RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
    RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
    RewriteRule ^(.*)$ index.php?title=$1 [PT,L,QSA]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to the ''&amp;lt;Directory /var/lib/mediawiki1.10/&amp;gt;'' section.&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/mediawiki1.10/mediawiki.conf and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$wgArticlePath      = &amp;quot;/wiki/$1&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setting site homepage ==&lt;br /&gt;
Edit /etc/apache2/sites-available/default and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
RedirectMatch permanent ^/$ /wiki/Main_Page&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3290</id>
		<title>JIRA</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3290"/>
				<updated>2007-11-16T13:12:24Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure a new JIRA war instance for mysql and tomcat ==&lt;br /&gt;
* Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-3.11)&lt;br /&gt;
* '''sudo cp /media/old/opt/atlassian-jira-enterprise-3.9.1/webapp/WEB-INF/classes/entityengine.xml /opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'''&lt;br /&gt;
* Edit ''/opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'' and change:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;hsql&amp;quot;&lt;br /&gt;
       schema-name=&amp;quot;PUBLIC&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;mysql&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''sudo cp /opt/atlassian-jira-enterprise-3.11/etc/tomcat-5.5-jira.xml  /var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml'''&lt;br /&gt;
* Edit ''/var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml''&lt;br /&gt;
** Set ''@JIRA_WEBAPP@'' = /opt/atlassian-jira-enterprise-3.11/dist-tomcat/atlassian-jira-3.11.war&lt;br /&gt;
** Delete the resource named ''jdbc/JiraDS'', and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Resource name=&amp;quot;jdbc/JiraDS&amp;quot; auth=&amp;quot;Container&amp;quot; type=&amp;quot;javax.sql.DataSource&amp;quot;&lt;br /&gt;
          username=&amp;quot;jira&amp;quot;&lt;br /&gt;
          password=&amp;quot;jira&amp;quot;&lt;br /&gt;
          driverClassName=&amp;quot;com.mysql.jdbc.Driver&amp;quot;&lt;br /&gt;
          url=&amp;quot;jdbc:mysql://localhost/jira?autoReconnect=true&amp;amp;amp;useUnicode=true&amp;amp;amp;characterEncoding=UTF8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* From ''/opt/atlassian-jira-enterprise-3.11'', run '''sudo ./build.sh war'''&lt;br /&gt;
* Either edit ''/etc/default/tomcat5.5'' and set '''TOMCAT5_SECURITY=no''' or go through the pain of getting the security policy all setup&lt;br /&gt;
* Install libmysql-java and '''sudo ln -s /usr/share/java/mysql-connector-java-5.0.4.jar /usr/share/tomcat5.5/common/lib/'''&lt;br /&gt;
* Login to mysql as root, and '''create database jira; grant all on jira.* to jira@localhost identified by 'jira';'''&lt;br /&gt;
* Download ''http://www.atlassian.com/software/jira/docs/servers/jars/v1/jira-jars-tomcat5.zip'', extract, and copy extracted jars to ''/usr/share/tomcat5.5/common/lib/''&lt;br /&gt;
* Restart tomcat and cross your fingers&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3289</id>
		<title>JIRA</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3289"/>
				<updated>2007-11-16T12:39:40Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure a new JIRA war instance for mysql and tomcat ==&lt;br /&gt;
* Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-3.11)&lt;br /&gt;
* '''sudo cp /media/old/opt/atlassian-jira-enterprise-3.9.1/webapp/WEB-INF/classes/entityengine.xml /opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'''&lt;br /&gt;
* Edit ''/opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'' and change:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;hsql&amp;quot;&lt;br /&gt;
       schema-name=&amp;quot;PUBLIC&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;mysql&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''sudo cp /opt/atlassian-jira-enterprise-3.11/etc/tomcat-5.5-jira.xml  /var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml'''&lt;br /&gt;
* Edit ''/var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml''&lt;br /&gt;
** Set ''@JIRA_WEBAPP@'' = /opt/atlassian-jira-enterprise-3.11/dist-tomcat/atlassian-jira-3.11.war&lt;br /&gt;
** Delete the resource named ''jdbc/JiraDS'', and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Resource name=&amp;quot;jdbc/JiraDS&amp;quot; auth=&amp;quot;Container&amp;quot; type=&amp;quot;javax.sql.DataSource&amp;quot;&lt;br /&gt;
          username=&amp;quot;jira&amp;quot;&lt;br /&gt;
          password=&amp;quot;jira&amp;quot;&lt;br /&gt;
          driverClassName=&amp;quot;com.mysql.jdbc.Driver&amp;quot;&lt;br /&gt;
          url=&amp;quot;jdbc:mysql://localhost/jira?autoReconnect=true&amp;amp;amp;useUnicode=true&amp;amp;amp;characterEncoding=UTF8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* From ''/opt/atlassian-jira-enterprise-3.11'', run '''sudo ./build.sh war'''&lt;br /&gt;
* Either edit ''/etc/default/tomcat5.5'' and set '''TOMCAT5_SECURITY=no''' or go through the pain of getting the security policy all setup&lt;br /&gt;
* Install libmysql-java and '''sudo ln -s /usr/share/java/mysql-connector-java-5.0.4.jar /usr/share/tomcat5.5/common/lib/'''&lt;br /&gt;
* Login to mysql as root, and '''create database jira; grant all on jira.* to jira@localhost identified by 'jira';'''&lt;br /&gt;
* Download ''http://www.atlassian.com/software/jira/docs/servers/jars/v1/jira-jars-tomcat5.zip'', extract, and copy extracted jars to ''/usr/share/tomcat5.5/common/lib/''&lt;br /&gt;
* Restart tomcat, cross your fingers, and n&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3288</id>
		<title>JIRA</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3288"/>
				<updated>2007-11-16T12:39:03Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: /* Configure a new JIRA war instance for mysql and tomcat */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure a new JIRA war instance for mysql and tomcat ==&lt;br /&gt;
* Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-3.11)&lt;br /&gt;
* '''sudo cp /media/old/opt/atlassian-jira-enterprise-3.9.1/webapp/WEB-INF/classes/entityengine.xml /opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'''&lt;br /&gt;
* Edit ''/opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'' and change:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;hsql&amp;quot;&lt;br /&gt;
       schema-name=&amp;quot;PUBLIC&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;mysql&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''sudo cp /opt/atlassian-jira-enterprise-3.11/etc/tomcat-5.5-jira.xml  /var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml'''&lt;br /&gt;
* Edit ''/var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml''&lt;br /&gt;
** Set ''@JIRA_WEBAPP@'' = /opt/atlassian-jira-enterprise-3.11/dist-tomcat/atlassian-jira-3.11.war&lt;br /&gt;
** Delete the resource named ''jdbc/JiraDS'', and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Resource name=&amp;quot;jdbc/JiraDS&amp;quot; auth=&amp;quot;Container&amp;quot; type=&amp;quot;javax.sql.DataSource&amp;quot;&lt;br /&gt;
          username=&amp;quot;jira&amp;quot;&lt;br /&gt;
          password=&amp;quot;jira&amp;quot;&lt;br /&gt;
          driverClassName=&amp;quot;com.mysql.jdbc.Driver&amp;quot;&lt;br /&gt;
          url=&amp;quot;jdbc:mysql://localhost/jira?autoReconnect=true&amp;amp;amp;useUnicode=true&amp;amp;amp;characterEncoding=UTF8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* From ''/opt/atlassian-jira-enterprise-3.11'', run '''sudo ./build.sh war'''&lt;br /&gt;
* Either edit ''/etc/default/tomcat5.5'' and set '''TOMCAT5_SECURITY=no''' or go through the pain of getting the security policy all setup&lt;br /&gt;
* Install libmysql-java and '''sudo ln -s /usr/share/tomcat5.5/common/lib/&lt;br /&gt;
* Login to mysql as root, and '''create database jira; grant all on jira.* to jira@localhost identified by 'jira';'''&lt;br /&gt;
* Download ''http://www.atlassian.com/software/jira/docs/servers/jars/v1/jira-jars-tomcat5.zip'', extract, and copy extracted jars to ''/usr/share/tomcat5.5/common/lib/''&lt;br /&gt;
* Restart tomcat, cross your fingers, and n&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3287</id>
		<title>JIRA</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3287"/>
				<updated>2007-11-16T12:38:44Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: /* Configure a new JIRA war instance for mysql and tomcat */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure a new JIRA war instance for mysql and tomcat ==&lt;br /&gt;
* Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-3.11)&lt;br /&gt;
* '''sudo cp /media/old/opt/atlassian-jira-enterprise-3.9.1/webapp/WEB-INF/classes/entityengine.xml /opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'''&lt;br /&gt;
* Edit ''/opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'' and change:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;hsql&amp;quot;&lt;br /&gt;
       schema-name=&amp;quot;PUBLIC&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;mysql&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''sudo cp /opt/atlassian-jira-enterprise-3.11/etc/tomcat-5.5-jira.xml  /var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml'''&lt;br /&gt;
* Edit ''/var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml''&lt;br /&gt;
** Set ''@JIRA_WEBAPP@'' = /opt/atlassian-jira-enterprise-3.11/dist-tomcat/atlassian-jira-3.11.war&lt;br /&gt;
** Delete the resource named ''jdbc/JiraDS'', and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Resource name=&amp;quot;jdbc/JiraDS&amp;quot; auth=&amp;quot;Container&amp;quot; type=&amp;quot;javax.sql.DataSource&amp;quot;&lt;br /&gt;
          username=&amp;quot;jira&amp;quot;&lt;br /&gt;
          password=&amp;quot;jira&amp;quot;&lt;br /&gt;
          driverClassName=&amp;quot;com.mysql.jdbc.Driver&amp;quot;&lt;br /&gt;
          url=&amp;quot;jdbc:mysql://localhost/jira?autoReconnect=true&amp;amp;amp;useUnicode=true&amp;amp;amp;characterEncoding=UTF8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* From ''/opt/atlassian-jira-enterprise-3.11'', run '''sudo ./build.sh war'''&lt;br /&gt;
* Either edit ''/etc/default/tomcat5.5'' and set '''TOMCAT5_SECURITY=no''' or go through the pain of getting the security policy all setup&lt;br /&gt;
* Install libmysql-java and '''sudo ln -s /usr/share/tomcat5.5/common/lib/&lt;br /&gt;
* Login to mysql as root, and '''create database jira; grant all on jira.* to jira@localhost identified by 'jira';''&lt;br /&gt;
* Download ''http://www.atlassian.com/software/jira/docs/servers/jars/v1/jira-jars-tomcat5.zip'', extract, and copy extracted jars to ''/usr/share/tomcat5.5/common/lib/''&lt;br /&gt;
* Restart tomcat, cross your fingers, and n&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3286</id>
		<title>JIRA</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3286"/>
				<updated>2007-11-16T12:12:21Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure a new JIRA war instance for mysql and tomcat ==&lt;br /&gt;
* Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-3.11)&lt;br /&gt;
* '''sudo cp /media/old/opt/atlassian-jira-enterprise-3.9.1/webapp/WEB-INF/classes/entityengine.xml /opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'''&lt;br /&gt;
* Edit ''/opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'' and change:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;hsql&amp;quot;&lt;br /&gt;
       schema-name=&amp;quot;PUBLIC&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;mysql&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''sudo cp /opt/atlassian-jira-enterprise-3.11/etc/tomcat-5.5-jira.xml  /var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml'''&lt;br /&gt;
* Edit ''/var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml''&lt;br /&gt;
** Set ''@JIRA_WEBAPP@'' = /opt/atlassian-jira-enterprise-3.11/dist-tomcat/atlassian-jira-3.11.war&lt;br /&gt;
** Delete the resource named ''jdbc/JiraDS'', and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Resource name=&amp;quot;jdbc/JiraDS&amp;quot; auth=&amp;quot;Container&amp;quot; type=&amp;quot;javax.sql.DataSource&amp;quot;&lt;br /&gt;
          username=&amp;quot;jira&amp;quot;&lt;br /&gt;
          password=&amp;quot;jira&amp;quot;&lt;br /&gt;
          driverClassName=&amp;quot;com.mysql.jdbc.Driver&amp;quot;&lt;br /&gt;
          url=&amp;quot;jdbc:mysql://localhost/jira?autoReconnect=true&amp;amp;amp;useUnicode=true&amp;amp;amp;characterEncoding=UTF8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* From ''/opt/atlassian-jira-enterprise-3.11'', run '''sudo ./build.sh war'''&lt;br /&gt;
* Either edit ''/etc/default/tomcat5.5'' and set '''TOMCAT5_SECURITY=no''' or go through the pain of getting the security policy all setup&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3285</id>
		<title>JIRA</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3285"/>
				<updated>2007-11-16T12:05:30Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure a new JIRA war instance for mysql and tomcat ==&lt;br /&gt;
* Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-3.11)&lt;br /&gt;
* '''sudo cp /media/old/opt/atlassian-jira-enterprise-3.9.1/webapp/WEB-INF/classes/entityengine.xml /opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'''&lt;br /&gt;
* Edit ''/opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'' and change:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;hsql&amp;quot;&lt;br /&gt;
       schema-name=&amp;quot;PUBLIC&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;mysql&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''sudo cp /opt/atlassian-jira-enterprise-3.11/etc/tomcat-5.5-jira.xml  /var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml'''&lt;br /&gt;
* Edit ''/var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml''&lt;br /&gt;
** Set ''@JIRA_WEBAPP@'' = /opt/atlassian-jira-enterprise-3.11/dist-tomcat/atlassian-jira-3.11.war&lt;br /&gt;
** Delete the resource named ''jdbc/JiraDS'', and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Resource name=&amp;quot;jdbc/JiraDS&amp;quot; auth=&amp;quot;Container&amp;quot; type=&amp;quot;javax.sql.DataSource&amp;quot;&lt;br /&gt;
          username=&amp;quot;jira&amp;quot;&lt;br /&gt;
          password=&amp;quot;jira&amp;quot;&lt;br /&gt;
          driverClassName=&amp;quot;com.mysql.jdbc.Driver&amp;quot;&lt;br /&gt;
          url=&amp;quot;jdbc:mysql://localhost/jira?autoReconnect=true&amp;amp;amp;useUnicode=true&amp;amp;amp;characterEncoding=UTF8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* From ''/opt/atlassian-jira-enterprise-3.11'', run '''sudo ./build.sh war'''&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3284</id>
		<title>JIRA</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3284"/>
				<updated>2007-11-16T11:59:23Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure a new JIRA war instance for mysql and tomcat ==&lt;br /&gt;
* Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-3.11)&lt;br /&gt;
* '''sudo cp /media/old/opt/atlassian-jira-enterprise-3.9.1/webapp/WEB-INF/classes/entityengine.xml /opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'''&lt;br /&gt;
* Edit ''/opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'' and change:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;hsql&amp;quot;&lt;br /&gt;
       schema-name=&amp;quot;PUBLIC&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;mysql&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''sudo cp /opt/atlassian-jira-enterprise-3.11/etc/tomcat-5.5-jira.xml  /var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml'''&lt;br /&gt;
* Edit ''/var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml'', delete the resource named ''jdbc/JiraDS'', and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Resource name=&amp;quot;jdbc/JiraDS&amp;quot; auth=&amp;quot;Container&amp;quot; type=&amp;quot;javax.sql.DataSource&amp;quot;&lt;br /&gt;
          username=&amp;quot;jira&amp;quot;&lt;br /&gt;
          password=&amp;quot;jira&amp;quot;&lt;br /&gt;
          driverClassName=&amp;quot;com.mysql.jdbc.Driver&amp;quot;&lt;br /&gt;
          url=&amp;quot;jdbc:mysql://localhost/jira?autoReconnect=true&amp;amp;amp;useUnicode=true&amp;amp;amp;characterEncoding=UTF8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* From ''/opt/atlassian-jira-enterprise-3.11'', run '''sudo ./build.sh war'''&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3283</id>
		<title>JIRA</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3283"/>
				<updated>2007-11-16T11:59:01Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure a new JIRA war instance for mysql and tomcat ==&lt;br /&gt;
* Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-3.11)&lt;br /&gt;
* '''sudo cp /media/old/opt/atlassian-jira-enterprise-3.9.1/webapp/WEB-INF/classes/entityengine.xml /opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'''&lt;br /&gt;
* Edit ''/opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'' and change:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;hsql&amp;quot;&lt;br /&gt;
       schema-name=&amp;quot;PUBLIC&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;mysql&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''sudo cp /opt/atlassian-jira-enterprise-3.11/etc/tomcat-5.5-jira.xml  /var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml'''&lt;br /&gt;
* Edit ''/var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml'', delete the resource named , and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Resource name=&amp;quot;jdbc/JiraDS&amp;quot; auth=&amp;quot;Container&amp;quot; type=&amp;quot;javax.sql.DataSource&amp;quot;&lt;br /&gt;
          username=&amp;quot;jira&amp;quot;&lt;br /&gt;
          password=&amp;quot;jira&amp;quot;&lt;br /&gt;
          driverClassName=&amp;quot;com.mysql.jdbc.Driver&amp;quot;&lt;br /&gt;
          url=&amp;quot;jdbc:mysql://localhost/jira?autoReconnect=true&amp;amp;amp;useUnicode=true&amp;amp;amp;characterEncoding=UTF8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* From ''/opt/atlassian-jira-enterprise-3.11'', run '''sudo ./build.sh war'''&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3282</id>
		<title>JIRA</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=JIRA&amp;diff=3282"/>
				<updated>2007-11-16T11:56:55Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: New page: == Configure a new JIRA war instance for mysql and tomcat == * Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-3.11) * '''sudo cp /media/old/opt/atlassian-jira-enterprise-3...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Configure a new JIRA war instance for mysql and tomcat ==&lt;br /&gt;
* Extract tar.gz file to /opt (eg. /opt/atlassian-jira-enterprise-3.11)&lt;br /&gt;
* '''sudo cp /media/old/opt/atlassian-jira-enterprise-3.9.1/webapp/WEB-INF/classes/entityengine.xml /opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml'''&lt;br /&gt;
* Edit '''/opt/atlassian-jira-enterprise-3.11/webapp/WEB-INF/classes/entityengine.xml''' and change:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;hsql&amp;quot;&lt;br /&gt;
       schema-name=&amp;quot;PUBLIC&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;datasource name=&amp;quot;defaultDS&amp;quot; field-type-name=&amp;quot;mysql&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* '''sudo cp /opt/atlassian-jira-enterprise-3.11/etc/tomcat-5.5-jira.xml  /var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml'''&lt;br /&gt;
* Edit '''/var/lib/tomcat5.5/conf/Catalina/localhost/jira.xml''', delete the resource named , and replace with:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;Resource name=&amp;quot;jdbc/JiraDS&amp;quot; auth=&amp;quot;Container&amp;quot; type=&amp;quot;javax.sql.DataSource&amp;quot;&lt;br /&gt;
          username=&amp;quot;jira&amp;quot;&lt;br /&gt;
          password=&amp;quot;jira&amp;quot;&lt;br /&gt;
          driverClassName=&amp;quot;com.mysql.jdbc.Driver&amp;quot;&lt;br /&gt;
          url=&amp;quot;jdbc:mysql://localhost/jira?autoReconnect=true&amp;amp;amp;useUnicode=true&amp;amp;amp;characterEncoding=UTF8&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Linux_Tips&amp;diff=3281</id>
		<title>Linux Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Linux_Tips&amp;diff=3281"/>
				<updated>2007-11-16T11:39:32Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Note, these tips are mainly aimed at Ubuntu/Kubuntu distributions.&lt;br /&gt;
&lt;br /&gt;
== Administration ==&lt;br /&gt;
* [[apt-get/dpkg]]&lt;br /&gt;
* [[Apache2]]&lt;br /&gt;
* [[bash]]&lt;br /&gt;
* [[AIGLX &amp;amp; Compiz]]&lt;br /&gt;
* [[DVDs]]&lt;br /&gt;
* [[Firefox]]&lt;br /&gt;
* [[Java]]&lt;br /&gt;
* [[JIRA]]&lt;br /&gt;
* [[kPlaylist]]&lt;br /&gt;
* [[KDE]]&lt;br /&gt;
* [[Kerberos &amp;amp; LDAP]]&lt;br /&gt;
* [[LIRC]]&lt;br /&gt;
* [[LVM]]&lt;br /&gt;
* [[Mail Server]] (Postfix, Procmail, Spamassassin etc.)&lt;br /&gt;
* [[MediaWiki]]&lt;br /&gt;
* [[Miscellaneous]]&lt;br /&gt;
* [[Mutt]]&lt;br /&gt;
* [[MySQL]]&lt;br /&gt;
* [[MythTV]]&lt;br /&gt;
* [[Pine]]&lt;br /&gt;
* [[Samba]]&lt;br /&gt;
* [[Snapshot backups using rsync]]&lt;br /&gt;
* [[SNMP/MRTG]]&lt;br /&gt;
* [[Subversion]]&lt;br /&gt;
* [[Tomcat 5]]&lt;br /&gt;
* [[Tripwire]]&lt;br /&gt;
* [[User Management]]&lt;br /&gt;
* [[XDMCP &amp;amp; VNC]]&lt;br /&gt;
* [[Webmin]]&lt;br /&gt;
* [[WPA]]&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
* [[Sony TR2MP on Kubuntu Dapper Drake]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Subversion&amp;diff=3280</id>
		<title>Subversion</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Subversion&amp;diff=3280"/>
				<updated>2007-11-16T10:04:43Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Ensuring directory perms for svn repos are correct ==&lt;br /&gt;
* Create user/group svn, and ensure svnserve runs as this user/group.&lt;br /&gt;
* Add user www-data to group svn:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo adduser www-data svn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Run:&lt;br /&gt;
* Create as a script (eg. '''/usr/local/bin/svnfixperms''') and run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
for dir in /var/lib/svn/repositories/*&lt;br /&gt;
do&lt;br /&gt;
    echo &amp;quot;Fixing perms for $dir...&amp;quot;&lt;br /&gt;
    find $dir -exec chown root:root {} \;&lt;br /&gt;
    for subdir in $dir/dav $dir/db&lt;br /&gt;
    do&lt;br /&gt;
        find $subdir -exec chown svn:svn {} \;&lt;br /&gt;
        find $subdir -type f -exec chmod 664 {} \;&lt;br /&gt;
        find $subdir -type d -exec chmod 2775 {} \;&lt;br /&gt;
    done&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating a new repository ==&lt;br /&gt;
# sudo svnadmin create /var/lib/svn/repositories/''reponame''&lt;br /&gt;
# sudo svnfixperms&lt;br /&gt;
# svn import /var/lib/svn/template svn://localhost/''reponame''&lt;br /&gt;
&lt;br /&gt;
== ''Authorization failed'' error ==&lt;br /&gt;
If you're using the '''svn://...''' syntax, is svnserve running?&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Subversion&amp;diff=3279</id>
		<title>Subversion</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Subversion&amp;diff=3279"/>
				<updated>2007-11-16T10:03:38Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Ensuring directory perms for svn repos are correct ==&lt;br /&gt;
* Create user/group svn, and ensure svnserve runs as this user/group.&lt;br /&gt;
* Add user www-data to group svn:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo adduser www-data svn&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create as a script (eg. '''/usr/local/bin/svnfixperms''') and run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
for dir in /var/lib/svn/repositories/*&lt;br /&gt;
do&lt;br /&gt;
    echo &amp;quot;Fixing perms for $dir...&amp;quot;&lt;br /&gt;
    for subdir in $dir/dav $dir/db&lt;br /&gt;
    do&lt;br /&gt;
        find $subdir -exec chown svn:svn {} \;&lt;br /&gt;
        find $subdir -type f -exec chmod 664 {} \;&lt;br /&gt;
        find $subdir -type d -exec chmod 2775 {} \;&lt;br /&gt;
    done&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating a new repository ==&lt;br /&gt;
# sudo svnadmin create /var/lib/svn/repositories/''reponame''&lt;br /&gt;
# sudo svnfixperms&lt;br /&gt;
# svn import /var/lib/svn/template svn://localhost/''reponame''&lt;br /&gt;
&lt;br /&gt;
== ''Authorization failed'' error ==&lt;br /&gt;
If you're using the '''svn://...''' syntax, is svnserve running?&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=User_Management&amp;diff=3278</id>
		<title>User Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=User_Management&amp;diff=3278"/>
				<updated>2007-11-16T09:46:45Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To add a new user, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo adduser userid&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add a system user suitable for running daemon processes, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo adduser --system --no-create-home --group userid&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See ''man adduser'' for more options. NB. Maximum username length is 8 chars - although this script won't enforce it, it will stop many processes/tools from displaying the username properly.&lt;br /&gt;
&lt;br /&gt;
To add a user to an existing group:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo adduser user group&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MediaWiki&amp;diff=3277</id>
		<title>MediaWiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MediaWiki&amp;diff=3277"/>
				<updated>2007-11-12T06:27:04Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Editing Sidebar ==&lt;br /&gt;
Simply load [[MediaWiki:Sidebar]] and edit it (must be admin user). For formatting help, see http://meta.wikimedia.org/wiki/Help:Navigation_bar.&lt;br /&gt;
&lt;br /&gt;
== Short URLs ==&lt;br /&gt;
See http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url&lt;br /&gt;
&lt;br /&gt;
== Setting site homepage ==&lt;br /&gt;
Edit /etc/apache2/sites-available/default and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
RedirectMatch permanent ^/$ /wiki/Main_Page&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Main_Page&amp;diff=3271</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Main_Page&amp;diff=3271"/>
				<updated>2007-11-03T18:42:04Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: Restored page content&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== briki Contents ==&lt;br /&gt;
=== Technology ===&lt;br /&gt;
==== Software ====&lt;br /&gt;
* [[Linux Tips]]&lt;br /&gt;
* [[Windows XP Tips]]&lt;br /&gt;
* [[MacOS X Tips/ToDo]]&lt;br /&gt;
* [[Networking Tips]]&lt;br /&gt;
&lt;br /&gt;
==== Hardware ====&lt;br /&gt;
* [[Machine List]]&lt;br /&gt;
* [[Sony TR Tips]]&lt;br /&gt;
* [[SPV M5000 Tips]]&lt;br /&gt;
* [[Speedtouch 780 Tips]]&lt;br /&gt;
&lt;br /&gt;
=== Other ===&lt;br /&gt;
* [[Simpsons Quotes]]&lt;br /&gt;
* [[Temporary Pages]]&lt;br /&gt;
&lt;br /&gt;
== Other Contents ==&lt;br /&gt;
=== Media ===&lt;br /&gt;
----&lt;br /&gt;
* [http://mail.bretts.org Mail] (protected)&lt;br /&gt;
* [http://bretts.org/pics/ Pictures] (protected)&lt;br /&gt;
* [http://bretts.org/music/ Music] (protected)&lt;br /&gt;
* [http://mythweb.bretts.org/ MythWeb] (protected)&lt;br /&gt;
&lt;br /&gt;
=== Admin ===&lt;br /&gt;
----&lt;br /&gt;
==== Monitoring ====&lt;br /&gt;
* [http://bretts.org/nagios/ Process Monitoring] (protected)&lt;br /&gt;
* [http://bretts.org/graph/ Network Monitoring]&lt;br /&gt;
* [http://bretts.org/stats/ Webserver Usage]&lt;br /&gt;
* [http://bretts.org/usage/ Webserver Usage (Alternate)]&lt;br /&gt;
&lt;br /&gt;
==== Apache (protected) ====&lt;br /&gt;
* [http://bretts.org/manual Manual]&lt;br /&gt;
* [http://bretts.org/server-info Server Info]&lt;br /&gt;
* [http://bretts.org/server-status Server Status]&lt;br /&gt;
* [http://bretts.org/php-info PHP Info]&lt;br /&gt;
&lt;br /&gt;
==== Tomcat (protected) ====&lt;br /&gt;
* [http://bretts.org/manager/html Manager]&lt;br /&gt;
&lt;br /&gt;
=== Development ===&lt;br /&gt;
----&lt;br /&gt;
* [http://bretts.org/confluence Confluence]&lt;br /&gt;
* [http://bretts.org/jira JIRA]&lt;br /&gt;
==== Continuous Integration ====&lt;br /&gt;
* [http://bretts.org/bamboo Bamboo]&lt;br /&gt;
* [http://bretts.org/cruisecontrol CruiseControl]&lt;br /&gt;
&lt;br /&gt;
==== Bot ====&lt;br /&gt;
* [http://bretts.org/trac BugTrac]&lt;br /&gt;
* [http://bretts.org/bamboo/download/BOT-TRUNK/artifacts/latest/JARs Bot Code] (latest)&lt;br /&gt;
* [http://bretts.org/bamboo/download/BOT-TRUNK/artifacts/latest/Javadoc Bot Documentation] (latest)&lt;br /&gt;
&lt;br /&gt;
==== SVN Repositories ====&lt;br /&gt;
* [http://svn.bretts.org All] (protected)&lt;br /&gt;
** [http://svn.bretts.org/bot Bot]&lt;br /&gt;
** [http://svn.bretts.org/java-test Java Test]&lt;br /&gt;
** [http://svn.bretts.org/pics Pictures]&lt;br /&gt;
&lt;br /&gt;
=== Azureus ===&lt;br /&gt;
----&lt;br /&gt;
==== Colorado ====&lt;br /&gt;
* [http://bretts.org:7890 UI]&lt;br /&gt;
* [http://bretts.org/cocoon/azureus/colorado/ Statistics]&lt;br /&gt;
&lt;br /&gt;
==== Alaska ====&lt;br /&gt;
* [http://bretts.org:7891 UI]&lt;br /&gt;
* [http://bretts.org/cocoon/azureus/alaska/ Statistics]&lt;br /&gt;
&lt;br /&gt;
==== Vaio ====&lt;br /&gt;
* [http://bretts.org:7892 UI]&lt;br /&gt;
* [http://bretts.org/cocoon/azureus/vaio/ Statistics]&lt;br /&gt;
&lt;br /&gt;
=== Internal Access Only ===&lt;br /&gt;
----&lt;br /&gt;
* [https://colorado:10000 Webmin]&lt;br /&gt;
* [http://colorado:8000 Cruisecontrol JMX]&lt;br /&gt;
&lt;br /&gt;
==== Tomcat ====&lt;br /&gt;
* [http://colorado:8180 Tomcat]&lt;br /&gt;
* [http://colorado:8180/tomcat-docs Docs]&lt;br /&gt;
* [http://colorado:8180/admin Admin]&lt;br /&gt;
* [http://colorado:8180/manager/html Manager]&lt;br /&gt;
&lt;br /&gt;
==== Internal Hosts ====&lt;br /&gt;
* [http://router Router]&lt;br /&gt;
* [http://router-old Router (Old)]&lt;br /&gt;
* [http://wap Wireless Access Point]&lt;br /&gt;
&lt;br /&gt;
== About ==&lt;br /&gt;
'''briki''' (''bretts.org wiki'') administered by Andrew Brett. Feel free to contribute to pre-existing pages.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=MacOS_X_Tips&amp;diff=3270</id>
		<title>MacOS X Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=MacOS_X_Tips&amp;diff=3270"/>
				<updated>2007-11-03T18:03:10Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 20 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== TO DO ==&lt;br /&gt;
=== Issues ===&lt;br /&gt;
* Increase font size: http://thedesignspace.net/MT2archives/000196.html / TinkerTool / Silk&lt;br /&gt;
* British Windows keyboard mapping: http://www.clunkclunk.com/mskeyboards.zip&lt;br /&gt;
* Maximise firefox&lt;br /&gt;
&lt;br /&gt;
=== Configuration ===&lt;br /&gt;
* DesktopManager - run at startup: http://forums.mactalk.com.au/showthread.php?t=6873&lt;br /&gt;
* smb shares - mount at startup: http://www.macosxhints.com/article.php?story=20031022164821984&lt;br /&gt;
&lt;br /&gt;
=== Software ===&lt;br /&gt;
* RemoteBuddy&lt;br /&gt;
* xvid codec&lt;br /&gt;
* VLC&lt;br /&gt;
* VNC&lt;br /&gt;
* MediaCentral&lt;br /&gt;
&lt;br /&gt;
== Useful Commands ==&lt;br /&gt;
; mdinfo : Mac equivalent to locate (since it seems locatedb isn't periodically updated for OS X)&lt;br /&gt;
&lt;br /&gt;
== Installing from the command line ==&lt;br /&gt;
* hdiutil attach ''file''.dmg&lt;br /&gt;
* cd /Volumes/''mount''/&lt;br /&gt;
* sudo installer -pkg ''install''.pkg -target &amp;quot;/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Compiling mythtv ==&lt;br /&gt;
At the time of writing the current (14660) revision of mythtv does not build for Mac OS X. One working build is 14225. To build this:&lt;br /&gt;
&lt;br /&gt;
NB.  Ensure you don't have xmms or xmms-shlibs installed via fink/apt-get&lt;br /&gt;
&lt;br /&gt;
* svn co -r 14225 http://svn.mythtv.org/svn/trunk/mythtv/contrib/OSX mythtv-14225&lt;br /&gt;
* cd mythtv-14225&lt;br /&gt;
* ./osx-packager.pl -svnrev 14225&lt;br /&gt;
&lt;br /&gt;
Alternatively, to fix the latest version for an Intel Mac:&lt;br /&gt;
&lt;br /&gt;
* svn co http://svn.mythtv.org/svn/trunk/mythtv/contrib/OSX mythtv&lt;br /&gt;
* cd mythtv&lt;br /&gt;
* Add &amp;quot;'--arch=pentium4',&amp;quot; to the mythtv args list around line 488 of osx-packager.pl&lt;br /&gt;
* ./osx-packager.pl&lt;br /&gt;
* You'll get an &amp;quot;ERROR: CPU specific ./configure options failed compile test&amp;quot; warning when osx-packager runs configure for mythtv, but this can be ignored&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=LVM&amp;diff=3244</id>
		<title>LVM</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=LVM&amp;diff=3244"/>
				<updated>2007-11-03T18:03:08Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 10 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
* One or more Physical Volumes (eg. /dev/sda2) are joined together in a Volume Group (eg. /dev/vg1)&lt;br /&gt;
* A Volume Group is split into one or more Logical Volumes (eg. /dev/vg1/media)&lt;br /&gt;
&lt;br /&gt;
== Creating a new volume group &amp;amp; logical volume ==&lt;br /&gt;
To create a volume group (/dev/vg1) consisting of 1 physical volume (/dev/sda2), and split into only 1 logical volume (/dev/vg1/media):&lt;br /&gt;
&lt;br /&gt;
* Setup partition as a physical volume:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo pvcreate /dev/sda2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create a volume group consisting of only this physical volume:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo vgcreate vg1 /dev/sda2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Check volume group has been created successfully:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vgdisplay&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should show 1 volume group consisting of 0 LVs (see '''Cur LV''') and 1 PV (see '''Cur PV'''). Note the number of free extents in the volume group.&lt;br /&gt;
&lt;br /&gt;
* Create a logical volume with this number of free extents:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo lvcreate -l &amp;lt;num-extents&amp;gt; --name media vg1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Format the logical volume as ext3:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkfs.ext3 /dev/vg1/media&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Mount the volume by adding the following line to /etc/fstab:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/dev/vg1/media   /var/media   ext3   defaults    0  2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo mount /dev/vg1/media&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Adding a physical volume to a volume group and logical volume ==&lt;br /&gt;
For example, to add /dev/sdb2 to /dev/vg1/media&lt;br /&gt;
&lt;br /&gt;
* Setup partition as a physical volume:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo pvcreate /dev/sdb2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Create a volume group consisting of only this physical volume:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo vgextend vg1 /dev/sdb2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Check volume group has been changed successfully, and note the number of new free extents:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vgdisplay&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Unmount the logical volume:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo umount /dev/vg1/media&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Extend the logical volume:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo lvextend -l +&amp;lt;num-extents&amp;gt; /dev/vg1/media&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Check that the volume sizes look correct&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo vgdisplay&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Resize the ext3 filesystem on /dev/vg1/media&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo resize2fs /dev/vg1/media&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Mount the logical volume:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo mount /dev/vg1/media&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Resizing a physical volume ==&lt;br /&gt;
For example, deleting /dev/sda3 and extending /dev/sda2 to use the free space. Note here that we are extending a '''physical''' volume, not just a logical one.&lt;br /&gt;
&lt;br /&gt;
* Unmount any logical volumes which use /dev/sda2&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo umount /dev/vg1/media&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Use '''fdisk''' to delete /dev/sda3, delete old /dev/sda2 and recreate as a larger partition (this will not actually delete any data from /dev/sda2)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo fdisk /dev/sda&lt;br /&gt;
&lt;br /&gt;
The number of cylinders for this disk is set to 38913.&lt;br /&gt;
There is nothing wrong with that, but this is larger than 1024,&lt;br /&gt;
and could in certain setups cause problems with:&lt;br /&gt;
1) software that runs at boot time (e.g., old versions of LILO)&lt;br /&gt;
2) booting and partitioning software from other OSs&lt;br /&gt;
   (e.g., DOS FDISK, OS/2 FDISK)&lt;br /&gt;
&lt;br /&gt;
Command (m for help): p&lt;br /&gt;
&lt;br /&gt;
Disk /dev/sda: 320.0 GB, 320072933376 bytes&lt;br /&gt;
255 heads, 63 sectors/track, 38913 cylinders&lt;br /&gt;
Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;
Disk identifier: 0x08270827&lt;br /&gt;
&lt;br /&gt;
   Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
/dev/sda1   *           1       16708   134206976    7  HPFS/NTFS&lt;br /&gt;
/dev/sda2           16708       20532    30716282+  83  Linux&lt;br /&gt;
/dev/sda3           20533       38913   147645380    7  HPFS/NTFS&lt;br /&gt;
&lt;br /&gt;
Command (m for help): d&lt;br /&gt;
Partition number (1-4): 3&lt;br /&gt;
&lt;br /&gt;
Command (m for help): p&lt;br /&gt;
&lt;br /&gt;
Disk /dev/sda: 320.0 GB, 320072933376 bytes&lt;br /&gt;
255 heads, 63 sectors/track, 38913 cylinders&lt;br /&gt;
Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;
Disk identifier: 0x08270827&lt;br /&gt;
&lt;br /&gt;
   Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
/dev/sda1   *           1       16708   134206976    7  HPFS/NTFS&lt;br /&gt;
/dev/sda2           16708       20532    30716282+  83  Linux&lt;br /&gt;
&lt;br /&gt;
Command (m for help): d&lt;br /&gt;
Partition number (1-4): 2&lt;br /&gt;
&lt;br /&gt;
Command (m for help): n&lt;br /&gt;
Command action&lt;br /&gt;
   e   extended&lt;br /&gt;
   p   primary partition (1-4)&lt;br /&gt;
p&lt;br /&gt;
Partition number (1-4): 2&lt;br /&gt;
First sector (268414015-625142447, default 268414015):&lt;br /&gt;
Using default value 268414015&lt;br /&gt;
Last sector or +size or +sizeM or +sizeK (268414015-625142447, default 625142447):&lt;br /&gt;
Using default value 625142447&lt;br /&gt;
&lt;br /&gt;
Command (m for help): p&lt;br /&gt;
&lt;br /&gt;
Disk /dev/sda: 320.0 GB, 320072933376 bytes&lt;br /&gt;
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors&lt;br /&gt;
Units = sectors of 1 * 512 = 512 bytes&lt;br /&gt;
Disk identifier: 0x08270827&lt;br /&gt;
&lt;br /&gt;
   Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
/dev/sda1   *          63   268414014   134206976    7  HPFS/NTFS&lt;br /&gt;
/dev/sda2       268414015   625142447   178364216+  83  Linux&lt;br /&gt;
&lt;br /&gt;
Command (m for help): w&lt;br /&gt;
The partition table has been altered!&lt;br /&gt;
&lt;br /&gt;
Calling ioctl() to re-read partition table.&lt;br /&gt;
&lt;br /&gt;
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.&lt;br /&gt;
The kernel still uses the old table.&lt;br /&gt;
The new table will be used at the next reboot.&lt;br /&gt;
Syncing disks.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* If fdisk warned you that the kernel still uses the old table, you will need to reboot now. Remember to unmount relevant logical volumes again after rebooting.&lt;br /&gt;
&lt;br /&gt;
* Resize the LVM physical volume to match the new partition size&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo pvresize /dev/sda2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Check how many free extents exist in the volume group - you should see extents corresponding to the increase in size of your physical partition&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo vgdisplay&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add this many extents to /dev/vg1/media&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo lvextend -l +&amp;lt;num-extents&amp;gt; /dev/vg1/media&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Check that the volume sizes look correct&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo vgdisplay&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Resize the ext3 filesystem on /dev/vg1/media&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo resize2fs /dev/vg1/media&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Remount affected filesystems&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo mount /dev/vg1/media&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Check that everything looks ok :)&lt;br /&gt;
&lt;br /&gt;
== Reactivating a volume group ==&lt;br /&gt;
If things have gone a bit wrong, and you've had to manually fix stuff (with fdisk, and the like), then to reactivate the volume group, and get it to recognise the fixed LVs, simply run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo vgchange -a y  /dev/vg1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Sample vgdisplay Output ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  --- Volume group ---&lt;br /&gt;
  VG Name               vg1&lt;br /&gt;
  System ID&lt;br /&gt;
  Format                lvm2&lt;br /&gt;
  Metadata Areas        1&lt;br /&gt;
  Metadata Sequence No  5&lt;br /&gt;
  VG Access             read/write&lt;br /&gt;
  VG Status             resizable&lt;br /&gt;
  MAX LV                0&lt;br /&gt;
  Cur LV                1&lt;br /&gt;
  Open LV               1&lt;br /&gt;
  Max PV                0&lt;br /&gt;
  Cur PV                1&lt;br /&gt;
  Act PV                1&lt;br /&gt;
  VG Size               170.10 GB&lt;br /&gt;
  PE Size               4.00 MB&lt;br /&gt;
  Total PE              43545&lt;br /&gt;
  Alloc PE / Size       43545 / 170.10 GB&lt;br /&gt;
  Free  PE / Size       0 / 0&lt;br /&gt;
  VG UUID               TACrPR-xO6J-mHz0-hiMn-ax3G-R3a4-dv2ivp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Kerberos_%26_LDAP&amp;diff=3246</id>
		<title>Kerberos &amp; LDAP</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Kerberos_%26_LDAP&amp;diff=3246"/>
				<updated>2007-11-03T18:03:08Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 1 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See https://help.ubuntu.com/community/SingleSignOn&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Machine_List&amp;diff=3249</id>
		<title>Machine List</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Machine_List&amp;diff=3249"/>
				<updated>2007-11-03T18:03:08Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 2 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== History ==&lt;br /&gt;
&lt;br /&gt;
; Pre-networking :&lt;br /&gt;
* (1988-1993) 8086 4.2MHz, MS-DOS 3.3&lt;br /&gt;
* (1993-1995) 386SX 16MHz, Windows 3.1/MS-DOS 5.0&lt;br /&gt;
* (1995-1996) 486DX 50MHz, Windows 3.1/MS-DOS 5.0 - Windows 95&lt;br /&gt;
&lt;br /&gt;
; indiana :&lt;br /&gt;
* (1996 - 1999) Fujitsu-ICL Pentium 90, Windows 95&lt;br /&gt;
; colorado : &lt;br /&gt;
* (1999 - 2001) Homebuilt Celeron 300 (later Pentium 3 800), Windows 98 - XP&lt;br /&gt;
* (2001 - 2002) Homebuilt Pentium 3 800, Windows XP&lt;br /&gt;
* (2002 - 2005) Homebuilt Pentium 3 800, Mandriva Linux&lt;br /&gt;
* (2005 - ) Dell Dimension 4300 (Pentium 4 1.8), Kubuntu 6.04&lt;br /&gt;
; texas :&lt;br /&gt;
* (2002 - 2005) Dell Dimension 4300 (Pentium 4 1.8), Windows XP&lt;br /&gt;
; vermont :&lt;br /&gt;
* (2004 - 2006) Sony Vaio TR5MP (Pentium M 1.0), Windows XP&lt;br /&gt;
* (2006 - ) Sony Vaio TR5MP (Pentium M 1.0), Ubuntu 6.10-7.10&lt;br /&gt;
; alaska :&lt;br /&gt;
* (2005 - 2007) Homebuilt Athlon64 3500+, Windows XP&lt;br /&gt;
* (2007 - ) Homebuilt Athlon64 3500+, Ubuntu 7.10&lt;br /&gt;
; hawaii : &lt;br /&gt;
* (2007 - ) Nintendo Wii&lt;br /&gt;
; montana :&lt;br /&gt;
* (2007 - ) Apple Mac Mini (Core 2 Duo 2.0), Mac OS X Tiger&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Miscellaneous&amp;diff=3223</id>
		<title>Miscellaneous</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Miscellaneous&amp;diff=3223"/>
				<updated>2007-11-03T18:03:07Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 13 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Ubuntu (Edgy) Starter Guide ==&lt;br /&gt;
http://ubuntuguide.org/wiki/Ubuntu_Edgy&lt;br /&gt;
&lt;br /&gt;
== Adding startup service ==&lt;br /&gt;
To ensure a service which exists in /etc/init.d is run on startup, simply run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo update-rc.d &amp;lt;service&amp;gt; defaults&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Enabling Printing ==&lt;br /&gt;
# /bin/chmod 06555 /usr/bin/lpr /usr/bin/lprm&lt;br /&gt;
# /sbin/chkconfig lpd on  &lt;br /&gt;
&lt;br /&gt;
== Hardware ==&lt;br /&gt;
=== ATI Radeon on a custom kernel ===&lt;br /&gt;
Stock ubuntu kernels include the ATI kernel source, but if you've built the kernel yourself and you're getting '''atiddxDriScreenInit failed''' errors in Xorg.0.log, you'll need to install this manually with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install fglrx-kernel-source &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot once the install completes, and fglrx should be good to go.&lt;br /&gt;
&lt;br /&gt;
=== Logitech MX-1000 ===&lt;br /&gt;
&lt;br /&gt;
Add this section to your /etc/X11/xorg.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Logitech MX-1000&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;CorePointer&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Name&amp;quot;        &amp;quot;PS2++ Logitech MX Mouse&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Buttons&amp;quot;         &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;ZAxisMapping&amp;quot;    &amp;quot;4 5&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;quot;Name&amp;quot; is read from the relevant &amp;quot;Name&amp;quot; for your device in /proc/bus/input/devices. Then follow the remaining instructions in http://www.ubuntuforums.org/showthread.php?t=65471&lt;br /&gt;
&lt;br /&gt;
Although this document describes the steps for a USB mouse, this also works when connected to the PS2 port. Note, however, that a Logitech MX-1000 forward and back keys are 8 and 9, and '''xvkbd''' is located in /usr/bin rather than /usr/X11R6/bin. In addition, as stated in the text, part 1.4 is unnecessary.&lt;br /&gt;
&lt;br /&gt;
In newer versions of X11, it seems that evdev is a driver rather than a protocol, so you'll need the line:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Driver     &amp;quot;evdev&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
rather than &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Driver     &amp;quot;mouse&amp;quot;&lt;br /&gt;
Protocol   &amp;quot;evdev&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also, I needed to append &amp;quot;SendCoreEvents&amp;quot; to the Logitech line in the layout section&lt;br /&gt;
&lt;br /&gt;
== Convert m4a to mp3 ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -ab &amp;lt;bitrate in kb/s&amp;gt; -i &amp;lt;inputfile&amp;gt; &amp;lt;outputfile&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note: the error '''output buffer too small''' can be ignored.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Changing default ALSA soundcard ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
asoundconf list&lt;br /&gt;
asoundconf set-default-card &amp;lt;cardname&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List hardware details ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo lshw -businfo&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Add swap space ==&lt;br /&gt;
* Create swap partition using ''fdisk''&lt;br /&gt;
&lt;br /&gt;
* Create swap filesystem&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo mkswap &amp;lt;device&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Activate swap&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo swapon &amp;lt;device&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Modify /etc/fstab to allow swap to be activated at boot time&lt;br /&gt;
&lt;br /&gt;
== Change userid/groupid for an existing user/group ==&lt;br /&gt;
* Change groupid in /etc/group&lt;br /&gt;
* Run '''sudo grpconv''' to update /etc/gshadow&lt;br /&gt;
* Change userid in /etc/passwd (and also the primary groupid for any changed groupids)&lt;br /&gt;
* Run '''sudo pwconv''' to update /etc/shadow&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Briki:About&amp;diff=3225</id>
		<title>Briki:About</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Briki:About&amp;diff=3225"/>
				<updated>2007-11-03T18:03:07Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 1 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''briki''' (''bretts.org wiki'') administered by Andrew Brett. Feel free to contribute to pre-existing pages.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Tripwire&amp;diff=3228</id>
		<title>Tripwire</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Tripwire&amp;diff=3228"/>
				<updated>2007-11-03T18:03:07Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 2 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Checking for changes ==&lt;br /&gt;
This looks at all the files specified in the policyfile, and compares their fingerprints with those in the tripwire database. It also saves a copy of the report in /var/lib/tripwire/reports&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tripwire --check [--email-report]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Updating after known changes (eg. '''apt-get upgrade''') ==&lt;br /&gt;
To use a recently generated report as the basis for the files to update (you can choose to update or not update&lt;br /&gt;
fingerprints for any of the files marked as changed on the recent report):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tripwire --update --twrfile /var/lib/tripwire/report/recent-report.twr&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or to generate a report and then identify desired or undesired changes (this is equivalent to both of the commands in the sections above):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tripwire --check --interactive&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Changing tripwire configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Policy file ===&lt;br /&gt;
This file details the files to be watched for changes, and so is the most common configuration change.&lt;br /&gt;
* Create a plaintext version of the policy file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
twadmin --print-polfile &amp;gt; mypol.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Edit '''mypol.txt'''&lt;br /&gt;
&lt;br /&gt;
* Encrypt the policyfile, and update the database to reflect the new policy&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tripwire --update-policy [-Z low] mypol.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then, tidy up temporary and backup files, and rerun an update to pick up changed files (as above).&lt;br /&gt;
&lt;br /&gt;
==== Policy Options ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-     Ignore the following properties&lt;br /&gt;
+     Record and check the following properties&lt;br /&gt;
a     Access timestamp&lt;br /&gt;
b     Number of blocks allocated&lt;br /&gt;
c     Inode timestamp (create/modify)&lt;br /&gt;
d     ID of device on which inode resides&lt;br /&gt;
g     File owner's group ID&lt;br /&gt;
i     Inode number&lt;br /&gt;
l     File is increasing in size (a &amp;quot;growing file&amp;quot;)&lt;br /&gt;
m     Modification timestamp&lt;br /&gt;
n     Number of links (inode reference count)&lt;br /&gt;
p     Permissions and file mode bits&lt;br /&gt;
r     ID of device pointed to by inode (valid only for device objects)&lt;br /&gt;
s     File size&lt;br /&gt;
t     File type&lt;br /&gt;
u     File owner's user ID&lt;br /&gt;
C     CRC-32 hash value&lt;br /&gt;
H     Haval hash value&lt;br /&gt;
M     MD5 hash value&lt;br /&gt;
S     SHA hash value&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Builtin variables ====&lt;br /&gt;
;ReadOnly&lt;br /&gt;
:ReadOnly is good for files that are widely available but are intended to be read-only. Value: '''+pinugtsdbmCM-rlacSH'''&lt;br /&gt;
;Dynamic&lt;br /&gt;
:Dynamic is good for monitoring user directories and files that tend to be dynamic in behavior. Value: '''+pinugtd-srlbamcCMSH'''&lt;br /&gt;
;Growing&lt;br /&gt;
:The Growing variable is intended for files that should only get larger. Value: '''+pinugtdl-srbamcCMSH''' &lt;br /&gt;
;Device&lt;br /&gt;
:Device is good for devices or other files that Tripwire should not attempt to open. Value: '''+pugsdr-intlbamcCMSH''' &lt;br /&gt;
;IgnoreAll&lt;br /&gt;
:IgnoreAll tracks a file's presence or absence, but doesn't check any other properties. Value: '''-pinugtsdrlbamcCMSH''' &lt;br /&gt;
;IgnoreNone&lt;br /&gt;
:IgnoreNone turns on all properties and provides a convenient starting point for defining your own property masks (for example, mymask = $(IgnoreNone) -ar;). Value: '''+pinugtsdrbamcCMSH-l'''&lt;br /&gt;
&lt;br /&gt;
=== Configuration file ===&lt;br /&gt;
This file only stores basic settings about the site keys, the location of the various tripwire files etc,&lt;br /&gt;
and so shouldn't often need changing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
twadmin --print-cfgfile &amp;gt; mycfg.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Edit '''mycfg.txt'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
twadmin --create-polfile mycfg.txt&lt;br /&gt;
rm mypol.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Common Options ====&lt;br /&gt;
;EMAILNOVIOLATIONS&lt;br /&gt;
:Send a report email even if no files were reported changed&lt;br /&gt;
&lt;br /&gt;
;LOOSEDIRECTORYCHECKING&lt;br /&gt;
:Only report changes to files, not to contents of directories&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Intrustion Detection for the Masses: http://www.linuxjournal.com/article/4718&lt;br /&gt;
HOWTO - Setting up tripwire: http://www.alwanza.com/howto/linux/tripwire.html&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Mail_Server&amp;diff=3230</id>
		<title>Mail Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Mail_Server&amp;diff=3230"/>
				<updated>2007-11-03T18:03:07Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 1 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Postfix ==&lt;br /&gt;
=== Emptying deferred queue ===&lt;br /&gt;
To attempt redelivery: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo postfix flush&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To simply delete all deferred mails:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo postsuper -d ALL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SpamAssassin ==&lt;br /&gt;
=== Pyzor ===&lt;br /&gt;
Meaning of output like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
82.94.255.100:24441     (200, 'OK')     1206    0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
;82.94.255.100:24441&lt;br /&gt;
:Pyzor server&lt;br /&gt;
;(200, 'OK')&lt;br /&gt;
:HTTP response from server&lt;br /&gt;
;1206&lt;br /&gt;
:Number of spam matches for tested message&lt;br /&gt;
;0&lt;br /&gt;
:Number of whitelist (definite non-spam) matches for tested message&lt;br /&gt;
Pyzor will return '''0''' (identifying the message as spam) only if number of spam matches &amp;gt; 0 and number of whitelist matches = 0.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Temporary_Pages&amp;diff=3233</id>
		<title>Temporary Pages</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Temporary_Pages&amp;diff=3233"/>
				<updated>2007-11-03T18:03:07Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 2 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Firefox&amp;diff=3206</id>
		<title>Firefox</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Firefox&amp;diff=3206"/>
				<updated>2007-11-03T18:03:06Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 2 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Make backspace go to previous page ==&lt;br /&gt;
Type '''about:config''' into firefox address bar and change the entry '''browser.backspace_action''' to '''0'''.&lt;br /&gt;
&lt;br /&gt;
== Clicking in the URL bar selects all ==&lt;br /&gt;
Type '''about:config''' into firefox address bar and change the entry '''browser.urlbar.clickSelectsAll''' to '''true'''.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=AIGLX_%26_Compiz&amp;diff=3209</id>
		<title>AIGLX &amp; Compiz</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=AIGLX_%26_Compiz&amp;diff=3209"/>
				<updated>2007-11-03T18:03:06Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 2 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For me, beryl seems easier to use than compiz - see: http://wiki.beryl-project.org/index.php/Install/Ubuntu/Edgy/AiGLX&lt;br /&gt;
&lt;br /&gt;
* Compiz configuration &amp;amp; keybindings: https://help.ubuntu.com/community/CompositeManager/ConfiguringCompiz&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Mutt&amp;diff=3193</id>
		<title>Mutt</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Mutt&amp;diff=3193"/>
				<updated>2007-11-03T18:03:05Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 1 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Change to an IMAP mailbox ==&lt;br /&gt;
* Hit 'c' twice, and then simply enter the name of the mailbox in '''imap://mailhost/folder''' format.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Snapshot_backups_using_rsync&amp;diff=3198</id>
		<title>Snapshot backups using rsync</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Snapshot_backups_using_rsync&amp;diff=3198"/>
				<updated>2007-11-03T18:03:05Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 4 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Intro ==&lt;br /&gt;
The scripts on this page are designed to allow the backup of a set of directories to a defined location, with the backups preserving the state of those directories from a number of different times in the past. They require a linux box with a free disk partition to act as the backup server, and the instructions below are designed for Ubuntu, so other distros may require slightly different steps. In summary, they will give you a snapshot directory with contents would look something like (as of 26th Sept 2006):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Contents of /mnt/snapshot:&lt;br /&gt;
drwxr-xr-x 7 root root  4096 2006-09-26 00:01 daily.0&lt;br /&gt;
drwxr-xr-x 7 root root  4096 2006-09-25 00:00 daily.1&lt;br /&gt;
drwxr-xr-x 7 root root  4096 2006-09-24 00:00 daily.2&lt;br /&gt;
drwxr-xr-x 7 root root  4096 2006-09-23 00:00 daily.3&lt;br /&gt;
drwxr-xr-x 7 root root  4096 2006-09-22 00:00 weekly.0&lt;br /&gt;
drwxr-xr-x 5 root root  4096 2006-09-15 00:00 weekly.1&lt;br /&gt;
drwxr-xr-x 2 root root  4096 2006-09-08 00:00 weekly.2&lt;br /&gt;
drwxr-xr-x 2 root root  4096 2006-09-01 00:00 monthly.0&lt;br /&gt;
drwxr-xr-x 2 root root  4096 2006-08-01 00:00 monthly.1&lt;br /&gt;
drwxr-xr-x 2 root root  4096 2006-01-01 00:00 annual.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note the timestamps of these directories - each one captures the state of the location(s) to be backed up at the time shown.&lt;br /&gt;
The actual backup process uses [http://samba.anu.edu.au/rsync/ rsync] and hard links to ensure that if a file doesn't change between two snapshots, then it doesn't take up any additional space (well, virtually no more space).&lt;br /&gt;
The contents of this page are based on Mike Rubel's instructions at: http://www.mikerubel.org/computers/rsync_snapshots/ - if you find difficulty understanding/using the scripts here, then you may wish to look at his page for additional help.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
* Install '''rsync''' and '''nfs-kernel-server''' with apt-get (eg. ''sudo apt-get install rsync'')&lt;br /&gt;
* http://bretts.org/files/snapshot.tar.bz2&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
* Unzip the contents of '''snapshot.tar.bz2''' to a temporary directory.&lt;br /&gt;
* As root, copy the files and directories from the temporary directory to the implied filesystem location (eg. snapshot/etc/cron.d/snapshot -&amp;gt; /etc/cron.d/snapshot, snapshot/var/log/snapshot -&amp;gt; /var/log/snapshot etc.)&lt;br /&gt;
* As root, create the directories '''/root/.snapshot''' and '''/mnt/snapshot'''&lt;br /&gt;
* Add the following lines to '''/etc/fstab''', substituting your free disk partition, and it's filesystem type, for '''/dev/hdb1''' and '''ext3''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/dev/hdb1                   /root/.snapshot   ext3          ro              0       2&lt;br /&gt;
localhost:/root/.snapshot   /mnt/snapshot     nfs           ro              0       2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
: (This mounts your backup partition as /root/.snapshot, away from prying eyes, and mounts the NFS exported version of it as /mnt/snapshot. We mount it twice so that non-root users NEVER see a writable version of the backup directory - see Mike Rubels page for more details.)&lt;br /&gt;
* Add the following line to '''/etc/exports''' (or create '''/etc/exports''' with this line if it doesn't already exist):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/root/.snapshot 127.0.0.1(secure,sync,ro,no_root_squash)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
: (This defines the NFS share that we will mount as '''/mnt/snapshot''')&lt;br /&gt;
* Restart nfs-kernel-server (using ''sudo /etc/init.d/nfs-kernel-server restart'').&lt;br /&gt;
&lt;br /&gt;
== Defining areas to be backed up ==&lt;br /&gt;
* For each directory tree to be backed up, create a directory in '''/etc/snapshot''' with a logical name for the backup (the name doesn't matter, as long as it's unique).&lt;br /&gt;
* Within the newly created directory, created a file called '''location''' (eg. '''/etc/snapshot/my-backup/location'''), the contents of which should be a single line defining the head of the directory tree to be backed up. This line may be in one of 3 formats:&lt;br /&gt;
** For a local directory, simply the fully qualified path to the location to back up (eg. '''/home/fred/docs''')&lt;br /&gt;
** For a remote directory accessed via an rsync daemon running on the remote machine, the location in the format ''machinename''::''rsync_module''/''subdirectory'' (eg. '''xp-box::c/Documents and Settings''')&lt;br /&gt;
** For a remote directory accessed via an ssh server running on the remote machine, the location in the format ''machinename'':''path'' (eg. '''other-host:/usr/local/src''')&lt;br /&gt;
: For remote hosts, an rsync daemon is generally preferable, both for performance reasons, and for ease of use. If ssh is to be used, ssh keys will need to be defined to stop the scripts prompting for a password whenever they're run. However, if the data is being transferred between hosts across an insecure network, ssh may be needed for reasons of security (rsync transmits data between hosts unencrypted, and has a simplistic security model).&lt;br /&gt;
* Also within the directory, create a file called '''filters''' (eg. '''/etc/snapshot/my-backup/filters'''), which may contain multiple lines prefixed with a '''-''' to specify locations to exclude from the backup. This file is simply in rsync filters file format (see the rsync man page for more details).&lt;br /&gt;
&lt;br /&gt;
Each one of the locations specified within '''/etc/snapshot''' will end up as a subdirectory of '''/mnt/snapshot''' (eg. this morning's backup of /home/fred will end up in '''/mnt/snapshot/daily.0/home/fred''').&lt;br /&gt;
&lt;br /&gt;
=== Example 1: Backup of /home ===&lt;br /&gt;
'''/etc/snapshot/home/location''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/home&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''/etc/snapshot/home/filters''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
- /andrew/Download/&lt;br /&gt;
- /andrew/svn/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example 2: Backup of /etc ===&lt;br /&gt;
'''/etc/snapshot/etc/location''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/etc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''/etc/snapshot/etc/filters''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that filters file is empty, since no subdirectories of /etc are excluded from the backup.&lt;br /&gt;
&lt;br /&gt;
=== Example 3: Backup of C:\Documents and Settings on alaska ===&lt;br /&gt;
Note that alaska is an XP box running the cygwin rsync daemon.&amp;lt;br&amp;gt;&lt;br /&gt;
'''/etc/snapshot/alaska-home/location''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
alaska::c/Documents and Settings&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''/etc/snapshot/alaska-home/filters''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
- /*/Local Settings/Temp&lt;br /&gt;
- /*/Local Settings/Temporary Internet Files&lt;br /&gt;
- /Andrew/My Documents/Downloads&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Further Examples ===&lt;br /&gt;
These and other examples can be found in http://bretts.org/files/snapshot-examples.tar.bz2&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* The partition used for /root/.snapshot should ideally be on a different disk to the files being backed up, to reduce the risk of a disk failure destroying both the data and the backups.&lt;br /&gt;
* The scripts can be used without defining /root/.snapshot as a separate partition, subject to the caveat about separate disks directly above. To do this, simply:&lt;br /&gt;
** Don't add the first of the two lines above to '''/etc/fstab'''&lt;br /&gt;
** In each of the snapshot scripts within '''/usr/local/sbin''' remove the calls near the beginning and end of the file to remount the /root/.snapshot partition (the beginning of each script remounts this partition as read/write, and the end remounts it as read).&lt;br /&gt;
&lt;br /&gt;
== Setting up a machine with an rsync daemon ==&lt;br /&gt;
* Edit /etc/xinetd.d/rsync and add:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service rsync&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = root&lt;br /&gt;
        server          = /usr/bin/rsync&lt;br /&gt;
        server_args     = --daemon&lt;br /&gt;
        log_on_failure  += USERID&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/rsyncd.conf and add (for example):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
use chroot = false&lt;br /&gt;
strict modes = false&lt;br /&gt;
hosts allow = 192.168.1.0/24&lt;br /&gt;
&lt;br /&gt;
[root]&lt;br /&gt;
    path = /&lt;br /&gt;
    comment = Root&lt;br /&gt;
    read only = true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Restart rsync&lt;br /&gt;
&lt;br /&gt;
== Future Development ==&lt;br /&gt;
* It would be nice to have the latest backup burnt to a DVD-RW which could be left in a dedicated DVD-RW drive attached to the backup server. This would help both because DVDs are more robust than hard drives in certain situations (eg. mechanical shock) in case of a problem (eg. power surge) which for some reason destroyed multiple drives on the machine. In addition, the DVD disk could be swapped out periodically to provide an off-site backup copy.&lt;br /&gt;
* Some companies provide free or low cost disk space online - this could be used to store a copy of the latest backup for even greater robustness. In addition, since the process uses rsync, unless large numbers of backed up files were changing on a daily basis, there would be relatively little network traffic once the initial backup was rsynced across to the remote site.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Speedtouch_780_Tips&amp;diff=3203</id>
		<title>Speedtouch 780 Tips</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Speedtouch_780_Tips&amp;diff=3203"/>
				<updated>2007-11-03T18:03:05Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 4 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Useful CLI commands ==&lt;br /&gt;
&lt;br /&gt;
; user config name=Administrator password=mypass&lt;br /&gt;
: Set password for user Administrator&lt;br /&gt;
&lt;br /&gt;
; env set var=SESSIONTIMEOUT value=900&lt;br /&gt;
: Set telnet session timeout to 15 mins&lt;br /&gt;
&lt;br /&gt;
; wireless ifconfig state=disabled&lt;br /&gt;
: Disable wireless&lt;br /&gt;
 &lt;br /&gt;
; system locale dec_symbol=. group_symbol=,&lt;br /&gt;
: Set correct numeric grouping and decimal point symbols for UK&lt;br /&gt;
&lt;br /&gt;
; service system ifadd name=PING_RESPONDER group=wan&lt;br /&gt;
: Enable PINGs on WAN interface&lt;br /&gt;
&lt;br /&gt;
; service system ifdelete name=TELNET group=wan&amp;lt;br&amp;gt;service system ifdelete name=FTP group=wan&amp;lt;br&amp;gt;service system ifdelete name=HTTPs group=wan &lt;br /&gt;
: Disable telnet, ftp and https on WAN interface&lt;br /&gt;
&lt;br /&gt;
; service system modify name=SNMP_AGENT state=enabled&amp;lt;br&amp;gt;snmp community add securityname=ROCommunity communityname=public&lt;br /&gt;
: Enable SNMP&lt;br /&gt;
&lt;br /&gt;
; dns server config domain=mydomain.org&lt;br /&gt;
: Configure domain name for LAN&lt;br /&gt;
&lt;br /&gt;
; eth bridge ifdetach intf=ethport4&amp;lt;br&amp;gt;eth bridge vlan ifdelete name=video_gr intf=ethport4&amp;lt;br&amp;gt;eth bridge ifattach intf=ethport4&lt;br /&gt;
: Enable 4th ethernet port (middle step seemed unnecessary for me, but is recommended)&lt;br /&gt;
&lt;br /&gt;
; dns server host add name=router&lt;br /&gt;
: Add DNS name '''router''' for Speedtouch device&lt;br /&gt;
&lt;br /&gt;
; dns server host add name=myhost addr=myip&lt;br /&gt;
: Add DNS name '''myhost''' for device with IP address '''myip'''&lt;br /&gt;
&lt;br /&gt;
; ip config natloopback=enabled&lt;br /&gt;
: Enable NAT loopback (to allow you to use the WAN IP address/hostname from inside the LAN)&lt;br /&gt;
&lt;br /&gt;
; dhcp server config state=disabled&lt;br /&gt;
: Disable DHCP on LAN&lt;br /&gt;
&lt;br /&gt;
; dhcp server lease add clientid=macaddr pool=LAN_private addr=ip leasetime=0 macaddr=macaddr&lt;br /&gt;
: Define a fixed IP for a given mac address via DHCP&lt;br /&gt;
&lt;br /&gt;
; saveall&lt;br /&gt;
: Make setting persistent between reboots&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Samba&amp;diff=3180</id>
		<title>Samba</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Samba&amp;diff=3180"/>
				<updated>2007-11-03T18:03:04Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 11 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See http://ubuntuguide.org/wiki/Dapper#Samba_Server&lt;br /&gt;
&lt;br /&gt;
== NT_STATUS_LOGON_FAILURE / ERRDOS - ERRnoaccess error ==&lt;br /&gt;
Ensure you've added a valid samba user using (as documented in the ubuntu guide):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo smbpasswd -a local_username&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== tree connect failed: NT_STATUS_ACCESS_DENIED error ==&lt;br /&gt;
If you get this when attempting to run '''smbclient -L''', check you don't have any &amp;quot;valid users&amp;quot; entries in smb.conf which are not associated with a share.&lt;br /&gt;
&lt;br /&gt;
== Managing Users ==&lt;br /&gt;
=== Persistent Storage ===&lt;br /&gt;
The default Ubuntu samba installation uses a tdbsam (Trivial DB for Samba) backend, which stores password information in a binary DB file /var/lib/samba/passdb.tdb. This can be changed by modifying the setting&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
passdb backend = tdbsam&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Valid options are '''Plain Text''', '''smbpasswd''', '''tdbsam''', '''ldapsam''', '''ldapsam_compat''', '''xmlsam''', '''mysqlsam''' and '''pgsqlsam'''.&lt;br /&gt;
&lt;br /&gt;
=== Adding users ===&lt;br /&gt;
To add a samba password for an existing local user&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo smbpasswd -a local_username&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If necessary, one or more remote usernames can be mapped to a local username. Firstly, add to '''smb.conf''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
username map = /etc/samba/smbusers&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then, create a map of entries in '''/etc/samba/smbusers''' containing entries of the form:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local_username = remote_username&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note, however, that samba usernames are not case sensitive, so entries in '''smbusers''' to simply map case differences are not needed.&lt;br /&gt;
&lt;br /&gt;
=== Listing samba users ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo pdbedit -L&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Deleting samba users ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo smbpasswd -x local_username&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note that, when installed, samba creates samba users for all local users. This may not be desirable, in which case they can be removed using the script below. It may be worth keeping the &amp;quot;nobody&amp;quot; account active, for guest users.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for user in `sudo pdbedit -L | sed -e 's!:.*!!' | grep -v nobody | &amp;lt;grep -v desiredusers&amp;gt; `; do echo $user; sudo smbpasswd -x $user; done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== File Permissions ==&lt;br /&gt;
To edit a file from a linux client on a linux server as a non-root client user, the following must all be true:&lt;br /&gt;
&lt;br /&gt;
* UNIX user (on server) associated with client specified samba user must have UNIX permission to edit the file&lt;br /&gt;
* Samba share must have one of:&lt;br /&gt;
** read only = no&lt;br /&gt;
** read only = yes &amp;amp; writelist contains samba user&lt;br /&gt;
** read only = yes &amp;amp; writelist contains &amp;quot;@unixgroup&amp;quot; and UNIX user (on server) associated with client specified samba user is a member of @unixgroup&lt;br /&gt;
* Client smbfs must have fmask=777, or specify uid=clientuser (or fmask=775 and gid=clientgroup, where client user is a member of client group)&lt;br /&gt;
&lt;br /&gt;
== Printing ==&lt;br /&gt;
* Get the CUPS Windows printer drivers from http://www.cups.org/windows/ and copy the 4 following files from the download to /usr/share/cups/printers:&lt;br /&gt;
** cups6.inf&lt;br /&gt;
** cups6.ini&lt;br /&gt;
** cupsps6.dll&lt;br /&gt;
** cupsui6.dll&lt;br /&gt;
&lt;br /&gt;
* Get the 4 following files from '''C:\WINDOWS\system32\spool\drivers\w32x86\3''' on a windows box with MS PS drivers installed and copy to /usr/share/cups/printers:&lt;br /&gt;
** ps5ui.dll&lt;br /&gt;
** pscript5.dll&lt;br /&gt;
** pscript.hlp&lt;br /&gt;
** pscript.ntf&lt;br /&gt;
&lt;br /&gt;
* Run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo cupsaddsmb -H alaska -U andrew -v -a&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=XDMCP_%26_VNC&amp;diff=3184</id>
		<title>XDMCP &amp; VNC</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=XDMCP_%26_VNC&amp;diff=3184"/>
				<updated>2007-11-03T18:03:04Z</updated>
		
		<summary type="html">&lt;p&gt;Admin: 3 revision(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Install vnc4server&lt;br /&gt;
&lt;br /&gt;
* Enable XDMCP:&lt;br /&gt;
** For kdm, edit /etc/kde3/kdm/kdmrc and change Xdmcp section to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Enable=true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
** For gdm, edit /etc/gdm/gdm.conf and change xdmcp section to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Enable=true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Add the following lines to /etc/services:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vnc_1024x768             5901/tcp            # VNC (1024x768)&lt;br /&gt;
vnc_1280x1024            5902/tcp            # VNC (1280x1024)&lt;br /&gt;
vnc_1920x1200            5903/tcp            # VNC (1920x1200)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Add the following to /etc/xinetd.d/vnc:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service vnc_1024x768&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 950x700 -depth 24 -once securitytypes=none&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
service vnc_1280x1024&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 1260x960 -depth 24 -once securitytypes=none&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
service vnc_1920x1200&lt;br /&gt;
{&lt;br /&gt;
        disable         = no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        protocol        = tcp&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = nobody&lt;br /&gt;
        server          = /usr/bin/Xvnc&lt;br /&gt;
        server_args     = -inetd -query localhost -geometry 1860x1120 -depth 24 -once securitytypes=none&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Note: To enable persistent sessions (which has the downside of only enabling 1 login per service), prefix '''-inetd''' with ''':'''''n'' where ''n'' is a number beginning at 1 for the first service, and counting up.&lt;br /&gt;
&lt;br /&gt;
* Restart xinetd&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>