Tutorial  Updated

L4T Ubuntu Applcation Install guides.

So, instead of clogging up poor @bylaws L4T thread (sorry buddy!) with emulators apps, I figured it might be a good idea to try and make a separate thread for quick guides, and leave his one to troubleshooting actual L4T issues.

The intent for this thread is to leave behind quickshot guides for others to install applications we know works for Tegra Linux, so here's the one's I've managed so far, with the help of some folks in the L4T OS thread.

If others are going to add to this thread with their own little guides, try to keep each seperate command on it's own line, and if the command is too big for 1 line, seperate it as I have done in the Vulkan Dolphin guide. Little comments should go into square brackets and have the color changed to red. Try to keep it in a format that people can copy/paste each line as they're needed.

(It is advised to make a Swapfile, so please follow that guide first!)

sudo apt install nano
[You can change 1G to whatever size you want, I used 2G]
sudo fallocate -l 1G /swapfile
[If fallocate throws an error, you want to run the]
[next command, if it doesn't, skip it]

sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo nano /etc/fstab
[You need to add this entry to the file you just opened]
[to make the change permanent:]

/swapfile swap swap defaults 0 0
[To verify that it installed correctly:]
sudo free -h
[Something like this should be the output:]

       [total        used         free       shared  buff/cache  available]
[Mem: 488M 158M 83M 2.3M 246M 217M]
[Swap: 1.0G 506M 517M]

echo performance | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_governor

sudo add-apt-repository ppa:dolphin-emu/ppa
sudo apt-get update
git clone https://github.com/Tinob/Ishiiruka.git
cd Ishiiruka
mkdir build
cd build

[This next line is all in one, so copy/paste]
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

cmake ..
make -j4
sudo make install

[Once installed, execute with]
ishiiruka
[Then lock it to the sidebar for easy access]

sudo add-apt-repository ppa:libretro/testing
sudo apt-get install retroarch* libretro*
sudo apt-get update && sudo apt-get upgrade
[Easy enough to install]

sudo apt-get install xserver-xorg-input-joystick

[To use your joycons as a mouse, press the sync buttons on the rail of each joycon, then use the bluetooth app to connect to them both. Once both are connected, hold them like you normally do, and press L+R (L1, R1 in Playstation terms), and that should be it!]
[Another easy install, to change sensitivity, go to system settings, mouse, and make your changes]

sudo apt-get install kodi
[After installing Kodi, you will need to logout. Do not shut down or reboot, but if you did, follow the same instructions.]
[Log out, and you'll be at the login menu. Click the account, and it'll ask you for your password.]
[Underneath the password box, is a cog. Click the cog, and click Unity.]
[From now on, Kodi will not automatically start upon booting up linux.]
[Yet another easy one, but this is a very powerful media box program]

[Original Post https://gbatemp.net/threads/tutoria...ling-moonlight-embedded-on-l4t-ubuntu.537429/ ]
sudo apt-get update
[Next line is all 1 command]
sudo apt-get install libopus0 libexpat1 libasound2 libudev1 libavahi-client3 libcurl3 libevdev2 libenet7 -y && sudo apt-get install libssl-dev libopus-dev libasound2-dev libudev-dev libavahi-client-dev libcurl4-openssl-dev libevdev-dev libexpat1-dev libpulse-dev uuid-dev libenet-dev cmake gcc g++ fakeroot debhelper
libavcodec-dev libsdl2-dev -y

git clone https://github.com/irtimmer/moonlight-embedded.git
cd moonlight-embedded
git submodule update --init
mkdir build
cd build/
cmake ../
make
sudo make install
sudo ldconfig

[Now reboot your switch]
moonlight pair <pc local ip>
moonlight stream <pc local ip>

[Where pc local ip, you must put in your pc's ip address. To find that, on windows, open Win+r, in the dialog box, put in cmd.exe. In the new window, type in ipconfg, then look for your systems ip address. if you computer is wired to your network, it'll fall under "Ethernet adapter Ethernet".
If it is Wireless, then it'll fall under "Wireless LAN adapter WiFi"
Either way, you'll want the IPv4 Address.]
[In linux, just open terminal, the command "ifconfig" and look for IPv4]


[To configure your joycons to work with Moonlight]
sudo gedit /usr/local/share/moonlight/gamecontroller.txt

[Scroll to the bottom and copy/paste one of these style codes into the file]
[For Nintendo Style:]
050000007e0500000620000001000000,Nintendo Switch Joy-Cons,a:b1,b:b0,back:b9,dpdown:b15,dpleft:b16,dpright:b17,dpup:b14,guide:b11,leftshoulder:b5,leftstick:b12,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b13,righttrigger:b8,rightx:a2,righty:a3,start:b10,x:b2,y:b3,

[For Microsoft Style:] 050000007e0500000620000001000000,Nintendo Switch Joy-Cons,a:b0,b:b1,back:b9,dpdown:b15,dpleft:b16,dpright:b17,dpup:b14,guide:b11,leftshoulder:b5,leftstick:b12,lefttrigger:b7,leftx:a0,lefty:a1,rightshoulder:b6,rightstick:b13,righttrigger:b8,rightx:a2,righty:a3,start:b10,x:b3,y:b2,

[Then,press CTRL + X. Then press Y. Then close terminal and reboot your switch.]
 
Last edited by ,

enderer

Well-Known Member
Member
Joined
Jul 19, 2015
Messages
381
Trophies
0
Age
34
XP
1,652
Country
United States
when i open file explorer, there is a folder that contains the FAT32 partition. is it possible for retroarch to see this folder? i'd hate to need double copies of my roms.
 

DominoBright

Well-Known Member
Member
Joined
Sep 21, 2009
Messages
315
Trophies
1
Age
41
XP
2,509
Country
United States
EDIT: I asked how to fix the touch screen for Cinnamon, but it looks like the driver is being worked on, so it might work properly when it's updated. So instead, I'll ask something else.

If a way is possible, how do you install Adobe Flash? I only want it for one place so it's not that big of a deal, but I tried quite a few methods to no success.
 
Last edited by DominoBright,

Chef_Keeper

New Member
Newbie
Joined
Nov 2, 2019
Messages
1
Trophies
0
Age
33
XP
49
Country
France
Hi,

I followed your guide and initial installation guide (up to update 1.3), but for some reason I can't put my switch to sleep, when I push on / off button while on L4T nothing happens.

Also installed dolpin ishiiruka fork have tested a few GC games but now only zelda twilight princess seems to work, other games like pikmin or mario sunshine crashes doplhin with a core dump any idea ?

Thanks
 

Halo69

Well-Known Member
Newcomer
Joined
Aug 6, 2019
Messages
58
Trophies
0
Age
46
XP
118
Country
United States
For joycons you'll need to map them, you can try to add the testing ppa
sudo add-apt-repository ppa:libretro/testing
Then apt update and upgrade
@StarGazerTom you may wanna change add this as it will have newer cores
I did that and its in the process of installing. Now after its done how i get into the testing ppa to map the joycons?

--------------------- MERGED ---------------------------

Also can someone add a very good tutorial how to create and execute /etc/rc.local to use reboot2payload.
I open terminal and run sudo gedit /etc/rc.local
(Using gedit cause nano is not installed)
Then i open a second terminal and run the script to make /etc/rc.local executable but nothing happens and dont know exactly how to do it.
Can someone please help and show me exactly what needs to be done step by step.
Do i need to keep /etc/rc.local open to run the execute script? Do i need to save the file 1st before executing? I have read to enter scripts but no explanation and steps on how to sucessfully do it.
 

TimX24968B

"That guy"
Member
Joined
Oct 28, 2015
Messages
1,403
Trophies
0
Location
Nowhere
XP
399
Country
United States
for the dolphin gamecube emulator, can you replace it with the faster melee version, or is it a special version thats designed to work on this specific linux distro?
 

Silent_Gunner

Crazy Cool Cyclops
Banned
Joined
Feb 16, 2017
Messages
2,696
Trophies
0
Age
29
XP
4,727
Country
United States
First things first, why the fuck wasn't this shit in the main thread...whatever.

Anyways, I'm not about to go through 21 pages to find out if this has been answered, but I synced up my 8bitdo SN30 Pro+ (the one that's based on the SNES with built-in grips, probably the closest you're getting to a third party controller that's kind of well-built and has all of the basic functions that every modern game actually needs to function) Controller in Switch mode, and RetroArch doesn't detect it for shit. It detects the combined Joy-Cons just fine, but the Joy-Cons being the Joy-Cons, and my not being out enough to justify setting it up as such atm, I'd really love to figure out how to set this up for TV use!

EDIT: And...I changed it to DirectInput mode (I think, anyways, it's the sync mode if you hold X (or the top face button) and start and then push the sync button while on the BT settings window) and it's now working fine. Consider this a bump to a thread for those who liked the idea of Ubuntu on the Switch, but were holding out for sleep mode to be implemented as of the recent 2.0 update, something yours truly has yet to try out considering he's just trying to set shit up right now and isn't exactly a Linux expert.

EDIT ELECTRIC BOOGALOO: Retroarch opens for 10 seconds and closes immediately after. The window never opens up, and this is after yours truly tried to set the Video plugin to Vulkan, uninstalled RetroArch, deleted the .cfg file in the /etc folder, and then re-installed RetroArch. And then I remember this being a problem with this homebrew solution when I tried the Noob-Ffiendly L4T-Ubuntu build months ago.

What's the definitive way to uninstall RetroArch and then reinstall it to where it'll at least boot up properly?
 
Last edited by Silent_Gunner,

TimX24968B

"That guy"
Member
Joined
Oct 28, 2015
Messages
1,403
Trophies
0
Location
Nowhere
XP
399
Country
United States
Hey, every time i try to install fastermelee it throws all kinds of errors just trying to compile it. can someone help me out here? despite installing all the libraries, what is L4T missing that i would need to compile something like this in terms of libraries?
 

Dimen

Member
Newcomer
Joined
Jul 28, 2019
Messages
12
Trophies
0
Age
23
XP
82
Country
Korea, South
Well I installed joycon mouse, and I can move the cursor with my joycon analog pad, but not any clicking. Every buttons are not working. please help
 

ElBleppo

New Member
Newbie
Joined
Feb 16, 2020
Messages
1
Trophies
0
Age
28
XP
74
Country
United Kingdom
I fixed it. It seems the button codes of my joy con are different from on the general situations. I don't know why
Hey, I've been having the same problem with my button codes being different too. How did you manage to fix it? Could you share your config file?
 

Theredbaron1834

Member
Newcomer
Joined
Dec 18, 2006
Messages
6
Trophies
1
XP
481
Country
I fixed it. It seems the button codes of my joy con are different from on the general situations. I don't know why
I could go with that config as well. don't know if it would work, but default didn't, nore did the config a few pages back. Never messed with xserver-input settings, so it could save me hours if you can.

Sent from my H3123 using Tapatalk
 

Nantakasann

New Member
Newbie
Joined
Mar 29, 2019
Messages
3
Trophies
0
XP
46
Country
Canada
I imported the config file (page-13 this forum joystick config.zip), but it only worked with the pointer, and the other keys were scattered and useless. Could someone please modify the config? l4t ubuntu version is 2.0.0.
 

LeMageFro

Well-Known Member
Member
Joined
Mar 29, 2018
Messages
215
Trophies
0
XP
1,396
Country
France

Nantakasann

New Member
Newbie
Joined
Mar 29, 2019
Messages
3
Trophies
0
XP
46
Country
Canada

Section "InputClass"
Identifier "joystick catchall"
MatchIsJoystick "on"
MatchDevicePath "/dev/input/event*"
Driver "joystick"
Option "MapButton1" "button=1"
Option "MapButton2" "button=3"
Option "MapButton3" "button=2"
Option "MapButton4" "key=66"
Option "MapButton5" "key=232"
Option "MapButton6" "key=22"
Option "MapButton7" "key=65"
Option "MapButton8" "key=9"
Option "MapButton9" "key=36"
Option "MapButton10" "key=122"
Option "MapButton11" "key=123"
Option "MapButton12" "key=233"
Option "MapButton13" "disable-all"
Option "MapButton14" "key=71"
Option "MapButton15" "key=111"
Option "MapButton16" "key=116"
Option "MapButton17" "key=113"
Option "MapButton18" "key=114"
EndSection

I don't know which button is assigned to which keys, so please tell me.
 

LeMageFro

Well-Known Member
Member
Joined
Mar 29, 2018
Messages
215
Trophies
0
XP
1,396
Country
France
Section "InputClass"
Identifier "joystick catchall"
MatchIsJoystick "on"
MatchDevicePath "/dev/input/event*"
Driver "joystick"
Option "MapButton1" "button=1"
Option "MapButton2" "button=3"
Option "MapButton3" "button=2"
Option "MapButton4" "key=66"
Option "MapButton5" "key=232"
Option "MapButton6" "key=22"
Option "MapButton7" "key=65"
Option "MapButton8" "key=9"
Option "MapButton9" "key=36"
Option "MapButton10" "key=122"
Option "MapButton11" "key=123"
Option "MapButton12" "key=233"
Option "MapButton13" "disable-all"
Option "MapButton14" "key=71"
Option "MapButton15" "key=111"
Option "MapButton16" "key=116"
Option "MapButton17" "key=113"
Option "MapButton18" "key=114"
EndSection

I don't know which button is assigned to which keys, so please tell me.
It's detailed in my post page 13 :
The buttons are mapped as follows :
A = right click
B = left click
X = middle click
Y = caps lock
L = backspace
R = space
ZL = escape (very useful to exit fullscreen mode with dolphin)
ZR = enter
D-pad = arrow keys
- = volume down
+ = volume up
screenshot button = brightness down
home button = brightness up
left stick button = disable/enable mouse and keyboard inputs (very useful with dolphin as well)
right stick button = F5
If you want to know the code for the keys of your linux keyboard, as said in the documentation I linked (please read it) : "look up the matching scancode using xmodmap -pk".
 
Last edited by LeMageFro,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Black_Manta_8bit @ Black_Manta_8bit: hey