Code Monkey home page Code Monkey logo

l4t-megascript's Introduction

DISCLAIMER:

Some of the scripts shown here may screw up your installation if you're not using Tegra hardware. Most of them should be fine to use on other systems, but double-check the source code first. In addition, keeping your Tegra system overclocked too often or rebuilding programs too often might shorten the lifespan of your system or the SD card.

L4T-Megascript Logo

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

Scripts List | Join the Join the Discord server | Report an error | Submit a suggestion | Submit a script

What is this?

The L4T Megascript is an open source multipurpose script for easily installing and updating a diverse collection of programs in L4T Ubuntu, with the purpose of helping new users to install programs and games in just a few steps. Currently designed with Switchroot Ubuntu 24.04 in mind, but almost everything should still run on 18.04 and up. Credit to the Switchroot L4T Ubuntu team for making this possible on Nintendo Switch devices, and, of course, Nvidia as well for L4T in general. We appreciate any and all feedback!

Install/run the Megascript

The script itself doesn't actually get installed, even though it does install a lot of other programs and features. All it downloads to your device is a little text file and desktop icon that runs the script directly off of this GitHub repo so you don't have to worry about updating things on your end! Click here to get started!

DISCLAIMER: In the interest of transparency and security we recommend reading through the source code yourself by checking recent commit history and/or downloading a local copy of the latest source code. NEVER RUN SCRIPTS FROM THE INTERNET YOU DON'T TRUST! (That being said, if you do try reading our source code and something doesn't make sense to you, feel free to check our wiki or hop in the Discord server using the link below and ask about it - we're happy to help!)

Planned features:

  • Bring Fedora support to ALL scripts (this is currently a very long WIP, may require custom COPR repos with build flags for Tegra in some cases)
    • compile ES-DE (or just use an AppImage) as a cross-platform replacement for RetroPie (though we'd still use RetroPie's build scripts to generate the premade Tegra RetroArch cores)
    • alternatively, just use vanilla RetroArch and make sure the online updater is disabled then auto download gman's cores instead
  • Add a build script and default configurations for Slippi - currently not possible until they rebase on mainline Dolphin instead of Ishiiruka
  • Add more apps!

Our Team

  • Cobalt: Manager/Lead Dev
  • theofficialgman: Contributor, UI designer
  • Lugsole: Contributor
  • Azkali: Advice/part of Switchroot dev team
  • all the users that put up with Cobalt breaking things every other week or so

Need some help or want to contribute?

You're in luck - we've got a Discord server: Discord invite
Click to join

Credits

  • STJr: Developers, SRB2
  • Kart Krew: Developers, SRB2Kart
  • RetroPie: Developers, RetroPie (who would've guessed?)
  • dolphin-emu: Developers, Dolphin
  • moonlight-stream: Creators and developers of Moonlight-QT
  • lemon-sherbet: Developer, Celeste Classic port
  • Acry: Developer, Flappy Bird port
  • SuperTux: Developers, SuperTux2
  • n64decomp: Responsible for the SM64 Decompilation Project
  • sm64pc: Adapted the SM64 Port to work with ARM64 devices
  • OpenMW: Developers, OpenMW
  • many more!

l4t-megascript's People

Contributors

abyzma avatar azkali avatar botspot 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  avatar

l4t-megascript's Issues

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

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

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.

stuck at "sign into steam"

I'm on a fresh install of L4T Ubuntu Bionic, following the switchroot guide. I've run the Megascript and installed steam. When I launch it, it appears to open an invisible window? I see it in the task selector but I can't actually open it. The task title is "Sign in to Steam". How do I proceed?

"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

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)

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.

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.

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

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.

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?

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

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"

CMake Error

Hello, i'm using the last version of ubuntu noble 24.04 on Nintendo Switch and i have a CMake Error while instaling Dolphin.
Before trying to install Dolphin i have updated Ubuntu with the Software Updater app and i also installed the L4T-Megascript Auto-Updater with success.

Here is the log:

CMake Deprecation Warning at CMakeLists.txt:7 (cmake_policy):
  The OLD behavior for policy CMP0080 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is unknown
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/home/roman/dolphin/build/CMakeFiles/CMakeScratch/TryCompile-w7kRbE'
   
    Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_3dd9e/fast
    /usr/bin/gmake  -f CMakeFiles/cmTC_3dd9e.dir/build.make CMakeFiles/cmTC_3dd9e.dir/build
    gmake[1]: Entering directory '/home/roman/dolphin/build/CMakeFiles/CMakeScratch/TryCompile-w7kRbE'
    Building C object CMakeFiles/cmTC_3dd9e.dir/testCCompiler.c.o
    /usr/bin/cc   -mcpu=native  -o CMakeFiles/cmTC_3dd9e.dir/testCCompiler.c.o -c /home/roman/dolphin/build/CMakeFiles/CMakeScratch/TryCompile-w7kRbE/testCCompiler.c
    cc1: internal compiler error: Illegal instruction
    0x7faa5d84c3 __libc_start_call_main
    ../sysdeps/nptl/libc_start_call_main.h:58
    0x7faa5d8597 __libc_start_main_impl
    ../csu/libc-start.c:360
    Please submit a full bug report, with preprocessed source (by using -freport-bug).
    Please include the complete backtrace with any bug report.
    See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions.
    gmake[1]: *** [CMakeFiles/cmTC_3dd9e.dir/build.make:78: CMakeFiles/cmTC_3dd9e.dir/testCCompiler.c.o] Error 1
    gmake[1]: Leaving directory '/home/roman/dolphin/build/CMakeFiles/CMakeScratch/TryCompile-w7kRbE'
    gmake: *** [Makefile:127: cmTC_3dd9e/fast] Error 2
   
   

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:31 (project)


-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.
Make failed!

Failed to install Dolphin!

Does anybody know how to fix this issue?

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.)

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&].

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?

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.