Author Archives: Kaven Gagnon

avatar

About Kaven Gagnon

System & Network Architect

Linux : Nginx error 413 Request Entity Too Large

Having this error while uploading large files with Nginx? 413 Request Entity Too Large or ; [error] client intended to send too large body 1. Edit the main Nginx configuration file : /etc/nginx/nginx.conf 2. Append the following and set the value to meet your needs (this example assume that the max upload file size is… Read More »

Linux : Ubuntu apt-get update Hash Sum mismatch

Experiencing the following error while running “apt-get update” on your Ubuntu server? W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dist/precise/restricted/source/Sources Hash Sum mismatch E: Some indes files failed to download. They haev been ignored, or old ones used instead. Just run the following command : sudo rm -Rf /var/lib/apt/lists/* And run the update command again : sudo apt-get… Read More »

Linux : vsftpd refusing to run with writable root inside chroot

After updating vsFTPd (version 3.0.2 +), you may have noticed the following error while trying to log using a chrooted account : 500 OOPS: vsftpd: refusing to run with writable root inside chroot () This error would only happen if you have the following parameter enabled (chroot users into their home directory) : chroot_local_user=YES The… Read More »

JunOS : How to reset root password

The following procedure is about reseting root password and preserve the current configuration on your Juniper device running JunOS. 1. As soon you see “Hit [Enter] to boot immediately, or space bar for command prompt.” message, just press the space bar as indicated : FreeBSD/PowerPC U-Boot bootstrap loader, Revision 2.1 (marcelm@apg-bbuild01.juniper.net, Wed Feb 6 11:23:55… Read More »

How to disable SSL v3 for Microsoft IIS Server?

Due to the recent POODLE (Padding Oracle On Downgraded Legacy Encryption) SSLv3 vulnerability discovery, you may want to disable it to protect you and your visitors against this exploit. Here is the procedure for Windows Server/IIS. Note that older/obsolete browsers are not implementing TLS, shame on users for not doing their updates then! 1. Open… Read More »

Linux : Yum Error: database disk image is malformed

Having this error message while running a “yum install” or “yum update” command on your RHEL/CentOS Linux system? Error: database disk image is malformed 1. Simply run the following command to fix this issue : yum clean all 2. Alternatively, if the problem is still persisting, then try to move the RPM database to a… Read More »

Web : Customize ownCloud slogan footer text

Here is some indication how to customize the footer text “ownCloud – web services under your control”, title, etc. This can be achieved easily editing the following file under your ownCloud root folder : /lib/private/defaults.php Then, locate the following starting at line number 31 : $this->defaultEntity = “ownCloud”; /* e.g. company name, used for footers and… Read More »

Category: Web

Windows : Blocking IP from command line

Here is two commands to wither block a single or group of IPs on the Windows Firewall using the command line. Please note that you will need elevated privileges to run these commands. 1. Block a single IP (or subnet*) netsh advfirewall firewall add rule name=”IP Block” dir=in interface=any action=block remoteip=<IP_Address>/32 *You will need to… Read More »

Linux : Configuring SSL certificate with Nginx

Setting up SSL certificate with Nginx is quite easy, however slightly differ from the standard configuration since it require that the server certificate and the certificate authority (CA) to be bundled together within a single PEM file. NOTE : See this article if you are looking for the procedure how to generate a certificate key… Read More »

JunOS : How to configure automated configuration backup

For sure, if you are concerned about your network you will make sure that you always have a good backup of your configuration file somewhere. Fortunately, JunOS have a nice built-in backup function through FTP or SFTP. It allow you to do an automated backup at defined time interval and even more, every time you… Read More »