Installing Firefox on Linux (Debian)
I read somewhere that Firefox was renamed to Iceweasel on Debian. Thus, I can’t install the Google Toolbar for it. So here are the steps for installing Firefox manually in a linux system. Read more…
I read somewhere that Firefox was renamed to Iceweasel on Debian. Thus, I can’t install the Google Toolbar for it. So here are the steps for installing Firefox manually in a linux system. Read more…
If you need to setup/install Debian. Please follow this post.
1. Removing a service from startup
# update-rc.d -f samba remove
2. Installing a service on boot
update-rc.d myServiceName start 80 2 3 4 5 . stop 15 0 1 6
3. Specifying Debian Sources
#vim /etc/apt/sources.list
#SID:
deb http://debian.cn99.com/debian unstable main
deb-src http://debian.cn99.com/debian unstable main
#LENNY:
#deb http://debian.cn99.com/debian testing main
#deb-src http://debian.cn99.com/debian testing main
#ETCH
#deb http://debian.cn99.com/debian etch main
#deb-src http://debian.cn99.com/debian etch main
4. Searching for a package from the repository
apt-cache search [package name]
5. Installing a package
apt-get install [package name]
6. Purging an installed/configured package
aptitude purge [package name]
7. Upgrade a debian distro
apt-get dist-upgrade
‘R’ is a statistical package. For an overview, please go to www.r-project.org
My intention was to remove the point outliers from a given set of point geometries.
I just recently installed R both on my Windows XP and Debian. Regina’s www.bostongis.com is an excellent tutorial in getting involved with R. I do suggest you head first to PLR Part 1: Up and Running with PL/R (PLR) in PostgreSQL: An almost Idiot’s Guide to get you started.
The install instructions for Windows works flawlessly. I have to hold back to R-2.5 though as I plan to use RPy (Python for R), see details below. To install ‘R’ in Debian, there’s a couple of settings that we need to take care of…
1. Install r-base
sudo apt-get install r-base
2. Install plr on postgres
sudo apt-get install postgresql-8.2-plr
3. Using R in a database
psql -d beijing -U lbs -h 127.0.0.1 < /usr/share/postgresql/8.2/plr.sql
4. Set the R_HOME environment variable
/etc/postgresql/8.2/main/environment
R_HOME='/usr/lib/R'
5. Restart Debian.
RPy, R for Python, is another alternative to use R in Python. I installed it both in Windows and Debian. Note that I reverted to R-2.5 on Windows to be compatible with RPy. For Debian, Im currently using R-2.6.
For the Windows Binary Installation,
1. Read the RPy Main Site
2. Install prerequisites:
- NumPy
- Win32 Extensions Download
3. Afterwards, install the main package, RPy Download
In Debian, its a straight forward…sudo apt-get install python-rpy
I never intended to do such a thing as what the title describes. However, since we need it at work temporarily, I have to crack up my linux skills to set this up. Principal reference is http://www.apache-asp.org/config.html.
In Debian,
1. install libapache2-mod-perl2 + libapache-asp-perl
sudo apt-get install libapache2-mod-perl2
sudo apt-get install libapache-asp-perl
2. configuration includes:
sudo vi /etc/apache2/sites-available/default
76 PerlModule Apache::ASP 77 <files> 78 SetHandler perl-script 79 PerlHandler Apache::ASP 80 PerlSetVar Global . 81 PerlSetVar StateDir /data/asp 82 </files>
3. Restart apache.
4. Make sure you have the correct permissions to: /data/asp
drwxrwxr-x 4 www-data www-data 4096 2007-11-13 15:33 asp
5. If you encounter the problems:
[Tue Nov 13 15:12:36 2007] [error] [client 127.0.0.1] Can't locate object method "get" via package "APR::Table" at /usr/share/perl5/Apache/ASP.pm line 2016.\n at /usr/share/perl5/Apache/ASP.pm line 2016\n\tApache::ASP::get_dir_config('APR::Table=HASH(0x81d96f8)', 'Global') called at /usr/share/perl5/A pache/ASP.pm line 275\n\tApache::ASP::new('Apache::ASP', 'Apache2::RequestRec=SCALAR(0x81d9764)', '/data/wwwroot/asp/test.asp') called at /usr/share/pe rl5/Apache/ASP.pm line 183\n\tApache::ASP::handler('Apache2::RequestRec=SCALAR(0x81d9764)') called at -e line 0\n\teval {...} called at -e line 0\n, re ferer: http://127.0.0.1/asp/
Read nable-post. which patches /usr/share/perl5/Apache/ASP.pm as follows:
The lines 65-71: if($ENV{MOD_PERL}) { $ModPerl2 = ($mod_perl::VERSION >= 1.99); if($ModPerl2) { eval "use Apache::ASP::ApacheCommon ();"; die($@) if $@; } } become if($ENV{MOD_PERL}) { $ModPerl2 = ($mod_perl::VERSION >= 1.99); my $ver = $mod_perl::VERSION; if ($ver eq "") { $ver = $ENV{MOD_PERL_API_VERSION}; } $ModPerl2 = ($ver >= 1.99); if($ModPerl2) { eval "use Apache::ASP::ApacheCommon ();"; die($@) if $@; } }
6. If Step 5 still doesn’t work.
a. And this to /etc/apache2/conf.d/perl.conf:
PerlRequire /etc/apache2/startup.pl
b. startup.pl
#!/usr/bin/perl
use Apache2::compat;
1;
7. To test. Paste the ff in test.asp under your webroot.
<!-- sample here --> For loop incrementing font size: <% for(1..5) { %> <!-- iterated html text --> <font size="<%=$_%>"> Size = <%=$_%> </font> <% } %> <!-- end sample here -->
A default install of mysql on debian would have bind-address set to 127.0.0.1. This is why you can’t accept remote connections to your mysql. In order to establish remote connections to mysql on debian servers, please comment the bind-address as shown below.
42 language = /usr/share/mysql/english 43 skip-external-locking 44 # 45 # Instead of skip-networking the default is now to listen only on 46 # localhost which is more compatible and is not less secure. 47 #bind-address = 127.0.0.1 48 #