Archive for the ‘Ubuntu/Linux’ Category
Craigslist, with its bbs-inspired aesthetic, is a great site for finding things locally; we use it all the time. However there are times when it would be great to be able to search all the individual Craigslist sites at once. This is particularly true when trying to find rare, antique or otherwise obscure items (for example a Ferrrai 246, or just the right wheels for our vintage BMW 6 Series).
Since Craigslist is based on a local model, manually searching the globe via Craigslist would entail searching thousands of sites individually. We present a double shortcut today: a Firefox keyword search that lets you search every Craigslist site by entering just two letters in your address bar plus the item you’re searching for.
For those unfamiliar with Firefox’s excellent keyword feature, it allows you to assign shortcuts for your address bar that populate a web site’s input fields. Here’s a quick example of how it works which you can try right now:
1) Open a new tab or browser window.
2) Go to http://www.imdb.com/
That’s the Internet Movie Database site.
3) Right click in the web site’s search bar and select “Add a Keyword for this Search…”
4) In the box that appears, type “imdb” (without the quotation marks) in both fields. The first field is the name you’ll be saving this keyword as; the second field is the actual shortcut. Click the “Add” button.
5) Now go to your address bar and type “imdb dark knight” (again, without the quotation marks) and hit enter. You’ll be taken to the Internet Movie Database’s results page for a Dark Knight search.
Now, anytime you want to search for a movie, you need only enter “imdb” into your address bar, followed by a space and the name of the movie – you’ll get the same result as if you’d visited imdb.com and entered the name of the movie in imdb.com’s search bar. This works with any site and is a great time saver.
OK, time for part II: a global Craigslist search with a keyword.
1) Go to http://www.google.com.
2) In the search field, right click and select “Add Keyword for this Search…”.
3) In the Name field, enter “Craigslist” (no quotations).
4) In the Keyword field, enter “cl” (again, no quotation marks). Click the “Add” button.
5) Open your bookmarks and right click on your “Craigslist” bookmark. Select “Properties”.
6) In the Location field, enter “http://www.google.com.my/search?hl=en&q=site:craigslist.org%20%22%s%22&meta=”
Not to be ridiculously repetitive, but no quotation marks please!
Click the “Add” button.
From now on, whenever you want to search all the Craigslist sites in existence for an item, simply enter “cl” followed by a space, followed by the name of the item you’re looking for.
NOTE: the above keyword searches for exact matches (ie the equivalent of enclosing a phrase in quotation marks in Google). If you prefer to search results with the included words but not the exact phrase, substitute the following for the Location field in your “Craigslist” Properties dialogue:
Having screwed up my courage and built my Linux box, I was ready to install MythTV. For those of you unfamiliar with MythTV, it’s a free, open-source PVR software solution which, besides allowing you to record shows (and automatically skip commercials, transcode to other formats, etc) features a web browser, weather reports, a photo viewer, DVD player, RSS reader, music player, internet phone, Netflix subscription manager, movie times listings and more, all in one package. It also allows you to access your system from any internet connection, should you wish, and schedule recordings, etc. remotely. It’s like Tivo, without the subscription fees. Read the rest of this entry »
With the recent changes to the Dashboard feature of wordpress.com’s hosted blogs, users with Linux running on an AMD 64 based machine may be out of luck in trying to upload photos, music, videos or anything else. It appears a newer version of java is required, and the java plug in required to upload media is incompatible with the 64 bit architecture.
Here’s a workaround: Read the rest of this entry »
***UPDATE*** Well, we have our answer to the question at the end of this article: this story lasted all of about 12 hours on digg.com before being unceremoniously buried…
Is “Ubuntu” a dirty word on popular site digg.com? After a pair of my articles were submitted, I checked the stories at the Digg site and noticed a user had voted to bury both of them. The comments indicated the inclusion of the term “Ubuntu” was deemed spam by this user, and served as the reason for the bury vote.
I left a comment in response but received no reply, so visited the user’s profile. Here’s what I found:
***IMPORTANT UPDATE: one of our readers has advised that recent versions of the firmware for the FireWire Solo are responsible for issues relating to an inability to get sound output from the unit in Linux. If you encounter this issue, and have already tried the suggestions in the Comments section, please consider changing your firmware version to FW_WDM_184.108.40.20636.exe (the last known good version – many thanks, laban!)
You can find it here (opens in new window):
Please also note that you shouldn’t have to update or install any firmware – it ought to work out of the box.***
***UPDATE: we’ve received some feedback from the good people at M-Audio, who have advised against leaving the unit plugged in: “…we advise against using the AC power adapter when bus power is available; this often causes problems and can possibly damage the device.” Our previous instructions to leave the unit plugged in have therefore been deleted.***
I’ve responded to a number of questions as to how to get the M-Audio Firewire Solo recording interface up and running with Ubuntu/Linux. The Firewire Solo is a device which allows one to connect a microphone or guitar/instrument to a firewire input on your computer and allows for excellent transfer rates and low latency.
I’ve promised to put together complete instructions, so, at long last, here they are. If you have any questions/ issues/ suggestions/ comments or selected curse words, please feel free to comment below.
***LATEST UPDATE: AUG 10, 2008***
We’ve compiled a table of some useful commands we’ve come across as we continue to learn Linux/Ubuntu – see below. You can open the link with OpenOfficeOrg (which may show up as “soffice” in the download dialogue box or you may have to click “Open With Other Application” and navigate to /usr/bin/soffice).
We’ll be adding to these regularly – so be sure to check back often!
|DVD Drive – can’t mount||mount_point cannot contain the following characters: newline, G_DIR_SEPARATOR (usually /)||
|Firewire capture from STB (Motorola 6200) fails||Black screen appears when watching live TV in MythTV.||
|No live TV in MythTV||Selecting live TV in MythTV causes a very brief flash followed by a return to main menu screen.||
|qjackctl won’t start – error box pops up after attempting to start||Need to force bus reset||
|Ardour interrupts recording/ playback with “Disk Cannot Keep Up…”||Possibly too many overlapping regions.||Delete un-needed regions until it works again.*see ardour.org for non-destructive methods.|
|Want to download a torrent file.||Use Bit Torrent||In terminal:#gnome-btdownload http://www.link_to_torrent|
|Process can’t get the priority you want/is pre-empted by other, less important processes||
|Convert .wav to .mp3||#lame -V2 /path/to/song/.wav /path/to/put_new_mp3_song.mp3|
|Convert all files in a folder from .aif/.aiff to .wav||
|Manually transcode MythTv recordings||see: http://www.mythtv.org/docs/mythtv-HOWTO-23.html|
|List all current users – check if anyone is logged on who shouldn’t be||Informational/security||#w|
|List all open network files – check if files are opened which shouldn’t be||Informational/security||#lsof -i|
|Show details for all active connections||Informational/security||#sudo netstat -anp | less|
|Tools to scan for rootkits||Security||
|Show details of a PID||Informational/security||
|Show network connections, etc.||Informational/security||#sudo netstat -tulnp|
|Using the Uncomplicated Fire Wall (ufw)||Security||
|View all kernel parameters||Informational||#sudo sysctl -a | sort | more|
|In terminal, only show one page of info at a time (ie prevent scrolling)||
|Show last 500 commands entered in a shell terminal||Informational||
|Narrow down search with “history”.||Informational||
|Set up recurring jobs/programs to run automatically at set intervals||Automation||
# +---------------- minute (0 - 59) # | +------------- hour (0 - 23) # | | +---------- day of month (1 - 31) # | | | +------- month (1 - 12) # | | | | +---- day of week (0-6)(Sun=0 or 7) # | | | | | * * * * * command to be executed Example (MUST be on one line): 27 * * * * /usr/bin/chkrootkit >> /home/user/Desktop/security Runs "chkrootkit" at 27 mins past the hour, every hour (and outputs the results to a file called "security" on the user's desktop). 15 19 * * 3 /etc/init.d/mysql start Starts mysql at 7:15pm every Wednesday. Also: string meaning ------ ------- @reboot Run once, at startup. @yearly Run once a year, "0 0 1 1 *". @annually (sames as @yearly) @monthly Run once a month, "0 0 1 * *". @weekly Run once a week, "0 0 * * 0". @daily Run once a day, "0 0 * * *". @midnight (same as @daily) @hourly Run once an hour, "0 * * * *".
|Find IRQ of a device||Informational||#cat /proc/interrupts|
|Change the priority of an IRQ||#sudo chrt -f -p 90 `pidof “IRQ-4″` where “-p” is the priority you want to assign, “-f” assigns it SCHED_FIFO (First In First Out scheduling) and “IRQ-4” is the IRQ of the device whose priority you want to change (use #cat /proc/interrupts to determine this). MAKE SURE YOU INCLUDE THE TICK MARKS IN THE COMMAND. THESE ARE NOT APOSTROPHES; THEY ARE TYPICALLY FOUND ON THE KEY ABOVE THE “TAB” KEY.|
|Firefox/Thunderbird won’t allow the installation of plugins/plugins stop working||In the Profiles folder, delete the file “extensions.rdf”. Restart Firefox/Thunderbird – it will recreate the file and your extensions should work again.|
|Problem copying directory||Error message: “cp: omitting directory …“||
|Convert FLAC to WAV||
|Find orphaned MythTV recordings or database entries||Recordings on disk but not available to mythtv or programs listed in mythtv but not available||
|Google Notebook won’t open in Firefox||Box appears, but “Reload” is displayed.||
|MySql won’t start after upgrade||
|Test hard drive health using S.M.A.R.T.||
|Get info about hard drive||Informational||
|Test performance of hard drive||Informational||
Well, it didn’t take long for me to stumble upon a MUCH more comprehensive guide – you can find it here: