Log in Register now
Pages: « 1 2 3

UbuntuUbuntu squid restart

sudo /etc/init.d/squid restart

sudo service squid restart

sudo service squid start

sudo service squid stop

UbuntuApache restart

Shame on me, I know :) It is just for a copy-past.

sudo /etc/init.d/apache2 restart

PerlPerl Remote Debugging

Download the package http://code.activestate.com/komodo/remotedebugging/

Unpack in folder komodoperl

Set environment variables
#export PERL5LIB="/work/perl/komodoperl"
#export DBGP_IDEKEY="root"
#export PERLDB_OBTS="RemotePort=127.0.0.1:9000"
#export RemotePort="127.0.0.1:9000"


Add in /etc/enviorenment

PERL5LIB="/work/perl/komodoperl"
DBGP_IDEKEY="root"
PERLDB_OBTS="RemotePort=127.0.0.1:9000"
RemotePort="127.0.0.1:9000"


Add in target scrips :
#! /work/perl/bin/perl -d

UbuntuUbuntu: How to edit crontab with nano editor

sudo EDITOR=nano crontab -e

UbuntuSelenium + Ubuntu + Amazon EC2 ---> headless

I use small instance. My solution needs near 900MB of memory so micro instance will not work.


Installation



Install headless java
sudo apt-get install openjdk-6-jre-headless

Fonts
sudo apt-get install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic

Headless X11 magic is here
sudo apt-get install xvfb

We still demand X11 core
sudo apt-get install xserver-xorg-core

Firefox installation
sudo apt-get install firefox

Download Selenium server
wget http://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar

Enjoyment



Run Selenium server
Xvfb :0 -screen 0 1024x768x24 2>&1 >/dev/null &
export DISPLAY=:0
nohup xvfb-run java -jar selenium-server-standalone-2.31.0.jar > selenium.log &

UbuntuUbuntu + Apache + Perl

sudo apt-get install libapache2-mod-perl2



add to apache2.conf

Code

<Files ~ "\.(pl|cgi)$">
  SetHandler perl-script
  PerlResponseHandler ModPerl::PerlRun
  Options +ExecCGI
  PerlSendHeader On
</Files>

YIIUbuntu + Netbeans + Xdebug + YII Framework

1-10 11-20 21-27