Tag Archives: Programming

Tweaking ownCloud’s Calendar

New goats are settling in, so let’s get back to some Linux fun!

We love ownCloud here on the farm, and have written several blog entries about it. One thing about this wonderful software that has always made me crazy, was that the calendar application used a colour to highlight the current day, that we just couldn’t see!

ownCloud Calendar

ownCloud Calendar

When my FLux software would cut in, the barely visible colour would not be visible.

Of course like any software, you can tweak it to your liking in just a few steps!

First open your file browser as an administrator and head to your /var/www/owncloud/apps/calendar/js directory and then open the Calendar.js file with your favorite text editor.

Caja as Superuser

Caja as Superuser

Then do a quick search for the current colour, in this case #FFC and change it to whatever you like! In the example below, I changed it to #f4e71d

Revised background colour

Revised background colour

Of course, it’s possible that if ownCloud does an update of that file, you will lose your fix, but it’s simple to change again!

I should note that really, the proper place to fix this problem is in the themes, changing the colour in the style sheet. I’d done that without success, which is why I went ahead and changed it in the javascript file instead…

 

Learning: Bash Scripting Is Your Friend

Linux is a very powerful operating system. and if you’re not using it, you really should be!

That said, once you get your new Linux machine up and running, consider learning how it actually runs!

By learning Bash, or shell scripting, you open up tons of new doors into your computer. You can use scripting to do all kinds of useful things. I use scripts to prune system logs, update multiple machines on my network at once, and lots more.

The best place to learn Bash, is the wonderful Internet source: Advanced Bash-Scripting Guide

You can use the web site above, or from your Package Manager, you can do a quick search for, and then install: abs-guide

Package Manager, installing abs-guide

Package Manager, installing abs-guide

The author of this great tutorial, assumes that you have no experience at all with shell scripting. The site or software will take you step by step in how to write simple, and later more complex shell scripts.

Go at your own pace, understand the current lesson, then click Next  at the bottom of each page and keep going! The site has dozens and dozens of Bash scripts, that you are free to use, modify, and enjoy.