Linux

From Fap CEO

There's a few method on running Fap CEO on Linux, you can use Anbox (Android Compatibility Layer) and install it through ADB, or use Virtual Machine with Windows installed, or you can also use Wine and install it natively on your Linux system.

Anbox[edit]

Requirements[edit]
  1. Anbox
  2. Working Anbox Internet (Sometime you need anbox-bridge to have a working connection)
  3. Android Debug Bridge (ADB)
  4. Fap CEO Latest APK
Installation[edit]

Make sure all the required programs are installed!

First of all, launch Anbox and make sure you have a working internet inside Anbox.

Then open up your terminal and type in

adb devices

Make sure anbox detected.

Finally type in

adb install /path/to/fapceo.apk

And wait for it to be installed.

Then all you need to do is launch Fap CEO through Anbox.

DISCLAIMER: It may not work on certain distro.

Virtual Machine[edit]

With virtual machine you can either use Windows or Android to run Fap CEO.

Windows[edit]

Requirement[edit]
  1. Virtual Machine (such as VirtualBox and VMWare)
  2. Windows (7/8/8.1/10) iso
  3. Fap CEO Installer
Installation[edit]

Coming Soon.

Android x86[edit]

Requirement[edit]
  1. Virtual Machine (such as VirtualBox and VMWare)
  2. Android x86 iso
  3. Fap CEO latest APK
Installation[edit]

Coming Soon.

Wine[edit]

Requirements[edit]
Game[edit]
  1. .NET Framework 4.0+ (winetricks will install this automatically)
Script[edit]
  1. WINE
  2. httpie
  3. jq
  4. libnotify
  5. unzip
  6. winetricks (optional if prefix is already set up)
Installation[edit]

Make sure all the required programs are installed!

Create a new file at the location you want the game files to be. In this example we're naming the file "launch.sh".

touch "/path/to/launch.sh"

Put the following script in the created "launch.sh" and adjust the settings at the top to your liking.

#!/bin/bash
# ========================== Settings ===========================
# Start in fullscreen: 0 (No), 1 (Yes)
FULLSCREEN=0

# Game size, should be a valid 16:9
# 1920x1080 is the native resolution, other are up or downscaled
# Examples: 1280x720, 2560x1440
WIDTH=1920
HEIGHT=1080
# ===============================================================

# https://stackoverflow.com/a/246128
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
GAME_NAME="Fap CEO"

latest=$(http https://deadlime.com/fapceo-live/api/version.txt --body | jq '.["client"]')
latest_major=${latest:0:1}
latest_minor=$((10#${latest:1:3})) # strip leading zeros
client=$(cat "$SCRIPT_DIR/fapceo_Data/version")

message() {
    echo "$@"
    notify-send --urgency=low "$GAME_NAME" "$@" -t 3000
}

if [[ "$latest" != "null" ]]; then
    if [[ "$client" != "$latest" ]]; then
        message "Downloading update…"

        if http "http://cdn-fapceo.nutaku.net/pc/fapceo-pc-$latest_major.$latest_minor.zip" --download --output "$SCRIPT_DIR/update.zip"; then
            unzip -o "$SCRIPT_DIR/update.zip"
            rm "$SCRIPT_DIR/update.zip"
        else
            message "Failed to download update"
            exit 1
        fi
    fi
else
    message "Unable to retrieve version information. Client may be outdated."
fi

# Safety
if [[ -z "${WINEPREFIX}" ]]; then
    XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}
    WINEPREFIX="$XDG_DATA_HOME/Fap CEO"

    message "Using prefix in $WINEPREFIX"
fi
export WINEPREFIX="$WINEPREFIX"

# First time setup
if [ ! -d "$WINEPREFIX" ]; then
    message "Setting up prefix in $WINEPREFIX"
    mkdir -p "$WINEPREFIX"
    winetricks dotnet40 dxvk
fi

wine "$SCRIPT_DIR/fapceo.exe" \
    "fromLauncher" \
    "-screen-fullscreen" "$FULLSCREEN" \
    "-screen-height" "$HEIGHT" \
    "-screen-width" "$WIDTH"
 

Next, make the script executable. You can run this command in the terminal to do it:

chmod +x "/path/to/launch.sh"

Now everything is set up and you can start the game from now on with:

"/path/to/launch.sh"

or if you already have a wineprefix or want the prefix to be at a specific location with:

WINEPREFIX="/path/to/prefix" "/path/to/launch.sh"

Optionally you can now create a desktop shortcut and call the "launch.sh" script.

Old way[edit]

Requirements[edit]
  1. WINE
  2. Fap CEO Installer
  3. .NET Framework 4.0+
  4. Python
  5. wget
  6. libnotify
Installation[edit]

Make sure all the required programs are installed!

First of all, open and install Fap CEO Installer normally using WINE, after it installed DO NOT press launch just exit the installer.

After that, go to the installation folder. Usually located at "/home/$USER/.wine/drive_c/users/$USER/Application Data/Fap CEO".

*Replace $USER with your Linux username, also the location might different for you depending on how you install it.

Then, create a script and simply name it "launch.sh".

Open it with any Text Editor and put in these code (Created by Reality Mode). Then save it.

#!/bin/bash
 
message() {
 	echo $@
 	notify-send "$@" -t 3000
}
 
path=$( cd "$(dirname "$0")" ; pwd -P )
cd "$path"
 
message "Running FAP CEO from `pwd`"
latest=`curl https://deadlime.com/fapceo-live/api/version.txt 2>/dev/null | python -c "import sys,json; print(json.load(sys.stdin)['client'])"`
client=`cat fapceo_Data/version`
message "Version: $client, latest: $latest"
if [[ "$[client != latest]" == "1" ]]
then
	message Updating...
 	wget http://cdn-fapceo.nutaku.net/pc/fapceo-pc-0.$latest.zip -O update.zip -o update.log &
 	pid=$!
 	sleep 4
 	message "`head update.log -n5 | tail -n1`"
 	while [[ ! -z "`pgrep wget | grep $pid`" ]]
 	do
 		message "`cat update.log | tail -n1`"
 		sleep 1
 	done
 	wait $pid
 	code=$?
 	rm update.log
 	if [[ "$code" == "0" ]]
 	then
 		message "Update downloaded! Extracting..."
 		unzip -o update.zip
 		rm update.zip
 		message Launching...
 	else
 		message "Failed to download update!"
 		exit 1
 	fi
else
	message "Up to date, launching..."
fi
wine FapCeoLauncher2.0.exe
 

Next, make the script executable. You can run this command on terminal to do it,

chmod +x "/path/to/launch.sh"

Finally, edit the Fap CEO shortcut that located in "~/.local/share/applications/wine/Programs/Fap CEO/Fap CEO.desktop" using any Text Editor.

Find a code that begin with

Exec=

And replace it to

Exec="/home/$USER/drive_c/users/$USER/Application Data/Fap CEO/launch.sh"

*Replace $USER with your Linux username, also the location might different for you depending on how you install it.

Then you can launch Fap CEO like you normally launch any other program.

If it refused to launch or crashed. You can try these solutions,

  • Reboot your system, then launch Fap CEO again.
  • Install newer version of .NET Framework.
  • Uninstall Wine Mono (It sometime break .NET Framework).
  • Uninstall and try again.
  • Don't use Fullscreen
  • Change "wine FapCeoLauncher2.0.exe" at the end of the code to "wine fapceo.exe fromLauncher -screen-fullscreen 0 -screen-height 1080 -screen-width 1920"

DISCLAIMER: This method may not run 100% smoothly on certain device/distro. Also never run it as sudo, it may gonna break it.