Issue while setting up mesheryctl

I have forked the meshery repo and trying to set up locally and run ./mesheryctl system start but I get this error:

Error: stat /home/abhishek/.kube/config: no such file or directory. Your local context is configured to run Meshery on Kubernetes using the Default token. The Kubernetes cluster is not accessible. Please confirm that the token is valid. See ` `https://docs.meshery.io/installation/quick-start` ` for additional instructions

It says that my local context is configured to run meshery on kubernetes but I never did something like that, and have followed as mentioned in here. So my question is do we need to setup kubernetes to run mesheryctl and test it locally, because I didn’t find anything related to it in docs?

Hey, @Abhishek357 I think it would be better if we first start our Meshery with mesheryctl system start then all the necessary files and folders will be created for you and you will not face this missing files issue. Then mesheryctl system stop and then follow the docs which you have linked.

Hi @Abhishek357 , yes you will require Kubernetes started, to run ./mesheryctl system start . And as @sayantan1413 said it would be better if we start our Meshery with mesheryctl system start first and then follow the docs.

@asubedy @sayantan1413 Thanks for your input, in my case, when I used sudo ./mesheryctl system start I was able to overcome the above error. But further, I am getting the below error.

Starting Meshery...
⣻ Deploying Meshery on Kubernetes 
Meshery deployed on Kubernetes.
Meshery is starting...
Opening Meshery (http://localhost:30159) in browser.
Running Firefox as root in a regular user's session is not supported.  ($XAUTHORITY is /run/user/1000/gdm/Xauthority which is owned by abhishek.)
[20040:20040:0120/144012.983673:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Running Firefox as root in a regular user's session is not supported.  ($XAUTHORITY is /run/user/1000/gdm/Xauthority which is owned by abhishek.)
/usr/bin/xdg-open: 869: iceweasel: not found
/usr/bin/xdg-open: 869: seamonkey: not found
/usr/bin/xdg-open: 869: mozilla: not found
/usr/bin/xdg-open: 869: epiphany: not found
/usr/bin/xdg-open: 869: konqueror: not found
/usr/bin/xdg-open: 869: chromium: not found
/usr/bin/xdg-open: 869: chromium-browser: not found
[20073:20073:0120/144013.276626:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
/usr/bin/xdg-open: 869: www-browser: not found
/usr/bin/xdg-open: 869: links2: not found
/usr/bin/xdg-open: 869: elinks: not found
/usr/bin/xdg-open: 869: links: not found
/usr/bin/xdg-open: 869: lynx: not found
/usr/bin/xdg-open: 869: w3m: not found
xdg-open: no method available for opening 'http://localhost:30159'
Failed to open Meshery in browser, please point your browser to http://localhost:30159 to access Meshery.

Can you help me here? Ig this is again some permission error but how to fix this?