Archive | Linux

Misc Linux Stuff

Fixes Teamviewer initctl start on Ubuntu

Problem: initctl start teamviewerd initctl: Unknown job: teamviewerd fail Solved: sudo /opt/teamviewer8/tv_bin/teamviewerd -f Reference: https://github.com/dnschneid/crouton/issues/99 OR TRY: sudo teamviewer –daemon enable Other solution is this one: cp /opt/teamviewer/tv_bin/script/teamviewerd.service /etc/init.d/teamviewerd service teamviewerd start if you need it automatically starting you can use: update-rc.d teamviewerd defaults Another way is: sudo ln -s /opt/teamviewer9/tv_bin/teamviewerd /etc/init.d/teamviewerd sudo update-rc.d teamviewerd […]

Continue Reading 0

Tesseract OCR

OSX: brew install imagemagick brew install tesseract –all-languages Debian/Ubuntu: apt-get install imagemagick tesseract\* Sample Usage:    convert input image to grayscale using imagemagik convert input.png -colorspace Gray output.tif     decode with tesseract tesseract output.tif result; cat result.txt

Continue Reading 0

SparkleShare + Dashboard

SparkleShare: # Run all of the following commands as the root su # Fetch the Dazzle script curl https://raw.github.com/hbons/Dazzle/master/dazzle.sh \ –output /usr/bin/dazzle && chmod +x /usr/bin/dazzle # Run the initial setup dazzle setup # Link SparkleShare clients using their link codes (found # on the client in the SparkleShare folder) dazzle link # Create a […]

Continue Reading 0

Bash Script Hosts file Ad Blocker

Put in cron or run manually. #!/bin/bash # If this is our first run, save a copy of the system’s original hosts file and set to read-only for safety if [ ! -f /etc/hosts.bak ] then echo “Saving copy of system’s original hosts file…” sudo cp /etc/hosts /etc/hosts.bak sudo chmod 444 /etc/hosts.bak fi # Perform […]

Continue Reading

Driftnet x64 Fix

apt-get source driftnet START COPY BELOW LINE ———https://bugzilla.redhat.com/attachment.cgi?id=134667——— — driftnet-0.1.6/image.c 2002-07-09 20:26:41.000000000 +0100 +++ driftnet-0.1.6.new/image.c 2006-08-22 21:14:38.000000000 +0100 @@ -15,29 +15,20 @@ static const char rcsid[] = “$Id: image. /* memstr: * Locate needle, of length n_len, in haystack, of length h_len, returning NULL. – * Uses the Boyer-Moore search algorithm. Cf. – * http://www-igm.univ-mlv.fr/~lecroq/string/node14.html […]

Continue Reading 0

Powered by recycled bites and bytes.