Results 1 to 1 of 1
  1. #1

    [Tutorial] Cheat on linux 64 bit

    Prerequisite
    - You need to have a 64 bits linux distribution
    - You need graphical driver acceleration enabled on your 64 bits distribution (mesa, nvidia or fglrx driver)
    To check if you have graphical acceleration enabled, install mesa-utils package
    Code:
    sudo apt-get install mesa-utils
    Then, type
    Code:
    glxinfo | grep -i rendering
    You must see this output
    Code:
    direct rendering: Yes
    I will take a Debian based distribution (Ubuntu 15 64 bit) as example.

    So basically what we will have to do is to install a 32 bits linux distribution in a subdirectory of your current 64 bits linux.
    - You will need deboostrap package
    Code:
    sudo apt-get install debootstrap
    then, start to download debian jessie 32 bits using debootstrap
    Code:
    mkdir -p /opt/debian32
    sudo debootstrap --arch i386 jessie /opt/debian32/
    Ok, now we need to give access to our 32 bits linux to the X11 server of the 64 bits linux.
    For that, we must edit the fstab (file systems table)
    Code:
    sudo nano /etc/fstab
    then copy/paste this in it
    Code:
    /proc /opt/debian32/proc none rbind 0 0
    /dev /opt/debian32/dev none rbind 0 0
    /sys /opt/debian32/sys none rbind 0 0
    /tmp /opt/debian32/tmp none rbind 0 0
    /home /opt/debian32/home none rbind 0 0
    /media /opt/debian32/media none rbind 0 0
    /lib/modules /opt/debian32/lib/modules none rbind 0 0
    /var/run/dbus/ /opt/debian32/var/run/dbus/ none rbind 0 0
    Now we need to reload the fstab, so
    Code:
    sudo mount -a
    Ok now, we can use our 32 bits linux, for that we need to chroot (change root)
    Code:
    sudo chroot /opt/debian32/
    We are in !

    Now we must go to our home folder
    Code:
    cd /root
    - Download and install Wolfenstein - Enemy Territory 2.60b

    Now we need to install eth dependencies, but first, we need to change the source list to add needed repositories to download eth dependencies
    First, open the source.list file
    Code:
    nano /etc/apt/sources.list
    Then add those repo (for faster download speed, change "us" to your country)
    Code:
    deb http://ftp.us.debian.org/debian jessie main contrib non-free
    deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
    deb http://security.debian.org/ jessie/updates main contrib non-free
    deb http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free
    Now we must update the package list
    Code:
    apt-get update
    We can now download and install the eth dependencies
    Code:
    apt-get install make scons binutils-dev libelfg0 libelfg0-dev libcppunit-dev libx11-dev libgl1-mesa-dev zlib1g-dev g++ gcc pkg-config zip
    Ok now download eth/eth32nix release and put the archive in the root folder.
    For this example I'll take ETH-1.4

    Now extract it
    Code:
    tar xvzf ETH_1.4.tar.gz
    then, compile it
    Code:
    cd ~/ETH-1.4/source/
    make RELEASE=1
    When build is done, we must move the pk3 file which contains the visual effects to etmain
    Code:
    mv eth.pk3 ~/.etwolf/etmain/
    Move the program to precompiled folder
    Code:
    mv libETH.so ../precompiled/
    Now, we must create a launcher file to start W:ET and inject ETH in it
    Code:
    nano ~/ETH-1.4/precompiled/run.sh
    Put this command in it
    Code:
    #!/bin/bash
    export ETH_DIR=`pwd`
    export LD_PRELOAD="$ETH_DIR/libETH.so"
    cd /usr/local/games/enemy-territory/
    vblank_mode=0 ./et.x86 +set com_zonemegs 128 +set net_port $(( ((RANDOM<<15)|RANDOM) % 63001 + 2000 )) $*
    unset LD_PRELOAD
    Now we must make it executable
    Code:
    chmod +x ~/ETH-1.4/precompiled/run.sh
    Alright, now you can play !
    Code:
    cd ~/ETH-1.4/precompiled/
    ./run.sh
    Credit: annihil.com
    Last edited by Killingman53; February 10th, 2017 at 17:40.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •