pasting into code format

heretical_1

Active Member
Joined
Jan 31, 2020
Messages
167
Reaction score
73
Credits
738
Hello, everybody! I have a couple of threads in which I have been asked to post the putput of terminal commands into code format, rather than as screenshots. Although I sincerely would like to comply if that helps people to understand my issue, it still remains beyond me to be able to figure out how to do it.
Everything I post here is done via my phone, not from the computer. Unless there is some way to get a text program that can be transferred as a file from the computer to the phone and then also read by the phone, so that I could use the phone to copy and paste onto the appropriate screen here, all I know how to do is to do it as screenshots.
Any ideas here?
Thanks!
 


you could write your cli command into a file like
Code:
lsblk > /tmp/output.txt
then pipe it to termbin like this:
Code:
cat /tmp/output.txt | nc termbin.com 9999
 
you could write your cli command into a file like
Code:
lsblk > /tmp/output.txt
then pipe it to termbin like this:
Code:
cat /tmp/output.txt | nc termbin.com 9999
My apologies, but I have no clue what that all means or how it would translate as an input to the phone.
 
it generates a very short link with your files content. you can easily type it by hand on another machine, like this: https://termbin.com/ifvy there's probably someone here that can you give a better advice. As we say here in germany: all roads lead to rome
 
Two ways...

1770438502684.png


Click on the icon at the bottom right. Looks like </>.

Or type code brackets like this...

1770438645601.png


Notice the square brackets, and the forward slash in the second code box.
 
I see the symbols on the phone, and I can obviously type into the box that comes up, but that still doesn't allow me to paste longer responses from the computer into that box.

 
I see the symbols on the phone, and I can obviously type into the box that comes up, but that still doesn't allow me to paste longer responses from the computer into that box.

Admittedly.. it works MUCH better, when you're doing it in the browser on the actually computer, I'm not sure what the limit is,
but I've pasted some pretty long commands. (several hundred lines)
 
Exactly, and that is the whole point of my question, since I can't use the puter browser to connect to the internet, and something copied on either the phone or puter can only be pasted onto that same unit...gotta be a way to change that.
 
Exactly, and that is the whole point of my question, since I can't use the puter browser to connect to the internet, and something copied on either the phone or puter can only be pasted onto that same unit...gotta be a way to change that.
do you have an internet connection on the computer?
 
Some "poor man" work arounds.

1. Take a picture of the code with your camera, upload the picture to the site.

2. Use your phone as an internet hotspot for your PC if possible.

3. If you're running KDE connect, and you have local wi-fi for your phone and PC, install KDE connect
from app store (available for android and apple iPhone).
 
do you have an internet connection on the computer?
not at all. My first posting was because of the bluetooth manager not working, and my phone is my only connection to humanity or the internet. Never did get it working. Then I had another issue arrive, a missing folder that I need to recover. Turns out that my version of peppermint did not have the file recovery program needed to repair or recover that folder. So I downloaded the zorin iso onto the phone, transferred it by cable to the computer, and installed it (and it also won't connect to the bluetooth: apparently the puter does not even have that capability at all without an external dongle). Just waiting for a good sunny day to drive my solar panels so that I can test the zorin to see if it will recover those files before worrying about internet connection via bluetooth a few months down the road.
 
Do you have a wi-fi router at your home? Generally you don't connect to the internet via bluetooth. (sometimes
there is a way to do this, but it's not common).

Some distro's have older drivers, and don't support newer hardware, is you have an older PC, just about
any Linux should see your wi-fi chipset.

Usually you'll have a control panel that looks something like this.

1770440321800.png
 
posting the screenshots is all I am able to do. No wifi or bluetooth ability whatsoever...according to the zorin program, it is not the bluetooth manager which the peppermint told me was the issue, but the puter apparently has no internal way to connect to internet. Will have to get a bluetooth dongle in about 6 months.
Some "poor man" work arounds.

1. Take a picture of the code with your camera, upload the picture to the site.

2. Use your phone as an internet hotspot for your PC if possible.

3. If you're running KDE connect, and you have local wi-fi for your phone and PC, install KDE connect
from app store (available for android and apple iPhone).
 
posting the screenshots is all I am able to do. No wifi or bluetooth ability whatsoever...according to the zorin program, it is not the bluetooth manager which the peppermint told me was the issue, but the puter apparently has no internal way to connect to internet. Will have to get a bluetooth dongle in about 6 months.
you could connect your phone via usb cable and use it as a hotspot.
 
Do you have a wi-fi router at your home? Generally you don't connect to the internet via bluetooth. (sometimes
there is a way to do this, but it's not common).

Some distro's have older drivers, and don't support newer hardware, is you have an older PC, just about
any Linux should see your wi-fi chipset.
no router here, offgrid and fossil fuel free, miles away from people, no cities nearby to go into and use a library, nada. Just me and my phone.
 
So you must have a cell tower somewhere. If your phone can connect to the internet, it almost can certainly be used as a hot-spot. Instructions vary (android vs iphone, etc...) but there's usually a way.
yes, usually. Just not here. No chip in computer for either wifi or bluetooth, at least according to what the zorin os tells me. And that would explain why the old peppermint os wouldn't connect to either, as well. I'm always willing to try other distros in case that is the issue, but first I want to solve the issue with the missing files.
 


Follow Linux.org

Members online


Top