Showing posts with label source. Show all posts
Showing posts with label source. Show all posts

Thursday, March 15, 2012

Redmine - apache - ruby - Install in debian >= 5.0

Redmine

Redmine is a flexible project management web application. Written using the Ruby on Rails framework, it is cross-platform and cross-database.

Redmine is open source and released under the terms of the GNU General Public License v2 (GPL).

Some of the main features of Redmine are:

  • Multiple projects support
  • Flexible role based access control
  • Flexible issue tracking system
  • Gantt chart and calendar
  • News, documents & files management
  • Feeds & email notifications
  • Per project wiki
  • Per project forums
  • Time tracking
  • Custom fields for issues, time-entries, projects and users
  • SCM integration (SVN, CVS, Git, Mercurial, Bazaar and Darcs)
  • Issue creation via email
  • Multiple LDAP authentication support
  • User self-registration support
  • Multilanguage support
  • Multiple databases support


First of all make sure you are running an yet stable and configured Apache server.

It will either need mod_cgi or mod_fastcgi to get redmine up and running properly. I prefered mod_f(ast)cgi. Lets check if you already installed these mods:

ls /etc/apache2/mods-available | grep cgi
your result will be something like
cgid.conf, cgid.load, cgi.load, fcgid.conf, fcgid.load

if nothing appears in your output the enter the following commands to install FastCGI:
apt-get install apache2-mpm-worker apache2-suexec php5-cgi libapache2-mod-fcgid
a2enmod fcgid
a2enmod suexec
This will download install and enable the required mods for your apache installation.
To test if they are enabled enter:
ls /etc/apache2/mods-enabled | grep cgi
Yout output should look the same as above when we used mods-available, if so we are ready to go.

Lets go ahead: for this tut i will use Redmine 1.3 yet stable version. So lets go check it out!
(you will need subversion to do this, available in every debian repository)
apt-get install subversion
lets change to our redmine destination directory and fetch it where apache should serve the needed files for the clients:
cd /var/www/yourwebpage/subdomain/httpdocs
(you can choose any other folder you like to share as a webpage, /var/www is just common)
svn co http://redmine.rubyforge.org/svn/branches/1.3-stable redmine-1.3
svn co svn://rubyforge.org/var/svn/redmine/branches/1.3-stable redmine-1.3
Change to the Donwloaded dir and lets have look at the INSTALL File where we can see our dependencies and software that will be needed.
mv 1.3-stable redmine
cd redmine
(nano doc/INSTALL)
well i will Post the Install file here so you dont need to have it opened in your terminal if you use the 1.3 mentioned version of redmine here!

==================================================================
== Redmine installation

Redmine - project management software
Copyright (C) 2006-2010 Jean-Philippe Lang
http://www.redmine.org/


== Requirements

* Ruby 1.8.6 or 1.8.7

* RubyGems 1.3.1

* Ruby on Rails 2.3.5 (official downloadable Redmine releases are packaged with
the appropriate Rails version)

* Rack 1.0.1 gem

* Rake 0.8.3 gem

* I18n 0.4.2 gem

* A database: (only one of these 3 is needed here... i hope you know how to set up MySQL DB!)
* MySQL (tested with MySQL 5)
* PostgreSQL (tested with PostgreSQL 8.1)
* SQLite (tested with SQLite 3)
==================================================================
So lets go get these Programs and appropriate versions running!
apt-get install libapache-ruby1.8 ruby1.8 libgems-ruby1.8 rubygems1.8 libgemplugin-ruby1.8 rails librack-ruby1.8 rake passenger-common libapache2-mod-passenger
Now we have to get our gems for ruby to get things working:
gem sources -a http://production.s3.rubygems.org/
gem sources -u
gem install activerecord -v=2.3.14
gem install actionpack -v=2.3.14
gem install actionmailer -v=2.3.14
gem install activeresource -v=2.3.14
gem install activesupport -v=2.3.14
gem install rails -v=2.3.14
gem install passenger -v=3.0.11
gem install rake -v=0.9.2.2
gem install rack -v=1.1.2
gem install i18n -v=0.4.2
Well done ruby up and runnnig with our needed gems (the first command is for changing the source, you will probybly get an error if you dont do so as debian got a false source provided in standard configuration)

Now follow this guide on the Redmine Production website and you should be good to go to get it running straigt away!
http://www.redmine.org/projects/redmine/wiki/RedmineInstall
or follow me here:


After following this guide you should be able to log into redmin
/etc/init.d/apache2 restart
Apache should be restarted and your redmin should be reachable where you placed it on your webserver! Login with user: admin password: admin

Any questions left? feel free to comment here and give me advice or ask for help!

Wednesday, June 1, 2011

Next level Cyberwar is coming up!

Cold war is approaching again,
this time the war starts on another level, on the world wide web overall the planet. Nations begin to recruit and train personal especially for cyber war bzw counter cyber war. I think many big Companys are involved cause the most well trained computer experts on our planet rule the security in such companies. Training new people is definatly impossible if you want em to learn security technics @ computing without relaying knowledge.
So this is the point where the recruiting jumps in.
2 Countries are rapidly starting to recruit computer experts in security especially for cyber fights and domination on the internet.

Today we have KOREA vs BRITAIN


KOREA

BRITAIN

 Im still wondering what this will be in the end but im sure - cyber is on the come - and we are in the middle of it ;) maybe an MITN should be globally done.

WE are watching you the globe is fully wired, the forces are able to get everywhere, no mountain, no hill, no sea, no river can stop us - the globe is wired.

Go Britain !
Im acting patriotic here, tell me what you think.

Cheers folks

Monday, May 30, 2011

Super Injunction, twitter failed

Twitter just gave away the whole user information of an member that posted news in the UK that shouldnt have shown up.
The UK uses a system or let me call it an "take-down" law that gives the government the right to take down any News they dont want to appear or be spoken out. If the Super Junction is called no one is allowed to talk or write about the happening in free places or newspapers nor on the Internet eg. Twitter.

So now on Twitter always committed and said no our users are safe, today is a bad day for twitter.

Long story short - if you post on twitter you could be charged for any post you ve done, twitter wont keep your account information safe...

Thursday, May 19, 2011

OtherOS++ Boot linux on PS3

 Rebug Team has brought 2 new realeases for the Sony s playstation 3:
Boot OtherOS++ & OtherOS Prep Tool
These are essential for installing an new OS on your playstation 3 

Note: Below are excerpt from rebug.me
Requirements:
  • 16MB NOR PS3 (Model CECHH or Higher)
  • 3.55 OtherOS++ enabled firmware installed
(If you want to use REBUG 3.55.1 grab PS3MFW Builder 0.2 Portable
from here with the tasks pre-selected to add OtherOS++ support)
Features:
  • One Step Prep if installing OtherOS to USB Hard Disk
  • Two Step Prep if installing OtherOS to PS3 Hard Disk
  • Resize vflash to 6 different sizes
  • (Original, 11GB, 22,GB, 43GB, 65GB and 83GB)
  • Create or Delete vflash region 5, 6 and 7 separately
  • Create or Delete ALL vflash regions at once
  • dtbImage.ps3.bin included in pkg (no need to have it ready on USB)
  • Install different dtbImage.ps3.bin from USB
  • Checks that vflash region 7 create matches vflash size
  • Detects and displays current vflash size on start up
  • Auto matches new size to current size on start up
IMPORTANT NOTE: THE BLACK SCREEN IS NORMAL
In most cases when the PS3 auto reboots you will get a black screen telling you to plug in your controller and press the PS button. THIS IS NORMAL. Press the PS button and on the next screen press the PS button again. The PS3 will continue to reboot.


*****************
IF INSTALLING LINUX TO USB HARD DRIVE:
STEP 1: COMPLETE VFLASH AND PETITBOOT INSTALLATION
(PS3 Hard Drive WILL NOT be Formatted)
Run OtherOS Prep Tool
Press START+SELECT.. You’re done!!
(PS3 will beep when it starts and again when it finishes)
(System will auto reboot)
Run Boot OtherOS++ to launch Petitboot

 We are done folks, happy booting, and btw.:

If any body know the series breaking bad would know this already - i wanted to share ;) have fun

Wednesday, May 18, 2011

Austria launches new cyber crime force!

Johanna Mikl-Leitner austrias minister of the interior has launched the new project "fight cybercrime" 

The so called "Cyber-Crime-Competence-Center" consists of 300 new retrained police officers / it-experts.
They 300 users are going to get trained at an Academy launched by the BKA and will be trained specially on a point that makes me curious - ENCRYPTION and ANONYMIZING.

That sounds like they are going to establish a force that will detect people in austria who will use privacy and anonymous services... I dont know what i should think about this, isnt there enough crime out there than should be stopped? instead of some heads working on their privacy :) 


police academy head on!


Have nice day my beloved Followers

Monday, May 16, 2011

Bing and Baidu vs Google!

Newest rumours around the chinese press release that there will be an fusion between Microsoft s bing and Goldman Sachs (Asia) L.L.C., Credit Suisse First Boston s baidu!

This would look like this:

The Problem that comes with this new message, google will be cut off the Asian / Chinese market if this fusion will be a good coorporation. The big thing that comes up here, censorship -> google was censored by chinese government a few times in the past, so in future "baiding" will be an strong powerfull ... censored ... Meta Crawler ;)

Have a nice day Folks!

Saturday, May 14, 2011

Prey!

Hello guys, back after the long off-time of Blogger.com.

Today i read about an interesting open source software that could be interesting for everyone.
An interesting scenario took its place in New York/Canada

The SEO-Expert Sean Power was currently in Canada as somebody in Soho turned on his notebook what got stolen a few days ago.
So Sean is a user of the Powerfull Open-Source tool Prey.


Any mobile phone with open-source software running on could get in use of prey.


By the way, Sean got his notebook back, he ordered someone on twitter to get to the place his notebook was last spottet by prey. The police officers of New York dont mentioned to help him, cause he has not reported early enough that it got stolen.

Twitter could be real usefull in the future though as we see in this case  ;)

Main features of pray:

If you want to take a further look or maybe try it - get it here: prey project


Cheers and keep your hardware safe :)

Wednesday, May 11, 2011

Apple is now "the" global prime brand

The last 4 years google was holding the first place on this ranking list, now the last days brandz.com decided to replace google with Apple, and as you can see here on their page were you can browse the top 100global brands and also read their report to it Brandz Top 100 / 2011 (Most valuable global brands)

 Also this video could be interesting - fast view through the Top 100 global brands.






Apple has grown about 84% the last year and so on they managed to get in this high position.
Steve Jobs says in an Interview: "Apple users feel their individuality and express them with apple products, this will continue"

The next upcoming candidate is Facebook they have grewn about 245% and this year is their first time on the Top 100 global brand list, they start there at the 35.th Place.

Have a nice day

Tuesday, May 10, 2011

Nokia announces new QT 5 Framework

Nokia have announced their plans for the year 2012 in desktop developing, they are planning to release the new Qt5 Framework for Linux their objectives for the next Release QT 5 are:

  • Make better use of the GPU, allowing you to create smooth (and accelerated) graphics performance even with limited resources;
  • Making your creation of advanced applications and UIs easier and faster (with QML and Javascript);
  • Make apps connected to the web be as powerful as possible, i.e. to embed and power up web content and services into any Qt app; and
  • Reduce the complexity and amount of code required to maintain and implement a port.

Nokia QT 5 Components for Desktop show off:


 

Youtube sucks so here is a screenshot of the Widgets and applets that will be possible, not so impressive as the video imho.

And thats how it looks on a MAC


If you are interested further continue reading: ROAD TO QT 5 by nokia labs

CHEERS

Diff and Patch a file in Linux

Yesterday i ran into an Problem, i needed to Burn an DVD+R DL and the file i needed to burn was at 300Mbytes and an DVD+R DL got a capacity of 8,4 Gbytes. So i used the standard GROWISOFS command to start a normal Burn i selected the file and i told me the following weird message:


growisofs: :( more than 50% of space will be *wasted*!
                      go use single layer disc for this!


My mind was, what the hack ?! Linux is Open Source but i never thought it is  ecofriendly, so tried a few commands but no way, it wont let me burn a DVD when about 50% of space will be wasted ...


 A search later i found an PATCH to apply to get rid of this problem. As follows this is the patch file needed to apply on the original growisofs_mmc.cpp before compiling the whole program.

T

--- growisofs_mmc.cpp.orig      Mon Dec 28 02:58:51 2009
+++ growisofs_mmc.cpp   Mon Dec 28 03:00:12 2009
@@ -1622,11 +1622,6 @@ static void plus_r_dl_split (Scsi_Command &cmd,off64_t
     blocks = size/2048;
     blocks += 15, blocks &= ~15;

-    if (blocks <= split)
-       fprintf (stderr,":-( more than 50%% of space will be *wasted*!\n"
-                       "    use single layer media for this recording\n"),
-       exit (FATAL_START(EMEDIUMTYPE));
-
     blocks /= 16;
     blocks += 1;
     blocks /= 2;
@@ -2059,10 +2054,6 @@ pwrite64_t poor_mans_setup (void *fd,off64_t leadout)
                layer_size |= dvd_10[4+14]<<8,
                layer_size |= dvd_10[4+15];

-               if (data_size <= layer_size)
-                   fprintf (stderr,":-( more than 50%% of space will be *wasted*!\n"
-                                   "    use single layer media for this recording\n"),
-                   exit(FATAL_START(EMEDIUMTYPE));
            }
            if (is_dao && leadout)
                minus_r_reserve_track(cmd,leadout);


So to apply this simple patch file to our  growisofs_mmc.cpp we need to use the Program "patch" or "diff"
first i will guide you trough this patch file.

First Part:
--- growisofs_mmc.cpp.orig      Mon Dec 28 02:58:51 2009
+++ growisofs_mmc.cpp   Mon Dec 28 03:00:12 2009 

@@ -1622,11 +1622,6 @@ static void plus_r_dl_split (Scsi_Command &cmd,off64_t 

is the Description and some Info for the file itself, called lines of context...

Part Two:
the lines with an - in front of them are going to be deleted, the others are going to be changed.


So long we apply this patch with ->
patch growisofs_mmc.cpp < patch.txt
 
And voila this sould be the mesasge you'll get:
 
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- growisofs_mmc.cpp Sun Feb 26 19:35:43 2006
|+++ growisofs_mmc.cpp Sun Feb 26 19:35:14 2006
--------------------------
Patching file patchtest using Plan A...
Hunk #1 succeeded at 2.
done 

The Google Patch :)


 No im able to waste Disks on my linux machine :D