L4T Ubuntu - A fully featured linux on your switch

Discussion in 'Switch - Exploits, Custom Firmwares & Soft Mods' started by bylaws, Apr 28, 2019.

  1. 6adget

    6adget GBAtemp Regular

    Member
    5
    Sep 12, 2016
    United States
    Sacramento, Ca.
    I'm not sure if this was already suggested. This is a fast growing thread. If you want to learn how linux works, and try it out before you try using it on the switch, you can put ubuntu, or any distro on a USB stick, and boot from it on your PC. you don't have to install it. you can run it off of the USB stick in whats known as a "live" session. It's also a great way to breath some life into an old PC, or laptop. There are light weight distro's like Lubuntu. That will make an old PC run fast, and is great if you just want to browse the web. For free, Linux is a fantastic OS. Some of the distro's are every bit as good as windows.
     
    Refriger8tor likes this.
  2. crow132

    crow132 GBAtemp Regular

    Member
    5
    Jan 19, 2016
    Saint Helena
    any help trying to make qjoypad work?

    I installed it succesfully but doesnt seem to launch after :(
     
  3. burt111

    burt111 Member

    Newcomer
    2
    Oct 30, 2016
    United States
    No sadly even compiling source didn’t work

    — Posts automatically merged - Please don't double post! —

    Try running it from terminal had a dbus error on a lot of applications only solution was a export command before running anything in terminal
     
  4. fgghjjkll

    fgghjjkll GBATemp MegaMan

    Member
    5
    GBAtemp Patron
    fgghjjkll is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 7, 2008
    Thanks, that worked!
     
    Refriger8tor likes this.
  5. DiscostewSM

    DiscostewSM GBAtemp Guru

    Member
    13
    Feb 10, 2009
    United States
    Sacramento, California
    Yep, just have to have patience when dealing with a depleted battery.
     
  6. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23
    Nov 21, 2005
    United Kingdom
    Others took care of the basics (OS able to do what you like with, not as impressive as it once was but still nice to have) but the bigger bonus is by virtue of being fairly mainstream on other devices you also can make it do all the weird and esoteric things you care to cook up.

    If we are playing with emulators then say https://blends.debian.org/games/tasks/emulator
    I see Virtualjaguar has an arm build.

    If in normal homebrew a Jaguar emulator had been made (people used to like making weird and wonderful emulators for obscure devices ( http://nintendo-ds.dcemu.co.uk/emulators-for-nintendo-ds-1158162.html http://nintendo-ds.dcemu.co.uk/emulators-for-gba-1158173.html ) but not so much these days, we'll assume it happens though) and you say had a thing that detected if it went on your home wifi that it would upload the saves/savestates to your NAS, which for reasons only worked with a funky SFTP setup. If people are allowed to tell me "cloud saves" is some crazy valuable service for Switch online then I can say having saves (and possibly ROM collections) transfer seamlessly between devices is not a crazy esoteric use case.
    No way said emulator author would chain that together in their code just for you, however as it is a full OS then you can do that trivially as being a Linux based system it likely has the reference grade FTP setup if not bundled directly with the basic distro then in the default repos, to say nothing of the same code (or several versions older) likely powering your NAS as well.

    So yeah it is a widely developed OS ( https://docs.armbian.com/Release_Changelog/ ), not just limited to the subset of Switch hackers that care for it* and can do something with it (probably in their free time as nobody is going to pay for it or have a company be a sugar daddy), with much functionality that you can twist to your own use cases.

    *in older threads I noted the rise of IOS, and then Android when that took over from it, pretty much killed the cool PSP and DS homebrew off in short order, and then the rise of the likes of raspberry pis (there was stuff like the pogoplug and sheevaplug before it and around the same time as DS and PSP was kicking off, but they were hardly ready for prime time) with the continued existence of the former meant we did not see much of anything for the 3ds. This then means something like Linux or Android being ported being about the best chance we have for seeing a proper homebrew scene.

    Oh and it likely brings a bunch of easy to use languages with it, dodges the need to have full fledged libraries built for everything (and people know enough of networking to use them) which in turn and coupled with the first thing means more people can give stuff a go -- knocking together what amounts to a sizeable chunk of a web browser to get notifications from your favourite site is hard, chaining some wget, grep, sed, awk and curl commands together in a python script is the sort of thing I expect many people would be able to learn to do.
     
  7. StarGazerTom

    StarGazerTom GBAtemp Advanced Maniac

    Member
    10
    Feb 2, 2015
    Ok, so what emulators are people suggesting for this puppy?!

    Got it all up and running, Vulkan Dolphin, kodi, few things.

    Mainly looking at GB, GBC, Genesis, PSX emulators.
     
    Refriger8tor likes this.
  8. GibboHull

    GibboHull Member

    Newcomer
    1
    Apr 4, 2019
    United Kingdom
    Yeah looks like it's not possible; seems at this time no snaps are supported, I've tried a few and none of them will work get the same error everytime. From a bit of research it seems that this is due to the custom kernel using a filesystem that snap doesn't seem to want to play with. Don't know if snaps are something that are planned to be supported in the future(or if i'm just doing this terribly wrong) Really cool stuff though nontheless, looking forward to giving it another go in a few iterations time.
     
    burt111 likes this.
  9. timewolf

    timewolf Newbie

    Newcomer
    1
    Nov 4, 2006
    Italy
    someone tried netflix?
     
  10. burt111

    burt111 Member

    Newcomer
    2
    Oct 30, 2016
    United States
    Pcsxr for psx and retroarch votes for the rest or mgba for gba
     
  11. stick267

    stick267 GBAtemp Advanced Fan

    Member
    5
    Dec 17, 2018
    United States
    Just played Wind Waker handheld with the CPU OC'd to 1.7ghz for about an hour and had 50% battery left. So battery life in Ubuntu is pretty much up to par with Horizon.
     
    kevandkkim likes this.
  12. StarGazerTom

    StarGazerTom GBAtemp Advanced Maniac

    Member
    10
    Feb 2, 2015
    European version or NTSC? All rips I seem to be able to get are NTSC.

    And let me ask, since alot will probs ask too. How did you overclock to 1.7?

    Edit: Oh, I just had an idea! Is there a way we can get the devices IP address printed to the taskbar up the top of the screen? It would be REALLY handy for those folks who wish to SSH and FTP to the switch, and ip's change whenever you go elsewhere, and sometimes just because.
     
    Last edited by StarGazerTom, May 1, 2019
  13. veggietales4ever

    veggietales4ever Member

    Newcomer
    3
    Oct 2, 2015
    United States
    thanks for getting this going for us.

    i had a question about retroarch, may be an easy fix.
    got it all installed, did the ppa:testing etc.
    i don't have the ppsspp emulator or the good mupen next n64 emulator.
    i can't figure out how to add them either, i tried buildbot nightly latest but they all don't work.

    thanks!
     
  14. burt111

    burt111 Member

    Newcomer
    2
    Oct 30, 2016
    United States
    You can pull them from the Lakka switch system file open it as a archive
     
    veggietales4ever likes this.
  15. Torrey187

    Torrey187 Newbie

    Newcomer
    1
    May 1, 2019
    United States
    I was able to SSH into the switch and use putty from my windows machine to install dolphin. Netflix is almost 100% not gonna work. I’ve tried everything

    — Posts automatically merged - Please don't double post! —

    Am I allowed to post stuff like this here ?
    By the way did you know Ubuntu supports 4K 30 through the dock ? Also I highly recommend creating a swap file so you have more memory to work with. Running out of ram will bring this to it’s knees. 1GB swap is fine.
     
    Last edited by Torrey187, May 1, 2019
  16. stick267

    stick267 GBAtemp Advanced Fan

    Member
    5
    Dec 17, 2018
    United States
    I assume it's NTSC but I'm not sure lol. A quick way to get your IP is to click the WiFi icon and then click "Connection Information".

    To OC:
    Code:
    echo performance | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
     
    Last edited by stick267, May 1, 2019
    MartianMSK likes this.
  17. splymb

    splymb Member

    Newcomer
    3
    Dec 8, 2018
    Cyprus
    You guys are amazing.. it's insane how well this works already.

    Plex streaming also works fairly ok as an addon to kodi; also booting directly into kodi/plex is just cool :)

    Next i'd like to try and get citrix receiver running (there's an article to tweak the armha one to run on 64). Connecting to my windows 10 vm at work with bluetooth mouse/keyboard would be amazing. Really hyped about this thread :)
     
  18. orangpelupa

    orangpelupa GBAtemp Regular

    Member
    5
    Aug 7, 2009
    Indonesia
    Bug reports

    - usb hub (rh 888) doesn't work (with dock)
    - usb harddisk spins but not detected (with dock)
    - dnscrypt can't be installed. I suspect its because the Linux network system automatically use dnscrypt before it can acquire the initial certs/settings. Because right after dnscrypt got installed, all dns request can't be resolved. Despite in the network setting its not using dnscrypt yet
     
    Last edited by orangpelupa, May 1, 2019
  19. fatHusky

    fatHusky Advanced Member

    Newcomer
    2
    Apr 18, 2019
    Canada
    the is typed 2 times in the 5th feature
     
  20. enderer

    enderer GBAtemp Regular

    Member
    4
    Jul 19, 2015
    United States
    does this support the official LAN adapter?
     
  21. stick267

    stick267 GBAtemp Advanced Fan

    Member
    5
    Dec 17, 2018
    United States
    Good call on adding a swapfile. Might be placebo but my Switch seems to be running much smoother after creating one. I went with 2GB.

    For anyone interested:
    https://linuxize.com/post/how-to-add-swap-space-on-ubuntu-18-04/
    Note you'll have to install nano to edit the fstab file mentioned in the article (sudo apt install nano).
     
    Refriger8tor and MartianMSK like this.
  22. stick267

    stick267 GBAtemp Advanced Fan

    Member
    5
    Dec 17, 2018
    United States
    Delete
     
    Last edited by stick267, May 1, 2019
  23. stick267
    This message by stick267 has been removed from public view by Quantumcat, May 1, 2019, Reason: Requested.
    May 1, 2019
  24. StarGazerTom

    StarGazerTom GBAtemp Advanced Maniac

    Member
    10
    Feb 2, 2015
    With Retroarch, after turning on Vulkan support (cus I was getting a strange issue where GBA emulation was fine on monitor, but that in handheld mode it was 5 fps). Next thing I know, Retroarch crashes on startup and trying to do so through terminal returns
    SEGMENTATION FAULT (core dumped)

    Tried uninstalling, reinstalling, changing things in the cfg file. Nothings working.
     
  25. stick267
    This message by stick267 has been removed from public view by Quantumcat, May 1, 2019, Reason: Requested.
    May 1, 2019
Quick Reply
Draft saved Draft deleted
Loading...