May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  
91

Refs

Categories

Archives

[one-liner]: Setting up the Subversion Client RabbitVCS 0.15.0.5 on Fedora 14

Background

If you do any software development work that requires the use of subversion then you may have heard of rabbitvcs. It’s one of the best subversion clients that integrates well with nautilus, under GNOME. I’d been running into an issue however where it wouldn’t allow me to perform a comparison of my checked out working directory and the subversion repository. I was running into this with version 0.14.2.1-3 on my Fedora 14 laptop.

1
2
3
4
5
6
7
% rabbitvcs diff WebDataInterface.java@105 WebDataInterface.java@112
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/rabbitvcs/ui/diff.py", line 322, in <module>
    diff_factory(options.vcs, pathrev1[0], pathrev1[1], pathrev2[0], pathrev2[1], sidebyside=options.sidebyside)
  File "/usr/lib/python2.7/site-packages/rabbitvcs/ui/diff.py", line 304, in diff_factory
    return classes_map[vcs](path1, revision_obj1, path2, revision_obj2, sidebyside)
KeyError: 'unknown'

So I thought I’d try out version 0.15.0.5, which appears to be the latest. However I couldn’t find an up to date RPM for Fedora 14, I only found this one for Fedora 16.

Solution

I downloaded the Fedora 16 SRPM and rebuilt it for Fedora 14. I’m providing the RPMs on my yum repository for others that may need them.

The SRPM is available here.

References

NOTE: For further details regarding my one-liner blog posts, check out my one-liner style guide primer.

[one-liner]: GNOME & Nautilus Keyboard Shortcuts

Background

I’m always forgetting GNOME & Nautilus keyboard shortcuts so this is a list of some of the more common ones that I’ve used in the past.

Solution

Here’s the lists. I’ve tried to organize the shortcuts first by whether they’re GNOME related or Nautilus. I’ve also tried to break them down into a sub groups based on similar functions, such as, file management, selecting, etc.

GNOME

Desktop Keyboard Shortcuts:

Alt + F1→ Open Applications Menu (Pulldown)
Alt + F2→ Run Application Dialog
Alt + F9→ Minimize Active Window
Alt + Tab→ Rotate Current Window Focus
Ctrl+Alt + D→ minimize all windows

Virtual Desktop Shortcuts:

Ctrl+Alt + L Arrow→ Move Virtual Desktop Left
Ctrl+Alt + R Arrow→ Move Virtual Desktop Right
Ctrl+Alt+Shift + L Arrow→ Move Current Application Left
Ctrl+Alt+Shift + R Arrow→ Move Current Application Right

Logging Out and Restarting:

Ctrl+Alt + L→ Lock Screen
Ctrl+Alt + Del→ Log Out/Reboot System
Ctrl+Alt + Backspace→ Restart Gnome/XWindows (careful)
Nautilus

File Management:

Alt + ENTER→ File/Folder Properties
Ctrl + H→ Show Hidden Files
Shift+Ctrl + N→ Create New Folder
F2→ Rename File
Ctrl + 1→ Toggle View As Icons
Ctrl + 2→ Toggle View As List
Shift + Right Arrow→ Open Directory (List View)
Shift + Left Arrow→ Close Directory (List View)
Shift + Del→ Delete without moving to Trash

Selecting:


…. Continue reading → [one-liner]: GNOME & Nautilus Keyboard Shortcuts »»

Humorous and Enlightening Copyright Talks from TED and OReilly's TOC Conference

Background

Here’s a couple of interesting talks that I recently came across. The 1st is a TED Talk, and the 2nd is from the OReilly’s TOC - Tools of Change for Publishing Conference. They both provide some interesting commentary on digital media as a whole and on copyright. They’re both pretty funny and insightful, so have a listen if you’re interested.

Videos

The 1st video is the TED Talk, titled: The $8 billion iPod, by Rob Reid. Rob Reid is a humor author and the founder of the company that created the music subscription service Rhapsody. The video is described as follows:

“Rob Reid unveils Copyright Math™, a remarkable new field of study based on actual numbers from entertainment industry lawyers and lobbyists.”









The 2nd video is a Ignite talk from the TOC Conference from (Feb. 13-15 2012), titled: No I’m Good, by Peter Rojas.

[one-liner]: List of Linux Audio Tools

Background

Here’s a list of some linux audio tools that I’ve been compiling for a while. It isn’t meant to be complete, it’s just a list of audio tools that caught my eye and may be useful down the road.

Tools
  • qsynth
- http://qsynth.sourceforge.net/qsynth-index.html
  • songbird
- http://getsongbird.com/
  • banshee
- http://banshee.fm/
  • rythmbox
- http://projects.gnome.org/rhythmbox/
  • exaile
- http://www.exaile.org/
  • mixxx
- http://mixxx.sourceforge.net/
  • amsynth
- http://amsynthe.sourceforge.net/amSynth/
  • rosegarden
- http://www.rosegardenmusic.com/
  • ardour
- http://ardour.org/
  • hydrogen
- http://www.hydrogen-music.org/
  • bristol
- http://bristol.klik.atekon.de/
  • smurf
- http://smurf.sourceforge.net/
  • audacity
- http://audacity.sourceforge.net/
  • qarecord
- http://alsamodular.sourceforge.net/
  • Jokosher
- http://www.jokosher.org/
  • jack
- http://jackaudio.org/
Fonts

References

links
local copies

NOTE: For further details regarding my one-liner blog posts, check out my one-liner style guide primer.

[one-liner]: Download an RTMP Stream & Convert it to an MP3 File via the Fedora/CentOS Command Line

Background

I recently wanted to download a podcast that was being served via a RTMP stream. RTMP (Real Time Messaging Protocol) was initially a proprietary protocol developed by Macromedia for streaming audio, video and data over the Internet, between a Flash player and a server. Macromedia is now owned by Adobe, which has released the specification of the protocol for public use.

Here’s how I was able to download the RTMP stream to a .flv file and convert it to a .mp3 file. Read on for the details.

Solution

step #1 – download the stream

I used the tool rtmpdump to accomplish this. Like so:

NOTE: the tool rtmpdump was available in my Distro’s repository

1
2
3
4
5
6
7
8
9
10
# I was able to get the rtmp url from looking at the page's source!
 
% rtmpdump -r rtmp://url/to/some/file.mp3 -o /path/to/file.flv
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
28358.553 kB / 3561.61 sec
Download complete

step #2 – convert the flv file to mp3

OK, so now you’ve got a local copy of the stream, file.flv. You can use ffmpeg to interrogate the file further and also to extract just the audio portion.

1
2
3
4
5
6
7
% ffmpeg -i file.flv
....
[flv @ 0x25f6670]max_analyze_duration reached
[flv @ 0x25f6670]Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'file.flv':
  Duration: 00:59:21.61, start: 0.000000, bitrate: 64 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, 1 channels, s16, 64 kb/s

From the above output we can see that the file.flv contains a single stream, just audio, and it’s in mp3 format, and it’s a single channel. To extract it to a proper mp3 file you can use ffmpeg again:


…. Continue reading → [one-liner]: Download an RTMP Stream & Convert it to an MP3 File via the Fedora/CentOS Command Line »»

[one-liner]: Using yum-builddep to Speed Up the Building of SRPMs on Fedora & CentOS

Background

I just came across this nifty little tool called yum-builddep, which is part of the yum-utils package. It can be a really big time saver if you need to build source RPMS (SRPMs). What does it do? yum-builddep, installs all the RPM dependencies required to build a given SRPM.

Solution

Installation is a snap, it’s just part of the yum-utils package on Fedora & CentOS.

1
yum install yum-utils

Once installed you can use it like so:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# on my Fedora 14 system
 
% yum-builddep sox
...
 
Dependencies Resolved
 
===========================================================================================
Package                     Arch          Version                    Repository        Size
===========================================================================================
Installing:
 flac-devel                 x86_64        1.2.1-6.fc12               fedora           605 k
 gsm-devel                  x86_64        1.0.13-2.fc12              fedora            13 k
 ladspa-devel               x86_64        1.13-6.fc12                fedora            18 k
 libao-devel                x86_64        1.0.0-2.fc14               updates           33 k
 libid3tag-devel            x86_64        0.15.1b-10.fc13            fedora           9.3 k
 libsamplerate-devel        x86_64        0.1.7-2.fc12               fedora           8.3 k
 libsndfile-devel           x86_64        1.0.25-1.fc14              updates          140 k
 libtool-ltdl-devel         x86_64        2.2.10-3.fc14              fedora           166 k
 pulseaudio-libs-devel      x86_64        0.9.21-7.fc14              updates          302 k
 wavpack-devel              x86_64        4.60.1-1.fc14              updates           50 k
Installing for dependencies:
 ladspa                     x86_64        1.13-6.fc12                fedora            34 k
 pulseaudio-libs-zeroconf   x86_64        0.9.21-7.fc14              updates           26 k
 
Transaction Summary
===========================================================================================
Install      12 Package(s)
 
Total download size: 1.4 M
Installed size: 8.6 M
Is this ok [y/N]:

Notice it’s determining what libraries and other RPMs are required to BUILD sox from source, not just what is needed to install sox. Here’s another example, probably more consistent with how most people will end up using yum-builddep, where you’ll use it as an aid in rebuilding a SRPM package.


…. Continue reading → [one-liner]: Using yum-builddep to Speed Up the Building of SRPMs on Fedora & CentOS »»

Page 1 of 3012345...102030...Last »