Below you will find pages that utilize the taxonomy term “Miscellaneous”
How to upgrade Ubuntu kernel
Step 1 Check the existing kernel of your Ubuntu Linux: uname -a Step 2 Ubuntu maintains a website for all the versions of kernel that have been released. At the time of this writing, the latest stable release of Ubuntu kernel is 4.15. If you go to this link: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15/, you will see several links for download. Step 3 Download the appropriate files based on the type of OS you have.
Understanding git as Version Control System
Git allows you to create versions of your files and therefore it is known as the “Version Control System”. The following table compares others types of systems that allow to create versions and the features they provide: Versions Any Editor Use Offline Manual Save Manual Yes Yes Yes Drop Box Yes No No Google Doc No No No Wikipedia No No Yes Git Yes Yes Yes SVN Yes No Yes Fundamental concept Git system comprises of the local repository and the remote repository.
How To Configure a Linux Service to Start Automatically After a Crash or Reboot
Linux Services that can be controlled with Linux’s service command, for example sudo service nginx status are controlled by scripts in the folder /etc/init.d/. These scripts define functions such as start(), stop(), reload(), status() etc that tells what to do when a service command is given. For example: when a service command such as sudo service nginx start, it calls the start() function defined in the script file nginx under the folder /etc/init.
Have Jenkins Run A Shell Script In A Remote Machine Every Time There Is A Change In The Git Repository
From Jenkins home page, click on “New Item” and select a “Freestyle Project” and fill in the general details such as “Project Name and Description” Under the Source Code Management tab, add your code repository URL and set up the ssh credential so that Jenkins will be able to poll after certain intervals. You will need to generate a pair of public and private RSA key and put the public key in your repository and the private key in your Jenkins Source Code Management section by clicking on the “add” button which opens up a new window as shown below where you add in the ssh credential.
Generally, vim installation comes with a .vim diectory and .vimrc file in your home directory. If these are not present in your directory, please feel free to create them manually. Configurations for vim goes in the .vimrc file and the plugins are stored in the .vim directory. Here is what my current .vimrc configurations look like: 1 "Vundle Setup 2 set nocompatible " required 3 filetype off " required 4 5 " set the runtime path to include Vundle and initialize 6 set rtp+=~/.
Setting Up A New Linux Server Securely
So you have a new server either on premise or a virtual server from companies like Linode or Rackspace. What do you do next? How do you do the initial set-ups like making new users, and keeping it secured from malicious attacks among others. Here are some of the steps that I follow pretty much every time (Note: this tutorial is based on Ubuntu Server which will apply more or less to any Linux based server)
Accessing Remote Machines Passwordless
If you are tired of entering password everytime you ssh into your remote machine, you may want to create public-provate key pair and store your public key into your remote machine and the private key into your local machine. You can create such key pair by running the following command from your local machine - ssh-keygen This will create two files in your .ssh directory on your $HOME folder - one with the name id_rsa which is your private key and the other with id_ras.
Brief Introduction To Using Cron in Linux
Cron is a system daemon used to execute desired tasks (in the background) at designated times. A crontab is a simple text file with a list of commands meant to be run at specified times. It is edited with a command-line utility. These commands (and their run times) are then controlled by the cron daemon, which executes them in the system background. crontab -e : opens an editor to edit the crontab file
Users, Groups and Permissions in Linux
Users Add a user: sudo adduser [username] Delete a user: sudo userdel [username] All user information is stored in a file /etc/passwd Change a password: sudo passwd [username] Groups Groups are usually used to change permissions for a group of users as changing permissions individually would be a tedious task. Add a group: sudo groupadd [groupname] Delete a group: