Month: November 2021

Misc

Install Rasa suite for chatbot

Reading Time: < 1 minute

To use chatbot to coordinate automatic systems, I have searched many options. There are Google’s dialogflow, and Microsoft’s Azure bots. Dialogflow charge money once I need to use REST API calls, and Azure is just too complicated to set up all the services. No luck with multiple tries for both. I have previously used Rasa for work, and have some experience in how it works.

  1. Go to Rasa’s website and install Rasa X using docker. https://rasa.com/docs/rasa-x/installation-and-setup/install/docker-compose
  2. Need to load the NLU markdown data, story markdown data, and domain.yml files.
  3. Also make sure git repo is connected. I still don’t know how it work, because it’s not loading the files in that git repo.
  4. The only way I found to work is follow the documentation here, regarding action server. No need to change the endpoint.yml anymore though.
  5. Instead of editing the new docker-compose.override.yml file, just go back to the docker-compose.yml file and edit the app_1 part and replace with this:
  app:
    restart: always
    image: "rasa/rasa-sdk:latest"
    volumes:
      - ./actions:/app/actions
    expose:
      - "5055"
    depends_on:
      - rasa-production

Now it should be good to go once with use docker-compose up -d again!

Journal

Install CUDA driver on a new Ubuntu system

Reading Time: < 1 minute

After recycling the old pc to install Ubuntu, I wanted to install CUDA drivers. And of course ran into the same old errors. Here is some notes to make sure I don’t run into the same errors again.

  1. Download and installing CUDA driver. Need to install make and gcc, sudo apt install gcc make
  2. There are still some errors form cuda install, as directed by nvidia forum,https://forums.developer.nvidia.com/t/info-finished-with-code-256-error-install-of-driver-component-failed/107661, need to look at the file on /var/log/nvidia-installer.log. It’s because The Nouveau kernel driver. Now follow the nvidia instruction at https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#runfile-nouveau to blacklist Nouveau.
  3. How come it doesn’t work? Well, need to reboot the system of course.
  4. Now it installs correct. Have fun!
  5. Make sure to use the entire harddrive if you have fresh Ubuntu install. Here -> https://www.panzoto.com/extend-the-free-space-on-lvm/

Journal

Recycle old pc to be a server

Reading Time: < 1 minute

After more than 10 years of using my old pc, I finally decide to get the a new one. It’s black, and powerful. But enough of that. I decided to recycle my old pc to be a linux server. After installing Ubuntu 20.04, I decided to partition the old hard drive. And here is guide I followed. It even shows you how to fuse multiple hard drive together to behave like a single drive. Enjoy!


https://techguides.yt/guides/how-to-partition-format-and-auto-mount-disk-on-ubuntu-20-04/