Main » Articles » Programming » Ubuntu |
Entries in category: 9 Shown entries: 1-9 |
Sort by: Date · Name · Rating · Comments · Views
Ubuntu → Anonymous Squid
sudo nano /etc/squid/squid.conf
header_access X-Forwarded-For deny all
header_access Via deny all
header_access Cache-Control deny all
header_access X-Forwarded-For deny all
header_access Via deny all
header_access Cache-Control deny all
Ubuntu → Ubuntu + redmine + gmail
adding
enable_starttls_auto: :true
to
/etc/redmine/default/email.yml
has fixed my problem
enable_starttls_auto: :true
to
/etc/redmine/default/email.yml
has fixed my problem
Ubuntu → ubuntu: downgrade to firefox 3.6
wget "http://download.mozilla.org/?product=firefox-3.6&os=linux&lang=en-US"
tar xvjf firefox-*.bz2
sudo cp -r firefox /usr/lib/firefox-3.6
sudo mv /usr/bin/firefox /usr/bin/firefox.old
sudo ln -s /usr/lib/firefox-3.6/firefox /usr/bin/firefox-3.6
sudo ln -s /usr/bin/firefox-3.6 /usr/bin/firefox
tar xvjf firefox-*.bz2
sudo cp -r firefox /usr/lib/firefox-3.6
sudo mv /usr/bin/firefox /usr/bin/firefox.old
sudo ln -s /usr/lib/firefox-3.6/firefox /usr/bin/firefox-3.6
sudo ln -s /usr/bin/firefox-3.6 /usr/bin/firefox
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
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>