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 ,

6adget

GBAtemp's official atheist
Member
Joined
Sep 12, 2016
Messages
234
Trophies
0
Age
50
Location
California
XP
1,842
Country
United States
I have successfully compiled Plex Media Player!

I'd share build instructions but I don't quite remember what I've done, as I have modified my building toolchain quite heavily.
https://twitter.com/DingoTech/status/1128228220803829760


So I just got it working on my switch. Nothing to install really. I just went to the plex website. plex.tv signed into my plex account, then clicked on the "launch" link. I have my plex server running on a headless PC running ubuntu. it's not a very fast PC. I can't remember the exact CPU, but i think it's a dual core Intel ruining at 2.2GH. My friends and fam all have access to it. there are times when i put a new movie on it, or something like GOT is on a given day, and i might have a dozen people streaming from it with no lag. not sure if you know this, but you cant stream to a mobile device without paying for a monthly, or lifetime plex pass. now that I can watch it on the switch I no longer have to bitch about that when i'm out of town.
 

mathew77

Lovin' life.
Member
Joined
Jan 19, 2019
Messages
1,181
Trophies
0
Age
47
XP
3,668
Country
Kazakhstan
About the configuration of the xserver-xorg-input-joystick and 50-joystick.conf file — I did my lil' neat config for the Morrowind (with commented keycodes, too!); left stick configured as WASD and right stick as a mouse movement, maybe anybody find it interesting for himself in other 3d-games, too:
Code:
Section "InputClass"
    Identifier "joystick catchall"
    MatchIsJoystick "on"
    MatchDevicePath "/dev/input/event*"
    Driver "joystick"
    Option "MapAxis1" "mode=accelerated keylow=38 keyhigh=40"
    Option "MapAxis2" "mode=accelerated keylow=25 keyhigh=39"
    Option "MapAxis3" "mode=relative axis=+1.5x deadzone=3500"
    Option "MapAxis4" "mode=relative axis=+1.5y deadzone=3500"
    Option "MapAxis5" "mode=accelerated keylow=34 keyhigh=35"
    Option "MapAxis6" "mode=accelerated keylow=52 keyhigh=53"
    Option "MapButton1"    "key=26" # B, E
    Option "MapButton2"    "key=27" # A, R
    Option "MapButton3"    "key=37" # X, CTRL
    Option "MapButton4"    "key=67" # Y, F1
        Option "MapButton5"    "key=24" # screenshot, Q
        Option "MapButton6"     "key=41" # L, F
        Option "MapButton7"     "button=3" # R, RMB
        Option "MapButton8"     "key=65" # ZL, SPACE
        Option "MapButton9"     "button=1" # ZR, LMB
        Option "MapButton10"     "key=9" # -, ESC
        Option "MapButton11"     "key=44" # +, J
        Option "MapButton12"     "key=28" # home, T
        Option "MapButton13"     "key=23" # Left stick button, TAB
        Option "MapButton14"     "disable-all" # Right stick button, disable-all xorg command
        Option "MapButton15"     "key=10" # D-Pad up, 1
    Option "MapButton16"     "key=12" # D-Pad down, 3
    Option "MapButton17"     "key=13" # D-Pad left, 4
    Option "MapButton18"     "key=11" # D-Pad right, 2
#
#When death comes, it will have your eyes..
#
EndSection #
BTW, one can see keycodes by xev application in the terminal.

LeMageFro, tansoftware
Thank you very much!..
 

Attachments

  • 50-joystick.zip
    710 bytes · Views: 183
Last edited by mathew77,

urherenow

Well-Known Member
Member
Joined
Mar 8, 2009
Messages
4,763
Trophies
2
Age
48
Location
Japan
XP
3,661
Country
United States
feeling lazy, and busy spoofing around (cheating) for PG community day... how is this compared to the latest Lakka?

<snip> now that I can watch it on the switch I no longer have to bitch about that when i'm out of town.

Off topic, but you stream from your own plex server when out of town? How? Do you have a global IP address? Pay for dynadns or something? Please reply in a DM so the thread doesn't get de-railed.
 
Last edited by urherenow,

MartianMSK

Well-Known Member
Newcomer
Joined
Jun 17, 2018
Messages
59
Trophies
0
Age
27
XP
1,824
Country
Italy
Did someone have some luck installing PPSSPP, i've been trying compiling it for like 3 hour now, installing things it seemed missing etc, but the problem is that I have little to no knowledge about ubuntu and linux in general....
Can someone give me some help?
 

WuskyDingo

Active Member
Newcomer
Joined
Jun 2, 2018
Messages
26
Trophies
0
Location
San Diego, CA
Website
www.youtube.com
XP
122
Country
United States
So I just got it working on my switch. Nothing to install really. I just went to the plex website. plex.tv signed into my plex account, then clicked on the "launch" link. I have my plex server running on a headless PC running ubuntu. it's not a very fast PC. I can't remember the exact CPU, but i think it's a dual core Intel ruining at 2.2GH. My friends and fam all have access to it. there are times when i put a new movie on it, or something like GOT is on a given day, and i might have a dozen people streaming from it with no lag. not sure if you know this, but you cant stream to a mobile device without paying for a monthly, or lifetime plex pass. now that I can watch it on the switch I no longer have to bitch about that when i'm out of town.
the website is not the same as the actual desktop Plex Media Player application, though.
 

Qubarf

Well-Known Member
Member
Joined
Dec 14, 2018
Messages
239
Trophies
0
Age
33
XP
967
Country
Pakistan
I wish there was a keybaord that could be controller using joycon, so not touch input required.
Like on consoles, ya know?
Nintendo swicth OFW, xbox, ps, etc.
That would really just finish the whole thing!
 

monokin1114

Well-Known Member
Newcomer
Joined
Apr 21, 2019
Messages
46
Trophies
0
Age
29
XP
544
Country
Canada
I wish there was a keybaord that could be controller using joycon, so not touch input required.
Like on consoles, ya know?
Nintendo swicth OFW, xbox, ps, etc.
That would really just finish the whole thing!

You can open the keyboard app and use it. Its finicky but works
 

Techjunky90

Well-Known Member
Member
Joined
Apr 7, 2017
Messages
487
Trophies
0
Age
33
XP
882
Country
United States
So I just got it working on my switch. Nothing to install really. I just went to the plex website. plex.tv signed into my plex account, then clicked on the "launch" link. I have my plex server running on a headless PC running ubuntu. it's not a very fast PC. I can't remember the exact CPU, but i think it's a dual core Intel ruining at 2.2GH. My friends and fam all have access to it. there are times when i put a new movie on it, or something like GOT is on a given day, and i might have a dozen people streaming from it with no lag. not sure if you know this, but you cant stream to a mobile device without paying for a monthly, or lifetime plex pass. now that I can watch it on the switch I no longer have to bitch about that when i'm out of town.
You're just using the web browser viewer which is inferior to installing the standalone plex player.
 

Deathscreton

Well-Known Member
Member
Joined
Oct 1, 2009
Messages
826
Trophies
0
XP
1,092
Country
United States
Are there any other performance tricks I can apply to the Switch (i've done the 2.0GHz overclock (though I don't think that's permanent and may need to be done everytime I boot), the SWAP file for 2gigs, and nothing else performance wise)? Often, Ubuntu will either stop opening applications, lock a core to 100% or just not respond to clicks (not frozen as my BT mouse can still click, move, explore, etc.).
 

6adget

GBAtemp's official atheist
Member
Joined
Sep 12, 2016
Messages
234
Trophies
0
Age
50
Location
California
XP
1,842
Country
United States
You're just using the web browser viewer which is inferior to installing the standalone plex player.


So I have been using Plex for several years now. I have 5 plex servers in my basement that I slapped together over those last couple of years. 3 running linux, 2 running windows. in my house i have plex clients on a roku, firestick, airtv, and two PC's. I have built clients for my friends and fam to have access to my servers. most of those are using the plex.tv website. can you explain to my in what way they are "inferior" to a desktop Plex app? TBH., the way it looks to me is a made a suggestion to help people out so that they could use a Plex client on their switch, and you are trying to nit pick and discourage anyone from trying what I said. The way I suggested you can play direct to a switch without transcoding on the fly, same quality video and stereo audio, full screen, and the list goes on. So again. what can a desktop plex app do that the web app can't do, and remember even some of the people that are actively in the development of plex watch their movies that way.
 
  • Like
Reactions: Centergaming

WuskyDingo

Active Member
Newcomer
Joined
Jun 2, 2018
Messages
26
Trophies
0
Location
San Diego, CA
Website
www.youtube.com
XP
122
Country
United States
So I have been using Plex for several years now. I have 5 plex servers in my basement that I slapped together over those last couple of years. 3 running linux, 2 running windows. in my house i have plex clients on a roku, firestick, airtv, and two PC's. I have built clients for my friends and fam to have access to my servers. most of those are using the plex.tv website. can you explain to my in what way they are "inferior" to a desktop Plex app? TBH., the way it looks to me is a made a suggestion to help people out so that they could use a Plex client on their switch, and you are trying to nit pick and discourage anyone from trying what I said. The way I suggested you can play direct to a switch without transcoding on the fly, same quality video and stereo audio, full screen, and the list goes on. So again. what can a desktop plex app do that the web app can't do, and remember even some of the people that are actively in the development of plex watch their movies that way.

"Web Player can only directly play content supported by the browser.
The Plex Media Player is a native app, supporting all the containers/codecs supported by the Operating System, including surround sound. Also, Plex Media Player offers a full-screen “TV Mode” optimized for use with a remote control when directly connected to a TV via HDMI." [1]

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

Are there any other performance tricks I can apply to the Switch (i've done the 2.0GHz overclock (though I don't think that's permanent and may need to be done everytime I boot), the SWAP file for 2gigs, and nothing else performance wise)? Often, Ubuntu will either stop opening applications, lock a core to 100% or just not respond to clicks (not frozen as my BT mouse can still click, move, explore, etc.).
use a different desktop environment, such as XFCE.
 

coppertj

Well-Known Member
Member
Joined
May 26, 2017
Messages
193
Trophies
0
Age
25
XP
482
Country
United States
Hey, when I try to install retroarch (following the guide including adding the repositories listed) it will not download the cores. I want to use dolphin (latest version, need accurate NES emulation in animal crossing, I love ) vulkan without installing Lakka. IMO, Lakka is counter intuitive for people who are not novices however, I can't get retroarch working because the cores won't download, I tried manually downloading but the cores wouldn't work. Has anyone gotten around this? Please lmk <3

edit: yes github dolphin-emu works however only in openGL but, natinsula got dolphin vulkan working in Lakka so. I assume the retroarch build is not the same as the github build of dolphin
 
Last edited by coppertj,

Deathscreton

Well-Known Member
Member
Joined
Oct 1, 2009
Messages
826
Trophies
0
XP
1,092
Country
United States
Hey, when I try to install retroarch (following the guide including adding the repositories listed) it will not download the cores. I want to use dolphin (latest version, need accurate NES emulation in animal crossing, I love ) vulkan without installing Lakka. IMO, Lakka is counter intuitive for people who are not novices however, I can't get retroarch working because the cores won't download, I tried manually downloading but the cores wouldn't work. Has anyone gotten around this? Please lmk <3

edit: yes github dolphin-emu works however only in openGL but, natinsula got dolphin vulkan working in Lakka so. I assume the retroarch build is not the same as the github build of dolphin
If I remember correctly, Vulkan is buggy in Dolphin. You have to go fullscreen in order to use it. If you don't wanna do that, use Ishiiruka as Vulkin works better with that than mainline Dolphin.

Also, can anyone suggest a Bluetooth configuration application for XFCE4? Google is giving me a plethora, but I'm not sure where to begin.
 

coppertj

Well-Known Member
Member
Joined
May 26, 2017
Messages
193
Trophies
0
Age
25
XP
482
Country
United States
If I remember correctly, Vulkan is buggy in Dolphin. You have to go fullscreen in order to use it. If you don't wanna do that, use Ishiiruka as Vulkin works better with that than mainline Dolphin.

i use ishiiruka i would have said that in original post but i forgot the guys name lol.
Yeah, dolphin now is optimized internally for animal crossing (as well as other games) in newer releases so it fixes nes emulation. I will try dolphin vulkan again but instead choose start in fullscreen option thank you!
 
Last edited by coppertj,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    realtimesave @ realtimesave: got a mig switch here, freshly smuggled in from China