{"id":15051039,"url":"https://github.com/volkansah/debian-based-ai-developer-server","last_synced_at":"2026-01-02T13:08:38.364Z","repository":{"id":171273699,"uuid":"647635213","full_name":"VolkanSah/Debian-Based-AI-Developer-Server","owner":"VolkanSah","description":"Comprehensive instructions for installing and managing Python, OpenAI library, and other useful libraries on a Debian-based AI development server.","archived":false,"fork":false,"pushed_at":"2023-05-31T09:18:15.000Z","size":43,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T21:52:22.001Z","etag":null,"topics":["ai","artificial-intelligence","chatgpt","debian-linux","developer","developer-documentation","documentation","openai","servers"],"latest_commit_sha":null,"homepage":"https://github.com/VolkanSah/Debian-Based-AI-Developer-Server","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VolkanSah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["VolkanSah"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-05-31T07:49:05.000Z","updated_at":"2024-06-12T11:01:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb190a95-104e-45e8-a841-86f47b740ea4","html_url":"https://github.com/VolkanSah/Debian-Based-AI-Developer-Server","commit_stats":null,"previous_names":["volkansah/debian-based-ai-developer-server"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolkanSah%2FDebian-Based-AI-Developer-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolkanSah%2FDebian-Based-AI-Developer-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolkanSah%2FDebian-Based-AI-Developer-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VolkanSah%2FDebian-Based-AI-Developer-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VolkanSah","download_url":"https://codeload.github.com/VolkanSah/Debian-Based-AI-Developer-Server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243511366,"owners_count":20302549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","artificial-intelligence","chatgpt","debian-linux","developer","developer-documentation","documentation","openai","servers"],"created_at":"2024-09-24T21:30:37.573Z","updated_at":"2026-01-02T13:08:38.333Z","avatar_url":"https://github.com/VolkanSah.png","language":null,"readme":"# Debian-Based OpenAI Developer Server\nThis repository provides steps to set up an OpenAI development environment on your Debian-Based system and under Windows Subsystem for Linux (WSL).\n## Table of Contents\n\n- [Setting Up Your Environment](#setting-up-your-environment)\n  - [Python Installation](#python-installation)\n  - [pip Installation](#pip-installation)\n  - [OpenAI Library Installation](#openai-library-installation)\n- [Optional But Useful Libraries](#optional-but-useful-libraries)\n- [Virtual Environment](#virtual-environment)\n- [Version Control](#version-control)\n- [Using Debian on WSL](#using-debian-on-wsl)\n\n\n## Setting Up Your Environment\n### Python Installation\nDebian comes with Python 3.7 pre-installed, but it's likely you'll want the latest version of Python. Here are the steps to update Python:\n\nFirst, update your package manager. Run the following commands in your terminal:\n```bash\nsudo apt-get update\nsudo apt-get upgrade\n```\nNext, install the required dependencies. Run:\n```bash\nsudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \\\nlibreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \\\nxz-utils tk-dev libffi-dev liblzma-dev git openssh-server\n```\nThen, install pyenv, a tool for managing Python versions. Run:\n```bash\ncurl https://pyenv.run | bash\n```\nAdd pyenv to your shell startup script. Run:\n```bash\necho 'export PYENV_ROOT=\"$HOME/.pyenv\"' \u003e\u003e ~/.bashrc\necho 'export PATH=\"$PYENV_ROOT/bin:$PATH\"' \u003e\u003e ~/.bashrc\necho -e 'if command -v pyenv 1\u003e/dev/null 2\u003e\u00261; then\\n  eval \"$(pyenv init -)\"\\nfi' \u003e\u003e ~/.bashrc\nexec \"$SHELL\"\n```\n\nFinally, install the latest Python version using pyenv. Run:\n```bash\npyenv install 3.9.5\npyenv global 3.9.5\n```\nCheck your Python version with:\n```bash\npython --version\n```\n#### pip Installation\npip is Python's package manager that you will use to install the OpenAI library. In the latest version of Python, pip should be pre-installed. You can check this by running:\n```bash\npip --version\n```\nIf pip is not installed, you can install it with the following command:\n```bash\nsudo apt install python3-pip\n```\n#### OpenAI Library Installation\nWith pip, you can install the OpenAI library. Run the following command:\n```bash\npip install openai\n```\n### Finished!  You can now Install Apache, MariaDB or something else to work on it :smile:\n\n### Optional But Useful Libraries\n\n`requests`: This is a basic library for sending HTTP requests. It's very useful if you want to interact directly with the OpenAI API instead of using the official OpenAI library.\n```bash\npip install requests\n```\n`click`: This library helps you create beautiful command-line interfaces. It has many features that make your life easier, such as automatic generation of help pages, and support for command groups and arguments.\n```bash\npip install click\n```\n`python-dotenv`: With this, you can load environment variables from a .env file in your project. This is very useful to securely store sensitive information such as your OpenAI API key.\n```bash\npip install python-dotenv\n```\n`pytest`: This is a test library for Python, which ensures that your CLI tool works as expected.\n```bash\npip install pytest\n```\n`setuptools`: Once you've created your CLI tool, you can convert it into a Python library that other developers can use as a plugin for their own projects. A common way to do this is using setuptools, a library for creating Python distributions.\n```bash\npip install setuptools\n```\nNote that you can upgrade any of these packages using pip install --upgrade \u003cpackagename\u003e to make sure you have the latest version.\n\nVirtual Environment\nThis is especially important when you're working on multiple Python projects at the same time. Virtual environments allow you to keep the package dependencies for each project separate, leading to fewer conflicts and easier debugging. You can use the virtualenv package to create virtual environments in Python.\n\n```bash\npip install virtualenv\n```\nAnd then create a new virtual environment with:\n\n```bash\nvirtualenv venv\n```\nActivate the environment with:\n\n```bash\nsource venv/bin/activate\n```\nNow, any Python packages that you install are confined to this environment and won't affect your global Python installation.\n\n### Using Debian on WSL\nStarting WSL\nWSL is automatically started when you open it. You can do this by simply typing \"wsl\" in PowerShell:\n\n```powershell\nwsl\n  ```\nThis opens a new WSL instance with the default distribution. If you want to start a specific distribution, you can provide its name as an argument, e.g.,:\n\n```powershell\n\nwsl -d Ubuntu\n  \n```\nInstalling a WSL Distribution\nYou can install a new WSL distribution from the Microsoft Store. The exact command depends on the specific distribution you want to install. For example, to install Ubuntu 20.04, you could run:\n\n```powershell\nwsl --install -d Ubuntu 20.04\n```\nStopping WSL\nYou can stop a running WSL instance by typing \"exit\" at the WSL command line. To stop all running WSL instances, you can run the following command in PowerShell:\n\n```powershell\nwsl --shutdown\n```\nUninstalling a WSL Distribution\nIf you no longer need a WSL distribution, you can uninstall it with the following command:\n\n```powershell\nwsl --unregister \u003cDistributionName\u003e\n```\n  Note that this will delete all data in the distribution.\n\nListing Installed WSL Distributions\nYou can display a list of all installed WSL distributions by running the following command in PowerShell:\n\n```powershell\nwsl --list --verbose\n```\n### Thanks\n**\"Thank you! Your support is appreciated, and I would be grateful if you could share this project with others,  giving a :star: to my projects, or  \n[becoming a 'Sponsor'](https://github.com/sponsors/volkansah). Don't forget to follow me for more free ideas and updates!\"**\n\n### Credits\n- Volkan (Sah) Kücükbudak\n- [VolkanSah on Github](https://github.com/volkansah)\n- [Developer Site](https://volkansah.github.io)\n\n### License\nThis project is copyright © [VolkanSah](https://github.com/volkansah) and is licensed under the [MIT LICENSE](LICENSE). You are free to use, modify, and distribute the code and assets, as long as the copyright notice and permission notice are preserved in all copies or substantial portions of the software.\"\n\n\n\n\n\n\n\n\n\n","funding_links":["https://github.com/sponsors/VolkanSah","https://github.com/sponsors/volkansah"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolkansah%2Fdebian-based-ai-developer-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolkansah%2Fdebian-based-ai-developer-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolkansah%2Fdebian-based-ai-developer-server/lists"}