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,

Worldblender

Well-Known Member
Member
Joined
May 27, 2019
Messages
326
Trophies
0
Age
27
XP
2,236
Country
United States
Thanks for the tip. How I could do that?
Uh oh, I did not put in how to accomplish this. Follow the commands in the code box below:
Code:
sudo nano /etc/apt/sources.list
# Will ask for your user password
This editor should be easy enough for you to figure out. Let me know if you need more help; I'm almost always willing to help out with Linux/BSD/other Unix stuff on this forum.
 

Yo_Homie

Member
Newcomer
Joined
Dec 31, 2018
Messages
20
Trophies
0
Age
29
XP
102
Country
United States
I am trying to compile the Displaylink drivers to use with a Dell dock; but it requires the kernel headers for this kernel. Any idea where I might find those? : /
 

Worldblender

Well-Known Member
Member
Joined
May 27, 2019
Messages
326
Trophies
0
Age
27
XP
2,236
Country
United States
I am trying to compile the Displaylink drivers to use with a Dell dock; but it requires the kernel headers for this kernel. Any idea where I might find those? : /
They may not be in the lite download, but the full version (includes all of the Nvidia development stuff) may have them. I can't answer well since I don't use L4T Ubuntu often enough to answer.
 

Yo_Homie

Member
Newcomer
Joined
Dec 31, 2018
Messages
20
Trophies
0
Age
29
XP
102
Country
United States
They may not be in the lite download, but the full version (includes all of the Nvidia development stuff) may have them. I can't answer well since I don't use L4T Ubuntu often enough to answer.
I downloaded and installed the "cuda" version incase of something like this. Unfortunately, it does not appear to include the kernel headers:(I will keep looking and report back if I find them.

Edit: I also have a less important issue; I cannot figure out how to get my mouse cursor to stop disappearing when I touch the screen. It is rather infuriating. I had disabled it in earlier versions of L4T, but I had to reinstall to use the newer version, and cannot find how I did it.

Edit 2: I figured out my mouse issue
Just run:
sudo gsettings set org.gnome.settings-daemon.plugins.cursor active false
And the cursor sticks!
 
Last edited by Yo_Homie,

KiralyCraft

New Member
Newbie
Joined
Nov 1, 2020
Messages
2
Trophies
0
Age
26
XP
38
Country
Romania
I am trying to compile the Displaylink drivers to use with a Dell dock; but it requires the kernel headers for this kernel. Any idea where I might find those? : /

I finally managed to do it for xpadneo. I put together a repository of necessary files, kernel headers included: github dot com slash KiralyCraft slash SwitchRootXpadNeo (weirdly posted because I'm a new member and I can't post links)

The install.sh script prepares the necessary files until line 88. That's all you need.

EDIT: I created an account specifically for this, hope it helps!
 
Last edited by KiralyCraft,

Yo_Homie

Member
Newcomer
Joined
Dec 31, 2018
Messages
20
Trophies
0
Age
29
XP
102
Country
United States
I finally managed to do it for xpadneo. I put together a repository of necessary files, kernel headers included: github dot com slash KiralyCraft slash SwitchRootXpadNeo (weirdly posted because I'm a new member and I can't post links)

The install.sh script prepares the necessary files until line 88. That's all you need.

EDIT: I created an account specifically for this, hope it helps!
Thank you! This helps a lot. I have compiled and installed the kernel header (helped in no small part by your script). Now I just have to get the DisplayLink install script to except these headers (It is looking for the default 4.9.140 headers).
Edit:Spelling
 

Worldblender

Well-Known Member
Member
Joined
May 27, 2019
Messages
326
Trophies
0
Age
27
XP
2,236
Country
United States
Anyone know if It's possible to upgrade to Ubuntu 20 from this release?
It is possible with the "do-release-upgrade" command, but I would not recommend doing this on a Switch, unless you're prepared to repair or reinstall the system in case something breaks, or the system cannot boot up anymore.
 
  • Like
Reactions: sergio_prado

sergio_prado

Well-Known Member
Newcomer
Joined
Feb 26, 2014
Messages
72
Trophies
1
Age
41
Location
Barueri, Brazil
XP
641
Country
Brazil
If anyone interested, Here's a Dolphin emulator package ready to install. Compiled from the source by me few day ago.

It's the main Dolphin, wich in my tests prove to be faster than Ishiruka's.

To install, unzip and tap/double click on the .deb file and choose install on the window that will open.

You may need to install some dependencies. To do that, open Terminal and paste/type this:
sudo apt install git cmake ffmpeg libavcodec-dev libevdev-dev libusb-1.0-0-dev libavformat-dev libswscale-dev libsfml-dev libminiupnpc-dev libmbedtls-dev curl libhidapi-dev libwxbase3.0-dev libwxgtk3.0-dev libpangocairo-1.0-0 libgtk2.0-dev libbluetooth-dev qt5-default qtbase5-private-dev libudev-dev libxi-dev

By the way, after compiling a program, you can make a package of it, that can be easily installed and shared afterwards.:)

To accomplish that, you will need a program called "Checkinstall". To install it, type/paste this on Terminal:
sudo apt-get install checkinstall
Then, after you compile a program, to create the package you just type the following on the Terminal: sudo checkinstall --install=no
..and answer some questions that the program will ask. For more info on how to use Checkinstall: https://ostechnix.com/build-packages-source-using-checkinstall/

Hope it helps, and incentive you guys to share some apps here.:)
 

Attachments

  • dolphin-emu_arm64.zip
    6.8 MB · Views: 256
Last edited by sergio_prado,

MistWisp

Well-Known Member
Member
Joined
Aug 29, 2016
Messages
165
Trophies
0
Age
31
XP
218
Country
Brazil
So, after i install it, can i delete something from the switchroot folder on the fat32 partition on the SD card? Or do i need to keep it all in even after installing it on the linux partition?
 

Gigaboy

Active Member
Newcomer
Joined
May 12, 2019
Messages
31
Trophies
0
Age
22
Website
www.gigaboy.dev
XP
205
Country
United States
Is it ok for me to dist upgrade to 20.04 without breaking everything? I was going to try installing lubuntu-desktop, but unfortunately it's only available on 19.04 and newer for arm64 processors.

Or if you know of another lightweight desktop that would be great. I'm not the most familiar with Linux systems.
 

Worldblender

Well-Known Member
Member
Joined
May 27, 2019
Messages
326
Trophies
0
Age
27
XP
2,236
Country
United States
Is it ok for me to dist upgrade to 20.04 without breaking everything? I was going to try installing lubuntu-desktop, but unfortunately it's only available on 19.04 and newer for arm64 processors.

Or if you know of another lightweight desktop that would be great. I'm not the most familiar with Linux systems.
Don't try to dist upgrade just yet, unless you know what you're doing. Check out some of these alternate desktop environments which can be installed on most Linux distros, including on regular PCs:
  • KDE (not exactly lightweight in terms of how packages are installed initially, but it can run in a lightweight mode)
  • LxQt/LXDE (try out the former)
  • MATE
  • XFCE
 

shim80

Well-Known Member
Newcomer
Joined
Jul 30, 2015
Messages
66
Trophies
0
Age
29
XP
361
Country
France
Hello,
Do anyone know how to install newest pckages on old Ubuntu distros ? I'm trying to get the new Blender version (2.9), but I can only install Blender 2.79 on Ubuntu 18.04...
 

Worldblender

Well-Known Member
Member
Joined
May 27, 2019
Messages
326
Trophies
0
Age
27
XP
2,236
Country
United States
Hello,
Do anyone know how to install newest pckages on old Ubuntu distros ? I'm trying to get the new Blender version (2.9), but I can only install Blender 2.79 on Ubuntu 18.04...
On x86 systems, this is possible with PPAs, Snaps, or Flatpaks, but since the Nintendo Switch is 64-bit ARM (armv8), such precompiled packages don't really exist, sorry. Your only option left would be to compile Blender from source.
 

spotanjo3

Well-Known Member
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,206
Country
United States
If anyone interested, Here's a Dolphin emulator package ready to install. Compiled from the source by me few day ago.

It's the main Dolphin, wich in my tests prove to be faster than Ishiruka's.

To install, unzip and tap/double click on the .deb file and choose install on the window that will open.

You may need to install some dependencies. To do that, open Terminal and paste/type this:
sudo apt install git cmake ffmpeg libavcodec-dev libevdev-dev libusb-1.0-0-dev libavformat-dev libswscale-dev libsfml-dev libminiupnpc-dev libmbedtls-dev curl libhidapi-dev libwxbase3.0-dev libwxgtk3.0-dev libpangocairo-1.0-0 libgtk2.0-dev libbluetooth-dev qt5-default qtbase5-private-dev libudev-dev libxi-dev

By the way, after compiling a program, you can make a package of it, that can be easily installed and shared afterwards.:)

To accomplish that, you will need a program called "Checkinstall". To install it, type/paste this on Terminal:
sudo apt-get install checkinstall
Then, after you compile a program, to create the package you just type the following on the Terminal: sudo checkinstall --install=no
..and answer some questions that the program will ask. For more info on how to use Checkinstall: https://ostechnix.com/build-packages-source-using-checkinstall/

Hope it helps, and incentive you guys to share some apps here.:)

Many thanks for your easy instruction, man. Does it runs Wii games such as Super Mario Galaxy and Galaxy 2 fully ?
 
  • Like
Reactions: sergio_prado

Gigaboy

Active Member
Newcomer
Joined
May 12, 2019
Messages
31
Trophies
0
Age
22
Website
www.gigaboy.dev
XP
205
Country
United States
If someone could upload their '/etc/nv_boot_control.conf' file here that would be great. I seem to have deleted my copy? Idk, I have 3 broken packages that say they need it. (nvidia-l4t-xusb-firmware, nvidia-l4t-initrd, and nvidia-l4t-apt-source)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    ButterScott101 @ ButterScott101: +1