Coder Social home page Coder Social logo

cobalt2727 / l4t-megascript Goto Github PK

View Code? Open in Web Editor NEW
110.0 4.0 26.0 457.73 MB

All-in-one installer and updater for popular programs on L4T Ubuntu/Fedora with no prior knowledge of Linux needed

License: GNU General Public License v3.0

Shell 95.14% CSS 3.44% Python 1.42%
l4t-ubuntu l4t-megascript switchroot dolphin moonlight-qt emulators minecraft srb2 citra retropie

l4t-megascript's People

Contributors

abyzma avatar azkali avatar cobalt2727 avatar dajokeisonu avatar eyecantcu avatar fafabis avatar heath123 avatar jerrywester avatar leonpano2006 avatar lugsole avatar masont8198 avatar mrcmunir avatar pancakers2001 avatar segogithub avatar theofficialgman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

l4t-megascript's Issues

Moonlight Script with libssl1.1 Error (404)

Hello, upon running the moonlight script I am getting a 404 error at the very end. It is connecting to the http address for libssl1.1 and receiving an error. I verified this with my browser on a different PC and getting the same thing. I did a google search and found a package here [https://answers.launchpad.net/~ubuntu-security-proposed/+archive/ubuntu/ppa/+build/27737464/+files/libssl1.1_1.1.1f-1ubuntu2.21_arm64.deb].

I installed this package on my switch and hoped the script would recognize that it was fulfilled, but that did not work at all. It ran through the exact same process.

Attaching a picture of the error. [https://cdn.discordapp.com/attachments/1142160278595846286/1216168892490055811/IMG_1274.jpg?ex=65ff688b&is=65ecf38b&hm=9da274f48e2c9b2ebcf2290168a3638dc05861e6cbc4e557e78b7fcdfc6c8a8e&].

Why is there no license on the repo?

This project is missing a license. This means that by default all code in this repo is under exclusive copyright, with no one being able to copy, distribute, or modify it without risking legal actions.
See https://choosealicense.com/no-permission/ for more info.

This repo once had a license in the past (GPLv3), but I'm not sure why it was removed.
It's also worth noting that (re)licensing a project requires consent from all contributors, or rewrite the code from contributors that don't give consent.

Does BOX64 works with WINE?

Hi all, thanks for the great project. Recently I have been searching on how to get WINE to work on arm64 and came across that BOX64 can be installed with l4t Megascript. After installing BOX64, I'm still not able to install WINE and seems like it requires i386 to work. Or did I got the wrong version of WINE?

CSE2-Tweaks

There are two issues regarding your current support for CSE2-Tweaks.

One, Clownacy is not the developler of Tweaks. He is the main developer of CSE2, but at the moment, I'm the sole developer of Tweaks, which is forked from CSE2.

Two, if your script relies on the current GitHub repo, all CSE2 repos and all of its forks (Tweaks included) are currently down as Nicalis (owner of the IP for Cave Story) has hit all of them with a DMCA takedown notice.

Megascript Steam Crashes After Validation, Does Not Install Properly

The L4T Megascript pre-prepared installation of Steam (utilizing Box86 and Box64) no longer installs properly, crashing after a "validating Steam" message, with no further progress. Multiple troubleshooting methods have been carried out on my end using the terminal output to look for clues, but to no avail. Oddly enough, this issue has somehow carried over to older Switchroot versions that once did not exhibit this issue, even on clean flashes/installations with no modifications or alterations. It also seems that I am not the only person who has encountered this, and it is at the very least consistently occurring no matter what steps are taken to mitigate possible failure points. Any help that you could give in this regard would be greatly appreciated. I'll attach a .txt file with the output for when I try to launch Steam through the terminal. Again, I would like to state that this is occurring with the latest versions and clean installations/flashes of both Ubuntu 18.04 Bionic and Ubuntu 22.04 Jammy.

steam error.txt

Enable volume buttons in openbox

It's not really a perfect solution, but it works.

git clone https://github.com/graysky2/pulseaudio-ctl
cd pulseaudio-ctl
make install-bin

then /etc/xdg/openbox/rc.xml has to be copied to ~/.config/openbox/rc.xml and the following values have to be added in the keyboard section.

  <!-- volume buttons -->
  
<keybind key="XF86AudioRaiseVolume">
  <action name="Execute">
    <execute>pulseaudio-ctl up 10</execute>
  </action>
</keybind>
<keybind key="XF86AudioLowerVolume">
  <action name="Execute">
    <execute>pulseaudio-ctl down 10</execute>
  </action>
</keybind>

I will leave this as an issue since I don't know how to automatically add it, and openbox by default does not support volume buttons.

Wrong "if else" syntax

c4d2910

if there's nothing between "then" and "else", bash throws an syntax error, easy (dumb) fix would be to add a dummy code there.

e.g.

if [[ $(echo $VERSION) == *"LTS"* ]]; then
		#echo "this is an LTS"
                echo ""
else

also, I don't think it's a good idea to always pull files from actively developed branch, where single commit can break everything.

Update htop to latest version

Please update htop in script to latest if passible
The version in script is form 2020
And latest have some new features (2023)

Why isn't there an installer for the Gnome desktop?

Sorry I realize that this isn't the solution you were hoping for.
However I can not replicate it and to keep other users from running into this it has been disabled in the GUI.

If at some point in the future a way to replicate is found and a solution is made, then it can be added back.

Originally posted by @theofficialgman in #113 (comment)

A small but not insignificant number of people ran into a bizarre issue where L4T would bootloop after the Gnome desktop was installed. To mitigate this, we've disabled the script for it - considering it doesn't run very well on Tegra X1 devices anyways.

For now, you can:

  • install Budgie as a replacement (which is a fork of Gnome anyways)
  • install Gnome using our Helper Script, since the Gnome script itself is still in our repository here:
bash <( curl https://raw.githubusercontent.com/cobalt2727/L4T-Megascript/master/helper.sh ) "scripts/desktop_environments/gnome.sh"

"Failes to install Citra"

Hello Two days ago i was able to install it but now it gives me this error all times i try:

-- Found FFmpeg: /usr/include/aarch64-linux-gnu found components: avcodec
CMake Error at CMakeLists.txt:263 (message):
Found version for libavcodec is too low. The required version is at least
58.4.100 (included in FFmpeg 4.0 and later).

-- Configuring incomplete, errors occurred!
See also "/home/switch/citra/build/CMakeFiles/CMakeOutput.log".
See also "/home/switch/citra/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
�[91mCompilation failed�[39m

install-fail-Citra.log
CMakeError.log
CMakeOutput.log

I have checked the version for ffmpeg, its 3.X.X so I have tried to install the latest version of ffmpeg by sudo apt update && upgrade but nothing works, still on ffmpeg 3.X.X and got this error every time i launch the script

Switchroot v3.4.0 | Apps not Compiling (Fresh Install)

OS: ubuntu 18.04 LTS
Switchroot: ubuntu v3.4.0 (2021-07-23 v2 FRESH INSTALL)
Megascript: "3.4.0 Update Files" (Method A)

Apps "installed" with Megascript but not installed:

  • Dolphin
  • MelonDS
  • Citra
  • RetroPie (currently attempting)

This is the first time using Ubuntu on my Switch. I am not new to Ubuntu but the Switch is new territory for me. The OS updated perfectly fine. L4T Megascript also install via the microSD load perfectly.

The L4T Megascript however does not appear to be functioning properly. The emulator applications appear to have loaded the installations but the folders' contents appear to be uncompiled applications and the application commands in terminal cannot find the apps as installed.

From what I observed, with the above mentioned applications, the scripts did not BUILD any of the applications. From all the video tutorials that I have seen posted involving Switchroot: ubuntu v3.3.0 it appears as if they should had on their own.

(I am hoping that was all that was missed cause Dolphin took forever to download.)

MultiMC script doesn't work

When I try to run the MultiMC script, it says

get_system: command not found
Error: your cpu architecture () is not supported by MultiMC and will fail to compile

On L4T Ubuntu Bionic

Segmentation fault - L4T Ubuntu Switch - Megascript Install

After a fresh install of RetroPi using the Megascript mGBA is giving me a segmentation fault. Can confirm other emulators work correctly.

michael@michael-switch:~$ /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mgba/mgba_libretro.so --config /opt/retropie/configs/gba/retroarch.cfg /home/michael/RetroPie/roms/gba/007\ -\ Everything\ or\ Nothing\ \(U\)\ \(M3\).zip -v [INFO] [Config]: Loading config from: "/opt/retropie/configs/gba/retroarch.cfg". [INFO] RetroArch 1.10.0 (Git e9e85f3) [INFO] === Build ======================================= [INFO] Capabilities: ASIMD [INFO] Built: Feb 27 2022 [INFO] Version: 1.10.0 [INFO] Git: e9e85f3 [INFO] ================================================= [INFO] [Input]: Found input driver: "x". [INFO] [Core]: Loading dynamic libretro core from: "/opt/retropie/libretrocores/lr-mgba/mgba_libretro.so" [INFO] [Overrides]: No core-specific overrides found at "/home/michael/.config/retroarch/config/mGBA/mGBA.cfg". [INFO] [Overrides]: No content-dir-specific overrides found at "/home/michael/.config/retroarch/config/mGBA/gba.cfg". [INFO] [Overrides]: No game-specific overrides found at "/home/michael/.config/retroarch/config/mGBA/007 - Everything or Nothing (U) (M3).cfg". [INFO] [Environ]: GET_CORE_OPTIONS_VERSION. [INFO] [Environ]: GET_LANGUAGE: "0". [INFO] [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_V2_INTL. [INFO] [Remaps]: Remap directory: "/opt/retropie/configs/gba/". [INFO] [Overrides]: Redirecting save file to "/home/michael/RetroPie/roms/gba/007 - Everything or Nothing (U) (M3).srm". [INFO] [Overrides]: Redirecting save state to "/home/michael/RetroPie/roms/gba/007 - Everything or Nothing (U) (M3).state". [INFO] [Environ]: SET_PIXEL_FORMAT: RGB565. [INFO] [Environ]: SET_INPUT_DESCRIPTORS: [INFO] [Environ]: GET_LOG_INTERFACE. [INFO] [Content]: Loading content file: "/home/michael/RetroPie/roms/gba/007 - Everything or Nothing (U) (M3).zip#007 - Everything or Nothing (U) (M3).gba". [INFO] [Content]: Did not find a valid content patch. [INFO] [Content]: CRC32: 0x9d4f1e18. [INFO] [Environ]: SET_AUDIO_BUFFER_STATUS_CALLBACK. [INFO] [Environ]: SYSTEM_DIRECTORY: "/home/michael/RetroPie/BIOS". Segmentation fault

michael@michael-switch:~$ uname -a Linux michael-switch 4.9.140+ #511 SMP PREEMPT Tue Jul 20 18:41:57 EEST 2021 aarch64 aarch64 aarch64 GNU/Linux

Box86 support

Hi,

I was wondering if we can install Box86 as well on L4T?

https://gbatemp.net/threads/run-x86-apps-on-l4t-switch-with-box86.582933/

Looking at what was executed, it seems like we can manually build Box86 too?

git clone https://github.com/ptitSeb/box86

cd box86

mkdir build; cd build; cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo; make

I kinda see the rest of the steps are done but not sure if it would conflict with the existing Box64 installation and stuff.

Any ideas?

Add godot engine

Godot engine is fully functional on the switch, but it needs to be compiled from source. Raspberry pi builds don't work due to some kind of version issue.

In short: sudo apt-get install build-essential scons pkg-config libx11-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm clang

Edit /usr/bin/scons so the shebang says /usr/bin/python3 instead of Python

Download godot tar.xz, I did godot 3.5.2 https://github.com/godotengine/godot/releases

Extract, change to directory and do scons platform=x11 target=release_debug tools=yes use_llvm=yes CCFLAGS="-march=armv8-a+fp+simd" arch=arm64 -j4. Instructions taken from https://github.com/hiulit/Unofficial-Godot-Engine-Raspberry-Pi/blob/main/compiling/raspberry_pi_4.md

It will take 2 hours to compile. use_llvm is required, g++ has a linker error. I tested debugging games and clicking around and there were no issues, but I didn't test it super extensively. It seemed to handle GLES3 perfectly.

Or alternatively a download for compiled builds can be hosted, but I don't have anywhere to host builds.

Citra: Compilation fails

Hello again,
After running the Citra Installer through the Megascript, deleting the citra folder and re running both the Auto Updater and the Citra Script, It fails again, and, from what I can tell, with the same issue. Here`s the error and the generated Log File:

20230618_213058
install-fail-Citra.log

Error on initial setup

Error message provides these details:
Your APT repos can not be updated and apt has exited with an error
Check the above terminal logs for any BROKEN apt repos that you may have added

These are the errors I've found in the log:
Err:14 http://gb.archive.ubuntu.com/ubuntu bionic/main arm64 Packages
404 Not Found
Err:43 http://gb.archive.ubuntu.com/ubuntu bionic-updates/main arm64 Packages
404 Not Found
Err:55 http://gb.archive.ubuntu.com/ubuntu bionic-backports/main arm64 Packages
404 Not Found

E: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/bionic/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/bionic-updates/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-arm64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

Full error log:
log.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.