Welcome!

Linux Containers Authors: Pat Romanski, Elizabeth White, Liz McMillan, Vaibhaw Pandey, Yeshim Deniz

Related Topics: Linux Containers

Linux Containers: Article

'Tis the season to frag with Linux

How to take out shopping-related aggression with Cube, an earthy first-person shooter game

(LinuxWorld) — We're in that "special" time of year between Thanksgiving and Christmas. Shopping time and tempers grow short. Parking spots grow scarce. Frustrations grow and multiply. Even in small towns, it is hard to escape the insanity. Last week in a small town near where I live, a man went berserk in a Wal-Mart parking lot and drove his truck into five other vehicles, presumably cracking under shopping-induced pressure.

This holiday season, it's healthy to save a little quiet time for yourself. To meditate on life's simple pleasures. To quietly and contemplatively cozy-up with a good FPS and frag everything that moves.

FPS, if you don't speak video-game, stands for First Person Shooter. You know, games like Quake or Unreal Tournament. If you run Linux and don't have the cash to buy UT2003 or Quake 3, you might think this path to inner peace is not available to you. Fret not, my dweebs. Aardappel (AKA Wouter van Oortmerssen) and his friends are here to help you. So long as your video card supports 3D and OpenGL, that is.

Cube is the name and killing is the game. Written with a single codebase to support both Windows and Unix platforms through the magic of open standards like OpenGL and SDL, the game is both free as in beer and as in speech. Cube is not bogged down with a long storyline or complex gameplay. According to the documentation, the official storyline goes like this: "You kill stuff. The end."

Cube is free software, albeit not as in GPL'd code. It uses a GPL-compatible, free software-license called the Zlib license, which is similar to the BSD license.

I was curious about the name, so I asked Aard (short for Aardappel) where it came from. He explained, "Just before starting Cube I made a tiny spherical landscape engine called 'Sphere'. I then used the base rendering code to start Cube, and quickly typed in 'Cube' as project name, since the geometry was expected to be mostly cubes... I never changed the name and when I wanted to change it, it was too late. I now regret it, as it's not a very unique name, though it doesn't seem to have been very problematic."

Aard also told me that the project did not start to be open-source, although it was designed to be cross-platform from day one. He says that as the code matured, various people began to make it clear to him that they could put the game engine to good use, so he decided to make it open-source near the end of the development phase.

Video gaming these days is not just big business, it is huge business. Last year, video games outearned the movie industry by $1 billion. Since Aard's day job is to write code for a game company, I asked how he would benefit from the game. He says that he wouldn't, except for one thing: the fun of it. "Making an entire game from start to finish by yourself is very rewarding," he says.

As far as contributions from others, most have been in the form of maps and textures. Lee Salzman rewrote the networking code for the multiplayer modes using UDP instead of TCP. Other than that, it's almost all Aard's baby.

Oh, before I forget: Aard is not exactly your typical free-software developer. His normal desktop is Windows XP, and he uses Visual Studio .Net for development. Why is he doing open-source for Linux then?

"I have always worked on multiple platforms," Aard says. He adds that he used to be an Amiga user and was a Linux user very early on. "I think one should have very good reasons why to NOT make something portable, and with games (thanks to OpenGL + SDL) there aren't," he says. It's a pity that game publishers don't see things that way.

One of Cube's best features is the ease and speed with which you can create maps. You'll see references to this aspect of the project on almost every menu. This is one reason Cube has proved popular as a basis for others writing mods or their own complete games. There are a number of sites where you can find alternative Cube maps.

Before the fragging you must prepare!

Enough of that. Let the killing begin. Here is a quick primer to get you playing in single-player, death-match or online multi-player mode.

First, grab the latest version off the official Web site. After you've downloaded it, create a Cube subdirectory and unpack the Zip file like this:

mkdir cube 
cd cube 
unzip ../cube_downloaded_file.zip

The result will be a Cube directory containing the docs, source code, data and Windows/Linux executables. Change the permissions on the cube_unix script in the installation directory by typing:

chmod +x cube_unix

Then go into the bin_unix directory and give linux_client and linux_server the same medicine. That's it. That's the installation.

NOTE: If you download the 10-20-2002 version of the game, there is a nasty bug in it that causes lockups when joining multiplayer games. You can find a newer Linux client binary (the source is on the same site) at http://tunes.org/~eihrul. Download cube_linux_clients_2002_10_28.tar.gz and decompress it in the bin_unix directory.

Being the lazy type, I went a little further and created an alias to execute the game by adding the following to my .bashrc:

alias cube='cd /home/warthawg/cube/;cube_unix'

Before you start the game, you should edit the autoexec.cfg file found in the directory you created and at the very least enter a name for your player. You might also want to change some of the other settings, but I was fine with the defaults.

Lock and load

OK, now you're ready to start the game. If you created an alias like mine and have reloaded your .bashrc file, just type the alias from the command line. If you didn't, go into the directory you created and enter:

sh cube_unix

After the game starts up, hit the ESC key to get to the main menu. Use the up and down arrows to negotiate the menus and choose either the single or multi-player option.

If you've chosen the single-player (SP) mode, a new menu will appear, giving you the choice of starting an SP map, a DMSP (single-player death match) map or changing the skill level. On a scale of 1 to 10, Cube starts you off at level 3. The screenshot below shows the beginning of the map called aard-1, available in DMSP.

Single-player Death Match
Editor's note: The above image is reduced in size and color palette to allow it to load quickly. Click on this image to see the original.

The difference between the SP and DMSP was explained to me on the #cube IRC channel. SP comes with a fixed number of opponents placed where the creator of the map desired. The death-match entries automatically spawn bot opponents as you kill them.

To play against others online, select multiplayer from the main menu, then select server browser. I usually find two to five active servers, but there are not always players available. Just keep checking, or start your own server and wait for others to come to you.

You can also amuse yourself by downloading custom maps created by others. I grabbed one called "myfilthymind" from pushplay's site (see Resources for the URL). I unzipped it in the packages directory. The next time I started cube, I pressed the tilde key to get a prompt, then entered map filthymind and there I was. As I mentioned earlier, making maps for Cube is a popular activity, so you can find a lot of them to play.

Is Cube the smoothest, most-polished, most-powerful game engine available for Linux? No way. However, it has a very real, earthy tone to it that you don't often find in commercial games. It is fun, and it is free. Moreover, not only can you use it to exorcise whatever demons are hounding you, you can create your own little universe to do it in.

This holiday season, Ol' Doc Barr recommends spending some quality time with Cube before your next trip to Wal-Mart. You and your fellow shoppers will thank me for it.

More Stories By Joe Barr

Joe Barr is a freelance journalist covering Linux, open source and network security. His 'Version Control' column has been a regular feature of Linux.SYS-CON.com since its inception. As far as we know, he is the only living journalist whose works have appeared both in phrack, the legendary underground zine, and IBM Personal Systems Magazine.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
"Space Monkey by Vivent Smart Home is a product that is a distributed cloud-based edge storage network. Vivent Smart Home, our parent company, is a smart home provider that places a lot of hard drives across homes in North America," explained JT Olds, Director of Engineering, and Brandon Crowfeather, Product Manager, at Vivint Smart Home, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
SYS-CON Events announced today that Conference Guru has been named “Media Sponsor” of the 22nd International Cloud Expo, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. A valuable conference experience generates new contacts, sales leads, potential strategic partners and potential investors; helps gather competitive intelligence and even provides inspiration for new products and services. Conference Guru works with conference organizers to pass great deals to gre...
The Internet of Things will challenge the status quo of how IT and development organizations operate. Or will it? Certainly the fog layer of IoT requires special insights about data ontology, security and transactional integrity. But the developmental challenges are the same: People, Process and Platform. In his session at @ThingsExpo, Craig Sproule, CEO of Metavine, demonstrated how to move beyond today's coding paradigm and shared the must-have mindsets for removing complexity from the develop...
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering m...
"Evatronix provides design services to companies that need to integrate the IoT technology in their products but they don't necessarily have the expertise, knowledge and design team to do so," explained Adam Morawiec, VP of Business Development at Evatronix, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
To get the most out of their data, successful companies are not focusing on queries and data lakes, they are actively integrating analytics into their operations with a data-first application development approach. Real-time adjustments to improve revenues, reduce costs, or mitigate risk rely on applications that minimize latency on a variety of data sources. In his session at @BigDataExpo, Jack Norris, Senior Vice President, Data and Applications at MapR Technologies, reviewed best practices to ...
Widespread fragmentation is stalling the growth of the IIoT and making it difficult for partners to work together. The number of software platforms, apps, hardware and connectivity standards is creating paralysis among businesses that are afraid of being locked into a solution. EdgeX Foundry is unifying the community around a common IoT edge framework and an ecosystem of interoperable components.
Large industrial manufacturing organizations are adopting the agile principles of cloud software companies. The industrial manufacturing development process has not scaled over time. Now that design CAD teams are geographically distributed, centralizing their work is key. With large multi-gigabyte projects, outdated tools have stifled industrial team agility, time-to-market milestones, and impacted P&L stakeholders.
"Akvelon is a software development company and we also provide consultancy services to folks who are looking to scale or accelerate their engineering roadmaps," explained Jeremiah Mothersell, Marketing Manager at Akvelon, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
"IBM is really all in on blockchain. We take a look at sort of the history of blockchain ledger technologies. It started out with bitcoin, Ethereum, and IBM evaluated these particular blockchain technologies and found they were anonymous and permissionless and that many companies were looking for permissioned blockchain," stated René Bostic, Technical VP of the IBM Cloud Unit in North America, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventi...
In his session at 21st Cloud Expo, Carl J. Levine, Senior Technical Evangelist for NS1, will objectively discuss how DNS is used to solve Digital Transformation challenges in large SaaS applications, CDNs, AdTech platforms, and other demanding use cases. Carl J. Levine is the Senior Technical Evangelist for NS1. A veteran of the Internet Infrastructure space, he has over a decade of experience with startups, networking protocols and Internet infrastructure, combined with the unique ability to it...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
"Cloud Academy is an enterprise training platform for the cloud, specifically public clouds. We offer guided learning experiences on AWS, Azure, Google Cloud and all the surrounding methodologies and technologies that you need to know and your teams need to know in order to leverage the full benefits of the cloud," explained Alex Brower, VP of Marketing at Cloud Academy, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clar...
Gemini is Yahoo’s native and search advertising platform. To ensure the quality of a complex distributed system that spans multiple products and components and across various desktop websites and mobile app and web experiences – both Yahoo owned and operated and third-party syndication (supply), with complex interaction with more than a billion users and numerous advertisers globally (demand) – it becomes imperative to automate a set of end-to-end tests 24x7 to detect bugs and regression. In th...
"MobiDev is a software development company and we do complex, custom software development for everybody from entrepreneurs to large enterprises," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, discussed how from store operations and ...
"There's plenty of bandwidth out there but it's never in the right place. So what Cedexis does is uses data to work out the best pathways to get data from the origin to the person who wants to get it," explained Simon Jones, Evangelist and Head of Marketing at Cedexis, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
SYS-CON Events announced today that CrowdReviews.com has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5–7, 2018, at the Javits Center in New York City, NY. CrowdReviews.com is a transparent online platform for determining which products and services are the best based on the opinion of the crowd. The crowd consists of Internet users that have experienced products and services first-hand and have an interest in letting other potential buye...
SYS-CON Events announced today that Telecom Reseller has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Telecom Reseller reports on Unified Communications, UCaaS, BPaaS for enterprise and SMBs. They report extensively on both customer premises based solutions such as IP-PBX as well as cloud based and hosted platforms.
It is of utmost importance for the future success of WebRTC to ensure that interoperability is operational between web browsers and any WebRTC-compliant client. To be guaranteed as operational and effective, interoperability must be tested extensively by establishing WebRTC data and media connections between different web browsers running on different devices and operating systems. In his session at WebRTC Summit at @ThingsExpo, Dr. Alex Gouaillard, CEO and Founder of CoSMo Software, presented ...