Tag: Linux
Linux: HowTo Identify Server ECC Memory Modules
You can get this information by visiting your BIOS setup menu. Another option is to use dmidecode command to dump bios memory information from a shell prompt: # dmidecode –type 16 # dmidecode 2.11 SMBIOS 2.5 present. Handle 0x0016, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: Single-bit ECC Maximum Capacity: 64 GB Error Information Handle: Not Provided Number…
OwnCloud Change Data Directory
Stop your webserver Check if your config.php already contains a datadirectory entry. If it does, remember that location (let’s assume it’s ‘/var/www/owncloud/data’ for now). Change or create the “datadirectory” entry in config.php file, so that it points to wherever you want to have your data from now on. Assuming the directory you want to move the data folder to is ‘/media/usbdisk/ocdata’, your config.php should look like this after the change:…
How do I find out what ports are listening on?
sudo lsof -i -P | grep -i “listen”
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…
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…
- 1
- 2