Site Sponsors:
Backing Up Files Across Multiple Devices 
There you have them - sitting in a box. --From lots of CDs / DVDs, to far too many USB sticks to contemplate.

Rather than sitting there - waiting for us to toss them out - wouldn't it be nice if we could use them to backup our 'stuff?

Backup Splits

Much like in the days when we had lots of drive-tapes, the challenge is to split a `too-big` collection of files, across a `too-small` series of media. A problem almost as old as computing itself, fortunately all POSIX systems come with a program called `tar`!

sudo mkdir /d_backup 2> /dev/null
sudo chmod 777 /d_backup
cp $0 /d_backup
cd /d_backup
name=`date +d_drive_%Y_%j.tar`
echo Creating $name from $0
tar -cf ./$name /d_drive/
split -d -b 4480m ./$name

In the above, my task is to routinely back-up /d_drive into a folder named /d_backup. Once created, I want to split a julian-dated backup file into 4GB slices, from there to manually burn them out to a 2nd generation DVD drive. (*)

Splits Restored

To restore the files, all we need do is to (1) undo the `split,` by copying (2) all of the media-content to the hard drive, then (3) un-tar the concatenation:

cat * > d_drive.tar
tar xvf d_drive.tar

(*) Note that while the above `split` uses 4480 for the splits, that one should adjust the size to match the least-common size-denominator for any and all external media.

Sharing is caring!


[ add comment ] ( 27 views )   |  permalink  |  related link
Downgrading Java on Ubuntu 16.x 
Just a quick note to let everyone know that - after installing LTS 16.04 (so far a very pleasant & stable release - recommended!) that I discovered that the default JDK ("9 internal") does not work.

java -version
openjdk version "9-internal"

--The failures are so bad, that the kernel actually dumps core!

(Forgive the imp, yet note the bug -Halloween is around the corner!)

Sadly, removing the "9 internal" by conventional means results in only a partial removal... very nasty. What will work however, is to remove everything via a hand-grenade:

sudo apt remove --purge "^openjdk.*"

Followed by a dependency purge:
sudo apt-get autoremove

Then re-install a version that actually works:
sudo apt-get install openjdk-8-jre

Ultimately, once we have what we need installed, don't forget to associate that new JRE by right-clicking on a .jar file, so as to:

In addition to those old 'ol reliable versions of Oracle (I like to test under many JVM's), here is the OpenJDK that worked for me on LTS 16.04.1:
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

Sharing is caring!


[ add comment ] ( 268 views )   |  permalink
Helicopter Attack 
It was Pope Innocent the 3rd who first noted that a little knowledge is a dangerous thing.

Whilst we can be confident that he was not talking about the Internet at the time (he lived in the 18th century ;), for the record I just wanted to let those whom might find that their site is being hijacked know about the quick fix.

Not Found

The requested URL /dom_s9k/helicopter-attack.php was not found on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at Port 80

Hacked as it was by obvious & rank noobs (i.e. they were unable to do anything else to my server and their date + time stamp allowed me to pinpoint their IP Address), by way of a mindless diversion this day I noted that Google Analytics had been telling me that allot of my pages were presently being 404'ed.

After looking at my .htaccess, I noted that the date was no where near when I had last messed with it's content. Indeed, since I had recently deleted the same for similar demonstrative reasons, I decided to blow the silly thing away, then re-add a new, access-constrained, .htaccess file in it's stead.

(original quote was in Latin - might have gotten it wrong ;)

So for the 'butinski who thought that it was being smart, please allow me to thank you for the opportunity to add yet another helpful blog entry to my site. Providing us with such fatuous & puerile diversions from time to time not only helps keep the day a little more interesting, but also allows us to make the Internet a better place for everyone else.



[ add comment ] ( 266 views )   |  permalink

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | Next> Last>>