Showing posts with label access. Show all posts
Showing posts with label access. Show all posts

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.



From August 13, 2021, GitHub is no longer accepting account passwords when authenticating Git operations, and will show the message below when you are trying to use methods before.

-----------------------------------------------------------------

Git Message 

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

-----------------------------------------------------------------

Instead, you need to add PAT (Personal Access Token). 


First, you need to generate a PAT on GitHub following the steps below:

  • Settings => Developer Settings => Personal access tokens => Generate a personal access token => Fill the form => click Generate token => copy the generated token, which is something like "ghp_***"
Second, clone or set remote url with PAT
  • git clone https://<username>:<githubtoken>@github.com/<username>/<repositoryname>.git
  • git remote set-url origin https://<username>:<githubtoken>@github.com/<username>/<repositoryname>.git

vncserver grey screen Ubuntu 18.04 LTS


The symptom happens when I tried to connect from Windows 10 to Ubuntu laptop via the tightvnc viewer where the Ubuntu laptop is running tightvncserver


Solution:

$ sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

Add the following lines to ~/.vnc/xstartup

gnome-panel & 

gnome-settings-daemon & 

metacity & 

nautilus &


[source]: https://askubuntu.com/questions/800302/vncserver-grey-screen-ubuntu-16-04-lts


How to use Jupyter notebook remotely

It is for the case when you want to use/access Jupyter notebook in the remote computer/server from your local/home computer.

Make sure you have installed Jupyter notebook in both remote and local computers.

1. In the remote computer, open your Jupyter notebook you want to open in the corresponding directory in the ternimal

jupyter notebook --no-browser --port=8888

2. In your local computer's terminal
ssh -N -f -L localhost:8888:localhost:8888 [username]@[your_remote_host_name]

3. You can now access the remote Jupyter notebook by typing
localhost:8888
in your browser!