recently I have bought Samsung Galaxy S10 and one of the features
that I really like is text you can just plug in any HDMI to USB-C cable from your
phone to the screen and get a desktop mode in this video we are going to take
that into the next level will try to run Linux container on Dex and start
coding on it really works let's find out let's start with plugging in wireless
keyboard and mouse to USB-C adapter then HDMI cable from the screen and plug the
USB-C to the phone then tap the screen to start the Dex mode you can also plug
in the charger if you want. You don't really need the official Dex station as
any HDMI to USB see adapters will do. For this video I use a cheap one from Amazon
and it works just fine link to the product is in the description box now
I'm going to install Linux on Dex this application creates a Linux container to
run Ubuntu image on your phone the app is still in beta so you have to download
it from apk mirror the next step is to get the Linux image you can download it
from the Linux on Dex official site once downloaded and transfer the image to the
phone let's start the Linux on Dex application first we will create a
container and select your Linux image
then set up the name and storage space I
would recommend at least 15 GB or more if you have space and here it is
this is for Ubuntu Linux this image comes with pre-installed development
tools like VSCode IntelliJ Firefox git nodejs
the rest is the same as you'd expect on a desktop version of Ubuntu. So our first
test let's try creating node.js static server using express.js First I'm
going to try update NPM to the latest version from the terminal next I'm going
to create a new directory for our app
then initialize the package.json using NPM init command
next install express.js form npm then write a basic code to listen to port
3000 and show hello world string. Okay let's start the app and use the browser
to test the server
all right that looks good the next test here is the code from our CSS effect
tutorial let's try running a local server looks good here you can use the
debug tool like you were on desktop next I will try more demanding effect this
one used sass and I'm going to install a live Sass Compiler vs code extension to compile it
next I'm going to copy the code from our previous tutorial compile the sass and
start the server
and here's the final test and the most demanding one the WebGL here's the water
ripple effect from our WebGL tutorial using displacement filter and pixi.js
I have copy over the code so let's start
the server. As you can see the phone is struggling to keep up the framerate
anyway it is expected. So for now WebGL development is not an option for Dex
so here's my final thought samsung Dex mode is very useful and starting
to become more practical laptop replacement though some type of works
are still limited by the processing power I believe in the next couple years
with more advanced hardware and apps Dex could become a very promising solution
for mobile workspace thanks for watching and don't forget to subscribe to our
Channel. Bye!