tango4567 / solutions

Here I am adding lots of different stuff. This is the collection of problems with their solutions. Most important please share good vibes and correct me if you found anything wrong here. Thanks in advance.
Apache License 2.0
5 stars 0 forks source link

How to launch or open web browser in #Ubuntu #server #CLI #34

Closed tango4567 closed 3 years ago

tango4567 commented 3 years ago

For heroku login we need to open web browser but there is some problem, I'm using Ubuntu server version it means there is no GUI only command-line. Then how do we login? Below I found some solution, unfortunately that don't works:

Try: 1

sensible-browser
Couldn't find a suitable web browser! <----- It means there is not web browser
Set the BROWSER environment variable to your desired browser.

Even after knowing there is no web browser I tried below command and I got list of web browser

Try: 2

x-www-browser https://tarunmahajan.com
Command 'x-www-browser' not found, but can be installed with:
sudo apt install wslu              # version 3.2.1-0ubuntu2, or
sudo apt install firefox           # version 88.0.1+build1-0ubuntu0.21.04.2 <----- Then I installed this
sudo apt install chromium-browser  # version 1:85.0.4183.83-0ubuntu2
sudo apt install dillo             # version 3.0.5-7
sudo apt install epiphany-browser  # version 40.0-2
sudo apt install falkon            # version 3.1.0+dfsg1-9
sudo apt install hv3               # version 3.0~fossil20110109-8
sudo apt install konqueror         # version 4:20.12.3-0ubuntu1
sudo apt install links2            # version 2.21-1
sudo apt install luakit            # version 1:2.2.1-1
sudo apt install midori            # version 7.0-2.1
sudo apt install qutebrowser       # version 2.0.2-1
sudo apt install surf              # version 2.0+git20201107-1

That my bad even after knowing there is no display environment then I got this

firefox 
Error: no DISPLAY environment variable specified
tango4567 commented 3 years ago

Finally I found solution but this is completely mess. My first major mistake I never go through with Heroku Documentation and Jumped on Google for searching solutions.

If you’d prefer to stay in the CLI to enter your credentials,

you may run heroku login -i

tango4567 commented 3 years ago

We need to install Display Manager and for that I followed How to Install a Desktop (GUI) on an Ubuntu Server Intel Customer Spotlight