#!/bin/sh
unset LD_PRELOAD
rm -rf /tmp/desktop-mode
mkdir -p /tmp/desktop-mode
cat > /tmp/desktop-mode/kwin_wayland_wrapper << EOF
#!/bin/sh
$(which kwin_wayland_wrapper) --no-lockscreen --width 1280 --height 800 --x11-display $DISPLAY \$@
EOF
chmod +x /tmp/desktop-mode/kwin_wayland_wrapper
kwriteconfig5 --file startkderc --group General --key systemdBoot false
PATH=/tmp/desktop-mode:$PATH startplasma-wayland
kwriteconfig5 --file startkderc --group General --key systemdBoot --delete
sudo steamos-readonly disable
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --refresh-keys
sudo pacman -Sy archlinux-keyring
sudo pacman -S base-devel
sudo pacman -Syu --needed base-devel git python-pip
pip uninstall PyQt5 PyQt5-Qt5 PyQt5-sip PyQtWebEngine PyQtWebEngine-Qt5
sudo pacman -Syu --noconfirm --needed python-pyqt5 qt5-webengine qt5-svg qt5-webkit
pip install https://pxo.nottheeye.com/files/test/knossos/knossos-0.15.0.dev0+73b131a.tar.gz
#!/bin/sh
unset LD_PRELOAD
rm -rf /tmp/desktop-mode
mkdir -p /tmp/desktop-mode
cat > /tmp/desktop-mode/kwin_wayland_wrapper << EOF
#!/bin/sh
$(which kwin_wayland_wrapper) --no-lockscreen --width 1280 --height 800 --x11-display $DISPLAY \$@
EOF
chmod +x /tmp/desktop-mode/kwin_wayland_wrapper
kwriteconfig5 --file startkderc --group General --key systemdBoot false
PATH=/tmp/desktop-mode:$PATH startplasma-wayland
kwriteconfig5 --file startkderc --group General --key systemdBoot --delete
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Version=1.0
Name=Knossos
Icon=hlp.png
Exec=python -m knossos
Terminal=false
MimeType=x-scheme-handler/fso;
sudo pacman-key --populate archlinux
sudo nano /etc/pacman.conf
and modify these:sudo pacman -Sy
Alright. I'm nerdy but apparently not nerdy enough. I spent about 5 hours :banghead: :banghead: :banghead: trying to get my steam deck to run the Knossos portal, but I just couldn't figure it out. What I need is a super easy flat pack for the Discover store or some similarly easy way to install Knossos on Linux.
first python-token-bucket, then fs2-knossos. Use makepkg -si for the build stages to make sure you get the dependencies.
sudo pacman -Syu --needed base-devel git python-pip
mkdir ~/pkgbuild && cd ~/pkgbuild
git clone https://aur.archlinux.org/python-token-bucket.git
git clone https://aur.archlinux.org/fs2-knossos.git
cd ~/pkgbuild/python-token-bucket
makepkg -si
cd ~/pkgbuild/fs2-knossos
patch PKGBUILD fix.patch
makepkg -si
sudo pacman -Syu --needed base-devel git python-pip
i had to go in and 1- Make the Steam OS no longer read only sudo steamos-readonly disable
and i also did this: sudo btrfs property set -ts / ro false
and then I had to 2- comment out [jupiter-beta] to just be [jupiter] as something with the Steam OS hated the beta."take the PKGBUILD from the AUR and apply the following patch"means nothing to me. How do I apply that patch? If you see this @Phantom Hoover before I figure it out and post, let me know what I need to type to get access to the file to add that patch into.
(yeah i'm now fighting flathub bureaucracy to be able to distribute the ****ing thing because flatpak is completely built around a repository middleman model)
FSO on the steam workshop is basically legally impossible unless some benevolent billionaire buys interplay and volition and then donates freespace to the public domain, or some similarly unlikely circumstance
cd /etc/ld.so.conf.d/
sudo rm fakeroot.conf
I had to fix some keys:sudo pacman-key --populate archlinux
sudo pacman -S archlinux-keyring
UPDATE: It's working! I'll need to look into modifying the control layout but so far so good.
I will keep trying, but again, if anyone gets Knossos into a flatpack and distributed on the Discovery Store, Ill do whatever I can, and pay you $69.
I will keep trying, but again, if anyone gets Knossos into a flatpack and distributed on the Discovery Store, Ill do whatever I can, and pay you $69.
I'm like 98% certain this is illegal.
==> Making package: fs2-knossos 0.14.3-3 (Fri 30 Dec 2022 05:07:57 PM MST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: python-raven
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
-> python-six
-> python-requests
-> python-requests-toolbelt
-> python-pyqt5
-> python-pyqtwebengine
-> python-raven
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
python-raven
pip install https://pxo.nottheeye.com/files/test/knossos/knossos-0.15.0.dev0+e4a81e5.tar.gz
(NOTE: you may have to use "pip3" instead of "pip" depending on how things are installed)I'm not familiar enough with SteamOS to know if this would work, but I just released packages for a development version of Knossos and it's possible that one of them might work for you. If SteamOS has python 3.5 or newer available then I think you might have a shot of getting one of these to work...
A .deb is available which might install. It's not really Debian or Ubuntu specific so as long as the dependencies are met I'm guessing it would work.
https://pxo.nottheeye.com/files/test/knossos/knossos_0.15.0-dev+e4a81e5_all.deb
If pip is available then you could also try the standard python module. Again, you'll need at least python 3.5 for this to work. pip will should install all of the dependencies and then install knossos. A "knossos" executable should then be available in your path.Code: [Select]pip install https://pxo.nottheeye.com/files/test/knossos/knossos-0.15.0.dev0+e4a81e5.tar.gz
(NOTE: you may have to use "pip3" instead of "pip" depending on how things are installed)
Neither of those is going to be as good as a proper package for SteamOS obviously, but if one of them works then it might hold you over for a bit.
Of course that may not help at all. But if it does please let me know. I'll be releasing fixed packages in the next day or so but until then the workaround should be sufficient.
pip install https://pxo.nottheeye.com/files/test/knossos/knossos-0.15.0.dev0+73b131a.tar.gz
A new build is available to test out. This should fix an issue similar to the one you reported so I'm hoping that it's the same bug. Give it a try a let me know if it works any better for you.Code: [Select]pip install https://pxo.nottheeye.com/files/test/knossos/knossos-0.15.0.dev0+73b131a.tar.gz
Touch Menu Buttons | | Keyboard Input Command (Not Numpad Binds)| | Ingame Control Config(Misc Tab)| |
1 | 7 | Engage Enemy |
2 | 8 | Disable My Target |
3 | 9 | Disarm My Target |
4 | Page Up | Attack My Target |
5 | 4 | Form On My Wing |
6 | 5 | Capture My Target |
7 | 6 | Attack My Subsystem |
8 | Page Down | Ignore My Target |
9 | 1 | Return To Base |
10 | 2 | Rearm Me |
11 | 3 | Cover Me |
12 | 0 | Protect My Target |
Left Pad Click[Long Press](Optional) | Backspace(Optional) | Communications Menu(Optional) |
Touch Menu Buttons | | Keyboard Input Command (Numpad Binds)| | Ingame Control Config(Misc Tab)| |
1 | Numpad 7 | Increase Weapon Energy |
2 | Numpad 8 | Increase Shield Energy |
3 | Numpad 9 | Augment Forward Shield |
4 | Numpad - | Increase Engine Energy |
5 | Numpad 4 | Transfer Energy Shield -> Weapon |
6 | Numpad 5 | Augment Left Shield |
7 | Numpad 6 | Transfer Energy Weapon -> Shield |
8 | Numpad + | Augment Right Shield |
9 | Numpad 1 | Decrease Weapon Energy |
10 | Numpad 2 | Decrease Shield Energy |
11 | Numpad 3 | Augment Rear Shield |
12 | Numpad 0 | Decrease Engine Energy |
Right Pad Click[Long Press] | Numpad Enter | Equalize Energy Settings |
Buttons | | Controller/Joystick Input Commands | | Ingame Control Config(Ship Tab)| |
Left Stick Up | Dpad Up/Joy-0 Hat Forward | Up Thrust |
Left Stick Right | Dpad Right/Joy-0 Hat Right | Right Thrust |
Left Stick Down | Dpad Down/Joy-0 Hat Back | Down Thrust |
Left Stick Left | Dpad Left/Joy-0 Hat Left | Left Thrust |
L3 Click | Left Stick Click/Joy-0 Button 10 | Glide When Pressed |
Buttons/Axis | | Controller/Joystick Input Commands | | Ingame Control Config(Targeting/Ship Tab)| |
Right Stick X-Axis(Left-Right) | Mouse X Axis(Left-Right) | Turn (Yaw) Axis(Ship Tab) |
Right Stick Y-Axis(Up-Down) | Mouse Y Axis(Up-Down) | Pitch Axis(Ship Tab) |
R3 Click | Right Stick Click/Joy-0 Button 11 | Target Ship In Reticle(Targeting Tab) |
Buttons/Axis | | Keyboard/Controller/Joystick Input Commands | | Ingame Control Config |
L1/Left Bumper | Left Mouse Click/ Mouse Left Button | Fire Primary Weapon(Weapons Tab) |
L2/Left Trigger | Middle Mouse Click/ Mouse Mid Button | Fire Secondary Weapon(Weapons Tab) |
L4/Left Grip Top | Left Bumper/ Joy-0 Button 5 | Launch Countermeasure(Weapons Tab) |
L5/Left Grip Bottom | Left Shift Key/Shift | Shift Modifier(No Tab, but in bottom left corner) |
R1/Right Bumper | Right Mouse Click/ Mouse Right Button | Afterburner(Ship Tab) |
R2/Right Trigger | Right Trigger Analog[Full Pull(Enter)]/ Joy-0 RZ Axis | Absolute Throttle Axis(Ship Tab) |
R4/Right Grip Top | Right Bumper/ Joy-0 Button 6 | Reverse Thrust(Ship Tab) |
R5/Right Grip Bottom | Right Alt Key/Alt | Alt Modifier(No Tab, but in bottom left corner) |
JoyHat/Button | | Keyboard/Controller/Joystick Input Commands | | Ingame Control Config | | Shift Modifier Ingame | | Alt Modifier Ingame | | Shift-Alt Modifier Ingame |
Left Menu Button | Tab Key | Chase View(Misc Tab) | Toggle Auto Speed Matching(Misc Tab) | Add Or Remove Escort(Misc Tab) | Toggle Auto Pilot(Misc Tab) |
Left Menu Button(Hold) | Spacebar | Toggle High HUD Contrast(Misc Tab) | Toggle Auto Targeting(Targeting Tab) | Clear Escort List(Misc Tab) | Enter Subspace(End Mission)(Misc Tab) |
DPadUp | Up Arrow Key | View Up(Misc Tab) | Target Next Closest Hostile Ship(Targeting Tab) | Target Next Closest Friendly Ship(Targeting Tab) | Increase Time Compression(Misc Tab) |
DPadRight | Right Arrow Key | View Right(Misc Tab) | Target Next Hostile Bomb Or Bomber(Targeting Tab) | Target Next Escort Ship(Targeting Tab) | Cycle Nav Point(Misc Tab) |
DPadDown | Down Arrow Key | View Rear(Misc Tab) | Target Previous Closest Hostile Ship(Targeting Tab) | Target Previous Closest Friendly Ship(Targeting Tab) | Decrease Time Compression(Misc Tab) |
DPadLeft | Left Arrow Key | View Left(Misc Tab) | Target Next Subsystem(Targeting Tab) | Target Next Uninspected Cargo(Targeting Tab) | Turn Off Targeting Computer(And Auto Targeting Too)(Targeting Tab) |
Buttons | | Keyboard/Controller/Joystick Input Commands | | Ingame Control Config |
Right Menu Button | Esc | Pause Menu(No Tab) |
Right Menu Button(Hold) | F2 | Options Menu(No Tab) |
A Button | A Button/Joy-0 Button 1 | Cycle Primary Weapon Firing Rate(Weapons Tab) |
B Button | B Button/Joy-0 Button 2 | Cycle Secondary Weapon Firing Rate(Weapons Tab) |
X Button | X Button/Joy-0 Button 3 | Cycle Secondary Weapon Bank(Weapons Tab) |
Y Button | Y Button/Joy-0 Button 4 | Cycle Forward Primary Weapon(Weapons Tab) |
Axis | | Controller/Joystick Input Commands | | Ingame Control Config(Ship Tab)| |
Gyro | Left Stick Analog/ Joy-0 X Axis | Bank Axis(Ship Tab) |
Okay, I am new here, but i Have successfully installed openfreespace via knossos with it working in gaming mode and without owning freespace 1 or 2, and having all the different games as their launchers, in fact i have done it months ago(4-6 months), sorry for not informing
so here are the steps.
1. make sure the deck is unlocked and use the command with konsole:
sudo pacman -S base-devel
2. Make sure to git clone and install the AUR's,(both knossos and the two python dependencies that are not pakages(python-raven, and python token-bucket respectfully)
and make sure to change directory first , i would do these console commands with konsole:
cd /home/deck/ this is my recommended directory
git clone https://aur.archlinux.org/fs2-knossos.git
git clone https://aur.archlinux.org/python-raven.git
git clone https://aur.archlinux.org/python-token-bucket.git
then i would
cd /home/deck/fs2-knossos/
makepkg -si
this will try to install as many dependencies as possible, install most of those dependencies(which are packages) with konsole by typing:
sudo pacman -S
(note: some of those dependencies might be outdated with this command and must be installed manually via downloading the mirror of the packages manually and typing in konsole
sudo pacman -U
then just drag and drop the file to konsole to finish the rest of the line)
, then it is time to install the aur packages :
cd /home/deck/python-raven/
makepkg -si
then
cd /home/deck/python-token-bucket/
makepkg -si
and finally
cd /home/deck/fs2-knossos/
makepkg -si
now if theses steps work, knossos is successfully installed.
you could now delete these AUR folders and files contained in them
3. now it is time to open knossos and install some games, and the open freespace engine,
a warning would appear, for me anyway, "A critical error occurred! Knossos might not work correctly until you restart it"", and just press okay for around 25 to 100 times until the warning window will not show up anymore,
if you follow these steps, knossos would not be used as a launcher and only just as a installer
first i would change the install directory, i have it set up to the SD card and it the game works, and i made sure the folder was /freespaceopen
so click on the gear icon(settings menu) under the close (x button) to get started, i have the stable version as the engine selected under the knossos tab,
under the Joystick tab, joystick Microsoft X-box 360 Pad 0(the steamdeck pad)
video: 1280 X 800. i keep everything else default., then click on the green Save button
now click explore and install a game,
I installed wing commander saga 0.9.6, seems to be the most stable with the steam deck, and it is a native application.
after it is done installing,
make sure it works by pressing the play button, if the intro works, you have installed it, to close the application, hold the steam button and press B, it would open up the keyboard and you will be sent to back desktop, now right click the freespace application and close
now time to play the game without the knossos application, first click on the settings button(the gear wheel under the x button), click on the dropdown menu on the knossos tab, look in the library Path, and go to that path using the dolphin browser, it should be../freespaceopen, now go to /bin/FSO-22.0.0/Linux/, and right glick the fs2_open_22_0_0x64.AppImage file and go to properties (go to the permission tab and make sure is executable is checked), then copy the file
now go back to the freespaceopen directory and you will see a folder for each game installed, go to the game folder, in my case /Wing_Commander_Saga/Wing_Commander_Saga-0.9.6 and paste the file in that folder, now open the file to test that it works, If so you can now play the game without requring Knossos,(note: you will have to do that with every game you own, A symlink might be possible)
and finally it is time to add the game to steam, so that way it can be played in gaming mode with full controller support, left or right click on the steam icon on the bottom right the the screen and click library, then click add a Non-Steam-game, (note adding a game on linux is not as intuitive on widows, because windows allows us to use explorer, but in linux we cannot use dolphin, so if you have the freespace directory installed in linux, it would generally be in /run/media/and the folder that starts with the m)
find the fs2_open_22_0_0x64.AppImage file that is the specific one you pated to the game directory. and double click and open. make sure the file is checked and click add selected to library , now scroll down in the games tab and find fs2_open_22_0_0x64.AppImage, and right click and select properties, here you can change the name without changing the file*i have changed mine to (Wing_Commander_Saga), and since this a native linux app, make sure steam play compatibility (in the compatibility tab) is disabled
now you have successfully installed and added the game to steam, now it is time for the hard part setting up the controls.
Rest of the steps then work fine until the final install step "cd ~/pkgbuild/fs2-knossos" where I just get
bash: cd: /home/deck/pkgbuild/fs2-knossos: No such file or directory
So yeah, if anyone has any idea's I'd be incredibly grateful!
Haha no worries! That's now gotten me significantly further, although still not working :(
Knossos opens, but just with an empty grey window. I've seen mention of it in previous posts, but did see any mention of what the fix was?
Edit: I've made it worse! No Knossos window at all now.
Reading between the lines of some of the posts I decided to redo the steps relating to the qt5-webengine, did the uninstall step, but now can't reinstall it again just get
"error: target not found: python-pyqt5-webenigne"
Redone all the preceding steps to try and dig myself out and it hasn't helped.
Edit 2: Fixed it! I'm in there :D reinstalled the qt5-webengine stuff another way (full disclosure I have no idea what these commands actually do but this is what worked for me)
sudo pacman -Syu --noconfirm --needed \
python-pyqt5 qt5-webengine qt5-svg qt5-webkit \
Massive thanks for all the help and to everyone involved! Going to play me some Freespace!!!
Many thanks for the work that's gone into getting this working, just had my first FS2 playthrough in years and it works great on the deck. Now up to my neck in the mods! Out of interest why is there the need to re-install Knossos after steam client updates? My deck has updated a few times since I installed the first time and I haven't needed to do anything, it just keeps working?
pip uninstall PyQt5 PyQt5-Qt5 PyQt5-sip PyQtWebEngine PyQtWebEngine-Qt5
So mission objective achieved?
I was able to get it installed, however running it would only get to the grey screen and nothing would load on it.
I had a much easier and simpler time running the .exe installer through proton and adding the fs2 files to that container and running it through the game interface natively.
sudo pacman -Syu --needed base-devel git python-pip
pip uninstall PyQt5 PyQt5-Qt5 PyQt5-sip PyQtWebEngine PyQtWebEngine-Qt5
sudo pacman -Syu --noconfirm --needed python-pyqt5 qt5-webengine qt5-svg qt5-webkit
pip install https://pxo.nottheeye.com/files/test/knossos/knossos-0.15.0.dev0+73b131a.tar.gz
Honestly classic Knossos is now outdated. We highly recommend folks switch to using KnossosNET (KNet for short). It is a highly improved launcher, including having orders of magnitude faster loading, better joystick setting, easier option handling, smaller file size, better installation on PC, Mac, and Linux, and more 🙂
It also uses the same library folder structure as classic Knossos, so no need to redownload your currently installed mods!
https://github.com/KnossosNET/Knossos.NET/releases (https://github.com/KnossosNET/Knossos.NET/releases)
Glad it's useful, ShivianSPS and taylor and other devs on it have really made a great launcher!
Hey, so I've noticed that the KNet version doesn't have as many mods on the 'Explore' tab... is there something I did wrong, or can you link the support thread for KNet?
Hey, so I've noticed that the KNet version doesn't have as many mods on the 'Explore' tab... is there something I did wrong, or can you link the support thread for KNet?
That typically means that retail FS2 isn't installed. I'm sure you've been messing with this stuff long enough to have gotten retail FS2 installed, but just to be sure, did you?
There is a bug report of kNet not detecting the FS2 install even though it was done and only showing TCs instead of any FS2-based mods. But we've been unable to reproduce that behavior in order to debug it. Assuming that is what's happening here, it would be a tremendous help if you could post a full directory listing of your knossos library as well as the <library>/FS2/mod.json file.
Hey, so I've noticed that the KNet version doesn't have as many mods on the 'Explore' tab... is there something I did wrong, or can you link the support thread for KNet?
That typically means that retail FS2 isn't installed. I'm sure you've been messing with this stuff long enough to have gotten retail FS2 installed, but just to be sure, did you?
There is a bug report of kNet not detecting the FS2 install even though it was done and only showing TCs instead of any FS2-based mods. But we've been unable to reproduce that behavior in order to debug it. Assuming that is what's happening here, it would be a tremendous help if you could post a full directory listing of your knossos library as well as the <library>/FS2/mod.json file.