sudo do-release-upgradedoesn’t crash like the GUI and properly shows you errors. There’s probably a log you could hunt down somewhere, but why make life harder on yourself?
- Removing a bunch of old linux-image-* and linux-headers-* files can literally free up gigabytes, in case you were wondering what happened to all your space.
Archive for Ubuntu
A quick tip for Ubuntu users: install Remmina instead of (or alongside) the default Vinagre with
sudo apt-get install remmina. It’s much better. Not only does it perform better (that is, it doesn’t hog CPU), but it has all the options Vinagre lacks.
There’s a proposed workaround on the linked bug report, namely to add a timeout to the beginning of the Glipper code. It seems to work alright for the most part, but Parcellite offers the same functionality without any of the downsides: it doesn’t depend on Gnome Panel and, of course, it doesn’t crash.
The easiest way to get it is, as always,
sudo apt-get install parcellite. A more recent version can be obtained using the Web Upd8 PPA.
ssh -L [local port]:localhost:[remote port] [user name]@[domain]
You can then run the VNC viewer like this:
vncviewer -LowColourLevel 1 localhost:[local port]
The color level setting here is what results in the best mix between speed and prettiness for me.
Selects the reduced colour level to use on slow links. level can range from 0 to 2, 0 meaning 8 colours, 1 meaning 64 colours (the default), 2 meaning 256 colours.
If you are connecting from Linux to Linux (as opposed to from Linux to XP), more efficient means may be available.
Short answer: you can’t. Slightly longer answer: there are only four applications (of the ginormous number I tried) capable of playing music well: Aqualung, Deadbeef, GogglesMM, and mpd. Anything else simply doesn’t do it for me. In this post I’ll explain my requirements for an audio player.
My most basic requirement for an audio player is, logically, playing audio well. While that sounds too obvious to mention, the primary reason I only came up with four audio players is because none of the other players I tried met what I mean by this, which is the following:
- Good audio quality. It would seem that all players on Windows as well as Linux have reasonable output quality these days, and I remember that 10 years ago that wasn’t necessarily the case. What player you chose could significantly affect the output. Either way, I still list it because it’s probably the most important requirement.
- Gapless playback. No fading in and out and no pauses. Fading might be alright between songs from different albums, though I feel that true gapless playback removes any need for silly fading practices. At any rate, even though this applies most strongly to only a minority of albums it’s a prerequisite.
- ReplayGain. I don’t like to be surprised by overly loud music or some such. But perhaps most important, this means album gain, not just track gain. Many players that support some form of RG fail here because they only do it on a per-track basis.
Then there are some peripheral things I like that aren’t directly related to audio quality:
- Must not freeze when adding a few files. Preferably it’ll be able to do it completely out of your sight, but I’ll take some kind of “busy” notice as long as it doesn’t interfere with the application’s ability to play music, be paused, go to the next track, and the like. It seems that any Python-based application utterly fails here, including Quod Libet, which says “Do other media libraries choke and die after a mere 10,000 songs?” Perhaps it doesn’t die, but it certainly chokes for enough time for me to stop caring if it will so I’ll kill it manually.
- Shouldn’t lock out the interface or keyboard bindings while adding music. If the GUI doesn’t freeze, but does lock me out with a “nice” adding files dialog it isn’t really that much better than freezing, is it? Still, at least you’ve got a rough idea regarding what’s going on and whether it’ll take seconds, minutes, or hours before you regain control. Plus there’s usually a cancel button for instant control, whereas a frozen GUI requires killing and restarting for that.
- Last.FM scrobbling. I just like it. All in all I suppose this is the least important feature.
- Media library. foobar2000’s library contains a bunch of track metadata and it automatically monitors folders for updates. It’s quite neat.
Neither Aqualung, Deadbeef, GogglesMM, nor mpd quite succeeds at all of these requirements, while they are all part of foobar2000’s base package or easily added with plugins. I haven’t even touched on the wonderful things I can do in foobar2000 with the command line, keyboard bindings, and columns_ui, but I suppose can’t expect that.
Aqualung generally seems to succeed best at the requirements I listed, save for Last.FM submission. However, because I don’t use Ubuntu/Linux as my primary media playing OS (that’s still XP) I generally tend to vary a bit between Aqualung and Deadbeef as my music player of choice. Nevertheless I’m quite confident that Aqualung would be my primary choice if I played more than the occasional few tracks or podcasts.
Rather than explaining what Aqualung does right, which I think I already did while listing my requirements, I’ll explain what’s less optimal about the alternatives from the perspective of my second-favorite player, Deadbeef.
- it does ReplayGain well, including on MP3 with ID3v2 tags — Aqualung: equivalent; Goggles: worse
- it doesn’t choke when adding lots of files, but does lock out access to the interface while it’s adding files — Aqualung: superior; Goggles: equivalent to worse (since Goggles requires files to be added to the music library, which isn’t something I necessarily want just to play some random file or song)
- it only does gapless playback on some filetypes — Aqualung: superior; Goggles: equivalent
- it supports Last.FM scrobbling — Aqualung: worse; Goggles: equivalent
Aqualung is clearly superior on all accounts save Last.FM support, but I’m glad that Deadbeef, Goggles, and mpd are around to show other players how not to suck. I have to say that if mpd could play random files easily I’d probably be using that instead of anything else. Plus I don’t really want everything to be in a library before I can play it. Since I don’t typically use Linux for “real” music listening I sometimes pick Deadbeef’s or Goggles’ Last.FM submission over Aqualung’s technical superiority.
Basically, Deadbeef and Aqualung deliver what Quod Libet promises: “Are you sick of audio players that think they know how to organize your music for you? Do other media libraries choke and die after a mere 10,000 songs?” Goggles is a little too focused on its library for my taste, but it’s certainly not horrible. Still, the point is that I like Quod Libet’s philosophy better than Goggles’ philosophy. Quod Libet, meanwhile, does not deliver on its promise at all and it chokes horribly. I suspect it’s due to Python, because all Python-based players seem to suffer from the same defect.
Finally, I must admit that I haven’t properly investigated terminal-based players such as cmus and MOC because I only found out about them recently, after I tried tons and tons of music players in order to end up with the list at the top of this post.
If you know any other players that more or less meet these requirements, particularly the playing back music well part, I’d love to hear them.
If you’ve ever used SSH, you probably came across a situation where your connection got interrupted and you lost what you were doing, or maybe you simply wanted to carry over what you were doing remotely to your main computer. That’s what Screen is for, but it’s also useful on just one computer.
There are an awful lot of possibilities listed in
man screen, but I only need a few.
screenstarts screen, obviously
- Ctrl + a, d to detach from a screen session
screen -rto reattach
- Ctrl + a, c to create a new console (or type
screen commandto forgo on an essentially useless Bash session)
- Ctrl + a, Ctrl + a switches to the last active window
- Ctrl + a, n and Ctrl + a, p switches back and forth through windows
- Ctrl + a, X, where X is a number
- Ctrl + a, " gives you a list of windows to choose from; this isn’t very useful without naming the windows with Ctrl + a, A
I mostly learned this through a slightly more detailed guide, for the screen man page was a little too overwhelming to figure out what was useful and what wasn’t.
To utilize the mouse in your tty, install gpm:
sudo apt-get install gpm.
Weather in fall always comes paired with temperature drops, fall storms, and lots of rain. But seldom did the temperature drop from 20°C to a mere 7°C from one day to the next.
The release of Ubuntu 10.10 coincided with this change for wintry weather; however, while I’m sure it’s swell, you won’t see me upgrading just yet. Perhaps I’ll have to look a little harder into acquiring a netbook so I can use it with the Ubuntu Netbook Edition.
Of more interest is the announcement that Opera 11 will have extensions. Or, more particularly, that I was the first to guess this in a contest.
KDE ships with Klipper by default, while Gnome has no built-in alternative. Though I prefer a little history, the absence of a clipboard manager isn’t the worst thing in the world. However, xclipboard forgets what you copied if you close the application from which you were copying, which is a serious annoyance and a usability issue for new as well as seasoned Ubuntu users.
Luckily the situation is easy to rectify.
sudo apt-get install glipper, right-click on a panel, click “Add to Panel,” select the entry named “Clipboard manager” and click “Add.”
If you want to paste something other than the currently active copied text you can either select it from the Glipper icon or, if you prefer a more keyboard-based approach (like me), you can press Ctrl + Alt + C to pop-up a list of available items. Of course you could change that keyboard binding to anything you like.
The default settings are fairly sane, so unless you want to keep more than the last 20 copied items in memory you can leave it be.
I prefer Lighttpd over Apache on my personal computers because of its phenomenal speed and reduced memory usage. It’s surprisingly easy to get Lighttpd and PHP running on Ubuntu. For an extensive guide, including how to enable MySQL, Ubuntu Geek is the place to be.
This entry only deals with the basics of getting Lighttpd up and running with PHP. To get started, use:
sudo apt-get install lighttpd php5-cgi
lighty-enable-mod and enter
Then you can edit /etc/lighttpd/lighttpd.conf. Stick the following at the end:
fastcgi.server = ( “.php” => (( “bin-path” => “/usr/bin/php5-cgi”, “socket” => “/tmp/php.socket” )))
sudo apt-get install php5-curl php5-tidy to be able to run Tubes with all functionality, and of course any other modules you might like. There’s nothing to it; you don’t even have to edit php.ini.
When you’re done customizing things to your liking, use
sudo /etc/init.d/lighttpd restart to see the changes.