Summer Nights

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

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 and forward it over ssh through xming by: rdesktop localhost:3389

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 […]

Share Data using FTP Server

First create an appropriate user, with no shell access, belonging to ftp-users group and chrooted jail at /srv/ftp/xxxx: useradd ftp-userxx -G ftp-users -s /bin/false -d /srv/ftp/xxxx Now assign a password to the user, and make it the owner of the shared folder: passwd ftp-userxx chown -R ftp-userxx /srv/ftp/xxxx Now copy the files to be shared […]

Reset USB 3.0 Device from the Linux Shell

If you are getting errors like: cdc_acm 3-11:1.2: acm_submit_read_urb – usb_submit_urb failed: -12 or xhci_hcd 0000:00:14.0: ERROR no room on ep ring or tty_port_close_start: tty->count = 1 port count = 0. then most probably xhci (USB3) module is causing this problem. Generally you can fix this problem (at least temporarily) by removing and re-inserting the […]

Previous Posts