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 ,
D

Deleted User

Guest
OP
Anyone else having a problem with retroarch, whether docked or not, where the refresh rate option that's always moving in video options is consistently lower than 60hz by between 10-30hz? I can't figure out what's causing it, and I can't work out whether it's a cause or a symptom of a bigger issue that's giving me bad performance on even GBA games that are flawless on libnx.

P.S I ended up getting cores to show by going into directory options and changing the core dir to /usr/lib/libretro. There's another set of them in usr/lib/aarch64(something)/libretro
 
Last edited by ,

swabbo

Wot u doin readin dis m8?
Member
Joined
Mar 9, 2011
Messages
828
Trophies
1
Age
29
Location
East Yorkshire/ A Bin
XP
2,720
Country
when i use this "sudo apt-get install xserver-xorg-input-joystick" the up and down on my left joycon's analog stick are reversed, and my right joycon's analog stick just does what it likes (although I've noticed when trying to set keymaps on dolphin, my right joycon's analog stick doesn't register, it's like it's constantly pushing 1 direction)
 

ZeroFX

why?
Member
Joined
Jun 18, 2018
Messages
1,109
Trophies
1
Location
napaJ
XP
3,008
Country
Japan
when i use this "sudo apt-get install xserver-xorg-input-joystick" the up and down on my left joycon's analog stick are reversed, and my right joycon's analog stick just does what it likes (although I've noticed when trying to set keymaps on dolphin, my right joycon's analog stick doesn't register, it's like it's constantly pushing 1 direction)
Applied the 1.1 update? On the L4T original thread?
 
  • Like
Reactions: swabbo

KingAsix

ByJustAsix
Member
Joined
Jun 25, 2008
Messages
1,684
Trophies
1
Age
32
Location
ICS
Website
www.byjustasix.com
XP
2,394
Country
United States
Anyone else having a problem with retroarch, whether docked or not, where the refresh rate option that's always moving in video options is consistently lower than 60hz by between 10-30hz? I can't figure out what's causing it, and I can't work out whether it's a cause or a symptom of a bigger issue that's giving me bad performance on even GBA games that are flawless on libnx.

P.S I ended up getting cores to show by going into directory options and changing the core dir to /usr/lib/libretro. There's another set of them in usr/lib/aarch64(something)/libretro

Beat me to it! I was just coming to post just this but I ended up pointing it to the usr/lib/libretro folder which still works.
 
D

Deleted User

Guest
OP
Anyone else having a problem with retroarch, whether docked or not, where the refresh rate option that's always moving in video options is consistently lower than 60hz by between 10-30hz? I can't figure out what's causing it, and I can't work out whether it's a cause or a symptom of a bigger issue that's giving me bad performance on even GBA games that are flawless on libnx.

P.S I ended up getting cores to show by going into directory options and changing the core dir to /usr/lib/libretro. There's another set of them in usr/lib/aarch64(something)/libretro
I'll add this to the guide for retroarch later on, a little busy atm with exams and assignments due in days @_@

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

Hows your performance man? Mine's shaky on GBA.
Thought I was the only one. I tried a few change on GBA, which eventually broke retroarch for me and I had to reinstall everything from scratch.

Hopefully we can get some sort of setup going where folks can just grab the file to be written to the sd card and away they go.

Also, I'd highly recommend to people to add the Cinnamon frontend. It feels so much nicer, and has plugins such as cpu usage monitoring.
 

Halobro35

Member
Newcomer
Joined
May 2, 2019
Messages
10
Trophies
0
Age
37
XP
13
Country
United States
Any way to make it so that the joycons automatically connect when rebooting into ubuntu? Or do you have to re-sync them every time?
 

enderer

Well-Known Member
Member
Joined
Jul 19, 2015
Messages
381
Trophies
0
Age
34
XP
1,652
Country
United States
i've reflashed and reinstalled ishiiruka (cut and paste from OP) two additional times and i'm still getting black screen after just a few seconds of main menu (not even gameplay). the game continues playing and responding to controller inputs and playing audio, but i see no video. itested in mega man 9, mega man 10, mario sunshine and luigi's mansion.

is anyone else experiencing this?

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

A good question...When rebooting back into L4T one of them usually connects but never both.
it's not 'automatic' but what i do is enter bluetooth (upper right of screen), tap L joycon, press a button on that joycon so the lights blink, then on ubuntu, tap 'connect' on. (then repeat for R joycon)
 

Halobro35

Member
Newcomer
Joined
May 2, 2019
Messages
10
Trophies
0
Age
37
XP
13
Country
United States
i've reflashed and reinstalled ishiiruka (cut and paste from OP) two additional times and i'm still getting black screen after just a few seconds of main menu (not even gameplay). the game continues playing and responding to controller inputs and playing audio, but i see no video. itested in mega man 9, mega man 10, mario sunshine and luigi's mansion.

is anyone else experiencing this?

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

it's not 'automatic' but what i do is enter bluetooth (upper right of screen), tap L joycon, press a button on that joycon so the lights blink, then on ubuntu, tap 'connect' on. (then repeat for R joycon)

Yeah I had this problem. It's because you're not using the proper Vulkan drivers. Go into your dolphin graphics settings. Under Backend, select Vulkan. That should fix it.

@Thrashturbator: Make sure you reboot your ubuntu and then reconnect the joycons. Wasn't working for me until after I rebooted.

Also, I had a couple of suggestions regarding quality-of-life problems with ubuntu.
For Dolphin, I wanted to be able to use full-screen mode without seeing the mouse and I wanted the ability to exit full-screen mode without a keyboard.
To accomplish this, go into your dolphin graphics settings and check the hide mouse cursor box.
In order to be able to exit dolphin, I mapped the home button on my gamepad to ESCAPE. To do this, you need to install qjoypad:

(Taken from the other thread, courtesy of @wicksand420)
"
For qjoypad you open the terminal and type

sudo apt-get update -y and hit enter

then this

sudo apt-get install -y qjoypad and hit enter

then to configure it, make sure your joycons are paired, then in the terminal type

qjoypad --notray and hit enter

A controller icon will appear, click on it to configure the controllers"

After you click on the controller icon, press the ADD button on the top, then press quick set on the button, and then map the ESCAPE key to the home button (or whichever button you choose).
Then, you can close the small controller icon.
Afterwards, you can simply launch qjoypad from the apps menu, and then it will run in the background with your new settings. I recommend locking qjoypad to the sidebar for quick access.
Now, when you launch dolphin in full-screen mode, you can press the home button to exit full-screen mode and retain full functionality of using your joycons as a mouse in ubuntu! And every time you reboot, you can just click on the qjoypad button in the sidebar and it will automatically run in the background.

I also noticed, earlier in the thread, @Dumpjaw mentioned installing an icon in the top panel for controlling GPU frequency:

sudo apt-get install indicator-cpufreq
Then reboot.

I highly recommend installing this, because otherwise I have had to manually go into terminal and enable the overclock every time I rebooted. @StarGazerTom maybe you should add this to the original post?

Lastly I've noticed that if you press buttons on your joycons right as you're loading up Ubuntu, they will *sometimes* automatically sync.
 

enderer

Well-Known Member
Member
Joined
Jul 19, 2015
Messages
381
Trophies
0
Age
34
XP
1,652
Country
United States
Yeah I had this problem. It's because you're not using the proper Vulkan drivers. Go into your dolphin graphics settings. Under Backend, select Vulkan. That should fix it.
my 'backend' in dolphin does not drop down. i assume this means that open gl is the only selectable option.
 

CalcProgrammer1

Member
Newcomer
Joined
May 4, 2019
Messages
19
Trophies
0
Age
34
XP
147
Country
United States
I just got AndreRH's Hangover built and working on L4T! I'll post a more detailed writeup, but the short and simple is git clone the repository, initialize all the submodules, make sure you have mingw x86_64 compiler installed, then make/make -j4 to build. If you checked out all the code and have all the dependencies, it will build a bunch of stuff in a folder called "build". You have to symlink a file and then you can run x86 Windows binaries.

Edit:

Working:
Sim City 2000 Urban Renewal Kit (SCURK) - Works fine off of the installation CD
IrfanView 64-bit - Works, views images, edits images
IrfanView 32-bit - Starts, opens picture, but segfaulted when I tried to negate image
Notepad++ 64-bit - Installer works but tells you to download 32-bit version
Notepad++ 32-bit - Installer works, application works
OpenJK (Jedi Academy open-source engine) Dedicated Server - Could start game and connect from my desktop
putty (64-bit) - Works, was able to ssh into my Linux home server
Sublime Text 3 (32-bit with installer) - Installs fine, text editor is very usable, uninstaller works

Not Working:
Sim City 2000 - Does not work off the installation CD and installer doesn't seem to work (not even on Win10 so it must be 16-bit? Will have to dig out an old PC to install and try again)
Internet Explorer 5 - Does not install properly, though this was a repackaged version I found in the mid-2000's.
Halo Combat Evolved - Setup does not work
OpenJK (Jedi Academy open-source engine) Game Client - Loads pk3 files and then crashes
Beyond Compare 4 - Setup crashes Wine
Beyond Compare 3 - Setup works and installs, but opening exe fails
putty (32-bit) - Fails to initialize WinSock
Realterm 2.x- installer works, application crashes with wine client error
TeraTerm 4.102 - Crash - Application fault dialog pops up
Sublime Text 3 (64-bit with installer) - Install fails with error "This program can only be installed on...x64"
Winamp Classic installer - Crashes
Winamp 5 beta - installs, but application crashes
 
Last edited by CalcProgrammer1,

Sticker

Well-Known Member
Newcomer
Joined
Oct 1, 2018
Messages
89
Trophies
0
Age
34
XP
683
Country
Vietnam
Is there anyway to map joycon button to open app? Home button for Ubuntu button, + for open onscreen keyboard, - for escape, direction buttons for easy to use terminal, ZL for tab, ZR for space, L for -, R for Enter.
 
Last edited by Sticker,

Techjunky90

Well-Known Member
Member
Joined
Apr 7, 2017
Messages
487
Trophies
0
Age
33
XP
882
Country
United States
Anyone tried to compile PLAY! Ps2 emulator? I know it's not the best emulator & it hasn't been worked on in awhile but perhaps Linux on switch will motivate the developer to continue working on it
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtu.be/9kE3Env_2AY?si=Bs6lUZ0ZIlqmYaGT +1