I'm putting this here so I can recall it for later find -mtime +2 -type f -print -exec mv {} /home/user/old/ \; Basically it does the following: Find all files where the File's data was last modified more than 2 days ago and run the move command on each file to move...
GNU/Linux
How to extract Icons from Windows executeables in Linux
I have installed a small app using Wine under Ubuntu 8.04 however the desktop launcher icon isn't the correct one for the application. Windows frequently stores application icons in the programs exe file. So to fix my launcher icon I need to extract the icon from the...
Saying “I Love You” Remotely with Festival
It's simple: Login remotely to your Linux based home computer via ssh. Create a text file with the contents you want to say in it. vi ilu.txt Lisa, I love you. :wq Then run festival with the following arguments festival --tts ilu.txt If all runs well your computer...
Error: Missing Dependency: libc-client.so.2006 is needed by package php-imap
Error: Missing Dependency: libc-client.so.2006 is needed by package php-imap To fix it I did: # remove the package that is causing the complaint yum remove php-imap # do the update yum update # install php-imap it will then pull in the correct version of...
crontabs/username: Permission denied
I just had an issue where I tried to issue crontab -e as a user and got crontabs/username: Permission denied The problem was traced to deleting an old account that had a crontab then recreating the account later which had a different user id. Note here how the...
Using Knoppix to remove the GRUB password option and blank the root password
I went on three weeks holiday recently and when I got back I had forgotten what I had configured as the GRUB and root passwords on a CentOS 5.1 box. I ended up using two FAQ's that I stored for future reference. One I had written -...
QCAD uses /etc/printcap which doesn’t have correct printer entries
Just thought I would share my experiences with a printing problem I was having. QCAD (at least some versions) seems to look at /etc/printcap to populate the printing dialog box. I have had an issue where the wrong printer was being listed in the print dialog (one that...
Ubuntu 8.04 Devel – Acrobat Reader 8.1.2
I had an issue with Adobe Reader 8.1.1 printing Landscape layout on Portrait paper (not rotating properly). However it appears that the new 8.1.2 has fixed this. So if you are having problems with printing PDF's under Ubuntu 8.04 Devel try upgrading to Adobe Reader...
Sometimes xpdf does the job where Acrobat Reader 8.x can’t
Just about everything in the GNU/Linux world is working pretty much as advertised these days. I had an interesting issue with trying to print a restaurant menu from Legends Grill at The Vintage which incidentally is where we had our Wedding reception a few years ago...
Current Reading or “Let’s get down to business”
Hi Mum 🙂 These are the current titles I am ingesting. The E-Myth Revisited - Michael Gerber How to Grow Your Business by taking 3 Months Off - Louise Woodbury & William De Ora How to Organize and Operate a Small Business in Australia - John English As the economic...
Avoiding arguments while sharing a computer with your wife.
My Wife and I share a workstation which is a Ubuntu 8.04 development release box and while my wife prefers Windows, we are sharing till we get another computer. Anyway the way I have it configured, is to have one user account on the computer which is configured for...
How to attach a file to an email using the Linux mail command
How to attach a binary file to an email using the Linux mail command: ( cat bodyofmail.txt; uuencode filetoattach attachmentnameinemail ) |\ mail -s "The subject" [email protected] # for example # if I had the text body of my email in "body.txt" # and I had a PDF file...
Change LedgerSMB Latex (PDF / PS) Paper size from Letter to A4
Letter paper is 215.9 x 279.4 A4 paper is 210 x 297 So when you go to print you may have slight problems with page layout when printing A4 or exporting to PDF. The fix is as follows: In each Latex template find the line near the top that has the letterpaper keyword...
LedgerSMB Error! No GlobalDBH Configured or Could not Connect
Error! No GlobalDBH Configured or Could not Connect Just had this error attempting to install LedgerSMB. In my case this was caused by having postgres-8.3 installed and then installing postgres-8.2 the second installation moved the tcp port to a non-standard port...
SQL Ledger can’t view Open POS Invoice
On Line 2333 of SL/Form.pm add single quotes to $expires variable # remove expired locks $query = qq|DELETE FROM semaphore WHERE expires < '$expires'|; $dbh->do($query) || $self->dberror($query); Error: **DBD::Pg::db do failed: ERROR: operator does not exist:...
GNUCash Heading Banner Graphic Setup
I have been playing with the correct graphic resolutions to get my GNUCash Fancy Invoice header to print correctly. I think I have stumbled on the correct settings. This is for a PNG format Heading Banner file. Using gimp I did the following: Explanation: Using the...
SQL Ledger
Problem: Error! This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled. entering extended mode (./1204165120_invoice_1.tex LaTeX2e <2005/12/01> Babel and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, loaded. !...
Getting Java working on Ubuntu 8.04 Development Branch
Java will not run unless I do the following hack which will set the environment variable system wide. vi /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" LANG="en_AU.UTF-8" LANGUAGE="en_AU:en"...