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 ,

pietempgba

Well-Known Member
Member
Joined
Jun 9, 2016
Messages
1,049
Trophies
0
XP
1,515
Country
United States
Has anyone got Minecraft working on this bad boy? I used a “unofficial” launcher (that works perfectly on my windows laptop) and got lots of errors with vm arguements. I saw a few posts of people having problems with getting it working on 18.04. Has anyone here had any luck with it? Portable Minecraft with mods would be amazing.
I think it needs to be a X86 version of a unofficial launcher
 

gringuscharge57

Member
Newcomer
Joined
May 6, 2019
Messages
16
Trophies
0
XP
110
Country
United States
I had to manually map the buttons in controller config. Be sure to set the input to the pro controller/joycons and not the virtual pointer, or else you won't be able to set some buttons.

I was doing that, the buttons map but they don't function in-game. I even tried uninstalling the pointer.
 

crow132

Well-Known Member
Member
Joined
Jan 19, 2016
Messages
302
Trophies
0
Age
34
XP
1,373
Country
Saint Helena
I'll have a nice solution up for changing the CPU clock rates up soon for everyone

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

@bylaws should add this to the OP


Better solution for changing CPU frequencies. Also gives options for other frequencies.


To install and use TLP, use the following commands in a terminal:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start
You don’t need to do anything after installing TLP. It works in the background.

To install CPUFREQ indicator use the following command:

sudo apt-get install indicator-cpufreq


Restart your computer and use the whatever frequency works best for you. BE CAREFUL AS ALWAYS WHEN OVERCLOCKING!!!!

hey! I was using this solution for overclock (thanks @Leonidas87 )

now with the new update, even though it shows the 2.09 ghz option, it doesn't allow me to pick it, it always goes back to 1,78 ghz, any way around this?

thank you.
 

Neo_

Well-Known Member
Newcomer
Joined
Jan 28, 2017
Messages
56
Trophies
0
Age
22
XP
611
Country
Has anyone got Minecraft working on this bad boy? I used a “unofficial” launcher (that works perfectly on my windows laptop) and got lots of errors with vm arguements. I saw a few posts of people having problems with getting it working on 18.04. Has anyone here had any luck with it? Portable Minecraft with mods would be amazing.
I tried with official launchers (Minecraft.deb and Minecraft.tar.gz) but it didn't work. It would be nice to have java Minecraft on the Switch.
 
Last edited by Neo_,

Leonidas87

Well-Known Member
Member
Joined
Jul 15, 2014
Messages
651
Trophies
0
Location
Toronto, Ontario
Website
www.youtube.com
XP
960
Country
Canada
hey! I was using this solution for overclock (thanks @Leonidas87 )

now with the new update, even though it shows the 2.09 ghz option, it doesn't allow me to pick it, it always goes back to 1,78 ghz, any way around this?

thank you.
Have you tried uninstalling and rebooting and then reinstalling the CPU controller I'll call it?

Sent from my SM-G965W using Tapatalk
 
  • Like
Reactions: crow132

Techjunky90

Well-Known Member
Member
Joined
Apr 7, 2017
Messages
487
Trophies
0
Age
33
XP
882
Country
United States
Have you tried uninstalling and rebooting and then reinstalling the CPU controller I'll call it?

Sent from my SM-G965W using Tapatalk
I've uninstalled & purged both tlp and cpufreq, still doesn't allow max clock speeds. 2ghz has to be enabled first before it can be selected.

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

hey! I was using this solution for overclock (thanks @Leonidas87 )

now with the new update, even though it shows the 2.09 ghz option, it doesn't allow me to pick it, it always goes back to 1,78 ghz, any way around this?

thank you.
You need to enable 2ghz first.
 
Last edited by Techjunky90,
  • Like
Reactions: crow132

patar1991

Member
Newcomer
Joined
Apr 16, 2019
Messages
5
Trophies
0
Age
32
XP
84
Country
Ecuador
is there any toto to manage the partitions? i want a 14 gb on primary partition and the rest on l4t but I just can get the 500 mb of the fist partition by etcher ? thanks
 

monokin1114

Well-Known Member
Newcomer
Joined
Apr 21, 2019
Messages
46
Trophies
0
Age
29
XP
544
Country
Canada
is there any toto to manage the partitions? i want a 14 gb on primary partition and the rest on l4t but I just can get the 500 mb of the fist partition by etcher ? thanks
You need to use a third party app. I use minitool partition wizard.

And it's not possible currently to get steam working. Or atleast working well due to steam using x86_64
 

ReavoEnd

Member
Newcomer
Joined
Jun 17, 2018
Messages
22
Trophies
0
Age
34
XP
173
Country
United States
is there any toto to manage the partitions? i want a 14 gb on primary partition and the rest on l4t but I just can get the 500 mb of the fist partition by etcher ? thanks

To be clear, you can't resize the first partition or rearrange the partitions while booted into L4T. If you want to resize the first partition, you'll have to do it from a different PC with the SD card connected.
 

BruhBoy

Well-Known Member
Newcomer
Joined
May 3, 2019
Messages
46
Trophies
0
Age
54
XP
103
Country
United States
I've uninstalled & purged both tlp and cpufreq, still doesn't allow max clock speeds. 2ghz has to be enabled first before it can be selected.

--------------------- MERGED ---------------------------
So you do the command for 2ghz in the terminal, then you will be able to slide the CPU freq?


You need to enable 2ghz first.
 

crow132

Well-Known Member
Member
Joined
Jan 19, 2016
Messages
302
Trophies
0
Age
34
XP
1,373
Country
Saint Helena
I have installed the Dolphin emulator for the second time now, but it always says the same.
Ishiiruka: command not found.
What am I suppose to do?
type ishiiruka, not Ishiiruka

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

Can anyone post a tutorial for anbox, please? Or is the installation guide on anbox the correct way, also for arm64?
i would also appreciate this, maybe @bylaws can help?
 
Last edited by crow132,

BruhBoy

Well-Known Member
Newcomer
Joined
May 3, 2019
Messages
46
Trophies
0
Age
54
XP
103
Country
United States
I've uninstalled & purged both tlp and cpufreq, still doesn't allow max clock speeds. 2ghz has to be enabled first before it can be selected.

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


You need to enable 2ghz first.
I did the command for 2ghz and it still caps at 2gz. What do you mean by enable it?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: Firefox users be like "look at what they have to do to mimic a fraction of our power."