Category Archives: Linux

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

Mount NTFS manually on Ubuntu Linux Server

First, list all the ntfs drives you have: “fdisk -l | grep NTFS”, example output: /dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT /dev/sda2 206848 409599999 204696576 7 HPFS/NTFS/exFAT /dev/sda3 409600000 976957421 283678711 7 HPFS/NTFS/exFA Second, create a folder to mount … Continue reading

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