#StackBounty: #command-line #apt #package-management #updates #update-manager How to enable or disable -updates, -security, -backports,…

Bounty: 50

Let’s assume that we are using Ubuntu 18.04 LTS (Bionic Beaver).

I know GUI ways to enable or disable the following repositories:

  1. Important security updates (bionic-security)
  2. Recommended updates (bionic-updates)
  3. Pre-released updates (bionic-proposed)
  4. Unsupported updates (bionic-backports)

In KDE user may want to open Software & Updates (or software-properties-kde) and navigate to Updates tab.
In GNOME, MATE, Xfce user should open Software & Updates (or software-properties-gtk) and navigate to Updates tab for -security, -updates and -backports and Developer options tab for -proposed.

But how to enable or disable -updates, -security, -backports, -proposed repositories from commandline?

Note: I need a solution without direct editing of /etc/apt/sources.list.

Update: I created discussion and poll named “Does Ubuntu need console alternative for software-properties-gtk / software-properties-kde?” on community.ubuntu.com.


Get this bounty!!!

#StackBounty: #command-line #kernel #scripts #postscript how can I modify binfmt_misc kernel module to make postscript files system exe…

Bounty: 100

I begin all my scripts with %!PS, and I am wondering what I can do to make the scripts system executable. So far i have been runing everything from the ghostscript terminal. I tried making the files executeable, but it results in errors amounting to the script being run line by line, and being missinterpreted.

Heres a simple source:

%!PS
/Times findfont 72 scalefont setfont
306 396 translate % move center to here

4{
         2 2 moveto
        90 rotate
        (H@x0rz) true charpath stroke

}repeat
showpage

and here are the errors that follow when trying to run it.

$ ./rotate.ps 
./rotate.ps: line 1: fg: no job control
./rotate.ps: line 2: /Times: No such file or directory
./rotate.ps: line 3: 306: command not found
./rotate.ps: line 5: 4{: command not found
./rotate.ps: line 6: 2: command not found
./rotate.ps: line 7: 90: command not found
./rotate.ps: line 8: syntax error near unexpected token `true'
./rotate.ps: line 8: `  (H@x0rz) true charpath stroke'

how can I make my postscript files system executable.
using Ubuntu Mate 18.04 or later.

EDIT trying to use binfmt-misc::

OK so I am looking at setting up binfmt-misc to execute the postcript, but I am not sure how to set it up.
In

#/proc/sys/fs/binfmt_misc$ ls
register  status

the status file says enabled,
and the register file is blank.

on the binfmt-misc wiki page I see some examples, but I also see a reference to a “TYPE CODE”
and i do not know what that is for postscript.

I tried adding
GS:M:MZ::/home/user/bin/gs
to register, via vim and echo but I got read and write errors even as root, and now I get permission denied when I try to edit the register file.

 root@xy:/proc/sys/fs/binfmt_misc# echo 'GS:M:MZ::/home/user/bin/gs'  > register  
-bash: echo: write error: Invalid argument

Admitadly, I have no clue what I am doing.

I also tried putting a shebang with the ghostscript path at the first line of my script, and that comes back with ghostscript having an unrecoverable error,
it loads a window that immediately closes. Im not sure what to do.

the websites I have been reading are:
https://elixir.bootlin.com/linux/v4.6/source/Documentation/binfmt_misc.txt
https://en.wikipedia.org/wiki/Binfmt_misc


Get this bounty!!!

#StackBounty: #command-line #wine #games #steam Error on executing Steam Play game via command-line (Proton)

Bounty: 100

I’m trying to run SteamApp : 9420, supreme commander – forged alliance.

I’m running into trouble.

what I do is first change to steam’s proton directory :

cd ~/.local/share/Steam/steamapps/common/Proton*

then I try to run the game :

STEAM_COMPAT_DATA_PATH=/home/t/.local/share/Steam/steamapps/compatdata/9420 ./proton run /home/t/.local/share/Steam/steamapps/common/Supreme Commander Forged Alliance/bin/SupremeCommander.exe

I get an Error window : “Application load error P : 0000065615”

and closing this simply brings me back to terminal with no extra output like this :

enter image description here

I’ve also tried like this (seperating the two commands):

enter image description here

as you can see the error message changes almost every time.

here’s it’s : “Application load error 5 : 0000065434”

I’ve messed around with global proton settings but I feel that’s not relevant as the game already starts fine from steam.

I’d started this question here (Error on executing steam proton app via command-line) but I was asked to start a new one by @David Foerster because he deemed the original question had more or less been solved.

the problem remains that I still haven’t successfully started this game from command line.

I’ve experimented with other games (this time age of empires 2 HD ) :

enter image description here

and it fails, but with a much more verbose message, stating steam must be running, another failure of some sort because I had my steam running at the time because I had just finished testing that it would run if I cliked the play button in steam and it had.

With bannerman, there is no log at all (and it does run when started via steam GUI) :

enter image description here

Shadow Complex Remastered via this method runs for about two seconds then crashes :

(some console logs this time :

CAppInfoCacheReadFromDiskThread took 3 milliseconds to initialize
CApplicationManagerPopulateThread took 7 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)

)

enter image description here
and again (basically as is the case for any “Steam Play” app) it runs fine when run from steam.

but when this is attempted from the terminal it fails.

Anyone know what it is I’m doing wrong here?

EDIT :

maybe some potential here :

1:

WINEPREFIX="/home/t/fa-wineprefix/":"/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/lib/wine winecfg"

2:

PATH="/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/bin/:$PATH"  

3:

WINEDLLPATH="/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/lib64/wine:/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/lib/wine"  

4:

LD_LIBRARY_PATH="/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/lib64:/path/to/steam/steamapps/common/Proton 3.7/dist/lib:/usr/lib/steam:/usr/lib32/steam"

5: (an issue occurs when I try to run this final step : )

WINEPREFIX="/home/t/fa-wineprefix/"  "/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/bin/./wine"   "/home/t/.local/share/Steam/steamapps/common/Supreme Commander Forged Alliance/bin/SupremeCommander.exe"

.

0009:err:file:init_redirects cannot open L"C:\windows" (c000000f)
wine: cannot find '/home/t/.local/share/Steam/steamapps/common/Supreme Commander Forged Alliance/bin/SupremeCommander.exe'


Get this bounty!!!

#StackBounty: #command-line #wine #games #steam Error on executing "Steam Play" game via command-line (Proton)

Bounty: 100

I’m trying to run SteamApp : 9420, supreme commander – forged alliance.

I’m running into trouble.

what I do is first change to steam’s proton directory :

cd ~/.local/share/Steam/steamapps/common/Proton*

then I try to run the game :

STEAM_COMPAT_DATA_PATH=/home/t/.local/share/Steam/steamapps/compatdata/9420 ./proton run /home/t/.local/share/Steam/steamapps/common/Supreme Commander Forged Alliance/bin/SupremeCommander.exe

I get an Error window : “Application load error P : 0000065615”

and closing this simply brings me back to terminal with no extra output like this :

enter image description here

I’ve also tried like this (seperating the two commands):

enter image description here

as you can see the error message changes almost every time.

here’s it’s : “Application load error 5 : 0000065434”

I’ve messed around with global proton settings but I feel that’s not relevant as the game already starts fine from steam.

I’d started this question here (Error on executing steam proton app via command-line) but I was asked to start a new one by @David Foerster because he deemed the original question had more or less been solved.

the problem remains that I still haven’t successfully started this game from command line.

I’ve experimented with other games (this time age of empires 2 HD ) :

enter image description here

and it fails, but with a much more verbose message, stating steam must be running, another failure of some sort because I had my steam running at the time because I had just finished testing that it would run if I cliked the play button in steam and it had.

With bannerman, there is no log at all (and it does run when started via steam GUI) :

enter image description here

Shadow Complex Remastered via this method runs for about two seconds then crashes :

(some console logs this time :

CAppInfoCacheReadFromDiskThread took 3 milliseconds to initialize
CApplicationManagerPopulateThread took 7 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)

)

enter image description here
and again (basically as is the case for any “Steam Play” app) it runs fine when run from steam.

but when this is attempted from the terminal it fails.

Anyone know what it is I’m doing wrong here?

EDIT :

maybe some potential here :

1:

WINEPREFIX="/home/t/fa-wineprefix/":"/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/lib/wine winecfg"

2:

PATH="/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/bin/:$PATH"  

3:

WINEDLLPATH="/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/lib64/wine:/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/lib/wine"  

4:

LD_LIBRARY_PATH="/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/lib64:/path/to/steam/steamapps/common/Proton 3.7/dist/lib:/usr/lib/steam:/usr/lib32/steam"

5: (an issue occurs when I try to run this final step : )

WINEPREFIX="/home/t/fa-wineprefix/"  "/home/t/.local/share/Steam/steamapps/common/Proton 3.7/dist/bin/./wine"   "/home/t/.local/share/Steam/steamapps/common/Supreme Commander Forged Alliance/bin/SupremeCommander.exe"

.

0009:err:file:init_redirects cannot open L"C:\windows" (c000000f)
wine: cannot find '/home/t/.local/share/Steam/steamapps/common/Supreme Commander Forged Alliance/bin/SupremeCommander.exe'


Get this bounty!!!

#StackBounty: #command-line #gnome #intel #amdgpu #ethereum Is there a way to force X to use Intel integrated graphics while mining Eth…

Bounty: 50

Update Did some further digging and found out the solution to this problem for the old fglrx driver: https://bitcointalk.org/index.php?topic=170470.60 This however does not work with the AMDGPU drivers, which don’t come with switchlibglx prepackaged as far as I know.

Update 2 — Found this possible solution but it didn’t work. Getting either one of 2 things: A, a black screen when I run systemctl isolate graphical.target, or B, if I proceed to blacklist the driver, the inability to mine.

Update 3 Opened /var/log/Xorg.0.log in a VT (with systemd default temporarily set to multi-user.target while this problem persists) ― extremely bizarre “no screens found” error. Wonder if AMDGPU drivers are actually trying to force X to use them on startup; hopefully not.

Update 4 Found these instructions in the Arch Linux forums when researching the exact message re: not finding any displays — now, instead of exiting abnormally, the system simply hangs when I try to run startx. An improvement, but still doesn’t work.

Update 5 The above hang happens for about 5 minutes, then it exits with a “Connection refused” error. Pulled up ~/.local/share/xorg/Xorg.0.log — it actually says “Server terminated successfully” despite startx output saying that’s what needs to be consulted.

Update 6 Googling site:bugs.launchpad.net "amdgpu" turned up this bug report which may be related to this problem. Attempted the workaround there ― nope, didn’t work.

Update 7 Running journalctl | grep gdm | grep EE | less turned up some rather valuable information in helping solve this problem:

(EE) open /dev/fb0: Permission denied

WTF is the AMDGPU driver doing to the permissions on the framebuffer?

Update 8 Still no solution; placing bounty.

Original description starts below.

Alright, so I just built a mining rig that has Ubuntu 18.04.1 on it (tried pre-release 18.10 but for some reason AMDGPU fails to build DKMS modules in that case even with known workarounds like version spoofing applied, so had to just downgrade). The card is working fine; mining ETH at between 24.2 and 24.3 MH/s even with just one Sapphire Nitro Radeon RX 480 (which has a much better fan than the stock card and can thus sustain a high hashrate when fan speed is cranked all the way up).

The system also has an Intel Core i5-8400 CPU on it — which not only has six cores but also has on-chip graphics — running on the MSI H310-F Pro motherboard. Before I got the AMDGPU drivers configured to run that card, GNOME Shell was running perfectly fine. After I got the discrete GPU configured for mining, however, suddenly there’s nothing but VTs — no GNOME, no GDM, no X, no nothing. Is there a way, therefore, to force X to use the Intel integrated graphics chip on the i5-8400 in order to be able to both use the desktop and mine at the same time? Any help would be greatly appreciated.


Get this bounty!!!

#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!!!