Re: linphone and address books

2023-11-27 Thread Bram Diederik
I got a project that has a side quest that can help you.
https://github.com/Bram-diederik/asterisk-homeassistant-tools

It got a system that downloads the nextcloud contacts to a internal db.
(for quick lookup for asterisk)
and it got a publisher for ldap.
Linphone got an ldap plugin. (still need to get it to work but that could
be me)



Op wo 14 jun 2023 om 23:25 schreef Ulf Volmer :

> Am Fri, Jun 02, 2023 at 10:03:48AM +0200 schrieb Rainer Dorsch:
>
> > I am using linphone since quite some time and it works very reliable for
> me.
> > One feature I am missing is the import of existing address books (either
> from
> > a vcf file, a carddav server or similar). Read only is sufficient for
> me. I see
> > in settings, there is an advanced menu, which has an entry address book
> > sources. But then it seems I need a plugin for that? Can anybody tell if
> and
> > how that works?
>
> If you have a recent linphone version (e.g the appimage from upstream),
> you will find the address book in a sqlite database in
> ~/.local/share/linphone/friends.db.
>
> I personally use khal go get my contacts from my nextcloud and a small
> python script to store this into the sqlite database.
>
> Best regards
> Ulf
>
>


Redmine plugins on a Debian system

2015-08-28 Thread Bram Diederik
Hi all,

I am trying to extend my Redmine environment with plugins but i encounter
problems.
But i keeps encounter problems. Does some one knows a redmine plugin that
should work on Debian so that i can figure out what i am doing wrong.

One of the issues 1st issues that pops up is the error LoadError: cannot
load such file -- gravatar
after the rake redmine:plugins RAILS_ENV=production execution

this while the file /usr/share/redmine/lib/plugins/gravatar/lib/gravatar.rb
exists

can some one please help me out.

Best regards Bram

Package: redmine  Version: 3.0~20140825-5
Package: redmine-mysql  Version: 3.0~20140825-5


cat /etc/apache2/sites-enabled/redmine.conf
NameVirtualhost *:443
IfModule mod_ssl.c
VirtualHost *:443
ServerName redmine
PassengerDefaultUser www-data
# FcgidInitialEnv for module mod_fcgid
FcgidInitialEnv RAILS_RELATIVE_URL_ROOT 

Alias /plugin_assets/ /var/cache/redmine/default/plugin_assets/
DocumentRoot /usr/share/redmine/public
Directory /usr/share/redmine/public
Options +FollowSymLinks +ExecCGI
Order allow,deny
Allow from all
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
/Directory
SSLEngine on
SSLCertificateFile/etc/ssl/private/redmine.crt
SSLCertificateKeyFile /etc/ssl/private/redmine.key



/VirtualHost
/IfModule


starting redmine /usr/bin/passenger-config No such file or directory

2015-07-16 Thread Bram Diederik
Hi,

In debian 8.1 there is an redmine error in the apache error log file if
redmine is opened the 1st time after an apache restart.  Redmine runs just
fime. but i wonder what the impact is of this message.

/var/log/apache2/error.log
App 670 stdout:
App 670 stderr: env:
App 670 stderr: /usr/bin/passenger-config
App 670 stderr: : No such file or directory
App 670 stderr:

Cheers Bram


apache redmine site configuration:
NameVirtualhost *:443
IfModule mod_ssl.c
VirtualHost *:443
ServerName redmine
PassengerDefaultUser www-data
# FcgidInitialEnv for module mod_fcgid
FcgidInitialEnv RAILS_RELATIVE_URL_ROOT 

Alias /plugin_assets/ /var/cache/redmine/default/plugin_assets/
DocumentRoot /usr/share/redmine/public
Directory /usr/share/redmine/public
Options +FollowSymLinks +ExecCGI
Order allow,deny
Allow from all
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
/Directory
SSLEngine on
SSLCertificateFile/etc/ssl/private/redmine.crt
SSLCertificateKeyFile /etc/ssl/private/redmine.key
/VirtualHost
/IfModule


Command line wifi tooling

2014-11-28 Thread Bram Diederik
Hi all,  During Debian installation does the user has an option to use the
wifi to get debian packages. The user is shown all access point. And fill
in the credentials after selection an AP.

My question is. Is there an commandline equivalent to this?

Thanks in advance.
Bram


Re: multiple redmine sites

2014-10-30 Thread Bram Diederik
2014-10-29 17:19 GMT+01:00 berenger.mo...@neutralite.org:

 Le 29.10.2014 16:11, Bram Diederik a écrit :


 So, you probably should have one virtual host like

 and the other one like

 ?

 --
 Yes and both there own FcgidInitialEnv X_DEBIAN_SITEID setting.

 FcgidInitialEnv X_DEBIAN_SITEID default  for the 443 site

 FcgidInitialEnv X_DEBIAN_SITEID dev  for the 3000 site


 but both sites connect to the default site when i visit them with
 some browser


 Can you show the whole exact content of your /etc/apache2/sites-enabled
 please?
 Could you also show the content of /etc/redmine/ (for i in $(find
 /etc/redmine); do echo $i;cat $i;done will do the job)?


 -


Sure:

here are sites
---

IfModule mod_ssl.c
VirtualHost *:443


Directory /usr/share/phpmyadmin
Options FollowSymLinks
DirectoryIndex index.php

IfModule mod_php5.c
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir
/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
/IfModule

/Directory





# FcgidInitialEnv for module mod_fcgid
FcgidInitialEnv RAILS_RELATIVE_URL_ROOT 
FcgidInitialEnv X_DEBIAN_SITEID default

Alias /plugin_assets/ /var/cache/redmine/default/plugin_assets/
DocumentRoot /usr/share/redmine/public
Directory /usr/share/redmine/public
Options +FollowSymLinks +ExecCGI
Order allow,deny
Allow from all
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
/Directory
SSLEngine on
SSLCertificateFile/etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key



/VirtualHost
/IfModule


Re: multiple redmine sites

2014-10-30 Thread Bram Diederik
2014-10-29 17:19 GMT+01:00 berenger.mo...@neutralite.org:

 Le 29.10.2014 16:11, Bram Diederik a écrit :


 So, you probably should have one virtual host like

 and the other one like

 ?

 --
 Yes and both there own FcgidInitialEnv X_DEBIAN_SITEID setting.

 FcgidInitialEnv X_DEBIAN_SITEID default  for the 443 site

 FcgidInitialEnv X_DEBIAN_SITEID dev  for the 3000 site


 but both sites connect to the default site when i visit them with
 some browser


 Can you show the whole exact content of your /etc/apache2/sites-enabled
 please?
 Could you also show the content of /etc/redmine/ (for i in $(find
 /etc/redmine); do echo $i;cat $i;done will do the job)?




Oeps.. pressed the wrong button..
Lets try again

the /etc/redmine/sandbox/ configuration is not correct... I configured it
with dpkg-reconfigure ... I think thats the problem.. looking into it



Here my sites in site-enabled


-- production
---
IfModule mod_ssl.c
VirtualHost *:443


Directory /usr/share/phpmyadmin
Options FollowSymLinks
DirectoryIndex index.php

IfModule mod_php5.c
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir
/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
/IfModule

/Directory

# FcgidInitialEnv for module mod_fcgid
FcgidInitialEnv RAILS_RELATIVE_URL_ROOT 
FcgidInitialEnv X_DEBIAN_SITEID default

Alias /plugin_assets/ /var/cache/redmine/default/plugin_assets/
DocumentRoot /usr/share/redmine/public
Directory /usr/share/redmine/public
Options +FollowSymLinks +ExecCGI
Order allow,deny
Allow from all
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
/Directory
SSLEngine on
SSLCertificateFile/etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key



/VirtualHost
/IfModule

-- sandbox
--
VirtualHost *:3000

# FcgidInitialEnv for module mod_fcgid
FcgidInitialEnv RAILS_RELATIVE_URL_ROOT 
FcgidInitialEnv X_DEBIAN_SITEID dev

Alias /plugin_assets/ /var/cache/redmine/default/plugin_assets/
DocumentRoot /usr/share/redmine/public
Directory /usr/share/redmine/public
Options +FollowSymLinks +ExecCGI
Order allow,deny
Allow from all
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
/Directory


/VirtualHost


Re: multiple redmine sites

2014-10-30 Thread Bram Diederik
2014-10-30 13:02 GMT+01:00 berenger.mo...@neutralite.org:



 Le 30.10.2014 10:42, Bram Diederik a écrit :

 2014-10-29 17:19 GMT+01:00 :

  Le 29.10.2014 16:11, Bram Diederik a écrit :

  So, you probably should have one virtual host like

 and the other one like

 ?

 --
 Yes and both there own FcgidInitialEnv X_DEBIAN_SITEID
 setting.

 FcgidInitialEnv X_DEBIAN_SITEID default  for the 443 site

 FcgidInitialEnv X_DEBIAN_SITEID dev  for the 3000 site


 but both sites connect to the default site when i visit them
 with
 some browser


 Can you show the whole exact content of your
 /etc/apache2/sites-enabled please?
 Could you also show the content of /etc/redmine/ (for i in $(find
 /etc/redmine); do echo $i;cat $i;done will do the job)?


 Oeps.. pressed the wrong button..
 Lets try again

 the /etc/redmine// configuration is not correct... I configured it
 with dpkg-reconfigure ... I think thats the problem.. looking into it


 I do not see something which would make problem in your apache's sites, so
 yes, maybe in redmine's configurations. If you have solved your issue, I
 would be interested to know the error you had, it might be useful someday :)


it seems there are multiple issues with multiple redmine configurations..
dpkg-reconfigure redmine fails configuring multiple sites
and the FcgidInitialEnv X_DEBIAN_SITEID  setting does nothing.
I give up this redmine feature and gona use an virtual machine..


Re: multiple redmine sites

2014-10-29 Thread Bram Diederik
2014-10-28 15:59 GMT+01:00 berenger.mo...@neutralite.org:



 Le 28.10.2014 15:19, Bram Diederik a écrit :

  I am able to connect to the databases

 here is the config of the default site , dev site only has a
 different  X_DEBIAN_SITEID  setting e.g.  FcgidInitialEnv
 X_DEBIAN_SITEID dev

 ---


 IfModule mod_ssl.c
 VirtualHost *:443
 FcgidInitialEnv RAILS_RELATIVE_URL_ROOT 
 FcgidInitialEnv X_DEBIAN_SITEID default

 Alias /plugin_assets/ /var/cache/redmine/default/plugin_assets/
 DocumentRoot /usr/share/redmine/public
 Directory /usr/share/redmine/public
 Options +FollowSymLinks +ExecCGI
 Order allow,deny
 Allow from all
 RewriteEngine On
 RewriteRule ^$ index.html [QSA]
 RewriteRule ^([^.]+)$ $1.html [QSA]
 RewriteCond %{REQUEST_FILENAME} !-f [OR]
 RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
 RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
 /Directory
 SSLEngine on
 SSLCertificateFile/etc/ssl/certs/ssl-cert-snakeoil.pem
 SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

 /VirtualHost
 /IfModule


 Hello.

 I think the problem comes from your apache's configuration. This should
 help you:
 https://httpd.apache.org/docs/2.2/vhosts/index.html

 In short, you need to setup different VirtualHosts. They can differ with
 name, but this will imply a correct DNS configuration I guess, or by
 IPs/port, which might be easier if you do not have access to your DNS. In
 that case, users will have to know the correct IP/port of the instance.
 If you go to a different port, users will have to use it when accessing
 the server, for example: http://localhost:443/redmine;, or 
 http://localhost:444/redmine;. You will have to take care no daemon is
 listening to ports you used.
 If you go for a different IP, you can simply add it in
 /etc/network/interface, by adding (for example) a eth0:0 address. Users
 will need to know that address, which might be static, or set by a DHCP.

 I'm not an expert on that, so I might be wrong.

 PS: There are some usages on this (and some other) mailing list:

 Only reply to the list, do not reply to both the guy which replied and the
 list, or worse, only to the guy (except special cases).
 Try to reply at the end of the message, quoting only the parts of the
 message your are replying to. It makes it easier for other people to
 contribute to a discussion (since the history is read from top to bottom).
 Do not use HTML when posting. It does not always behave correctly
 everywhere (in my case, it seems my webmail is not able to understand that
 the xml parts were not beacons, which made my quote almost unreadable), and
 is heavier (some people may have very limited bandwidth).


 --


I dont think changing a virtualhost will fix any thing.

I have two sites the only difference is that One has https 443  and
X_DEBIAN_SITEID default
the other one (sandbox) has http port 3000 and X_DEBIAN_SITEID sandbox

as described in the README.debian.


Re: multiple redmine sites

2014-10-29 Thread Bram Diederik
2014-10-29 15:20 GMT+01:00 berenger.mo...@neutralite.org:



 Le 29.10.2014 11:04, Bram Diederik a écrit :

 2014-10-28 15:59 GMT+01:00 :

  Le 28.10.2014 15:19, Bram Diederik a écrit :

  I am able to connect to the databases

 here is the config of the default site , dev site only has a
 different  X_DEBIAN_SITEID  setting e.g.  FcgidInitialEnv
 X_DEBIAN_SITEID dev

 ---

 FcgidInitialEnv RAILS_RELATIVE_URL_ROOT 
 FcgidInitialEnv X_DEBIAN_SITEID default

 Alias /plugin_assets/
 /var/cache/redmine/default/plugin_assets/
 DocumentRoot /usr/share/redmine/public

 Options +FollowSymLinks +ExecCGI
 Order allow,deny
 Allow from all
 RewriteEngine On
 RewriteRule ^$ index.html [QSA]
 RewriteRule ^([^.]+)$ $1.html [QSA]
 RewriteCond %{REQUEST_FILENAME} !-f [OR]
 RewriteCond %{REQUEST_FILENAME}
 dispatch.fcgi$
 RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

 SSLEngine on
 SSLCertificateFile
 /etc/ssl/certs/ssl-cert-snakeoil.pem
 SSLCertificateKeyFile
 /etc/ssl/private/ssl-cert-snakeoil.key


 Hello.

 I think the problem comes from your apache's configuration. This
 should help you:
 https://httpd.apache.org/docs/2.2/vhosts/index.html [1]

 In short, you need to setup different VirtualHosts. They can
 differ with name, but this will imply a correct DNS configuration I
 guess, or by IPs/port, which might be easier if you do not have
 access to your DNS. In that case, users will have to know the
 correct IP/port of the instance.
 If you go to a different port, users will have to use it when
 accessing the server, for example: http://localhost:443/redmine
 [2], or http://localhost:444/redmine [3]. You will have to take

 care no daemon is listening to ports you used.
 If you go for a different IP, you can simply add it in
 /etc/network/interface, by adding (for example) a eth0:0 address.
 Users will need to know that address, which might be static, or set
 by a DHCP.

 I'm not an expert on that, so I might be wrong.

 PS: There are some usages on this (and some other) mailing list:

 Only reply to the list, do not reply to both the guy which replied
 and the list, or worse, only to the guy (except special cases).
 Try to reply at the end of the message, quoting only the parts of
 the message your are replying to. It makes it easier for other
 people to contribute to a discussion (since the history is read

 from

 top to bottom).
 Do not use HTML when posting. It does not always behave correctly
 everywhere (in my case, it seems my webmail is not able to
 understand that the xml parts were not beacons, which made my quote
 almost unreadable), and is heavier (some people may have very
 limited bandwidth).

 --


 I dont think changing a virtualhost will fix any thing.

 I have two sites the only difference is that One has https 443  and
 X_DEBIAN_SITEID default

 the other one (sandbox) has http port 3000 and X_DEBIAN_SITEID
 sandbox

 as described in the README.debian.



 Links:
 --
 [1] https://httpd.apache.org/docs/2.2/vhosts/index.html
 [2] http://localhost:443/redmine
 [3] http://localhost:444/redmine
 [4] mailto:berenger.mo...@neutralite.org


 So, you probably should have one virtual host like

 VirtualHost *:443

 and the other one like

 VirtualHost *:3000

 ?


 --
 Yes and both there own FcgidInitialEnv X_DEBIAN_SITEID setting.

 FcgidInitialEnv X_DEBIAN_SITEID default  for the 443 site

 FcgidInitialEnv X_DEBIAN_SITEID dev  for the 3000 site


but both sites connect to the default site when i visit them with some
browser


multiple redmine sites

2014-10-28 Thread Bram Diederik
Hi all,

I am setting up a bug tracking envoirment for my new job. And selected
redmine for the job.

All is going well but now i try to setup an sandbox environment for
developers and reporters to play around.. the Debian packages states that
you can run multiple envoriments on one debian system but i have failed in
trying to get it done.

I created two sites using dpkg-reconfigure  (default and dev)
setup two apache sites using the example:
/usr/share/doc/redmine/examples/apache2-host.conf
and changed the  FcgidInitialEnv X_DEBIAN_SITEID to dev for the dev
environment
but when i access the dev site the site has the default content

Can some one help me out please?
thanks in advanced.
Bram


Re: multiple redmine sites

2014-10-28 Thread Bram Diederik
I am able to connect to the databases
here is the config of the default site , dev site only has a different
X_DEBIAN_SITEID  setting e.g.  FcgidInitialEnv X_DEBIAN_SITEID dev

---
IfModule mod_ssl.c
VirtualHost *:443
FcgidInitialEnv RAILS_RELATIVE_URL_ROOT 
FcgidInitialEnv X_DEBIAN_SITEID default

Alias /plugin_assets/ /var/cache/redmine/default/plugin_assets/
DocumentRoot /usr/share/redmine/public
Directory /usr/share/redmine/public
Options +FollowSymLinks +ExecCGI
Order allow,deny
Allow from all
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
/Directory
SSLEngine on
SSLCertificateFile/etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

/VirtualHost
/IfModule



2014-10-28 15:03 GMT+01:00 berenger.mo...@neutralite.org:



 Le 28.10.2014 13:37, Bram Diederik a écrit :

  Hi all,

 I am setting up a bug tracking envoirment for my new job. And
 selected redmine for the job.

 All is going well but now i try to setup an sandbox environment for
 developers and reporters to play around.. the Debian packages states
 that you can run multiple envoriments on one debian system but i have
 failed in trying to get it done.

 I created two sites using dpkg-reconfigure  (default and dev)
 setup two apache sites using the example:
 /usr/share/doc/redmine/examples/apache2-host.conf
 and changed the  FcgidInitialEnv X_DEBIAN_SITEID to dev for the dev
 environment
 but when i access the dev site the site has the default content

 Can some one help me out please?

 thanks in advanced.

 Bram


 Hello.

 Can you show the content of the files in /etc/apache2/sites-enabled ?

 Then, which SGBDR did you use? mysql? postgresql? sqlite? Have you one DB
 per virtual host? Can you access to each DB?

 If you have 2 virtual hosts and 1 DB for each vhost and if they are
 correctly configured, then the problem might come from your redmine's
 configuration.
 How did you managed to have 2 instances?

 I think that the easiest, could be to deploy those instances on VMs, which
 have the advantage of easier individual deployment, and better flexibility:
 if one day you have to move an instance from a physical server to another
 one, just move the VM. To do the network linkage between the host and it's
 VMs, you can use iptables.

 For that, you'll need to enable ip forwarding in the host computer (the
 easiest but non-resilient solution for this is: echo 1
 /proc/sys/net/ipv4/ip_forward ) and then masquerade ( iptables -t nat -A
 POSTROUTING -o eth0 -j MASQUERADE ) and finally ports redirection (
 iptables -t nat -A PREROUTING -i eth0 -d $localip -p tcp --dport
 ${http_port[$i]} -j DNAT --to ${http_ip[$i]}:80 ).
 The only constraint here, is that you'll need to do those commands at each
 reboot. So, when you have something which works, move it into a script, and
 either call it from /etc/init.d or manually after reboots.

 That's the easiest, but it might not meet your requirements, and the
 commands I gave simply works for me (I have recently deployed a combo
 with redmine+git+virtual machines, using the VMs to emulate production
 environment, but I am in no way an expert with apache+ruby stuff, which are
 messy imho).

 Good luck. Deploying one instance of redmine was painful enough for me...


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a
 subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: https://lists.debian.org/54b090b23bdbb7eeeb9d15e971501a
 9...@neutralite.org