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 ,

ZachyCatGames

Well-Known Member
Member
Joined
Jun 19, 2018
Messages
3,398
Trophies
1
Location
Hell
XP
4,209
Country
United States
I didn't made any changes. The reason for me to compile was because the version avaiable on the store doesn't work (like some other emulators on there, it doesn't run and crash when i try to open it. That same problem occurs on the Retroarch , Mame and Dosbox.

But when i compile it, it works. I don't know why, but it's is the only way it works, at least for me. So far, thats the only way i find to make Dolphin and Retroarch run.
The `dolphin-emu-master` package from the official dolphin PPA works fine for me and everyone I know who has tried it shrugs
The one from the standard Ubuntu repos is years outdated and is broken iirc though.
 

Boomerams

Well-Known Member
Member
Joined
Dec 16, 2016
Messages
102
Trophies
0
Age
37
XP
506
Country
United States
Ugh, I cant for the life of me get the joycons to work as a mouse. I have tried with the file provided by enderer (post #425) but still nothing. I followed install guide from the main L4T unbuntu thread with dumping joycon data through hekate and joycons where connected at first boot so the OP instructions where no help. Anyone willing to help me out?

Edit: Also, how the heck do you "right" click using the touch screen?
 
Last edited by Boomerams,

Travma_toLog

New Member
Newbie
Joined
Nov 20, 2020
Messages
1
Trophies
0
Age
37
XP
39
Country
Ukraine
Greetings, how can i configure joycon buttons as a mouse, working only l and r as right and left mouse buttons, but from aside of the joycon, how to change to the top buttons?

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

Greetings, joycon works perfect as a mouse, how can i recofigure the buttons, l and r mouse buttons work only from aside of the left joycon, how change them to the top?
 

YellowPanda

Member
Newcomer
Joined
Nov 30, 2018
Messages
6
Trophies
0
Age
32
XP
82
Country
Canada
For mouse control I used antimicrox, this is how I did it...
Step 1.
Code:
sudo git clone https://github.com/AntiMicroX/antimicrox
Step 2. You'll need dependencies.
Code:
sudo apt install g++ cmake extra-cmake-modules qttools5-dev qttools5-dev-tools libsdl2-dev libxi-dev libxtst-dev libx11-dev itstool gettext libqt5x11extras5-dev
Step 3.
Code:
cd antimicrox
Step 4.
Code:
sudo mkdir build && cd build
Step 5.
Code:
sudo cmake ..
Step 6.
Code:
sudo make
Step 7.
Code:
sudo make install

Now it should be installed you can launch it by typing
Code:
antimicrox
into terminal
 
Last edited by YellowPanda,

Boomerams

Well-Known Member
Member
Joined
Dec 16, 2016
Messages
102
Trophies
0
Age
37
XP
506
Country
United States
Ok... phew!!! I wasn't having a lot of luck getting my joycons to work correctly as a mouse with correct key mappings, but with a little bit of digging around, Google searching around the internet, as well as a ton of plugging in and testing, I was able to figure out how to determine the keybinding codes for configuring the 50-joystick.conf file. I figured I would post my findings here to help lessen the burden of others trying to figure this shit out when trying to configure things how they like.

1. If you are wanting something more tailored to however you want things setup...best thing to do is go into terminal and type the following below then press Enter.

xmodmap -pke

This should list just about every keycode you will need to customize things however you want. In my case I found the mouse buttons missing from this list, but was able to find them elsewhere and are as follows (or see picture of hand written notes.)

button=1 (middle mouse button)
button=2 (left mouse click)
button=3 (right mouse click)

After finding the keycodes you want just edit the 50-joystick.conf file to your liking. You can reference my hand written notes (attached) which, on the left, will show you what the map buttons correspond to on the joycons with some keycode choices on the right. For instance, if you want A set as RIGHT CLICK then "mapbutton2" should be "button=3"

2. If you just wanna keep it simple follow my hand written notes which should include pretty much every keycode you need for any normal use situation.

3. Now to keep things stupid simple (no offense, lol) just download and follow the steps below to import my own personal 50-joystick.conf configuration

-download 50-joystick.conf file
-go to downloads folder
-right click then select "open in terminal"
- sudo mv 50-joystick.conf /usr/share/X11/xorg.conf.d
- reboot or do a logout then login to apply the configuration

Mappings are as followed:
L button is LEFT click
ZL is Brightness DOWN
R button is RIGHT click
ZR is Brightness UP
MINUS button is BACKSPACE
PLUS button is ENTER
Dpad UP is SCROLL UP
Dpad DOWN is SCROLL DOWN
HOME button is DISABLE-ALL to stop any mapped keys from working until pressing HOME key again.

Hope this helps somebody out and shout out to Mr.Rabbit GameTV for getting me started on this PITA.

Edit: CRAP! have been creating this post with my phone and didn't save my conf file correctly but will update/fix this post when I get back home tomorrow afternoon.
 

Attachments

  • PXL_20201203_232418923.NIGHT.jpg
    PXL_20201203_232418923.NIGHT.jpg
    1.8 MB · Views: 284
  • Like
Reactions: MushroomGG

Quattro74

Active Member
Newcomer
Joined
Dec 1, 2020
Messages
42
Trophies
0
Age
49
XP
175
Country
United States
So, I was also having trouble getting joycon mouse working using the xorg-xserver method, so I installed AntimicroX as shown by YellowPanda above. I went into controller mapping, once I ran the app, and was able to map all of the keys to Ubuntu, save the settings then save the config file to my user directory. So right now I don't have any keys or buttons associated in the config file, the controller key maps are simply defined. I'm guessing I can figure out how I want to set this up and just put the key associations into the config file? Is there anyway to get Ubuntu to auto load AntiMicroX on start up? Any way for the joycons to auto connect to bluetooth on start up?
 

Quattro74

Active Member
Newcomer
Joined
Dec 1, 2020
Messages
42
Trophies
0
Age
49
XP
175
Country
United States
Well, Antimicrox wasn't working for me like I'd hoped. It does the one thing that xserver-xorg-input-joystick doesn't do, it allows me to map certain buttons. Yet the cursor disappears whenever I try to use the touchscreen, then it doesn't come back. Any idea why my xserver-xorg-input-joystick buttons don't work? I am using the 50-joyctick.conf file from page 13 from this thread. The mouse cursor does move around when I use the left joystick.
 

Quattro74

Active Member
Newcomer
Joined
Dec 1, 2020
Messages
42
Trophies
0
Age
49
XP
175
Country
United States
Ok, got my mapping figured out. It was different for me than in some of the tutorials for xserver-xorg-input-joystick for instance my d-pad takes up the first 4 in the list of 18? Maybe cuz I'm on FW 10.2? Anyway, this was confusing at first as a result. I am now using a combo of this and AntiMicroX to have the ultimate custom setups. I startup AntiMicroX automatically at boot, then when I actually want to use it I just enable the bluetooth for both joycons. It is nice that I can disable the xorg-joystick with the simple disable-all switch when I am using AntiMicroX for gaming.

It seems that Compiz is bogging down this Gnome desktop a bit? Was wondering what other light desktop environments are available for L4T that don't give up touchscreen functions but don't use Compiz by default?
 

Daxie719

New Member
Newbie
Joined
Jan 26, 2021
Messages
2
Trophies
0
Age
34
XP
73
Country
United States
Hello Everyone, Got set up with Ubuntu on switch using this Guide:



Anybody actually successfully get the Joycons to work as a mouse?

Also after updating, wifi is disconnecting??

Thanks
 

werneck14

Well-Known Member
Member
Joined
Jan 19, 2017
Messages
121
Trophies
0
Age
25
XP
310
Country
Brazil
I'm trying to use DOBE N-Switch Controller on L4T Ubuntu, everything works fine except for the analog sticks. Does anyone know how can i make it work?
 

Jakob99

Member
Newcomer
Joined
Mar 22, 2014
Messages
8
Trophies
0
Age
25
XP
149
Country
United States
Anyone know how to get Oracle VirtualBox working on this? I download it, tap to install it, provide the authentication, and then watch it go from 0-100% instantly with it still saying Install. When I scroll all the way down to Installed Applications and click Install next to VirtualBox in the list, it asks me if I want to remove it and that if I do I won't be able to use it again. I have Switchroot Ubuntu 18.04 LTS Any help is greatly appreciated!
 
Last edited by Jakob99,

Hongtm77

Well-Known Member
Newcomer
Joined
Jan 13, 2019
Messages
59
Trophies
0
Age
38
XP
296
Country
Malaysia
Hey guys, im new to L4t UBUNTU on switch. Just manage to install yesterday. i found on youtube that this app will enable the right click on touch:-
https://github.com/JoseExposito/touchegg
But the problem is when i try to install the deb, it is not installing. Same goes to Chrome Browser deb that i downloaded. Has anyone encountered the same installation issue?
 

MushroomGG

New Member
Newbie
Joined
May 26, 2021
Messages
1
Trophies
0
Age
33
XP
58
Country
Belgium
Hangover Installation Tutorial

1. Get L4T running on your Switch and connect to network. Going to assume you have the basics down. I had to reflash my SD card because I screwed up the DE so I'm writing this tutorial off of a fresh install.

2. Install required dependencies: sudo apt-get install git build-essential mingw-w64 mingw-w64-i686-dev mingw-w64-x86-64-dev libfreetype6-dev

3. Clone the Hangover repository: git clone <link removed because this forum is dumb, google "wine hangover github" and you'll find it>

4. cd into the hangover directory: cd hangover

5. Initialize submodules: git submodule update --init --recursive

6. Both times I've tried to build this, the qemu submodule seems to initialize to an empty commit. To fix this, cd into the qemu directory and reset: git reset --hard HEAD

7. cd back up to the hangover directory: cd ..

5. Build the project: make -j4

6. Rerun make -j4 until there are no errors. You may want to enable the overclock/performance mode for this step as it will take a while.

7. Symlink libgcc_s_sjlj-1.dll into hangover build: ln -s /usr/lib/gcc/i686-w64-mingw32/7.3-win32/libgcc_s_sjlj-1.dll build/qemu/x86_64-windows-user/qemu_guest_dll32/libgcc_s_sjlj-1.dll
Hey man, first of all thanks for explaining this. I was looking for something like this. However I have tried it several times and every time I start entering the "make -j4" command I run into a problem. The first few times it seems to work fine but at a certain point I get this output:
cd build/wine-tools ; CC=clang CXX=clang++ ../../wine/configure --with-freetype --with-gettext --disable-tests --without-alsa --without-capi --without-cms --without-coreaudio --without-cups --without-curses --without-dbus --without-fontconfig --without-gphoto --without-glu --without-gnutls --without-gsm --without-gstreamer --without-hal --without-jpeg --without-krb5 --without-ldap --without-mpg123 --without-netapi --without-openal --without-opencl --without-opengl --without-osmesa --without-oss --without-pcap --without-pulse --without-png --without-sane --without-tiff --without-v4l2 --without-x --without-xcomposite --without-xcursor --without-xinerama --without-xinput --without-xinput2 --without-xml --without-xrandr --without-xrender --without-xshape --without-xshm --without-xslt --without-xxf86vm
configure: WARNING: unrecognized options: --without-curses, --without-glu
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/home/sven/hangover/hangover/build/wine-tools':
configure: error: C compiler cannot create executables
See `config.log' for more details
Makefile:128: recipe for target 'build/wine-tools/Makefile' failed
make: *** [build/wine-tools/Makefile] Error 77
Any ideas on how I can fix this? I tried one time just to continue but couldn't symlink the dll because the target directory wasn't even made... I hope you can help me.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: Managed Budokai Tenkaichi 3 to work