Linux Resources

Install Django on Ubuntu 20.04 - Best Method ?

This article covers the different methods of Installing Django on Ubuntu 20.04. With it, you can easily perform creation of Django applications, superuser creation, and removal of Django. 

Django is a full-featured Python web framework for developing dynamic websites and applications. Using Django, you can quickly create Python web applications and rely on the framework to do a good deal of the heavy lifting.

How to install Django from Ubuntu repositories ?

1. First, update your local package index with apt:

$ sudo apt update

2. Next, check which version of Python you have installed. 18.04 ships with Python 3.6 by default, which you can verify by typing:

$ python3 -V

Install Emacs Editor in Debian 10 - Best Method ?

This article covers the different methods to install Emacs on Debian OS. Emacs is a widely used open-source text editor for Linux. It exists for many years now and can be used for basic word processing, code editing, and scripting, etc.

How to Install Emacs editor on Debian ?

1. To start the installation process, login with root and update the package repository with the following command.

$ apt-get update

2. Next, run the following command on the terminal and wait for the operation to complete. This can take several minutes. When you are asked for confirmation, press Y from your keyboard.

$ apt-get install emacs

Install Notepadqq on Ubuntu 20.04 - Best Method ?

This article covers how to install notepadqq on Ubuntu 20.04 Linux system. Notepad is a similar copy of the most popular editor notepad++. Basically, Notepadqq is a text editor that is designed by developers for the developers. It supports more than 100 languages and useful to note down daily tasks.

How to Install Notepadqq on Debian / Ubuntu?

1. Add Repository

$ sudo add-apt-repository ppa:notepadqq-team/notepadqq  

2. Update Repository

$ sudo apt-get update  

3. Install Notepadqq

$ sudo apt-get install notepadqq  

4. After installation, we can access it either via terminal by typing notepadqq or by searching from the application manager. Run Notepadqq:

$ notepadqq 

Create and Run Ansible Playbook File - Best Method ?

This article covers how you can create a simple playbook file and execute it. Basically, Ansible is an Infrastructure as Code tool that allows you to use a single central location (Ansible control node) to monitor and control a large number of remote servers (hosts).

Therefore, we can use Ansible to set up a number of tasks that the remote hosts can perform, including creating new files and directories.

Components of Ansible playbook file:

  • hosts: Defines on which remote hosts from your Ansible inventory file you want to execute the task. All means that every host receives the command, but you can also enter the name of a host category or one individual host.
  • tasks: Announces that the remote host needs to perform a task.
  • name: Lets you define a name for the task. The name is for your reference only and has no influence on the task itself.
  • file: Engages Ansible's file module to create a new file.
  • path: Defines the path for the new file on the remote host’s hard drive.
  • state: Similar to the touch command in the Ubuntu terminal, entering touch creates an empty file in the location you chose.

Install s3cmd in Linux and Manage Amazon s3 Buckets

This article covers an overview of the s3cmd command-line tool and how you can use it to manage your Amazon S3 storage feature. S3cmd is an Open Source tool that is free for both commercial and private use, but you need to pay only for Amazon resources. so most of the users are using this tool for managing AWS S3 Buckets. S3cmd is a free command-line tool written in Python

How to use the s3cmd command line to manage the Amazon s3 bucket in Linux ?

To use s3cmd command to list s3 bucket, run the command:

# s3cmd ls

This command will list s3bucket from Amazon S3, If you are unable to get the list of the bucket then there will be the following reasons:

  • There is no bucket created in Amazon s3.
  • As you have used IAM user Access Key and Secret Key while configuring the s3cmd tool, please verify IAM user has required permission to access the s3 bucket.
  • If you are using an IAM role then check whether the s3 bucket policy is attached to the EC2 instance or not.

Optimize Images in Debian 10 Linux System Using Trimage

This article covers how to optimize any type of JPEG and PNG images to save some precious disk space on your computer. Sometimes we need to optimize our images so they can take up less disk space and load faster in our websites. A very nice and easy-to-use tool for everyone that can help us optimize our image files for the web by removing EXIF, other metadata and unnecessary comments is Trimage. This image optimizing program is inspired by ImageOptim which is another open-source program used to optimize image files in machines that run Mac Os X.

To install Trimage in Debian and Ubuntu just execute the following command.

$ sudo apt-get install trimage

Search by typing a one letter Word Term Here