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 ,

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
How to install the Cinnamon Desktop Environment:

Code:
sudo apt install cinnamon

Reboot and select Cinnamon from the login options. DO NOT ADD THE CINNAMON PPA. It doesn't have arm64 builds. Ubuntu's default repos do.
 

epicmartin7

Well-Known Member
Member
Joined
Aug 5, 2015
Messages
428
Trophies
0
Age
25
XP
1,059
Country
United States
Quick question, has anyone managed to potentially get Flash installed? I know it does seem stupid considering Flash is being dropped next year, but there's still some decent flash games I wouldn't mind trying on Switch.

Truth be told, I have tried to install flash, but maybe it's my unfamiliarity with Linux or something, but it's becoming somewhat of a doozy haha.
 
D

Deleted User

Guest
OP
Yo, thanks for making this thread.

The first command to try fr making the swapfile that you give an alternative for doesn't work so I'm doing the alternative
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576

I want my swapfile to be 2GB, I don't know what to do for the count= part
 

snoofly

Well-Known Member
Member
Joined
Aug 18, 2015
Messages
1,012
Trophies
0
Age
54
XP
2,133
Country
United Kingdom
Just wondering..great thread btw.
Is anyone planning to make a fresh image with most of these commonly requested applications prebuilt?
Not trying to be pushy or anything as I probably don't have the skills to do it myself, just figured it would certainly be popular with the folks lurking on these threads.
 
D

Deleted User

Guest
OP
Is Retroarch not working with Vulkan? Every time I set the video driver to Vulkan and close Retroarch I can't open it back up unless I delete the config file.

I don't quite have an answer for you, but for your future trial and error you can find this in your config: video_driver = "<whatever>"
put gl in the quote marks, might save you some time.
 

Snomannen_kalle

Well-Known Member
Member
Joined
Sep 2, 2018
Messages
352
Trophies
0
Age
29
XP
2,410
Country
Norway
Yo, thanks for making this thread.

The first command to try fr making the swapfile that you give an alternative for doesn't work so I'm doing the alternative
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576

I want my swapfile to be 2GB, I don't know what to do for the count= part
Here is the source on the commands on creating the swap file, maybe that can help you. I didn't have any problems when creating the file though, so I'm not able to help you
 
D

Deleted User

Guest
OP
Here is the source on the commands on creating the swap file, maybe that can help you. I didn't have any problems when creating the file though, so I'm not able to help you

I took a gamble and left the count=1048576 as is and it works so I'm not worried but thanks I'll give it a read anyway

EDIT: That even showed me how to remove the swapfile if it becomes a problem so cheers
 
Last edited by ,
  • Like
Reactions: Snomannen_kalle
D

Deleted User

Guest
OP
Just wondering..great thread btw.
Is anyone planning to make a fresh image with most of these commonly requested applications prebuilt?
Not trying to be pushy or anything as I probably don't have the skills to do it myself, just figured it would certainly be popular with the folks lurking on these threads.
I'm actually planning on doing exactly this once I have a nice good packed base figured out.

Sorry everyone that I'm unable to help with alot of stuff, I'm a real dummy when it comes to Linux stuff.
 
  • Like
Reactions: snoofly

EpicLPer

Your friendly Austrian IT Guy
Member
Joined
Mar 13, 2015
Messages
1,060
Trophies
0
Age
29
Location
Austria
Website
epiclper.com
XP
1,151
Country
Austria
Seems like when you turn on Autologon when setting up Ubuntu and you try to log off it'll just stay at the background image and do nothing anymore, so that means Kodi can't be installed without it being the only thing you can boot to then.

EDIT: Screw the above thing, it just took an incredibly long time to log out... After 3 minutes of just leaving it there it finally logged out and I can now choose the launcher.
 
Last edited by EpicLPer,

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,840
Trophies
1
Age
44
XP
6,635
Country
Germany
Thank you, @StarGazerTom - this is one of the best threads around and makes me wanna get into it more than ever.
Keep up the good work. Here's your well deserved cookie:

final-one-chocolate-chip-cookie+srgb..jpg
 
D

Deleted User

Guest
OP
Thank you, @StarGazerTom - this is one of the best threads around and makes me wanna get into it more than ever.
Keep up the good work. Here's your well deserved cookie:
Hah, thank you very much! I'd like to add many thanks to the others who helped with installing apps at the start of all this. Without them, and bylaws Linux porting work, this thread wouldn't be possible!
 
  • Like
Reactions: lordelan

Thrashturbator

Active Member
Newcomer
Joined
Mar 13, 2019
Messages
29
Trophies
0
Age
32
Website
twitter.com
XP
269
Country
United States
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.]


Hey guys I’m still having problems with using my joycons as a mouse. I’ve got them paired, presses l+r but there’s no mouse on screen. Someone said i needed to download something in order to use them as a mouse and I’m coming up short. Does using them as a mouse only work in docked mode?
 
D

Deleted User

Guest
OP
Hey guys I’m still having problems with using my joycons as a mouse. I’ve got them paired, presses l+r but there’s no mouse on screen. Someone said i needed to download something in order to use them as a mouse and I’m coming up short. Does using them as a mouse only work in docked mode?
Look in the op. Spoiler marked Joycons

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

Gonna ask a question of my own here, did anyone find a way to limit fps in ishiiruka Dolphin?

I'm seeing ALOT of games hitting anywhere from 25fps at the lowest, and sometimes getting up as high as 60+

Thinking maybe lowering the fps the games are allowed to run at might be a good way to get games more stable.
(And yes, this is with 1.73Ghz boost clocks turned on)
 

Thrashturbator

Active Member
Newcomer
Joined
Mar 13, 2019
Messages
29
Trophies
0
Age
32
Website
twitter.com
XP
269
Country
United States
Look in the op. Spoiler marked Joycons

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

Gonna ask a question of my own here, did anyone find a way to limit fps in ishiiruka Dolphin?

I'm seeing ALOT of games hitting anywhere from 25fps at the lowest, and sometimes getting up as high as 60+

Thinking maybe lowering the fps the games are allowed to run at might be a good way to get games more stable.
(And yes, this is with 1.73Ghz boost clocks turned on)

Yeah I followed the guide marked joycons but I’m not getting a mouse on screen
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @Veho, Stepcroc, I'm stuck.
  • Veho @ Veho:
    Those are monitor lizards you dunce.
    +1
  • SylverReZ @ SylverReZ:
    I'm funny. lol.
  • K3Nv2 @ K3Nv2:
    Eggs and roasted potatoes came out good
  • K3Nv2 @ K3Nv2:
    Watching the first omen and so far it's not the priest doing the scaring
  • Veho @ Veho:
    Shouldn't the kid be the scary one?
  • K3Nv2 @ K3Nv2:
    The second omen: the chior boy gets his revenge
  • Veho @ Veho:
    Reverse exorcist: it's when you hire a demon to remove the priest out of a small child.
  • K3Nv2 @ K3Nv2:
    Hire Kendrick Drake possessed a minor again
  • Veho @ Veho:
    Yeah, I'd run away from his singing too.
  • K3Nv2 @ K3Nv2:
    I wonder if Drakes still allowed to use his Instagram
  • ZeroT21 @ ZeroT21:
    sounds like everyone has some great imaginary friends
  • SylverReZ @ SylverReZ:
    @K3Nv2, Yeah, that was insane.
  • SylverReZ @ SylverReZ:
    Don't know what Drake was even thinking.
  • K3Nv2 @ K3Nv2:
    What every rich scumbag thinks that they can put their dick on anything and get away with it
  • ZeroT21 @ ZeroT21:
    I better hide my silicone Tifa doll
    +1
  • Veho @ Veho:
    What did Drake do, exactly? I don't follow celeb gossip.
  • SylverReZ @ SylverReZ:
    @Veho, Supposed accusations that Drake groomed a minor.
  • K3Nv2 @ K3Nv2:
    Allegedly groomed a 17 year old Instagram model or something along those lines
  • SylverReZ @ SylverReZ:
    Yep, something like that.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=F1MJtV0UPI8