Tag Archives: Ubuntu

How to enable & force HTTPS on Apache2 Web Server on Ubuntu

HTTPS Configuration (with self-signed certificate) “sudo a2enmod ssl” “sudo a2ensite default-ssl” With Apache2 now configured for HTTPS, restart the service to enable the new settings: “sudo service apache2 restart” Source: https://help.ubuntu.com/10.04/serverguide/httpd.html To force https: Enable mod_rewrite: “sudo a2enmod rewrite” Then … Continue reading

Posted in Uncategorized | Tagged , , , | 1 Comment

How to install basic GUI on Ubuntu Server and access it via VNC

For those who need basic & light-weight GUI for their Ubuntu Server, you can do the following: “sudo apt-get install xorg openbox” To easily access it via VNC: “sudo apt-get install tightvncserver” To start your VNC server, simply type: “vncserver” … Continue reading

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

Limit a Local System User Access to a Certain Folder when using SFTP on Linux (and disable SSH for him as well)

This situation might face a lot of us, if you have a certain file you want to share on your system using SFTP, but you don’t want that user to be able to: login via SSH and run any commands … Continue reading

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

How to get CPU Info of a Linux Machine

This worked with me in Redhat and Ubuntu-based distros: “less /proc/cpuinfo” you can get the number of processors easily if you don’t want to read a lot of text: “less /proc/cpuinfo | grep processor”processor : 0processor : 1processor : 2processor : … Continue reading

Posted in Uncategorized | 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