Play Urban Terror, a free Counter-Strike like game on Linux

Right now I’ve been playing Urban Terror (or UrT), it is a First Person Shooter (FPS) game similar to Counter-Strike. The game was developed using the open source Quake III Arena engine and can be played under GNU/Linux, Microsoft Windows and Mac OS X operating systems.

You can download Urban Terror binaries from Urban Terror Official Website

The game is available for 32bit and 64bit platform and is tested on Fedora 13 and Ubuntu 10.10 (Maverick Meerkat) releases

How to Setup SSH public-key or password-less authentication in Ubuntu

Here’s how to setup public-key (or passwordless) authentication in Ubuntu or any other Linux based operating system that use OpenSSH.

First make sure you’ve remote SSH server running and accepting connection. Then you need to generate ssh key on local server (I prefer RSA). You can enter passphrase for added security, or leave it blank for passwordless authentication.

local:~$ ssh-keygen -t rsa
Enter passphrase (empty for no passphrase):

The command will generate id_rsa and id_rsa.pub files. The files will be save in ~/.ssh/ directory. Then copy id_rsa.pub file to the remote server using SCP. Read How to use SCP on Linux or other UNIX-based Environment for more information about SCP

local:~$ scp id_rsa.pub username@remote.host:~/

Then you have to connect to the remote host and append the id_rsa.pub public key file to the list of “authorized_keys“. Don’t forget to chmod the authorized_keys file and .ssh directory, or OpenSSH won’t work correctly

local:~$ ssh username@remote.host

#now we are on remote server!
remote:~$ cat id_rsa.pub >> ~/.ssh/authorized_keys
remote:~$ chmod 644 ~/.ssh/authorized_keys
remote:~$ chmod 700 ~/.ssh

Make sure you have edited the “/etc/ssh/sshd_config” file to allow Public key authentication and RSA authentication.

#sshd_config file

PermitRootLogin no
...snip...
RSAAuthentication yes
PubkeyAuthentication yes
...snip..

Save and restart sshd server daemon by running the following command.

remote:~$ sudo /etc/init.d/ssh restart

After that, logout from the remote host to test the Public-key authentication


remote:~$ exit
local:~$

Testing the SSH public-key authentication
To test the public-key authentication, simply connect to remote server normally using ssh, and if things have gone smoothly you’ll be prompted to enter your passphrase, instead of password.


local:~$ ssh username@remote.host
Enter passphrase for key '/home/username/.ssh/id_rsa':

Note that you will not be prompted to enter passphrase/password if you’ve generated a key with “blank passphrase“, effectively making your login “passwordless”. For added security, it is advised that you disable normal interactive-keyboard password option and rely fully on public-key authentication by changing sshd_config line from:

PasswordAuthentication yes

to


PasswordAuthentication no

p/s: this tutorial was adapted from Shortest passwordless ssh tutorial, ever with updated notes for latest OpenSSH release

Quick Way to upgrade to Ubuntu 10.10 Maverick Meerkat

Ubuntu 10.10 Maverick Meerkat release is just around the corner!

Here’s how to upgrade Ubuntu 10.10 Maverick Meerkat using bash shell

sudo sed -i 's/lucid/maverick/g' /etc/apt/sources.list && sudo aptitude update && sudo aptitude dist-upgrade

sudo aptitude install update-manager-core
sudo do-release-upgrade -d

That’s it! Happy upgrading!

How to setup Secure Webserver HTTPS (SSL) on Apache in Ubuntu

Secure HTTP (SSL/TLS) has become a must if you are planning to setup a website which includes user authentication (ie. login box) or sensitive data. HTTPS prevents the sensitive data from being transfered across the network in clear text where it is susceptible to being sniffed or altered. Here is the tutorial on how to setup a secure HTTP on Apache web server in Ubuntu 10.04 (Lucid Lynx).

What do you need?

  • apache2 (Web Server)
  • openssl
  • A bit patient, because it will take some time to learn

Step 1: Create a self-signed certificate
You need to create a self-signed certificate with openssl. To do that you will need to generate the server key.


openssl genrsa -des3 -out server-sec.key 4096

…and certificate signing request (CSR)


openssl req -new -key server-sec.key -out server.csr

After that, generate the server certificate by signing it with the server key.

openssl x509 -req -days 365 -in server.csr -signkey server-sec.key -out server.crt

Keep the server-sec.key in a secure location, with read/write permission assigned only to root. Then generate a password-less copy of the key for Apache use.

openssl rsa -in server-sec.key -out server.key

By this time, you should have :

  • server.key (passwordless key for Apache)
  • server.csr (certificate signing request)
  • server.crt (certificate)
  • server-sec.key (server key)

Continue reading “How to setup Secure Webserver HTTPS (SSL) on Apache in Ubuntu”

Broadcom has released open source Linux Wifi 802.11n drivers

In a welcoming step, Broadcom finally released the the source code of its wifi (802.11n) Linux drivers under open source license. The source code can be found on the Linux staging-next tree at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-next-2.6.git in the in the drivers/staging/brcm80211 directory. The open source drivers will support current chips (BCM4313,BCM43224, BCM43225) and it also acts as a framework to support future chips by Broadcom.

This can be considered as a significant move made by the company, as Broadcom chips are widely in use on laptops and netbooks in the market. Its competitor, Atheros, has already open sourced its drivers back in 2008, which in turn, made Atheros drivers much better supported on various operating system platform compared to Broadcom.

Previously, Linux users with Broadcom chip, have to rely on NDISwrapper utilities to enable the wifi functionality on their laptops.

[source][via]

Play Dune 2 Natively on Linux with Dune Legacy

Good news to old time gamers, now you can play Dune 2 on Linux operating system natively (without dosbox or other emulator) with Dune Legacy project. For the uninitiated, (to my best knowledge), Dune 2 is the first RTS game for DOS (by Westwood, then acquired by EA Games) that spawn several other popular games in the genre such as C&C, Red Alert, Red Alert 2, etc.

Youtube video of Dune Legacy :

The Ubuntu binary (playable under Lucid Lynx) is available from – http://www.myway.de/richieland/dunelegacy_0.96_i386.deb and http://www.myway.de/richieland/dunelegacy_0.96_amd64.deb

Naturally you would need the original data files and maps to play Dune Legacy natively on Linux. Binaries for other operating systems (Windows, Mac OS X) are also available from the Dune Legacy Project website.