Toms Online Notebook Sharing my stuff.

Raspberry Pi2 -getting setup

by tgutwin


Posted on Tuesday Jan 26, 2016 at 08:27PM in Technology


RaspberryPi IconGetting Fedora 21 setup and configured to comfortably work with Java on my new Raspberry Pi2. My last entry desribed the install.

I will describe how I configured things to make it efficient to test and develop Java on my Pi2:

  1. Boot to multi-user commandline (and how to start the graphical desktop if needed)
  2. Samba shared directories
  3. SSH without password from my workstations

Read More

My New Raspberry Pi2 running Fedora 21 with Full JAVA JDK

by tgutwin


Posted on Tuesday Jan 26, 2016 at 08:23PM in Technology


Raspberry IconI Got a Raspberry Pi2 ! It has a 900MHz quad-core ARM Cortex-A7 CPU  and 1GB RAM.

I first tried noobs with Debian and it ran out of the noobs box very well.  The noobs version of Fedora DID NOT because it was not built for the new version of the ARM processor in the Pi2. That was no big deal because thanks to user clivem on the Pi Forums an image was avaialble.  See the forum link for the details. It is a full F21 version that is called FIDORA.

It was very easy to get this working. It is Fedora 21 for the ARM, with full yum repo support including rpmFusion.

Read More

My Onkyo NR-5008 AVR out for repair

by tgutwin


Posted on Monday Jan 25, 2016 at 06:32PM in Technology


NR5008My Onkyo NR-5008 receiver had been showing signs of a well documented hardware problem for months.

  • No speakers show up as being connected. 
  • The network setting menu item is also grey'd out.

See http://www.avsforum.com/t/1455911/onkyo-hdmi-failures/180#post_24625838 for the details.

Since I am the developer for the Java implementation of the Onkyo eISCP, this is a big problem for me :(

Read More

Small PHP/OwnCloud issue during Fedora 20 to 21 upgrade

by tgutwin


Posted on Monday Jan 25, 2016 at 06:30PM in Technology


After succesfully upgrading F20 to F21 using Fedup (on my server); my Owncloud CRON install was not working.php logo


Cron entry looks like:


*/10  *  *  *  * apache php -f /var/www/html/owncloud/cron.php


So I tried it on the commandline and an error told me that the new
upgraded version of PHP had a change in the default setting (in
/etc/php.ini)  for always_populate_raw_post_data. It told me to set it to:


always_populate_raw_post_data = -1


The cron now runs without error.


Upgraded Fedora 20 to 21 with Fedup

by tgutwin


Posted on Monday Jan 25, 2016 at 06:29PM in Linux


Fedora LogoSuccessfully went through a workstation upgrade  Fedora 20 --> 21 using fedup instructions at https://fedoraproject.org/wiki/FedUp

The only issue I had (and expected ) was an nVidia driver problem that was easily fixed.
F21 installed version 346 but my GT9600 based card needs the 340.


<ctl>-<alt>-F2


sudo yum remove xorg-x11-drv-nvidia xorg-x11-drv-nvidia-devel kmod-nvidia


sudo yum install xorg-x11-drv-nvidia-340xx akmod-nvidia-340xx kmod-nvidia-340xx


rebooted


Success!


My WebAPP/Archiver for Rainforest Eagle Messages

by tgutwin


Posted on Monday Jan 25, 2016 at 06:29PM in Technology


Announcing PowerEYE, your own WebAPP to access & archive your Rainforest Eagle power meter data (privately) to your own computer.

http://powereye.webarts.ca

  • Do you have a new smart meter from your power utility?
  • Do you also have a Rainforest Eagle energy access gateway device to that talks to your meter and collects your power & energy usage data?
  • Do you also want more infomation from your Eagle or have concerns about the privacy of sending your data over the internet just to see some detailed usage charts or download your data?
  • Do you also have a UDI ISY-994 home controller that you want to control or send the Rainforest Eagle messages to?

Then this might be of interest to you...

Read More

Change Default (bootup) Runlevel on F17 / MythTV box

by tgutwin


Posted on Monday Jan 25, 2016 at 06:27PM in Technology


fedora.pngF17 has not moved fully to systemd (as doc'd on https://fedoraproject.org/wiki/Systemd), so to change the default run level use the following commands:

Go to the non-graphical multi-user commandline bootup:

rm -f /etc/systemd/system/default.target;ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

 go to the full graphical bootup:

rm -f /etc/systemd/system/default.target;ln -s /lib/systemd/system/graphical.target /etc/systemd/system/default.target

Read More

Java Changed security permission for DERBY network socket

by tgutwin


Posted on Monday Jan 25, 2016 at 06:25PM in Technology


I just realized that my Apache Derby database had stopped listening on its DB port 1527.Apache Derby


It took a bit of tracing but soon found
that a Java runtime policy had changed to be more restrictive than
before. It now restricts java apps to create and listen to IP ports by
default.


The FIX:
add the follwoing to the end of the java.policy file in the jre\lib\security dir


grant {
permission java.net.SocketPermission "localhost:1527", "listen";
};


Thats it. the derby network server now starts as usual.


Stunnel to Gmail on Fedora 20 with systemd

by tgutwin


Posted on Monday Jan 25, 2016 at 06:24PM in Linux


How to setup stunnel to simply redirect a non-SSL email client to send mail through a Gmail or (Google Apps) account. Installed on Fedora 20 (or o other Fedora with systemd) as a systemd.service.

I have some devices in my network that are not capable of SSL email required by Gmail accounts. No problem stunnel can easily wrap the messages in SSL from GMail. Stunnel can do soooo much more, but for this simple usage, the setup is very easy.

1) yum install stunnel

2) edit the /etc/stunnel/stunnel.conf to look like...

client = yes
pid=/var/run/stunnel.pid

[ssmtp]
accept  = YOURSERVERIP:465
connect = smtp.gmail.com:465

Make sure to change YOURSERVERIP to your own IP addr.


3) create a systemd.service file to start and autostart stunnel at startup:

[Unit]
Description=Stunnel SSL Tunnel
After=syslog.target
After=network.target

[Service]
Type=simple
PIDFile=/var/run/stunnel.pid
ExecStart=/bin/stunnel /etc/stunnel/stunnel.conf

# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=30

[Install]
WantedBy=multi-user.target

4) Start stunnel with   systemctl start stunnel.service

5) enable it to autostart   systemctl enable stunnel.service

6) send a test email, but point your client at YOURSERVERIP with your Gmail user password.

Works for me!


New Zoneminder install on Fedora20 (from Source)

by tgutwin


Posted on Monday Jan 25, 2016 at 06:22PM in Technology


I updated my Zoneminder installation to the latest version (1.27 master branch) from source at GitHub. My intention is to get the latest version that has an updated FFMPEG library and the libVLC. My original intention was to also building x264 and ffmpeg from source to ensure I have all codecs compiled in from the start.I did not have to do that because the Fedora20 Packages from RPMFusion already have what I needed (that makes life easier). I have done this before (see http://tom.webarts.ca) for by past experiences.

I am also re-installing the OS - Fedora20 to get the latest security updates.

The Zoneminder wiki has pretty good instructions. http://www.zoneminder.com/wiki/index.php/Documentation#Installation_from_Source
The forum also has a very good summary of installing from RPMs http://www.zoneminder.com/forums/viewtopic.php?f=9&t=19119

This post documents my steps

Read More

Installing Apache Roller in Jetty 9

by tgutwin


Posted on Sunday Jan 24, 2016 at 05:15PM in Technology


jettyIcon.pngsteamroller5.jpgI have been using Google for my Web Based notebook Blog for a few years, however, it did not have all the features I wanted to use; like commenting and a tag cloud. SO, I installed my own weblog software - Apache Roller. I also looked at WordPress, but I wanted a Java only solution. You are looking at it right now. This is how I got it running on Jetty.

I am going to point out how easy it was to install in a simple Java Servlet engine like Jetty, without a full Application Server. The Roller instal docs say that all it needs is a servlet engine, but then it goes on to only have examples for installing in full J2EE Application Servers (JBOSS, Tomcat, Websphere).

I use Jetty 9 on its own, without a full App server, and it was very easy to get going. My production DB is MariaDB (mySql) on Fedora 23.

Read More