#StackBounty: #command-line #games #steam Error on executing steam proton app via command-line

Bounty: 200

I’d like to launch a proton app installed via steam but without using steam.

the point being I can make my own command-line launcher and pass parameters etc…

since I’m entirely new to this I don’t know by which horn to grab the bull.

will I be able to course through steam’s lib or will I be forced to install my own separate version of proton?

Here’s the system info steam gathered of my system :

Computer Information:
    Manufacturer:  Unknown
    Model:  Unknown
    Form Factor: Desktop
    No Touch Input Detected

Processor Information:
    CPU Vendor:  GenuineIntel
    CPU Brand:         Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
    CPU Family:  0x6
    CPU Model:  0x2d
    CPU Stepping:  0x7
    CPU Type:  0x0
    Speed:  3800 Mhz
    12 logical processors
    6 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported
    AES:  Supported
    AVX:  Supported
    CMPXCHG16B:  Supported
    LAHF/SAHF:  Supported
    PrefetchW:  Unsupported

Operating System Version:
    Ubuntu 18.04.1 LTS (64 bit)
    Kernel Name:  Linux
    Kernel Version:  4.15.0-33-generic
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11906000
    X Window Manager:  GNOME Shell
    Steam Runtime Version:  steam-runtime-beta-release_2018-06-14

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 760/PCIe/SSE2
    Driver Version:  4.6.0 NVIDIA 390.48
    OpenGL Version: 4.6
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x10de
    DeviceID:  0x1187
    Revision Not Detected
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 1920 x 1080
    Primary Display Size: 20.04" x 11.26" (22.95" diag)
                                            50.9cm x 28.6cm (58.3cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 2048 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC898

Memory:
    RAM:  15988 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_US.UTF-8
    Total Hard Disk Space Available:  491396 Mb
    Largest Free Hard Disk Block:  250110 Mb
    VR Headset: None detected

Recent Failure Reports:

The specific game I’m trying to run is Supreme Commander Forged Alliance and it runs fine via steam.

I don’t know why people have been giving it garbage steam play reports on the steam play compatibility site but personally; it runs perfectly:

https://spcr.netlify.com/app/9420

all I have to do is press altF4 two times and wait a lot to trick the main menu into showing up and past the main menu there are no bugs at all the in-game experience is fluid and stable.

but yeah, that game’s entire online community is on FAF not on steam, both FAF python and FAF java run naively on Linux nowadays for the final key is getting java-FAF to make the correct proton calls to Forged Alliance for the game to fully work 🙂

Guide to get to where I’m at :

Prerequisite: Ubuntu 18.04.1

since this is the ask ubuntu forum it makes sense that you’d be using Ubuntu.

Also, the very latest version has proton working best so use that.

Note that doing all of this inside an emulation will cause problems when you get to the step of running the game under proton, so it’s best to boot this Ubuntu 18.04.01 natively.

To install Forged Alliance :

Prerequisite: owning Supreme Commander Forged Alliance on steam (only steam is the only platform that has Proton that I’m aware of).

this is not very hard the game is regularly on sale at 2€ and is available for as cheap or cheaper from third party steam key vendors.

Install steam on your Ubuntu, this can be done from the Software center after adding the “canonical partners” source. it can also be done by running the Linux installer downloaded from the steam-powered website.

run and login to a steam account.

then go into your steam settings and enable Proton game installation for Linux.

once that is done Forged Alliance will show up as installable.

simply click install.

once that is done you may test running the game.

the game will start but the screen will be black, simply hit enter, enter, then altF4 then wait. this will trick the graphics stack into refreshing and the prompt saying “do you really want to exit to desktop?” will be on your screen.

close this and click on “create profile”, type anything you want and validate, then click on the button that basically says “enter with this profile”, the main menu is now supposed to show up but it black screens again : as you’ve figured out : hit altF4, wait for this action to refresh the view and again, close the “exit to desktop” prompt.

the menu is laggy but go to settings then -> graphics and switch to your native resolution (I haven’t tried windowed yet, didn’t want to press my luck).

also in the settings, you can turn off the main menu background video.

once you’ve done that the main menu is still laggier then it would be on windows but better. and you can run a skirmish (or the tutorial that it advises you to do first) and bear witness to the fluid in-game performance.

To install FAF :

install JRE 8 on your system and set it as default (here’s how I like to get that done) :

sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer -y
sudo apt install oracle-java8-set-default

(yes I choose to do the whole Oracle JDK I have much more reliable results doing that than open-JDK or just the jre. also for most ubuntu’s the last line will be moot as it will have been done automatically already but it can’t hurt either way)

(if your java-version output is still incorrect despite this you can edit your .bashrc under home add export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-8-oracle at the end and then type export .bashrc)

download this: http://geosearchef.de/downlords-faf-client_linux_0_9_0-beta-rc_3.deb (keep the file despite chrome/firefoxe’s warning)

go to the folder it’s in (normally this should do the trick) :

cd Downloads/

then install it :

sudo apt install ./downlords-faf-client_linux_0_9_0-beta-rc_3.deb

then take ownership of the newly created directory :

sudo chown YOURLOGINNAME -R /opt/downlords-faf-client-0.9.0-beta-rc.3/

make two crucial files executable :

sudo chmod +x /opt/downlords-faf-client-0.9.0-beta-rc.3/downlords-faf-client && sudo chmod +x /opt/downlords-faf-client-0.9.0-beta-rc.3/lib/faf-uid

got to the newly created dir (changing dir is not personal preference here, the command to run will fail if issued outside of the install dir, sorry, this will be fixed later) :

cd /opt/downlords-faf-client-0.9.0-beta-rc.3/

and run FAF :

downlords-faf-client

or

./downlords-faf-client

now you should have FAF started. If you do not have an account you may create one.

after this, you can go into FAF’s settings and there you can configure run folder and run arguments for FA.

Update for @simplegamer :

the issue I’m having is that I can’t find what I’m looking for :

Normally Forged Alliance shows up as a folder under Program File (x86) called “Supreme Commander Forged Alliance”
enter image description here

I’ve already tried searching in this folder for any of these keywords with no hits.

I don’t understand :

After finding the folder new update (error message) :
enter image description here


Get this bounty!!!

#StackBounty: #command-line #games #steam executing steam proton app via command-line

Bounty: 200

I’d like to launch a proton app installed via steam but without using steam.

the point being I can make my own command-line launcher and pass parameters ect…

since I’m entirely new to this I don’t know by which horn to grab the bull.

will I be able to course through steam’s lib or will I be forced to install my own separate version of proton?

Here’s the system info steam gathered of my system :

Computer Information:
    Manufacturer:  Unknown
    Model:  Unknown
    Form Factor: Desktop
    No Touch Input Detected

Processor Information:
    CPU Vendor:  GenuineIntel
    CPU Brand:         Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
    CPU Family:  0x6
    CPU Model:  0x2d
    CPU Stepping:  0x7
    CPU Type:  0x0
    Speed:  3800 Mhz
    12 logical processors
    6 physical processors
    HyperThreading:  Supported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Unsupported
    SSE41:  Supported
    SSE42:  Supported
    AES:  Supported
    AVX:  Supported
    CMPXCHG16B:  Supported
    LAHF/SAHF:  Supported
    PrefetchW:  Unsupported

Operating System Version:
    Ubuntu 18.04.1 LTS (64 bit)
    Kernel Name:  Linux
    Kernel Version:  4.15.0-33-generic
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11906000
    X Window Manager:  GNOME Shell
    Steam Runtime Version:  steam-runtime-beta-release_2018-06-14

Video Card:
    Driver:  NVIDIA Corporation GeForce GTX 760/PCIe/SSE2
    Driver Version:  4.6.0 NVIDIA 390.48
    OpenGL Version: 4.6
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x10de
    DeviceID:  0x1187
    Revision Not Detected
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 1920 x 1080
    Primary Display Size: 20.04" x 11.26" (22.95" diag)
                                            50.9cm x 28.6cm (58.3cm diag)
    Primary Bus: PCI Express 16x
    Primary VRAM: 2048 MB
    Supported MSAA Modes:  2x 4x 8x 16x 

Sound card:
    Audio device: Realtek ALC898

Memory:
    RAM:  15988 Mb

Miscellaneous:
    UI Language:  English
    LANG:  en_US.UTF-8
    Total Hard Disk Space Available:  491396 Mb
    Largest Free Hard Disk Block:  250110 Mb
    VR Headset: None detected

Recent Failure Reports:

The specific game I’m trying to run is Supreme Commander Forged Alliance and it runs fine via steam.

I don’t know why people have been giving it garbage steam play reports on the steam play compatibility site but personally ; it runs perfect :

https://spcr.netlify.com/app/9420

all I have to do is press alt-F4 two times and wait a lot to trick the main menu into showing up and past the main menu there’s no bugs at all the in game experience is fluid and stable.

but yeah, that game’s entire online community is on FAF not on steam, both FAF python and FAF java run naively on linux nowadays sor the final key is getting java-FAF to make the correct proton calls to Forged Alliance for the game to fully work 🙂

Guide to get to where I’m at :

Prerequisite : Ubuntu 18.04.1

since this is the ask ubuntu forum it makes sense that you’d be using ubuntu.

Also the very latest version has proton working best so use that.

Note that doing all of this inside an emulation will cause problems when you get to the step of running the game under proton, so it’s best to boot this ubuntu 18.04.01 natively.

To install Forged Alliance :

Prerequisite : owning Supreme Commander Forged Alliance on steam (only steam is the only platform that has Proton that I’m aware of).

this is not very hard the game is regularly on sale at 2€ and is available for as cheap or cheaper from third party steam key vendors.

Install steam on your ubuntu, this can be done from the Software center after adding the “canonical partners” source. it can also be done by running the linux installer downloaded from the steam powered website.

run and login to a steam account.

then go into your steam settings and enable Proton game installation for linux.

once that is done Forged Alliance will show up as installable.

simply click install.

once that is done you may test running the game.

the game will start but the screen will be black, simply hit enter, enter, then altF4 then wait. this will trick the graphics stack into refreshing and the prompt saying “do you really want to exit to desktop?” will be on your screen.

close this and click on “create profile”, type anything you want and validate, then click on the button that basically says “enter with this profile”, the main menu is now supposed to show up but it black screens again : as you’ve figured out : hit altF4, wait for this action to refresh the view and again, close the “exit to desktop” prompt.

the menu is laggy but go to settings then -> graphics and switch to your native resolution (I haven’t tried windowed yet, didn’t want to press my luck).

also in the settings you can turn off the main menu background video.

once you’ve done that the main menu is still more laggy then it would be on windows but better. and you can run a skirmish (or the tutorial that it advises you to do first) and bear witness to the fluid in-game performance.

To install FAF :

install JRE 8 on your system and set it as default (here’s how I like to get that done) :

sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer -y
sudo apt install oracle-java8-set-default

(yes I choose to do the whole oracle JDK I have much more reliable results doing that than open-JDK or just the jre. also for most ubuntu’s the last line will be moot as it will have been done automatically already but it can’t hurt either way)

(if your java-version output is still incorrect despite this you can edit your .bashrc under home add export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-8-oracle at the end and then type export .bashrc)

download this : http://geosearchef.de/downlords-faf-client_linux_0_9_0-beta-rc_3.deb (keep the file despite chrome/firefoxe’s warning)

go to the folder it’s in (normally this should do the trick) :

cd Downloads/

then install it :

sudo apt install ./downlords-faf-client_linux_0_9_0-beta-rc_3.deb

then take ownership of the newly created directory :

sudo chown YOURLOGINNAME -R /opt/downlords-faf-client-0.9.0-beta-rc.3/

make two crucial files executable :

sudo chmod +x /opt/downlords-faf-client-0.9.0-beta-rc.3/downlords-faf-client && sudo chmod +x /opt/downlords-faf-client-0.9.0-beta-rc.3/lib/faf-uid

got to the newly created dir (changing dir is not personal preference here, the command to run will fail if issued outside of the install dir, sorry, this will be fixed later) :

cd /opt/downlords-faf-client-0.9.0-beta-rc.3/

and run FAF :

downlords-faf-client

or

./downlords-faf-client

now you should have FAF started. If you do not have an account you may create one.

after this you can go into FAF’s settings and there you can configure run folder and run arguments for FA.


Get this bounty!!!

#StackBounty: #linux #windows #command-line #shortcuts #file-shortcut Cross-platform shortcut to executable file, both archived

Bounty: 50

I have a directory (which is later archived) in which a shortcut to an executable file (.exe), which itself is a few directories deeper.
The first problem encountered is “.lnk” shortcuts require exact path. E.g. “D:/someFolder/parentOfShortcut/files/dir/dir/dir/software.exe commandForTheExe
and if the directory parentOfShortcut is moved to the root (for example), the shortcut will be still looking for the app in “D:/someFolder/parentOf…“.
I thought of using a “.bat” file, however, that’s a Windows-only solution, while the app itself is compatible also with both Linux and MacOS. The second problem of the “.bat” is that users never trust that type of files so does any antivirus software.

It is a quandary that the location of parentOfShortcut can be anywhere since users download that folder (as a .zip archive) and are free to save it in any given directory on their machine.

For reference, here’s the exact file structure

(unknown path)/MySoftware(.zip)
    +- Shortcut.lnk
    |- files
        |- node_modules
            |- dist
                +- theApp.exe (with command "boot.main")

Edit:

The .exe can’t be moved, for it depends on .dll files in the same, in the upper and in some lower-level directories.


Get this bounty!!!

#StackBounty: #windows #command-line #windows-registry #fonts How can I add additional fonts to the Windows console?

Bounty: 50

I found a guide online stating that you need to edit the registry in order to add new fonts to the list of available fonts in Command Prompt: specifically, you have to edit the HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionConsoleTrueTypeFont key by adding string values with keys 00, 000, 0000, and so on, with their values being the names of the fonts. I’ve already done this. I added the font names to the registry, as you can in the screenshot below, and restarted the computer.

regedit

However, the fonts which I’ve added aren’t showing up in the list. More specifically, I added Inconsolata and Source Code Pro. But I don’t see them in the list of available fonts.

console fonts

What am I missing?

I am using Windows 10 version 1803, build 17134.165.


Get this bounty!!!

#StackBounty: #command-line #kde #qt Is there a way to set the QT icon theme, and other theme elements, from the command line?

Bounty: 50

I’m trying to automate the process of theming QT5 programs, in the absence of a DE like KDE, by writing a script that does it. I know that GTK has a bunch of config files that can specify all the aspects of a theme, but what’s the equivalent for QT5?

So far, I’ve found out that I can set QT_THEME_OVERRIDE to set the theme, and XCURSOR_THEME to set the cursor theme (QT5 appears to respect this). But what about the icon theme and everything else?

I’ve also seen this Arch Wiki section about a similar issue, and a few other questions that suggest using the graphical configurator qt5ct, but I’m really trying to write something that makes this change, rather than have a configurator do it, so that I don’t have to repeat this process if I replicate my system install somewhere else.

(This is so I can write a .nix expression for home-manager that can handle qt5 theming declaratively, but that’s beside the point.)


Get this bounty!!!

#StackBounty: #command-line #software-installation #shortcut-keys #auto-completion TextSuggest Universal Autocomplete Installation Error

Bounty: 50

I followed the instructions to install the autocomplete tool TextSuggest but now I’m stuck at this part:

Run the command textsuggest-server in the background, and set it to
run on startup.

Set the command textsuggest to a keyboard shortcut.
Type a word, select it, press the shortcut and TextSuggest will give
you autocomplete.

After running the command in the terminal this error comes up:

doit@tox:~$ textsuggest-server
textsuggest-server: command not found

Same error if I run it in the CD of textsuggest.
Also I got this error after the installation:

/usr/include/dbus-c++-1/dbus-c++/dispatcher.h:249:13: note:
conversion of argument 3 would be ill-formed: Makefile:416: recipe for
target ‘textsuggest-ui.o’ failed make: *** [textsuggest-ui.o] Error 1

How to get it to work? I’m using gcc (Ubuntu 7.2.0-8ubuntu3.2) 7.2.0


Get this bounty!!!

#StackBounty: #command-line #bash #zsh Zsh or Bash: Pass all command output through pager like app automatically?

Bounty: 50

Is there a way in bash or zsh to automatically pipe all output from any commands I run through another program?

For example, if I ran this command

$ cat /tmp/it

I’d like it to run like I had written it like so:

$ cat /tmp/it | tee /tmp/cmdoutput

where the | tee /tmp/cmdoutput part could be any command at all. My use cases are for colorization and for saving output for commands I run so I can edit them in vim, or search them in vim. I do these things already manually but want to know if there’s a way to do this automatically, and am looking for a general solution!


Get this bounty!!!

#StackBounty: #command-line #nautilus #18.04 #thumbnails #gthumb Automatically generate raw thumbnails only with gThumb

Bounty: 50

I would like to generate camera raw file thumbnails (Nikon .NEF) in Nautilus with gThumb, without opening the app, and when no additional thumbnailer is installed. Some script or a Terminal command, I guess. When a folder with pictures is opened in gThumb’s folders browser it generates thumbnails in /home/.thumbnails if the thumbnail for that file is not already there. Also, can it be done just by opening the folder with the raw files in Nautilus, as a thumbnailer would do it? For the moment gnome-raw-thumbnailer and ufraw-batch are buggy for 18.04, gdk-pixbuf-thumbnailer generates low quality thumbnails for raw files, so I’m not using any of them. Thanks!


Get this bounty!!!

#StackBounty: #command-line #apt #microsoft How to install mssql-cli at UBUNTU 18 LTS?

Bounty: 50

I am using apt install mssql-cli in a fresh UBUNTU 18 LTS, and, even after used this answer (mssql-server installed with successes) and this other one (executed all commands), there are “unmet dependencies”,

apt install mssql-cli:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mssql-cli : Depends: libicu52 but it is not installable or
                      libicu55 but it is not installable or
                      libicu57 but it is not installable
E: Unable to correct problems, you have held broken packages.

note

A similar problem when apt install powershell:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 powershell : Depends: libcurl3 but it is not going to be installed
              Depends: libicu55 but it is not installable
E: Unable to correct problems, you have held broken packages.

dumps

/etc/apt/sources.list.d/microsoft.list:

 deb [arch=amd64] https://packages.microsoft.com/ubuntu/17.10/prod artful main

/etc/apt/sources.list:

deb http://mirrors.digitalocean.com/ubuntu/ bionic main restricted
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic main restricted

deb http://mirrors.digitalocean.com/ubuntu/ bionic-updates main restricted
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic-updates main restricted

deb http://mirrors.digitalocean.com/ubuntu/ bionic universe
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic universe
deb http://mirrors.digitalocean.com/ubuntu/ bionic-updates universe
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic-updates universe

deb http://mirrors.digitalocean.com/ubuntu/ bionic multiverse

deb http://mirrors.digitalocean.com/ubuntu/ bionic universe
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic universe
deb http://mirrors.digitalocean.com/ubuntu/ bionic-updates universe
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic-updates universe

deb http://mirrors.digitalocean.com/ubuntu/ bionic multiverse
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic multiverse
deb http://mirrors.digitalocean.com/ubuntu/ bionic-updates multiverse
deb-src http://mirrors.digitalocean.com/ubuntu/ bionic-updates multiverse


Get this bounty!!!