jueves, 23 de octubre de 2014
RAKE REDMINE install a plugin
INSTALLING A PLUGIN IN REDMINE
VERSION 2.3 IS GONNA BE SUCESSFULL IN REDMINE 2.3:
Following the tutorial: https://github.com/javiferrer/redmine_custom_values_projects
DOWNLOAD THE VERSION FOR 2.3.0 REDMINE:
https://github.com/javiferrer/redmine_custom_values_projects/tree/1.0.0
1. Copy the zip in the folder /u01/home/app/trackbus/redmine-2.3.0-0/apps/redmine/htdocs/plugins , and unzip it.
bash-3.2$ unzip redmine_custom_values_projects-1.0.0.zip
Archive: redmine_custom_values_projects-1.0.0.zip
5a6f440aacc0a80a89b3307e4b2cb55302e30750
creating: redmine_custom_values_projects-1.0.0/
inflating: redmine_custom_values_projects-1.0.0/.gitignore
inflating: redmine_custom_values_projects-1.0.0/LICENSE
inflating: redmine_custom_values_projects-1.0.0/README.md
extracting: redmine_custom_values_projects-1.0.0/README.rdoc
creating: redmine_custom_values_projects-1.0.0/app/
creating: redmine_custom_values_projects-1.0.0/app/controllers/
inflating: redmine_custom_values_projects-1.0.0/app/controllers/possible_value_projects_controller.rb
creating: redmine_custom_values_projects-1.0.0/app/helpers/
inflating: redmine_custom_values_projects-1.0.0/app/helpers/possible_value_projects_helper.rb
creating: redmine_custom_values_projects-1.0.0/app/models/
inflating: redmine_custom_values_projects-1.0.0/app/models/custom_field_project_value.rb
creating: redmine_custom_values_projects-1.0.0/app/views/
creating: redmine_custom_values_projects-1.0.0/app/views/possible_value_projects/
inflating: redmine_custom_values_projects-1.0.0/app/views/possible_value_projects/manage.html.erb
creating: redmine_custom_values_projects-1.0.0/app/views/projects/
creating: redmine_custom_values_projects-1.0.0/app/views/projects/settings/
inflating: redmine_custom_values_projects-1.0.0/app/views/projects/settings/_possible_value_projects.html.erb
creating: redmine_custom_values_projects-1.0.0/config/
creating: redmine_custom_values_projects-1.0.0/config/locales/
inflating: redmine_custom_values_projects-1.0.0/config/locales/en.yml
inflating: redmine_custom_values_projects-1.0.0/config/routes.rb
creating: redmine_custom_values_projects-1.0.0/db/
creating: redmine_custom_values_projects-1.0.0/db/migrate/
inflating: redmine_custom_values_projects-1.0.0/db/migrate/001_create_custom_field_project_values.rb
inflating: redmine_custom_values_projects-1.0.0/init.rb
creating: redmine_custom_values_projects-1.0.0/lib/
creating: redmine_custom_values_projects-1.0.0/lib/redmine_custom_values_projects/
inflating: redmine_custom_values_projects-1.0.0/lib/redmine_custom_values_projects/custom_field_patch.rb
inflating: redmine_custom_values_projects-1.0.0/lib/redmine_custom_values_projects/project_patch.rb
inflating: redmine_custom_values_projects-1.0.0/lib/redmine_custom_values_projects/projects_helper_patch.rb
creating: redmine_custom_values_projects-1.0.0/test/
creating: redmine_custom_values_projects-1.0.0/test/functional/
inflating: redmine_custom_values_projects-1.0.0/test/functional/possible_value_projects_controller_test.rb
inflating: redmine_custom_values_projects-1.0.0/test/test_helper.rb
creating: redmine_custom_values_projects-1.0.0/test/unit/
inflating: redmine_custom_values_projects-1.0.0/test/unit/custom_field_project_values_test.rb
bash-3.2$ ls
README redmine_ckeditor redmine_custom_values_projects-1.0.0 redmine_custom_values_projects-1.0.0.zip redmine_knowledgebase
2. rake:
bash-3.2$ cd ..
bash-3.2$ cd ..
bash-3.2$ ls
conf htdocs licenses scripts
bash-3.2$ cd htdocs/
bash-3.2$ rake redmine:plugins:migrate RAILS_ENV=production
/u01/home/app/trackbus/redmine-2.3.0-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:197: warning: Insecure world writable dir /u01/home/app/trackbus/redmine-2.3.0-0 in PATH, mode 040777
Migrating redmine_ckeditor (Redmine CKEditor plugin)...
Migrating redmine_custom_values_projects (Atis Custom Fields plugin)...
Migrating redmine_knowledgebase (Knowledgebase)...
/u01/home/app/trackbus/redmine-2.3.0-0/
./ctlscript.sh restart
/u01/home/app/trackbus/redmine-2.3.0-0/subversion/scripts/ctl.sh : subversion stopped
Syntax OK
/u01/home/app/trackbus/redmine-2.3.0-0/apache2/scripts/ctl.sh : httpd stopped
/u01/home/app/trackbus/redmine-2.3.0-0/mysql/scripts/ctl.sh : mysql stopped
141023 12:49:34 mysqld_safe Logging to '/u01/home/app/trackbus/redmine-2.3.0-0/mysql/data/mysqld.log'.
141023 12:49:34 mysqld_safe Starting mysqld.bin daemon with databases from /u01/home/app/trackbus/redmine-2.3.0-0/mysql/data
/u01/home/app/trackbus/redmine-2.3.0-0/mysql/scripts/ctl.sh : mysql started at port 3308
Syntax OK
/u01/home/app/trackbus/redmine-2.3.0-0/apache2/scripts/ctl.sh : httpd started at port 8081
/u01/home/app/trackbus/redmine-2.3.0-0/subversion/scripts/ctl.sh : subversion started at port 3690
VERSION FOR 2.5 : redmine_custom_values_projects-master
IS GONNA FAIL IN 2.3 REDMINE:
Following the tutorial: https://github.com/javiferrer/redmine_custom_values_projects
1. Copy the zip in the folder /u01/home/app/trackbus/redmine-2.3.0-0/apps/redmine/htdocs/plugins , and unzip it.
2. rake:
[machine@localhost redmine-2.3.0-0]$ ls
apache2 git perl ruby uninstall.dat
apps img php scripts use_redmine
changelog.txt licenses postgresql sqlite
common manager-linux-x64.run properties.ini subversion
ctlscript.sh mysql README.txt uninstall
for execute RAKE!
[machine@localhost redmine-2.3.0-0]$ ./use_redmine
bash-3.2$ ls
apache2 git perl ruby uninstall.dat
apps img php scripts use_redmine
changelog.txt licenses postgresql sqlite
common manager-linux-x64.run properties.ini subversion
ctlscript.sh mysql README.txt uninstall
bash-3.2$ ./use_redmine
bash-3.2$ cd apps/redmine/
bash-3.2$ ls
conf htdocs licenses scripts
bash-3.2$ cd htdocs/
bash-3.2$ ls
app config.ru extra Gemfile.lock plugins README.rdoc tmp
bin db files lib public script vendor
config doc Gemfile log Rakefile test
bash-3.2$ rake redmine:plugins:migrate RAILS_ENV=production
/u01/home/app/trackbus/redmine-2.3.0-0/ruby/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:197: warning: Insecure world writable dir /u01/home/app/trackbus/redmine-2.3.0-0 in PATH, mode 040777
rake aborted!
/u01/home/app/trackbus/redmine-2.3.0-0/apps/redmine/htdocs/plugins/redmine_custom_values_projects-master/init.rb:27: invalid multibyte char (US-ASCII)
/u01/home/app/trackbus/redmine-2.3.0-0/apps/redmine/htdocs/plugins/redmine_custom_values_projects-master/init.rb:27: invalid multibyte char (US-ASCII)
/u01/home/app/trackbus/redmine-2.3.0-0/apps/redmine/htdocs/plugins/redmine_custom_values_projects-master/init.rb:27: syntax error, unexpected $end, expecting keyword_end
author 'Francisco Javier Pérez Ferrer'
^
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
3. restart redmine
/u01/home/app/trackbus/redmine-2.3.0-0/
./ctlscript.sh restart
HOW TO KNOW WHAT LINUX DISTRO I HAVE
Distro:
cat /etc/*-release
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Release: 5.3
Codename: Tikanga
Kernel Version:
Linux dnsNameOfthecomputer 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
uname -mrs
Linux 2.6.18-128.el5 x86_64
uname -mrs
Linux 2.6.18-128.el5 x86_64
- Linux - Kernel name
- 2.6.32-5-amd64 - Kernel version number
- x86_64 - Machine hardware name (64 bit)
unzip:
unzip namefile.zip
unzip namefile.zip
LINUX COMMANDS
ps -fea all process
ps -e all process
[trackbus@accra ~]$ ps -
ERROR: Garbage option.
********* simple selection ********* ********* selection by list *********
-A all processes -C by command name
-N negate selection -G by real group ID (supports names)
-a all w/ tty except session leaders -U by real user ID (supports names)
-d all except session leaders -g by session OR by effective group name
-e all processes -p by process ID
T all processes on this terminal -s processes in the sessions given
a all w/ tty, including other users -t by tty
g OBSOLETE -- DO NOT USE -u by effective user ID (supports names)
r only running processes U processes for specified users
x processes w/o controlling ttys t by tty
*********** output format ********** *********** long options ***********
-o,o user-defined -f full --Group --User --pid --cols --ppid
-j,j job control s signal --group --user --sid --rows --info
-O,O preloaded -o v virtual memory --cumulative --format --deselect
-l,l long u user-oriented --sort --tty --forest --version
-F extra full X registers --heading --no-heading --context
********* misc options *********
-V,V show version L list format codes f ASCII art forest
-m,m,-L,-T,H threads S children in sum -y change -l format
-M,Z security data c true command name -c scheduling class
-w,w wide output n numeric WCHAN,UID -H process hierarchy
[trackbus@accra ~]$ ls --help
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort.
Mandatory arguments to long options are mandatory for short options too.
-a, --all do not ignore entries starting with .
-A, --almost-all do not list implied . and ..
--author with -l, print the author of each file
-b, --escape print octal escapes for nongraphic characters
--block-size=SIZE use SIZE-byte blocks
-B, --ignore-backups do not list implied entries ending with ~
-c with -lt: sort by, and show, ctime (time of last
modification of file status information)
with -l: show ctime and sort by name
otherwise: sort by ctime
-C list entries by columns
--color[=WHEN] control whether color is used to distinguish file
types. WHEN may be `never', `always', or `auto'
-d, --directory list directory entries instead of contents,
and do not dereference symbolic links
-D, --dired generate output designed for Emacs' dired mode
-f do not sort, enable -aU, disable -lst
-F, --classify append indicator (one of */=>@|) to entries
--file-type likewise, except do not append `*'
--format=WORD across -x, commas -m, horizontal -x, long -l,
single-column -1, verbose -l, vertical -C
--full-time like -l --time-style=full-iso
-g like -l, but do not list owner
-G, --no-group like -l, but do not list group
-h, --human-readable with -l, print sizes in human readable format
(e.g., 1K 234M 2G)
--si likewise, but use powers of 1000 not 1024
-H, --dereference-command-line
follow symbolic links listed on the command line
--dereference-command-line-symlink-to-dir
follow each command line symbolic link
that points to a directory
--hide=PATTERN do not list implied entries matching shell PATTERN
(overridden by -a or -A)
--indicator-style=WORD append indicator with style WORD to entry names:
none (default), slash (-p),
file-type (--file-type), classify (-F)
-i, --inode with -l, print the index number of each file
-I, --ignore=PATTERN do not list implied entries matching shell PATTERN
-k like --block-size=1K
-l use a long listing format
-L, --dereference when showing file information for a symbolic
link, show information for the file the link
references rather than for the link itself
-m fill width with a comma separated list of entries
-n, --numeric-uid-gid like -l, but list numeric user and group IDs
-N, --literal print raw entry names (don't treat e.g. control
characters specially)
-o like -l, but do not list group information
-p, --indicator-style=slash
append / indicator to directories
-q, --hide-control-chars print ? instead of non graphic characters
--show-control-chars show non graphic characters as-is (default
unless program is `ls' and output is a terminal)
-Q, --quote-name enclose entry names in double quotes
--quoting-style=WORD use quoting style WORD for entry names:
literal, locale, shell, shell-always, c, escape
-r, --reverse reverse order while sorting
-R, --recursive list subdirectories recursively
-s, --size with -l, print size of each file, in blocks
-S sort by file size
--sort=WORD extension -X, none -U, size -S, time -t,
version -v, status -c, time -t, atime -u,
access -u, use -u
--time=WORD with -l, show time as WORD instead of modification
time: atime, access, use, ctime or status; use
specified time as sort key if --sort=time
--time-style=STYLE with -l, show times using style STYLE:
full-iso, long-iso, iso, locale, +FORMAT.
FORMAT is interpreted like `date'; if FORMAT is
FORMAT1FORMAT2, FORMAT1 applies to
non-recent files and FORMAT2 to recent files;
if STYLE is prefixed with `posix-', STYLE
takes effect only outside the POSIX locale
-t sort by modification time
-T, --tabsize=COLS assume tab stops at each COLS instead of 8
-u with -lt: sort by, and show, access time
with -l: show access time and sort by name
otherwise: sort by access time
-U do not sort; list entries in directory order.
In combination with one_per_line format `-1',
it will show files immediately and it has no
memory limitations.
-v sort by version
-w, --width=COLS assume screen width instead of current value
-x list entries by lines instead of by columns
-X sort alphabetically by entry extension
-1 list one file per line
SELinux options:
--lcontext Display security context. Enable -l. Lines
will probably be too wide for most displays.
-Z, --context Display security context so it fits on most
displays. Displays only mode, user, group,
security context and file name.
--scontext Display only security context and file name.
--help display this help and exit
--version output version information and exit
SIZE may be (or may be an integer optionally followed by) one of following:
kB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.
By default, color is not used to distinguish types of files. That is
equivalent to using --color=none. Using the --color option without the
optional WHEN argument is equivalent to using --color=always. With
--color=auto, color codes are output only if standard output is connected
to a terminal (tty). The environment variable LS_COLORS can influence the
colors, and can be set easily by the dircolors command.
Exit status is 0 if OK, 1 if minor problems, 2 if serious trouble.
Report bugs to.
Search by the first word red:
ls .d red*
ps -e all process
[trackbus@accra ~]$ ps -
ERROR: Garbage option.
********* simple selection ********* ********* selection by list *********
-A all processes -C by command name
-N negate selection -G by real group ID (supports names)
-a all w/ tty except session leaders -U by real user ID (supports names)
-d all except session leaders -g by session OR by effective group name
-e all processes -p by process ID
T all processes on this terminal -s processes in the sessions given
a all w/ tty, including other users -t by tty
g OBSOLETE -- DO NOT USE -u by effective user ID (supports names)
r only running processes U processes for specified users
x processes w/o controlling ttys t by tty
*********** output format ********** *********** long options ***********
-o,o user-defined -f full --Group --User --pid --cols --ppid
-j,j job control s signal --group --user --sid --rows --info
-O,O preloaded -o v virtual memory --cumulative --format --deselect
-l,l long u user-oriented --sort --tty --forest --version
-F extra full X registers --heading --no-heading --context
********* misc options *********
-V,V show version L list format codes f ASCII art forest
-m,m,-L,-T,H threads S children in sum -y change -l format
-M,Z security data c true command name -c scheduling class
-w,w wide output n numeric WCHAN,UID -H process hierarchy
[trackbus@accra ~]$ ls --help
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort.
Mandatory arguments to long options are mandatory for short options too.
-a, --all do not ignore entries starting with .
-A, --almost-all do not list implied . and ..
--author with -l, print the author of each file
-b, --escape print octal escapes for nongraphic characters
--block-size=SIZE use SIZE-byte blocks
-B, --ignore-backups do not list implied entries ending with ~
-c with -lt: sort by, and show, ctime (time of last
modification of file status information)
with -l: show ctime and sort by name
otherwise: sort by ctime
-C list entries by columns
--color[=WHEN] control whether color is used to distinguish file
types. WHEN may be `never', `always', or `auto'
-d, --directory list directory entries instead of contents,
and do not dereference symbolic links
-D, --dired generate output designed for Emacs' dired mode
-f do not sort, enable -aU, disable -lst
-F, --classify append indicator (one of */=>@|) to entries
--file-type likewise, except do not append `*'
--format=WORD across -x, commas -m, horizontal -x, long -l,
single-column -1, verbose -l, vertical -C
--full-time like -l --time-style=full-iso
-g like -l, but do not list owner
-G, --no-group like -l, but do not list group
-h, --human-readable with -l, print sizes in human readable format
(e.g., 1K 234M 2G)
--si likewise, but use powers of 1000 not 1024
-H, --dereference-command-line
follow symbolic links listed on the command line
--dereference-command-line-symlink-to-dir
follow each command line symbolic link
that points to a directory
--hide=PATTERN do not list implied entries matching shell PATTERN
(overridden by -a or -A)
--indicator-style=WORD append indicator with style WORD to entry names:
none (default), slash (-p),
file-type (--file-type), classify (-F)
-i, --inode with -l, print the index number of each file
-I, --ignore=PATTERN do not list implied entries matching shell PATTERN
-k like --block-size=1K
-l use a long listing format
-L, --dereference when showing file information for a symbolic
link, show information for the file the link
references rather than for the link itself
-m fill width with a comma separated list of entries
-n, --numeric-uid-gid like -l, but list numeric user and group IDs
-N, --literal print raw entry names (don't treat e.g. control
characters specially)
-o like -l, but do not list group information
-p, --indicator-style=slash
append / indicator to directories
-q, --hide-control-chars print ? instead of non graphic characters
--show-control-chars show non graphic characters as-is (default
unless program is `ls' and output is a terminal)
-Q, --quote-name enclose entry names in double quotes
--quoting-style=WORD use quoting style WORD for entry names:
literal, locale, shell, shell-always, c, escape
-r, --reverse reverse order while sorting
-R, --recursive list subdirectories recursively
-s, --size with -l, print size of each file, in blocks
-S sort by file size
--sort=WORD extension -X, none -U, size -S, time -t,
version -v, status -c, time -t, atime -u,
access -u, use -u
--time=WORD with -l, show time as WORD instead of modification
time: atime, access, use, ctime or status; use
specified time as sort key if --sort=time
--time-style=STYLE with -l, show times using style STYLE:
full-iso, long-iso, iso, locale, +FORMAT.
FORMAT is interpreted like `date'; if FORMAT is
FORMAT1
non-recent files and FORMAT2 to recent files;
if STYLE is prefixed with `posix-', STYLE
takes effect only outside the POSIX locale
-t sort by modification time
-T, --tabsize=COLS assume tab stops at each COLS instead of 8
-u with -lt: sort by, and show, access time
with -l: show access time and sort by name
otherwise: sort by access time
-U do not sort; list entries in directory order.
In combination with one_per_line format `-1',
it will show files immediately and it has no
memory limitations.
-v sort by version
-w, --width=COLS assume screen width instead of current value
-x list entries by lines instead of by columns
-X sort alphabetically by entry extension
-1 list one file per line
SELinux options:
--lcontext Display security context. Enable -l. Lines
will probably be too wide for most displays.
-Z, --context Display security context so it fits on most
displays. Displays only mode, user, group,
security context and file name.
--scontext Display only security context and file name.
--help display this help and exit
--version output version information and exit
SIZE may be (or may be an integer optionally followed by) one of following:
kB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.
By default, color is not used to distinguish types of files. That is
equivalent to using --color=none. Using the --color option without the
optional WHEN argument is equivalent to using --color=always. With
--color=auto, color codes are output only if standard output is connected
to a terminal (tty). The environment variable LS_COLORS can influence the
colors, and can be set easily by the dircolors command.
Exit status is 0 if OK, 1 if minor problems, 2 if serious trouble.
Report bugs to
miércoles, 22 de octubre de 2014
Redmine- Project Management System/ Gestión de Proyectos Workflow Allowed
Plugins:
http://www.redmine.org/plugins?page=1
Base de datos:
You can start and stop Bitnami Subversion on Windows using the shortcuts created
in the Start Menu, under Programs -> Bitnami -> Bitnami Service on Windows.
To start/stop/restart application on Linux or OS X you can use the ctlscript.sh
utility:
./ctlscript.sh (start|stop|restart)
./ctlscript.sh (start|stop|restart) apache
./ctlscript.sh (start|stop|restart) subversion
start - start the service(S)
stop - stop the service(S)
restart - restart or start the service(S)
http://www.redmine.org/plugins?page=1
Base de datos:
IMPORTANT THINGS:
The issues history is saved in the tables: Journals and journal_details. and all the information about issues and issues custom fields are there.
The location of the plugins folder of redmine is:
/redmine/apps/redmine/htdocs/plugins
STARTING AND STOPPING BITNAMI SUBVERSION
You can start and stop Bitnami Subversion on Windows using the shortcuts created
in the Start Menu, under Programs -> Bitnami -> Bitnami Service on Windows.
To start/stop/restart application on Linux or OS X you can use the ctlscript.sh
utility:
./ctlscript.sh (start|stop|restart)
./ctlscript.sh (start|stop|restart) apache
./ctlscript.sh (start|stop|restart) subversion
start - start the service(S)
stop - stop the service(S)
restart - restart or start the service(S)
subversion not running
Syntax OK
/u01/home/app/trackbus/redmine-2.3.0-0/apache2/scripts/ctl.sh :
apache not running
/u01/home/app/trackbus/redmine-2.3.0-0/mysql/scripts/ctl.sh :
mysql not running
services: 3
apache
subversion
mysql
maquina virtual de VMWARE A VIRTUALBOX
http://www.howtogeek.com/125640/how-to-convert-virtual-machines-between-virtualbox-and-vmware/
Suscribirse a:
Entradas (Atom)