How do I launch The Littlest JupyterHub as admin? - jupyter-notebook

I'm trying to get up to speed with The Littlest JupyterHub.
I've followed the documentation and added myself as an admin with the following.
Updated my config file with my key and cert then launched the hub with jupyterhub -f ./jupyterhub_config.py.
I then get to this screen:
My issue is that I dont see the control panel described here:
Can anyone suggest where I've gone wrong?

Related

Apache Airflow Webserver Log In Failed

I realise this is a duplicate of thousands of posts across the internet, but I have only found solutions for version <2.0, and those solutions do not apply to >2.0.
Basically, I have installed Apache Airflow on an Ubuntu system. Everything installed fine, as far as I see from command line, and I first create a user:
airflow users create --role Admin --username admin --email admin --firstname admin --lastname admin --password admin
And then from here I start up the webserver and scheduler:
airflow webserver -p 8585 > ${AIRFLOW_HOME}/logs/webserver.log 2>&1 &
airflow scheduler > ${AIRFLOW_HOME}/logs/scheduler.log 2>&1 &
And then I can access the webserver via "http://<HOST_IP>:8585" - This loads to the log in screen no problem.
But when I try to log in using the user details initially created, or by using my OS user (on the off-chance), it just fails with "Invalid login." I've tried restarting the webserver and Ubuntu to no avail.
I've used Airflow <2.0 in the past and never even created a user and just logged in straight away, so I'm really blank on what the answer is here. I absolutely hate Airflow and am loosing my mind just trying to log in, so a massive thanks for any help!
Okay, sooo I managed to get it running with login potential. I think I've discovered the issue, at least, and can re-create the problem, though frankly I have ZERO idea why it IS an issue (software coded issue??).
Basically, I had to run the install processes above as ROOT user. I was trying to run it as my admin user, but it kept resulting in the log in issue above - I did notice however that all install guides appear to use the ROOT user, so I gave it a shot in case it was as annoyingly simple as that, and VOILA!! First time logged in.
I did stop the software running at this point, quickly restart it as my admin user and immediately got the same login issue. There's something odd going on here, and I don't know what it is, but when in doubt: Try ROOT.
Solution- Create user again
I ran into the same issue. I had created an Admin user using the same command and after some changes to my config file, I ran airflow db init. After this when I started the webserver, I tried logging in with my admin credentials, but no luck. When I checked the logs, it showed me -
WARNING - No user yet created, use flask fab command to do it.
So I created the user again and it worked.

Compute Engine (wordpress website) crashed, wrong SSL command and space issue

I have been running my wordpress website on Google cloud the last 12 months with no issue. VM instance - using SSH on Apache server.
My website went down yesterday and I could not access it through wordpress. I am trying to do everything myself and I am a beginner when it comes to learning the back end functionality.
So I went into my google cloud and ssl’d onto my server. I though it might be an outdated certificate and I entered an incorrect command (see photo attached - I didn't include my actual email and domain name stupidly, copied and pasted it from the internet). And now I am getting an error saying mysql is not working. I think there may be a space issue too.
When I try go to my website I get and
Error establishing a database connection
So my questions are - did I mess up anything from entering the wrong code in SSL? And how do I solve the space issue and get my site running again.
I just tried to updated my server size through google console - but gettting the error in the screenshot that it can't connect.
Enter the following content into the script and save it. Ensure to replace the ‘Domain’ placeholder with your actual domain name, and the ‘Email-Address’ placeholder with your email address.
For Apache:
#!/bin/bash
sudo /opt/bitnami/ctlscript.sh stop apache
sudo /opt/bitnami/letsencrypt/lego --tls --email="EMAIL-ADDRESS" --domains="DOMAIN" --path="/opt/bitnami/letsencrypt" renew --days 90
sudo /opt/bitnami/ctlscript.sh start apache
Please go through this link for more information.
In some cases, the certificates aren’t properly uploaded to the server, so the server is still using the dummy ones. Perform the following checks:
Check that the certificate files are located as below for Apache:
Certificate: /opt/bitnami/apache2/conf/server.crt
Key: /opt/bitnami/apache2/conf/server.key
CA: /opt/bitnami/apache2/conf/server-ca.crt.
Please follow this link for connection refused error.
If you still face issues after following the above, do mention the details about the error to narrow down the issue.

How do I make tpot dashboard work in kibana?

I have recently deployed the Tpot honeypot, on my google cloud instance but when I click one of the dashboards to view it shows me an error as shown in the image attached, I have tried everything possible, but unlucky. Could anyone here guide/help me? Thanks
enter image description here
tpot is behavior a server
after tried a installing tpot, you cannot start another service like elasticsearch/kibana/logstash manually
tpot have already deploy inbuild elasticsearch,kibana,logstashenter image description here
after installing tpot browse 127.0.0.1:64297->login credential->kibana

user not able to launch firefox from unix- X11 error

Using MobaXTerm on RedHat, I am able to launch Firefox from my user profile and access browser GUI. However if I sudo to root and try to launch firefox I get an error:
X11 connection rejected because of wrong authentication.
I want to access CUPS in the browser with root access so that I can administer printers from GUI (not trying to browse as root!). I am aware that all of the administration can be done from command line, but sometimes the GUI is just easier.
How can I resolve this error so that I may launch firefox as root?
Under my user profile where firefox is working, run:
xauth list
The output will be something like:
servername/unix:11 MIT-MAGIC-COOKIE-1 256d99dc3f0f7acdf90190a2710d7042
servername/unix:11 MIT-MAGIC-COOKIE-2 61f888d3342b65f4f05f02fcb708f3d8
servername/unix:11 MIT-MAGIC-COOKIE-3 656d49dc3f0f7acdf96190a2710d7042
Copy the list of these entries.
Then sudo to root and run xauth list again. You will find a different list of cookies.
To repair the trouble, add each of the cookie under my user profile to root's profile via xauth add command:
xauth add servername/unix:11 MIT-MAGIC-COOKIE-1 256d99dc3f0f7acdf90190a2710d7042
As far as I know each cookie needs to be added one at a time, but someone jump in if they know of a bulk method.
After adding the cookies to root profile, Firefox can be launched from root.
Thanks to Byron for the help on this.

Firebase: AngularFire Seed won't login

Keeps showing:
Please configure app/js/config.js before running!
I updated my Firebase URL in config.js, enabled email/password and anonymous login in Forge.
Even changed text in the above error msg to:
"TEST Please configure app/js/config.js before running!"
, in app.js -- and my modified text doesn't show up even. Why? I restarted the web server between changes.
node scripts/web-server.js
Crazy, I can't figure this out.
I figured this out. I also had the ZIP archive in my Trash folder on Mac OS, somehow my console was in my Trash path, (no friggin idea how it got there, as I never cd'd to it), hence changes to my main folder weren't getting detected by the web server running on my Trash folder. Stupid user error -)

Resources