background preloader

Linux tricks

Facebook Twitter


CENTOS. Apache Tomcat 7 (7.0.72) - Security Manager HOW-TO. The Java SecurityManager is what allows a web browser to run an applet in its own sandbox to prevent untrusted code from accessing files on the local file system, connecting to a host other than the one the applet was loaded from, and so on.

Apache Tomcat 7 (7.0.72) - Security Manager HOW-TO

In the same way the SecurityManager protects you from an untrusted applet running in your browser, use of a SecurityManager while running Tomcat can protect your server from trojan servlets, JSPs, JSP beans, and tag libraries. Or even inadvertent mistakes. Imagine if someone who is authorized to publish JSPs on your site inadvertently included the following in their JSP: Every time this JSP was executed by Tomcat, Tomcat would exit. Using the Java SecurityManager is just one more line of defense a system administrator can use to keep the server secure and reliable. WARNING - A security audit have been conducted using the Tomcat codebase. How to install PyCairo in Python2.7? thanks - WebFaction Community. To install PyCairo in your home directory you need to first install it's dependancies, Pixman and Cairo.

How to install PyCairo in Python2.7? thanks - WebFaction Community

To do that, you can use our Install Software From Source guide. I've managed to install it in a test user's home like that: Open an SSH session to the server. If you don't know how this guide will help you.Download and uncompress the source code mkdir ~/downloads cd ~/downloads wget wget wget wget wget tar xzf libffi-3.0.11.tar.gz unxz glib-2.31.22.tar.xz tar xf glib-2.31.22.tar tar xzf pixman-0.26.2.tar.gz unxz cairo-1.12.2.tar.xz tar xf cairo-1.12.2.tar tar xjf py2cairo-1.10.0.tar.bz2Export some usefull variables export PKG_CONFIG_PATH=$HOME/lib/pkgconfig export LD_LIBRARY_PATH=$HOME/libInstall libffi (This step is optional on a CentOS 6 machine) cd libffi-3.0.11 . /configure --prefix=$HOME make make installInstall glib (This step is optional on a CentOS 6 machine) cd ..

Build Instructions. How to Install and Configure phpMyAdmin on CentOS 6. PhpMyAdmin is an open source tool used for the administration of MySQL.

How to Install and Configure phpMyAdmin on CentOS 6

In addition to offering the capability to perform administration tasks such as creating, editing, or deleting databases, and managing users and permissions, phpMyAdmin provides a graphical user interface to do all of these tasks and more. Pre-Flight Check These instructions are intended specifically for installing phpMyAdmin on CentOS 6.I’ll be working from a Liquid Web Core Managed CentOS 6.5 server, and I’ll be logged in as root.A LAMP, Linux, Apache, MySQL and PHP, must be installed on your server. If you’re working from a Liquid Web Core Managed CentOS 6.5 server as I am, then the LAMP stack is already installed! Step 1: Add the EPEL Repository phpMyAdmin is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. Rpm -iUvh Step 2: Install phpMyAdmin yum -y update Then it’s a matter of just running one command for installation via apt-get:

Setting / removing environment variables permanently and globally. Refreshx2 wrote:I can't believe this hasn't been asked in the past but I can't find it anywhere online.

Setting / removing environment variables permanently and globally

It has been discussed, but websearch (and forum search in particular) is a challenging art mastered only be the practitioners of dark magic. The /etc/*.conf files do list paths. Dynamic linker will search them. Changes to files are not dynamic though, so you should reset the linkers cache after edits in order to see the effect immediately. /etc/profile does source the /etc/profile.d/* (either the *.sh or *.csh, depending on which shell you use) for login shell. LD_LIBRARY_PATH is special, and in general its use is not recommended. LD_LIBRARY_PATH is erased during login as a security feature so that you cannot replace the libraries that ssh-agent depends on. CentOS 6 repositories do contain both 32-bit and 64-bit versions of openmpi.

The openmpi environment do pose a name conflict, so both cannot be active in same shell.