4/30/2009

UBUNTU (And other): Remove write-protected files from your trash

I managed to get a temporary folder that I did not have privileges to remove in my trash. If this should happen to you, you can easily remove the files the following way.

Start up a terminal, and type:

cd ~/.local/share/Trash/files

Type ls -a to show all the files in the trash.

You can the remove one file with...

sudo rm FILENAME

... Or a folder with..

sudo rm -rf FILENAME

... Or if you want to remove everything in the folder

sudo rm -rf *

That should do the trick.

4/18/2009

WINE: Easily install Windows based emulators

I made a little script to download and install emulators. It's called MEWIP (Multi-Emulator Wine Installation Program), and yeah I know it's a lame name :).

It's really easy to use, just download it and run it.

Download it here

and then 'sh install.sh' to download the actual script files and to run the program.




IMPORTANT
  • Do no run it as root!
  • Requirements:
    untar
    wget
    wine
    zenity

    It's very unlikely that you don't have the first two, and Wine can be downloaded from www.winehq.org and you will find Zenity in your repository (it's installed in dists such as Ubuntu, Fedora etc as default).

At the moment, it supports
  • nullDC
  • No$GBA (the free edition)
  • Project64
It's going to be heavily improved when I have time!

Changelog
2009-04-18: Made sure that the script can't be runned by r00t.

ARCH LINUX: How-to watch DVD movies

By default, you won't be able to play DVD movies in Arch Linux, but that can be solved really easy.

Step 1:
Add your user to the group 'optical'. This can be done with the command:
# gpasswd -a USERNAME optical

Or by adding your username to the end of the 'optical' line in the file /etc/group

Step 2:
Install the necessary DVD libraries from Pacman.

# pacman -Sy libdvdread libdvdnav libdvdcss

Step 3:
Select a DVD player. I use VLC, because it's very simple to use but extremely powerful.

You can search in the Arch Linux's repository for the DVD player of your liking, and then install it by:

# pacman -Sy NAMEOFPLAYER

Step 4:
Now log out and in again for the actions to take place, and now you should be able to play DVD's in Arch Linux!


WINE: Clive Barker's Jericho on Linux with Wine!

"Clive Barker’s Jericho is a supernatural horror-themed first person shooter video game with author Clive Barker providing the premise of the storyline..."

I tested this game with the following computer:
Linux Distribution: Ubuntu 8.10
Wine Version: 1.1.8
Video Card: Nvidia 8800GTS 640MB with 177.80 drivers
CPU: Intel E6550 Dualcore, 2,8GHZ, 4MB cache
RAM: 2 GB RAM

1. Install Clive Barker's Jericho
Insert the dvd disc and start installing the game by typing wine Setup.exe. In my case it look like this:

$ cd /media/cdrom0 && wine setup.exe

2. Configure wine prefix
After you have installed the game, you need to edit some things before starting the game. Download:

d3dx9_36.dll
xinput1_3.dll

Extract them and place the dll files in the game's folder (Program Files/Codemasters/Clive Barker's Jericho/bin)

You must also edit the registry. I created a .reg file to make it easier, download it here! After you have downloaded it, just start regedit by typing:

$ regedit

And import the registry file by selecting "Registry" -> "Import registry file..." and select Jericho.reg!

3. Playing the game
Simply start it by typing $ wine Jericho.exe or from the start menu. You must turn off shadows in-game to avoid corrupt graphic!



4. Performance boosters
Start the game with the "WINEDEBUG=-all" command
Turn off Compiz
Increase the priority of Jericho.exe

5. Video

http://www.youtube.com/watch?v=_8TetamJWxs