Posts Tagged ‘workarounds’
Update: Here’s a Link to a Fantastic Linux/Unix Cheat Sheet…
Thanks to a post on digg.com I came across a great site for the Linux/Unix user who’s a step beyond the newbie phase. It has clear, concise details with examples of a whole host of commands. You can find it here:
Quick Reference Sheet for Ubuntu/Linux…
***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!
System/Program Affected |
Error Message/Symptom |
Solution |
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 |
|
***UPDATE***
Well, it didn’t take long for me to stumble upon a MUCH more comprehensive guide – you can find it here:
http://blog.lxpages.com/ultimate_linux.html
Cheers!