From 0f2bae2ca118d7dc5db6d452ded898932b00d9d9 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 9 Aug 2023 11:11:25 +0000 Subject: [PATCH] added info files --- linux/docker change storage.md | 25 +++++++++++++++++++++++++ linux/python env.md | 13 +++++++++++++ linux/setup aider.md | 2 ++ linux/setup git.sh | 2 ++ 4 files changed, 42 insertions(+) create mode 100644 linux/docker change storage.md create mode 100644 linux/python env.md create mode 100644 linux/setup aider.md create mode 100644 linux/setup git.sh diff --git a/linux/docker change storage.md b/linux/docker change storage.md new file mode 100644 index 0000000..795401e --- /dev/null +++ b/linux/docker change storage.md @@ -0,0 +1,25 @@ +Stop the Docker daemon: +>sudo systemctl stop docker +Copy existing Docker data: If you already have images, containers, and volumes that you want to keep, you'll need to move them to the new location. Replace /new/path with the path to the directory where you want Docker to store its data. + +>sudo rsync -aP /var/lib/docker/ /new/path/docker +Edit the Docker configuration file: Open the Docker configuration file with a text editor like nano or vi. The location of this file might vary depending on your Linux distribution, but it's typically found at /etc/docker/daemon.json. If the file doesn't exist, create it. + + +>sudo nano /etc/docker/daemon.json +Then add the following content, again replacing /new/path with your desired path: + + +{ + "data-root": "/new/path/docker" +} +Save and close the file. + +Start Docker again: +>sudo systemctl start docker +Verify the changes: Run a command like docker info | grep "Docker Root Dir" to ensure that Docker is using the new directory. + +Optional - Clean up old data: If everything is working fine, and you have made a backup, you may want to remove the old Docker directory to free up space: + + +>sudo rm -rf /var/lib/docker/ \ No newline at end of file diff --git a/linux/python env.md b/linux/python env.md new file mode 100644 index 0000000..9c3f4d1 --- /dev/null +++ b/linux/python env.md @@ -0,0 +1,13 @@ +setup miniconda: + +conda create --name petals #python=3.10 +conda activte +conda install pip +pip install petals +pip install aider-chat +export OPENAI_API_KEY=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 + + +#remove > +conda deactivate +conda env remove --name petals diff --git a/linux/setup aider.md b/linux/setup aider.md new file mode 100644 index 0000000..b1e0d28 --- /dev/null +++ b/linux/setup aider.md @@ -0,0 +1,2 @@ +in conda env: +pip install aider-chat \ No newline at end of file diff --git a/linux/setup git.sh b/linux/setup git.sh new file mode 100644 index 0000000..6bfa6c5 --- /dev/null +++ b/linux/setup git.sh @@ -0,0 +1,2 @@ + git config --global user.email "d-popov@abv.bg" + git config --global user.name "Dobromir Popov" \ No newline at end of file