I made a wallpaper for my Ubuntu 12.04 installation today.
Posts in category Linux
I use Geany for my IDE. It’s pretty good for what I do. I’m no hardcore coder. I just use Python for experimenting and learning.
It had been a little while since I did anything with Python. In fact, the last time I used it was before I installed Arch. I got a little bit of coding fever and wanted to refresh my memory. I was thinking about rewriting my Sudoku solver program, using functions instead of the hot mess that I left it in a few months ago.
But I was running into a little problem. When I would press F5 to run my program, the terminal that popped up gave me this error message:
./geany_run_script.sh: line 5: python: command not found ------------------ (program exited with code: 127) Press return to continue
“Well that’s no good,” I thought. It turns out that Geany was trying to run Python with the command “python,” which would be fine if “python” were the command it needed to run. But since I am using Arch, “python” is for the bleeding edge Python 3, whereas the more commonly used Python 2.7 is called with “python2.” Since I didn’t want to use Python 3 and didn’t have it installed, I needed to change the command to “python2″ so Geany wouldn’t give me these error messages anymore. Sure, I could just save the program and then open a terminal and type “python2 filename.py,” but that wouldn’t be a good solution because it would be a hassle.
I checked every preference menu I could find in Geany, but I couldn’t find a setting to change what it pointed to for running Python (or any other) programs. Then I looked all over the place for geany_run_script.sh, but I couldn’t find it anywhere, either. I did, however find some configuration files in /usr/share/geany. Particularly, I found /usr/share/geany/filetypes.python. That directory also had filetypes for all the languages that Geany supports. At the very end of filetypes.python were these lines:
[build_settings] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension # (use only one of it at one time) compiler=python -m py_compile "%f" run_cmd=python "%f"
Changing that last line took care of the problem:
So Geany stopped giving me error messages when I tried to run my Python programs and I was happy.
I still have a long way to go on rewriting my Sudoku solver, but I will post it here when it is updated. Keep an eye out.
Today I was going through my feed reader and I saw a request for help from the Freedom Feens Podcast. They are asking people to upload episodes of the podcast to their YouTube channels. I don’t have to work until this afternoon, so I figured I’d upload a few episodes for them. Thing is, YouTube only accepts video uploads, not MP3s. So I have to render a video from the MP3 and a photo from Freedom Feens, which you can see here. The Freedom Feens are also the guys who put out the documentary Guns and Weed: The Road to Freedom, which I review here.
I installed kdenlive on my desktop computer (I had not installed it since I switched to Arch a few weeks ago), and it’s rendering the first video as I write this on my laptop. It is going kind of slow, though, and I’m not sure why. Usually a video with just a single image renders very quickly, but last I checked, kdenlive said it would take an hour and 15 minutes. No big deal, I guess.
It rained overnight. It’s supposed to be warmer today, with a continued chance of rain. I did some kettlebell exercises yesterday, and my back is a little bit tender today. If I get out and walk, I think it will loosen up.
I’ve been using Arch Linux for the past week or so. It’s pretty interesting, having to do everything for myself. Anyway, here is the basic way to install packages from the Arch User Repository. First, download the package from aur.archlinux.org. I downloaded Wolfenstein: Enemy Territory. Then you do this:
[daniel@TimeMachine ~]$ cd builds [daniel@TimeMachine builds]$ ls enemy-territory.tar.gz ld-lsb ttf-ms-fonts.tar.gz foo ld-lsb.tar.gz ttf-win7-fonts foo.tar.gz ttf-ms-fonts ttf-win7-fonts.tar.gz [daniel@TimeMachine builds]$ tar -xvzf enemy-territory.tar.gz enemy-territory enemy-territory/enemy-territory.install enemy-territory/enemy-territory.desktop enemy-territory/PKGBUILD enemy-territory/et-ded enemy-territory/et.sh enemy-territory/etded.sh enemy-territory/et-pbupdate.sh [daniel@TimeMachine builds]$ ls enemy-territory ld-lsb ttf-win7-fonts enemy-territory.tar.gz ld-lsb.tar.gz ttf-win7-fonts.tar.gz foo ttf-ms-fonts foo.tar.gz ttf-ms-fonts.tar.gz [daniel@TimeMachine builds]$ cd enemy-territory [daniel@TimeMachine enemy-territory]$ ls enemy-territory.desktop et-ded et-pbupdate.sh PKGBUILD enemy-territory.install etded.sh et.sh [daniel@TimeMachine enemy-territory]$ makepkg -s ==> Making package: enemy-territory 2.60b-11 (Thu Feb 9 11:12:25 CST 2012) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving Sources... -> Downloading et-linux-2.60.x86.run... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 258M 100 258M 0 0 397k 0 0:11:06 0:11:06 --:--:-- 324k -> Downloading ET-2.60b.zip... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4046k 100 4046k 0 0 303k 0 0:00:13 0:00:13 --:--:-- 370k -> Found enemy-territory.desktop -> Found et-ded -> Found et-pbupdate.sh -> Found et.sh -> Found etded.sh ==> Validating source files with md5sums... et-linux-2.60.x86.run ... Passed ET-2.60b.zip ... Passed enemy-territory.desktop ... Passed et-ded ... Passed et-pbupdate.sh ... Passed et.sh ... Passed etded.sh ... Passed ==> Extracting Sources... -> Extracting ET-2.60b.zip with bsdtar ==> Entering fakeroot environment... ==> Starting build()... Creating directory enemy-territory Verifying archive integrity... All good. Uncompressing Enemy Territory 2.60 Full Install.............................................................................................................................................................................................................................................................................................................................. ==> Tidying install... -> Purging unwanted files... -> Compressing man and info pages... -> Stripping unneeded symbols from binaries and libraries... ==> Creating package... -> Generating .PKGINFO file... -> Adding install file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: enemy-territory 2.60b-11 (Thu Feb 9 11:27:28 CST 2012) [daniel@TimeMachine enemy-territory]$ ls enemy-territory-2.60b-11-x86_64.pkg.tar.xz et-ded et.sh enemy-territory.desktop etded.sh pkg enemy-territory.install et-linux-2.60.x86.run PKGBUILD ET-2.60b.zip et-pbupdate.sh src [daniel@TimeMachine enemy-territory]$ sudo pacman -U enemy-territory-2.60b-11-x86_64.pkg.tar.xz Password: loading packages... resolving dependencies... looking for inter-conflicts... Targets (1): enemy-territory-2.60b-11 Total Installed Size: 269.92 MiB Proceed with installation? [Y/n] (1/1) checking package integrity [######################] 100% (1/1) loading package files [######################] 100% (1/1) checking for file conflicts [######################] 100% (1/1) checking available disk space [######################] 100% (1/1) installing enemy-territory [######################] 100% ==> You have to run a working PunkBuster to play! Read here: ==> http://www.evenbalance.com/index.php?page=pbsetup.php Optional dependencies for enemy-territory et-sdl-sound [daniel@TimeMachine enemy-territory]$
Saw this today. My reservations about introducing HUD in Ubuntu 12.04 seem to be crumbling. It looks pretty neat.
The desktop remains central to our everyday work and play, despite all the excitement around tablets, TV’s and phones. So it’s exciting for us to innovate in the desktop too, especially when we find ways to enhance the experience of both heavy “power” users and casual users at the same time. The desktop will be with us for a long time, and for those of us who spend hours every day using a wide diversity of applications, here is some very good news: 12.04 LTS will include the first step in a major new approach to application interfaces.
A lot of Ubuntu’s stuff has been hit or miss lately, but at least they are not afraid to try new things. Also, it seems that this new HUD interface might be an attempt to show that Ubuntu is not abandoning the desktop/laptop platforms, after all the discussion about Unity being a step toward the tablet market.
But I can’t help but wonder why they would introduce this on 12.04. It’s supposed to be a Long Term Stable release. I think it might have been better to wait until 12.10.
Nevertheless, I am curious to try this out, and I suspect I’ll at least install Ubuntu in a Virtual Machine to see whether it is awesome.