Archive for the ‘Uncategorized’ Category

Upgrading ownCloud installed in a Docker Container

Saturday, December 2nd, 2023

When a new version of ownCloud gets released, you should update your instance. To do so, follow these simple steps:

  1. Go to your docker directory where your .yaml and .env files exist.
  2. Put ownCloud into maintenance mode with the following command:

    docker-compose exec owncloud occ maintenance:mode --on
  3. Create a backup of the database in case something goes wrong during the upgrade process, using the following command:

    docker-compose exec mariadb \

    /usr/bin/mysqldump \
    -u root \
    --password=owncloud \
    --single-transaction \
    owncloud > owncloud_$(date +%Y%m%d).sql

    You need to adjust the password and database name if you have changed it in your deployment.
  4. Shutdown the containers:

    docker-compose down
  5. Update the version number of ownCloud in your .env file. You can use sed for it, as in the following example:

    Make sure that you adjust the example to match your installation.

    sed -i \
    's/^OWNCLOUD_VERSION=.*$/OWNCLOUD_VERSION=10.13.3/' .env
  6. View the file to ensure the change has been implemented:

    cat .env
  7. Start your docker instance again.

    docker-compose up -d

    Now you should have the current ownCloud running with docker-compose. Note that the container will automatically run occ upgrade when starting up. If you notice the container starting over and over again, you can check the update log with the following command:

    docker-compose logs --timestamp owncloud
  8. If all went well, end maintenance mode:

    docker-compose exec owncloud occ maintenance:mode --off

This is a copy of the below page:
https://doc.owncloud.com/server/10.13/admin_manual/installation/docker/#upgrading-owncloud-on-docker


HP Z Workstations for Data Science Briefing

Friday, April 30th, 2021

AI Practitioners spend 80-90% of their time on data processing & preparation. This labor intensive period is where Z by HP provides the greatest contribution to data science through GPU processing. Z by HP allows for data scientists to maximize their workflow output and move from analyzing data in hours and cycles to milliseconds per click.

Find the datasheet here.

Standard way to check if a file exist using standard C++ 17

Saturday, May 30th, 2020

Below example to check whether a file exists using standard C++ std::filesystem library

#include <string>
#include <filesystem>

bool is_file_exist( std::string& FileName ) {
	
	const std::filesystem::path p = FileName ;
    return ( std::filesystem::exists(p) );
}

We need g++-8 for this to work, and we must link against -lstdc++fs library.

HP Monitors and Laptops Stands Portfolio 2019

Friday, December 13th, 2019

Find below different types of monitos and laptops stands by HP to boost your productivity:

Installing Drupal 8 on awardspace.com

Saturday, December 10th, 2016

PHP version 5.5.38 is the correct version to use to avoid installation error messages.

HTC ONE m7 updated to Kitkat 4.4.3 in Egypt

Tuesday, August 19th, 2014

image

OpenERP 7.0 with full RTL Right-to-Left Support on openSuSE 12.1

Saturday, June 1st, 2013

Today, we installed the latest openERP 7.0 on our openSuSE 12.1 server. Also, we patched the new openERP 7.0 code similar to our post http://am4computers.com/wordpress/archives/258  to enable RTL support. As of now, all is working great with full support for Arabic and Hebrew.

Installing iFolder 3.8 on OpenSuSE 12.1 (or 11.4)

Friday, August 17th, 2012

This is a copy of the original post on http://yourlinuxguy.com/?p=916.

It looks like some people are working very hard out there to try and preserve iFolder for future versions of Opensuse.  To those people (the NoFolder crew, Ravi Kumar, etc.), I’m indebted; I simply would be at a loss without iFolder.  Yes, I use DropBox, and a couple other things, but there’s just nothing like iFolder for complete control over the server and the sync’d content.

But the sad fact is, it has suffered a bit of neglect as of late.  Okay, a LOT of neglect.  And you’re probably here because you have an Opensuse 12.1 (or 11.4) server, and you tried to install iFolder 3.8.x on it, and had some trouble.

Notes: I strongly recommend you see my old post about setting up iFolder 3.8 on Opensuse 11.1 for background and additional detail, as this post will be brief and to-the-point without much supporting detail.  All the work in this doc was performed on the x86_64 version of Opensuse, and was tested on both 12.1 and 11.4.

FIRST, you need a working Apache2 installation with SSL support. Find previous post  if you need help with this.

We need to install below packages :

ifolder3-enterprise-3.8.4.0.11091.1-6.2.x86_64

novell-ifolder-enterprise-plugins-3.8.4.10192.1-6.3.x86_64

And run all 3 configuration scripts and please note that you must use an alternative simias datastore location of /ifolder:

simias-server-setup
ifolder-admin-setup
ifolder-web-setup

NOTE:
When asked for server address, use a fully qualified server address as below :

Change :

Public URL: https://192.168.0.79/simias10

Private URL: https://192.168.0.79/simias10

to

Public URL: https://ifolder01.MyDomainName.com:52443/simias10

Private URL: https://192.168.0.79/simias10

…and now my external clients can connect via the ifolder client, and sync seems to be working.

NOTE 2 : Don’t use default server data folder. I use /home/iFolder/

A note about the next step: If you just stopped here, you’d be able to pull up the /admin page, but not log in; you’d get a red message saying that your password doesn’t match or whatever.  I see this error quite commonly out there…  So let’s change the FlaimWrapper softlink pointer to an existing location:

rm /usr/lib64/simias/web/bin/FlaimWrapper.so
ln -s /usr/lib64/libFlaimWrapper.so.0 /usr/lib64/simias/web/bin/FlaimWrapper.so

And lastly, restart stuff:

rcSuSEfirewall2 restart;rcapache2 stop; rcapache2 start

And that should do it!  Log in at /admin, configure some users, etc., etc., etc.  I’m guessing you are here because you know already how to *use* iFolder, just got stuck installing and configuring it, so I’ll not go into any usage detail.

By the way, the NoFolder.com page has some good troubleshooting tips, but if you follow these steps accurately, and you use the SAME hostname throughout the configuration, you should be fine.

See, it’s not that bad.  And it’s totally worth it.  Enjoy!
;)

Printer Friendly button for your website

Tuesday, November 16th, 2010

I stumbled upon a nice website which offers a print friendly button for your web page, add a button to your browser or just insert an URL and have it generate a customizable print friendly version for you.

A page can be sent to printer, converted into a PDF file or email to a friend.

Give it a try: http://www.printfriendly.com/

RTL support in OpenERP 5.0.11 and openSuSE 11.1 64 bits server.

Thursday, September 2nd, 2010

Today, we managed to implement a solution that allows RTL Arabic support for OpenERP 5.0.11 reporting engine on our openSuSE 11.1 64 bits server.

It has to do with enabling RTL in ReportLab, which is used by OpenERP to produce PDF reports. Also, OpenERP server code has to be patched to allow it to identify RTL and LTR test direction. OpenERP reporting engine is by default recognizes LTR only.

Support for unicode characters has to be enabled to allow the display of Arab and Hebrew characters.

No more details can be provided as although the solution is open source, we don’t have the permission from the author to publish it.