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 ,

Halo69

Well-Known Member
Newcomer
Joined
Aug 6, 2019
Messages
58
Trophies
0
Age
46
XP
118
Country
United States
Im on l4t 3.0.0 i installed qjoypad to map the joycons.
I ran qjoypad --notray in terminal and the controller icon shows up, i click on it and it opens up but when i click on anything qjoypad closes and i get (segmentation fault (core dumped) what that means? 20200314_165000.jpg
 

quandeptrai

New Member
Newbie
Joined
Mar 27, 2020
Messages
2
Trophies
0
Age
33
XP
45
Country
Vietnam
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

Hi there in the newest version of this the joycon mouse doesnt work properly you cannot click only move the mouse which isnt very useful

Same issue, anyone can help? :(
 

enderer

Well-Known Member
Member
Joined
Jul 19, 2015
Messages
381
Trophies
0
Age
34
XP
1,652
Country
United States
remove .txt from file and move this file to usr/share/X11/xorg.conf.d (do it with sudo mv) and reboot or logout and login.
The mappings are as follow: Left click mouse is B , Right click is A, L and R control volume, ZR and ZL control brightness, Screenshot button enables or disables mouse mode , Home button is Escape, Plus button is enter, Minus button is back.
(copied from discord)
 

Attachments

  • 50-joystick.conf.txt
    792 bytes · Views: 441

quandeptrai

New Member
Newbie
Joined
Mar 27, 2020
Messages
2
Trophies
0
Age
33
XP
45
Country
Vietnam
remove .txt from file and move this file to usr/share/X11/xorg.conf.d (do it with sudo mv) and reboot or logout and login.
The mappings are as follow: Left click mouse is B , Right click is A, L and R control volume, ZR and ZL control brightness, Screenshot button enables or disables mouse mode , Home button is Escape, Plus button is enter, Minus button is back.
(copied from discord)
Big thanks! The problem is solved.
 

hipmp5

Well-Known Member
Newcomer
Joined
Jun 24, 2018
Messages
66
Trophies
0
Age
31
XP
294
Country
Qatar
Today i tried for the first time this installation but every time i try to install something i got this: Could not resolve turul.canonical.com and i can't even ping that website.
 

SexiestManAlive

The key that lights the dark
Member
Joined
Apr 18, 2016
Messages
617
Trophies
0
Age
22
XP
2,457
Country
United States
joycon as mouse command isnt working for me, i still cant use the joycons even though there connected
edit: last thing, is there anyway to disable the rails as i cant connect my left joycon to it as the rail is messed up and i cant fix it
edit: just removed the part that connects the joycon to the switch lol
 
Last edited by SexiestManAlive,

SexiestManAlive

The key that lights the dark
Member
Joined
Apr 18, 2016
Messages
617
Trophies
0
Age
22
XP
2,457
Country
United States
remove .txt from file and move this file to usr/share/X11/xorg.conf.d (do it with sudo mv) and reboot or logout and login.
The mappings are as follow: Left click mouse is B , Right click is A, L and R control volume, ZR and ZL control brightness, Screenshot button enables or disables mouse mode , Home button is Escape, Plus button is enter, Minus button is back.
(copied from discord)

how do you use mv to move the file to the directory, for me its saying the dirctory doesnt exist, im doing sudo mv home/myname/downloads/50-joystick.conf usr/share/x11/xorg.conf.d and it keeps saying that, linux is incredibly complicated fpr me lol

so apparently my download folder doesn't exist at all even though it does since i cant select it with ls

edit: figured it out, i had to use capitals instead of just all lowercase, i dont think it should be like that tbh
 
Last edited by SexiestManAlive,

The Official GMan

Well-Known Member
Newcomer
Joined
Jan 16, 2016
Messages
47
Trophies
0
XP
336
Country
United States
I though I would post for reference some unique emulators I have been able to install.

I currently am running ubuntu withe the gnome desktop. I have modified the install script for RETROPIE and am on the current version. All cores that support aarch64 (arm64) will build correct from source. I have also managed to install a binary of the ds emulator drastic though performance is not good (issues with the display server high cpu usage lowering performance). I have compiled melonDS with with the arm64 jit with close to full speed emulation on 3d games. I am currently working on building the nintendo switch MelonDS port on ubuntu (which it wasn't written for) and expect that to produce full speed performance. Desmume (the ds emulator) builds but, since it has no arm64 jit,performance is poor. I have build both the most current dolphin dev build and ishiiruka with both performing similarly under the vulkan backend (45-60fps in double dash single player) (cpu single core performance limited with the current arm64 jit recompiler). I expect anything older than gamecube and ds to run fullspeed in all scenarios.
 

starwind23

New Member
Newbie
Joined
May 17, 2020
Messages
3
Trophies
0
Age
34
XP
35
Country
United States
Ishiiruka crashes whenever I try to go fullscreen or resize window :( any solution for this?



Same, I just open and make it larger before it loads. This is a workaround of sorts.

I cant download cores for retroarch it just fetches and never loads the cores list. when i move the menu after it 2x txt in UI.
Also is there any other apps like pcx 2 riecast ect i haven't seen post on how to install. but iv seen them around are they just not useful
 
Last edited by starwind23,

Nitrus

Active Member
Newcomer
Joined
Sep 27, 2018
Messages
28
Trophies
0
Age
44
XP
329
Country
United States
Hangover Installation Tutorial

1. Get L4T running on your Switch and connect to network. Going to assume you have the basics down. I had to reflash my SD card because I screwed up the DE so I'm writing this tutorial off of a fresh install.

2. Install required dependencies: sudo apt-get install git build-essential mingw-w64 mingw-w64-i686-dev mingw-w64-x86-64-dev libfreetype6-dev

3. Clone the Hangover repository: git clone <link removed because this forum is dumb, google "wine hangover github" and you'll find it>

4. cd into the hangover directory: cd hangover

5. Initialize submodules: git submodule update --init --recursive

6. Both times I've tried to build this, the qemu submodule seems to initialize to an empty commit. To fix this, cd into the qemu directory and reset: git reset --hard HEAD

7. cd back up to the hangover directory: cd ..

5. Build the project: make -j4

6. Rerun make -j4 until there are no errors. You may want to enable the overclock/performance mode for this step as it will take a while.

7. Symlink libgcc_s_sjlj-1.dll into hangover build: ln -s /usr/lib/gcc/i686-w64-mingw32/7.3-win32/libgcc_s_sjlj-1.dll build/qemu/x86_64-windows-user/qemu_guest_dll32/libgcc_s_sjlj-1.dll
I've been looking for a way to compile Hangover though it seems that it's unsuccessful when trying to compile with recent MinGW/Wine versions. Has anyone been able to do it recently (past few months) and if yes, can you let me know? Running into undefined references and playing whack-a-mole right now

EDIT: It actually works off of commit 0ee5b16, however that's more than a year old. I am reluctant to go down the bisect route as installation takes several hours
 
Last edited by Nitrus,

Fayd

Active Member
Newcomer
Joined
Aug 22, 2017
Messages
29
Trophies
0
Age
44
XP
1,081
Country
United States
I followed the instructions on how to make your joy cons a mouse. When I hold L and R something pops up fast about switch controller not configured and it doesn't work.
 

mgjpm37

Well-Known Member
Newcomer
Joined
Mar 11, 2019
Messages
59
Trophies
0
Age
22
XP
296
Country
Japan
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.]

"CMake cmake lists" error occurs
 

HappehLemons

Well-Known Member
Member
Joined
Jan 24, 2011
Messages
102
Trophies
1
XP
279
Country
United States
Followed this guide to a tee and retroarch has no cores. sudo apt-get update && sudo apt-get upgrade seem to do nothing for me. Is there any way to manually download them?

Figured this out, but N64 crashes with every game on load. Very disappointing :(
 
Last edited by HappehLemons,

Imancol

Otak Productions
Member
Joined
Jun 29, 2017
Messages
1,375
Trophies
0
XP
2,762
Country
Colombia
Hi. Lately I have been installing the applications and configurations of this thread. At one point, data that was updated with the Update & Upgrade command, a few libraries appeared that began to download, exceeding more than 2GB. I left it installing and at one point I got a message saying that I was about to install some Nvidia drivers, so it gave me several options, including the Y or I, to accept that it was installed, so I gave And. In the end I ended up with some errors that it was impossible for him to rewrite or install things. Then when I tried to install other things I started to vote for those same errors.

This is the error:

Code:
Configurando nvidia-l4t-xusb-firmware (32.4.2-20200408182156) ...
Starting xusb firmware post-install procedure.
ERROR. Procedure for xusb firmware update FAILED.
Cannot install package. Exiting...
dpkg: error al procesar el paquete nvidia-l4t-xusb-firmware (--configure):
 installed nvidia-l4t-xusb-firmware package post-installation script subprocess returned error exit status 1
dpkg: problemas de dependencias impiden la configuración de nvidia-l4t-initrd:
 nvidia-l4t-initrd depende de nvidia-l4t-xusb-firmware (= 32.4.2-20200408182156); sin embargo:
 El paquete `nvidia-l4t-xusb-firmware' no está configurado todavía.

dpkg: error al procesar el paquete nvidia-l4t-initrd (--configure):
 problemas de dependencias - se deja sin configurar
No se escribió un informe «apport» porque el mensaje de error indica que es un mensaje de error asociado a un fallo previo.
                                                                                                                           Se encontraron errores al procesar:
 nvidia-l4t-xusb-firmware
 nvidia-l4t-initrd
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have tried to test some cleanup commands like autoremove, autoclean, bpkg --force etc, but they keep giving me the same error.

Hopefully you can help me.
 

Manaboy

Well-Known Member
Newcomer
Joined
Dec 18, 2017
Messages
68
Trophies
0
Age
36
XP
247
Country
United Kingdom
Hi, just a quick question guys, any way of getting Ephinea PSO BB working on L4T Ubuntu via wine/Hangover?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Psionic Roshambo @ Psionic Roshambo:
    It could get banned from PSN but you can change your ID I think?
  • Xdqwerty @ Xdqwerty:
    also gonna install twilight menu in my r4 flashcard
  • Psionic Roshambo @ Psionic Roshambo:
    One thing that just occurred to me.... The sound on the 2600 sucked less back then the harsh sound we hear now is from infinitely better speakers we have now, back when the 2600 was new speakers produced a almost muffled sound, like CRTs made old graphics look slightly better.
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if I could recommend that to some emulation devs that perhaps the sound could use some smoothing out to simulate those old TVs
  • Psionic Roshambo @ Psionic Roshambo:
    I think a few of the early systems could benefit from that, at least up to the 8 bit generation, by the 16 bit generation I think TVs had gotten a lot better in almost every way
  • Xdqwerty @ Xdqwerty:
    i dont have an sd card adapter but I have an usb sd card adapter
  • K3Nv2 @ K3Nv2:
    Old people games
  • Xdqwerty @ Xdqwerty:
    its not the one that comes with the r4
  • Xdqwerty @ Xdqwerty:
    doesnt work (my flashcard is from r4isdhc.com)
  • Xdqwerty @ Xdqwerty:
    might install ysmenu first
  • Psionic Roshambo @ Psionic Roshambo:
    Try Wood firmware
  • Psionic Roshambo @ Psionic Roshambo:
    For your R4
  • Psionic Roshambo @ Psionic Roshambo:
    It's old but it's the best firmware out for DS stuff
  • Xdqwerty @ Xdqwerty:
    it says it only works for the original R4, R4i Gold (r4ids.cn), R4iDSN (r4idsn.com) and Acekard R.P.G.
  • Xdqwerty @ Xdqwerty:
    nvm it does support mine
  • Xdqwerty @ Xdqwerty:
    but why choose it over ysmenu @Psionic Roshambo?
  • Xdqwerty @ Xdqwerty:
    bc im stupid?
  • Xdqwerty @ Xdqwerty:
    yea ik im stupid
  • Xdqwerty @ Xdqwerty:
    good night
  • Psionic Roshambo @ Psionic Roshambo:
    Just give it a try, but honestly if you have a 3DS you can play DS games without a card just off the internal SD card
  • Psionic Roshambo @ Psionic Roshambo:
    Slightly slower loading but a bit more convenient
  • BakerMan @ BakerMan:
    guys, my fuckin headphones have an out of place speaker
  • K3Nv2 @ K3Nv2:
    Did you try wearing them?
    K3Nv2 @ K3Nv2: Did you try wearing them?