Paul Sutton

Terminal

Tilde – text editor

Donate using Liberapay

Tilde is a nice, curses based text editor. It is useful for if you are at the console or terminal in Linux and want a menu driven editor.

tilde

While other tools are more command driven (nano, emacs, vi, vim and joe to name a few). Tilde is being mentioned for those of you who may find it useful

As you would expect with a modern editor, tilde has support for syntax highlighting.

Tilde Syntax Highlighting

Which is really useful for programming or editing website code for example.

REFERENCES

TAGS

#YearOfTheFediverse,#Linux,#TextEditor,#Editor,#Text, #Tilde,#Programming,#SyntaxHighlighting,#console, #terminal

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Ansi Weather 2

Donate using Liberapay

Further to my previous post on ansi weather

I wrote this, which asks for your location, and displays the weather.

echo "where do you live ?"
read location
ansiweather -l $location

In my previous post I was trying to use sed to clean up the output, this isn't needed as the -a option removes the colour coding from the output

ansiweather -a false -l Plymouth, UK >> weatherinfo.txt

Produces

Weather in Plymouth => -10 °C – Wind => 1.72 m/s NNW – Humidity => 62 % – Pressure => 1028 hPa

Which is far better.

so our new shell script is

1 #send weather info to Mastodon
  2 # current date
  3 date > weatherinfo.txt
  4 # current weather
  5 # use -a false to remove colour from output, set location, output to a file
  6 ansiweather -a false -l Plymouth, UK >> weatherinfo.txt
  7 # output to console too
  8 ansiweather -a false -l Plymouth, UK
  9 #send to Mastodon
 10 toot post < weatherinfo.txt
 11 # done
 12 echo done

So the final output to Mastodon is

Final Output

There are more options in the READ.me file

Thank you to Noisytoot for helping with this.

If you now combine the 2nd script with the one I have at the top of this page you should be able to input your location, then get the local weather.

REFERENCES

TAGS

#YearOfTheFediverse,#ansiweather,#weather,#mastodon,#bash,#console,#terminal #information

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Site Index

Donate using Liberapay

  1. Click on a link.
  2. Scroll to bottom of page.
    • Any posts / pages within this blog will be displayed.

A

#Astronify #Adenine #AminoAcid #Astronomy #AralBalkan #AstroBiology #AstroChemistry #apg #Apt #Aptitude #Africa #Activism #Analytics #Api #Arduino #AMES #arXiv #Academy #Abuse #Afghanistan

B

#Blog #BioChemistry #Biology #bash #better #BigBluButton #BibTeX #Browser #Beamer #Bullseye #Buster #Bookworm

C

#Cytosine #Conditions #Cryptpad #Cosmology #Chemistry #Console #Chat #Conference #Code #Coding #CodeClub #Cornwall #Covid19 #Corona #CoronaVirus #CreativeCommons #Commons #Chrome #Chromium #Charity #Creative #Education #CPD #cpd #CreativeEducation #CTAN

D

#dna #DNA #Disroot #disroot #Decentralised #Decentralized #dcglug #dclug #Debian #Donate #Donation #Debconf #BASH #Devon #Digital #DRM #Diaspora #DiodeZone #Development #Data #Detox #Docker #DeepLearning #Documentation

E

#emacs #Editing #Events #EventManagement #Employment #Email #Education #Exploration, #Ethics #Elements #Exploration #EveryonesInvited

F

#Flockingbird #Framablog #FramaBlog #Fediverse #Federated #Firefox #Fosdem #Freedom #FreeSoftware #Foundation #FSF #FSFE #Friendica #Framework #FreeBSD #FalconsEye #FOSSandCrafts #FutureLearn

G

#GoatCounter #Guanine #Greek #Gimp #Galaxy #GoDot #GNU #GNOME #GUI #Gamma #Ghostreply #GPL #GraphicsMagick #gm #GoAccess #gold #GettingStarted #Git #GitLab #Gitlab #GDPR #Galculator #Games #Engine

H

#Hubble #Hexchat #Hack #Hacking #Hardware #Hosting #htop

I

#information #Inkscape #Image #ImageManipulation #IRC #Index #Invidious

J

#JamesWebb #JoeEditor #Jitsi #Jit.si

K

#kstars #Kanban #Kenya #KDE #KeepingChildrenSafeinEducation, #KCSIE

L

#Linux #LinuxMint #LibreOffice #LiberaPay #LibrePlanet #Lecture #Learning #LibreOfficeWriter #LibreOfficeCalc #LibreOfficeImpres #LibreOfficeDraw #LibreOfficeGettingStarted #LaTeX #LXDE #LGPL #Lynx #Librem #Libre #LibreLounge

M

#Mastodon #Meetings #Management #Mobilizon #Meeting #Matomo #Map #Mapscii #Mercury #mercury #mining #Matrix #Moon #Mars #Manganese #Materials

N

#Nextcloud #Nebula #NetHack #Nano #Nucleobases #network #NGINX #NaCl

O

#OpenUniversity #OpenLearn #OU #Online #Overleaf #OwnCloud #OpenStreetMap #OpenData #Open #Overleaf

P

#Physics #Podcast #Payment #Password #Public #Paypal #Photo #Photograph #Photos #Photographs #Python #Python3 #Programming #PixelFed #PeerTube #PowderToy #Pleroma #Planet #PDF #Package #pinebook #pinephone #Purism #Plausible #ProtoSchool #PeriodicTable #Paper #Privacy

Q

R

#rna #RNA #Rights #RocksAndDiamonds #Recovery #RadioAstronomy #Research #RedBubble

S

#Science #Scratch #Scratch2 #Scratch3 #smallweb #Sitejs #Space #Stars #Stellarium #Stripe #Security #stsci #Seagl #Social #SocialHub #SDTJ #SouthDevonTechJam #Solarus #Synaptic #Schools #Solid #Shynet #Scismic #ScienceDaily #Stickers #Symmetry #Salt #SodiumChloride

T

#terms #Telescope #TheOpenUniversity #Terminal #Talk #Thunderbird #Torbay #TeX #Topic #Thunar #Thymine #tailings #Top #Tilde #TextEditor #Toot #Translation #Trojans #TorbayTrojans #Tuxiversity

U

#Uracil #Umami #UniverseOfLearning

V

#Vaccine #VokoScreen #VLC #Volunteering #Volunteer #VultureNethack #vultureseye #Virgo

W

#Website #Work #wireless #wicd #wayland #weatherinfo #Wormhole

X

#Xournal #Xchat #XFCE #XFCE4 #xray #XMPP #xorg

Y

#YearOfTheFediverse

Z

#Zoo

tmate

tmate — terminal multiplexer with instant terminal sharing

tmate is a useful Linux application. Lets say you need some help with fixing a problem. You need to be able to share your terminal with a trusted party, so that person, can help you within a shared terminal.

You can load tmate by :

  • opening a terminal
  • typing tmate at the terminal window

You are presented with a screen, similar to that shown below. At the bottom, you get a unique a link, which you can give to the other party.

tmate

At the bottom you get something like this

[tmate] ssh session: ssh ALw*************QjF@l.tmate.io

I have added some *** so I am not putting my own system security at risk, but it is essentially a long lost of characters.

This only shows for a while however. You need to copy / paste this link in to an e-mail / irc or whatever your using to send it to a colleague who is going to help, so DO NOT post to a public forum.

You can see what that person is typing, and if any passwords need entering you can do that yourself and the other person can carry on with helping you.

At times this can be a really useful tool to help solve issues.

You are strongly advised to read the man page for this before use.

#Linux,#tmate,#terminal,#multiplexer,#technical.#support.


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)