Main » Articles » Programming |
Entries in section: 27 Shown entries: 21-27 |
Pages: « 1 2 3 |
Ubuntu → Ubuntu squid restart
sudo /etc/init.d/squid restart
sudo service squid restart
sudo service squid start
sudo service squid stop
sudo service squid restart
sudo service squid start
sudo service squid stop
Ubuntu → Apache restart
Shame on me, I know :) It is just for a copy-past.
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 restart
Perl → Perl 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
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
Ubuntu → Selenium + Ubuntu + Amazon EC2 ---> headless
I use small instance. My solution needs near 900MB of memory so micro instance will not work.
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
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 &
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 &
Ubuntu → Ubuntu + Apache + Perl
sudo apt-get install libapache2-mod-perl2
add to apache2.conf
<Files ~ "\.(pl|cgi)$">
SetHandler perl-script
PerlResponseHandler ModPerl::PerlRun
Options +ExecCGI
PerlSendHeader On
</Files>
add to apache2.conf
Code
<Files ~ "\.(pl|cgi)$">
SetHandler perl-script
PerlResponseHandler ModPerl::PerlRun
Options +ExecCGI
PerlSendHeader On
</Files>
YII → Ubuntu + Netbeans + Xdebug + YII Framework
http://wiki.netbeans.org/HowToConfigureXDebug
http://blogs.oracle.com/netbeansphp/entry/ubuntu_php_netbeans_part_iii
http://blogs.oracle.com/netbeansphp/entry/ubuntu_php_netbeans
These tree sources helps me to successfully setup the debugging in Netbeans through Xdebug under Ubuntu.
http://blogs.oracle.com/netbeansphp/entry/ubuntu_php_netbeans_part_iii
http://blogs.oracle.com/netbeansphp/entry/ubuntu_php_netbeans
These tree sources helps me to successfully setup the debugging in Netbeans through Xdebug under Ubuntu.