Tech stuff and info dump

GNOME 2: how to turn off annoying sound that plays every time you click something (Linux Ubuntu 10.04)

June 14th, 2012

Recently, I ran some updates and my theme automagically changed. This is annoying, but I need to go to work, so I’ll have to look into it later. However, I can’t possibly leave the house without at least disabling the annoying little clicks that make noise every time I click something. Here’s what I did:

  • Go to: System -> Preferences -> Sound
  • Find the drop-down box entitled ‘Sound theme’.
  • Choose ‘No sounds’.
  • Enjoy the sound of silence….

(Also, I made sure the mute button for ‘Alert volume’ was ticked, just in case.)

I’m running Ubuntu 10.04 and GNOME 2.30.2 on this machine.  (Yeah, yeah, I know I need to upgrade, but I’m avoiding GNOME 3.  I watched the SO struggle with Mint for awhile, and am considering The Next Step.  But that’s another rant/post.)


Filed under: desktop,GNOME,linux,Ubuntu 10.04
No Tag
June 14th, 2012 09:18:27

Linux Ubuntu: How to get NPR’s ‘Car Talk’ podcast (and other great shows) using gPodder

March 30th, 2011

I recently spent way too much time faffing with trying to listen to one of my favourite NPR shows of all time: Car Talk. I’m running Ubuntu 10.04 so the iTunes option is a bit of a faff** and I had trouble with the play-online option.

Thus, I went on a search for a Ubuntu Car Talk podcast strategy that I’d be happy recommending to my parents. The winner is gPodder. (There may be others equally good or better, but I came across this one quite early in my search and it does the job.)

Here’s how to install it and get Car Talk up and running:

Open Synaptic Package Manager. On Ubuntu 10.4 and others, this can be found under System -> Administration -> Synaptic Package Manager. (You may have to enter your password to open Synaptic.)

Once Synaptic is open, you should see a box entitled ‘Quick search’ at the top. Click the mouse in this box, type in ‘gpodder’ then click enter. A package called ‘gpodder’ should come up in the search results.

If this program is already installed, there will be a version number listed in the ‘Installed Version’ column. If it isn’t installed, click the tickbox to the left of ‘gpodder’ and choose ‘Mark for installation’. You may be asked to install other files which support gpodder – this kind of message usually comes up in a box titled ‘Mark additional required changes?’. Agree to install these other files by clicking on the button labelled ‘Mark’.

Once you are done with all of that, click the button with the green tick and the words ‘Apply’ at the top of the main Synaptic window. Wait for awhile whilst the package is downloaded and installed. (You will need an internet connection for this.) Eventually, the ‘Applying changes’ window will disappear or give you a message saying that everything has been installed. At this point, you can close the Synaptic window by clicking on the ‘x’ at the top of the window.

Now, you can open gpodder, a nice piece of Ubunutu-friendly podcast software. You can find this in Applications -> Sound & Video -> gPodder Podcast Client.

When you open the client for the first time, you get a little window called the ‘gPodder startup assistant’. There is a button entitled ‘Choose from a list of example podcasts’. Click this button!

This opens a new window called ‘Find new podcasts’. If you click on the ‘Top podcasts’ tab, you’ll find a list with some gems on it. Most importantly, if you scroll down a bit, you’ll find ‘NPR: Car Talk Podcast’!

For each podcast to which you’d like to subscribe, tick the check-box to the left of the podcast. When you’re done, click the ‘Add’ button.

You might then get a window that says ‘New episodes available’. Select which ones you want by ticking the checkboxes next to the episodes (if they’re not already ticked) and then clicking the ‘Download’ button.

Once an episode has downloaded, it will have a little icon next to it under the ‘Status’ column. You can click on the episode to choose it and then click the ‘Play’ button at the top of the window.

You might notice older episodes that are available but that aren’t being automatically downloaded. (This is when you’re in the Podcast tan and you’ve clicked on the title of a certain show to see what episodes are available.) If you want these as well, you can right-click on the show title and choose ‘Download’. Once an episode is downloaded, you can delete it by right-clicking and choosing ‘Delete’.

Also, if you want gPodder to automatically download new episodes, you’ll need to go to Podcasts -> Preferences -> General and tick the boxes under ‘Automatic download of episode list’ which will allow gPodder to know when new episodes are available. You can then go to Podcasts -> Preferences -> Tray Icon. Here you can choose how gPodder is displayed on your computer and you can choose ‘Always automatically download new episodes’ under the ‘Advanced window options’ heading.

Of course, there’s a lot more to gPodder and you may want to use; Help -> User manual is a good place to start if you’re having trouble.

** Archduke did manage to download and play an episode of Car Talk using iTunes with wine, but it was all a bit touch and go, and not something I would recommend in general. When wine/iTunes were running, the display went a bit weird and one got the feeling that Bad Things Might Happen At Any Moment. So…I don’t think that’s a good long-term solution for people who aren’t looking for trouble. It’s very possible that with some tweaking, iTunes works perfectly under wine but life is short and I like gPodder’s simple, straight-forward design.


Filed under: gPodder,linux,Ubuntu 10.04
March 30th, 2011 10:55:11

(Ubuntu) linux: how to find out what processor/CPU

June 06th, 2010

Open a terminal (Applications -> Accessories -> Terminal in Ubuntu 10.04) and type:

less /proc/cpuinfo

This gives a lot of information. Look for the ‘model name’ entry the top of the list.

For example, here are the first several lines of my /proc/cpuinfo:

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N270 @ 1.60GHz
stepping : 2
cpu MHz : 800.000
cache size : 512 KB

Press the spacebar to go down a ‘page’ and ‘q’ to quit.


Filed under: Command line,linux
June 06th, 2010 10:47:39

How to find recently modified files (linux)

June 06th, 2010

Open a terminal (Applications -> Accessories -> Terminal in Ubuntu 10.04, for example). Typing:

find . -mtime -1 -print

will find files in the current directory that have been modified in the past 24 hours. The ‘.’ can be replaced with another directory.

Thanks to My Digital Life for the information – this site gives more information and other options.


Filed under: Command line,linux
June 06th, 2010 10:40:57

grep: how to use grep to search history (linux)

May 31st, 2010

I often remember only part of something I did before and want to remember how I’ve done something. To easily search through the history, the glorious grep can be invoked like this:

history | grep phrase_to_search_for

If the phrase to search for involves spaces or special characters, then quotes can be used around the phrase:

history | grep ‘phrase to search for’

To search for something with quotes, you can surround your phrase-to-search-for with the ‘other’ kind of quote.

For example,

history | grep ‘phrase to “search” for’

will match

phrase to “search” for

and

history | grep “phrase to ‘search’ for”

will match

phrase to ‘search’ for


Filed under: Command line,linux
May 31st, 2010 11:43:58

linux: find out what you’ve recently typed at the command line

May 31st, 2010

If you open a terminal window (in Ubuntu 10.04, go to Applications->Accessories->Terminal) and type

history

this will print out a list of things that have been recently typed at the command line.

If you’re curious, the history is stored in a file called .bash_history which you can view as a file. In Ubuntu, for example, you can open it with gedit by opening a terminal window and typing

gedit .bash_history

at the command line.

Note: if you have two (or more) terminal windows open and are typing commands in all of them, the history of one terminal window won’t know about what you’ve typed in the other window. If you close, say terminal window A, leave terminal window B open. and then open terminal window C, typing history in terminal window C will display what you’ve typed in A but not in B.

Examples of using grep to search through the history are here.


Filed under: Command line,linux
May 31st, 2010 11:43:53

How to list partitions and basic partition information: linux

May 31st, 2010

To find out basic information about partitions, open a terminal window (Applications -> Accessories -> Terminal in Ubuntu 10.04 and others) and type

fdisk -l

at the command line.

(If nothing happens, try typing

sudo fdisk -l

at the command line and entering your password when prompted.)

Something like this should be displayed:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x66666666

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2613 20988891 c W95 FAT32 (LBA)
/dev/sda2 2614 17532 119830471+ f W95 Ext’d (LBA)
/dev/sda3 17532 19458 15471448 12 Compaq diagnostics
/dev/sda5 13566 17532 31856640 7 HPFS/NTFS
/dev/sda6 2614 13194 84991819+ 83 Linux
/dev/sda7 13195 13565 2980026 82 Linux swap / Solaris

Here, /dev/sda6 is my linux partition.

In Ubuntu 10.04, you can navigate to System -> Administration -> Disk Utility to get a big graphical display of this information (and more).


Filed under: Command line,linux
May 31st, 2010 11:09:40

How to tell how much disk space is left: linux

May 31st, 2010

Open a terminal (Applications -> Accessories -> Terminal in Ubuntu 10.04 and others) and type

df

at the command line.

Something like this will be displayed:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda6 83657080 25098664 54308828 32% /
none 504088 296 503792 1% /dev
none 508500 372 508128 1% /dev/shm
none 508500 96 508404 1% /var/run
none 508500 0 508500 0% /var/lock
none 508500 0 508500 0% /lib/init/rw

The number listed on the top line (/dev/sda6) under ‘Available’ is the amount of space left on my linux partition.

For more human-readable numbers, try:

df -h

which will display something like this:

Filesystem Size Used Avail Use% Mounted on
/dev/sda6 80G 24G 52G 32% /
none 493M 296K 492M 1% /dev
none 497M 372K 497M 1% /dev/shm
none 497M 96K 497M 1% /var/run
none 497M 0 497M 0% /var/lock
none 497M 0 497M 0% /lib/init/rw

The df command won’t show space available on unmounted drives.

If you want to see basic information about the partitions on a machine, see this post.


Filed under: Command line,linux
May 31st, 2010 10:58:03