Thursday, May 3, 2018

Enemy Territory: Legacy on Ubuntu 18.04 LTS

With the recent release of Ubuntu 18.04 LTS, I think it is time to make a Enemy Territory: Legacy installation guide.

Wolfenstein Enemy Territory is a free multiplayer FPS developed back in 2003, and it was released in 2010 as an open source project, where it became known as Enemy Territory: Legacy. The last official build before going open source was named Wolfenstein ET 2.60b, which is still played by a lot of players worldwide, and it is still supported by the open source version, but only if you are using the 32-bit version. So the challenge is to install Enemy Territory: Legacy 32-bit on Ubuntu 18.04 LTS, which is only released as 64-bit, as Canonical, the company behind Ubuntu, decided to drop the support for their 32-bit image.

How to get the game installed?

Since we know that we need to use the 32-bit version of Enemy Territory, we open the terminal and type:
wget -O etlegacy-v2.75-i386.sh https://www.etlegacy.com/download/file/84
And then we make the downloaded file executable:
chmod +x etlegacy-v2.75-i386.sh
And we run the shell script:
sh etlegacy-v2.75-i386.sh
Now simply use /cd to the directory where you have placed the files and run:
./etl
When the game starts, you are prompted to create a new user, and you are able to change the screen resolution etc.

 You might need to install a few more files as well

sudo apt-get install libglu1-mesa:i386 libSDL1.2debian:i386

Wednesday, May 2, 2018

Ubuntu 18.04 LTS

This is my personal Ubuntu 18.04 LTS setup guide, it includes programs I like, GNOME extensions, minor tweaks and my initial impression.

Initial impressions:

Ubuntu 18.04 LTS offers a new installation type: Minimal install. This new type avoids the bloatware that normally comes with Ubuntu, such as the office suite LibreOffice, shotwell, transmission, thunderbird etc. I quite like this new mode, as I normally either manually remove the apps I don’t use, or I simply leave them on the drive, thus wasted space.

When selecting how to install Ubuntu on my system, I always do it manually, but I have noticed that they have removed the need for a dedicated swap partition and now automatically allocate a swap file - a brilliant solution.

Recently I have been using GNOME 16.04 LTS as my primary OS, empowered by the dash to dock GNOME extension, which coincidentally offers a look and feel that is pretty much identical to the new Ubuntu LTS. This is mainly due to the fact that Canonical, the company behind Ubuntu, decided to discontinue their custom graphical shell Unity and adopted the GNOME shell, which is the graphical shell that have been used on the native GNOME desktop environment since version 3, which was released back in 2011. They also added a custom version of dash to dock GNOME extension to make it look and feel more like the discontinued Unity application launcher. So on a personal note: nothing new under the sun.

Ubuntu also had plans to change the default display server from X11 to Wayland in this latest LTS, alas that didn’t happen, but they did however include the Wayland option from the cog on the login screen - the new goal is to make it the default display server in the next LTS - in Ubuntu 20.04 LTS.

My list of programs

I have a long list of program I simply adore and a few new ones I am trying out.

Because I used the Ubuntu Minimal install, I didn’t get the default music manager Rhythmbox, and I wanted to try something new, so I have instead installed Clementine in order to see if it is as good as people make it up to be, I was sold by the Dropbox and Google Drive media streaming capabilities. I am using Hexchat as my IRC client, which I use primarily to communicate to the open source project I am a part of. I am using Discord as my gaming chat client, Slack as my work chat client and Telegram as my private chat client. I am currently using the Chrome Browser for everyday browsing, and the Tor browser for private browsing. I am using VNC Viewer as a tool to get remove desktop access over my Raspberry Pi 3. I have also installed a pomodoro performance timer, which I can enable when I need to stay focused. And to stay focused while I type, I use FocusWriter. I use Visual Studio Code, the insider build, as my default lightweight text editor, and I also use it for .Net development, where I am current developing a ASP.NET Core MVC project for my Raspberry Pi 3. Currently I use Cake as my build, test and deployment tool, mainly due to the nice metrics it offers of each phase. I use Git as a version control tool and GitLab as my global free private repository of choice. I use Open Broadcaster Software as my default screen recorder tool.

I also have latest stable version of Wine installed, which allows me to play windows games, as I simply adore the turn based strategy game Heroes of Might and Magic 3 Complete (so it includes all of the expansion packs - which can be found for a steal on GOG.com) - I also use the non-official fan made HD addon, where I am offered a greater resolution, game bug fixes and a very functional online multiplayer lobby and a ingame online chat client with the ability to add friends - quite awesome!

My list of GNOME extensions

One of the benefits of using the GNOME shell as the default graphical shell on Ubuntu, is that we now have the ability to use GNOME extensions, which can modify the behaviour of the GNOME shell - BUT be aware that the extensions are not developed by the official GNOME team, but by third party developers, which I have experience myself, can lead to a unbootable system. I have however found a list of extensions that both are compatible with the latest version of GNOME shell and they are quite useful.


  • SomaFM internet radio
    • A small extensions that adds a SomaFM internet radio player in the top panel of the desktop, it includes the ability to select favorites.
  • Extensions
    • An overview of the extensions installed, with the ability to enable and disable and edit the settings of the individual extensions - this can also be achieved from the GNOME tweak tool, but I find it more handy.
  • Remove Dropdown Arrows
    • It removes the dropdown arrows from apps that have that in the top panel.
  • Frippery Move Clock
    • It simply moves the clock/date/calendar to the right in the top panel. I have gotten used to have all of my apps to the right of the top panel.
  • Hide Activities Button
    • I hides the activities button. I find this button quite useless, as I hit the ‘super-key’ when I want to see my activities.
  • Google Earth Wallpaper
    • An awesome extensions which auto-shuffles through selected locations on earth and displays them as your desktop background. You are able to enable a time interval, if you should download them etc.
  • OpenWeather
    • A simple weather app embedded in the top panel, highly configurable.
  • Status Area Horizontal Spacing
    • There is a lot of horizontal spacing between the icons in the top panel, this extensions reduces the space between each app, which is neat.
  • TopIcons Plus
    • Used for displaying the icon of legacy apps in the top panel.
  • Show Desktop Button
    • Adds a show desktop button in the upper left corner of the screen.
  • Refresh Wifi Connections
    • Adds a WiFi refresh button to the manual network selection in the top panel

The last GNOME extension I want to recommend is Pomodoro, which is a production tool, which allows you to focus in a time-frame. This great extensions is sadly a little tricky to get to work, first it must be installed as a native Ubuntu app through the Ubuntu software center and it will leave you with two different icons in the top panel, BUT it is worth it. Search after ‘Pomodoro’ and install the app with a eggshell icon - when that is done, enabled the extension on the extensions page. The Pomodoro extensions is highly configurable, you can define the focus duration (known as Pomodoro duration), the break duration, the long break interval, how often the long break should appear, screen notifications, sound effects while working (Ticking sound: e.g. Woodland Birds), notifications etc. Hit ctrl+alt+p to enable or disable. I personally hope that this extensions/native app gets a little love, and the bugs are fixed, as it is a very useful tool I use quite often. Lastly you are able to turn one of the eggshell icons into a different look - a countdown timer:
gsettings set org.gnome.pomodoro.plugins.gnome indicator-type 'text'

Minor tweaks

Two things slightly annoy me about the default behavior of the dash to dock extension, the first one is that when I re-select an item on the dock, then the item doesn't minimize, the other issue I have with the dock, is that I can't cycle through a list of opened items with my scroll-wheel, e.g. if I have opened multiple folders or browsers. This can however be fixed through the terminal:
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
gsettings set org.gnome.shell.extensions.dash-to-dock scroll-action 'cycle-windows'
While I really enjoy the TopIcons Plus GNOME extension,  there is a visibility issue when adding a legacy application to the list of startup application of the session (gnome-session-properties), this can be fixed by adding a slight delay to the app in question, like this:
sh -c "sleep 10; exec clementine"
And if I want it to start the application to tray, then I will use:
sh -c "sleep 10; exec hexchat --minimize=2"
telegram-desktop -startintray 

Friday, May 23, 2014

Wolfenstein ET on Ubuntu 14.04





If you are using 64-bit, then it is recommended to install the following file:

sudo apt-get install libSDL1.2debian:i386

You can download the game from the terminal using this command:

wget -c http://ftp.games.skynet.be/pub/wolfenstein/et-linux-2.60.x86.run
And then we make the downloaded file executable:

chmod +x et-linux-2.60.x86.run

And we run the file with admin rights

sudo ./et-linux-2.60.x86.run
Now you should see a enemy territory icon in your menu.

Enjoy

If you have sound problems

A lot of Ubuntu users can't get the old classic Wolfenstein ET to work with sound, but I have good news - I know a fix that works every time.

First of all we need to go fetch the file we need, run this command in the terminal:

wget -q -O - http://nullkey.kapsi.fi/et-sdl-sound/et-sdl-sound.gz | gzip -d > et-sdl-sound && chmod a+x et-sdl-sound
(IF you can't download the file due to the server being down, then you can get my modified version from here)

then we need to edit the file from the old alsa sound system to our new pulse sound system:

sudo gedit /home/yourusername/et-sdl-sound

Go to line 40 and the change the line from this:

SDL_AUDIODRIVER="alsa"

to this:
SDL_AUDIODRIVER="pulse"
 and also add this:
LIBSDL="/usr/lib/i386-linux-gnu/libSDL-1.2.so.0.11.4"
save the file and close and then you need to make a symbol link, so you can play the game:

/home/yourusername//et-sdl-sound


If you want to change the screen resolution


Wolfenstein ET is not exactly a new game and you might want to change the resolution so it fits your screen.

You will need to create a new file and name it autoexec.cfg and it should contain the following:

set name ^$Playername
bind "i" dropclip
bind "k" kill
bind "rightarrow" "vsay Thanks"
bind "," say_team ^3Please Wait...^4Bar is Recharging!
bind "leftarrow" say ^WMy^1 HP^W is now [s]
bind "downarrow" say Thanks for the ^1Revive! [r]
bind "uparrow" vsay Welcome
bind "h" toggle cg_draw2d
bind "p" toggle cg_atmosphericEffects
bind "m" vsay EnemyDisguised
bind "ins" vsay Thanks
bind "del" vsay Cheer
bind "home" vsay_team FollowMe
set cg_fov "120"
seta com_soundMegs "64"
seta snaps "40"
seta rate "25000" // was 16000
seta com_hunkMegs "250"
seta r_customwidth "1366"
seta r_customheight "768"
seta r_fullscreen "1"
seta cg_drawFPS "1" //DISPLAY FRAMES PER SECOND
seta cg_drawGun "1" //DISPLAY SELECTED WEAPON
seta com_zoneMegs "64"
seta s_volume "0.9"
seta s_musicvolume "0"
seta s_khz "22"
seta s_bits "16"
seta s_channels "2"
vid_restart
Insert the above and also remember to change "Playername" to your playername in the game.

gedit ~/.etwolf/etmain/autoexec.cfg 

and you will also need to change a line in your playerfile to allow your user to use the custom screen resolution, do that with:

gedit ~/.etwolf/etmain/profiles/Playername/ 

If you don't have a profile yet, then open the game and make one. Change "seta r_mode" from the default value to "-1" save the file and close it.

That is it

I hope it works for you, enjoy.

Ubuntu 14.04


Essential files
It is important to make sure that the system is up-to-date before trying to install new packages.

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install ubuntu-restricted-extras xchat gftp vlc wine gimp p7zip-full ntfs-config gparted openjdk-6-jre icedtea-netx icedtea6-plugin kolourpaint4 cheese ktorrent -y
Recommended Games
sudo apt-get install frozen-bubble nexuiz supertuxkart freedink-engine neverball fillets-ng tmw -y
Nvidia - Getting the graphic card to work

There have been some problems with the proprietary nvidia driver, to make it work you should install the following, unless you are using a Optimus enabled card, then use the guide below.
sudo apt-get install linux-source
sudo apt-get install linux-headers-generic
sudo apt-get install nvidia-current-updates
Nvidia - Getting the graphic card to work (Optimus)

It works out of the box in the latest version of Ubuntu, but you might want to change from the Nouveau driver (open source) to the latest Nvidia driver (proprietary, tested). You can do that by clicking super and searching after additional drivers.

You can switch between the Intel and Nvidia card from the nvidia xserver settings under "Prime profiles". You can find the nvidia settings menu by clicking "super" and searching after it.

Recommended applications

Dropbox - It is a cloud storage with 2GB free space.
Skype - Allows the user to make voice and video calls and chat over the internet
Desura - A linux alternative to the windows based Steam client.
I can recommend the open source version called Desurium

sudo add-apt-repository ppa:makson96/desurium-stable
sudo apt-get update
sudo apt-get install desurium

Steam -  The official steam client is now working nativly on Linux and offers a ton of great games, it is easier to download from the homepage if you don't have a ubuntu account.

DVD codecs

Some DVDs come with landcode restrictions, to make sure you can play all of your DVDs, then you should do the following:

sudo rm /etc/apt/sources.list.d/medibuntu.list
curl ftp://ftp.videolan.org/pub/debian/videolan-apt.asc | sudo apt-key add -
echo "deb ftp://ftp.videolan.org/pub/debian/stable ./" | sudo tee /etc/apt/sources.list.d/libdvdcss.list
sudo apt-get update
sudo apt-get install libdvdcss2

Get Netflix

In order to get netflix to work in firefox, you will need to install pipelight. (silverlight for linux)
sudo apt-add-repository ppa:pipelight/stable
sudo apt-get update
sudo apt-get install pipelight-multi
sudo pipelight-plugin --enable silverlight
 Then download this user agent overrider and set your browser version as internet explorer 11: https://addons.mozilla.org/en-US/firefox/addon/user-agent-overrider/ 

Get Texmaker
When installing texmaker, then you will need to install texlive-full as well to get all of the dependencies installed:
sudo apt-get install texlive-full texmaker

Backspace action in Nautilus

If you want to enable Nautilus backspace action, then you need to open the nautilus accels file
sudo gedit ~/.config/nautilus/accels
and manually add the line at the very end (without ; ), like this:
(gtk_accel_path "/ShellActions/Up" "BackSpace")
save and then use: killall nautilus

Thursday, October 17, 2013

Ubuntu 13.10 Guide


Essential files
It is important to make sure that the system is up-to-date before trying to install new packages.

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install ubuntu-restricted-extras xchat gftp vlc wine gimp p7zip-full ntfs-config gparted openjdk-6-jre icedtea-netx icedtea6-plugin kolourpaint4 cheese ktorrent -y
Recommended Games
sudo apt-get install frozen-bubble nexuiz supertuxkart freedink-engine neverball fillets-ng tmw -y
Nvidia - Getting the graphic card to work

There have been some problems with the proprietary nvidia driver, to make it work you should install the following, unless you are using a Optimus enabled card, then use the guide below.
sudo apt-get install linux-source
sudo apt-get install linux-headers-generic
sudo apt-get install nvidia-current-updates
Nvidia - Getting the graphic card to work (Optimus)

There have been some problems with the nvidia driver for Optimus enabled graphic cards. To get your card up and running you should enable the Canonical Partner repositories and then do the following in the terminal:
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia
To test if your intel card is running like it should, then you should install glxgears:
sudo apt-get install mesa-utils
glxgears
And then compare the frames per second of the intel card with with the performance of the bumblebee (nvidia) optirun mode:
optirun glxgears

Recommended applications

Dropbox - It is a cloud storage with 2GB free space. NOTE: It is recommended to install Dropbox through the ubuntu software center to avoid the "connecting..."-bug
Skype - Allows the user to make voice and video calls and chat over the internet, if you have installed the proprietary Nvidia driver, then you might have a segfault error. To fix the error, then you should do the following:

sudo mv /usr/bin/skype /usr/bin/skype-bin
sudo apt-get install gksu
gksu gedit /usr/bin/skype

and then paste the following

#!/bin/sh
export LD_PRELOAD=/usr/lib/i386-linux-gnu/mesa/libGL.so.1
exec skype-bin "$@"

And then fix the perms.

sudo chmod 0755 /usr/bin/skype

Desura - A linux alternative to the windows based Steam client.
I can recommend the open source version called Desurium

sudo add-apt-repository ppa:makson96/desurium-stable
sudo apt-get update
sudo apt-get install desurium

Steam -  The official steam client is now working nativly on Linux and offers a ton of great games, it is easier to download from the homepage if you don't have a ubuntu account.

DVD codecs

Some DVDs come with landcode restrictions, to make sure you can play all of your DVDs, then you should do the following:

sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list --output-document=/etc/apt/sources.list.d/medibuntu.list
sudo apt-get update
sudo apt-get --yes --allow-unauthenticated install medibuntu-keyring

For 32-bit
sudo apt-get install w32codecs libdvdcss2
For 64-bit
sudo apt-get install w64codecs libdvdcss2

Get Netflix

There is not yet a native Netflix client but it might come to the Linux platform sometime soon as they have decided to make the switch from Microsoft Silverlight to HTML5, but till then you can use this solution.
sudo apt-add-repository ppa:ehoover/compholio
sudo apt-get update && sudo apt-get install netflix-desktop
Get Texmaker
When installing texmaker, then you will need to install texlive-full as well to get all of the dependencies installed:
sudo apt-get install texlive-full texmaker

 Backspace action in Nautilus

If you want to enable Nautilus backspace action, then you need to open the nautilus accels file

sudo gedit ~/.config/nautilus/accels

and manually add the line at the very end (without ; ), like this:

(gtk_accel_path "/ShellActions/Up" "BackSpace")

Friday, April 26, 2013

Wolfenstein on Ubuntu 13.04





If you are using 64-bit, then it is recommended to install the ia32-libs:

sudo apt-get install ia32-libs

You can download the game from the terminal using this command:

wget -c http://ftp.games.skynet.be/pub/wolfenstein/et-linux-2.60.x86.run
And then we make the downloaded file executable:

chmod +x et-linux-2.60.x86.run

And we run the file with admin rights

sudo ./et-linux-2.60.x86.run
Now you should see a enemy territory icon in your menu.

Enjoy

If you have sound problems

A lot of Ubuntu users can't get the old classic Wolfenstein ET to work with sound, but I have good news - I know a fix that works every time.

First of all we need to go fetch the file we need, run this command in the terminal:

wget -q -O - http://nullkey.kapsi.fi/et-sdl-sound/et-sdl-sound.gz | gzip -d > et-sdl-sound && chmod a+x et-sdl-sound

then we need to edit the file from the old alsa sound system to our new pulse sound system:

sudo gedit /home/yourusername/et-sdl-sound

Go to line 40 and the change the line from this:

SDL_AUDIODRIVER="alsa"

to this:

SDL_AUDIODRIVER="pulse"

save the file and close and then you need to make a symbol link, so you can play the game:

/home/yourusername//et-sdl-sound


I hope it works for you, enjoy.

Monday, April 15, 2013

Ubuntu 13.04 Guide


Essential files
It is important to make sure that the system is up-to-date before trying to install new packages.

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install ubuntu-restricted-extras xchat gftp vlc wine gimp p7zip-full ntfs-config gparted openjdk-6-jre icedtea-netx icedtea6-plugin kolourpaint4 cheese ktorrent -y
Recommended Games
sudo apt-get install frozen-bubble nexuiz supertuxkart freedink-engine neverball fillets-ng tmw -y
Nvidia - Getting the graphic card to work

There have been some problems with the proprietary nvidia driver, to make it work you should install the following, unless you are using a Optimus enabled card, then use the guide below.
sudo apt-get install linux-source
sudo apt-get install linux-headers-generic
sudo apt-get install nvidia-current-updates
Nvidia - Getting the graphic card to work (Optimus)

There have been some problems with the nvidia driver for Optimus enabled graphic cards. To get your card up and running you should install the following:
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia
To test if your intel card is running like it should, then you should install glxgears:
sudo apt-get install mesa-utils
glxgears
And then compare the frames per second of the intel card with with the performance of the bumblebee (nvidia) optirun mode:
optirun glxgears
If glxgears not working
If it is not working then it is most likely due to a bug with the BusID in your bumblebee xorg config file or you have perhaps forgotten to install the mesa-utils.

Open the terminal and write
lspci | grep VGA
You should see something like
02:00.0 VGA compatible controller: NVIDIA Corporation"
Take a note of the first part as that is your BusID: 02:00.0.

Then add it to your config file:
sudo gedit /etc/bumblebee/xorg.conf.nvidia
Go find  # BusID "PCI:02:00:0 and make the code active by removing the comment symbol, also known as a hashtag: #
and remember to change the BusID so it fits with your card.

Then restart your pc or reload bumblebee and test glxgears again.

Recommended applications

Dropbox - It is a cloud storage with 2GB free space. NOTE: It is recommended to install Dropbox through the ubuntu software center to avoid the "connecting..."-bug
Skype - Allows the user to make voice and video calls and chat over the internet, if you have installed the proprietary Nvidia driver, then you might have a segfault error. To fix the error, then you should do the following:

sudo mv /usr/bin/skype /usr/bin/skype-bin
sudo apt-get install gksu
gksu gedit /usr/bin/skype

and then paste the following

#!/bin/sh
export LD_PRELOAD=/usr/lib/i386-linux-gnu/mesa/libGL.so.1
exec skype-bin "$@"

And then fix the perms.

sudo chmod 0755 /usr/bin/skype

Desura - A linux alternative to the windows based Steam client.
I can recommend the open source version called Desurium

sudo add-apt-repository ppa:makson96/desurium-stable
sudo apt-get update
sudo apt-get install desurium

Steam -  The official steam client is now working nativly on Linux and offers a ton of great games, it is easier to download from the homepage if you don't have a ubuntu account.

DVD codecs

Some DVDs come with landcode restrictions, to make sure you can play all of your DVDs, then you should do the following:

sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list --output-document=/etc/apt/sources.list.d/medibuntu.list
sudo apt-get update
sudo apt-get --yes --allow-unauthenticated install medibuntu-keyring

For 32-bit
sudo apt-get install w32codecs libdvdcss2
For 64-bit
sudo apt-get install w64codecs libdvdcss2

Get Netflix

There is not yet a native Netflix client but it might come to the Linux platform sometime soon as they have decided to make the switch from Microsoft Silverlight to HTML5, but till then you can use this solution.
sudo apt-add-repository ppa:ehoover/compholio
sudo apt-get update && sudo apt-get install netflix-desktop
Get Texmaker
When installing texmaker, then you will need to install texlive-full as well to get all of the dependencies installed:
sudo apt-get install texlive-full texmaker

 Backspace action in Nautilus

If you want to enable Nautilus backspace action, then you need to open the nautilus accels file and manually add the line, like this:

sudo gedit ~/.config/nautilus/accels
(gtk_accel_path "/ShellActions/Up" "BackSpace")