Primes Table

The First 1,000 Primes

OwnCloud cURL is using an outdated NSS version (NSS/3.19.1 Basic ECC)

Enable Web DAV nano /usr/local/apache/conf/httpd.conf #Include conf/extra/httpd-dav.conf (Uncomment This Line) #LoadModule dav_module modules/mod_dav.so (Uncomment This Line) #LoadModule dav_fs_module modules/mod_dav_fs.so (Uncomment This Line) #LoadModule auth_digest_module modules/mod_auth_digest.so (Uncomment This Line) nano /usr/local/apache/conf.d/owncloud.conf <Limit GET POST> order allow,deny allow from all </Limit> <Limit PUT DELETE> order allow,deny allow from all </Limit> Save and restart apache service httpd restart Upgrade CURL rpm -Uvh http://nervion.us.es/city-fan/yum-repo/rhel6/x86_64/city-fan.org-release-1-13.rhel6.noarch.rpm yum clean all yum install libcurl and then restart the…

OwnCloud Enable MS Office Online Edit Support

1. Previews currently are only supported on non-windows systems 2. LibreOffice/OpenOffice needs to be installed Ubuntu/Debian -> apt-get install –no-install-recommends libreoffice-writer CentOS -> http://diegolamonica.info/how-to-make-l … entos-6-3/ 3. The correct path to your libreoffice / openoffice binary needs to be configured (check the manual of your system how to find it) 4. Make sure that the user running your webserver/PHP process is allowed to execute this binary 5. The PHP functions…

WD MyCloud Install OwnCloud

echo deb http://ftp.us.debian.org/debian/14 jessie main >> /etc/apt/sources.listapt-get update apt-get install php5 php5-gd service apache2 restart apt-get install php5-mcrypt php5-imagick /etc/init.d/apache2 restart nano /etc/php5/apache2/php.ini   Ctrl + w and type ‘timezone’ [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone5 date.timezone =  Asia/Seoul     —————————————————————————— and type like above Ctrl + O , enter, Ctrl + W /etc/init.d/apache2 restart > /etc/apt/sources.list echo deb http://ftp.us.debian.org/debian/ wheezy main…

FATAL: Module ip_tables not found.

FATAL: Module ip_tables not found. iptables v1.4.14: can’t initialize iptables table `filter’: Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. first try Code: sudo apt-get update then Code: sudo apt-get upgrade Reference

letsencrypt

Download the Let’s Encrypt Client sudo yum install epel-release sudo yum install python-certbot-apache Set Up the SSL Certificate certbot –apache certonly Reorganizing your Virtual Hosts You can Set the following path in the /etc/httpd/conf.d/ssl.conf file: SSLCertificateFile /etc/letsencrypt/live/caock.net/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/caock.net/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/caock.net/chain.pem IF you are using VirtualHost, you can set it in your VirtualHost <VirtualHost *:443>         ServerName caock.net         DocumentRoot /var/www/caock.net         ErrorLog /var/log/apache/caock.net/error.log         CustomLog /var/log/apache/caock.net/access.log combined   SSLEngine on SSLCertificateFile /etc/letsencrypt/live/caock.net/cert.pem SSLCertificateKeyFile…

Install and Update OpenSSL on CentOS 6 / CentOS 7

1. Get the current version with “openssl version” and “yum info openssl” command : # openssl version OpenSSL 1.0.1e-fips 11 Feb 2013 # yum info openssl Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * Webmin: download.webmin.com * base: centos.netonboard.com * epel: ftp.cuhk.edu.hk * extras: centos.netonboard.com * updates: ossm.utm.my Installed Packages Name : openssl Arch : x86_64 Version : 1.0.1e Release : 30.el6_6.7 Size : 4.0 M Repo :…

Add User to Sudoer

Use following command to edit the sudoer file $ sudo visudo The sudo command is configured through a file located at /etc/sudoers. Note: Never edit this file with a normal text editor! Always use the visudo command instead! Because improper syntax in the sudoers file can leave you with a system where it is impossible to obtain elevated privileges, it is important to use the visudo command to edit the…

How to disable SSH timeout

Inactive or idle SSH connections are normally disconnected by the server after a certain period of time. This depends on how the SSH server is configured, and upon disconnection the SSH client will be prompted with a message similar to the following; Read from remote host oseems.com: Connection reset by peer Connection to oseems.com closed. This could be avoided by changing the SSH server’s configuration, or tricking the server from…

OpenSSH Public key not Working

Make sure the permissions on the ~/.ssh directory and its contents are proper. When I first set up my ssh key auth, I didn’t have the ~/.ssh folder properly set up, and it yelled at me.