Posts

Showing posts with the label Linux

Manage Dotfiles

What are Dotfiles? For those readers, who are not already familiar with the concept of Dotfiles, Dotfiles literally means files with names starting with a “.”, however, these files are somewhat special under UNIX environment, as they are hidden. They are used by a lot of softwares to customize the behaviour according to the needs of the user at the runtime. Therefore, these files can also be called Runtime Configuration files. Generally, these files are found directly under the user's home directory, however, some softwares prefer to place them under folders. Now-a-days, a lot of softwares is using the $XDG_CONFIG_HOME directory, which by default is the ~/.config directory. The files are mostly regular text files which can be edited by any kind of text editor. Some softwares though, prefer to generate these files using some sort of utility, like lxappearance for GTK themes.
Why is it important to manage Dotfiles? Usually, under Linux environment, most of the customization you do …

How to setup Git Server

GitGit is the leading version control system, currently used by most of the Open Source Softwares including Gnome and Linux Kernel to name a few. It basically helps developers maintain softwares with ease. It is considerably fast and reliable then other version control softwares. Git stores everything in repositories. To learn more about Git, check this awesome book by Scott Chacon and Ben Straub, Pro Git.
Hosted Git repositories A lot of componies promoting Open Source Softwares, provide hosted public git repositories for free. This repositories can be viewed by anyone, using Internet. Some of these companies also provide limited/unlimited private repositories, access of which is limited to authorized people only. Few of the most widely used of them are:
GithubGitlabBitbucket Why do you need git server? Sure, there are plenty of options out there, but some people prefer to host there own repositories for security and privacy purposes or for internal use only. For them, setting up git…

My Experience with Linux

Over two months passed since my last post. And this time too I’ll promise myself to update this blog ASAP.

After around 10 months with Linux, I’m more comfortable with it. Over this time, I’ve tried different distros varing from very stable ones to rolling release ones. In this post I’m going to talk about few of them.
Debian Over this period the distro that I’ve used the most is Debian. Its really good and very stable. Debian makes a good distro for servers. I’ve even used Debian cloud server for a while, and I’m using Debian on my home server everyday. This is also a light-weight distro, which will use less resources, so I’ll do fine on Netbooks or Old computers. My most favorite part is apt. Debian is one of the old distros which is being developed since 1993 and its development is not going to stop anytime soon. Also Debian project supports any given specific version for atleast 2-3 years. Thats the reason why a lot of distros use Debian as its base. Even Ubuntu is using Debian a…

Arch Linux Installation

Arch Linux A Linux distro which is commonly considered for power users. It provides a lot of customisation right from the installation process. Its very light-weight distro, and it install very few core packages at the time of installation. Also one get all the latest packages as Arch Linux is rolling release distro. Also Arch users get access to Arch User Repository aka AUR which is a comprehensive repository with tons of packages. One can say that AUR contain all the packages that you can find on any other distro.

But the installation process is little complicated as you don’t get any GUI installer instead you’ve to install it from command line only. So, here’s the step by step guide to install Arch Linux on your machine.
Steps Download the Arch Linux iso from here. Note that the iso is common for both 64 bit and 32 bit. Burn the iso into a CD or make a bootable usb from the iso downloaded and boot from it. Choose your architecture from the boot menu. Once you get to the commandlin…

How to setup SSH Server on Debian

This is a tutorial for setting up SSH server on Debian or distros based on Debain.
Steps: Install the openssh-server package.
$ sudo apt-get install openssh-server Configure it to start at boot.
$ sudo update-rc.d -f ssh remove $ sudo update-rc.d -f ssh defaults $ sudo update-rc.d -f ssh enable 2 3 4 5 For more security, you can change the default keys.
$ cd /etc/ssh $ sudo mkdir keys_orig $ sudo mv ssh_host_* keys_orig Now, generate new keys.
$ sudo dpkg-reconfigure openssh-server For more customisation, you can edit the sshd_config file.
$ gedit /etc/ssh/sshd_config After all the changes restart ssh service.
$ sudo service ssh restart Done!