Summer Nights

A blog on embedded and real-time systems as well as on general computing issues

Linux

Using Let’s Encrypt Free SSL Certificates

apt install software-properties-common add-apt-repository ppa:certbot/certbot apt update apt-get install python-certbot-apache certbot-auto -d www.domain.com -d subdomain.domain.com -d subdomain2.domain.com  -d domain.com This should install the certificates for all the domains in their respective sections (443) in the apache config file. Now the certificates should be renewed every 90 days: Test renewal by doing a dry run: certbot renew –dry-run If […]

Updating Nameserver (bind9) Entries for a Sub-Domain in Ubuntu

Edit /etc/bind/db.domainname.com Increase the serial number and add the following line: subdomain IN A xx.xx.xx.xx named-checkconf service bind9 restart

Creating systemd services for Confluence and Jira

Place the following two files (confluence.service and jira.service) under /etc/systemd/system folder. confluence.service [Unit] Description=Confluence After=mysql.service [Service] Type=forking User=confluence PIDFile=/opt/atlassian/confluence/work/catalina.pid ExecStart=/opt/atlassian/confluence/bin/start-confluence.sh ExecStop=/opt/atlassian/confluence/bin/stop-confluence.sh [Install] WantedBy=default.target jira.service [Unit] Description=Jira After=network.target ossec.service apache2.service mysql.service confluence.service [Service] Type=forking User=jira PIDFile=/opt/atlassian/jira/work/catalina.pid ExecStart=/opt/atlassian/jira/bin/start-jira.sh ExecStop=/opt/atlassian/jira/bin/stop-jira.sh [Install] WantedBy=default.target Enable and start services using the following commands. The services will be enabled on next bootup. […]

Installing Redis for Increasing Owncloud and Gallery Performance

Download, make, test, and install latest stable Redis: cd /tmp curl -O http://download.redis.io/redis-stable.tar.gz tar -xvf redis-stable.tar.gz cd redis-stable make make test make install Check that it is running by:apt install php-redis redis-server -v Install Redis support for php apt install php-redis Check that its working and enabled: php –ri redis Add the following to /var/www/owncloud/config/config.php: […]

Manually Upgrading the owncloud Instance on Your Linux Server

As I have to do it every now and then, here are the important steps of the upgrade workflow: Backup the whole folder (/var/www/owncloud) using, e.g. cp -a owncloud backup_folder Activate the maintenance mode (in owncloud folder): sudo -u www-data php occ maintenance:mode –on Download the new owncloud archive and “replace” the existing folder (including […]

Accessing Remote Desktop Served by VBoxHeadless via SSH

– Make sure Xming is installed and connectable via SSH (putty) on Windows – Execute the following, given that the name of the virtual machine is “Windows 7”: VBoxHeadless –startvm “Windows 7” You can connect to this machine via rdesktop locally, using swiss german keyboard, and forward it over ssh through xming by: rdesktop -k […]

Solr (6.5.0) and Dovecot (2.2.22) on Ubuntu 16.04

Solr Configuration Download solr binary from http://lucene.apache.org/solr/downloads.html, extract into a temporary location and run (you still need to reference to the original binary!) ./install_solr_service.sh solr-6.5.0.zip -i /opt -d /var/solr -u solr -s solr -p YOUR_SOLR_PORT to install the solr and run as a service. You can choose the solr port as you like. Important: the binaries […]

Setting Up SVN on Local Network

Assuming svn is installed on both computers (use apt-get install subversion) On the Server: Create the root repository container folder, e.g., /usr/src/my_data/svnrepos Create the user that you’ll use to access the repository remotely. adduser –no-create-home –ingroup subversion rpi (select passowrd. Create group subversion beforehand if needed) smbpasswd -a rpi(use the same password if you like) […]

Installing a new ssl Certificate on your own Linux Server

I use startssl as they provide an excellent free ssl certificate for private use. You can choose any that you like. Register on startssl and start domain validation process Once, the domain is validated, e.g., via email, follow these steps to create an ssl CSR (certificate request) openssl req -newkey rsa:2048 -keyout yourdomainname.key -out yourdomainname.csr […]

Using sshfs to mount Linux shares on Windows over ssh/Putty

For really long time, I’d been looking for a simpler way to access Linux shares on Windows over ssh. It’s tedious process to map them via Samba/CIFS driver on Windows that requires setting up a virtual network adapter to route the requests via Putty to the remote server. In enterprise environment, you’ve issues with this […]

Previous Posts