Archive for Mint 11

Games for Linux

Posted in Linux with tags , , , , , , , , , on January 22, 2012 by Mark

Since my conversion to Linux, most of my attention has been devoted to the technical aspects of mastering a new operating system. Sometimes I feel the need to just goof off and find myself looking at the games available to play that are written for the GNU/Linux OS.

First, I’ll point out that some success may be had using Wine which is described as a “Windows compatibility layer.” There are other methods of running Windows games on a Linux box, but my goal is to experience Linux in its purest form, and so I’m sticking exclusively to games that were written for Linux.

To my friends in Sosaria, this means I may not return in the near future since Ultima Online is only offered as a Windows application. However, I still have a hankering for “swords and sorcery” type computer games so lets look at  a couple of those.

Battle for Wesnoth (ver 1.8)

One of the more prominent Linux games which features turn-based play against computer generated opponents. There are several campaigns available and users can also design their own campaigns and maps using the available map editor. Campaigns are developed by other players, and offer well written narratives with clear objectives. You can also engage in multi-player online campaigns. For Linux Mint, the game was available through the Package Manager which makes selection and installation of the necessary files a breeze.

I’ve played through several campaigns and found this game to be an enjoyable diversion, or even an obsession. When I first started to play, I would spend an entire day working through a campaign and not even realize how long I had been at it.

Dungeon Crawl Stone Soup (ver 0.9.1)

Here’s a game that hearkens back to the early MUDs (Multi User Dungeons). It is described as a “roguelike game.” It is also available using the Package Manager in two varieties. The console version is text only and the “tiles” version offers graphic maps, and inventory displays.

I downloaded this game this week, so I’m still working through the tutorials. The tiles version does allow use of the mouse for navigation and selection so that makes it easier to focus on the fun. You can play against computer generated foes, or online. The website offers more detail on initiating the online game. If you’re a fan of older style games, this is a good choice. I’ll be playing more of this after I master the tutorials and you may even see me online. Perhaps someday, Lord Raven will inhabit every virtual world known to man! Buwahahah!

Now that we’ve taken a look at a couple of swords and sorcery type games, let’s give our Wizard’s hat a rest and look at some other game options for Linux.

Lincity – A city simulation game. (1.13.1)

You are probably thinking of a game with a sim-ilar name and if you ever played the early version of that game, you already have a good idea of what Lincity is like. This game is available using the Package Manager so it’s pretty easy to install and play. There are similar games with “enhanced” graphics but they felt too much like a children’s version for my taste. There are lots of possibilities with this complex game and I admit that I’ve already spend a good amount of time playing it obsessively.

Deltaville, my perfect city.

After several failed megacities, I decided to focus on slow growth with a solid agricultural base. I won’t get into too much detail and spoil your fun, but it seemed like I finally found a working model which would grow well. Until it fell into ruin and chaos. Maybe I should withdraw my application for City Manager of Detroit and stick to simulations. On the other hand, how could I mess up Detroit any more than it already is?

There is no multi-player version so when your city fails it won’t be due to Mongrel Hordes, just your own incompetence. This is another game that will appeal to some folks as it has the look and feel of older DOS based computer games. Let’s face it, to some of us 3D graphics are just confusing!

glChess  (ver 2.32.1)

One game you will have no trouble finding for Linux is Chess. Recently I decided to return to the game and set up a Chess circle on Google + which is based on correspondence type games. Having decided to dive right in, I also realized that my game might be kinda rusty since I’ve not had any friends… er, I mean “worthy opponents” for many years.  It turns out that my precious copy of The Complete Chess Player  uses an obsolete and completely baffling version of Chess notation so I also need to learn Algebraic Chess Notation and so I wanted a program that would display the game board and moves this way.

There are several Chess games available using the Package Manager, and I downloaded a variety to test. My personal favorite was glChess as it was simple enough for me to concentrate on my game, while offering the features I was looking for.

Some versions offer more sophisticated features, and there are options for playing against live opponents. Some of the games run in terminal mode, and use text instead of graphics. There are different engines available and it seems that some of the games will automatically recognize what is available on your system. I’m still a bit weak on the technical stuff in Linux so I’m going to avoid going into a lot of detail here. To summarize, just as the game is difficult to master you may also find installing and playing some versions using Linux equally difficult.

Every game I’ve reviewed is probably available from the repository for your favorite Linux distro. They were all available from the repositories I access using Linux Mint. I’d recommend using the Package Manager, or Software Manager to download and install them. However, if you refuse to settle for version 1.2 and insist on having version 1.3 the direct links to the websites are provided as well.

The Linux Console, A Very Busy Weekend.

Posted in Linux with tags , , , , , , , , , on December 13, 2011 by Mark

Back in October, I wrote about my experiences testing various Linux distributions and of my decision to go with Mint 11. I feel pretty comfortable with Mint now, but I’ve avoided downloading the new version. Instead, I’ve focused on getting my laptop set up with the same variety of software I used to use under Windows XP. I’ve had to identify Linux software packages that have the features and flexibility of Windows software I’ve used for years. So far, things are looking very good. In fact, since programs are available from the repository for free  I’ve been able to re-populate my laptop with programs that cover every major program I used to use under Windows.

Last weekend, I decided it was time to take the next step and I focused on learning BASH shell commands and getting a better understanding of Linux directory structure. Instead of working from a terminal window in Gnome, I exited the desktop and worked exclusively from the console. (CRTL-ALT-F1 invokes console mode, CRTL-ALT-F7 switches back to the Gnome desktop.)

I found that this experience reminded me of my old DOS days. I undertook a number of exercises to broaden my understanding of Linux commands and learn how the file directory is organized. Since I have two laptops, I decided to convert my old Dell to a Debian test console. Here is my to-do list from the weekend:

  • Installed Debian 6/Gnome on a Dell laptop. (manual/expert install due to video driver issue).
  • Executed commands from the tutorial: cd, pwd, ls (-l, -a), mkdir, mv, rm (-r)
  • Gained basic familiarity of standard Linux file directory structure.
  • Composed a simple BASH script using Nano to execute various functions related to file movement, directory creation, CD ejection. (Executed using SOURCE command).
  • Added user “mark” to SUDOER list using VISUDO.
  • Gained additional experience with file commands and BASH commands by writing a script that creates a mount directory (/mount/USB), then mounts a USB flash drive. (script attached) Commands used include, clear, echo, wait, sudo, fdisk, mkdir, mount, cp, ls.
  • Gained experience using aptitude from the command line and text interface. Performed the following actions during package maintenance: install, update, search.
  • Practiced IO re-direction using “>” and “|”. ex., whois inmotionhosting.com | less
  • Installed and configured LaMp (Linux Apache, MySQL, PHP)
  • Set unique password for MySQL. (did not use root pwd)
  • Installed and tested phpmyadmin. (Gnome/browser)
  • Executed commands using less, more, tail, head and cat.
  • Executed basic file permission changes, owner, group, users. Created two additional user accounts with the same group to test permissions by logging into different user accounts.*
  • Additional applications installed: lynx, kompozer, bluefish, codelite, filezilla
  • Other commands/applications used or learned: source, shutdown, ftp, mail, whereis, ifconfig, iwconfig, lspci, file, umount, mutt, su, man, eject.
  • Installed YUM, however no repositories are set up so I continued to use aptitude.
  • Successfully composed and sent email between local user accounts using Mutt.
  • Successfully configured FileZilla (passive mode), but I had to bypass my Linksys router. I’m still trying to determine what changes I need to make to the router configuration.
  • Reviewed IMAP/POP email configuration tutorials. (Gnome/browser).
  • Reviewed cPanel demo and features. (Gnome/browser).

Every task listed above was completed from the console with the exception of creating the two test accounts I used for experimenting with file permissions. I was able to create the accounts using adduser, but I snuck into the Gnome desktop to modify the group settings.

To test my basic understanding of the commands and directory, I wrote a script that mounts a flashdrive and copies selected contents to the /home directory. Note that not all of the commands in the script are necessary… I was playing with various commands and wanted to “beef up” the script.

********** practice script **********

clear
echo Script to mount USB thumb drive and copy some contents to a test directory.
echo Display current devices:
sudo fdisk -l
echo Create mount directory: /mount/USB
sudo mkdir -p /mount/USB
wait
#need sudo for previous command, and added -p
echo Mount USB drive to file system.
sudo mount -t vfat -o rw,users /dev/sdb1 /mount/USB
wait
echo Test installation by using ls to view contents of the drive.
ls -l -a /mount/USB
echo Create a new directory and copy files into it.
mkdir /home/mark/USBstuff
wait
cp /mount/USB/b* /home/mark/USBstuff
echo Okay, did it work? Lets take a look at the USBstuff directory.
ls /home/mark/USBstuff
wait
echo Lets create a file with the contents of the new directory.
ls -l /home/mark/USBstuff > output_usb.txt
wait
echo Thats all folks!

********** end practice script **********

My next goal is to try send and receive email using Mutt. Obviously there are a number of email applications for the Gnome desktop, but I want to get a feel for what is going on behind all of those fancy graphics. What does it really take to accomplish something that most of us think of as a simple task.