Archive for the ‘unix/windows’ Category

TVbuntu working

Sunday, September 25th, 2011

Ubuntu logoI am the new and proud owner of a desktop machine (the cheapest PC I’ve ever bought — and the other two were cheap netbooks(!)). Last time I was in Eindhoven, I bought some lengthy VGA cable. See, the desktop isn’t as mobile as a netbook, and I like to connect it to my TV. Especially after the movies Agnieszka made of my performance in the show turned out to be too much for the processors in my little netbook… I hope this desktop does have the juice to handle them.

Anyway, I hooked up the telly to the TV last night. Major bummer: resolution sucked.
Reboot, using the monitor, and then swap. Guess what happened: resolution was ok for a split second, and then it crashed down to the 1024×768 world of inferiority here (and yes, I’ve been a geek/nerd long enough to remember days when I didn’t even dream of such resolutions). The TV didn’t get recognised by my Ubuntu install (although it did previously on the netbook, weird).

Solution for Ubuntu:

  1. Compute a new modeline for the desired resolution with cvt
    cvt 1920 1080
  2. Enter this new mode using xrandr –newmode
    xrandr --newmode "1920x1080_60" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
  3. Add this new mode to your current output connection
    xrandr --addmode VGA1 1920x1080_60

The values listed are for my case, YMMV.

Edit: not related, but still: seems I need to set the audio delay in VLC-player to -300ms. I figured it’d vary depending on .. well, whatever, but it seems to be rather constantly lagging just a tad behind the video. Not a problem, but weird anyway. Solutions welcome!

Annoying Ubuntu focus bug

Wednesday, September 7th, 2011

Ubuntu logoFocus follows mouse, but too closely. Basically, if you have focus follows mouse, your alt+tab behaviour is getting screwy. Alt+tab works if the mouse is not over a window, but otherwise, it almost always doesn’t work. Which sucks. To the point where I’m considering going back to click-to-focus as opposed to point-to-focus (recall that I fixed windows to do point-to-focus… windows can be hacked to do this, Unix was doing this, but Ubuntu is now broken. Boo le hoo!).

edit: more relevant bug(?).
edit: I complained about this before :).

New PC: svn password tweak, GUI corner tweak

Tuesday, August 16th, 2011

So, I’ve just returned from a brief visit to NL, and come back to find my new work-pc humming along nicely. All new. Brand new. Brand new… and completely untweaked! AAAAARGH!

Thankfully, I’ve documented most of the tweaks in this blog (so even if no one reads this, it helps me :). The most annoying remaining part is missing software — easily installed, but still:

  • Thunderbird
  • SVN
  • LaTeX
  • Some firefox plugins (youtube worked, but flash wasn’t happy or something)
  • possibly: ghostview (though perhaps i’ll go evince), others (to be found)

Speaking of SVN: there was a problem (hooray! a new tweak to document here!). SVN apparently is integrated with the GNOME Keyring daemon. Possibly convenient, except that GNOME doesn’t know my passwords. So I got a “password for ‘null’ (Gnome keyring):” prompt… and a refusal to work.
Crap.

Found the solution here. Basically: edit your Subversion config file ($HOME/.subversion/config) and set password-store to empty (“password-store =“).
Now to refind the tweak for getting rid of the bottom dragging corner — yuk!

editFound my old post, which only contained a link. To preserve this info more safely:

  1. create or edit $HOME/.gtkrc-2.0
  2. add the following:
    style "default-style"
    {
    GtkWindow::resize-grip-height = 0
    GtkWindow::resize-grip-width = 0
    }

    class "GtkWidget" style "default-style"

  3. restart Gnome

[ubuntu] where’s my lower right-hand corner?

Friday, June 17th, 2011

Ubuntu logoIt’s gone in the new Ubuntu (blame Gnome). Used up by a resize handle. Which I don’t want. Apparently, there’s a way to get rid of this, see here. Untested for now!
Edit: tested, it works. To recap: make sure the following is in your $HOME/.gtkrc-2.0:

style "default-style"
{
  GtkWindow::resize-grip-height = 0
  GtkWindow::resize-grip-width = 0
}

class "GtkWidget" style "default-style"

Skype issues

Thursday, June 9th, 2011

Skype has two issues with the current Ubuntu:

Focus bug in Ubuntu

Thursday, June 9th, 2011

Ubuntu logoThere’s a focus bug in the latest Ubuntu (basically, in the Compiz package, but who cares about specifics ;-). Basically, if you select “focus follows mouse”, your mouse will uniquely determine the focus. Always. Previously, the mouse would only change focus on window entry.

In other words: Alt+Tab only works in the new Ubuntu if the mouse isn’t over any window. Which is usually not the case.
Bug report here. I hope it gets fixed soon, it annoys me daily – I use Alt+Tab. Often. :s

FireFox 4.0 RC 1

Thursday, March 10th, 2011

Firefox 4Firefox is almost up to version 4. Today, I had occasion to boot into Windows (in short, I was forced). My Firefox needed updating after a long period of neglect. So I updated it, and noticed that there was a Release Candidate for the newest version. Now a release candidate isn’t the finished product. You might run into bugs. Then again, I almost never use Windows, so why not give it a try? Next boot, there will probably be Firefox 4.5 or so to install anyway :)

I did. While it was downloading, I wasted some time browsing slashdot (a site which I should stop browsing since it no longer is as good as it was, but okay). Slashdot uses quite some javascript. So after finishing the install, I figured to test the speed claims on Slashdot, check if there was an improvement.

BY GOLLY THERE WAS!! The flames left by the racing speedmonster Firefox had become threatened to engulf my desktop (metaphorically speaking, of course). I’m now actually tempted to install RC1 in Ubuntu as well. If I do, I will let you trusty reader(s?) know all about it :)

Ubuntu update –> slow internet?

Monday, January 31st, 2011

Ubuntu logoI finally decided to update my ageing Ubuntu install (the one on the home computer) to 10.04(.1), Ubuntu’s latest-but-one release. So why not update to the latest and greatest in one go? Well, first things first: let’s see how this works out before taking the plunge further. On top of that, 10.04 is a Long Term Support release. Most of them aren’t but the long-term support releases are supported for 3 years instead of one year. Meaning you get all the security updates until you deserve a new computer :)

So, the update. I was somewhat worried, as my internet-via-usb-modem was hard to get working. In fact, it originally required a connection to internet to get it working… :s. In the midst of the update (which took several hours — Ubuntu: what gives?? I can understand it’s more than a 10 minute process, but hours?? where previously, there would be some poignant questions on keeping data at more or less random times during upgrade?!? but I digress…) the internet connection suddenly gave out. Note, I write “midst of the update”. That is actually a bare-faced lie — though I thought it was close to true at the time. I fiddled around, internet did not come back. Luckily, the upgrade process marched onwards without a connection (this happened after all packaged had been downloaded, but it still made me quite nervous). After the reboot, I kept my fingers crossed. Hoorah! Internet worked!

… or did it? Youtube broke, but that was easily fixed by removing and installing flash. Weird that that was necessary, it worked before. On top of that, Internet had lost its speed. It was as slow as a penguin in the desert. A quick google hinted that the problem might be related to IPv6. The easiest potential fix was apparently to tell the browser to not use that. I did (muck around in about:config, find the IPv6 setting and tell it to drop IPv6), and my internet got back into racing gear :)

So: updated, running a long term support release, and some of the important chinks have been checked and addressed. Still need to complete checking though… If I find more, I’ll let you know!

OpenOffice 3.2 in Ubuntu

Tuesday, September 21st, 2010

OpenOffice is a nice product. It provides a working alternative to MS Office, is for free, and is constantly improving (unfortunately, it needed lots of improving and it still needs some improving). Best of all, it can read those nasty MS Office files… until Microsoft changed the format again.

Yes, my current ubuntu installs are a bit behind the times. No biggie, but when someone sends you an XLSX file (Excel 2007) and your OpenOffice 3.1 chokes on it… meuh. I googled and googled… OpenOffice v3.0 and above should be able to open XLSX files. Well guess what Sherlock, it no worky work.

So after a short while of fruitless googling for solutions to my problem, I decided to google instead for how to update your OpenOffice to the latest greatest. See here. Caveat: it uninstalls some packages, including ASpell — you’ll probably want that back.

And that fixed the issue. Hoorah for OpenOffice, the latest version does what was promised a few versions ago ;-)

FireFox tips

Tuesday, August 17th, 2010

Nice, I just spotted 2 firefox tips. One: http://www.mozilla.com/en-US/plugincheck/ — check if your plugins are up to date. Nice!
Two: you can disallow JavaScript to move / resize your windows. I knew there was a option (Edit > Preferences > Content) to enable/disable JavaScript, but if you click the “advanced” button there, you can have JS while disallowing all sorts of nasty behaviour. Makes for a more happy me :)
(Forgot where I got this from btw, let me check… here)