Categories
Programming

How I like to build for Windows

I’ve seen a growing number of free software Windows programs where the recommended (or only) build procedure is to cross-build from Linux. I really like this idea.

The latest I noticed that did this is the Clementine music player (which I’m rather excited about). This is a fork of amaroK, with the KDE parts stripped to make in plain Qt, and thus portable. Their web site is http://www.clementine-player.org/. Their Windows build directions are here, and involves a chroot on a Debian system. This, of course, lends itself to the idea of projects eventually distributing build VM appliances, or if LXC takes off, premade build containers.

Categories
System Administration

Upgrading to Ubuntu 11.10

When I upgraded to 11.04, I stuck with the Ubuntu Classic desktop. With 11.10, that didn’t look feasible anymore, so I bit the bullet to try and learn to cope with Unity.

After the install, my first issues were:

  1. How to add a program to the Dash, specifically rxvt
  2. I use the terminal a lot, and I want something light, fast, and that doesn’t mess with my hotkeys (GNOME Terminal uses the Alt key for itself).

  3. How to launch more than one rxvt with the Dash.
  4. Many programs have a way to launch new windows or documents, but rxvt doesn’t and I’m sure I’ll come across others as well.

  5. How to switch between multiple windows open in Chrome or other software.
  6. Without the mouse that is.

  7. How to make it faster.
  8. I’m using a 2.6ghz quad core system (Opteron 2218s) with 4 gigs of ram and a NVidia 9400GT and while this isn’t the latest and greatest it should not crawl without a darn good reason.

And the answers turned out to be:

  1. Make a .desktop file
  2. In /usr/share/applications, create rxvt.desktop with these contents:

    [Desktop Entry]
    Name=RXVT
    Comment=terminal emulator for the X window system
    Exec=rxvt -rv -sl 2000
    Terminal=false
    Type=Application
    Encoding=UTF-8
    Icon=utilities-terminal
    Categories=System;TerminalEmulator;
    X-Desktop-File-Install-Version=0.18

    Then chown the file to root:root with permissions -rw-r–r–.

  3. Middle click on the icon in the Dash
  4. Alt + ` (backtick)
  5. Just like a Mac. Obviously, I didn’t try to guess hard enough before resorting to Google.

  6. Switch to Unity 2D
  7. Unity 2D is based on Qt and is meant for older machines with inadequate video cards. It is shocking to think that I have either, but it made a large difference. Besides, every time I’ve tried a compositing desktop before, I’ve had problems with other OpenGL programs, so I probably would have made the switch anyway.

Categories
Other

Stupid Cloud

It seems that some companies are using cloud services to offer features I’ve wanted for a long time, but only tied to a cloud with a monthly or yearly fee.

The latest and most irritating is iCloud. I see no reason that an iDevice shouldn’t be able to sync with a Mac by WiFi. Finally, Apple introduces this feature, except it works by going through the iCloud instead of directly between an iPhone and MacBook.

Categories
System Administration

NFSv4

At some point, my Ubuntu desktop started using NFSv4 to connect to my Solaris file server.
The visible symptom caused by this switch was all files showing up as owned by 4294967294:4294967294.

The fix turned out to be to edit the file /etc/default/nfs-common to change:
NEED_STATD=
to:
NEED_STATD=”no”
and:
NEED_IDMAPD=
to:
NEED_IDMAPD=”yes”

Also, change the Domain= line in /etc/idmapd.conf to match your networks domain line.

Then reset idmapd
sudo restart idmapd

Categories
Other

Ubuntu Unity tricks learned today:

a) make a .desktop file in ~/.local/share/applications for old school programs to show up.
b) Middle click on the dock to launch a second copy of an application.
c) Alt+` to switch between windows of the same application like on OSX.

Now, I still would like to know why everything is so slow. Maybe I should try switching back to Unity 2D, despite having nvidia graphics.

Also, why does my username on the top bar say [Invalid UTF-8]?

Categories
Other

David eating a celebratory donut at home.

David eating a celebratory donut at home.
Categories
Family

When David falls down, Deb says Whoopsie-Daisy. I, however, say Whoopsie-David.

Categories
System Administration

After upgrading to Ubuntu 11.04, rxvt-unicode no longer worked with screen, dselect, aptitude, etc. Solution: install ncurses-term.

Categories
Other

Supper from 40 minutes before I ate it.

Categories
Programming

I am now on Google+ http://gplus.to/jdboyd