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 ,

CalcProgrammer1

Member
Newcomer
Joined
May 4, 2019
Messages
19
Trophies
0
Age
34
XP
147
Country
United States
do i have to run the command for OC every boot? or does it stick through reboots?

It does not stick through reboots. You could write some sort of init/login script to set it on boot if you want it to always apply the overclock. Technically it doesn't seem like a true OC, because the interactive governor (default) should ramp up to the 1.7GHz maximum frequency as needed. Performance governor just forces it to always use the maximum frequency.
 

Leonidas87

Well-Known Member
Member
Joined
Jul 15, 2014
Messages
651
Trophies
0
Location
Toronto, Ontario
Website
www.youtube.com
XP
960
Country
Canada
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!!!!
 

Attachments

  • 20190503_135440.jpg
    20190503_135440.jpg
    947.1 KB · Views: 223
Last edited by Leonidas87,
  • Like
Reactions: crow132

bylaws

Well-Known Member
Member
Joined
Dec 11, 2018
Messages
129
Trophies
0
XP
1,655
Country
United Kingdom
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!!!!
@StarGazerTom feel free to add this.
note my own solution is coming soon, it also allows changing fan and gpu profiles.
 

Keksus

Active Member
Newcomer
Joined
Sep 24, 2013
Messages
35
Trophies
0
Age
35
XP
230
Country
Gambia, The
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
First, sorry for my Bad english!

This is awesome!
Please, can you make an Tutorial?



And can we add this overclocking to the first Page?

sudo apt-get install indicator-cpufreq

It is better than the Terminal overclocking and very awesome.
 

uyjulian

Homebrewer
Member
Joined
Nov 26, 2012
Messages
2,567
Trophies
2
Location
United States
Website
sites.google.com
XP
3,886
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
It compiles after rearranging some header files.
Currently, there is no graphics output. I plan on debugging the issues further at a later time.
 

BruhBoy

Well-Known Member
Newcomer
Joined
May 3, 2019
Messages
46
Trophies
0
Age
54
XP
103
Country
United States
So for the final step of the vulkan with dolphin it says execute: Ishiiruka. Where do I execute it? I typed it into the terminal doing ./Ishiiruka and normaly Ishiiruka and both did not show up with anything.
 

wicksand420

Well-Known Member
Member
Joined
Nov 13, 2016
Messages
2,787
Trophies
1
Age
39
XP
2,296
Country
United States
So for the final step of the vulkan with dolphin it says execute: Ishiiruka. Where do I execute it? I typed it into the terminal doing ./Ishiiruka and normaly Ishiiruka and both did not show up with anything.
if you go to the file browser, and go to the other locations, computer, usr, share, applications, then you can drag and drop any application icon to your desktop, then just click on the shortcut you made and tell it to trust the application, Someone might want to make a note of this on the front page.
 
Last edited by wicksand420,

BruhBoy

Well-Known Member
Newcomer
Joined
May 3, 2019
Messages
46
Trophies
0
Age
54
XP
103
Country
United States
if you go to the file browser, and go to the other locations, computer, usr, share, applications, then you can drag and drop any application icon to your desktop, then just click on the shortcut you made and tell it to trust the application, Someone might want to make a note of this on the front page.
NVM, I did find the applications folder but not the shortcut that was made or where it is
 
Last edited by BruhBoy,
  • Like
Reactions: wicksand420

Halobro35

Member
Newcomer
Joined
May 2, 2019
Messages
10
Trophies
0
Age
37
XP
13
Country
United States
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.

Not sure if you noticed but in the taskbar at the top if you tap on the icon with 4 squares you can bring up the keyboard. Not the most ideal solution but it works.

Also, how did you map escape, tab, etc. using terminal?
 

Link96

New Member
Newbie
Joined
Jul 4, 2018
Messages
2
Trophies
0
Age
27
XP
62
Country
Cyprus
That will likely come around same time

You can build ppsspp yourself normally, probably even a ppa avaiy

I installed the ppa but the app force close every time. I dont know how to build.
In the main L4T thread someone said to get it working you must extract the cores from laka.
If someone got the psp emulator working pls help.
 

Bluer

Well-Known Member
Newcomer
Joined
Jan 4, 2019
Messages
55
Trophies
0
Age
25
XP
1,407
Country
Poland
I have a 200gb SanDisk SD card in my Switch. Now I have around 110gb left. Can I install L4T Ubuntu as a separate partition without formatting or corrupting Horizon OS and losing installed games and saves? Could someone explain it to me/which programs I should use?
 

Snomannen_kalle

Well-Known Member
Member
Joined
Sep 2, 2018
Messages
350
Trophies
0
Age
29
XP
2,381
Country
Norway
I have a 200gb SanDisk SD card in my Switch. Now I have around 110gb left. Can I install L4T Ubuntu as a separate partition without formatting or corrupting Horizon OS and losing installed games and saves? Could someone explain it to me/which programs I should use?
The easiest way is probably to back up your SD before you flash the image file, and move it back after you have expanded the FAT32 partition in L4T Ubuntu
 
  • Like
Reactions: Bluer

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    DinohScene @ DinohScene: when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying