Redis Caching with OwnCloud

While setting up an OwnCloud server for my company, I couldn’t really find any good way to cache, and with the Ubuntu repos having an old version of Redis, meant of course it couldn’t be used for best performance and stability. I tried installing it manually from some guides I found, and trying to see OwnCloud’s documentation and was last using an Apcu and Redis (older version) combined so I stumbled upon a guide from which actually resolved my issues of an old Redis, and dramatically sped up my server.

This guide is also scripted for an automated install, you can download the script here.

    $~: sudo php5dismod apcu && sudo apt-get purge php5-apcu -y
    $~: rm /etc/php5/mods-available/apcu-cli.ini
    $~: sudo apt-get purge --auto-remove memcached -y && php5dismod memcached
    $~: sudo apt-get update && sudo apt-get install build-essential -y

Continue reading “Redis Caching with OwnCloud”

Tip for OwnCloud

I was building my OwnCloud file storage on Ubuntu 14.04LTS (upgrading to 16.04.1 LTS this summer), which if you haven’t heard of definitely check out it is the most amazing cloud storage program and you control it yourself. It even offers server side encryption, and tons of options to make it how you want it for you or your company. See it at

But I was coming across an .htaccess issue that kept popping up so I modified Apache so much and it still appeared. So I finally stumbled across my fix. Move the OwnCloud data directory out of the default location. So here are the steps I took

Stop apache2

sudo service apache2 stop

Edit config file in default location

sudo nano /var/www/html/owncloud/config/config.php

Change default location to new location

(pick one, I chose /mnt/owncloud_data but put it anywhere you like)

Move the data folder to new location

sudo mv /var/www/html/owncloud/data /new/data/directory/here

if required change permissions

sudo chown -R www-data:www-data /new/data/directory/here

Restart apache2

sudo service apache2 start

Voila .htaccess issue is GONE!

Why do Offices insist on using Free Anti-Virus?

In all my years of working on computers since I was 4 years old, beginning with my father who also worked on computers. One thing has always made me smack my head harder than anything. How so many individuals, and offices of all kinds do not pay for Anti-Virus. I have walked in to so many offices, and especially doctors offices that are infected to high hell because they do not want to pay for Anti-Virus. Free Anti-Virus I have found to be at best 70% effective in catching malicious things. I have always favored deploying Eset Smart Security for home and business, as I find it to be one of the most reliable suites.

Most offices use the very poor excuse of “saving money.” Let me explain why that is a poor excuse. 90% of the time you could avoid having a person come out to clean a computer of viruses by merely being proactive. Seeing as I charge anywhere from $50-$125/hr depending on the contract, and Eset Smart Security for 6 devices costs only $84.99 for a year as of right now. It’s really easy to explain why it is completely stupid to stick with free anti-virus that doesn’t get the job done completely.

In all honesty you should have a few tools in all of your networks.

  1. Anti-Virus (I recommend Eset Smart Security)
  2. Firewall (hardware one is best for Offices)
  3. Malwarebytes Anti-Malware (free version is fine if you manually run once a month)
  4. Microsoft Enhanced Mitigation Experience Toolkit (EMET) this plugs a bunch of potential holes in Windows

If you are not paying for Anti-Virus you’re most likely infected unless you know what you are doing. I have become so familiar with computers I know the signs of an infected computer without even having to do a Virus Scan. So do yourself a favor, protect yourself.

Fixed Nvidia GPU settings for GNU/Linux Home Theater PC

Hello everyone, so I have a home theater PC I built myself that is running completely on GNU/Linux. So I ran into an issue at my Grandmothers house when I brought it with me, and xorg.conf would be deleted on each reboot. Plus the GPU would have significant tearing on video at 720p and 1080p. I had previously fixed the video tearing.

If you do not already have the nvidia drivers installed install them with the code below

sudo apt-get update
sudo apt-get remove nvidia-*
sudo apt-get install nvidia-361 nvidia-settings

It appears there was a bug in the Xubuntu 14.04.3 LTS I use (also applies to Ubuntu, Kubuntu, Lubuntu, and Linux Mint I believe as well) that it kept deleting it. I am pretty sure this is due to the fact I had it installed prior, so the nvidia-xconfig needed to be called again. This is easily remedied in machines with an Nvidia GPU, and the proprietary Nvidia driver by running

sudo nvidia-xconfig

This will create a barebones xorg.conf that will get it to do basic functions. Now the additions to the xorg.conf to fix video tearing for my Nvidia 720GT (1GB DDR3 by Gigabyte if wondering)

Now here is where we need to start editing xorg.conf. So bring up your favorite editor as root. In my case I like nano in terminal, notepadqq and emacs for GUI, and open xorg.conf

sudo nano /etc/X11/xorg.conf

This should now bring up your xorg.conf. So there is one section that needs two options added and two sections at the bottom that need to be added

Look for the “Device” section, and it should look similar to this with your GPU model instead of my Nvidia 720GT 1GB DDR3. Each of the “Option” additions, are one line each.

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce GT 720”
Option “RegistryDwords” “PowerMizerEnable=0x1; PerfLevelSrc=0x3322; PowerMizerDefaultAC=0x1”
Option “TripleBuffer” “True”

Add these two sections at the bottom

Section “DRI”
Mode 0666

Section “Extensions”
Option “Composite” “Enable”

After this your video should be tear free. Tested on Xubuntu GNU/Linux 14.04.3 LTS w/ custom 4.1.13 amd64 kernel, Nvidia-361 drivers, to a TV with HDMI

Introducing the Facebook Killer

I created this blog with the sole intention of being able to stop relying on facebook so much. In my quest to look and see if there was anything better, I stumbled across And it has all the things that were good about Facebook. But it is so much more clean, and modern. Tsu is like a combination of Twitter and Facebook in a very great way.

How Looks when you login. Content is brought right to you. It’s like a combination of Twitter and Facebook
Content is brought to you on Tsu, you don't have to search for content like on Facebook.
Content is brought to you on Tsu, you don’t have to search for content like on Facebook.

Not to mention there is one major difference between Tsu and Facebook, Tsu will pay you for your content. You read that right! Tsu pays you for your content. See Facebook gets rich off of people selling their soul to the devil that is Facebook, without anything in return. Ok Facebook did give me censorship, grief, and headache in return. If people aren’t willing to share content for the sake of just getting their own content out there, Facebook won’t make any money. So it’s the same flaw as MySpace had, there is really no incentive for you to stay on Facebook, or even to keep using it. I have to say Richard Stallman was completely right about Facebook. It is not a safe platform for journalists like me. While I doubt Tsu would still get Stallman’s love, I think it’s better because at least we are getting something out of us making ourselves public. Which to me being a more libertarian individual, appeals to me. I have been censored by Facebook over the years for Pro-Israel posts, things that didn’t violate Facebook terms, things other people have posted on pages I was merely a staff member of, and at times it appears as if I am being punished merely for the association with some people who are more outspoken.

Facebook is threatened by Tsu, and a declining number of people sharing on Facebook
Facebook is threatened by Tsu, and a declining number of people sharing on Facebook

One thing that is interesting, is it seems many of the people who are on Tsu, are people who were in a similar situation as me. Where we have been wrongfully punished by Facebook. My prediction is that as time goes on, the problems with Facebook will grow and grow. Facebook is really threatened by Tsu, to the point they were blocking until news outlets started picking it up. As Richard Stallman pointed out, this is not Facebook’s first attempts at censorship.

Tsu seems to be the response of people who are disappointed with Facebook
Tsu seems to be the response of people who are disappointed with Facebook

If you want to try out, my short name is Alonmg

So I finally moved wordpress from a Raspberry Pi

Yes… When I first started playing with wordpress I started on a Raspberry Pi zero. But after my account on facebook being wrongfully banned. I am ready and willing to embrace true freedom via the Free, Libre, and Open Source Software movement in the form of WordPress.

So I have connected this to my account

Hello everybody

This is Alon’s first post. So with this post I hereby declare my deprecation of the use of, and dependence on Facebook. I have decided to regain my independence and freedom from proprietary social media services. What prompted this all? Facebook has been wrongfully targeting and attacking me for the past few months. I have been wrongfully banned for things I haven’t even posted, or that don’t even violate Facebook terms.

The latest was obviously a bot that spammed about 18 accounts on Facebook were all attacked and taken down via this malicious attack. I was banned for 30 days, of which I have 26 remaining as of now. Facebook has no appeal system or way to get in contact with staff to resolve this. So I am hereby deprecating my use of Facebook. Until such a time as they are not such a monopolistic entity with little to no oversight, so as to prevent issues like this from happening.