100 linux command for vps setup

Learn 100+ Essential Linux Commands to Set Up a Fresh VPS with Python, PostgreSQL, MySQL, and MongoDB

For a developer, setting up a VPS for production can be one of the most challenging tasks. Here’s a basic setup guide to get your server ready for deployment. Whether you’re hosting a Django app, Node.js API, or Laravel website, you’ll need a reliable set of Linux commands to prepare your environment. In this post, I’m sharing 100+ essential Linux commands that I personally use when setting up a fresh VPS. These commands cover everything from server access and file management to firewall configuration, database installation, and much more—making your VPS deployment smooth and production-ready. 1. Server Access & Session Management 2. System Info & Monitoring 3. User & Permission Management 4. File & Directory Management 5. Networking & Firewall 6. Package Management (Debian/Ubuntu) 7. Git & Code Deployment 8. Web Server Setup 9. Process & Service Management Bonus command This is for running the development server only. If you want to run a production server, use Gunicorn or uWSGI. View my previous blog on how to deploy Django on AWS. Here’s a step-by-step guide on how to run a Django project on a server in the background using screen: 1. Install screen (if not already installed) sudo apt updatesudo apt install screen -y On CentOS/RHEL: sudo yum install screen -y 2. Start a new screen session django_server Just name whatever you want; you can make it. screen -S django_server 3. Activate your virtual environment source venv/bin/activate Create your virtual environment folder 4. Navigate to your Django project cd /path/to/your/project 5. Run the Django development server python3 manage.py runserver 0.0.0.0:8000 6. Detach from the screen session Press this command: CTRL + A then D 7. List all screen sessions screen -ls 8. Reattach to the session screen -r django_server 9. Kill the screen session (stop the server) screen -X -S django_server quit Please comment below if you guys like my post.

Learn 100+ Essential Linux Commands to Set Up a Fresh VPS with Python, PostgreSQL, MySQL, and MongoDB Read More »