This blog was created with the idea of collecting and linking information about Linux, Git, how to set things up, how to tweak the system here and there, in different architectures, in different distributions and different releases.
All the information presented here is available to public knowledge and can be found with one, two, or a few more Google searches if you persist. All of them were used at least once on productive activities.
Please share your experience and share your comments.
I found two ways to configure the /etc/resolv.conf file to prevent it to be overridden by the system.
- Edit the base file under the resolv.conf.d file
sudo vim /etc/resolvconf/resolv.conf.d/base
and then add the nameservers to the file:
lastly, update resolvconf:
sudo resolvconf -u
2. Install dnsmasq and edit /etc/dnsmasq.conf to add the nameservers you want.
sudo apt install dnsmasq
Then restart the network services:
sudo service dnsmasq restart and
sudo service network-manager restart
You should be all set now.
If you use a modern Ubuntu distribution (the latest 18.04 LTS or 17.XX), you might have noticed that the package to configure the network changed.
Ubuntu changed to Netplan, that is more modern and relatively simpler to use. The file configuration for a static IP should be as follows.
# cat /etc/netplan/01-netcfg.yaml
addresses: [YY.YY.YY.YY, 188.8.131.52]
Reference: I extracted the following information from https://ppc64el.wordpress.com/2018/03/22/ubuntu-18-04-netplan/
Please visit the link above for more information (including the original /etc/network/interfaces format of the eth0 interface before the transition to netplan).
The Silversearcher tool is a super fast search tool that gives you rich information when searching for a string through all your files.
To install it:
sudo apt install silversearcher-ag
The Github project page:
You can find answers about why it is so fast, a chance to collaborate and other info there.
To get the repository’s tags issue:
$ git fetch --tags [branch_name]
To add a tag to the top commit:
$ git tag -a
Note: this will open an editor screen where you can insert a description message (similar to a commit)
To add a tag to a specific commit:
$ git tag -a [tag_name] [commit_hash]
To push a tag to remote:
$ git push [repo_name] --tags # for all tags
$ git push [repo_name] [tag_name] # for a single tag named 'tag_name'
To merge a tagged commit:
$ git merge [tag_name]
See also: how to see the information of the repo’s branches from the CLI, including your tags in this post
To rename a remote repository from ‘origin’ to ‘destination’ issue:
$ git remote rename origin destination
$ ssh-keygen -E md5 -lf ~/.ssh/id_rsa.pub
2048 MD5:c1:16:02:e0:22:72:c5:ef:93:c1:2d:7c:22:3c:55:43 dkreling@dkreling (RSA)