Error starting Tomcat7 “no JDK found – please set JAVA_HOME”

After I had set JAVA_HOME in the /etc/profile export JAVA\_HOME=/usr/lib/jvm/java-7-oracle/bin/java But Tomcat wasn't happy with that. So I went to Tomcat configuration directly. File: /etc/default/tomcat7 \$ vim /etc/default/tomcat7 ... \# The home directory of the Java development kit (JDK). You need …

How to install java 7 on debian

HOW TO INSTALL JAVA 7 ON DEBIAN 7 Debian is my distro of choice for servers, but due to licencing issues it cannot provide Oracle Java 7+ in the repos. Personally Oracle needs to undo their restrictive licensing on a VERY popular language. Need to add an older repository that …

How to install cacti on Debian 7

Installing cacti on Debian 7 is very easy. Issue an apt-get install cacti apt-get install cacti Then follow the prompts for mysql root password and cacti db password (which it creates). Then go to http://localhost/cacti Click next and confirm a few options. Login with admin/admin It will …

Install Jenkins on Debian 7

Here's how I installed Jenkins on Debian 7. \$ wget -q -O - | sudo apt-key add - \$ sudo echo 'deb binary/' >> /etc/apt/sources.list \$ sudo apt-get update \$ sudo apt-get install jenkins

BaseRepositoryInterface Base Eloquent Repository

Here's a base Eloquent Repository. interface BaseRepositoryInterface { /\*\* \* Execute the query and get the first result. \* \* @param array \$columns \* @return :::IlluminateDatabase:::EloquentModel|null|static \* @static \*/ public function first(\$columns); /\*\* \* Execute the query and get the first result or throw an exception. \* \* @param array \$columns \* @return :::IlluminateDatabase:::EloquentModel \* @static \*/ public function firstOrFail …

Depends: libssl0.9.8 (>= 0.9.8m-1) but it is not installable

I was setting up a webserver on Debian 7 but ran in to a dependency issue for nginx. It said I needed libssl0.9.8. Well I had libssl1.0.x which left me wondering was it in compatible. Yes it is. I needed to download the deb and install …

How to checkout a remote branch in git

In order to avoid conflicts when checking out a branch from a remote repo you need to check it out directly. git fetch origin git branch -f remote\_branch\_name origin/remote\_branch\_name git checkout remote\_branch name git checkout -b production origin/production Simple.

How to get laravel database prefix

I needed to get the db prefix for a raw insert query I was running. It's an easy function call to get the current database prefix. DB::getTablePrefix(); Will output the prefix for the current database. This will work in laravel 4.

How to get the base directory of a laravel 4 installation.

In order to get the base directory of a laravel 4 install you'll just need to do one command. It's fairly simple. app()->make('path.base')

How to get logitech m705 working in linux mint

I am using a new laptop, ASUS Zenbook, running linux mint cinnamon. My preferred mouse is a logitech m705 for use on the go. I needed to get it working since it wasn't out of the box. There's several ways to get the unifying receiver working. The easiest for me …