install vtiger 5.1.0 sources on ubuntu 8.04 X86_64

October 22nd, 2009 by amatesi

I don't know why, I don't know how, suffice it to say someday I woke up, willing to try vtiger on my own server.

Here it's howto install vtiger 5.1.0 sources on ubuntu 8.04(.3) X86_64

sudo su; mkdir src; cd src

wget http://downloads.sourceforge.net/project/vtigercrm/vtiger%20CRM%205.1.0/Core%20Product/vtigercrm-5.1.0.tar.gz

tar xvzf vtigercrm-5.1.0.tar.gz
 
apt-get update && apt-get upgrade
 
tasksel -> choose LAMP and install
apt-get install php5 php5-gd libapache2-mod-auth-mysql php5-mysql php5-imap
cp -r /root/src/vtigercrm /var/www/
 
cp /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini.ori
vi /etc/php5/apache2/php.ini
You need to do the following recommended changes to make sure PHP works well with V-Tiger.
File: /etc/php5/apache2/php.ini

safe_mode = Off # default
display_errors = On # default
file_uploads = On # default
register_globals = Off # default
max_execution_time = 600 # was: 30
output_buffering = On # was: Off
memory_limit = 64M # default
error_reporting = E_ALL & ~E_NOTICE # default
allow_call_time_pass_reference = On # default
log_errors = Off                       # default
short_open_tag = On # default

 
- Create a Virtual Host for apache
 
vi /etc/apache2/sites-available/vtiger
 
<VirtualHost *:80>
ServerName vtiger.mydomain.com
DocumentRoot /var/www/vtigercrm/
ErrorLog /var/log/apache2/vtiger.mydomain.com.error_log
CustomLog /var/log/apache2/vtiger.mydomain.com.access_log combined
<Directory /var/www/vtigercrm>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
 
/etc/init.d/apache2 restart
 
cd /etc/apache2/sites-enabled
ln -s ../sites-available/vtiger vtiger
 
Open up a browser on another machine on the network to test the folder.
 
cd /var/www
find vtigercrm/ -type d -exec chmod 750 {} \;
find vtigercrm/ -type f -exec chmod 640 {} \;
chown -R www-data: vtigercrm/
 
 
MYSQL create DB
mysql –user root -p
CREATE DATABASE vtigerdb DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL ON vtigerdb.* TO 'vtigerusr'@'localhost' IDENTIFIED BY 'non-sense-fckuing-password';
 
vi /etc/mysql/my.cnf
 
change:
bind-address            = 0.0.0.0 # to allow connection from all
 
…well, now I have to figure out why I needed all this!
 
-sources:

http://ubuntuforums.org/showthread.php?t=358395

http://www.linuxquestions.org/questions/linux-software-2/vtiger-installation-on-a-ubuntu-server-v9.04-735979/

Bookmark and Share

Posted in Uncategorized | 1 Comment »

change default 8080 port for alfresco or zenoss?

March 24th, 2009 by amatesi

Recently I was evaluating the final Alfresco Labs 3 document management nifty program, inside my little, trusty (and quite overloaded…), Ubuntu home server. I experienced a lot of problems related to the 8080 port, because Zenoss defaults to that and Alfresco wants that too.

I searched for some info on how to change alfresco default 8080 apache tomcat port and here’s what I found (from alfresco wiki page):

Edit those files and change 8080 to something else (like for example 8099):

 

  • $ALF_HOME/tomcat/conf/server.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/urlrewrite.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/pagerenderer-config.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscript-framework-config-test.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscript-framework-config.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscripts/org/alfresco/indexall.get.mediawiki.ftl
  • $ALF_HOME/tomcat/shared/classes/alfresco/extension/custom-repository.properties and add an entry to overide the default: repo.remote.endpoint.url=http://localhost:8080/alfresco/service

 

They say the following about this mess:"It is planned for future versions to allow for central configuration of the port. It is not fixed yet, when this will be included."

I tried the modifications, but essentially I screwed my alfresco setup (more on this later maybe), so I removed and purged my alfresco.

I then decided to search for some info on how to change the default Zenoss 8080 port, and so I found that editing /usr/local/zenoss/zenoss/etc/zope.conf

and uncommenting line 840 with:

port-base 1000

 

will move Zenoss Web UI to port 8080 + 1000, or 9080.
 
I then rebooted my server and checked if zenoss was responding (you may simply restart it’s service by using /etc/init.d/zenoss-stack restart).
 
Fine, this way you can:
  1. Avoid changing Alfresco’s port mess.
  2. Proceed with the Alfresco installation process.

Hope that helps!

 

Bookmark and Share

Posted in GNU Linux, System Administrator, Uncategorized | 1 Comment »

the “at” linux/UNIX command and related adventures.

February 27th, 2009 by amatesi

Yesterday and Today I had a complex and clever Document and Business Process Management course, so I woke up early in the morning and drove 100Km away (totally I drove 400+ Km in two days for this course).

Yesterday, other than the full session-day, I returned home at about 10:00pm, hungry, tired, and, despite that, still able to update my site and then put my head on the pillow around midnight (just for the case, my new site is amitex.it - web and open source services and solutions!). Too bad that the combination of my recurring insomnia and the preparations for the day after, kept my head buzzing and running, and so, I started thinking if everything was perfect-ready for the day after, namely today, so, at about 1.00am I came at the conclusion that not everything was fine: my laptop missed an XP VM for the demo (my laptop seems to reserve a special place for Ubuntu and the course was about a native Windows Software). I then jumped down from my bed and powered my laptop up in the middle of the night, I wgetted the Sun xVM Virtualbox bins from their site and installed it; at the same time, I scp-ed my 12Gb, devxpvm1 from my Ubuntu server, through my crappy-limited 100Mbps lan, to my laptop.

The connection was damn slow (scp said something about 24 minutes), it was 1 and something am in the morning and I had pointed my alarm clock to 5.45am. WTF?!

Well, if I would’ve been lame enough, I would’ve taken the course without laptop (and related jerk expression…). Hopefully, this wasn’t my case, since the at command came in my help!

The at shell command, for me, is a recent re-discovery (I surely used it in the past). It allows you to temporarily schedule an imminent task to run once and only. Next reboot, no trace of previously scheduled tasks. Too bad I wasn’t remembering the right at syntax, so I launched it and lamely typed on its prompt what I wanted the laptop to do (well, I just wanted for it to shut down automatically after a safe time slice, in such a way for it to complete the scp transfer).

Basically, I launched:

sudo at 2.30 (+ root password).

at>halt
at>stop (noob…)
at>quit  (lame…)
at>exit (downgraded-pwrusr-jerk)

…and nothing happened…I wasn’t remembering how to confirm my scheduled task! (FYI, I just wanted for it to shut-the-f#-down…err, to halt). So I opened the man page, but nothing (maybe I eventually was too tired to "RTFM" AND "connect-and-understand™").

A fast, random (and nervous), google search, pointed me to an unexpected IBM doc, alleging somewhere that CTRL+D was the right key combo. I said nervous, because at bash linux terminal command ain’t easy search!

So, essentially, I found CTRL+D was the key-trick…I pushed down the combination, but nothing happened; I then tried the CTRL+SHIFT+D combo, and it happily worked :)

Then I went to sleep, and finally slept. In the early morning, I found my laptop correctly halted: too bad today my laptop was just a dead-heavy 17" luggage: the demo went through the projector! (and not inside course-takers’  laptops).

Arghh…but let’s look at its bright side: I re-learned a way old (and pretty useful) command (and hopefully you too!).

Bookmark and Share

Posted in Uncategorized | No Comments »

NWN2 Mask of The Betrayer + Ubuntu Hardy 64 + wine.

May 2nd, 2008 by amatesi

Aint’t Neverwinter Nights 2 unpatched enough? Do you wanna take the Red Pill ? This part is gonna focus on the hardest part of getting Neverwinter Nights 2 + Neverwinter Nights 2: The Mask of The Betrayer Official Expansion fully patched, to work under wine-0.9.60 and Ubuntu Hardy 8.04 X86_64. For this guide to work, you should have followed literally my previous post, NWN2 + Ubuntu Hardy + wine. Since wine is a great piece of code, I take for granted you have not screwed it up with customization or particular settings, but I give you no warranties, I can say only this: mine works well. Ideally you have NWN2 installed and working and you just bought at a bargain price its Official Expansion, Mask of The Betrayer. If you’re to the requirements, I’m gonna guide you on how to install and update all the NWN2 stuff and play new, fun adventures!

  • First things first, insert MoTB DVD and install as usual, just by following on-screen infos.

Now comes the delicate part: Updates. Updates are a bit more complicated, but nothing to worry about; essentially you have to manually download the updates and install’em manually with a tool, also you’ll download the bare, original game’s modules updates and install them manually. My DVD MoTB Expansion was version 1.10.1115 after installation, latest version was 1.12.1295, so I clearly needed to get updated. In order to be updated you’ll need to install the previous, incremental patches, until you get on track. I first tried to apply patches with standard nwn2launcher.exe welcome-screen (the one that does open up when you are starting the game), but unfortunately it hasn’t worked, so I started searching for an alternative and found the nwn2Patcher tool. Simply get yours and decompress it inside you nwn2 install directory. Here comes full terminal info steps:

  • cd .wine/drive_c/Programs/Atari/Neverwinter Nights 2/
  • wget http://nwvault.ign.com/fms/Download.php?id=104156

The downloaded zip file hold 2 files, a Readme (read It!) and an executable: the exe is the tool used to manually apply updates to the NWN2 + MoTB install. Now we need to download MoTB incremental updates and decompress them inside the NWN2 + MoTB directory (we’ll obtain some zip files that contain some *.rtp files).

  • cd .wine/drive_c/Programs/Atari/Neverwinter Nights 2/
  • wget http://vnfiles.ign.com/nwvault.ign.com/fms/files/nwn2other/19/nwn2_pcx1_english_from1101115_to1101116.zip
  • wget http://vnfiles.ign.com/nwvault.ign.com/fms/files/nwn2other/19/nwn2_pcx1_english_from1101116_to1111152.zip
  • wget http://nwvault.ign.com/fms/Download.php?id=108369
  • wget http://nwvault.ign.com/fms/Download.php?id=113856

Next we need to download the files that will apply some mods to the ORIGINAL [& UNPATCHED] NWN2 original game’s modules:

  • wget http://vnfiles.ign.com/nwvault.ign.com/fms/files/nwn2other/19/NWN2_PCX1_MODFIX_FROM100788_TO105912.zip

Next we’ll need to uncompress all of the downloaded files: we’ll obtain some .rtp files just inside the NWN2+MoTB install dir.

  • unzip *.zip .

After all these downloads, you can start applying Patches, so browse your wine C drive (from the upper menu: Applications -> Wine -> Browse C:\ drive; go where you installed the game). Launch NWN2Patch.exe and, from the gui, incrementally apply the patches to the game (I started from 1.10.11115 to 1.10.1116 to 1.11.1152 etc.); simply browse the NWN2+MoTB install dir, choose the right .rtp files then click "Patch", repeat this procedure ’till the last. At this point you’ll need to apply the patch to the original NWN2 game modules, so select the Mod FIX .rtp file and click "Patch" again, same as before. Now you should have a working game, except one problem: It is damn slow, even from the first launch! For me particularly, because I have an external USB DVD-RW. The solution to this maybe installing a NoCD, but I don’t know if it is totally legal. BTW, I pwn the original DVDs, I bought them from play.com, so I feel I’m doing nothing wrong if I have some means to increase my game performance. Just search google for "NWN 2 Nocd", hopefully you’ll find a page to gamecopyworld, wich will allow you to download a nocd (take the one that apply to your version, i.e.: mine is v1.12.1295). Afterward uncompress inside the game dir and finally play. Now you should have a decent working game and, if you have a powerful enough svga and an average-res LCD, forgive for sometime XP.

Bookmark and Share

Posted in Games, Uncategorized, wine | 1 Comment »

ldap, samba, & Co.

April 11th, 2008 by amatesi

Network Users & Computers management is what I’ve been studying recently.

The following is a placeholder-post related to info I should inspect and eventually try:

  1. What is LDAP? Here: http://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol
  2. Well, I wanna try it! Here: http://www.howtoforge.com/openldap-samba-domain-controller-ubuntu7.10
  3. Other clues? Here: http://islandlinux.org/howto/installing-samba-openldap-ubuntu#install_samba
  4. What about security? Here: http://islandlinux.org/howto/installing-secure-ldap-openldap-ssl-ubuntu-using-self-signed-certificate
  5. A self signed Cert is crap! I want mine. Two Options:
    1. e-mail cert from thawte: http://www.thawte.com/secure-email/personal-email-certificates/index.html
    2. better, a free SSL cert for mine server[ITA]: http://www.gpaterno.com/notariato/ca-cert/
  6. OK, so what is kerberos? Here: http://it.wikipedia.org/wiki/Protocollo_Kerberos
  7. Is it useful? I mean WTF? Yes, Use Kerberos for Authentication, LDAP for the DB and NFSv4 for the files (great info): http://www-theorie.physik.unizh.ch/~dpotter/howto/kerberos
  8. Other info source[ITA]: http://www.gpaterno.com/pubblicazioni/single-sign-on-con-kerberos-e-ldap/
  9. Single Sign ON? Read on: http://en.wikipedia.org/wiki/Single_sign-on
  10. Clarification of Windows Users Profiles: http://wiki.samba.org/index.php/Samba_&_Windows_Profiles
  11. An interesting book (I’m gonna buy it?): http://www.winlinanswers.com/book/resources.php
  12. Other Kerberos + LDAP info: http://www.samag.com/documents/s=9494/sam0502a/0502a.htm
Bookmark and Share

Posted in Uncategorized | No Comments »