Archive | Linux

Misc Linux Stuff

A better

Got tired of manually having to edit source files when I added a ppa to the last release(s) so now does it automaticly. If you have suggestions please leave in comments. Thanks #!/bin/bash if [ $# -eq 1 ] distVer=(`lsb_release -sc` vivid utopic trusty) NM=`uname -a && date` NAME=`echo $NM | md5sum | cut […]

Continue Reading 0

Fixes Teamviewer initctl start on Ubuntu

Problem: initctl start teamviewerd initctl: Unknown job: teamviewerd fail Solved: sudo /opt/teamviewer8/tv_bin/teamviewerd -f Reference: 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 \ –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

Powered by recycled bites and bytes.