How to record and replay a terminal session on Linux

Post your tutorials and howtos here.
User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

How to record and replay a terminal session on Linux

Postby zerozero » 25 May 2014 11:12

This tip was shared in G+ by Christopher S. KUDOS to him :)

it's an amazing tool to complement tutorials, make our life easier here in forum support ;) and to solve a friend's problem in no time.
  • so, what does it do? what good is this for?
    • you set this up (easy);
    • start recording within the terminal (easy as well);
    • and share the terminal session recorded as html file with however you want (also looks easy :mrgreen: )
something as simple as this
[Click the link bellow for the installation and usage howto]
https://dl.dropboxusercontent.com/u/176 ... cord1.html
( a small oddity i just found with dropbox: if you want to share the file over the dropbox service you need to append the html extension to it; locally it doesn't need it of course)

more information here >> http://xmodulo.com/2014/05/record-repla ... linux.html
bliss of ignorance

User avatar
fleabus
Posts: 1227
Joined: 16 Sep 2013 04:24
Location: Winchester, VA USA

Re: How to record and replay a terminal session on Linux

Postby fleabus » 26 May 2014 18:59

What a relief, to find someone who types like I do! :mrgreen: :lol:

All kidding aside, this is extremely useful as it captures all types of output, so not only for tutorials and support but for one's own use as well -- as my memory leaves much to be desired. Not only what did I stash, but where did I stash it? :?

Your own way of using forum posts as a kind of record is an ingenious way of not having to stash stuff in the first place... :D

User avatar
sobe
Posts: 90
Joined: 09 Mar 2013 21:34
Location: SW Florida
Contact:

Re: How to record and replay a terminal session on Linux

Postby sobe » 26 May 2014 19:37

You're on a roll today zerozero with these interesting posts. First the Chrome OS thingy, now this. :mrgreen: I had not heard of this one, but I use to use http://shelr.tv/ to do this. With shelr.tv I would capture my commands then upload them to their website, but I think this Termrecord is better since it can be saved locally and is more private (if you want it to be)...Thanks again fine sir!

Edit to add - The only thing I see that shelr.tv allows you to do that this doesn't is copy the terminal text for easy pasting, but I still like TermRecord better.
Distros currently and regularly on my machines...
Semplice, Linux Mint Xfce, SolydX,

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: How to record and replay a terminal session on Linux

Postby zerozero » 26 May 2014 19:58

fleabus wrote:Your own way of using forum posts as a kind of record is an ingenious way of not having to stash stuff in the first place...
ohh now you revealed my secret :lol:
yep i'm lousy organizing stuff and this way i know where it is :mrgreen:
sobe wrote:Thanks again fine sir!
:o sir! that's a new one :lol: joking aside you're welcome!
bliss of ignorance

User avatar
sobe
Posts: 90
Joined: 09 Mar 2013 21:34
Location: SW Florida
Contact:

Re: How to record and replay a terminal session on Linux

Postby sobe » 26 May 2014 20:02

zero wrote: :o sir! that's a new one :lol: joking aside you're welcome!
Haha, that reminds me of something the old guy said in the movie Roadhouse. He said..."calling me sir is like putting an elevator in an outhouse. It just don't belong." :lol:
Distros currently and regularly on my machines...
Semplice, Linux Mint Xfce, SolydX,

User avatar
sobe
Posts: 90
Joined: 09 Mar 2013 21:34
Location: SW Florida
Contact:

Re: How to record and replay a terminal session on Linux

Postby sobe » 26 May 2014 20:24

Curious how you got it to play the html file in the Dropbox link zerozero. When I just made one and shared to Dropbox and click my share link it just allows me to download the file, but doesn't actually play it as a video like yours did.
Distros currently and regularly on my machines...
Semplice, Linux Mint Xfce, SolydX,

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: How to record and replay a terminal session on Linux

Postby zerozero » 26 May 2014 20:34

hi sobe
i don't remember doing anything special :roll:
  • recorded the session into /home/zerozero/Documents;
  • moved it to the dropbox public folder and appended the .html extension to the file (of course you can do that from the beginning)
  • got the public url and pasted it here
AFAIK that was it
bliss of ignorance

User avatar
sobe
Posts: 90
Joined: 09 Mar 2013 21:34
Location: SW Florida
Contact:

Re: How to record and replay a terminal session on Linux

Postby sobe » 26 May 2014 20:41

Strange, I did the exact same thing but this is what I get when I add the file to the public folder and copy the public link. https://www.dropbox.com/s/1k7x9j20ugrqght/weather.html
It asks to download, then you can open and play but it doesn't play it automagically.
Distros currently and regularly on my machines...
Semplice, Linux Mint Xfce, SolydX,

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: How to record and replay a terminal session on Linux

Postby zerozero » 26 May 2014 21:11

strange indeed

the only thing i can see straight away is that the url structure is different
mine:
https://dl.dropboxusercontent.com/u/176 ... cord1.html
yours
https://www.dropbox.com/s/djrdttnut9mhfs1/weather.html
i believe the different behavior is related to this but don't know why the url's have different structure :roll:

[will look into this later]
bliss of ignorance

User avatar
sobe
Posts: 90
Joined: 09 Mar 2013 21:34
Location: SW Florida
Contact:

Re: How to record and replay a terminal session on Linux

Postby sobe » 26 May 2014 21:23

Thanks, I found a workaround here in the first example https://www.dropbox.com/help/201/en
Still not sure why the difference to begin with, but the file I uploaded will now play automagically after editing the address to this...
https://dl.dropboxusercontent.com/s/1k7 ... ather.html
Distros currently and regularly on my machines...
Semplice, Linux Mint Xfce, SolydX,

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: How to record and replay a terminal session on Linux

Postby zerozero » 26 May 2014 21:33

how do you generate the public url?
[the difference might be there]
i use a dolphin service that integrates dropbox into dolphin
http://kde-look.org/content/show.php/Dr ... ent=124416
all in the tip of the mouse :P
bliss of ignorance

User avatar
sobe
Posts: 90
Joined: 09 Mar 2013 21:34
Location: SW Florida
Contact:

Re: How to record and replay a terminal session on Linux

Postby sobe » 26 May 2014 21:50

I simply right click and choose share dropbox link as seen in the scrot below. I also tried getting the public link from within the dropbox website and it gave me the same link as I had by just right clicking in the folder. I am using thunar (not dolphin) and it's been a while, but I think I initially installed the dropbox thunar extension. Funny thing is, I can right click and get a proper share link whether or not the file is in the public folder or not as long as it's somewhere in the main dropbox folder. I would prefer to have it bypass the preview page automatically like yours did instead of having to edit the url. I wonder if you are on to something and the file manager is making the difference?

(had to link to scrot as it was too large to upload)... Image

I am glad there is a workaround, but very curious why the difference in share links between the two of us. :roll:

Btw, the dropbox-thunar plugin I am using is here...

32bit - http://packages.crunchbang.org/waldorf/ ... 1_i386.deb

64bit - http://packages.crunchbang.org/waldorf/ ... _amd64.deb

I bet you are right and your KDE Dolphin plugin is making the difference.
Distros currently and regularly on my machines...
Semplice, Linux Mint Xfce, SolydX,

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: How to record and replay a terminal session on Linux

Postby zerozero » 26 May 2014 22:03

sobe wrote:I wonder if you are on to something and the file manager is making the difference?
i start to believe that it does make a difference.
for example, i can't
I can right click and get a proper share link whether or not the file is in the public folder or not as long as it's somewhere in the main dropbox folder
unless it's in the public folder gives me an error like this
snapshot254.png
my options are
snapshot255.png
snapshot255.png (170.15 KiB) Viewed 2988 times
bliss of ignorance

User avatar
sobe
Posts: 90
Joined: 09 Mar 2013 21:34
Location: SW Florida
Contact:

Re: How to record and replay a terminal session on Linux

Postby sobe » 26 May 2014 22:08

Wow, lots of nice options including encryption and email link in that Dolphin Dropbox plugin. I will trade my copy public link from anywhere for all of those. :D
Distros currently and regularly on my machines...
Semplice, Linux Mint Xfce, SolydX,


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 6 guests