This app was mentioned in 307 comments, with an average of 2.62 upvotes
Termux: Open source terminal emulator. Does things I didn't dream possible.
It has a built-in apt package manager to name one thing. This allows you to install Python for example. Python. On your freaking phone. See a list of packages available with 'apt list'.
It also has pinch-to-zoom, wakelock support and sane text selection.
People who use other terminal emulators on Android should try this.
Long press in the terminal window, select More > Help to get started.
As both and Android user and Linux user who also frequents /r/unixporn, I love this! Reminds me of bspwm
;)
I'm sure you're already aware of this, but if not, you'll love Termux.
I think so.
For example in android there is an app named termux that is a terminal emulator. It supports python 3.7 and 2.7 (pip is also included during install) and php 7 and Golang 1.12.7 and nodejs 12.4. Shit's so powerful. I once runned nginx with it and I were really happy with it. Give it a try if your phone is android.
Also for coding on android you can use either online IDEs or search Google play for an IDE. Then run the code using termux and your bot starts running.
If you have an iphone then for example have a look at Pythonista 3. I haven't tested it.
Has anybody here played with Termux? (Play Store, Site]. It is a Linux emulator on Android, extremely light (in size and performance) and has a good list of packages available. It lets you run Python, Node, Ruby among other things on your phone. After messing around with Tasker sufficiently, I was looking at ideas to use Busybox for, when a friend showed me this. I'm currently ssh-ed into the phone and playing around with the Termux API (additional app), getting location and playing around with notifications.
Termux has the base64 command.
Install Termux, Termux:API, and the termux-api package (pkg install termux-api)
If you don't have to split messages just do
cat file | base64 | termux-clipboard-set
The base64 encode of the file will be in the clipboard, paste it into your message.
When you recieve a base64 encode, copy the message into the clipboard and then
termux-clipboard-get | base64 -d > file
Btw. if anyone's interested in something similar for an Android device, Termux runs emacs well, and with a bluetooth keyboard or Hackers Keyboard is quite useable.
We'll, you have this if you're on Android: https://play.google.com/store/apps/details?id=com.termux Go is in the repo, as well as clang/gcc, and I even have rust (for ripgrep) installed on my little phone.
Which does have sshd. So if you can live with emacs or (neo)vim + vim-go, and have a dumb terminal somewhere - that works. Price is also right (free)!
You can even just use the phone. Would strongly suggest using an editor config that remaps ESC, though - or use a non-stock keyboard on Android.
Downside is I have some hiccups on my Oreo device - the Termux API module is currently broken - but you don't need that for coding.
Pretty solid lists so far. Only things I'd feel obligated to add:
Termux is a super solid terminal environment / Linux environment. Much more useful than Linux CLI in my experience, but it's not necessarily trying to replace your homescreen as a launcher (though you could use it pretty extensively with the API functions, and it also has widget support if you pay) so they're kinda doing different things.
Also, Rocker Locker is really handy given most people probably want to adjust media volume more often than notification volume on tablets.
Termux does all of that, Tasker support is an addon purchase but the base app is free.
You can use Termux on android, it's a linux style CLI. Then you can add the its pointless repository so you can install gfortran
The magic here is Termux, which gives you a usable terminal GNU/Linux environment on Android, including an apt-esque package manager and its own package repository, compiled for appropriate Android architectures. It keeps a pretty up-to-date emacs, so you can install it and move over your configs and everything.
If you do like I do and keep emacs configured so that both terminal and GUI look nearly identical, you can barely tell the difference except that it can't display graphics. Usable with touch keyboard if you use a decent alternative one, but much better with a real bluetooth keyboard.
I did this for a while, until I replaced my tablet with a Chromebook and gained the ability to run emacs (GUI, even) via Crostini.
Edit: Off-topic, but if you want to hide the Android-ness of the tablet even more, you can also replace the normal launcher with t-ui, which is a terminal-esque one.
Use an app called Termux and run the following command
su
Then followed by the command you'd like to execute, you don't need to use the adb
prefix
Not exactly a toturial but if you just have an Android phone or tablet, install Termux app then pkg upgrade, pkg install rust and code away for 15 hours.
It's been a feature since the original Pixel, not just the 2 & 3
There's actually a huge number of usb devices that work with newer android phones, I've used ethernet adapters, hubs, sound cards and even a usb to sata adapter. Now that's expandable storage!
>...with my big linux laptop here on my desk...
You should check out Termux if you havent already :)
Wow, thanks, I hope that's the case!
I'm not sure what method you used, but using Termux as described in the XDA Developers article entitled "How to Check if Your Android 8.0 Oreo Device Supports Project Treble" looks reliable.
Did you use Termux or some other method? If another method, would you mind providing the details?
There are three methods for getting a more standard *nix setup on ChromeOS.
termux on google play store will give you everything you're after
doesn't need chromeOS dev mode and you get full linux environment
I've recently started using Termux - a unix emulator - on my phone, and I can't recommend it enough.
You can install python on it (apt install python
) and even [vim](https://en.wikipedia.org/wiki/Vim_(text_editor\)) (apt install vim
), which, if you haven't heard of it, is a really good text editor. It takes a little getting used to, and I recommend doing some tutorials with a real keyboard first, but it's a valuable tool to be able to use.
I don't know much about training in aws but if you feel like you're taking too much time to setup your environment (turning on your laptop/desktop) or things like that, you can use a screen on tmux instance and just ssh into your aws instance using termux from your phone.
I don't know if this might help you but when I train for days on my local machine I just monitor my progress from my phone. It saves time getting my desktop/laptop up and running.
Alternatively, there are also apps that can stream what's happening on your terminal. I've used hyperdash previously, but it seems too overboard for my purposes. Maybe it'll be useful for you.
I TRIED TILL MY THUMBS GOT NUMB! To change the label to SONY using my android phone but just could, not, DO IT! Ughh... so yeah... I don't recommend it. Unless you have a rooted phone and know how to use a terminal to access the usb stick. Which, even then, Im not sure can be done. But hey, be my guest. If you do manage to make it, make sure to share your findings with us. �� Good luck... you'll need it.
Edit: Here is a good android/linux terminal that should in theory help you out. Which is what I tried to use along side many others. Termux seems like the one to go with on an android phone. Like I said, if your phone is rooted and can get sudo, (Super user do) you might... MIGHT have a chance.
https://play.google.com/store/apps/details?id=com.termux
I dont have a rooted phone so couldn't move forward.
https://play.google.com/store/apps/details?id=com.termux&hl=en <--- Termux is a terminal emulator that includes Linux packages. In Termux just run apt install python. And then run the NSP splitter via the terminal as per usual.
To elaborate, there's a terminal emulator called Termux that has a Tasker plugin module, and then you can create scripts to run wget
and such that might be more efficient than Tasker.
Get Termux and install YouTube-dl
pkg install python pip install youtube-dl
Type youtube-dl , space, and paste the Reddit url with the v.reddit video
Edit: type cd /sdcard/Download or wherever you want to save the videos to first
Try out a chromebook. They boot very fast... and with things like Termux, I get a whole linux environment.
https://play.google.com/store/apps/details?id=com.termux
Plus the battery life is exceptional.
You will probably be best off using JavaScript since Tasker supports it natively. If you really want to use C++ or Python, you could try something like Termux. The problem is you wouldn't be able to call native Tasker actions from your code.
I use termux, with clang/ gcc as the compiler and VIM as the editor.
Guide for installing:
apt install clang vim
(if you want to use emacs, get that instead)vim
. You'll probably have to find a guide for vimclang -o 'output file' 'input file'
sh 'output file'
With the soon arriving Android apps you can use Termux to get a native terminal without developer mode. You won't be able to start X there (so no Linux programs with GUI) but I think that will be enough for just some Python scripting or things like that.
And I think someone could write an Android app in which the X server runs. Android apps are just containers after all.
ChromeOS has this philosophy of security and right now it's so much more secure than Windows it's not even funny. There are still some apps that are missing on ChromeOS but I expect with Android apps and WebAssembly that will change soon. (WebAssembly will make it possible to easily port C++ programs to ChromeOS which will then also run on Microsoft Edge, Firefox and Safari.) And those new apps will all run in sandboxes, compromising none of the security of ChromeOS.
Install Termux: Playstore
Install the FFmpeg package.
Open the Termux app. Enter the command: pkg install -y ffmpeg
Enable storage access.
Enter the command: termux-setup-storage
Use any explorer app to find the folder path of files to be converted.
Enter cd "folderpath"
Eg: cd /storage/emulated/0/movies
Enter command "ls" to see all files in the folder . Convert command
ffmpeg -y -hide_banner -stats -loglevel error -stats -fflags +igndts -i "InputPath" -map_metadata -1 -pix_fmt yuv420p10le -g 24 -c:v libaom-av1 -crf 25 -qmin 18 -qmax 40 -b:v 0 -cpu-used 5 -row-mt 1 -tile-columns 2 -tile-rows 0 -lag-in-frames 20 -enable-dist-wtd-comp 1 -arnr-max-frames 5 -arnr-strength 3 -aq-mode 2 -enable-cdef 1 -enable-global-motion 1 -tune psnr -c:a libopus -b:a 80k -c:s copy "OutputPath"
Any site, any video, any track, any resolution & on any device.
Plus, it's free.. just have to install it & set up the download programming, plenty of vids on YT about it.
Replying to my own message ---
Install termux -> https://play.google.com/store/apps/details?id=com.termux
In your termux home folder you'll create a ~/bin/termux-url-opener
(nano seems to be installed by default)
the contents of my current script just saves to a json object-per-line file
#!/bin/bash
now=date
echo "[\"$now\", \"$1\"]" >> ~/url-log
echo "$1" Saved
The previous one routed to various tools I have for connecting a node-red instance I was running, but no longer do.
Essentially it just sent everything to youtube-dl, something like this....
#!/bin/bash mkdir -p $EXTERNAL_STORAGE/yt youtube-dl --output $EXTERNAL_STORAGE/yt "$1"
When you share to termux - it will start a new instance of termux and then execute this script and close that instance of termux when complete.
I think this is the tutorial I followed
> Nvidia drivers are also not open source
Yes, true, and one reason Linus Torvalds hates that company.
But there's a big difference between a company with a closed-source driver they want you to use, and a company that will take you to court for trying to use their proprietary driver in an open-source project, or (worse) trying to reverse-engineer it.
Having said all that about Android, I want to add that Termux is an amazing project that offers a Linux terminal environment in Android userspace (no rooting required). Free, too. I have a bunch of Android apps in the Play Store, and one that sort of does what Termux does, but frankly, Termux does it better.
I add this just for balance.
> Is it possible to install Linux, preferably Arch, on an average, relatively new, modern Android tablet?
No, that is not possible in the sense of a laptop install. You can download Termux, a very nice Linux environment that runs in userspace, but I don't think that's what you had in mind.
Install Termux on the Android device, use it to log on to the home computer. Use Dynamic DNS to track the changing IP of your home connection.
Termux is a first-rate userspace Linux environment. You could write a shell script to handle the actual shutdown and other commands.
> Is there a way to have monitor one just have the display manager, and have monitor two just be a TTY?
Yes -- you buy a second video card and install it, so you have two independent displays.
Another much simper option is to log onto the main system with a separate computer (or an Android device running Termux) using Secure Shell, so you have a terminal session on one computer alongside the GUI interface on the main computer.
Another method is to create a two-monitor side-by-side configuration and put a terminal emulator on one of the display areas, and another app in the other. This option is less desirable for reasons that should be obvious.
Without sufficient information, we have to make certain working assumptions.
Even an Android tablet running Termux on the local network could provide a way in when things go south. All this depends on enabling the SSH server when the system is first booted up.
If you are using an app like Termux for ping
already, you can test DNS by running the command dig google.com
. At the end of the output, it will say SERVER: <IP address>
.
> The quickest way someone recommend to be able to accomplish my task was to set up a server and then ssh into it using an android ssh client ...
Yes, you could do that, but you could also install Termux and install Python in that environment. Termux is a sort of userspace Linux environment in which you can install things you need, including Python. Once you have Python installed, you can locally execute your program.
You can also use a server approach as you suggest, but that's way more complicated, and if while traveling you should leave cell coverage, the server would drop out.
Termux (Google Play store). BTW it's free.
Edit -- sorry, someone has already suggested Termux. I posted without reading the other replies.
The CBP doesn't support Crostini, so I imagine they mean Crouton?
There are also various Linux-access-in-Android apps, e.g. Termux, GNURoot Debian (abandoned?), and UserLAnd, which work OK, but aren't as well integrated with ChromeOS or as flexible as Crostini. For terminal-access to Linux they're a reasonable solution, though.
You can do that with most Android tablets, as well. A mouse and keyboard and Termux, and I can almost survive without a laptop for a weekend.
I just wish Android had better mouse support. It does seem a bit stodgy-- you can't configure things like buttons, for instance, and apps can't get rid of the mouse cursor, plus lots of apps only have mouse support as far as it happened accidentally, it seems like. Microsoft Office suite does a good job of it, and lots of browsers support full mouse events. Lots of others don't do things like drag-to-highlight, though, for instance, which is kind of a pain. OTOH, it does have mouse support, so I suppose I can't complain too much.
Honestly, for a samsung s5 I'd recommend a more standard android rom like lineage os rather than Linux. If you have a particular reason for needing Linux, you can always install the app, termux(also available on google play) on an android system. Unless you have phone hardware designed for Linux, or a tried and tested Linux ROM designed for that specific hardware, I would recommend sticking with android unless you're willing to take some risks and experiment.
Was there a specific Linux ROM you were considering flashing onto your s5? If it's been around for two years or more and is still actively maintained, then it would be worth a try, just remember that if it breaks your phone, you're allowed to keep both pieces.
Oh, I thought you meant you had found an IDE that had everything (besides AIDE, don't remember what exactly but I remember I had some issue with their web IDE).
For the command line, I'd actually recommend Termux. It's not a full Linux distro, so it doesn't have everything, but the dev did compile a ton of things for Android, including Node (and git, if you want to use the command line version), and is faster since it's not a full other OS.
Also, if you want a better file manager, I'd recommend MiXplorer. It's not on the Play Store (yet, the dev plans to put it up soon, and all the plugins are on there already). It's got a lot of features, some plugins to add more (a few free and a few paid, but most features are either built in or in the free plugins), and the dev is pretty active.
Thanks for the editor suggestion, I'll check it out.
Not dual boot exactly, but there are now many Android applications that offer a Linux login shell and some utilities. Termux is one, first-rate and definitely worth looking at. My application SSHelper (free, no ads, open source) also provides a Secure Shell login and shell session capability, as well as providing a convenient way to transfer files from/to the Android device.
These are just two of many similar applications that offer some version of a Linux experience on Android (which itself runs on a Linux kernel).
Look into free Termux Android app which provides a full Linux command-line shell with installable packages for python, go, github, etc. Then pick up a $99 Amazon Fire HD 10 2017 on BF.
https://play.google.com/store/apps/details?id=com.termux
Examples of how people are using Termux on the go.
If you get a chomebook that runs Android apps then you can use Termux: https://play.google.com/store/apps/details?id=com.termux. I use it for all my Python coding, only two things it can't do is Tensorflow or GUIs. But I'm able to run code with Keras, Pandas, Jupyter Lab, and other libraries. Termux even has packages for C++ Rust
> I sometimes wish I could run a Linux system on it so that I could use my tabled to ssh into my servers.
This is something that's receiving a lot of recent attention. Ideally, the environment would have a terminal emulator, the usual Secure Shell utilities, and some command-line utilities like those provided by BusyBox. And no rooting required.
For this specific need I think Termux is the best choice. I would have suggested my app SSHelper, but mine is the reverse of what you need -- it's primarily an Android-hosted SSH server. Termux is both a server and client, plus it has a decent terminal emulator.
You may need to get a full-featured Bluetooth keyboard to take full advantage of the terminal features.
If you want to run code locally, use termux https://play.google.com/store/apps/details?id=com.termux It has Python, C++, and Rust packages. I use a jupyter notebook with it and Keras with Theano backend.
There are online Python interpreters as well if you want to run tensorflow. Neither supports gui frameworks to my knowledge
While you can do it with for example the Termux app, it's definitely not as fun and much more tedious. So I wouldn't recommend it. An external keyboard might help though.
I was on Dev when 70.x was pushed but I had similar stability issues, probably worse. I switched to stable because I use my Pixelbook for work. I'm just going to stay on stable going forward because there are a ton of options to do what I need. I use Termux for local dev and tools and I use the remote VM for anything that I can't do locally.
​
If you don't switch accounts and don't use an external monitor I think 69.x is pretty stable.
Geht auch mit weniger Aufwand: Einfach Termux installieren, darin dann
apt install python
pip install youtube-dl
und schwupps kann man youtube-dl ganz normal nutzen. Kein komplettes Debian oder dergleichen erforderlich.
The best/easiest way to find out would be to have someone with the V30S+ and have them install termux to run the following command
$ getprop ro.treble.enabled
If it returns false, then it's not using Treble.
If it's Android, which I assume it is based on the generic "tablet", you can install Termux, a terminal emulator that comes built-in with a lot of Linux utilities and a package manager. It's also available on FDroid, if you're into that.
I've seen things like Termux which is very cool and even Debian noroot, on droid but haven't seen any docker or lxc/lxd apps - yet.
Who knows what the future holds though, syncing the droid apps across devices which now include Chromebooks is becoming very interesting.
Android is a GNU/Linux derivative, and in itself is its own Linux distro.
It doesn't include the same package manager as Debian, so apt/apt-get is not a thing. Vi/vim and nano aren't part of Android either.
That said, you could look at Termux to run a kind of Linux sandbox on your phone. Any kind of system access like sudo will require root privileges.
If you simply need to access a remote server over SSH, ConnectBot is my goto.
I see it uses youtube-dl as a backend. If you're not afraid of the command line, Termux (of cause) let's you install youtube-dl using pip (Python).
Not quite as convenient, but supports downloading of every format available, I think.
~~Just install the app Termux Long story short it runs a container with linux in it. I will never sideload crouton, anything that require dev mode, or generally comprises the security of my chromebook. Oh... an C720 :( womp womp sorry kid better luck next time.~~
Buy a pixelbook install termux
> Snapdragon 400/410 CPU
Perfect! That is a 64 bit processor https://www.qualcomm.com/products/snapdragon/processors/410
Here is a link to the app on the play store, and if worse comes to worse you can just install the APK manually
https://play.google.com/store/apps/details?id=com.termux&hl=en
Edit: Termux seems to only work on 5+ ... Hmmm. How familiar are you with ADB?
Further reading leads me to Termux, list of packages. Using this would allow me to keep the Chrome OS security model intact without "rooting" it (no flame wars... I know, I know)
Funny, I already use this on my tablet for little things but I didn't realize just how full featured it is. It uses clang instead of gcc by default. I don't know if that's a hard stop for QMK. A lot of people say that basically any linux program that doesn't need a GUI can run in Termux. It sounds like of group of users is even close to getting Java working which would make my developer life on a Chromebook so much more streamlined.
Is that enough to work with @jackhumbert? What information would you need researched to determine? I'm still on the fence about moving forward with this workflow.
Good guide to get you started. https://www.reddit.com/r/Android/comments/66kehg/twoclick_downloads_of_youtube_videos_straight/
Basically download Termux app, apt get-install python
and pip install youtube-dl
.
I've got a nice multiway selection so when I share I link to Termux I can chose to rip video or just audio or archive the whole channel etc.
I love using the Termux app (it's also available on f-droid, allows me to use stuff like Python, compile with clang, use ffmepg and SSH into machine's (I do it a lot) amoung other stuff. Packmamger is apt.
Place TQ's .gblorb file inside your device's Downloads folder.
Get Termux. You need Lollipop or above to run it. No need to root.
Type:
apt update apt upgrade termux-setup-storage
This prepares the system for use. If you type:
cd ~ ls
then there should be a folder named storage. This folder contains symbolic links to folders that should be present in an Android system. Type:
cd storage/downloads
This changes the current working directory to your devices Downloads folder.
Type ls again and check if the .gblorb file is there.
Termux has several interpreters that you can install. They may or may not work with TQ. If they do, it will be strictly text-mode only.
Glulxe
Type:
apt install glulxe
Run with:
glulxe filename.gblorb
Frotz
Type:
apt install frotz
Run with:
frotz filename.gblorb
FrobTADS
Type:
apt install frobtads
Run with:
frob filename.gblorb
You'll need to dirty your hands just a bit in order to run this convenient little shell script I whipped up for you, but it shouldn't be too bad. Easiest would probably be to save it to your phone and run it from any of the myriad terminal emulators available for Android; Termux is my personal preference on that score.
Edit to change the script to one which uses the system's grep
to determine where to make the cut; the one that ships with Termux doesn't support the -b
flag for printing the byte offsets of matches.
You can get termux and write any kind of code using vim/nano/emacs, if you're really determined. Coding with a touchscreen is painfully slow, however, so you might want to buy like a tiny keyboard.
Are you using a ROM? A bunch of the developers like to remove it for some reason. If you're on AOSP or Nexus it should almost certainly be there.
If you're rooted you can install a terminal app (this seems to be popular), open it and type su
, approve the root request, then bugreport > /storage/emulated/0/bug.txt
. There'll be a bug.txt
file in your internal storage you can upload. You can also use adb bugreport
from your computer with USB attached of course.
Termux - A console with a great number of packages. Text editor, SSH, python ...etc Since Terminal IDE is no longer supported in Marshmallow, this is my go to.
My biggest achievement similar to this, was running "Dwarf Fortress" on my phone using "Termux".
Oh I can, basically you install Termux from F-Droid or Google Play and in Termux, you type
su
to log in as root. Then do
props
now in here there should be an option "Edit Device Fingerprint"(naming not exact as I can't remember)
It should now list a bunch of phone manufacturers, then choose your phone's manufacturer(in this case OnePlus), then choose your phone model(in this case 6T), then it should ask to restart your phone.
After the restart it should work, if not, put GPay and also several Google Services like Google Play Services and Google Services Framework
All its files are stored in Android > Data > com.termux
you can run ffmpeg from the andriod via termux - but unless you have a bluetooth keyboard available, I wouldn't want to have to do it typing on the screen. If its only one or two files shouldn't be too bad.
Its not fun but yes you can, https://play.google.com/store/apps/details?id=com.termux is a good app to use it is essentially a Linux terminal emulator and it gives you a package manager which you can use to install gcc and emacs and if you use a soft keyboard with: arrows escape alt and control buttons; it is pretty feature complete if a little slow. If you can spend money I recommend to get a Bluetooth keyboard if you are going this route.
Another thing you could do is get a raspberry pi, set it up as an ad-hoc wifi network access point and get the ssh server running, once you do this you can use your phone to connect to the wifi network and from there shh into the pi and use your phone as a wireless terminal, you can use an ssh terminal app or termux or you could even spin up the vnc server in your raspberry pi and use a vnc client app to connect to it, and if you go this route you can get a Bluetooth keyboard and a Bluetooth mouse and connect it to your phone and use them through the ssh client or the vnc client on the phone.
Thank you so much! :)
So I just uploaded all the architecture executables for Android, check it out. And it's not an APK, download a command-line interface app like Termux and run it from there, you can use curl
or wget
to download it. Let me know if you need anything else! :)
Ok there are a few options:
Get a raspberry pi and a screen and keyboard and mouse probably around $150
Use your phone an app i would really recommend is https://play.google.com/store/apps/details?id=com.termux its basically a cut down version of Linux that runs ontop of Android, from here you can use a programmer's keyboard (software keyboard) or you can buy a nice Bluetooth keyboard and hook it up to your phone this will cost somewhere between $0-$50
Get a cheap laptop could even be 10+ years old install Linux on it and use that: this could cost anywhere from $20-$150.
Also did you know that android has support for mouse and keyboard? If you want to you could get a mouse and keyboard and a chrome cast and use any TV with an hdmi port you would connect the mouse and keyboard to the phone over Bluetooth and then connect the phone to the chrome cast and use the TV as a bigger display.
In the spirit of, "teach a man to fish..."
If you want to develop tasks using lower level commands, it would behoove you to install a terminal on your device. Testing commands like these in a terminal will give you "better" error messages. I use Termux.
I'll tell you that your command is malformed
Oh yeah. If you were stuck on Android without a computer, you could've made it there with Termux, but on iOS…
Google makes phones now, that might be interesting for your next one :D
you can install and run it in termux
and then maybe complement with another app
I've tried and it works using Termux. Run pkg install python3
and python3 -m pip install youtube-dl
, and you should be able to access the CLI from there. Not sure how you'd get the videos out of the app though, but I imagine a file manager should be able to access it.
> Yea I also use public-key authentication but I also want to be able to login from everywhere
Solve that by copying your encryption key to all your systems, fixed and mobile. If you have to log on using a computer you don't personally control, if you have to enter a password, then you will never solve the issue you describe.
Example -- on an Android tablet, install Termux, a free and fantastic Linux environment, and copy your encryption key there. Copy your personal key anywhere you need it. Just don't allow password logins any more. Then install fail2ban on general principles, even though hackers who try to log onto your SSH server won't even see a login prompt.
> Is there a way to run linux terminal from android phone wirelessly?
Yes, several ways, my favorite at the moment is the Termux environment. Free, open source, very well done.
To do this properly you might want a Bluetooth keyboard -- Termux has a pretty good virtual keyboard but it's not so easy to do efficient terminal operations without a real keyboard.
Just use Termux to log onto your local network using Secure Shell (which Termux supports) and you'll have a first-rate Android terminal.
Would Termux work? I'm a total noob with these things.
https://play.google.com/store/apps/details?id=com.termux&hl=en_US&gl=US
Termux is amazing especially combined with hackers keyboard. It has an amazing package manager like apt. I've used imagemagick on my phone before when I needed to convert images. 10/10 Would recommened
If you are somewhat familiar with command line, you can just install termux app on your Android phone, and then install youtube-dl inside the termux environment.
Você pode usar o youtube-dl pelo Android também, mas envolve linha de comando, não sei como você se sente interagindo assim com um app. De qualquer forma, se você tiver interesse (ou pra quem mais possa ler isso e quiser experimentar):
Pronto, você já tem o youtube-dl instalado no seu aparelho. Todo o processo pode levar algum tempo dependendo da sua conexão e do seu aparelho. Depois de concluída a instalação, você pode navegar até a pasta downloads do seu aparelho e rodar os comandos do youtube-dl que precise pra baixar os vídeos, sobre os comandos, tem bastante material de fácil acesso pela internet.
You can use it if you have a capable phone, you just have to install this app called termux and run these commands in termux:
Type in apt update && apt upgrade (to install all the necessary files termux needs to run)
Type in termux-setup-storage (to be able to access your directories while in termux using the cd command)
Type in pkg install aria2c nodejs (will allow you to use nodejs and npm in and aria2c which is a downloader in termux)
Type in npm install -g anigrab (to install anigrab, meaning you will be able to run it in termux)
Type in cd storage/downloads (to access the downloads folder on your phone which is where you'll want the files to be saved to)
Type in anigrab followed by the url of the anime on the site like when you click on the search results from animepahe and that page it shows you with all the episodes or simply just typing in the name of the anime like anigrab "tokyo ghoul" -s animepahe you can look at the documentation here for more instructions.
And done, now you have a script to download anime episodes files on your phone for you. But that's if you are interested in downloading only. Not sure about whether streaming would work since that requires mpv.
OP, if you have android, you can use Termux. It's somewhat like bash. All you have to do is $ apt install python
for Python 3 (use python2
for Python 2). You can also install vim ($ apt install vim-python
or even vim
works). You can even install git
, and node.js
. It even has clang
, gcc
and g++
compilers by default (iirc).
Thank you for the quick response!
Termux is basically a single user linux environment + shell packaged in an app, running on top of the Android Linux kernel. It's pretty popular among a certain kind of Android enthusiast, so I was hoping you might know or even have it 🙂
In case youre curious: https://play.google.com/store/apps/details?id=com.termux
No worries if you can't test it though - I realize you can't just test every file manager in existence, and as long as worst case the default Files app works, that's OK 🙂
I recommend you lean a bit about termux. There is a subreddit about.
It's not the best experience, specially if you don't have a physical keyboard, but it serves its purpose. I studied studied Golang on termux for two weeks with phone keyboard.
You may need some knowledge about terminals, but not too much. It's not rocket science.
Cheers bro.
> It’s sounds like I’m missing something obvious?
Sounds like the obvious thing you're missing is a reasonable OS. Apple devices are great if you do things within a certain limited set of functionality that Apple approves of, but anything outside of that ends up more complicated than it should be, sometimes even impossible. With an Android device you can install Termux, which acts like a Linux distribution and lets you install things like Lua, luarocks, etc. like you would on a Linux desktop or server. You get a shell and command line utilities, all local to the device. It's pretty great.
Since you can't do that, and you think repl.it isn't viable for you, the only other useful suggestion is to find some kind of ssh app and rent a server. You can get a cheap VPS for a few bucks a month, ssh in from the ipad (if Apple allows you to do that, I guess) and run Lua there.
Probably me throwing you head first into the deep end... If you've ever used Linux before, it's a Terminal emulator which has packages like a Linux distribution and allows you to do some powerful things without need for root.
https://play.google.com/store/apps/details?id=com.termux
However, this tool maybe easier, it's an ffmpeg tool; https://play.google.com/store/apps/details?id=com.silentlexx.ffmpeggui
Hmm... Well... Bingo for me! (Sorry! Couldn't contain my excitement...)
I am not sure what might be going wrong with your system. I assume the keyboard is working fine in other applications. You might need to wait until u/eql5 sees this post.
I hope the following by-passes your problem entirely. And while this provides the full blown desktop-like development environment, owing to emacs, there might be some learning curve, further complicated a bit by whether or not certain key bindings work. (Though, I think, I'm willing to spare the time to help you set this up; if anyone else hasn't already)
A particularly neat way of using the android CL-REPL I just discovered is by using Termux.
In CL-REPL, (eql:start-swank)
. In termux, install emacs, slime and then M-x slime-connect
. Done!
A keyboard case (and maybe a Bluetooth mouse-- I like the Logitech M720 Triathlon, as it can connect to 3 different devices, meaning you can have it primarily as a laptop mouse, but switch over to use it on your tablet on occasion) is a great addition. It makes Web browsing easier, and with the addition of Termux, it's kinda-sorta-mostly like having a computer.
> Will a Samsung Galaxy Tab A6 work?
Yes, that will work. Just as a sampler, why not install Termux (free) and play with it? It's command-line only, but it should give you some sense of what Linux is about.
Then, if you decide you must have a GUI, install AndroNix (also free), which needs Termux for support, and provides a sort of desktop on Android.
All without changing your main system's setup.
> EDIT: just talked to my ISP and apparently my current modem can't port forward and they'd need to install a newer one with that 'feature', does this seem right?
That depends -- right for them, or right for you? Before you let them charge you more money, try port forwarding any port at all, see what happens. Port forward port 22 and try to log onto your external IP with Secure Shell using your phone with Termux installed. (Termux is a slick mini-Linux environment that runs on a phone.)
The reason I doubt their claim is because when you connect to any Internet service, you are in effect port forwarding at least one port to allow two-way communication. Their claim could still be true, but it's not very plausible.
The way I checked what was using up all my storage was I installed Termux (gives you a mini linux environment that you can give permission to access your storage on non-rooted devices), and used the following commands
To setup storage
termux-setup-storage
To enter the top level directory of the phone's storage.
cd ~/storage/shared
To make a list of which folders are taking up the most space
du -sh *
will show the disk usage of all folders (the wildcard * grabs all folders in the current directory) and the options summarize and make numbers human readable. It is then piped (|
) into the sort command, which has the option to allow it to sort options with human readable numbers.
du -sh * | sort -h
For me this helped me to discover that the app I was using to make backups of my text messages and files was backing up to the device as well as the cloud, so I had around 22 GB of backups on my phone.
This is probably the more advanced version of how the DiskUsage app works, as this deals with Termux's command line, which is not for everyone.
I guess I forgot to mention earlier, but human readable numbers just means instead of 1328472310489 bytes, you see 1.2 TiB, as I'm not sure how widely known that term is.
Haha, nice! The command line app is called Termux. It's a mini linux system operation in a form of an app (really). It lets you install linux command line programs inside it. The one I use to remove dots is called GMIC", an image processing program. You may want to start reading about Termux and GMIC, and later in the day I'll come back with further instructions.
There's a bunch of different apps that let you run a GNU/Linux environment on Android. I personally like Termux: you basically just do pkg install perl
and you're good to go.
> When I open a file to edit in PC, I use the CTRL D command, what do I do on mobile?
It depends on the CLI. I recommend that you install Termux (free), which is a first-rate Android app that has a cleverly laid-out virtual keyboard that among other things lets you kill running processes.
If you want a speedup, you can install termux and compile C/C++ code & run it, all on your phone! (Along with languages like python, go and erlang, among others)
If you want to give it a try for computing pi like the OP, first download termux, run it, and enter the following:
Install prerequisites:
pkg update pkg install git pkg install clang++
Get the code from github.com/Mysticial/Mini-Pi and enter the directory it downloaded to:
git clone https://github.com/Mysticial/Mini-Pi.git cd Mini-Pi
Compile the code:
clang++ mini-pi_optimized_1_cached_twiddles.cpp -Ofast -o mini-pi
Run it:
./mini-pi
It'll print some stats, such as the overall time it took, as well as creating a pi.txt file with 1000000 digits of pi in it.
On the Pixel 3XL (snapdragon 845), computing 1000000 digits took around 5.8 seconds.
To remove all the downloaded files, either uninstall termux, or run:
rm -rf ~/Mini-Pi
Because it is no longer hosted on gitlab you have to adapt the Android process slightly. I will do my best at explaining how to install it. I've adapted the original installation steps:
If you would like to update DeezLoader on android you need to first delete the folder
rm -rf DeezLoader-Reborn
In order to have DeezLoader on Android you must install termux. - Play Store: link - Apk Mirror: link
In order for DeezLoader to work we need to setup storage for termux:
termux-setup-storage
Run Termux
and enter this:
pkg update && pkg upgrade && pkg install git nodejs
If it asks you if you want to continue, enter y
.
This is where the improvisation comes in. Download the source code using the link in the pastebin to your Download folder on Android (https://pastebin.com/vJmgv78v) (In this case I will download to /storage/emulated/0/Download/)
Unzip the file. Now me must copy the unzipped file to the default Termux directory:
(This is an example of where your zip file could be. If not find out where you unzipped the file).
cp -r /storage/emulated/0/Download/DeezLoader-3.1.0-src DeezLoader-3.1.0-src
Type (yes do this):
cd
And now go into the folders:
cd DeezLoader-3.1.0-src/app
Now lets install what we have downloaded:
npm install
Run the server side script:
node app.js
And then go to your browser and enter to this site
Bonus tip: Next time you want to start the server (after having exited Termux) just paste "node DeezLoader-3.1.0-src/app/app.js" (or even create a shell script with this code and execute it)
Edit: I've made edits above to prevent it from throwing an error on some devices.
Not OP, but I have done some web development on Android as an experiment.
The best tools/apps I've used:
Termux - Terminal emulator and linux environment. It gives access to a lot of linux tools. In my case it was NodeJS and NPM. I even tried the PHP package and it worked as intended. Termux is my favourite app in the play store. It is really powerful, free and it supports both virtual and HW keyboards. Cannot say enough how good it is really.
QuickEdit - The best code editor I found on the playstore. I tested quite a few, but almost all of them have one dealbreaking bug, they cannot cope with large files that have a lot of code. QuickEdit is the only one that doesn't choke and support the basic stuff expected from a code editor. It is not perfect, but haven't found anything better.
JuiceSSH - SSH client, it has a ton of options and it just works. My setup is not complex, so I haven't tested all.
KSWEB: server+php+mysql - It is an equivalent of Wamp/Xammp. It packs web, php, mysql server. I haven't used it much, but from I've tested so far it works as expected.
What I miss from the desktop OSes, is the full Chrome browser and more specifically the Chrome Dev Tools. These days if you do web development, the dev tools are almost irreplaceable.
Crouton is amazing, and for some use cases it absolutely is the correct answer. But please be aware that putting ChromeOS into developer mode results in all sorts of security features being disabled. So, this should only be done if you can't help it otherwise.
As a more light-weight solution, I discovered that Termux can do (almost) all that I need. The big elephant in the room, of course, is the lack of support for graphical applications. But I find that I spend most of my time in Emacs. And that works perfectly in Termux. I used a Ubuntu-chroot to make things easier to install.
Depending on what type of work you do, you can run your code locally. Or you can use Emacs's Tramp mode to seamlessly work on a remote (virtual) machine. For my type of work, this is in fact the preferred work environment. Absolutely zero downsides to using ChromeOS vs. a traditional desktop OS.
In the future, I have high hopes for CrosVM. Hopefully, it'll allow us to run graphical Linux applications on ChromeOS. That would eliminate the remaining few uses that I have for Chrome Remote Desktop.
You joke but you can actually run a basic terminal with vim and ssh on your phone.
Install Termux and the Tasker Plugin for it, if you really want to keep going with Python scripts. It's pretty great.
Not at all. Just install Termux and follow these steps.
2)Install dependencies
Run Termux and enter these lines in the given order (If it asks you if you want to continue, enter y):
pkg update
pkg upgrade
pkg install nodejs git
3)Download
First download the latest version from the repo:
git clone --depth 1 https://git.teknik.io/SMLoadrDev/SMLoadr.git
4)Install
Move files and remove unnecessary ones:
mv SMLoadr/{package.json,SMLoadr.js,./libs/} ./
rm -rf SMLoadr
Now we install what we've downloaded:
npm install
Patch openurl:
sed -i 's/linux/android/' node_modules/openurl/openurl.js
5)Setup storage
In order to let SMLoadr download to the right folder, we need to setup storage for Termux:
termux-setup-storage
Now we trick SMLoadr into downloading to the public storage:
mkdir ~/storage/shared/SMLoadr
ln -s ~/storage/shared/SMLoadr DOWNLOADS
6)Run
Last but not least run the app (downloaded files will be in a folder named SMLoadr in public storage):
node SMLoadr.js
7)Updating to a new version
To update it, run step 3 and step 4
[Guide copied from here]
https://play.google.com/store/apps/details?id=com.termux
Then type packages install python
Since you already have access to Android apps, Termux (https://play.google.com/store/apps/details?id=com.termux) is an alternative to Crouton that doesn't require developer mode...
Termux should be able to do that.
With Termux you could rsync the files across to your Android device.
Download Termux, then install python. As a bonus, you can also install many other tools (vim, apache, ssh, etc).
> Can Linux be installed on a Galaxy Note 10.1
Yes. Install Termux and AndroNix fpom the Google Play Store. Termux (excellent text-based Linux terminal plus package manager) does the heavy lifting and AndroNix uses Termux to install one of a list of Linux graphical desktop environments in user mode, no rooting required.
Once installed as explained above, an Android resident VNC client program displays the desktop (use a Bluetooth keyboard and mouse) , or a local-network system can use any VNC client to interact with the Android-resident Linux using the laptop/desktop keyboard and mouse.
Finally, this scheme supports Samsung Dex if certain VNC client programs are used except the most common one. One VNC client that works with Dex is bVNC. If you aren't going to use Dex, any VNC client program is fine.
All these programs are free.
you don't actually need the zip file, but first you need a TP-Link HS110 (or HS100) for your charger which must be connected to the same wifi that your phone is connected to (or you can create a wifi hotspot for the hs110), then install this app "Termux" then install this app (it's just an extension for the first app), then open the "Termux" app, and in there write to "install" it:
sh
apt update;
apt full-upgrade;
apt install php termux-api git
git clone https://github.com/divinity76/battery-charge-limits.git;
, and after it's "installed", run it with
sh
cd battery-charge-limits;
php battery_max_temp.php;
then it should ask you a bunch of questions, most of which you can just ignore (and press enter for), but the last question is "what is the IP address of the HS110", which you must answer. if you don't know how to find the hs110 IP, most of the time your router can tell you, or if you're using a wifi hotspot, the hotspot settings in android settings will tell you the ip of all connected clients.. if you can't ask the router what the ip is, you can use this app to scan your lan for port 9999, there will probably only be 1 result that says "port 9999 open" (it's a rare port), and that will be your hs110 ip, write that in to the last question in termux, and it will be running, doing it's thing (checking battery charge level and temperature and stop charging if necessary) until you close Termux (i didn't make an automatic LAN scanner to find the HS110 ip, i could have done that, but it would have been more work~)
TL;DW (TOO LONG; DIDN'T WATCH) Here is summery of all the resources and commands:
Download termux: https://play.google.com/store/apps/details?id=com.termux&hl=en
Install Fedora in termux: Website: https://github.com/nmilosev/termux-fedora
Commands for termux: pkg install wget -y && /data/data/com.termux/files/usr/bin/wget https://raw.githubusercontent.com/nmilosev/termux-fedora/master/termux-fedora.sh
sh termux-fedora.sh f30_arm64
startfedora
In Fedora (still in termux): Install wget: yum install wget
confirm with yes during installation: y
Go to Julia Lang website and download binaries: https://julialang.org/downloads/
wget https://julialang-s3.julialang.org/bin/linux/aarch64/1.2/julia-1.2.0-linux-aarch64.tar.gz
extract it: tar -xzf julia-1.1.1-linux-aarch64.tar.gz
Go to Julia directory: cd julia-1.1.1
cd bin
start Julia and have fun! ./julia
Any Android tablet (or phone) with Termux (F-Droid or Google Play) could work. I use Termux occassionally (ssh/mosh to my other devices for quick tasks and youtube-dl), and would use it more if I had a physical keyboard and it was a tablet.
My editor of choice is (neo)vim, so doing everything with a floating Termux window with a web browser or split-screen multitasking would work for me.
Yes you can, ignore others.
Install Termux https://play.google.com/store/apps/details?id=com.termux
Open app
Enter
pkg update
pkg install python
https://wiki.termux.com/wiki/Python
pip3 install beets
And bam, beets is installed.
Also I'd suggest you do this to be able to access your storage
https://wiki.termux.com/wiki/Termux-setup-storage
And when you make a beets config your path will probably be like
```~/storage/music```
Edit: here's my config to get you started with beets https://hastebin.com/oyohizehim
You could also just use Termux directly on the phone.
While there might be an app that allows for wget usage,, you can use Termux to do this (and many other things). While it's not plain sailing at all, here's a quick guide.
Install the above, and then grant it Storage permissions since it doesn't request them. (Settings > Apps > Termux > Permissions + Storage)
Then when you open Termux and it has loaded you'll need to install the full wget binary
pkg install wget
Then issue this command to refresh
hash -r
From here on out you now have wget to download all the things to wherever you want.
Remember though, we're dealing with *nix here and the sidebar Noob link on wget isn't really mobile friendly since it's a PDF with images for the commands/pasta? Maybe the mods here need a wiki with further halp?
Here's a quick command you can put in and it'll grab the lot (this is bad) from OP
wget -e robots=off -r -m http://xray840.startdedicated.net/quicksilver/
hth
The Termux android app has an FTP client built in https://play.google.com/store/apps/details?id=com.termux&hl=en
But I agree with the other poster, SFTP would be a better choice.
On an Android you can install Termux and program in Python, C and other languages.
https://play.google.com/store/apps/details?id=com.termux&hl=en
You could just launch a terminal emulator and run it there but yes, Tasker's Run Shell Action is another way to get at the information.
You could use python (and pip) in Termux.
Check out Termux, it will allow you to install and run python locally without the need for ubuntu. Works really really well. Termux
If you have the Play Store, install Termux. Then install python in there and then use pip to install youtube-dl (see first line, this is a screenshot from my HP CB13). Before you download any videos, you need to allow Termux to access your Downloads directory so that the other applications on your Chromebook can access the video afterwards.
If you don't have the Play Store, it should still be possible with this Chrome App because youtube-dl is just a python script. You'd need to download the source code of youtube-dl and execute it in the Chrome App. It could get tricky though if packages are missing. I haven't tried it.
You can send a cia to your Android device to FBi via termux (must install Python post install) & FalconPunch.py https://play.google.com/store/apps/details?id=com.termux
An alpha release of ldc, the llvm-based D compiler, for Android devices is now available. It is best used with the excellent Termux app (https://play.google.com/store/apps/details?id=com.termux&hl=en) and a bluetooth keyboard. ;) Updated test runners, that run most tests from the standard library on any Android device, are also available (results have been reported for everything from a TomTom BRIDGE GPS navigation device to a Huawei Watch):
https://github.com/joakim-noah/android/releases/tag/polish
You can install a test runner app or run a command-line binary.
Please report your results in this thread in the ldc forum, which
requires no registration, with the info and format requested
there, particularly for Android 4.1 or earlier:
https://forum.dlang.org/thread/[email protected]
If you try out the native compiler, take a look at the README that comes with it for instructions.
If you have a D/OpenGL app you'd like to port to Android and submit to the Play Store, let me know if I can help with that process.
It's on Google Play too https://play.google.com/store/apps/details?id=com.termux
Sure! Full details will be a bit much, but I can get you started in the right direction.
I gave a number of options. Let's stick with using sshfs to mount the android device's filesystem on your Linux computer -I suspect that's the one you'll like.
First, on the Android device, you'll need an ssh server. There's a number of
options in the Google Play Store. Personally, I'm fond of
Termux - this
provides a terminal and apt repository of packages custom compiled for the
Android environment. There's some catches with it - #!/bin/sh
doesn't work
as there's no shell at /bin/sh
on Android, you'll have to use something like
#!/data/data/com.termux/files/usr/bin/sh
instead. The Termux guy makes these
alterations in the provided packages.
From there, you'll find ssh
(which provides sshd
) and dropbear
in Termux's repo. apt install ssh
and/or apt install dropbear
, very similar to what you would do on a Debian-based Linux system. Both of
these can be run on your Android device as a server that your Linux machine can
remote into to access. There's plenty of documentation online to set them up,
as they're common on Linux devices. A few catches are: files (like sshd's
configs) are in a slightly different place, and you can't bind to lower port
numbers (like the default 22) since you're not running as root.
Next you'll want to get ssh
(the client - not sshd
, which would be the
server) on your Linux device. This is often in a openssh
package. Again,
lots of docs for this online. From there, see if you can remote into the
Android devices openssh server. If you set things up correctly, you'll have a
shell on the Android system.
Once you're sure that's working, get sshfs
on your Linux system. This will
use ssh
to copy files back-and-forth under-the-hood keeping a given Linux
directory (when sshfs is mounted) the same as the Android one. Can use that to
copy music or whatever across.
One last catch: I think with MTP you end up seeing what is actually /sdcard
as the mount point. So if you see a bunch of files with which you're not
familiar instead of stuff like Music
, look in /sdcard
.
You may have trouble finding documentation for doing this with specifically Android, but outside of Termux everything is here is standard Linux stuff that should have plenty of documentation online.
One last note - just as this allows you to access your phone, it could allow badguys to do the same. Careful with the specific configuration you use. It may be best to kill the sshd/dropbear server when not in use.
Hope that helps!
Termux and its plugins are no longer updated on Google Play Store due to android 10 issues and have been deprecated. The last version released for Android >= 7
was v0.101
. It is highly recommended to not install Termux apps from Play Store any more.
There are plans for unpublishing the Termux app and all its plugins on Play Store soon so that new users cannot install it and for disabling the Termux apps with updates so that existing users cannot continue using outdated versions. You are encouraged to move to F-Droid
or Github
builds as soon as possible.
You will not need to buy plugins again if you bought them on Play Store. All plugins are free on F-Droid
and Github
.
You can backup all your data under $HOME/
and $PREFIX/
before changing installation source, and then restore it afterwards, by following instructions at Backing up Termux before the uninstallation.
There is currently no work being done to solve android 10
issues and working updates will not be resumed on Google Play Store any time soon. We will continue targeting sdk 28
for now. So there is not much point in staying on Play Store builds and waiting for updates to be resumed. If for some reason you don't want to move to F-Droid
or Github
sources for now, then at least check Package Management to change your mirror, otherwise, you will get repository is under maintenance or down
errors when running apt
or pkg
commands. After that, it is also highly advisable to run pkg upgrade
command to update all packages to the latest available versions, or at least update termux-tools
package with pkg install termux-tools
command.
If you plan on staying on Play Store sources in future as well, then you may want to disable automatic updates in Play Store for Termux apps, since if and when updates to disable Termux apps are released, then you will not be able to downgrade and will be forced to move since apps won't work anymore. Only a way to backup termux-app
data may be provided.
It says on there's github page.
>Termux and its plugins are no longer updated on Google Play Store due to android 10 issues and have been deprecated. The last version released for Android >= 7
was v0.101
. It is highly recommended to not install Termux apps from Play Store any more.
Also newest version is 0.117 on f-droid.
HowTo download videos with just 2 clicks (edit: ROOT NEEDED)
In this Post i will show you how you can download videos from reddit & other websites in 2 clicks since reddit decided to screw with our download bots. At the End of this Howto you will be able to download (almost) any Video on Reddit and other websites / apps.
What we will do in this Howto:
As the first step, we need to install Termux from the Playstore (or somewhere else). Termux is an App that gives you access to a commando console on your android phone. Using Termux, we can install things and configurate them - exactly what we gonna need!
So head over to <https://play.google.com/store/apps/details?id=com.termux> with your Android phone and install Termux. You can too search for "Termux" on the Playstore - that will lead you to the same installation page.
After you did that, we need to configure Termux so it will run our command that then will automatically download the Video. First, we need to give Termux access to our Device Storage with this command:
termux-setup-storage
run this command inside Termux. If you're on a newer Android Version, this should open up a popup which asks you if you will give Termux access to your device storage. Press yes in this Popup - this will give Termux access to your files.
then we gonna need to install python.. to do that, run this command in Termux:
pkg install python
Termux will ask you if you really want to install python.. enter "y" (without the ") in your keyboard and hit enter. if python is installed, we need to also install cURL and ffmpeg. install them the same way you did python (pkg install curl, pkg install ffmpeg). after you have done this, we need to install youtube-dl. youtube-dl needs all the other programs we just have installed to work.. and by using youtube-dl, we can download videos from youtube, pornhub, reddit and a ton of other websites.
we install youtube-dl by running the following command:
pip install youtube-dl
this command will install youtube-dl on your smartphone.
now we need to configure Termux to use youtube-dl to download the videos we want.
to do this, go in a file browser of your choice into the folder
/data/data/com.termux/files/home/
this is the home directory of Termux in which all it's settings & files are stored.
we need to create the folder ".config" in this directory. you can do this with your file browser or Termux (mkdir .config while you're in the right directory with Termux).
now, navigate into the new created .config folder and create an folder named youtube-dl and navigate into it. we now need to create a new file named "config" (not config.txt !). to do this, you can use your file browser. then you need to put this text into the config file with a texteditor of your choice:
-f dash-VIDEO-1+bestaudio/dash-VIDEO-1/best/mp4+m4a -o /data/data/com.termux/files/home/storage/shared/Download/%(title)s.%(ext)s
this tells Termux which video format it should search for & where it should download it to. the folder storage/shared/Download/ inside the termux folder will lead to ./storage/emulated/0/Download on your phone. But since every Android Phone haves a different folder structure, this can be different on your phone. here you just need to try out where the folder will lead you to. or you choose a different download folder where youtube-dl will put the downloaded videos to.
Explaination:
Reddit Videos are often in the "dash-VIDEO-1" format, this means that we want youtube-dl to search exactly for this format as the first choice. That's why we did put it as the first selection in our command. And because we want the best audio quality.. we use the selection "bestaudio". But there are cases where video's on reddit don't have audio.. so we have a choice for that case too in our command. If youtube-dl can't find a video format dash-VIDEO-1 (with or without audio), we tell youtube-dl to just download the best video format it can find. That can be webm, gif, mp4 or something else. In my experience, this selection of video formats is more than enough for reddit & a lot of other websites.
we now can save the file & go back into the termux home directory ( /data/data/com.termux/files/home/ ). now we create a new folder (if not already existing) called "bin" and navigate into it. in this new folder, we need to create a new file called "termux-url-opener"". you can again use your file browser for this like you have done it before in this guide.
in the termux-url-opener your now input this:
youtube-dl $1
and then you save the file.
To do this, go as an example inside the Reddit Boost App and click on a video you want to download. Instead of clicking download, you now press share link. Now a new Popup opens with a list of Apps you can share the link to. Choose here the Termux App. After clicking on the Termux Icon, Termux should open itself and start downloading the video into the folder you choosed above in the guide. After the download is done, Termux closes itself and you should be in the Boost App again. You can now navigate with your File Browser App of your choice into your download folder and can see the video Termux downloaded for you. You now can share the Video with your Friends on Discord, Whatsapp.. or where ever you want.
This works almost everywhere where you can use the "share" feature of android to "share" a link. chrome browser, reddit apps etc.. a lot of websites and apps support this.
The same way you just downloaded a video inside the Boost App, you can too download Videos from inside the Youtube App or from Pornhub & other Websites who have videos embedded into them. If you use the Chrome App, you can use the share function the same way you did in the Boost App. By using this HowTo, you now can easy download Videos with 2 clicks. Enjoy.
background information about this guide: i wrote this howto a long time ago in first place as a workaround for a bug inside the reddit boost app.. but now since reddit decided to ban the download bots people loved, i decided to help people to be able to download videos by themself without the need for any bots. enjoy downloading reddit posts!
p.s: on computer you can also use youtube-dl, if you use youtube-DLG you even have a nice GUI.
On Android, there's Termux for a fully local terminal. If you want SSH, both platforms have plenty of apps for that.
You can install neofetch on Termux.
Electroneum had a 60% premine. The app was just a faucet giving away some of the premined coins for publicity. There was never any cloud mining. Pi is not any kind of mining either. That's a faucet too. In the case of Pi the premine faucet is part of determining the future supply of pi. The pi blockchain will be the stellar version of proof of stake. Pi are using the word mining for marketing as people associate mining with cryptocurrency and bitcoin.
Afaik the first app to do mining on a mobile was the mine2gether app that does cryptonight mining although it hasn't been updated for months so won't support the latest algos.
There's an android emulator called termux that you can compile xmrig on that can also be used to mine cpu/cryptonight coins.
There is a roundabout to do this, and it doesn't require rooting the tablet.
First, install Termux, which is a sort of command-line Linux environment -- and it is very good at what it does.
Then install VNC Viewer, which provides the desktop display for the next package.
Then install AndroNix, which (a) needs Termux to work, and (b) gives you a choice of Linux desktop environments.
Again, no root required, a Linux desktop, and you should probably acquire a Bluetooth keyboard and mouse to have the full experience.
Maybe Termux can be of help to you.
I've never looked for a cheat-sheet, manual, or training app, but Termux I'd what I use on my phone.
Termux is awesome!
If you don't want to pay for that, you can install node red in Termux on Android easily. https://nodered.org/docs/getting-started/android
It would require a little shell scripting, but I'm 100% sure you can achieve this using Termux.
Use termux-file-editor and look up termux-clipboard-set too, from Termux:API
Maybe use all or part of Bart's Imgur uploader bash script.
I'd advise Termux
Just install termux, open the app, pkg install python then run your python code like you would else where
On my Note 4 (see flair), it's
getprop ro.build.display.id
It'd be best to use Termux or Terminal Emulator or similar to run getprop
, look for the corresponding value(s), then craft a specific Run Shell action. The %DEVID/%DEVMAN/%DEVMOD/%DEVPROD variables may be helpful if one wants to use the task on different devices.
Just did a google search and I think this python script should work: https://gist.github.com/M3philis/7649961
You could run this script on your pc and move the files to your pc but if that's not an option you can also do this with just your pc. I'd recommend using termux. It's a small linux environment allowing you to execute linux commands.
When you've downloaded termux you'll want to access your storage so use
termux-setup-storage
Accept storage permission an we'll go to our storage with cd and make a new folder for our wallpapers with mkdir
cd storage
mkdir anime-wallpapers
You can also give the folder another name than anime-wallpapers.
you need wget to download the file and python packages to execute it so install them with
pkg install wget python
And since termux comes with a basic version of wget you'll have to run this:
hash -r
This will reset the pkg names. Make sure all packages are up to date:
pkg upgrade
Now you just need to download the python file
wget https://gist.githubusercontent.com/M3philis/7649961/raw/b473fb409417b9e0c7fabb02603c277b10f0418f/Konachan-Downloader_v3.py
And run it
python Konachan-Downloader_v3.py
And follow the instructions. Enter anime-wallpapers or the name you've chosen when he asks for the directory.
If something doesn't work feel free to ask.
A better way to read and do work on your phone (if it's big enough) while making it look cool
CMUS was used in screenshot
$ pkg install cmus # if sound isn't working then $ pkg install pulseaudio # if there is a file permission problem then $ termux-setup-storage
​
Very sorry -- I used this product once and managed to forget that it requires rooting the device, which I don't do any more. I've corrected my original post.
Here is a list of apps that allow a (more or less) Linux experience -- but without the advantages of a Linux filesystem -- on non-rooted Android devices:
HOWTO: Run Linux on Android without root
Of the provided list Termux is particularly good (free but with add-ons that cost), well-thought-out and with lots of command-line utilities. There is my own free app SSHelper, which also offers a command-line Linux experience as described above.
EDIT: clarification
I haven't actually done this but you should be able to do it this way.
Install Termux
Open Termux and install ffmpeg with:
>pkg install ffmpeg
Give it storage permissions:
>termux-setup-storage
Go to where your video file is and type:
>ffmpeg -i Movie.mkv -map 0:s:0 subs.srt
Source: https://superuser.com/questions/583393/how-to-extract-subtitle-from-video-using-ffmpeg
Also see: https://trac.ffmpeg.org/wiki/ExtractSubtitles
Edit: Storage permissions
Termux gives you a (user mode) package manager and a terminal on top of Android's flavor of Linux. If you want a more standard linux distro you can run a chooted (proot actually) distro on top of it.
https://wiki.termux.com/wiki/Ubuntu
https://wiki.termux.com/wiki/PRoot
https://play.google.com/store/apps/details?id=com.termux
If you want a GUI that's possible too:
https://prahladyeri.com/blog/2017/07/install-debian-lxde-on-tablet.html
There are other apps on the play store that do this.
1 - Download this https://play.google.com/store/apps/details?id=com.termux 2 - type "su", and grants the permits 3 - then type "setprop persist.lineage.nofool true" 4 - reboot
Not officially, but yes it is technically possible with the excellent unofficial python gmusic api. Specifically the gmupload script provided by gmusicapi-scripts.
I personally do this all the time on my phone with termux.
It's a little scrappy and quite technical, but the basic idea is to install termux, and from it run the termux-setup-storage script to let you access external storage:
termux-setup-storage install python (and some other stuff I suspect you'd need):
apt install python-dev ffmpeg clang libxslt-dev and then the gmusicapi-scripts
pip install gmusicapi-scripts
There's possibly some other tweaking necessary, but you more or less should be able to then execute
gmupload -m <path to music> and follow the steps to log in to your account and it'll go away and upload everything. If you don't want it to scan-and-match take out the '-m'
Good luck!
I'm a STEM PhD so maybe I can give some more focused insight (EECS btw).
Reading papers is a decent experience. Its thin enough that you can fold it back and hold it like a book (if you don't mind feeling the keyboard) but somewhat heavy so I don't do it for prolonged periods of time.
I don't have the pen, but I'd imagine annotating papers and documents to be an enjoyable experience. Certainly a plus over pen+paper, and if you're already in the GSuite ecosystem, drive integration is nice.
I'm in CS. I code, a lot. The pixelbook is my main driver, and contrary to what others might suggest you don't need to crouton or use a web-based IDE to get a good developer experience. This is my current typical setup.
There are some minor inconveniences. I use the [Secure Shell] extension to mount Termux's filesystem so its viewable in the crOs file explorer (and then I can open the folder in Caret). Because Termux is slightly different to a virtual machine, you need internet connectivity to ssh into it which means when I'm with no internet I can't mount the fs. Termux is still usable though so if you're comfortable sticking to commandline text editors (even for a sure period) then there's always vi/emacs/nano etc.
You can install Python in Termux no problem and I have used it in the past. In the screenshot I'm working on a nodejs / web dev project. Termux is hosting a local web server and I can access it from the chrome browser.
Arduino has a chrome extension and a web-based IDE. I've never used it but here it is.
Matlab web will be fine. I've not tried Fusion360 but again, it should be usable.
Squid is a top-tier experience with the pen, so I've been told.
Slack app is fine, it adapts to the screen size well.
Network printers are mostly no problem.
The files app actually can integrate your Dropbox account and display / sync its content.
I am a huge fan of keeping all my files in version control. So, I frequently just host all my files on Github. As soon as you push them to the remote repository, they become available for viewing as a website.
But if you want to develop locally, you can use Termux to install a local Linux environment. It isn't a complete replacement for a Linux desktop, but the Ubuntu chroot is surprisingly versatile.
I use Emacs for development, and you can run NGINX as a local web server. Emacs' Tramp mode makes it pretty seamless whether you are editing files locally, via ssh, via lxc, or on GitHub.
The only surprise that I encountered was that I can't bind to privileged ports (so, use ports 8080 and 8443, instead of 80 and 443). And I also can't connect to "localhost". Instead, I have to use the machine's internal IP address.
Run the following instructions in the Ubuntu chroot to tell you:
ip address show type veth | sed 's/ inet ([^ ]).*/\1/;t;d'
This also means, it's going to be challenging to get an SSL certificate for the local server. I am sure there is a way to do it, but I don't have good instructions for you just yet.
This might not be an issue for you, unless you want to use HTML5 features that are gated behind HTTPS
Learning go and what makes it nice is I can install Go 1.8.1 on my phone with free Termux app.
you should try Termux and Hacker's keyboard
It says it needs root on the android device. So, I would guess it won't work.
But I think this should work.
To be specific, I used a Terminal app.
You have to install Termux
https://play.google.com/store/apps/details?id=com.termux - then use your Android like any other Linux OS.
it is much more than putty, but ... https://play.google.com/store/apps/details?id=com.termux
You could maybe try looking into termux (https://play.google.com/store/apps/details?id=com.termux&hl=en_US&gl=US) to run the python script. I haven't tested it but let me know if you're successful. I'm currently trying to create a Bluetooth version for this using Bluetooth HID (https://developer.android.com/reference/android/bluetooth/BluetoothHidDevice) but I don't have too much experience with android so it might take a while :(
Another one is Termux, and it does the same thing, and allows you to customize what keys get put there: https://play.google.com/store/apps/details?id=com.termux
Which apps are misbehaving? Try ping -c3 something.local
or nslookup
from a shell (https://play.google.com/store/apps/details?id=com.termux)
Useful related links for interested people:
HOW TO RUN LINUX ON ANDROID (phone or tablet):
You can run a proot via termux:
https://play.google.com/store/apps/details?id=com.termux
You can run a chroot (better than proot) via Linux deploy (requires root):
https://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy
You can buy a Linux mobile phone, like the PinePhone (very early in development and not a fully functional phone as a result):
https://www.pine64.org/pinephone/
Or you can buy an Intel Windows tablet, and install Ubuntu Linux on it with this script (you run it on the ISO):
https://linuxiumcomau.blogspot.com/2017/06/customizing-ubuntu-isos-documentation.html?m=1
Or you can buy a Nexus 7 or one of the rare Android tablet that has had Linux proper ported to it. Check XDA for supported models (but be aware they're few and far between, and VERY buggy).
Ah, you run those commands inside Termux https://play.google.com/store/apps/details?id=com.termux&hl=en&gl=US
Play Store Link for termux. You can run most linux cli tools in it. I use it to ssh into my servers on the go.
No idea but this article recommended using Temux.
Have you tried following the steps here?
maybe you could try Atom and set it up to run python.
If not you can always try run it in the cloud like on Repl.it if you want to work with files or make bigger projects, that you can share.
Also Google colab is handy for taking notes and running snippets of code. and they're stored on your google drive.
Only a hobbyist, but I've been using Android exclusively for a few years and it can be a minimal dev environment.
Ubuntu for ARM devices is better than default Android, unless that's what you're developing for. Termux is popular for this, but personally I like UserLAnd as it's more like a real system and every issue seems to be possible to fix with help from Stack Exchange.
For an editor I've recently been using nmm which has the most features, but you have to add the editor to the homescreen as an Android app shortcut or open it through a file manager. Another option is using code-server to run a web-based version of VS Code and access it through the device browser.
MGit is okay for local Git usage and syncing with a remote, but seems to be unmaintained now. Ungit is similar to code-server in that it runs a server and we access the app through the browser, but I haven't really used it.
Fasthub works okay for most basic GitHub needs, but also seems to be no longer maintained. Easiest alternative is the website, and often that requires desktop mode to access some functionality, but it's better than not being able to do so at all.
DevDocs works well for local documentation, and is a PWA that can be added to the homescreen like an app.
Building, testing, coverage, and distribution can easily be done by GitHub Actions/Travis-CI/Appveyor combined with Codacy/etc for quality and Codecov/etc for coverage reporting. Hardest part of using them is tolerating the mobile UI of most of these websites..lol.
If you need to remotely use your desktop GUI there's a ton of options. I've used TeamViewer Remote Control and it was okay, but there's probably better options.
There are many SSH clients that could fit your needs. I use ConnectBot because it was recommended by UserLAnd and I quickly grew to like it; I've tried some others, but if I recall correctly their "extended keyboard” implementations sucked.
If you're okay with a command-line utility, you could use ImageMagick through the Android app Termux (Play Store), which is able to merge PDFs.
Examples on how to use ImageMagick for this purpose: https://www.shellhacks.com/merge-pdf-files-linux-command-line/
If you have an Android phone, it probably works with Termux, which doesn't need a rooted device. If it's iOS, I can't help you
- Termux with youtube-dl, for downloading videos. See this guide. It also supports other useful Linux programs like gallery-dl.
- AOSP WiFi Keyboard, for using your computer to write on your phone.
- Flud, for downloading torrents, + any torrent search service, such as Torrz.
For me as a main app termux https://play.google.com/store/apps/details?id=com.termux
Tasker https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm
Google Callender https://play.google.com/store/apps/details?id=com.google.android.calendar
But things change when I travel
Yup! You have several options:
> what are you doing when you are not at your computer?
Termux - always at a computer
Otherwise Google Keep.
Was able to test the throughput on my local network with iperf
via Termux. It's basically 100Mbps, as advertised.
On any of my Android phones (currently a Nexus 6 and a Pixel 3, both running the stock ROM, not rooted) I install the apps from f-droid
Termux (Terminal emulator with packages) - https://f-droid.org/packages/com.termux
AnLinux (Run Linux On Android Without Root Access) - https://f-droid.org/packages/exa.lnx.a
They're also available from Google Play, if you prefer that:
https://play.google.com/store/apps/details?id=com.termux
https://play.google.com/store/apps/details?id=exa.lnx.a
So install Termux, then install anlinux. Then when you run anlinux it'll prompt you to choose which Linux distro to use, I chose Debian.
It'll generate comnands for you to paste into the Termux shell.
After that, I run, within Termux, a script that Anlinux created:
$ ./start-debian.sh
And from the shell that started I could run
apt-get install calibre
Yes,
Install Andronix - https://play.google.com/store/apps/details?id=studio.com.techriz.andronix
Install a VNC Client
Run Andronix, pick a distro you like (I use one of the premium optimised XUbuntu builds, but the free ones are fine if you just want to experiment) and it'll give you install commands to paste into the Termux shell.
When it's all installed, you should be able to launch your VNC client, and attach to localhost, and get to a linux desktop
I found the default Samsung keyboard doesn't work too well in Termux, and often you need a "PC" like keyboard - Hacker's Keyboard works nicely (but is a bit ugly) https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard
"No root required" This is terminal link https://play.google.com/store/apps/details?id=com.termux
After downloading it. First connect to vpn and then write "ifconfig" (without quotes)
Well, I need to say that it is a very cumbersome process, but I think it's the fastest and highest quality way I could find. You've been warned:
The idea is to use a linux command line script to process the image on phone, obtaining a very high quality result. At the end, I included a "lazy" alternative and a commission, so you can judge yourself if it's worth the effort.
*The hard and high quality way"
Install Termux app, so we can install Linux command line programs, and use a script to process multiple images at once.
In Termux, paste this command to install gmic
and exiftool
packages, and hit Enter:
apt install gmic exiftool
GMIC is a powerful image processing library used to reduce dots. Exiftool is used to preserve EXIF info like date and exposure in the edited images.
Now we can start processing the images. Use a file manager (I use MiXplorer) to copy the image full path, something like: "/storage/emulated/0/DCIM/Camera/IMG_20200801_072838.jpg".
In Termux, type "i=", paste the copied path, and hit Enter. Like this: i=/storage/emulated/0/DCIM/Camera/IMG_20200801_072838.jpg
You may have to use quotes in the path of it has spaces and other special characters. But for GCam images that is very unlikely, and we're good to go without quotes.
In file manager, create a folder to save the processed images. I created a "GMIC" folder inside the "Pictures" folder. Copy the folder path and replace the "output" value in the next code.
Main script, paste into Termux: r=3; t=20; s=50; input="$i"; output="/storage/emulated/0/Pictures/GMIC"; filename="$(basename -- "$i")-dotfix-r$r-t$t-s$s.jpg"; gmic -input "$input" -remove_hotpixels $r,$t -sharpen $s -output "$output/$filename",98 ; exiftool -overwrite_original "$output/$filename" -all:all -tagsfromfile="$input"
Breaking it down - We're calling gmic and processing the image with two filters: "remove_hotpixels" and "sharpen". To better configure them, 3 variables are created: - "r" is the radius in pixels in which a dot can be detected. 3 is usually enough, but in rare situations dots can be larger and 5 works best. - "t" is the threshold value, used to save non-dot pixels from being denoised, and preserve fine details. Lower values may clean more dots, but also destroy detail. I usually go with 20, but sometimes 15 or 10 works best for images with stronger dots. Value 0 would process all pixels, and 100 none. - "s" is the sharpness strength, used to improve details after reducing dots. It's not mandatory, so you can set it to 0, but I think 50 gives really nice results. - After gmic is done, exiftool automatically copy the exit from the original file to the new one, and it's finished.
Now, it may seems like a lot, but if you save the Main script code to a note on Google Keep, everytime you need to fix dots on a image, you just need to copy the image path, type "i=path" in Termux and copy/paste the Main script. It's really, really fast.
And to process many images at once, you just need a for loop. Let me know if you need that too.
Alternative solution for lazy times Install the Photo Editor app and apply the "Denoise" effect on the image. It is very similar to the result of Magisk dotfix solution, and you don't need root. But details are not preserved, like they aren't in the Magisk module also. If you want to just post the image to social media with limited resolution but no dots, I guess this is the best solution.
Please check this comparison between 200% crops of Original, GMIC and Photo Editor results.
https://play.google.com/store/apps/details?id=com.termux and multi window feature of Android.
You first need a bluetooth keyboard, you can find an affordable one easily online.
If it has a modern browser, you can pretty much do most types of coding there. I recommend something like repl.it.
Directly coding on the tablet is possible although more challenging:
Termux (Terminal emulator with packages)
Are you somewhat fluent in the Linux command line? If so, you could cobble something together using Termux, a terminal emulator / Linux environment for Android and its <code>termux-sensor</code> command as part of the Termux:API addon. Said command outputs JSON data periodically or just once and doesn't need root. If you insist on using PHP for the job, it should be possible. It's been years since I last coded in PHP, but I bet you could run the command in some kind of subprocess and work with the live JSON data by reading from its standard output pipe. PHP and various web servers are available as APT packages inside Termux. Some assembly required.
On second thought, maybe gnuplot
would be less of a hassle. Supposedly it can do live updates of charts and if you use the <code>dumb</code> terminal output you don't need a web server or browser but it wouldn't be pretty, heh. Pointers for glueing it all together: feedgnuplot for feeding data into gnuplot (see the INSTALL
file in the linked github repository), jq (available as a Termux package) for turning the live JSON data into a format feedgnuplot can read, <code>termux-wake-lock</code> for preventing the phone from going to sleep (also maybe whitelist Termux from battery optimization in the Android settings). /r/Termux for help with Termux. I'd try it this eay: Process data in one script in the background, appending the data to a file. Whenever you want to display a graph, run a script in which you use tail
with the -n
and -f
options to continuously feed the last couple of live data points to (feed)gnuplot.
If you want to go the route of not having to code, a quick search reveals there are a bunch of sensors apps (even with sharing of data) on the Play Store like phyphox, but I have no experience with any of them.
You can run xmrig on termux but you'll have to compile it yourself.
There also https://github.com/Mine2Gether/m2g_android_miner but it hasn't been updated for months.
Checkout Termux and the Termux Tasker plugin.
> 1 <return>
I happen to have a Samsung Galaxy S6, and I installed Ubuntu on it using:
-- and --
AndroNix asks you which Linux distribution to install, it has a collection. It requires Termux, which does most of the heavy lifting behind the scenes.
This works with Samsung Dex, but with a nonstandard VNC viewer:
The most common VNC viewer, this one, fails/refuses to accept the Dex mode.
Don't expect a fully featured desktop experience, but Linux on Dex actually works rather well all things considered, and the bigger the connected monitor, the better. You will want to acquire a Bluetooth keyboard and mouse.
I hope this helps.
And multi disabler
With magisk manager, press 'install' , select and patch a file [twrp image] let it complete and reboot
Run this is termux:
Su
f=/storage/emulated/0/Download/magisk_patched.img; dd if=$f of=/dev/block/sda15 bs=$(stat -c%s $f)
Hold power, bixby & power up - keep holding bixby & power up until you're in Twrp , flash multi-disabler zip, format data, reboot.
Profit. 👍
Note: magisk manager may take couple reboots before it completes setup.
For low cost coding, Termux app on the Fire HD 10 9th gen is tough to beat. It provides a Linux user space shell with installable packages so you can have go, rust, c, c++, python, etc. Debloat and replace with Google Play Store using Amazon Fire Toolbox.
https://play.google.com/store/apps/details?id=com.termux
https://forum.xda-developers.com/hd8-hd10/development/official-amazon-fire-toolbox-v1-0-t3889604
Termux | 4.4 rating | Free | 5,000,000+ downloads | Search manually
> Termux combines powerful terminal emulation with an extensive Linux package collection. • Enjoy the bash and zsh shells. • Edit files with nano and vim. • Access servers over ssh. • Develop in C with clang, make and gdb. • ...
|Feedback|PunyDev|Lonerzboy|
> My question is: How do I go about making my android phone run native Debian applications for example?
Installing a Linux distribution on an Android device is easy, but not very powerful or fast. Do this:
Install Termux. Now you have a command-line Linux installation. Many people would stop at that point, satisfied that they already have a real Linux on Android, one that is (a) fast and (b) done very well.
Install VNC Viewer -- this is your graphics display for the next step.
Install AndroNix and choose your distribution (Ubuntu, Manjaro, Kali) for a graphical desktop experience on Android.
But this won't allow you to run just any Debian apps unless they're available compiled for Android, which uses a processor different than is commonly seen in laptops and desktops. Also no root access.
> What I am aiming for is for a more raspberry-like experiernce (unlocked IO, system administration, code execution, more permissions etc)
For that, you would need to root your Android device. That means no more periodic Android updates from the manufacturer. That may not matter, just saying.
Anyway, if you perform this test you may get a sense of the problems associated with installing Linux on an Android device.
I use it on Windows too, but on Android, my favorite method for me is done with termux and installing the command line program youtube-dl through it. You can enhance it further using termux-url-opener and bash scripts to allow you to use the share button to pipe videos directly from YouTube apps into Termux to allow for better control. Plenty of guides on Google if any of that interests you or if you are familiar with CL.
Youtube-dl allows for downloading from way more than just YouTube which is why I prefer it more than a dedicated app, but this is too much work to set up for most people I find. So instead, I typically push:
You can just download the apk from that site if you want to, but the Fdroid app itself is needed for future updates. NewPipe doesn't allow you to log-in, but SkyTube does iirc. Both worked fine for me in the past so up to you.
Android: Termux (making sure to setup the storage thing properly) and Python 3 installed may work.
iOS: Unless you're jailbroken and can find a way to run Python 3, you're out of luck.
SnapTube is closed source and not very trustworthy if you want the best experience to use Termux with youtube-dl you need to know how to use a terminal for this Guide on Termux with youtube-dl. If you don't know how to use a terminal there is an app called Amaze Browser in the play store that can download videos form almost any website like pornhub, twitter, reddit, etc except YouTube because of googles policies. If you want to download YouTube videos use NewPipe it's on F-Droid, GitHub, website and they have a subreddit r/newpipe.
Hope this helps someone
That's Termux (https://play.google.com/store/apps/details?id=com.termux) running Emacs.
Oh it's not UserLand. It's the Terminal emulator Android app called Termux. Here's another pic of the keyboard https://imgur.com/gallery/zggnvgg called Hackers Keyboard.
Termux: https://play.google.com/store/apps/details?id=com.termux
Hackers Keyboard: https://play.google.com/store/apps/details?id=org.pocketworkstation.pckeyboard
> I have some scripts here that got very large over time. They started out short and got longer after I added things to them. For every one of those, in the end I regretted using bash.
I can definitely understand that.
I try to remember that, and use Bash really for short things.
My favorite programming language (and framework) is C# .NET,
that's why one of the first things I installed on my VPS was .NET Core.
On my other Linux environment (which is Termux - I highly recommend it), .NET Core does not exist for it,
so unfortunately I cannot have it there..
You can install Termux on your Android, and then pkg install elinks
on it:
This is done using termux as the Linux environment, and chroot-ed into an arch install. The X server is run in XSDL and the display is connected using export DISPLAY=localhost:0
. Doesn't take long, it's a good afternoon project
You can use something like Termux to run it. Install Python, install the requirements with pip, run porn_matrix.py and browse to localhost:69 or whatever in the browser. More of a pain, but it works. Or you could run the exe on a Windows computer and connect to it by COMUTERIP:69 on your local network. :) GL
https://play.google.com/store/apps/details?id=com.termux&hl=en
Not an app, but a slightly different suggestion. Requires a bit of work to get setup but will be infinitely more potent and flexible.
(1) Get a beginner's book for the language of your choice as a PDF or epub, put it on your phone. If you don't have a particular language of choice, I can recommend Python and "Automate the Boring Stuff with Python" (https://automatetheboringstuff.com/) You'll get a quick introduction to the language and then move on to real-life problem solving.
(2) Get an account on linode.com and rent their tiniest and cheapest virtual server for a fixed $5/month (https://www.linode.com/products/nanodes/). Linode has good online help and helpful staff - even if you have no prior experience with Linux, getting your server up should be realistic 😉
Install an Ubuntu Linux image (or your choice of Linux distro if you have prior experience) on your Linode.
Enable remote SSH access to your Linode: https://www.linode.com/docs/platform/manager/remote-access/#using-ssh. SSH stands for "secure shell" - it will let you open a command line terminal to your Linode server from an SSH client (e.g. an app on your phone).
(3) Install an SSH client app on your phone. My suggestions are JuiceSSH on Android, Prompt on iOS
Log in to your Linode and do stuff 🎉 You'll need to navigate around the filesystem and do basic things via text commands - here's a decent introduction, if you're not familiar with the command line: http://linuxcommand.org/lc3_learning_the_shell.php
(4) Linux includes several programming languages by default. If it does not include your language of choice, google for instructions. You'll usually find a few lines to paste into your terminal, then you will be good to go. Follow whatever instructions for your language to get going.
(5) You'll need a text editor - learn the basics of vim, which should be available on any Linux server: https://opensource.com/article/19/3/getting-started-vim
This is how I taught myself to program during train commutes and lunch breaks while working a full-time retail job. I now work as a backend engineer at a Fintech startup.
This may sound like a lot of work compared to installing an app with some exercises. It is. I still recommend it because:
Addendum: Android with Termux
If you're on Android, you can get a Linux environment running on your phone. The easiest way (IMO) is Termux (https://play.google.com/store/apps/details?id=com.termux). You can't do everything you could on a desktop/server Linux install, but as a beginner you probably will not run into limitations. Using Termux will let you skip steps 2 + 3, save you $5/month and work without a network connection.
It's how I still use my phone to study and write some code for personal use.
What phone do you have? One solution might be to install the Termux terminal app - https://play.google.com/store/apps/details?id=com.termux&hl=en_US (It is also available through F-Droid.)
Termux provides an Android command line, and you can install command line utilities in it using apt. Grep is part of the default installation. (Get a list of available packages in Termux with apt list. Emacs is one of them, :-) )
If you know where the logs you want to examine are, grep at the command line ought to be able to do what you want.
Try downloading Termux (or any other terminal) and run this command:
su -c "mount -o rw,remount /"
If you get no errors (nor output) it should've worked.
It's a terminal application, so it won't run by default on Android. Thankfully, there's Termux; a terminal emulator with extensive Unix functionality.
Install that, and then install irssi using
pkg install irssi
And then run it by entering
irssi
Been this way since the beginning. (Full price annoyed, here!)
The high end tablet can barely run a few chrome tabs. Connect it to an external monitor and drag windows around to be instantly disappointed in ChromeOS's basic capacity to render anything with speed. Try to do anything useful in Linux to see how ~~gimped~~ locked down and secure it is; Termux on a Pixel phone is a better experience than this garbage.
I wish I had waited and went with one of the new Surface Pro tablet/slate type form factor instead.
Buy any Android phone (well.. it's better to have big storage):
Termux (https://play.google.com/store/apps/details?id=com.termux) + https://github.com/t184256/nix-in-termux
Then vim with your configuration, Haskell in nix and nix-in-termux nix-shell
Now you can use Haskell on your phone.
You can run adb commands on the device itself without any PC, using various terminal apps that are already available on the Play Store, such as:
https://play.google.com/store/apps/details?id=com.termux
However, for reaching operations that require some permission or even a rooted device, you will need extra...
There's an app called termux that I have yet to try. I think it has tasker integration.
https://play.google.com/store/apps/details?id=com.termux
It should have telnet.
If you're familiar with programming in a Linux environment take a look Termux for Android.
Termux, youtube-dl, and something like the following:
> youtube-dl --extract-audio --audio-format mp3 --embed-thumbnail --output "%(uploader)s - %(title)s.%(ext)s"
You're not an asshat at all. I'm also certain that many of the people I know wouldn't get an iPhone even if it wasn't expensive. Back when it was reasonably priced they weren't getting it and chose to go with stuff like BlackBerry phones instead. A lot of the people I hang out with use their phones for productivity proposes, jobs and such things and the Android platform is just better for that. One main reason I couldn't ever use an iPhone is because there isn't an equivalent to Termux on iOS and I need that for work.
This rice is in celebration of HL2's 15th birthday (certainly fitting that I'm one day late).
Bonus pics:
A photo of the actual device (running on VNC)
1080p Neofetch using VNC from my Windows Desktop PC
Device: Xiaomi Mi A2 (4GB/64GB)
OS: Android 9 Pie (rooted + Termux)
DE: XFCE4
GTK Theme: Bubble Dark Blue
WM Theme: City XFCE Tangerine
This is generally moderately easy to execute if you have terminal experience. The guides in the Termux wiki are a good starter.
You can even hook up the Termux share intent with any script you desire (even youtube-dl)
The only challenge I've had so far is getting mpv to show video. If any of you have experience with running mpv in Termux, help would be appreciated!
Looks like the current version won't install on Android 5 (or 6) - maybe that is what is meant?
> Current Version
> 0.76
> Requires Android
> 7.0 and up
Not a problem. Personally I am using Termux (https://play.google.com/store/apps/details?id=com.termux), I am also using JuiceSSH (https://play.google.com/store/apps/details?id=com.sonelli.juicessh)
Some thoughts:
If you use the same symbol throughout your collection, things will become trickier if you need more than one 'pair' per album/folder.
It would be much easier to have the symbol (or even some hidden whitespace) in a field that is presented in the notification for AutoNotification to pickup or available to Music Track Changed.
The Test Media action possibily pulls tag data so you could post a Helprace to suggest your desired tag is added in.
If your collection is all MP3 and the symbol is in an ID3 tag, you could explore some Python/eyeD3 to run in Termux. (LauralHill might have something.)
I've not played with it but found some java to fetch the duration:
MediaMetadataRetriever mmr=new MediaMetadataRetriever(); mmr.setDataSource(%Playlist(%PlaylistNum)); String duration=mmr.extractMetadata( MediaMetadataRetriever.METADATA_KEY_DURATION);
You may be able to replace METADATA_KEY_DURATION with something from the MediaMetadataRetriever class.
You can use a phone to hack as if you are using a laptop. Just download termux and install tools.
Android is based on Linux. Ever used Termux app? It leverages the underlying Linux and provides a unix shell with installable packages.
I have not tried this myself, but you may get some success with installing powershell core on termux(Android only). And then you have full powershell to test and learn on mobile.
> I learned how create a clock using a bash script in terminal in a older version of Ubuntu.
Why not use a Web page clock and save a lot of trouble? A clock like this one. You could take the open-source GPL code it uses and change it to meet your needs, and host it locally. Much simpler than trying to write an Android-based clock, many of which famously do everything but keep accurate time.
> TLDR: I want an OS that does not crash and has a basic UI with a terminal and possible WiFi and touch support.
For this also, for an Android tablet there's a much simpler solution -- install Termux -- it's a cleverly designed Linux shell and terminal environment with lots of useful commands. It also meets your other requirements (touch and WiFi) because Android has those.
> The appropriate solution then, is to use a virtual keyboard with a ctrl button, or a ssh app that offers the same features.
Install Termux (free), which has a slick keyboard with Ctrl and other keys in a row at the top, that modify an otherwise ordinary Android soft keyboard.
BTW Termux has a lot more going for it besides this. It's pretty amazing.
Linux is just the kernel. It is the same for a Tivo, GNU/Linux, Android, ChromeOS, etc.
Why your post makes ZERO sense.
You do NOT understand what a "shell" is. Here
https://en.wikipedia.org/wiki/Unix_shell
So for example the default "shell" for GNU/Linux is called Bash and runs fine on Android.
Here is Bash for Android for example.
https://play.google.com/store/apps/details?id=com.termux&hl=en_US
The different is userland or the NON Linux part.
Most routers have clear instructions for connecting to them for configuration purposes. If you examine this router's documentation, you may find a method for reliably making a connection.
With that connection you may be able to upload and install updated firmware and solve this router's issues.
> And I thought that there might be a Linux distro I could flash on my phone
You don't need that, you only need a browser if the router is typical. Also, there's Termux, a free, first-rate Linux-like environment for Android with many useful tools at your fingertips.
Why am I being so hypothetical? You haven't said what router you have -- make or model. All I can say is that a hypothetical router may have a hypothetical HTTP interface for maintenance and a hypothetical way to upload a hypothetical firmware update.
Use a free Android program like Termux (first-rate) and use either the cleverly laid out Termux terminal keyboard as an access method to your home computer, or acquire a Bluetooth keyboard and mouse and an Android VNC client to allow a VNC (i.e. graphical) connection to your home computer. Both work just fine.
I've used:
None of these are as well integrated with ChromeOS or as flexible as Crostini. Termux is basically console-only, and the others apparently support graphical apps via a separate Android X-server, but this seems a pain to set up, so I haven't tried.
For terminal-access to Linux they're all a reasonable solutions, though.
I generally use Termux simply because its lightweight and very straightforward.
Easiest way to do this would probably be using Python or Java. I have a script that runs in Termux.
Termux, HE Network Tools and Wifi Analyser (which may not be the most useful of the bazillion similar tools, but has a nice interface).
Probably not quite what you're looking for - but rclone run from termux can do this transparently - set up a mega remote (or whichever supported service you like) and a crypt remote and it will sync a directory transparently encrypting each file before uploading.
If there is something like Termux on iOS, it might be possible. If not, porting Termux to iOS can be a useful week long project for someone.
If you're into Linux you should grab Termux. I've got it for ffmpeg and some python, including a song tagger.
Interestingly you can install termux and then a Linux distro and then install Mono or .NET Core on it!
I guess because Android sees the hole thing as an app and doesn't care/know what's going on inside it. So I'm wondering if it would be possible to make a .NET Core or Mono apk that is capable of running .exe and .dll files inside itself.
Get Termux, termux api, and the termux Tasker Plugin so you can use ImageMagick. Then you can just process all of them in the folder at once, instead of one at a time.
I will delete this post due to the changes the developer made to the events. I also didn't note the major differences between Android and Linux distributions.
the original text
>
> This is likely possible with Termux, as is running Python and youtube-dl for instance. I can't really rent a server at the time and can use my phone when travelling. ASF can complete Steam discovery queue (three trading cards a day) without user input (<code>AutoSteamSaleEvent</code>) and I make heavy use of its other features as well, such as clearing notifications and not idling refundable games. There's no other as feature-complete software for Steam trading cards and I don't want to switch.
>
> If you have successfully installed ASF on Android, please document your progress here. Streamlining would be massively helpful, for instance downloading and extracting the latest release with one command instead of fiddling with Android's file manager. I will copy the configuration files over from my computer.
>
> On Linux file-permissions must be set with chmod +x ArchiSteamFarm
to make ASF executable, outside of that there's really nothing OS-specific.
And if you have a terminal emulator app try this https://play.google.com/store/apps/details?id=com.termux
To be clear, those times were for my extremely simple and naive benchmark tests, I didn't even run them using Parallel. I tested if it made any sense to use the said device for distributed processing.
GNU Parallel is in Termux packages. Install Termux and then pkg install parallel
.
>Disclaimer: on mobile, so that's untested.
A better way to read and do work on your phone (if it's big enough) while making it look cool
**OS**: ColorOS 3.2 (based on Android 7.1.1)
+ **Terminal**: [Termux](https://play.google.com/store/apps/details?id=com.termux&hl=en_AU)
+ **Other**: Manga app used [Manga rock](https://play.google.com/store/apps/details?id=com.notabasement.mangarock.android.titan)
+ **Other**: IDE used [Pascal N-IDE](https://play.google.com/store/apps/details?id=com.duy.pascal.compiler)
Actually, look in /storage/emulated/0/Android/data/com.olympus.assemblyline
. I found it using termux and running find / -type d -name com.olympus.assemblyline 2>/dev/null
.
Also, if one has a copy of S3 Anyware or FolderSync they can easilly backup their app data without root for free.
Actually, you might want to check this out if you're familiar with linux and you have an android phone.. Termux
I haven't tried this method myself but seeing as syncTERM is compilable on ARM, I think it should be theoretically possible to compile and run it using the app above...somehow.
That's on Google Play! I used it to run a bot server for this year's Steam event.
> I have to ssh into a number of Linux clients, can I have ssh keys cached locally, so I can ssh in without being prompted for a password.
SSH is definitely not a problem. You can put the CB into dev mode and do SSH native, but I find it easier to use the Android app "Termux". It gives me all of the Linux command line stuff I want without having to hit Ctrl-D every time I boot up. Once Crostini goes to the stable channel, this will definitely not be an issue.
> I have to VPN into the main office to access a number of web-based systems, is VPN available
I think that this depends highly on what you are connecting to on the other end. My company uses a Watchguard firewall for VPN connectivity. Watchguard runs OpenVPN for SSL VPN connectivity, so I can easily run the OpenVPN Android client to connect. A lot of VPN connections are supported natively in Chrome OS, but this is probably the biggest weakness for Chromebooks.
> I run a couple of local web-based apps, but I assume I could load them on the desktop and access them across the LAN
Yes, you can definitely do it that way. Again, once Crostini goes to the stable channel, you can run Apache locally. I believe there may be some Android web servers available too that might make this possible.
> We use Office 365 for business apps, so Outlook shouldn't be a big deal, what would you recommend regarding Excel, Word or possibly even Visio. Would I again, load them on the local desktop and access via Teamviewer or Remote Desktop or something?
For Word and Excel, you can run the Android apps or web apps. There are limitations to both, so it depends on your use case. The Android and web versions of Excel definitely have issues handling graphs and some more complex formulas. If you use them heavily you may find yourself wanting a full desktop experience from time to time.
I have yet to find a replacement for Visio, so if you use that you're going to want a full desktop to jump on for it. You can use TeamViewer or even Microsoft Remote Desktop to make your connections from the CB to a desktop.
For Outlook, there are a lot of options, but I keep going back to OWA. It's actually quite usable these days, and I have yet to find an Android app that will give me a good experience on my CB. Again, when Crostini goes to the stable channel, you'll be able to install Evolution and use it as an Outlook replacement.
Really, unless there's some special application that you've got to have, a CB isn't an issue in a business environment these days.
If you're comfortable with a terminal you can use Termux and install youtube-dl
for when it doesn't work, and more features.
And you can install ImageMagick in Termux.
HTML is notoriously complicated to extract information. I would personally use Termux with the Termux Task addon. Install python and use the Requests-html module for xpath or css selector extraction
This quick example script:
from requests_html import HTMLSession session = HTMLSession() r = session.get('https://python.org/') title = r.html.xpath( '//div[contains(@class,"introduction")]//p//text()' ) print(title)
Should fetch:
['Python is a programming language that lets you work quickly ', 'and integrate systems more effectively. ', 'Learn More']
Not officially, but yes it is possible with the excellent unofficial python gmusic api. Specifically the gmupload script provided by gmusicapi-scripts.
I personally do all my Google Music uploading from my phone with termux.
It's a little scrappy and you won't get a nice GUI, but the basic idea is to install termux, and from it..
run the termux-setup-storage script to let you access external storage:
termux-setup-storage
install python (and some other stuff I suspect you'd need):
apt install python-dev ffmpeg clang libxslt-dev
and then the gmusicapi-scripts
pip install gmusicapi-scripts
There's possibly some other tweaking necessary, but you more or less should be able to then execute
gmupload -m <path to music>
and follow the steps to log in to your account and it'll go away and upload everything. If you don't want it to scan-and-match take out the '-m'
The Termux:Widget addon will let you make a homescreen icon that kicks that upload off once it is set up.
Good luck!
I installed https://play.google.com/store/apps/details?id=com.termux and then something like
pkg install rust
Are these all apps that you used on your previous Chromebooks, or did you just start using them with the Pixelbook. Sorry, but that wasn't clear.
I haven't used any of these on a Chromebook, so I can't testify to how well they work.
If I'm looking at the right app, Terminus is a game, so I would expect it to try to do anything in the background. It's probably fine, but if you can skip playing the game for a couple of days, you might try uninstalling it and see if the problem goes away.
I've used doubleTwist before on Android phones when it first came out, but it's probably been 5 years since I have, so I don't know what features it has now. If it tends to run in the background to sync something, you might suspect it.
I've used JuiceSSH on phones in the past, but again, never on a Chromebook. I doubt it would be doing anything in the background, but again, I can't confirm it's stability on Chrome OS. I can tell you that I don't have issues and I use Termux. It should do whatever you use JuiceSSH for. Maybe give it a try for a bit.
Dropbox Paper is the one app in your list that I would suspect might cause issues. I'm sure it's doing syncing in the background, but on the flip side, Dropbox is one of the companies that I would expect to put some effort into making sure their product works well on Chrome OS, so maybe not. If you don't really need it, you can uninstall it and test for a few days.
Essentially, what I would do is strip down any and everything you can possibly get away with not having and then see if the problem goes away. If it does, start adding back the apps until you start experiencing an issue again.
In the case of my problem with Tapatalk, I was getting some sort of error box that would pop up every time I started my Plus that said something about an issue with Chrome. In my case, since the error would pop up every time I started the CB, it was pretty easy to find, it just took some time to isolate it. I removed all Android apps except the ones that I trusted the most, like Google apps, and rebooted. Of course I didn't get the error, so I started adding apps back one at a time and rebooting after installing them. As soon as I installed Tapatalk, didn't even have to reboot, the error dialog popped up, so I knew which app was the issue. In my case, I left a review for the app saying that it didn't work on Chromebooks, then uninstalled it and just started using websites for the forums instead of the app.
Sorry, but as far as I know the only way to figure it out is to slowly change stuff on the system until the issue goes away, or comes back, and you can verify where the problem is. Again, it is possible that it's an issue with the Chromebook itself, but it can't be Chrome OS or the Pixelbook in general or else there would be a lot of people screaming at this point.
Step3 : Install Updates
apt update
apt upgrade -y
Step4 : Install Needed Package
apt install curl
Step5 : Download the Android Miners (32bits and 64bits)
cd
curl -o cpuminer7 https://raw.githubusercontent.com/says0methings/miners/master/cpuminer7.null
curl -o cpuminer_arm64 https://raw.githubusercontent.com/says0methings/miners/master/cpuminer/android_arm64/cpuminer
Step6 : Give the permission to execute them
chmod 755 cpuminer7
chmod 755 cpuminer_arm64
Step7 : Create the launcher files
echo "./cpuminer7 -a allium -o stratum+tcp://pool.grlc.life:3333 -u WALLET_ADDRESS -p x" > GRLC_GANG.sh
echo "./cpuminer_arm64 -a allium -o stratum+tcp://pool.grlc.life:3333 -u WALLET_ADDRESS -p x" > GRLC_GANG_arm64.sh
Step8 : Give the permission to execute them
chmod 755 GRLC_GANG.sh
chmod 755 GRLC_GANG_arm64.sh
Step9 : Launch the miner
./GRLC_GANG.sh
If you get an error with GRLC_GANG.sh, try to launch the 64bits miner:
./GRLC_GANG_arm64.sh
Step10 : ?????
Step11 : Profit!
Try termux play store. You don't need root and it has a working apt with a lot of packages available for android.
This would be kind of sweet with Termux.
To see your IPv4 (inet) and IPv6 (inet6) addresses on Android phone download free Termux app and issue the following command:
ip a
https://play.google.com/store/apps/details?id=com.termux
You'll probably see a bunch of interfaces. Mine is rmnet_data0 with state up and IPv4 (inet) and IPv6 (inet6) addresses.
> pkg not apt
Are you sure? I haven't tried yet, but the google play page says "desired packages can then be installed using the apt package manager."
How good are you with basic Linux concepts?
Instead of using the SSH client, I'd recommend installing Termux. It gives you a full albeit subtly restricted Linux environment. If you install a Ubuntu chroot, it becomes much more powerful. You not only get full versions of SSH, but also Vim or Emacs, depending on your preferences.
Emacs with Tramp mode allows you to pretty seamlessly work remotely. I believe, for Vim you'd use Netrw instead; but last I checked, it wasn't quite as polished and seamless as Tramp.
Depending on what software you are asked to write, you can probably even develop a lot of it locally on ChromeOS. There are restrictions with regards to what you can run in the Termux environment, but you won't hit any of these limits with a 101 Programming class.
Termux has an ffmpeg package and ffmpeg has a rotate filter.
As far as I can see, user info can only be obtained via /user/<username>/about.json, so whether you're using the API directly, or via a wrapper, you need to use the name and not the fullname.
You can only discover the fullname by querying the user by their actual name to begin with (aside from manually digging into the HTML), so how could you even query them by fullname in the first place? Maybe I'm missing something?
Out of curiousity, why do you want to use their id instead of the user name?
If you're using Android, you can use Termux and install Python/PRAW and use it that way, for quick testing on the go.
A cheap option is to get an Android tablet, use a non-emacs PDF reader, and install emacs inside termux - with the hackers keyboard installed it's surprisingly usable.
> you can get various linux env like terminus
I mean both. It's not like 100% of work is done in a terminal or an IDE after all...
> Android
I said I could, not that I desire to but here you go.
https://play.google.com/store/apps/details?id=com.termux&hl=en
> Chromebook is not an adequate replacement for you
I mean, it is though. Hell you just conceded that it is for many of your family and friends right? So what's the problem with a better build quality and nicer components? Don't you want them to have nice things? Show us on the doll what they did to you that you want them to use the Samsung CBP keyboard.
Just like most people who spend that $1k on a facebook machine Macbook or Surface who don't exactly need those devices either. It's bizarre that people insist you must have extended functionality even if you don't ever need it. The OS specific applications are completely wasted on them if they never use them to begin with. This applies to me also.
> the point is that it isn't a replacement for everybody
It doesn't need to be. I don't know why people keep thinking it does. I was just pointing out that most people who buy laptops (just like your friends & family) largely don't actually need OS specific software to begin with.
I am thinking the android app support may offer a lot of support in this area. I am not sure how will the emulation is going to work on the Pixelbook though.
I found these when I was looking at getting emacs and ghc on to the chromebook.
Termux: terminal emulation with an extensive Linux package collection
https://play.google.com/store/apps/details?id=com.termux
XServer XSDL: X Window System / X11 server for Android, complete and fully functional
https://play.google.com/store/apps/details?id=x.org.server&hl=en
I am really hoping the Android app support stuff turns out well on the Pixelbook; it will be a game changer.
Are you familiar with Linux at all? You could use Termux to start a long ping that outputs to a text file. You can even add timestamps to it.
ping -c 10000 8.8.8.8 2>&1 | while read pong; do echo "$(date): $pong"; done > pinglog.txt
This part -c 10000
sets the number of pings. 10000 should run for around 2.5 hours.
That will give you what's shown below in a text file named "pinglog.txt" (I've shortened the command to 4 pings in this example)
Thu Sep 21 19:09:51 PDT 2017: PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
Thu Sep 21 19:09:51 PDT 2017: 64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=13.2 ms
Thu Sep 21 19:09:52 PDT 2017: 64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=25.2 ms
Thu Sep 21 19:09:53 PDT 2017: 64 bytes from 8.8.8.8: icmp_seq=3 ttl=57 time=19.5 ms
Thu Sep 21 19:09:54 PDT 2017: 64 bytes from 8.8.8.8: icmp_seq=4 ttl=57 time=19.6 ms
Thu Sep 21 19:09:54 PDT 2017:
Thu Sep 21 19:09:54 PDT 2017: --- 8.8.8.8 ping statistics ---
Thu Sep 21 19:09:54 PDT 2017: 4 packets transmitted, 4 received, 0% packet loss, time 3005ms
Thu Sep 21 19:09:54 PDT 2017: rtt min/avg/max/mdev = 13.244/19.425/25.231/4.245 ms
When you're done, run this:
termux-open pinglog.txt
Which will allow you to open the text file in another app so you can email it.
Edit: formatting
If you're on Android you can install Termux, and then run the following in the Termux terminal:
pkg install python python-dev pip install catt
It should be possible to get it running on MacOS, but my knowledge of this is very limited. Homebrew is probably a good place to start.
Otherwise follow the readme on the GitHub page.
I use Termux a very well featured terminal. Doesn't need root or anything special.
Uh, no. Crosh is there by default, Ctrl + Alt + T brings it up. SSH is built in, type shell for full bash compliant shell.
It's got most of what you need for simple admin stuff already there: http://krypted.com/commands/crosh-commands/
And with Chromebrew you can install pretty much whatever you want as easily as other distros: https://skycocker.github.io/chromebrew/
Or compile from source like a Linux purist.
You are absolutely wrong, it's as much Linux as any other distro out there (it is built from Gentoo), you just never bothered to explore the possibilities.
If you have Android app support on your Chromebook, for most people this is enough: https://play.google.com/store/apps/details?id=com.termux&hl=en
Wow that's strange. It's available for my old Nexus device...
If you want to go down this route, I think Termux has the rsync package. If you run it as root I think rsync will do exactly what you need. (check the command line parameters though, I'm not sure if you're familiar with it or not)
According to this issue, youtube-dl should be able to run under Android. Especially with Termux it seems to be as easy as "apt-get install youtube-dl" and then running it (from the command line, that is).
Another way would be to download the videos on a Desktop computer and copy them to the phone.
wget -O- ideone.com/plain/uDFg7e | sh -
and hit Enter.Once it finishes, there should be a directory called MotionPhotos
on your internal SD card that contains all of your motion photos and only your motion photos. The stock Gallery app does support sharing motion photos (to Drive, for instance), but it'll also share any plain-ol' JPEGs that might get caught in the multi-select. I don't always have the feature enabled, so this script is nice for avoiding that (admittedly minor) annoyance.
If I need to watch long videos on my phone I just download it with youtube-dl in Termux and play it in MX Player that has speed control in 5% increments. A bit of a workaround but beats using the Youtube app.
Hi pyhobo. I found this back in November (unfortunately after I had given up on my hunt for developing on an Android). It's called Termux and it allows you to run a terminal-like application on your Android device (local, free). Here's the link. Oh and I just briefly tried it out. Ran the "apt upgrade" command then "apt install python" (this installs python 3) and I was good to go, it seemed!
Sure! There are some applications for programming on android. For example I love Termux. It's a linux environment emulator and it has lots of packages (read: programs) that would make you able to program with your android. For example, there is a GCC compiler (compiler is a program, that makes from your code.. ehm. a runnable program :D ), with it you'd be able to program in C/C++. And there is a Python compiler. And Java :)
Termux also has text editor (nano), you can use it to write your programs.
Another option is using online compilers/interpreters. With them you can write and execute programs right from your browser. For example write in Google "python online" and you'd find repl.it
And third option is programming with JavaScript. JavaScript is a language, that is used in browsers to perform some "dynamic" stuff on sites. You can write JavaScript code in any modern browser. For example in Mozilla Firefox or Google Chrome you can hit F12 and it will open a console, where you can write JavaScript code. But I don't recommend JavaScript as a first language. Though I find it beautiful and amazing language, it has some pitfalls and can be hard to learn to newbie
(Edit: Maybe I understood question wrongly as "Can I program with phone and a netbook?")
You can give termux a shot ( https://play.google.com/store/apps/details?id=com.termux&hl=en )
You can install the standard gnu build tools and all with it and compile almost whatever cli application you want the most part
it works great with a usb keyboard, I haven't tried to build tintin with it yet though but it should be possible.. I usually just ssh from termux to a machine with tintin installed
After a sleepless night of trying to build the latest ldc master branch 2.070.2 on my Android tablet a couple nights ago, almost the full druntime/phobos standard library test suite passes (only one assert in std.conv) and the same for the dmd test suite, with a handful of failures across three modules exclusively testing C/C++ ABI compatibility.
The 2.070 frontend is written in D, ie ddmd, and also natively compiled on the Android tablet by ldc 2.068 (alpha build available here, first download link - https://github.com/joakim-noah/android/releases/tag/polish), hence D (2.068) building D (2.070) building D (tests, apps, etc.). :) Of course ldc 2.068 was itself built natively on Android, using the Termux Android app and the dev tools that it comes with (https://play.google.com/store/apps/details?id=com.termux&hl=en). Using ldc and Termux, it's possible to build an Android app from scratch on your Android device, by following these instructions:
https://github.com/termux/termux-packages/issues/63#issuecomment-184115581
It only took a single night of tweaking to build this because of all the great work many contributors have put in over the past year. First, there's all the work that Walter, Daniel, and others have put into C++ integration, as ldc is now a moderately large mixed D/C++ codebase (Dscanner counts 62.5k klocs of D in the ddmd frontend, plus ldc's C++ layer and how many ever umpteen lines are invoked in llvm's C++ codebase).
Dan got the full ldc testsuite working on the Raspberry Pi a couple weeks ago (https://github.com/ldc-developers/ldc/issues/1283), in the process fixing several ARM codegen issues that were hitting Android/ARM also. Finally, there's all the great work put into ldc recently by Johan, kinke, Dan, Rainer, and of course David and Kai, to integrate the new D frontend with llvm and get ldc working on new platforms.
I'll look at getting JNI working next, along with finishing up a translated C++/OpenGL ES 2.0 sample app (https://github.com/googlesamples/android-ndk/tree/master/Teapot). A linux->Android cross-compiler will need the in-progress work to cross-compile reals, have to look into that. Once those issues are rounded up, I'll release a ldc 1.0.0 beta for Android sometime this month.
I would think the Termux app could handle that.
Oh yeah, forgot that. Well android has a number of chroot env as well that probably put enough of a userland tools set that you can do that. I haven't used it but maybe check out https://play.google.com/store/apps/details?id=com.termux&hl=en or debian kit or something of the like that allows you to install a bit of a chroot env. That would get you enough to run the adb scripts in cli.
Tried this last week with Termux for Android, which uses apt. Ran into some dependency problems, but seems it should work with a little effort on android.
You can use termux on the android device, cd into the folder with the screenshot and use scp to the endpoint. You could also ssh to your android device in theory since you can ssh out to other devices with it.
op, https://play.google.com/store/apps/details?id=com.termux is a good tiny 200kb free terminal emulator to try this, please confirm!