Category Archives: linux

Install Spotify in Ubuntu 13.10 (correct way)

echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59
sudo apt-get update && sudo apt-get install spotify-client
Advertisements

Disable guest login in Ubuntu 13.10

sudo vi /etc/lightdm/lightdm.conf.d/50-guest-wrapper.conf

Add the following line at the end:

allow-guest=false

Now restart lightdm (or reboot):

sudo service lightdm restart

Use Yelo TV on Ubuntu 13.04

Yelo TV is a Live TV streaming service for Telenet customers in Belgium. Sadly, it uses Silverlight. Using Firefox and Pipelight, this service works perfectly fine on Ubuntu though:

sudo apt-add-repository ppa:ehoover/compholio
sudo apt-add-repository ppa:mqchael/pipelight
sudo apt-get update
sudo apt-get install pipelight

Then restart firefox and it should work fine.

More info:
http://fds-team.de/cms/articles/2013-08/pipelight-using-silverlight-in-linux-browsers.html

Make Ubuntu 13.04 iso fit on 700MB CD

Quick notes:

1/ Download iso from http://releases.ubuntu.com

2/ Install UCK:

sudo apt-get install uck libfribidi-bin

3/ Start uck-gui:

– Choose languages en/en
– Choose default deskop: Unity
– Remove windows files: yes
– Hybrid: yes
– Customize?: yes

Let it build and then when possible you will have the option to customize via console.
In that console just remove all LibreOffice packages (Don’t worry, you can install them later after you install Ubuntu):

dpkg -l | grep -i libreoffice | awk '{print $2}' | xargs apt-get -y purge
rm -fr /var/lib/libreoffice

Then exit the console window (ctrl+d) and let it continue the build.

In the end you will have an iso of about ~600MB:

$ du -hs ~/tmp/remaster-new-files/livecd.iso
575M	/home/x/tmp/remaster-new-files/livecd.iso

Fix for Harvest: Massive Encounter on Steam

Didn’t work out of the box. This seemed to do the trick on Ubuntu 13.04 x64:

cd ~/.local/share/Steam/SteamApps/common/Harvest\ Massive\ Encounter/
cp -p run_harvest run_harvest.ori

Replace run_harvest with this code:

#!/bin/bash
exec ./Harvest

Play Resonance game on Linux

Notes for Ubuntu 12.10 x64 and GOG.com version of the game.


sudo apt-get install git ia32-libs debhelper pkg-config liballegro4.2-dev libaldmb1-dev libfreetype6-dev libtheora-dev libvorbis-dev libogg-dev gdebi-core innoextract
git clone git://github.com/adventuregamestudio/ags.git
cd ags && fakeroot debian/rules binary
sudo gdebi ../ags_3.21.1115~JJS-1_*.deb

Now download Resonance from GOG.com and place it in $HOME/Downloads.


cd ~/Downloads
innoextract setup_resonance_1.0.0.5.exe
mv app ~/Games/Resonance
rm -fr tmp

Now make a startup script.


cat > ~/Games/Resonance/playresonance.sh <<EOF
#!/bin/bash
cd $HOME/Games/Resonance && ags Resonance.exe
<<EOF
chmod +x ~/Games/Resonance/playresonance.sh

Now start the game with ~/Games/Resonance/playresonance.sh

Windowed mode can be enabled by editing ~/Games/Resonance/acsetup.cfg
More settings can be found here http://www.gog.com/forum/resonance/resonance_linux_gamers

For my laptop I changed:
windowed=1
gfxfilter=StdScale3

Play GOG version of Defender’s Quest on Linux

Note: Instructions for Ubuntu 12.10 x64

I bought Defender’s Quest from GOG rather than use the Linux version from the official site. Why?
– Don’t have to pay extra VAT because I’m from EU
– Extra goodies (soundtrack, etc)
– GOG download servers will be up for a long long time, so I’m sure I can always grab the game from there again if I lose my local backup.

FIRST install the demo. See here.

If all that works, leave the demo installed (we’ll use those files).
The following instructions assume you have the demo installed in ~/Games/DefendersQuestDemo.

If so, then proceed:

1/ Buy Defender’s Quest from GOG.com
2/ Download the Mac install file defenders_quest_1.0.0.4.dmg in ~/Downloads
3/ Open terminal (ctrl + alt + t)


cd ~/Downloads
wget http://vu1tur.eu.org/tools/dmg2img-1.6.4.tar.gz
tar xzf dmg2img-1.6.4.tar.gz
sudo apt-get install libghc-zlib-dev libghc-bzlib-dev libssl-dev
cd dmg2img-1.6.4
make
(ignore the warnings, if you have dmg2img file in the current dir after compilation, it should be ok)
./dmg2img -p 4 ~/Downloads/defenders_quest_1.0.0.4.dmg
sudo modprobe hfsplus
sudo mount -t hfsplus -o loop ~/Downloads/defenders_quest_1.0.0.4.img /mnt
cd /mnt/Defenders\ Quest.app/Contents/Resources/Defenders\ Quest.app/Contents/Resources/
rm -fr ~/Games/DefendersQuestDemo/share/*
tar cf - * | ( cd ~/Games/DefendersQuestDemo/share/ ; tar xvf - )
cd ~/Games
mv DefendersQuestDemo/ DefendersQuest
cd DefendersQuest/bin
mv DefendersQuestDEMO DefendersQuest

Now start the game from terminal:

./DefendersQuest &

It should work fine now. Congratulations.

You may get prompt to update your version:

From here you can download the .deb file or whatever version your prefer using.
If you just want to update your game (like I do), select the tar file. It will download it somewhere in /tmp (it says on the screen where it is saved).
Close the game and update your files like this:


cd ~/Games
tar xzf /tmp/FlashTmp.oaD1fm/defenders_quest_1_0_50.tar.gz

Relaunch game and now you have the latest version:

cd ~/Games/DefendersQuest/bin
./DefendersQuest &

Cleanup (optional):

cd
sudo umount /mnt
rm ~/Downloads/defenders_quest_1.0.0.4.*
sudo apt-get purge libghc-zlib-dev libghc-bzlib-dev libssl-dev
sudo apt-get autoremove
rm -fr ~/Downloads/dmg2img*