Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch a webpage from a ChromeBook secure shell script?

I've got an AWS instance running Jupyter that I use for general mucking around, and tend to shut it down when not in use. Shutting it down changes the IP and the DNS name. On the Mac, I have a simple script that uses the AWS CLI to grab the current IP of the instance and use that to open the Jupyter notebook in Chrome.

I'm trying to replicate the same functionality on a ChromeBook. I've been able to get the shell running, get the AWS CLI running, but can't figure out how to do the last bit, which is to open the URL in Chrome. (In other words, do the equivalent of the OSX Bash command open -a "/Applications/Google Chrome.app" http://1.2.3.4:8888 on the ChromeBook shell.

So basically I want to know how to open an arbitrary URL in Chrome from the ChromeBook shell.

like image 958
Gort the Robot Avatar asked Jul 09 '17 17:07

Gort the Robot


People also ask

How do you use Secure Shell on Chromebook?

To set up a connection, click the Secure Shell logo and a menu will pop up. Click the Connect Dialog option. A menu will appear asking you to enter the parameters that you'll use to connect to your server, including the address of the server and your username.

Can you ssh from a Chromebook?

Chromebooks offer built-in support for SSH tunnelling with their included crosh shell and SSH command. An SSH tunnel allows you to use an SSH connection like a VPN or encrypted proxy, sending your browsing traffic through the secure tunnel.

How do I open a website with Crosh?

Opening Crosh To open the Crosh, press Ctrl+Alt+T anywhere in Chrome OS.


1 Answers

My Chromium OS machine has xdg-open. If your version has that, it'll be the easiest thing.

xdg-open http://1.2.3.4:8888

If not, you can always just call the full path of Chrome with the url as a parameter, (e.g. chrome http://...) or consider the many options provided here.

like image 89
James K. Avatar answered Oct 05 '22 23:10

James K.