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 ,

NANASHI89

Well-Known Member
Member
Joined
May 3, 2012
Messages
2,473
Trophies
1
XP
5,358
Country
United States
So go ahead and configure them. it's just matching buttons on your joycons to buttons that are commonly used on controllers.

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


Done, cheers mate!
All I can do is scroll up and down with the Right Analog Stick. Cannot get to the configure option.

Sent from my SM-T280 using Tapatalk
 
D

Deleted User

Guest
OP
All I can do is scroll up and down with the Right Analog Stick. Cannot get to the configure option.

Sent from my SM-T280 using Tapatalk
Plug the switch into your dock and use a usb keyboard and mouse. It really helps for setting stuff up.
 

avattar

Member
Newcomer
Joined
Apr 29, 2019
Messages
12
Trophies
0
Age
40
XP
183
Country
Brazil
Just wanted to share: I use NoMachine to remote control my switch's linux. It's like an open version of teamviewer. To use, download it on your pc (windows, linux, mac, android, whatever), then download and install on your L4T switch (download the ARM64 deb here: www.nomachine.com/download/download&id=114&s=ARM) then install with "sudo dpkg -i nomachine_6.6.8_7_arm64.deb". Works great out of the box. Sometimes disconnects when you switch user or logout/logon, in which case just connect again.
 

stick267

Well-Known Member
Member
Joined
Dec 17, 2018
Messages
586
Trophies
0
Age
33
XP
1,171
Country
United States
Just wanted to share: I use NoMachine to remote control my switch's linux. It's like an open version of teamviewer. To use, download it on your pc (windows, linux, mac, android, whatever), then download and install on your L4T switch (download the ARM64 deb here: www.nomachine.com/download/download&id=114&s=ARM) then install with "sudo dpkg -i nomachine_6.6.8_7_arm64.deb". Works great out of the box. Sometimes disconnects when you switch user or logout/logon, in which case just connect again.
Was looking for something like this. Thanks.
 

Snomannen_kalle

Well-Known Member
Member
Joined
Sep 2, 2018
Messages
350
Trophies
0
Age
29
XP
2,381
Country
Norway
Here are some useful ones from the other thread:

To OC (haven't tried it though, so don't know how it works):
echo performance | sudo tee /sys/devices/system/cpu/cpufreq/policy0/scaling_governor

Swap file (space on disk the system uses when the RAM is full):
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]

 

hallo23

Well-Known Member
Member
Joined
Sep 13, 2009
Messages
143
Trophies
1
XP
1,419
Country
Germany
Really good thread!:)

I tried installing the vulkan Dolphin build step by step but I get this error while executing "sudo make install"
fot.jpg
Don't know what I'm doing wrong ;_;
 
D

Deleted User

Guest
OP
Really good thread!:)

I tried installing the vulkan Dolphin build step by step but I get this error while executing "sudo make install"
Don't know what I'm doing wrong ;_;
I..... do not know I'm afraid.

I used the steps I posted to install it a few times now and it's worked fine. Maybe someone more versed in Linux can point you in the right direction.

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

Here are some useful ones from the other thread:

-snip-
Added these to the OP! Cheers bud :)
 
D

Deleted User

Guest
OP
OK, how do I unlock the whole free space of my microSD card? 8 GB ain't gonna cut it.
Top left of the screen is the unity (think of it like the start button)
Type Disk into it. And theres a program called disks.
Open that, then click on the MIDDLE partition. Click the cogs, resize. Then drag the slider as far as you want.
 
D

Deleted User

Guest
OP
Thank you for these; I got Ishiiruka Dolphin up and running and it's working very nicely!

For Retroarch though, I followed the instructions to the letter, and I can get the Retroarch program itself running fine, but no cores are showing up at all when I go to try and load one. Nor will it let me download any cores from the updater section. I uninstalled and reinstalled (still no luck there btw), and I noticed the core packages were definitely installing, so I'm not quite sure what's up.
 

NANASHI89

Well-Known Member
Member
Joined
May 3, 2012
Messages
2,473
Trophies
1
XP
5,358
Country
United States
Top left of the screen is the unity (think of it like the start button)
Type Disk into it. And theres a program called disks.
Open that, then click on the MIDDLE partition. Click the cogs, resize. Then drag the slider as far as you want.
"Error unmounting filesystem

Error unmounting /dev/mmcblk0p2: target is busy (udsiks-error-quark, 14)

Error unmounting filesystem for resizing

Error unmounting /dev/mmcblk0p2: target is busy (udsiks-error-quark, 14)"

That's the message it gave me.
 
D

Deleted User

Guest
OP
Thank you for these; I got Ishiiruka Dolphin up and running and it's working very nicely!

For Retroarch though, I followed the instructions to the letter, and I can get the Retroarch program itself running fine, but no cores are showing up at all when I go to try and load one. Nor will it let me download any cores from the updater section. I uninstalled and reinstalled (still no luck there btw), and I noticed the core packages were definitely installing, so I'm not quite sure what's up.
Check the guide again, install the PPA line, then try start retroarch again.
Also, I think you have scan your games folder (wherever you located it) for games to start showing up. It took me a while too.

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

"Error unmounting filesystem

Error unmounting /dev/mmcblk0p2: target is busy (udsiks-error-quark, 14)

Error unmounting filesystem for resizing

Error unmounting /dev/mmcblk0p2: target is busy (udsiks-error-quark, 14)"

That's the message it gave me.
Restart your switch and try again. Some folks have had to use a live linux disc or a virtual machine running linux to do it.
I think it might be a slight incompatibility or something.
 

NANASHI89

Well-Known Member
Member
Joined
May 3, 2012
Messages
2,473
Trophies
1
XP
5,358
Country
United States
Check the guide again, install the PPA line, then try start retroarch again.
Also, I think you have scan your games folder (wherever you located it) for games to start showing up. It took me a while too.

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


Restart your switch and try again. Some folks have had to use a live linux disc or a virtual machine running linux to do it.
I think it might be a slight incompatibility or something.
And now, after attempting to re-start linux, it makes this flashing effect, non-stop.
 
D

Deleted User

Guest
OP
And now, after attempting to re-start linux, it makes this flashing effect, non-stop.
Try starting from scratch then, I had to do it myself. It sucks, but atleast it doesn't take too long to get up and running.
 

hallo23

Well-Known Member
Member
Joined
Sep 13, 2009
Messages
143
Trophies
1
XP
1,419
Country
Germany
I..... do not know I'm afraid.

I used the steps I posted to install it a few times now and it's worked fine. Maybe someone more versed in Linux can point you in the right direction.

Did you install anything else before Dolphin?
Maybe I'm missing a package that you already had installed before or something like.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, would you recommend playing n64 games on a ps3 through retroarch?