L4T Ubuntu - A fully featured linux on your switch

switchroot.png

L4T Ubuntu
Intro
L4T Ubuntu is a version of Linux based on nvidia's linux for tegra project. It uses a different kernel compared to previous releases which allows it to use features not yet in mainline. Such as audio, docking support and vulkan.

Join our discord: https://discord.gg/53mtKYt

We have a wiki !
To facilitate our work we will only update our wiki from now on in order to avoid multiple outdated references, please refer to the following link instead of this page

https://wiki.switchroot.org/en/Linux/Ubuntu-Install-Guide

Credits

Bylaws,
Langerhans,
Ave,
Natinusala,
CTCaer(most of the hard stuff),
Gavin_Darkglider,
DanielOgorchock(Joycon drivers/joycond),
stary2001 (reboot2payload),
NVIDIA,
Azkali
Everyone else in switchroot - more info on that in the future.
 
Last edited by azkali,

Silent_Gunner

Crazy Cool Cyclops
Banned
Joined
Feb 16, 2017
Messages
2,696
Trophies
0
Age
29
XP
4,727
Country
United States
So, here's a question on my mind:

Proton, how well does it run on this, if at all? Or are the only games that aren't emulators that would even have a chance of working on this native ports?
 

Rigle

Well-Known Member
Member
Joined
Apr 15, 2008
Messages
169
Trophies
1
XP
620
Country
Spain
I've been this video and I'm wondering if there are native capabilities for the gamecube controller to play these games. Do you know anything about it?

 

crabycowman123

Member
Newcomer
Joined
Nov 14, 2018
Messages
20
Trophies
0
Age
22
XP
501
Country
United States
After setting a max frequency, how do I make sure that it is actually limiting the frequency? And is there a way to see what the current clock speed is?
 

pietempgba

Well-Known Member
Member
Joined
Jun 9, 2016
Messages
1,049
Trophies
0
XP
1,515
Country
United States
I made an arm64 build of chrisknepper's unofficial Google Messages client. This will allow you to send and receive your texts on the Switch. This app also saves a lot of CPU and memory resources as opposed to having a web browser up all the time to run Google Messages. It also supports notification sounds and preview notifications.

To install, open Terminal and then enter the following:
sudo apt update
sudo apt-get install git
git clone https://github.com/jjhaywor/android-messages-desktop-arm64
mv android-messages-desktop-arm64/Messages.AppImage ~/Desktop/

Now on your desktop there will be a file called Messages.AppImage that will launch when you double click (or tap).
Be sure to tap the "Remember this computer" switch under the QR code.
On your phone, open Google Messages, tap the three vertical dots in the top right corner, then tap "Messages for web"
Hit "QR code scanner"
Point your phone at the QR code and then you should be good to go.

Optionally to give an icon to the AppImage you can right click it, hit "Properties", and then just click the default icon to open the file browser. From there you can pick any picture you want, or the one that I provided in the android-messages-desktop-arm64 folder.

Lmk if you have any questions or if you run into any errors.
I think you can move it somewhere else and make a .desktop file and find a good icon image to use for it
 

trohn_javolta

Active Member
Newcomer
Joined
Aug 9, 2018
Messages
25
Trophies
0
Age
43
XP
114
Country
Antigua and Barbuda
You need to copy everything off of the sd card and then burn the L4T image to it. Then you resize the fat32 partition to the size you want. And also resize the linux partition to the size you want. This must be done on a different system then the switch

And then... Sry but I don't get how it can work. OFW is in the Nand, I think? But booting atmosphere I need stuff from the folders right? How would atmosphere boot option show up in hekate and how would it know where the folder is now if it's on another partition?

Also, I wonder if I could get some reboot to kosmos/atmosphere option in Ubuntu to work? In kosmos/atmosphere I know there's some homebrew that'll get you the option to reboot into a boot menu to select what to start.

Edit: Last Question: Do I have to apply all updates chronologically or is it sufficient to just apply latest update?
 
Last edited by trohn_javolta,

DerekGeneric831

DerekGeneric831
Member
Joined
Feb 5, 2016
Messages
435
Trophies
0
Age
30
Location
Australia
XP
1,015
Country
Australia
Holy run-on sentence batman. Alright, so delete the boot folder and the boot.src files on the FAT32 partition of your SD card. Then download the update zip file, put it on your FAT32 partition, then right click it and hit "extract here". When it asks you if you want to overwrite or replace any files hit yes (to keep the zip files rather than the ones you already had). Then delete the zip file and you should be good to go.

Also if you are having trouble with the touch controls, I highly recommend plugging a keyboard, mouse, and monitor into your dock and using those (or you can even use a Bluetooth keyboard, etc)


Is this all while im on Linux or is this through my usual windows pc?
 

DerekGeneric831

DerekGeneric831
Member
Joined
Feb 5, 2016
Messages
435
Trophies
0
Age
30
Location
Australia
XP
1,015
Country
Australia
You can do it on Windows, but you might be able to do it in L4T Ubuntu as well

When i delete both Boot folders while on L4T Ubuntu Switch and turn off my switch and then place the Update file on the root of the FAT32 partition of the microsd card and put it back in my switch and try to boot L4T Ubuntu Switch it simply just doesn't load L4T anymore... which i mean i sort of expected considering they're used to boot the system?
I guarantee i'm doing something wrong, just completely new to Linux.
 

Attachments

  • ye.png
    ye.png
    77.4 KB · Views: 52
Last edited by DerekGeneric831,

Snomannen_kalle

Well-Known Member
Member
Joined
Sep 2, 2018
Messages
350
Trophies
0
Age
29
XP
2,381
Country
Norway
When i delete both Boot folders while on L4T Ubuntu Switch and turn off my switch and then place the Update file on the root of the FAT32 partition of the microsd card and put it back in my switch and try to boot L4T Ubuntu Switch it simply just doesn't load L4T anymore... which i mean i sort of expected considering they're used to boot the system?
I guarantee i'm doing something wrong, just completely new to Linux.
Update 1.1 contains a new Boot folder, which you should place on the root of the FAT32 partition on your SD card; make sure you do that before you try to boot L4T Ubuntu
 

DerekGeneric831

DerekGeneric831
Member
Joined
Feb 5, 2016
Messages
435
Trophies
0
Age
30
Location
Australia
XP
1,015
Country
Australia
Update 1.1 contains a new Boot folder, which you should place on the root of the FAT32 partition on your SD card; make sure you do that before you try to boot L4T Ubuntu

Ah, Thank you!
i had to extract it twice, so once i put it back into my switch and reboot Linux it should be good to go?
i've been seeing all these codes that you need to use with "Gnome-Terminal" to set up Dolphin and everything else but i've been really unclear as to how to get it all running..
 

duckworld

New Member
Newbie
Joined
Apr 26, 2018
Messages
1
Trophies
0
Age
44
XP
96
Country
Australia
The update notes say that SquashFS is now supported in the 1.2 (hotfix) build, however I can't seem to get SquashFS filesystems to mount, they error out saying "unknown filesystem SquashFS".

Tried both updating my existing install and creating a new install on a different SD card; no dice with either.

Am I missing something obvious?
 

Snomannen_kalle

Well-Known Member
Member
Joined
Sep 2, 2018
Messages
350
Trophies
0
Age
29
XP
2,381
Country
Norway
Ah, Thank you!
i had to extract it twice, so once i put it back into my switch and reboot Linux it should be good to go?
i've been seeing all these codes that you need to use with "Gnome-Terminal" to set up Dolphin and everything else but i've been really unclear as to how to get it all running..
Yes, that should do it. You could just copy and paste the commands from the other thread, and that should get Dolphin going. You might need a reboot first though
 

DerekGeneric831

DerekGeneric831
Member
Joined
Feb 5, 2016
Messages
435
Trophies
0
Age
30
Location
Australia
XP
1,015
Country
Australia
Yes, that should do it. You could just copy and paste the commands from the other thread, and that should get Dolphin going. You might need a reboot first though

When you say copy paste the commands do you mean on the switch itself through Linux or on the pc? And is it by using the Gnome-Terminal?
Can't quite figure out how to do the commands properly for some reason.
Also tried to use the Chrome on L4T Ubuntu and the keyboard doesn't show up at all but shows up using everything else.
 
Last edited by DerekGeneric831,

Trice

Well-Known Member
Member
Joined
Jan 20, 2009
Messages
153
Trophies
1
XP
1,260
Country
Switzerland
So, here's a question on my mind:

Proton, how well does it run on this, if at all? Or are the only games that aren't emulators that would even have a chance of working on this native ports?
It doesn't. Just because the Switch is running Linux doesn't change the fact that it's using a different CPU architecture than what most PC games are made for. Proton/Wine isn't an emulator, just a compatibility layer to get Windows programs to run on Unix-like systems, so it doesn't work across completely different architectures.

[edit] There is a project by some Wine devs that tries to achieve running x86_64 applications on aarch64, but it's still in its infancy and the performance hit is pretty severe: https://github.com/AndreRH/hangover
 
Last edited by Trice,
  • Like
Reactions: Silent_Gunner

Snomannen_kalle

Well-Known Member
Member
Joined
Sep 2, 2018
Messages
350
Trophies
0
Age
29
XP
2,381
Country
Norway
When you say copy paste the commands do you mean on the switch itself through Linux or on the pc? And is it by using the Gnome-Terminal?
Can't quite figure out how to do the commands properly for some reason.
Also tried to use the Chrome on L4T Ubuntu and the keyboard doesn't show up at all but shows up using everything else.
Yes, I'm sorry, I should have been more clear -- you copy and paste the commands to the Terminal on Linux. You can write them in manually too, but unless you use a keyboard, that can get a bit tedious. If you get any error messages, you probably miss some dependencies; it should say what it needs or why you get the error. You can try to google it; or if you miss a dependancy, you could try
Code:
sudo apt-get install "name of dependancy"

Regarding the keyboard -- in the top right corner, there should be a symbol that looks like four squares -- if you press that symbol, you get the option of showing the on-screen keyboard
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub:
  • Sheeba- @ Sheeba-:
    I can't wait to hack my 11.00 PS4 pro
    Sheeba- @ Sheeba-: I can't wait to hack my 11.00 PS4 pro