GNU/Linux


Download Large Jupyter Workspace files

Recently, we were working on a Jupyter Workspace at anyscale-training.com/jupyter/lab. As there was no option to download all files of the workspace nor there was a way to create an archive from the GUI, we followed the procedure below (that we also use on Coursera.org and works like a charm):

First, we clicked on the blue button with the + sign in it.
That opened the Launcher tab that is visible on the image above.
From there, we clicked on the Terminal button under the Other category.

In the terminal, we executed the following command to create a compressed archive of all the files we needed to download:

tar -czf Ray-RLLib-Tutorials.tar.gz ray_tutorial/ Ray-Tutorial/ rllib_tutorials/;

After the command completed its execution, we could see our archive on the left list of files. By right-clicking it we we are able to initiate its download. Unfortunately, after the first 20MB the download would always crash! To fix this issue, we split the archive to multiple archives of 10MB each, then downloaded them individually and finally merged them back together on our PC. The command to split the compressed archive to multiple smaller archives of fixed size was the following:

tar -czf - ray_tutorial/ Ray-Tutorial/ rllib_tutorials/ | split --bytes=10MB - Ray-RLLib-Tutorials.tar.gz.;

After downloading those files one by one by right-clicking on them and then selecting the Download option we recreated the original structure on our PC using the following command:

cat Ray-RLLib-Tutorials.tar.gz.* | tar xzvf -;

To clean up both the remote Server and our Local PC, we issued the following command:

rm Ray-RLLib-Tutorials.tar.gz.*;

This is a guide on how to download a very big Jupyter workspace by splitting it to multiple smaller files using the console.


Do not use the snap version of docker for Ray on Ubuntu 20.04LTS

If you are trying to deploy a local Ray cluster on Ubuntu machines and you are getting the following error:

Shared connection to 192.168.1.74 closed.
     Running docker exec ray_container printenv HOME
       Full command is ssh -tt -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ExitOnForwardFailure=yes -o ServerAliveInterval=5 -o ServerAliveCountMax=3 -o ControlMaster=auto -o ControlPath=/tmp/ray_ssh_71415f9f14/c21f969b5f/%C -o ControlPersist=10s -o ConnectTimeout=120s [email protected] bash --login -c -i 'true && source ~/.bashrc && export OMP_NUM_THREADS=1 PYTHONWARNINGS=ignore && (docker exec ray_container printenv HOME)'
 Shared connection to 192.168.1.74 closed.
     Running docker cp /tmp/ray_tmp_mount/default/~/ray_bootstrap_config.yaml ray_container:/home/ray/ray_bootstrap_config.yaml
       Full command is ssh -tt -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ExitOnForwardFailure=yes -o ServerAliveInterval=5 -o ServerAliveCountMax=3 -o ControlMaster=auto -o ControlPath=/tmp/ray_ssh_71415f9f14/c21f969b5f/%C -o ControlPersist=10s -o ConnectTimeout=120s [email protected] bash --login -c -i 'true && source ~/.bashrc && export OMP_NUM_THREADS=1 PYTHONWARNINGS=ignore && (docker cp /tmp/ray_tmp_mount/default/~/ray_bootstrap_config.yaml ray_container:/home/ray/ray_bootstrap_config.yaml)'
 lstat /tmp/ray_tmp_mount/default/~: no such file or directory
 Shared connection to 192.168.1.74 closed.
 2021-06-09 11:41:09,299    INFO node_provider.py:93 -- ClusterState: Writing cluster state: ['192.168.1.70', '192.168.1.74']

You might need to consider removing the snap version of docker and follow the official instructions of docker.

# From https://docs.docker.com/engine/install/ubuntu/
sudo apt-get remove docker docker-engine docker.io containerd runc;
sudo apt-get update;
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release;

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker
sudo systemctl restart docker

sign_and_send_pubkey: signing failed for RSA from agent: agent refused operation

When trying to ssh to a machine using a public key, we got the following error:

ssh '[email protected]'
sign_and_send_pubkey: signing failed for RSA "/home/tux/.ssh/id_rsa" from agent: agent refused operation

The problem was with the local .ssh folder which had wrong permissions set. To fix the above problem, we issued the following commands:

chmod 700 ~/.ssh;
chmod 600 ~/.ssh/*;


RIP tux.crystalxp.net – Twentieth Part 2

Below you will find some images we were able to salvage from https://tux.crystalxp.net/, it was a great repository of Tux creations. Let’s hope it will be restored eventually.

For more images of Tux please visit the following links (we had to split them to multiple pages to avoid having your browser getting stuck):

  1. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net
  2. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-second-part
  3. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-third-part
  4. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fourth-part
  5. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fifth-part
  6. https://bytefreaks.net/uncategorized/rip-tux-crystalxp-net-sixth-part
  7. https://bytefreaks.net/uncategorized/rip-tux-crystalxp-net-seventh-part
  8. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-eighth-part
  9. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-ninth-part
  10. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-tenth-part
  11. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-eleventh-part
  12. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-twelfth-part
  13. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-thirdtenth-part
  14. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fourteenth-part
  15. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-fifteenth-part
  16. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-sixteenth-part
  17. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-seventeenth-part
  18. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-eighteenth-part
  19. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-nineteenth-part
  20. https://bytefreaks.net/gnulinux/rip-tux-crystalxp-net-twentieth-part

License: GNU LGPL