Install Mosh on FreeNAS

Status
Not open for further replies.

larynx

Dabbler
Joined
Jul 8, 2014
Messages
28
I recently migrated a Debian server to FreeNAS 9.3. I access the server remotely via SSH from a location that has a spotty internet connection, when Debian was on the server I installed Mosh so that whenever the connection dropped I could continue from the same spot whenever it resumed.

I was wondering if there is a way to install Mosh on FreeNAS and not inside a jail because I want to monitor the server and the jails.


Thanks
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Well, tmux does something similar and it's built-in. Adding a shell is not something you can do as an end-user. Feel free to put in a feature request though.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
I run mosh on my FreeNAS. Works awesome.

You can install it from ports. Do you need more information?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
The problem is I want to run it not within a jail.
This isn't something that should be done on FreeNAS since FreeNAS is an appliance. Tmux is your best bet even though it solves a different problem than mosh.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
I run mosh on my FreeNAS. Works awesome.

You can install it from ports. Do you need more information?

Did you install it in the main FreeNas environment or in a jail? When I run "pkg install net/mosh" I get a "no packages avail". Do I need to add/enable some repositories?

Code:
[root@freenas] ~# pkg install net/mosh
Updating local repository catalogue...
pkg: file:///usr/ports/packages/meta.txz: No such file or directory
pkg: repository local has no meta file, using default settings
pkg: file:///usr/ports/packages/digests.txz: No such file or directory
pkg: Unable to update repository local
All repositories are up-to-date.
pkg: No packages available to install matching 'net/mosh' have been found in the repositories
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Did you install it in the main FreeNas environment or in a jail? When I run "pkg install net/mosh" I get a "no packages avail". Do I need to add/enable some repositories?

Code:
[root@freenas] ~# pkg install net/mosh
Updating local repository catalogue...
pkg: file:///usr/ports/packages/meta.txz: No such file or directory
pkg: repository local has no meta file, using default settings
pkg: file:///usr/ports/packages/digests.txz: No such file or directory
pkg: Unable to update repository local
All repositories are up-to-date.
pkg: No packages available to install matching 'net/mosh' have been found in the repositories
You SHOULD NOT be installing anything in the FreeNAS system. Use jails/plugins or use a different OS.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
And how do I access the system from a jail?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194

sysfu

Explorer
Joined
Jun 16, 2011
Messages
73
Before the 9.3 update you used to be able to install packages to the main FreeNAS system from the command line. Not that it was ever advised, but I found it was possible by accident.

Apparently this capability has been removed.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Before the 9.3 update you used to be able to install packages to the main FreeNAS system from the command line. Not that it was ever advised, but I found it was possible by accident.

Apparently this capability has been removed.

Not really removed, AFAIK, but FreeNAS' files can now be audited, so to say, to ensure they haven't been tampered with.

In other words, if the consistency check fails, don't expect any support.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
In other words, if the consistency check fails, don't expect any support.
There's support? :smile:

Mosh looks like an interesting complement/enhancement to SSH, but if it can't be installed inside Freenas, then I guess I don't see how it will help.
 

bestboy

Contributor
Joined
Jun 8, 2014
Messages
198
Then let's add a feature request to have it in FreeNAS. It's probably not that important for the big TrueNASes in their data centers, but it might be nice for FreeNAS home users and road warriors.

 

scurrier

Patron
Joined
Jan 2, 2014
Messages
297
...four years later...
Mosh has been out for some time and the devs say that no significant security bugs have arisen. The link to the Mosh feature request is broken, does anyone have an updated link or know what the response was? I'm interested in Mosh so I can monitor the system from my phone across networks.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
I'm with you on this.

I use mosh all the time in my jails for my FreeNAS's to access them remotely. It's really superb, it's well-written, support in freenode is decent, and it would be an extraordinarily simple matter to add it to the services in FreeNAS.
 

scurrier

Patron
Joined
Jan 2, 2014
Messages
297
I should have checked first. Looks like it's already on FreeNAS! 11.1-U6
 
Status
Not open for further replies.
Top