<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

<channel>
<title>Ubooboo</title>
<link>http://www.ubooboo.net/</link>
<atom:link href="http://www.ubooboo.net/rss.xml" rel="self" type="application/rss+xml" />
<language>en</language>
<description>Ubuntu Fixes for Newbs</description>
<pubDate>Thu, 17 Mar 2011 20:50:36 +0000</pubDate>
<lastBuildDate>Thu, 17 Mar 2011 20:50:36 +0000</lastBuildDate>
<image>
<title>Ubooboo</title>
<url>http://www.ubooboo.net/images/logo.png</url>
<link>http://www.ubooboo.net/</link>
</image>




			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			

			
<item>
<title>Linux: Rsync</title>
<link>http://www.ubooboo.net/zimPage.php?page=rsync</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=rsync</guid>
<pubDate>Thu, 17 Mar 2011 20:50:36 +0000</pubDate>
<description>
-a means archive mode, which means recursive, preserve permissions, last modified time etc&lt;br&gt;
			-v means verbose&lt;br&gt;
			-DONT: use an asterisk in the src-dir i.e. &lt;strong&gt;rsync src_dir/* dest_dir/&lt;/strong&gt; as this will NOT include hidden files&lt;br&gt;
			&lt;br&gt;
			&lt;br&gt;
			OTHER FLAGS&lt;br&gt;
			&lt;br&gt;
			&lt;strong&gt;--exclude &quot;.svn/&quot;&lt;/strong&gt; means ignore all paths that contain .svn i.e. all svn folders and their contents!&lt;br&gt;
			-other exclude patterns:&lt;br&gt;
			&quot;programs&quot; will exclude any files or directories that are exactly called programs (but not jack_programs/ or programs.txt)&lt;br&gt;
			&quot;programs/&quot; will exclude any directories that are exactly called programs&lt;br&gt;
			&quot;programs*&quot; will exclude any files or directories that *start* with programs e.g. programs/ and programs.txt, but will still copy jack_programs&lt;br&gt;
			&quot;/programs&quot; will exclude any files or directories that are exactly called programs AND ARE IN THE ROOT of the source dir (stated in the rsync command)&lt;br&gt;
			&quot;/programs/&quot; will only exclude a directory in the root dir exactly called programs&lt;br&gt;
			&lt;br&gt;
			&lt;strong&gt;--delete&lt;/strong&gt; means if you have deleted a file in the source dir, delete it at the destination dir too!&lt;br&gt;
			&lt;br&gt;
			&lt;br&gt;
			See also&lt;br&gt;
			&lt;a href=&quot;zimPage.php?page=Backup_script&quot; title=&quot;Backup Script&quot;&gt;Backup Script&lt;/a&gt;
			&lt;a href=&quot;zimPage.php?page=Compression&quot; title=&quot;Compression&quot;&gt;Compression&lt;/a&gt;
			
			
			</description>
</item>



<item>
<title>Ubuntu: Package Management</title>
<link>http://www.ubooboo.net/zimPage.php?page=Package_Management</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Package_Management</guid>
<pubDate>Thu, 17 Mar 2011 20:50:36 +0000</pubDate>
<description>
&lt;p&gt;
			-originally there was dpkg (debian package management system)&lt;br&gt;
			-APT was built on top, to deal with .debs and .rpms (?)&lt;br&gt;
			-aptitude is a terminal based front-end&lt;br&gt;
			-synaptic is a GUI front-end&lt;br&gt;
			&lt;/p&gt;
			
			&lt;p&gt;
			TERMINAL BASED PACKAGE MANAGEMENT&lt;br&gt;
			-search title and description with apt-cache&lt;br&gt;
			&lt;strong&gt;apt-cache search svn |sort&lt;/strong&gt;&lt;br&gt;
			-filter installed packages by sending the output of that into dpkg&lt;br&gt;
			&lt;strong&gt;dpkg -l `apt-cache search svn |cut -d' ' -f1` 2&amp;gt; /dev/null |grep ii&lt;/strong&gt;&lt;br&gt;
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Coding: MSSQL</title>
<link>http://www.ubooboo.net/zimPage.php?page=MSSQL</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=MSSQL</guid>
<pubDate>Thu, 17 Mar 2011 20:50:36 +0000</pubDate>
<description>
&lt;p&gt;
			ACCESSING MSSQL DBs with PHP on LINUX&lt;br&gt;
			-install php5-sybase (this allows basic functionality like mssql_connect() and executing basic queries, but may fail for some advanced MSSQL operations)&lt;br&gt;
			&lt;/p&gt;
			
			
			&lt;p&gt;
			THEN THE COMMANDS (described with MySQL terminology)&lt;br&gt;
			&lt;/p&gt;
			
			&lt;p&gt;
			-connect&lt;br&gt;
			&lt;strong&gt;sqsh -S server -U user -P password -D database&lt;/strong&gt;&lt;br&gt;
			-execute commands (enter command first, no need for semi-colons)&lt;br&gt;
			&lt;strong&gt;go&lt;/strong&gt;&lt;br&gt;
			-finish&lt;br&gt;
			&lt;strong&gt;exit&lt;/strong&gt;&lt;br&gt;
			&lt;/p&gt;
			
			&lt;p&gt;
			-show databases&lt;br&gt;
			&lt;strong&gt;SELECT name FROM master..sysdatabases&lt;/strong&gt;&lt;br&gt;
			-show current database&lt;br&gt;
			&lt;strong&gt;SELECT db_name()&lt;/strong&gt;&lt;br&gt;
			-select database to use&lt;br&gt;
			&lt;strong&gt;USE &amp;lt;dbname&amp;gt;&lt;/strong&gt;&lt;br&gt;
			-show tables&lt;br&gt;
			&lt;strong&gt;SELECT name FROM &amp;lt;dbname&amp;gt;..sysobjects WHERE xtype = 'U'&lt;/strong&gt;&lt;br&gt;
			-describe table&lt;br&gt;
			&lt;strong&gt;SELECT column_name,data_type FROM information_schema.columns WHERE table_name = 'YourTable'&lt;/strong&gt;&lt;br&gt;
			-describe table verbose&lt;br&gt;
			&lt;strong&gt;exec sp_columns YourTable&lt;/strong&gt;&lt;br&gt;
			&lt;/p&gt;
			
			&lt;p&gt;
			-limit 5&lt;br&gt;
			&lt;strong&gt;SELECT TOP 5 * FROM table&lt;/strong&gt;&lt;br&gt;
			-length&lt;br&gt;
			&lt;strong&gt;LEN(field)&lt;/strong&gt;&lt;br&gt;
			-substring (1-indexed, must do all 3 fields)&lt;br&gt;
			&lt;strong&gt;SUBSTRING(field,start,length)&lt;/strong&gt;&lt;br&gt;
			-like (with normal % wildcards)&lt;br&gt;
			&lt;strong&gt;field LIKE 'prefix%'&lt;/strong&gt;&lt;br&gt;
			-not equal to (i think this is same as MySQL, not sure tho)&lt;br&gt;
			&lt;strong&gt;field != 'jack' field &amp;lt;&amp;gt; 'jack'&lt;/strong&gt;&lt;br&gt;
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Ubuntu: Index of Home.html</title>
<link>http://www.ubooboo.net/zimPage.php?page=Home.html</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Home.html</guid>
<pubDate>Thu, 17 Mar 2011 19:54:32 +0000</pubDate>
<description>
&lt;/ul&gt;
			
			
			</description>
</item>



<item>
<title>Linux: Compression</title>
<link>http://www.ubooboo.net/zimPage.php?page=Compression</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Compression</guid>
<pubDate>Sun, 18 Jul 2010 18:23:59 +0100</pubDate>
<description>
&lt;p&gt;
			-tar (-c for create, -x for extract) - tar alone simply creates a collection (Tape ARchive) of uncompressed files.&lt;br&gt;
			&lt;strong&gt;tar -cvf result.tar file1 file2 file3&lt;/strong&gt;&lt;br&gt;
			&lt;strong&gt;tar -xvf file.tar&lt;/strong&gt;&lt;br&gt;
			NOTES: compression algorithms:&lt;br&gt;
			-add -j for bzip2 compression (AMAZING for plain english text i.e. 200M down to 14M). result file extension: .tbz or .tar.bz2&lt;br&gt;
			-add -z for gzip compression (good for general use). result file extension: .tgz or .tar.gz&lt;br&gt;
			&lt;/p&gt;
			
			&lt;p&gt;
			-rar (a for add)&lt;br&gt;
			&lt;strong&gt;rar a output.rar file1 file2 file3&lt;/strong&gt;&lt;br&gt;
			-unrar (e for extract)&lt;br&gt;
			&lt;strong&gt;unrar e file.rar&lt;/strong&gt;&lt;br&gt;
			ADDITION: see extractrars script in Linux&amp;gt;shell scripting&lt;br&gt;
			&lt;/p&gt;
			
			&lt;p&gt;
			-zip/unzip&lt;br&gt;
			&lt;strong&gt;zip output.zip file1 file2 file3&lt;/strong&gt;&lt;br&gt;
			&lt;strong&gt;unzip file.zip&lt;/strong&gt;&lt;br&gt;
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Linux: Backup</title>
<link>http://www.ubooboo.net/zimPage.php?page=Backup</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Backup</guid>
<pubDate>Sun, 18 Jul 2010 18:23:59 +0100</pubDate>
<description>
&lt;p&gt;
			The most important tool you will need: rsync. It copies changes between 2 directories (potentially on 2 different servers)&lt;br&gt;
			&lt;/p&gt;
			
			&lt;p&gt;
			&lt;strong&gt; rsync -av src_dir/* user@server:/dest_dir/&lt;/strong&gt;&lt;br&gt;
			-a means archive mode, which means recursive, preserve permissions, last modified time etc&lt;br&gt;
			-v means verbose&lt;br&gt;
			&lt;/p&gt;
			
			&lt;p&gt;
			&lt;strong&gt;--exclude .svn&lt;/strong&gt; means ignore all paths that contain .svn i.e. all svn folders and their contents!&lt;br&gt;
			NOTE: exclude can also be used to match specific files e.g. --exclude docs/readme.txt&lt;br&gt;
			&lt;strong&gt;--delete&lt;/strong&gt; means if you have deleted a file in the source dir, delete it at the destination dir too!&lt;br&gt;
			&lt;/p&gt;
			
			&lt;p&gt;
			See also&lt;br&gt;
			&lt;a href=&quot;./Backup_script.html&quot; title=&quot;Backup Script&quot;&gt;Backup Script&lt;/a&gt;&lt;br&gt;
			&lt;a href=&quot;./Compression.html&quot; title=&quot;Compression&quot;&gt;Compression&lt;/a&gt;&lt;br&gt;
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Linux: Bash Aliases</title>
<link>http://www.ubooboo.net/zimPage.php?page=Bash_Aliases</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Bash_Aliases</guid>
<pubDate>Sat, 27 Mar 2010 12:04:54 +0000</pubDate>
<description>
&lt;p&gt;
			Add these to the end of your ~/.bashrc&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			# how I like ls to work: coloured, grouping directories first, and appending '/' to them so they are clear i.e. &quot;home/&quot;&lt;br /&gt;
			&lt;b&gt;alias ls='ls --color=auto --group-directories-first -p'&lt;/b&gt;&lt;br /&gt;
			# a common alias: ll for human readable list form&lt;br /&gt;
			&lt;b&gt;alias ll='ls -hl'&lt;/b&gt;&lt;br /&gt;
			# little simplification for getting the size of a directory&lt;br /&gt;
			&lt;b&gt;alias dirsize='du -sh'&lt;/b&gt;&lt;br /&gt;
			# disk space (i have added a grep to customise the output, which is specific to my partition setup)&lt;br /&gt;
			&lt;b&gt;alias diskspace='df -h | grep /dev/sda'&lt;/b&gt;&lt;br /&gt;
			# alias grep for highlighted search terms and case insensitivity&lt;br /&gt;
			&lt;b&gt;alias grep='grep -i --color=auto'&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			See also: &lt;a href=&quot;zimPage.php?page=Shell_Scripting&quot;&gt;Shell Scripting&lt;/a&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Linux: GREP and other Leet Tools</title>
<link>http://www.ubooboo.net/zimPage.php?page=Grep_and_other_Leet_Tools</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Grep_and_other_Leet_Tools</guid>
<pubDate>Sun, 06 Dec 2009 19:22:26 +0000</pubDate>
<description>
&lt;p&gt;
			GENERAL NOTE: can put quotes around pattern if contains spaces&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			GREP searches INSIDE the given stream/file(s) for the pattern string&lt;br /&gt;
			&lt;b&gt;grep [options] pattern [stream/file]&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			EXAMPLES&lt;br /&gt;
			&lt;b&gt;grep -lir jack csYear3 &lt;/b&gt;~ searches INSIDE all files in the given dir (csYear3) for the string &quot;jack&quot; (-l means output filenames not lines, -i = ignore case, -r = recursive)&lt;br /&gt;
			&lt;b&gt;grep -i dijkstra /home/jack/essay.txt&lt;/b&gt; ~ returns lines of the file essay.txt containing the word dijkstra	&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			LS PIPE TO GREP&lt;br /&gt;
			&lt;b&gt;ls /path/to/dir | grep -i pattern&lt;/b&gt; ~ use grep to filter output of ls (optional /path/to/dir, and -i is ignore case)&lt;br /&gt;
			&lt;b&gt;ls | grep .avi&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			OTHER LEET TOOLS: CUT and SED (stream editors)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			CUT - removes sections from a stream (could be a file). It does this by taking in some text, and splitting it up on some specified delimiter, into what it calls 'fragments'&lt;br /&gt;
			&lt;b&gt;cut [options] [stream/file]&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SED - Stream EDitor&lt;br /&gt;
			&lt;b&gt;sed [options] [stream/file]&lt;/b&gt;&lt;br /&gt;
			Main use: &lt;b&gt;sed 's/regex/replacement/g'&lt;/b&gt; &lt;b&gt;[stream/file]&lt;/b&gt; where s=substitution, g=global (apply to all matches instead of just the first).&lt;br /&gt;
			Note: 'replacement' can be left blank to delete all matches of 'regex'&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			LEARN BY EXAMPLE: extract your IP address from the verbose output of the ifconfig command:&lt;br /&gt;
			&lt;b&gt;ifconfig eth0 | grep 'inet addr' | cut -d ':' -f2 | sed 's/[^(.0-9)]//g'&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			grep: find the relevant lines (those containing the string 'inet addr')&lt;br /&gt;
			cut: split using a colon delimeter, and select the second fragment&lt;br /&gt;
			sed: find everything that is not a numeric digit or a dot, and replace with nothing (i.e. delete it). We put regex in square brackets. carot means not, i.e. match [not (full stops and numbers)]&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Linux: Viewing and Modifying Text Files</title>
<link>http://www.ubooboo.net/zimPage.php?page=Viewing_and_Modifying_Text_Files</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Viewing_and_Modifying_Text_Files</guid>
<pubDate>Sun, 06 Dec 2009 19:17:11 +0000</pubDate>
<description>
&lt;p&gt;
			VIEWING&lt;br /&gt;
			&lt;b&gt;cat &amp;lt;file&amp;gt;&lt;/b&gt; ~ print whole file into the terminal (good for small files)&lt;br /&gt;
			&lt;b&gt;less &amp;lt;file&amp;gt;&lt;/b&gt; ~ file reader program that runs in the terminal (filling all of the visible area). Allows scrolling with the mousewheel, as well as plenty of keyboard hotkeys. useful for large files. q to quit.&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			&lt;b&gt;head [options] &amp;lt;file&amp;gt;&lt;/b&gt; ~ print first 10 lines (use head &lt;b&gt;-n25&lt;/b&gt; to print the first 25 lines)&lt;br /&gt;
			&lt;b&gt;tail [options] &amp;lt;file&amp;gt;&lt;/b&gt; ~ opposite to head. v useful for log files (getting the most recent output)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			MODIFYING&lt;br /&gt;
			&lt;b&gt;vim &amp;lt;file&amp;gt;&lt;/b&gt; ~ great text editor that runs in the terminal (useful for modifying files over ssh etc). See &lt;a href=&quot;zimPage.php?page=vim&quot;&gt;VIM&lt;/a&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			ALSO SEE&lt;br /&gt;
			&lt;a href=&quot;zimPage.php?page=grep_and_other_leet_tools&quot;&gt;GREP and other Leet Tools&lt;/a&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Linux: User and Group Management</title>
<link>http://www.ubooboo.net/zimPage.php?page=User_and_Group_Management</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=User_and_Group_Management</guid>
<pubDate>Sun, 06 Dec 2009 19:17:11 +0000</pubDate>
<description>
&lt;p&gt;
			&lt;b&gt;id &amp;lt;user&amp;gt;&lt;/b&gt; ~ get all info (inc userID and groupIDs for a user)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			USER MANAGEMENT&lt;br /&gt;
			&lt;b&gt;cat /etc/passwd&lt;/b&gt; ~ view all users&lt;br /&gt;
			&lt;b&gt;useradd &amp;lt;username&amp;gt;&lt;/b&gt; ~ add a new user (and create them a home directory in /home)&lt;br /&gt;
			&lt;b&gt;passwd &amp;lt;user&amp;gt;&lt;/b&gt; ~ reset a user's password&lt;br /&gt;
			&lt;b&gt;userdel &amp;lt;user&amp;gt;&lt;/b&gt; ~ delete a user&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			GROUP MANAGEMENT&lt;br /&gt;
			&lt;b&gt;cat /etc/group&lt;/b&gt; ~ view all groups (and their associated users)&lt;br /&gt;
			&lt;b&gt;groups &amp;lt;user&amp;gt;&lt;/b&gt; ~ view a user's groups&lt;br /&gt;
			&lt;b&gt;groupadd &amp;lt;groupname&amp;gt;&lt;/b&gt; ~ add a new group&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			ADD A USER TO A GROUP&lt;br /&gt;
			&lt;b&gt;usermod -aG &amp;lt;group&amp;gt; &amp;lt;user&amp;gt;&lt;/b&gt; ~ add user to group with (group could be comma separated list. -a is append, so doesnt remove other groups. -G is specify group name)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			REMOVE A USER FROM A GROUP&lt;br /&gt;
			-currently best way i can find to remove a user from a group is to find out which groups they currently belong (as specified above), then use the usermod command without the -a (meaning append), and then you can completely re-define all the groups you want for that user e.g. if user jack is in the following 3 groups: users, tomcat, apache, and you want to remove them from the tomcat group, you would do &lt;b&gt;usermod -G users,apache jack&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Linux: Starting and Stopping Services</title>
<link>http://www.ubooboo.net/zimPage.php?page=Starting_and_Stopping_Services</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Starting_and_Stopping_Services</guid>
<pubDate>Sun, 06 Dec 2009 19:17:11 +0000</pubDate>
<description>
&lt;p&gt;
			COMMAND STRUCTURE&lt;br /&gt;
			&lt;b&gt;sudo /etc/init.d/service action&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SERVICES&lt;br /&gt;
			-samba&lt;br /&gt;
			-apache2 (sometimes httpd)&lt;br /&gt;
			-ssh&lt;br /&gt;
			-tomcat&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			ACTIONS&lt;br /&gt;
			-start&lt;br /&gt;
			-stop&lt;br /&gt;
			-restart&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			EXAMPLES&lt;br /&gt;
			&lt;b&gt;sudo /etc/init.d/apache2 stop&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;sudo /etc/init.d/tomcat restart&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Linux: Finding Files</title>
<link>http://www.ubooboo.net/zimPage.php?page=Finding_Files</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Finding_Files</guid>
<pubDate>Sun, 06 Dec 2009 19:17:11 +0000</pubDate>
<description>
&lt;p&gt;
			2 main options: FIND and LOCATE&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			GENERAL NOTES:&lt;br /&gt;
			-asterisks for wildcards&lt;br /&gt;
			-can put quotes around pattern if contains spaces&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			The LOCATE command is the simplest and fastest. It searches the whole filesystem for filenames/directories CONTAINING pattern (i.e. it searches with wildcards: *pattern*)&lt;br /&gt;
			&lt;b&gt;locate [options] pattern&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			NOTABLE OPTIONS&lt;br /&gt;
			&lt;b&gt;-b&lt;/b&gt; ~ match the pattern against the basename of files/dirs instead of their whole paths - I ALWAYS do this.&lt;br /&gt;
			(if this is not set and you search for 'music', then you will get a result for every file in your music directory, as all of those files have 'music' in their paths!)&lt;br /&gt;
			&lt;b&gt;-i&lt;/b&gt; ~ ignore case&lt;br /&gt;
			&lt;b&gt;-c&lt;/b&gt; ~ only output the count&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			EXAMPLES&lt;br /&gt;
			&lt;b&gt;locate -b -i jack&lt;/b&gt; ~ find all files/dirs CONTAINING the (case-insensitive) word jack i.e. search for *jack*&lt;br /&gt;
			&lt;b&gt;locate -b dump&lt;/b&gt; ~ find all files/dirs CONTAINING the pattern 'dump' (i.e. this will match a file with the name test_dump7.sql)&lt;br /&gt;
			&lt;b&gt;locate -b '\dump.sql'&lt;/b&gt; ~ find all files/dirs with the EXACT name dump.sql (the backslash tells locate NOT to auto-add wildcards, though you can still add them manually)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			BUT: the speed comes at a price: the locate command is only searching a database, which is only updated by running the command:&lt;br /&gt;
			&lt;b&gt;sudo updatedb&lt;/b&gt;&lt;br /&gt;
			(this is automatically run at set intervals, maybe nightly?)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			The FIND command is more flexible, and actually does a live search (can be much slower). It recursively searches for pattern in dir (default to current dir)&lt;br /&gt;
			&lt;b&gt;find [dir] [options] pattern&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			NOTABLE OPTIONS&lt;br /&gt;
			&lt;b&gt;-maxdepth 5&lt;/b&gt; ~ limit the depth of the recursive search to 5 levels&lt;br /&gt;
			&lt;b&gt;-iname&lt;/b&gt; ~ ignore case&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			EXAMPLES&lt;br /&gt;
			&lt;b&gt;find films/ -iname *idaho&lt;/b&gt;* ~ recursively search through my films directory to find all files containing the word idaho&lt;br /&gt;
			&lt;b&gt;find -maxdepth 1 -iname *.cpp&lt;/b&gt; ~ check THIS directory (and no sub-directories) for cpp files&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Linux: File Permissions and Ownership</title>
<link>http://www.ubooboo.net/zimPage.php?page=File_Permissions_and_Ownership</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=File_Permissions_and_Ownership</guid>
<pubDate>Sun, 06 Dec 2009 19:17:11 +0000</pubDate>
<description>
&lt;p&gt;
			chmod: CHange access MODe&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			USE&lt;br /&gt;
			&lt;b&gt;chmod &amp;lt;u/g/o/a&amp;gt;=&amp;lt;r/w/x&amp;gt; &amp;lt;file/folder&amp;gt;&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			EXPLANATION&lt;br /&gt;
			u/g/o/a - user/group/others/all&lt;br /&gt;
			r/w/x - read/write/execute (or all 3)&lt;br /&gt;
			e.g. &lt;b&gt;chmod o=r doc1.txt&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			chown: CHange OWNership&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			USE&lt;br /&gt;
			&lt;b&gt;chown &amp;lt;username&amp;gt; &amp;lt;file/folder&amp;gt;&lt;/b&gt;&lt;br /&gt;
			e.g. &lt;b&gt;chown jack home&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			chgrp: CHange GRouP&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			USE&lt;br /&gt;
			&lt;b&gt;chgrp &amp;lt;group&amp;gt; &amp;lt;file/folder&amp;gt;&lt;/b&gt;&lt;br /&gt;
			e.g. &lt;b&gt;chgrp family /usr/pictures&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Linux: System Information</title>
<link>http://www.ubooboo.net/zimPage.php?page=System_Information</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=System_Information</guid>
<pubDate>Sun, 06 Dec 2009 14:10:22 +0000</pubDate>
<description>
&lt;p&gt;
			-detailed hardware info:&lt;br /&gt;
			&lt;b&gt;sudo lshw&lt;/b&gt;&lt;br /&gt;
			-another source of CPU info:&lt;br /&gt;
			&lt;b&gt;cat /proc/cpuinfo&lt;/b&gt;&lt;br /&gt;
			OS/Kernel info:&lt;br /&gt;
			&lt;b&gt;uname -a&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			-determining linux distro/version (3 methods):&lt;br /&gt;
			1) &lt;b&gt;dmesg | head -1&lt;/b&gt;&lt;br /&gt;
			2) &lt;b&gt;cat /proc/version&lt;/b&gt;&lt;br /&gt;
			3) &lt;b&gt;cat /etc/issue&lt;/b&gt;&lt;br /&gt;
			source: &lt;a href='http://www.howtoforge.com/how_to_find_out_about_your_linux_distribution'&gt;http://www.howtoforge.com/how_to_find_out_about_your_linux_distribution&lt;/a&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			Determining if 32/64bit CPU, and OS (kernel)&lt;br /&gt;
			-'The only correct way' to determine CPU width:&lt;br /&gt;
			&lt;b&gt;grep flags /proc/cpuinfo | grep ' lm'&lt;/b&gt;&lt;br /&gt;
			(if you get output, then '64bit capable' i.e. 64bit CPU, else 32bit)&lt;br /&gt;
			-OS (kernel) method1:&lt;br /&gt;
			&lt;b&gt;uname -m&lt;/b&gt;&lt;br /&gt;
			(64bit if it contains x86_64, else 32bit)&lt;br /&gt;
			-OS (kernel) method2:&lt;br /&gt;
			&lt;b&gt;getconf LONG_BIT&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Ubuntu: Grub</title>
<link>http://www.ubooboo.net/zimPage.php?page=Grub</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Grub</guid>
<pubDate>Sun, 06 Dec 2009 14:10:22 +0000</pubDate>
<description>
&lt;p&gt;
			Grub2&lt;br /&gt;
			-CHECK (do not modify) the current configuration by looking at /boot/grub/grub.cfg (this is auto-generated, so modifications to this file will be lost)&lt;br /&gt;
			-add new menu entries in /etc/grub.d/40_custom (copy the format of the current items in /boot/grub/grub.cfg)&lt;br /&gt;
			-modify other values (default selection / timeout) in /etc/default/grub&lt;br /&gt;
			-finish with command update-grub to write changes to /boot/grub/grub.cfg&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			Grub1&lt;br /&gt;
			-decrease grub timeout:&lt;br /&gt;
			&lt;b&gt;sudo gedit /boot/grub/menu.lst&lt;/b&gt;&lt;br /&gt;
			and change timeout to 1 (also, i like to comment out the 'hide menu by default' option)&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Ubuntu: Change Hostname</title>
<link>http://www.ubooboo.net/zimPage.php?page=Change_Hostname</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Change_Hostname</guid>
<pubDate>Sun, 06 Dec 2009 14:10:22 +0000</pubDate>
<description>
&lt;p&gt;
			Change computer name (hostname) e.g. to jackdev&lt;br /&gt;
			-find your current hostname with the command:&lt;br /&gt;
			&lt;b&gt;hostname&lt;/b&gt;&lt;br /&gt;
			-run this command to update the currently set hostname (but this will be forgotten on restart if you dont do the other 2 steps as well):&lt;br /&gt;
			&lt;b&gt;hostname jackdev&lt;/b&gt;&lt;br /&gt;
			-edit /etc/hostname and /etc/hosts to reflect this change (find your old hostname, and replace it with the new one) &lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Server: Apache forward requests to Tomcat</title>
<link>http://www.ubooboo.net/zimPage.php?page=Apache_forward_requests_to_Tomcat</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Apache_forward_requests_to_Tomcat</guid>
<pubDate>Sun, 06 Dec 2009 14:10:22 +0000</pubDate>
<description>
&lt;p&gt;
			-stop apache:&lt;br /&gt;
			&lt;b&gt;sudo /etc/init.d/apache2 stop&lt;/b&gt;&lt;br /&gt;
			-enable module proxy_ajp:&lt;br /&gt;
			&lt;b&gt;sudo a2enmod proxy_ajp&lt;/b&gt;&lt;br /&gt;
			(this should also enable the required module proxy, if not, do &lt;b&gt;sudo a2enmod proxy&lt;/b&gt;)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			-add the proxy paths to the end of /etc/apache2/httpd.conf e.g. &lt;b&gt;ProxyPass /webapp ajp://localhost:8009/webapp&lt;/b&gt;&lt;br /&gt;
			-start apache:&lt;br /&gt;
			&lt;b&gt;sudo /etc/init.d/apache2 start&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Ubuntu: Temperature Monitors</title>
<link>http://www.ubooboo.net/zimPage.php?page=Temperature_Monitors</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Temperature_Monitors</guid>
<pubDate>Fri, 16 Oct 2009 22:11:43 +0100</pubDate>
<description>
&lt;p&gt;
			Add some cool temperature monitors (numbers or graphs) to your gnome-panel!&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			1) install necessary packages&lt;br /&gt;
			&lt;b&gt;sudo apt-get install lm-sensors sensors-applet&lt;/b&gt;&lt;br /&gt;
			(this may ask you a few config questions afterwards, which are pretty straight forward)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			2) detect your hardward temperature sensors&lt;br /&gt;
			&lt;b&gt;sudo sensors-detect&lt;/b&gt;&lt;br /&gt;
			(this will ask you a few questions, and I think the vast majority (if not all) of my answers were the default ones)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			3) reboot (this WAS required for me, to find all my sensors)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			4) r click gnome-panel&amp;gt;add&amp;gt;hardware sensors monitor&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			5) r click your new applet&amp;gt;prefs and then... (this is how i like mine)&lt;br /&gt;
			-display: graph only&lt;br /&gt;
			-width: 20px&lt;br /&gt;
			then in the sensors tab:&lt;br /&gt;
			-start off by enabling all sensors (you may need to make the window bigger to see the 'enabled' column) then figure out which ones are useful and get rid of any duplicates...&lt;br /&gt;
			-then maybe make them different colours&lt;br /&gt;
			-i made all of mine on the same range (i.e. same low/high values)&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Server: Enable SSL for Apache Server</title>
<link>http://www.ubooboo.net/zimPage.php?page=Enable_SSL_for_Apache_Server</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Enable_SSL_for_Apache_Server</guid>
<pubDate>Fri, 09 Oct 2009 16:42:03 +0100</pubDate>
<description>
&lt;p&gt;
			-note: using apache to mean apache root dir, i.e. /etc/httpd/ for me...&lt;br /&gt;
			-ensure have mod_ssl.so and mod_rewrite.so ready in apache/modules/&lt;br /&gt;
			^(i think they should both be there in any recent version of apache, else you need to re-compile apache with them)&lt;br /&gt;
			-and that they are both loaded using a LoadModule statement in apache/conf/httpd.conf in one of these ways:&lt;br /&gt;
			-in the big LoadModule section&lt;br /&gt;
			-there is a line: Include conf.d/*.conf and there is a corresponding *.conf file in apache/conf.d/ (e.g. i had ssl.conf) containing the LoadModule statement&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			-in order to forward all non-secure (http) requests to secure ones (https) create the file apache/conf.d/rewrite.conf containing these lines:&lt;br /&gt;
			&lt;b&gt;RewriteEngine On&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			&lt;b&gt;RewriteCond %{HTTPS} !=on&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			WARNINGS / ERRORS (when starting/restarting the server)&lt;br /&gt;
			-if get errors like this: &quot;httpd: apr_sockaddr_info_get() failed&quot; or &quot;httpd: Could not reliably determine the server's fully qualified domain name&quot;&lt;br /&gt;
			-need to setup the server's domain name properly, so get it with command hostname e.g. pato.jack.local&lt;br /&gt;
			-you will also need your IP address (LAN IP if your server is just for local use, else the full public IP), which can normally be found with ifconfig&lt;br /&gt;
			-now use these to add a new entry to the bottom of your /etc/hosts file e.g.&lt;br /&gt;
			192.168.28.16 pato.jack.local&lt;br /&gt;
			-NOTE: your /etc/hosts file acts as your local DNS (domain name server) which resolves domain names (pato.jack.local) into IP addresses (192.168.28.16)&lt;br /&gt;
			-you will also need to uncomment/ammend the ServerName statement in your apache/conf/httpd.conf e.g.&lt;br /&gt;
			ServerName pato.jack.local&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Apps: Gnome-Do</title>
<link>http://www.ubooboo.net/zimPage.php?page=Gnome-do</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Gnome-do</guid>
<pubDate>Fri, 22 May 2009 22:22:09 +0100</pubDate>
<description>
&lt;p&gt;
			Gnome-Do is a keyboard based application launcher. It is also currently my most favourite thing in the world.&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			NOTE: see &lt;a href=&quot;zimPage.php?page=Add_Menu_Item&quot;&gt;Add Menu Item&lt;/a&gt; for details on how to add custom installed apps to gnome-do's indexer.&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			INSTALLATION: install using synaptic.&lt;br /&gt;
			OR, to get latest repo version, follow instructions here (make sure you run that long command to install all deps):&lt;br /&gt;
			&lt;a href='http://do.davebsd.com/wiki/index.php?title=Installing_Do#From_Source'&gt;http://do.davebsd.com/wiki/index.php?title=Installing_Do#From_Source&lt;/a&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			ANNOYANCES&lt;br /&gt;
			I found 2 annoying bugs with gnome-do v0.8.1.3, running in Jaunty:&lt;br /&gt;
			1) if you choose 'Start gnome-do at login', then the 'open home directory' doesnt work (same if you add gnome-do to 'startup applications')&lt;br /&gt;
			2) you still cannot set just SuperL (win key) as the summon key, so I still have to do it through metacity (See &lt;a href=&quot;zimPage.php?page=Hotkeys_Ubuntu&quot;&gt;Hotkeys&lt;/a&gt;), but if I tell metacity to run the command 'gnome-do', then most of the time it runs twice, and you have to escape the second one (which gets annoying REAL fast)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SOLUTION&lt;br /&gt;
			-don't set it to auto-start itself, OR put it in 'startup apps'&lt;br /&gt;
			-in prefs: uncheck hide on first launch&lt;br /&gt;
			-tell metacity to run this little script instead of gnome-do (e.g. put this text into a new file eg. &lt;b&gt;~/bin/jack-do&lt;/b&gt; and tell metacity to run &lt;b&gt;jack-do&lt;/b&gt;)&lt;br /&gt;
			&lt;b&gt;#!/bin/sh&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			&lt;b&gt;# if gnome-do is already running, then bring it up, else run it&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;if (pgrep '^gnome-do$' &amp;gt; /dev/null); then&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;	dbus-send --session --type=method_call --dest='org.gnome.Do' '/org/gnome/Do/Controller' 'org.gnome.Do.Controller.Summon';&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;else&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;	gnome-do;&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;fi&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SETUP PREFERENCES (call up gnome-do, then click the arrow in the top-right hand corner)&lt;br /&gt;
			-the glass interface is slimline and very swish. def enable 'window shadow' and 'animate window'.&lt;br /&gt;
			-IF get error about compositing, simple fix is to enable metacity compositing:&lt;br /&gt;
			&lt;b&gt;gconftool-2 --set --type=bool /apps/metacity/general/compositing_manager true&lt;/b&gt;&lt;br /&gt;
			-else you can use compiz, but then you need to move all your metacity hotkeys to compiz, as they will stop working&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SWEET PLUGINS (at the top, select &lt;b&gt;all available&lt;/b&gt;)&lt;br /&gt;
			-Alias (Assign alternate names to items)&lt;br /&gt;
			-Gnome Dictionary (type &lt;b&gt;define&lt;/b&gt;, then press Tab and enter the word)&lt;br /&gt;
			-Gnome Session Management (type &lt;b&gt;lock screen&lt;/b&gt;/&lt;b&gt;sleep&lt;/b&gt;/&lt;b&gt;shutdown&lt;/b&gt;/&lt;b&gt;restart&lt;/b&gt;)&lt;br /&gt;
			-Google Calculator (tho i cant seem to get this to work properly on Hardy OR Jaunty)&lt;br /&gt;
			-Google Maps (type &lt;b&gt;map&lt;/b&gt;, then press Tab, then enter the postcode/address)&lt;br /&gt;
			-Locate Files (type &lt;b&gt;locate&lt;/b&gt;, then press Tab, then enter the case-insensitive filename you're looking for)&lt;br /&gt;
			-Microblogging (after selecting this plugin, click 'configure' to setup your account. Then, simply type &lt;b&gt;twitter&lt;/b&gt;/&lt;b&gt;post&lt;/b&gt;/&lt;b&gt;tw&lt;/b&gt; to start tweeting)&lt;br /&gt;
			-System Services (type &lt;b&gt;start&lt;/b&gt;/&lt;b&gt;stop&lt;/b&gt;/&lt;b&gt;restart&lt;/b&gt; then press Tab, and find the service you want, like &lt;b&gt;samba&lt;/b&gt; or &lt;b&gt;apache&lt;/b&gt; - really useful!)&lt;br /&gt;
			-Vinagre VNC (either type &lt;b&gt;vnc&lt;/b&gt;, then press Tab to select your bookmark, or just &lt;b&gt;type the name of the bookmark&lt;/b&gt;!!!)&lt;br /&gt;
			-VirtualBox (few less clicks to run a virtual OS. just type &lt;b&gt;virtualbox&lt;/b&gt;, or the actual the name of your virtualised box e.g. mine is &lt;b&gt;winblows&lt;/b&gt;)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			Then add some cool aliases (open gnome-do and prepare action, then tab over and choose assign alias):&lt;br /&gt;
			ACTION - ALIAS&lt;br /&gt;
			Suspend - sleep&lt;br /&gt;
			Restart - reboot&lt;br /&gt;
			Text - gedit&lt;br /&gt;
			Home - nautilus&lt;br /&gt;
			Screen Resolution - display&lt;br /&gt;
			Google Mail - gmail&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			TIP: whenever you 'tab accross' from your desired action, and the default option is to apply that action to 'selected text', but you want to type your own text: instead of pressing down once or twice to select the empty text option, you can just start typing straight away, and it will change automatically&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			OLD (for Hardy)&lt;br /&gt;
			Prefs: CHECK start at system startup, hide window AND always show results window&lt;br /&gt;
			Keyboard: as cannot set this to my normal hotkey (just Super_L i.e. left win key), do this in metacity settings (with execute command: gnome-do). See &lt;a href=&quot;zimPage.php?page=Hotkeys_Ubuntu&quot;&gt;Hotkeys&lt;/a&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Ubuntu: Setup Ubuntu</title>
<link>http://www.ubooboo.net/zimPage.php?page=Setup_Ubuntu</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Setup_Ubuntu</guid>
<pubDate>Wed, 20 May 2009 14:23:25 +0100</pubDate>
<description>
&lt;p&gt;
			ADD 3RD-PARTY REPOSITORIES (see &lt;a href=&quot;zimPage.php?page=Installation&quot;&gt;Installation Methods&lt;/a&gt;)&lt;br /&gt;
			-Medibuntu (essential to play mp3s / most video). Below is the 'sources.list' entry for Jaunty:&lt;br /&gt;
			&lt;b&gt;deb http://packages.medibuntu.org/ jaunty free non-free&lt;/b&gt;&lt;br /&gt;
			-&lt;a href=&quot;zimPage.php?page=Gnome-colors&quot;&gt;Gnome-Colors&lt;/a&gt; (LOADS of amazing icons and themes - really makes &lt;a href=&quot;zimPage.php?page=Gnome-do&quot;&gt;Gnome-do&lt;/a&gt; shine!)&lt;br /&gt;
			&lt;b&gt;deb http://ppa.launchpad.net/gnome-colors-packagers/ppa/ubuntu jaunty main&lt;/b&gt;&lt;br /&gt;
			-&lt;a href=&quot;zimPage.php?page=Gnome-do&quot;&gt;Gnome-Do&lt;/a&gt; (keyboard based application launcher, and currently my most favourite thing in the world)&lt;br /&gt;
			&lt;b&gt;deb http://ppa.launchpad.net/do-core/ppa/ubuntu jaunty main&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			USEFUL APPS/PACKAGES&lt;br /&gt;
			-padevchooser (allows you to control pulse sound REALLY well - you can do anything!)&lt;br /&gt;
			-network-manager-pptp (allows you to connect to windows VPN)&lt;br /&gt;
			-flashplugin-installer (flash plugin for firefox)&lt;br /&gt;
			-gparted (essential: view/edit partitions. Adds option: menu&amp;gt;system&amp;gt;admin&amp;gt;partition editor)&lt;br /&gt;
			-vim (the leet way to edit text files)&lt;br /&gt;
			-&lt;a href=&quot;zimPage.php?page=Mail-Notification&quot;&gt;Mail-Notification&lt;/a&gt; (the best mail-checker app that sits in system tray)&lt;br /&gt;
			-&lt;a href=&quot;zimPage.php?page=Gnome-do&quot;&gt;Gnome-Do&lt;/a&gt; (keyboard based application launcher, and currently my most favourite thing in the world)&lt;br /&gt;
			-&lt;a href=&quot;zimPage.php?page=Songbird&quot;&gt;Songbird&lt;/a&gt; (mp3 player like iTunes)&lt;br /&gt;
			-emesene (msn client that doesnt give &quot;switchboard errors&quot; like pidgin)&lt;br /&gt;
			-checkinstall (create packages for all installs from source, so can remove them if required!)&lt;br /&gt;
			-alltray (minimise any app to the system tray)&lt;br /&gt;
			-glipper (persistent / fully featured clipboard manager - use it by adding the new 'clipboard manager' to your panel: r click panel&amp;gt;add. Didn't work for me in hardy, and still doesn't work in Jaunty - gives error on restart)&lt;br /&gt;
			-ubuntu-restricted-extras (play mp3s, dvds etc)&lt;br /&gt;
			-vinagre (VNC client to connect to a VNC server and remotely control a computer)&lt;br /&gt;
			-gtkpod (for ipod syncing)&lt;br /&gt;
			-k3b (burn bin/cue files)&lt;br /&gt;
			-vlc (dvd/video playback)&lt;br /&gt;
			-audacity (brilliantly simple music editor - well worth getting to know)&lt;br /&gt;
			-&lt;a href=&quot;zimPage.php?page=Zim&quot;&gt;Zim &lt;/a&gt;(it's called a 'desktop wiki', and it's what i use to write articles for ubooboo)&lt;br /&gt;
			-&lt;a href=&quot;zimPage.php?page=Skype_Setup&quot;&gt;Skype&lt;/a&gt; (VoIP calls)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SOME GENERAL BITS &amp;amp; BOBS&lt;br /&gt;
			-menu&amp;gt;system&amp;gt;prefs&amp;gt;sound&amp;gt; NO SOUNDS!!! (for when in lectures etc.)&lt;br /&gt;
			-get rid of multiple workspaces: add workspace switcher to gnome panel, then r click&amp;gt;prefs&amp;gt;1col 1row. THEN remove it (so that scrolling on desktop doesn't switch workspace)&lt;br /&gt;
			-menu&amp;gt;system&amp;gt;prefs&amp;gt;windows&amp;gt;change move window button to SuperL (rarely use it and it clashes with alt in maya and ctrl when selecting files in windows)&lt;br /&gt;
			-Nautilus (file manager) settings: ensure change display picture thumbnails to ALWAYS (so it does it in sftp directories as well)&lt;br /&gt;
			-uninstall gnome-games-data using synaptic (will also remove gnome-games)&lt;br /&gt;
			-put icons on desktop: (&amp;lt;Alt&amp;gt;F2, and enter gconf-editor) then edit checkboxes in apps&amp;gt;nautilus&amp;gt;desktop&lt;br /&gt;
			-add some useful startup apps (open system&amp;gt;pref&amp;gt;startup apps). I have: emesene, skype, mail-notification&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			COMPOSITING WINDOW MANAGER&lt;br /&gt;
			I just use the default window manager: metacity. It means I can use metacity's hotkeys features, and has it's own basic compositor (nice shadows, transparency and &amp;lt;Alt&amp;gt;Tab action), which is enabled with the following command:&lt;br /&gt;
			&lt;b&gt;gconftool-2 --set --type=bool /apps/metacity/general/compositing_manager true&lt;/b&gt;&lt;br /&gt;
			(else for a more fully featured compositing window manager, see &lt;a href=&quot;zimPage.php?page=Compiz_Fusion&quot;&gt;Compiz Fusion&lt;/a&gt;)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			MAKE THE EJECT MEDIA-TOUCH BUTTON WORK&lt;br /&gt;
			-add this to /etc/sysctl.conf:&lt;br /&gt;
			&lt;b&gt;# Unlock the CDROM eject button&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;dev.cdrom.lock=0&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			DECREASE GRUB TIMEOUT for faster boot time&lt;br /&gt;
			&lt;b&gt;sudo gedit /boot/grub/menu.lst&lt;/b&gt;&lt;br /&gt;
			and change timeout to 2 (also, i like to comment out the 'hide menu by default' option)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			MENU ITEM TWEAKS (menu&amp;gt;system&amp;gt;prefs&amp;gt;main menu OR just r click the menu icon in the panel&amp;gt;edit menus)&lt;br /&gt;
			-replace 'add/remove' with 'synaptic' in root menu&lt;br /&gt;
			-add new item (commands: nm-applet) to internet folder for when gnome-panel crashes (happened a lot in hardy) and i restart it (&lt;b&gt;killall gnome-panel&lt;/b&gt;)&lt;br /&gt;
			(icon: /usr/share/icons/Human/48x48/places/gnome-fs-network.png)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			LINKS TO PDFs open within firefox:&lt;br /&gt;
			&lt;b&gt;sudo apt-get remove mozplugger &amp;amp;&amp;amp; sudo apt-get install acroread acroread-plugins mozilla-acroread&lt;/b&gt;&lt;br /&gt;
			-though i found this to be too sluggish and stopped using&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SOUND (this is what worked for my Dell XPS M1330 - with the media-touch volume buttons)&lt;br /&gt;
			-(if you have this menu option): menu&amp;gt;system&amp;gt;prefs&amp;gt;default sound card&amp;gt;pulse&lt;br /&gt;
			-r click volume applet in system tray&amp;gt;volume control&amp;gt;device: HDA Intel (Alsa mixer), then click prefs and ONLY check: Master, PCM, Digital input source&lt;br /&gt;
			-then ensure in playback tab: both are set to full and are not muted, and set options&amp;gt;digital input source: digital mic1&lt;br /&gt;
			-then r click volume applet in system tray again&amp;gt;prefs and device:  HDA Intel (Alsa mixer), and then select Master and click close&lt;br /&gt;
			-menu&amp;gt;system&amp;gt;prefs&amp;gt;sound: set all to 'pulseaudio' except device: HDA Intel (Alsa mixer), then select Master in the list, and click close&lt;br /&gt;
			-While choosing 'PCM' seems to give a better range of control, 'Master' is the only one that responds to my media-touch buttons...&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			TERMINAL (also see &lt;a href=&quot;zimPage.php?page=Hotkeys_Ubuntu&quot;&gt;Hotkey Creation&lt;/a&gt;)&lt;br /&gt;
			Remember: F11 for full screen&lt;br /&gt;
			General: see &lt;a href=&quot;zimPage.php?page=setup_bashrc&quot;&gt;Setup .bashrc&lt;/a&gt;&lt;br /&gt;
			Vim: &lt;b&gt;sudo apt-get install vim&lt;/b&gt;&lt;br /&gt;
			-then create ~/.vimrc and just put these 2 lines in it:&lt;br /&gt;
			&lt;b&gt;syntax on&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;set showmatch&lt;/b&gt;&lt;br /&gt;
			ALSO check system setup to use it (vim.gnome): &lt;b&gt;sudo update-alternatives --config editor&lt;/b&gt;&lt;br /&gt;
			Also see &lt;a href=&quot;zimPage.php?page=Terminal_Colours&quot;&gt;Terminal Colours&lt;/a&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			FILE SHARING ON WINDOWS NETWORK&lt;br /&gt;
			try r-clicking a folder&amp;gt;share&lt;br /&gt;
			if asks to install some samba packages, do it.&lt;br /&gt;
			ALSO, go menu&amp;gt;add/remove and install system-config-samba (GUI config tool)&lt;br /&gt;
			run with menu&amp;gt;system&amp;gt;admin&amp;gt;samba&lt;br /&gt;
			then do preferences&amp;gt;settings&amp;gt;security&lt;br /&gt;
			and change authentication mode to 'share' (test, but then if needed, change guest to jack)&lt;br /&gt;
			(so doesn't ask for username/pass every time windows computers access my shares over network)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			GEDIT&lt;br /&gt;
			-make sure do view&amp;gt;UNCHECK toolbar (waste of space!)&lt;br /&gt;
			-edit&amp;gt;preferences&amp;gt;then...&lt;br /&gt;
			view&amp;gt; CHECK display line numbers and highlight matching bracket&lt;br /&gt;
			editor&amp;gt; UNCHECK 'create a backup copy of files before saving' (avoids creation of cluttery 'tilde' files i.e. mydoc~)&lt;br /&gt;
			plugins&amp;gt; INSTALL 'change case' and 'indent' (to use either, just select some text then use the new options in the Edit menu)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			LATEST VERSION OF GIMP NOT IN SYNAPTIC?&lt;br /&gt;
			-uninstall gimp and gimp-data using synaptic (involves uninstalling ubuntu-desktop, don't panic)&lt;br /&gt;
			-download and install latest debs from getdeb.net&lt;br /&gt;
			-re-install ubuntu-desktop (not required, but probs recommended - need to double check this will leave the latest version of GIMP in synaptic)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			MY NAUTILUS BOOKMARKS&lt;br /&gt;
			-workspace (my eclipse workspace: ~/workspace)&lt;br /&gt;
			-documents (I copy the windows structure by having a 'documents' dir on my desktop: ~/Desktop/documents)&lt;br /&gt;
			-music (~/music)&lt;br /&gt;
			-public (my shared files: ~/Desktop/public)&lt;br /&gt;
			-tmp (sometimes useful to access temp files / temporarily use some of the OS partition's space: /tmp)&lt;br /&gt;
			-then all my SFTP connections: Uni, my home server, Ubooboo...&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			MY GNOME PANEL (I only have one panel, at the bottom)&lt;br /&gt;
			-single ubuntu menu button&lt;br /&gt;
			-quick launch area: just system monitor graphs (CPU, RAM, Network, DIsk). No app launchers needed now, thanks to &lt;a href=&quot;zimPage.php?page=Gnome-do&quot;&gt;Gnome-do&lt;/a&gt;&lt;br /&gt;
			-no need for 'show desktop' button as I use &amp;lt;Alt&amp;gt;d&lt;br /&gt;
			-window switcher (though mostly use &amp;lt;Alt&amp;gt;Tab)&lt;br /&gt;
			-system tray (normally songbird, skype, emesene, mail-notification, power management, network applet, sticky notes, volume, date and time)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			REFERENCES&lt;br /&gt;
			&lt;a href='https://answers.launchpad.net/ubuntu/+question/67975'&gt;https://answers.launchpad.net/ubuntu/+question/67975&lt;/a&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Ubuntu: Adding Repositories</title>
<link>http://www.ubooboo.net/zimPage.php?page=Adding_Repositories</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Adding_Repositories</guid>
<pubDate>Wed, 20 May 2009 10:38:43 +0100</pubDate>
<description>
&lt;p&gt;
			EXAMPLE ADDING 3RD-PARTY REPOSITORY (e.g. gnome-do)&lt;br /&gt;
			(you will be in-directly editing /etc/apt/sources.list)&lt;br /&gt;
			-find the page with the 'sources.list' entries (normally the project's PPA page) e.g. google 'gnome-do ppa', and you'll get this page:&lt;br /&gt;
			&lt;a href='https://launchpad.net/~do-core/+archive/ppa'&gt;https://launchpad.net/~do-core/+archive/ppa&lt;/a&gt;&lt;br /&gt;
			-and on this page, we have the 'sources.list' entries:&lt;br /&gt;
			&lt;b&gt;deb http://ppa.launchpad.net/do-core/ppa/ubuntu hardy main&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;deb-src http://ppa.launchpad.net/do-core/ppa/ubuntu hardy main&lt;/b&gt;&lt;br /&gt;
			-add them via: menu&amp;gt;system&amp;gt;admin&amp;gt;software sources&amp;gt;third party tab&amp;gt;add&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			THEN YOU NEED THE PUBLIC KEY TO AUTHENTICATE IT&lt;br /&gt;
			-do an update:&lt;br /&gt;
			&lt;b&gt;sudo apt-get update&lt;/b&gt;&lt;br /&gt;
			-Then, if you're missing a public key, you should get a GPG Error saying the public key is not available, followed by an ID number.&lt;br /&gt;
			-You can then automatically add the key with this command (replace &amp;lt;ID&amp;gt; with the ID number):&lt;br /&gt;
			&lt;b&gt;sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com &amp;lt;ID&amp;gt;&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			INSTALLATION&lt;br /&gt;
			-then your new package(s) should appear in synaptic (after a refresh), else you can just run:&lt;br /&gt;
			&lt;b&gt;sudo apt-get update&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;sudo apt-get install gnome-do&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			OLD AUTHENTICATION METHOD&lt;br /&gt;
			-Also on the PPA page, look for a link like this: &lt;b&gt;&quot;This repository is signed with 1024R/77558DD0 OpenPGP key&quot;&lt;/b&gt;&lt;br /&gt;
			-Click the link, then click the same number link on the next page to be taken to the public key page. Save the text of this page (from the 'BEGIN' tag to the 'END' tag) to a useful filename e.g. ~/gnome-do.pub&lt;br /&gt;
			-back in software sources, now go to the authentication tab, and add that file&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Apps: Mail-Notification</title>
<link>http://www.ubooboo.net/zimPage.php?page=Mail-Notification</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Mail-Notification</guid>
<pubDate>Tue, 19 May 2009 09:44:15 +0100</pubDate>
<description>
&lt;p&gt;
			Mail-Notification: the best mail-checker app that sits in system tray displaying the number of unread emails.&lt;br /&gt;
			-It can check ANY kind of email account (Evolution, Gmail, IMAP, POP3, System Mailbox, Windows Live Hotmail, Yahoo! mail)&lt;br /&gt;
			-It can be tweaked to use the new Jaunty notification system (see below)&lt;br /&gt;
			-Mouse-over gives you a nice summary of your unread mail&lt;br /&gt;
			-Clicking the system tray icon can be configured to do many things: I have it set to take me to my inbox, which even works well with my gmail account!&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			INSTALLATION&lt;br /&gt;
			-install package mail-notification using synaptic&lt;br /&gt;
			-then to get the new Jaunty notification system working, hit &amp;lt;Alt&amp;gt;F2 and enter gconf-editor then:&lt;br /&gt;
			apps&amp;gt;mail-notification&amp;gt;popups&amp;gt;d click actions and remove everything&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SETUP (Properties)&lt;br /&gt;
			+&lt;i&gt;General tab&lt;/i&gt;: add mailbox. i did... mailbox type: gmail, enter username and pass, leave everything else to defaults...&lt;br /&gt;
			+&lt;i&gt;Message Popups tab:&lt;/i&gt; Check 'enable popups'. Position: in popup stack. Expiration: default&lt;br /&gt;
			+&lt;i&gt;Status Icon tab&lt;/i&gt;: launch mail reader&lt;br /&gt;
			-For this to work, create /home/jack/bin/open_gmail.sh (use gnome-open instead of firefox to open in new tab not new window):&lt;br /&gt;
			&lt;b&gt;#!/bin/sh&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;gnome-open &quot;https://mail.google.com/mail/&quot;&lt;/b&gt;&lt;br /&gt;
			-and go menu&amp;gt;system&amp;gt;prefs&amp;gt;preferred apps&lt;br /&gt;
			-and do mail reader&amp;gt;custom with command:&lt;br /&gt;
			&lt;b&gt;/home/jack/bin/open_gmail.sh&lt;/b&gt;&lt;br /&gt;
			-Note: if this breaks firefox mailto links (i.e. they just take you to your inbox), then see this page to reset the firefox setting: &lt;a href=&quot;zimPage.php?page=Firefox_General&quot;&gt;Firefox&lt;/a&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			ERROR ON LAUNCH&lt;br /&gt;
			&lt;i&gt;A fatal error has occurred in Mail Notification&lt;/i&gt;&lt;br /&gt;
			&lt;i&gt;Unable to contact the running Mail Notification instance: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken..&lt;/i&gt;&lt;br /&gt;
			-normally means that somehow, hidden away, it is still runnning. find it with &lt;b&gt;ps -ujack | grep -i mail-notif&lt;/b&gt;&lt;br /&gt;
			-then note the process ID (e.g. 3343) and kill it with &lt;b&gt;kill -9 3343&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			OLD (for Hardy)&lt;br /&gt;
			-for some reason, this is what i have in sessions: mail-notification --sm-disable&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SEGFAULT PROBLEM (silently segfaults and closes as soon as you open it)&lt;br /&gt;
			-FIRST try starting the app twice in quick succession, else remove settings file and start again:&lt;br /&gt;
			&lt;b&gt;rm -rf ~/.gnome2/mail-notification&lt;/b&gt;&lt;br /&gt;
			-then run mail-notification app again and re-enter IMAP settings&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			PROPERTIES&lt;br /&gt;
			+GENERAL&lt;br /&gt;
			add mailbox. i did...&lt;br /&gt;
			type: imap as the gmail type didn't seem to work.&lt;br /&gt;
			server: imap.googlemail.com&lt;br /&gt;
			username: your username including @googlemail.com&lt;br /&gt;
			connection: SSL/TLS on separate port: 993&lt;br /&gt;
			mechanism: auto&lt;br /&gt;
			use IDLE: auto&lt;br /&gt;
			check mail: leave to default (5mins?)&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Ubuntu: Gnome-colors</title>
<link>http://www.ubooboo.net/zimPage.php?page=Gnome-colors</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Gnome-colors</guid>
<pubDate>Mon, 18 May 2009 09:59:56 +0100</pubDate>
<description>
&lt;p&gt;
			The gnome-colors package contains LOADS of amazing icons and themes (really makes &lt;a href=&quot;zimPage.php?page=Gnome-do&quot;&gt;Gnome-do&lt;/a&gt; shine!)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			INSTALLATION&lt;br /&gt;
			-Here's the sources.list entry for jaunty (see &lt;a href=&quot;zimPage.php?page=Installation&quot;&gt;Installation Methods&lt;/a&gt;):&lt;br /&gt;
			&lt;b&gt;deb http://ppa.launchpad.net/gnome-colors-packagers/ppa/ubuntu jaunty main&lt;/b&gt;&lt;br /&gt;
			-Then install these packages: shiki-colors and gnome-colors (they have a fair few dependencies which are auto-satisfied)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			ACTIVATION&lt;br /&gt;
			-menu&amp;gt;system&amp;gt;prefs&amp;gt;appearance&lt;br /&gt;
			-select a shiki theme (I chose to stay true to orange ubuntu, with 'shiki-human'), then click customise&lt;br /&gt;
			-controls: human (to get different colour toolbar to window title-bar in terminal window etc. I avoided 'human-clearlooks' as it adds extra colour bars where they are not welcome...)&lt;br /&gt;
			-colours: reset to defaults (again, I chose to stick to classic ubuntu: leaving selections as orange)&lt;br /&gt;
			-window-border: shiki-colours metacity (the 'easy' version adds a coloured bar around all windows, which is unnecessary if you have enabled shadows)&lt;br /&gt;
			-icons: gnome-human (mmmmmm vibrant orange)&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Linux: Local Install</title>
<link>http://www.ubooboo.net/zimPage.php?page=Local_Install</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Local_Install</guid>
<pubDate>Thu, 14 May 2009 11:48:45 +0100</pubDate>
<description>
&lt;p&gt;
			If you are not the admin of your workstation, and you need to install an app, add this to your ~/.bashrc&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			&lt;b&gt;# paths for local installs (from source code)&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;PREFIX=$HOME/installs&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;export PATH=$PREFIX/bin:$PATH&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;export LD_LIBRARY_PATH=$PREFIX/lib&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;export LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;export C_INCLUDE_PATH=$PREFIX/include&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;export CPLUS_INCLUDE_PATH=$PREFIX/include&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;export MANPATH=$PREFIX/share/man:$PREFIX/man:$MANPATH&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			Then you want to do the normal configure, make, make install (see 'Installing from Source' in &lt;a href=&quot;zimPage.php?page=Installation&quot;&gt;Installation Methods&lt;/a&gt;), except you want to alter the configure instruction to use the local install directory:&lt;br /&gt;
			&lt;b&gt;./configure --prefix=$HOME/installs&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Coding: Oracle</title>
<link>http://www.ubooboo.net/zimPage.php?page=Oracle</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Oracle</guid>
<pubDate>Sat, 09 May 2009 11:24:22 +0100</pubDate>
<description>
&lt;p&gt;
			Assumes you already have an Oracle database system installed, as well as 'sqlplus' (command line access)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			Start an interactive command line session with the command: &lt;b&gt;sqlplus&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			CHANGE YOUR PASSWORD (will ask you for old then new password)&lt;br /&gt;
			&lt;b&gt;password;&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			LIST THE TABLES IN THE CURRENT DATABASE&lt;br /&gt;
			&lt;b&gt;SELECT table_name,num_rows FROM user_tables;&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			CREATE A NEW TABLE&lt;br /&gt;
			&lt;b&gt;CREATE TABLE test (&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;id int,&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;name char(100)&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;);&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			DESCRIBE A TABLE&lt;br /&gt;
			&lt;b&gt;DESCRIBE test;&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Apps: Songbird</title>
<link>http://www.ubooboo.net/zimPage.php?page=Songbird</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Songbird</guid>
<pubDate>Tue, 21 Apr 2009 14:31:15 +0100</pubDate>
<description>
&lt;p&gt;
			Check if repo version is latest, else get from getdeb&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SETTINGS&lt;br /&gt;
			Tabs - Do not always show the tab bar (I hate the browser element of songbird and want to hide it)&lt;br /&gt;
			Media Importer - CHECK Alert me when unsuported tracks are not imported and WATCH FOLDERS: CHECK watch for changes for /home/jack/music&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			ADD-ONS&lt;br /&gt;
			Concerts: amazing: checks if any of your artists are playing in your city!&lt;br /&gt;
			Customize Filter Pane: can choose to just have album/artist like in iTunes (i.e. can get rid of 3rd filter pane)&lt;br /&gt;
			FireTray: minimises Songbird to tray (in preferences, UNCHECK show notifications as they are really big and intrusive, instead use: Song Notifier)&lt;br /&gt;
			Last.fm: for scrobbling&lt;br /&gt;
			Last.fm Album Art: better than Songbird's inbuilt album art finder (Amazon's album art finder add-on just compliments Songbird's inbuilt one, but still aint as good as Last.fm)&lt;br /&gt;
			Music Recommendations: side pane to give info on current band playing, and similar artists&lt;br /&gt;
			Song Notifier: less intrusive popup with info on new track&lt;br /&gt;
			SHOUTcast Radio: good for finding random radio shows&lt;br /&gt;
			The Exorcist: great for getting rid of duplicates and ghost tracks (tracks in library that have a broken link to an mp3 file)&lt;br /&gt;
			^(see the new 'views' created in view&amp;gt;media views)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			TABS IN LIBRARY VIEW&lt;br /&gt;
			-Track Number&lt;br /&gt;
			-Title&lt;br /&gt;
			-Time&lt;br /&gt;
			-Artist&lt;br /&gt;
			-Album&lt;br /&gt;
			-Genre&lt;br /&gt;
			-Bit Rate&lt;br /&gt;
			-Size&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			IF SONGBIRD RESOLUTION MESSED UP (e.g. over the task bar and cant resize):&lt;br /&gt;
			-locate localstore.rdf in ~/.songbird (mine was in ~/.songbird2/xxxxx.default/)&lt;br /&gt;
			-find resolution part, mine looked like this:&lt;br /&gt;
			&lt;b&gt;&amp;lt;RDF:Description RDF:about=&quot;chrome://gonzo/content/xul/mainplayer.xul#mainplayer&quot;&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;                   screenX=&quot;0&quot;&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;                   screenY=&quot;0&quot;&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;                   width=&quot;1280&quot;&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;                   height=&quot;800&quot;&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;                   sizemode=&quot;normal&quot; /&amp;gt;&lt;/b&gt;&lt;br /&gt;
			-change to something small relative to your resolution e.g. 800x600&lt;br /&gt;
			-restart songbird&lt;br /&gt;
			-resize the window&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			OLD (now just use FireTray add-on)&lt;br /&gt;
			-change the launcher in /use/share/applications&lt;a href='/use/share/applicationsm'&gt; &lt;/a&gt;to have the prefix alltray&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Mmmmmm done?!</title>
<link>http://www.ubooboo.net/zimPage.php?page=Problems_Encountered</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=Problems_Encountered</guid>
<pubDate>Tue, 21 Apr 2009 14:18:00 +0100</pubDate>
<description>
I've finished all the basic functionality of the site. Comments system, history bar (on the article pages), 5 newest page snippets on homepage, automatically generated feed items based on new articles. Also: pretty menu hover colours! Then there's complete IE6 and IE7 compatibility and finally everything is strictly standards compliant. This will most probs be the last manual addition to this feed. After this, you will just be getting the articles I write on different Ubuntu-related subjects (next articles will be in the Coding section; relating my new experiences with web development)! Thanks for listening.xxx
</description>
</item>

			

			
<item>
<title>Linux: SSH and SCP</title>
<link>http://www.ubooboo.net/zimPage.php?page=ssh_scp</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=ssh_scp</guid>
<pubDate>Tue, 21 Apr 2009 14:09:08 +0100</pubDate>
<description>
&lt;p&gt;
			SSH = Secure SHell (normal behavior: will be taken to your user's home folder)&lt;br /&gt;
			&lt;b&gt;ssh username@server&lt;/b&gt;&lt;br /&gt;
			To start in another directory, add the -t option, as well as this suffix: &quot;cd /path/to/dir; bash&quot; e.g.&lt;br /&gt;
			&lt;b&gt;ssh -t username@server &quot;cd /path/to/dir; bash&quot;&lt;/b&gt;&lt;br /&gt;
			This works because the second argument to the ssh command is the command to execute on the server...&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SCP = Secure CoPy&lt;br /&gt;
			&lt;b&gt;scp username@server:/absolute/path/to/file /home/user/Desktop&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;scp username@server:relative/path/from/users/home/to/file /home/user/Desktop&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SSH w/o PASSWORD PROMPT&lt;br /&gt;
			-create public private keypair&lt;br /&gt;
			&lt;b&gt;ssh-keygen -t rsa&lt;/b&gt;&lt;br /&gt;
			-copy public key to server&lt;br /&gt;
			&lt;b&gt;scp ~/.ssh/id_rsa.pub username@&amp;lt;your server&amp;gt;:~/.ssh/authorized_keys&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>



<item>
<title>Coding: MySQL</title>
<link>http://www.ubooboo.net/zimPage.php?page=MySQL</link>
<guid isPermaLink="false">http://www.ubooboo.net/zimPage.php?page=MySQL</guid>
<pubDate>Tue, 21 Apr 2009 02:25:46 +0100</pubDate>
<description>
&lt;p&gt;
			Assumes you already have MySQL installed (and have set root password during installation)&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			CREATE DATABASE&lt;br /&gt;
			-must login as root: &lt;b&gt;mysql -uroot -p&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;CREATE DATABASE dbname;&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			MODIFY USERS&lt;br /&gt;
			-again, must be root&lt;br /&gt;
			-create username: jack, with password: mypassword who can access the MySQL databases on server: localhost&lt;br /&gt;
			&lt;b&gt;CREATE USER 'jack'@'localhost' IDENTIFIED BY 'mypassword';&lt;/b&gt;&lt;br /&gt;
			(@'localhost' is optional, but good to limit user's reach)&lt;br /&gt;
			-drop (remove) user: jack&lt;br /&gt;
			&lt;b&gt;DROP USER 'jack'@'localhost';&lt;/b&gt;&lt;br /&gt;
			(if had not defined @'localhost' during the user's creation, it would just be &lt;b&gt;DROP USER jack;&lt;/b&gt;)&lt;br /&gt;
			-grant user: jack access to database: dbname (with privileges: ALL the basic ones... could have just listed a few e.g. GRANT SELECT, INSERT ON dbname...)&lt;br /&gt;
			&lt;b&gt;GRANT ALL ON dbname.* TO 'jack'@'localhost';&lt;/b&gt;&lt;br /&gt;
			-NOTE: a user can then login and change their password with &lt;b&gt;SET PASSWORD = PASSWORD(&quot;newpassword&quot;);&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			MODIFY TABLES (NORMAL USER LOGIN)&lt;br /&gt;
			-login as a normal user. Last argument is the dbname (must have permissions on it)&lt;br /&gt;
			&lt;b&gt;mysql -ujack -pmypassword dbname&lt;/b&gt;&lt;br /&gt;
			-can change the currently USED database at any point with &lt;b&gt;use dbname;&lt;/b&gt;&lt;br /&gt;
			-create a new table (auto-increment id field, auto-set-to-current timestamp field, an optional character string field, then a non-optional long string field)&lt;br /&gt;
			&lt;b&gt;CREATE TABLE messages(&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;messageId INT NOT NULL AUTO_INCREMENT PRIMARY KEY,&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;timeStamp TIMESTAMP NOT NULL default CURRENT_TIMESTAMP,&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;name VARCHAR(30),&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;message TEXT NOT NULL,&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;);&lt;/b&gt;&lt;br /&gt;
			-insert a couple of new rows&lt;br /&gt;
			&lt;b&gt;INSERT INTO messages(name,comment) VALUES('tom','this is my message');&lt;/b&gt;&lt;br /&gt;
			&lt;b&gt;INSERT INTO messages(name,comment) VALUES('james','this is another message');&lt;/b&gt;&lt;br /&gt;
			-update a row&lt;br /&gt;
			&lt;b&gt;UPDATE messages SET name='fred' WHERE name='james';&lt;/b&gt;&lt;br /&gt;
			-delete a row&lt;br /&gt;
			&lt;b&gt;DELETE FROM messages WHERE name='tom';&lt;/b&gt;&lt;br /&gt;
			-delete a table&lt;br /&gt;
			&lt;b&gt;DROP TABLE messages;&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			&lt;p&gt;
			SELECT&lt;br /&gt;
			-login as normal user&lt;br /&gt;
			-simple query - select all fields that match a constraint&lt;br /&gt;
			&lt;b&gt;SELECT * FROM messages WHERE name='tom';&lt;/b&gt;&lt;br /&gt;
			-advanced query - select just a couple of fields that match a complex constraint (use LIKE and percents in the string for wildcards), order the results using a particular field (DESC means descending, where the default would have been ascending), and limit the results with a maximum quantity:&lt;br /&gt;
			&lt;b&gt;SELECT message,timeStamp FROM messages WHERE message like '%my%' ORDER BY timeStamp DESC LIMIT 5;&lt;/b&gt;&lt;br /&gt;
			-terminal select queries overlapping and looking UGLY? You can put a max size on any text fields:&lt;br /&gt;
			&lt;b&gt;SELECT timeStamp,name,LEFT(message,30),page FROM messages ORDER BY timeStamp DESC;&lt;/b&gt;&lt;br /&gt;
			
			&lt;/p&gt;
			
			
			</description>
</item>

<item>
<title>Finally Dynamic</title>
<link>http://www.ubooboo.net/about.php</link>
<guid isPermaLink="false">http://www.ubooboo.net/about.php</guid>
<pubDate>Wed, 8 Apr 2009 19:25:00 GMT</pubDate>
<description>
Ubooboo finally goes dynamic, meaning it is full of juicy content, and will be 
updated frequently. It probably still contains loads of swear words and terrible 
formatting, but that will be ironed out over time. 
In other news, there is now a sweet little about page, which 
you can reach by clicking the title of this feed item, or the link in the footer 
on the site. Features coming soon: location bar and a working rss feed of new pages.
</description>
</item>

<item>
<title>Revenue</title>
<link>http://www.ubooboo.net</link>
<guid isPermaLink="false">http://www.ubooboo.net/</guid>
<pubDate>Mon, 16 Mar 2009 21:52:00 GMT</pubDate>
<description>
Firstly, please delete this feed subscription and subscribe to this one instead: 
http://feeds2.feedburner.com/ubooboo 
as I'm now using a 3rd party service provided by feedburner.com.
Now for the important news: thanks to Google AdSense, we now have some clever targetted ads at the side of every page. 
They should be interesting and relevant to the content of the page being viewed. Then there's the search feature: 
it is now fully operational, and so you no longer need to navigate to your favourite article, you can just search for it! 
In other news, I have put real article-snippets on the homepage, and changed the generic comments, which are currently 
the same on all pages, to make them more interesting ;). The next stage will be dynamic content, coming over easter! 
Lots of love, Jack.x
</description>
</item>

<item>
<title>INFESTATION ALERT</title>
<link>http://www.ubooboo.net</link>
<guid isPermaLink="false">http://www.ubooboo.net/index.php</guid>
<pubDate>Mon, 9 Mar 2009 22:19:00 GMT</pubDate>
<description>
This coursework submission involved animation. As I couldn't think of anything useful to do,
 we now have a friendly pet ant called Clancey. Please welcome him into the community. In other news, you can now 
 toggle the view of the (not yet working) comment submission form. And links everywhere are getting crazy mouse-over colours. 
 As always, any feedback would be greatly appreciated.x
</description>
</item>

<item>
<title>New Logo</title>
<link>http://www.ubooboo.net</link>
<guid isPermaLink="false">http://www.ubooboo.net</guid>
<pubDate>Wed, 4 Mar 2009 11:42:00 GMT</pubDate>
<description>
Ubooboo has a new logo, and slogan. Please give feedback! Fonts good/bad? Size/Positioning? Dodgy slogan?
Thanks, much love, Jack.x
</description>
</item>

</channel>
</rss>


