Category Archives: Linux

Password-less SSH Login to Ubuntu Server

On the client: ========================================================================================= socrat@socrat-laptop ~/.ssh $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/socrat/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/socrat/.ssh/id_rsa. Your … Continue reading

Posted in Linux, Ubuntu | Tagged , , , , , , | Leave a comment

How to configure network settings in CentOS (from dhcp to static)

It’s a bit different from what we’re used to do in Ubuntu, here are the instructions, assuming our network interface is eth0: Take a backup from the “/etc/sysconfig/network-scripts/ifcfg-eth0” file, e.g. by the following command: “cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak” Open the “/etc/sysconfig/network-scripts/ifcfg-eth0” file for … Continue reading

Posted in Linux | Tagged , , , , , , , | Leave a comment

How to use Tor with any Linux App

I currently prefer Chrome to Firefox, and I wanted to use Tor without having to download the whole tor browser bundle. Surprisingly, that was a piece of cake! All I did was the following: “sudo apt-get install tor” It runs … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

How to disable Guest Session Login in Ubuntu Trust 14.04

“sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf” Add the following line: “allow-guest=false” Save the file Enjoy! OR you can simply run the following command: ” echo allow-guest=false | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf” You can still Enjoy! 🙂 Source: http://www.noobslab.com/2014/04/thingstweaks-to-do-after-install-of.html

Posted in Linux, Ubuntu | Tagged , , , , , , | 4 Comments

How to get number of cores on your Linux Box

cat /proc/cpuinfo | grep “model name” | wc -l example output: 24 This means that you have 24 cores on your server.

Posted in Linux | Tagged , , , , , , , | Leave a comment