Servidor de calendário

2

Eu preciso de um servidor de calendário simples (confiável) no meu servidor que seja preferível se integre ao cliente de e-mail Mozilla Thunderbird que eu já uso.

Também é um cliente Android?

    
por user1797147 09.09.2016 / 08:39

2 respostas

1

Radicale como um servidor de calendário simples e confiável

% bl0ck_qu0te%

Simples de instalar

##### Install dependencies for Radicale
ServerUSER@Server:~$ sudo apt-get install python3-pip
##### Install dependencies for bcrypt encryption method
ServerUSER@Server:~$ sudo python3 -m pip install --upgrade passlib bcrypt
##### -H flag uses root's home rather than USER's home
ServerUSER@Server:~$ sudo -H python3 -m pip install --upgrade radicale

Simples de configurar

##### Put user "fakeuser" in a new "users" file
ServerUSER@SERVER:~$ sudo htpasswd -B -c /etc/radicale/users fakeuser
New password:
Re-type new password:
##### Add another user
ServerUSER@SERVER:~$ sudo htpasswd -B /etc/radicale/users user2
New password:
Re-type new password:
##### Install dependencies for bcrypt encryption method
ServerUSER@SERVER:~$ sudo python3 -m pip install --upgrade passlib bcrypt

Edite o arquivo de configuração

ServerUSER@SERVER:~$ sudo nano /etc/radicale/config

Diga ao Radicale onde encontrar usuários

##### Add these lines under relevant portions of [auth] section
type = htpasswd
htpasswd_filename = /etc/radicale/users
# encryption method used in the htpasswd file
htpasswd_encryption = bcrypt

Adicione alguns limites de segurança

##### Add these lines under relevant portions of [server] section
max_connections = 20
# 1 Megabyte
max_content_length = 10000000
# 10 seconds
timeout = 10

##### Add these lines under relevant portions of [auth] section
# Average delay after failed login attempts in seconds
delay = 1

Edite arquivos para permitir conexões SSL / TLS de outras máquinas

##### Add these lines under relevant portions of [server] section
hosts = 0.0.0.0:5232
##### By setting ssl = True, Radicale no longer responds to HTTP requests.
ssl = True
certificate = /etc/ssl/radicale.cert.pem
key = /etc/ssl/radicale.key.pem

Chaves SSL / TLS

Faça um certificado SSL / TLS auto-assinado para permitir a conexão HTTPS ao seu Serviço Radical no servidor

##### You can hit enter as an answer to all the questions to set the default except this one: 
##### "Common Name (eg, YOUR name) []:" where you will enter your domain name or dns record 
##### used for your development server, or in case of wildcard certificates, 
##### use an astrisk, like this: *.mycompany.com 
##### By using a self-signed certificate, your browser should warn you of this fact.
##### Confirm exception as you wish, but this exception is necessary to visit page.
ServerUSER@Server:~$ openssl req -nodes -newkey rsa:2048 -keyout /etc/ssl/radicale.key.pem -out /etc/ssl/radicale.cert.pem -x509 -days 365

Common Name (eg, YOUR name) []: developmentserver12345

Serviço Radicale

Configure o serviço no servidor para permitir que o Radicale seja executado em segundo plano o tempo todo

##### Create "radicale" user and group for Radicale service
ServerUSER@Server:~$ sudo useradd --system --home-dir / --shell /sbin/nologin radicale
##### Make storage folder writable by user "radicale"
ServerUSER@Server:~$ sudo mkdir -p /var/lib/radicale/collections
ServerUSER@Server:~$ sudo chown -R radicale:radicale /var/lib/radicale/collections
##### Make storage folder non-readable by others
ServerUSER@Server:~$ sudo chmod -R o= /var/lib/radicale/collections

Crie o arquivo /etc/systemd/system/radicale.service

ServerUSER@Server:~$ sudo nano /etc/systemd/system/radicale.service

Recorte e cole e salve o seguinte no /etc/systemd/system/radicale.service nano screen em branco

[Unit]
Description=A simple CalDAV (calendar) and CardDAV (contact) server
After=network.target
Requires=network.target

[Service]
ExecStart=/usr/bin/env python3 -m radicale
Restart=on-failure
User=radicale
# Deny other users access to the calendar data
UMask=0027
# Optional security settings
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
NoNewPrivileges=true
ReadWritePaths=/var/lib/radicale/collections

[Install]
WantedBy=multi-user.target

Iniciar o serviço manualmente (o serviço será iniciado automaticamente em caso de falha e / ou reinicialização do servidor)

# Enable the service
ServerUSER@Server:~$ sudo systemctl enable radicale
# Start the service
ServerUSER@Server:~$ sudo systemctl start radicale
# Check the status of the service
ServerUSER@Server:~$ sudo systemctl status radicale
# View all log messages
ServerUSER@Server:~$ sudo journalctl --unit radicale.service

Conecta-se ao Thunderbird

Criar novo calendário no Thunderbird (Public.IP.Address Server)

  • Abrir o Thunderbird
    • Clique em "Calendário de eventos e tarefas >"
    • Clique em "Arquivo > Novo > Calendário" [ou clique com o botão direito do mouse em "Painel de calendário > Lista de calendário" e selecione "Novo calendário"]
    • Selecione "Na rede" na caixa de diálogo e clique em "Avançar"
    • Selecione um formato e um local e clique em "Avançar"
      • Formato: CalDAV
      • Localização: copie e cole o URL do fakeusercalDAV01 (tudo)
        • , por exemplo, link
    • Insira uma conta de email de nome, cor e Thunderbird e clique em "Avançar"
      • Nome: TB para o Server Real Radicale Calendar (TSRRC)
      • Cor: [cor que você gostaria de indicar um evento no TSRRC]
      • E-mail: [padrão]
    • Clique em "Concluir"

Conecta-se ao Android

Criar um novo calendário no Android (Public.IP.Address Server)

  • Instalar o DAVdroid
  • Abrir agenda
    • Adicionar conta no calendário [não DAVdroid]
    • Selecione DAVdroid como tipo de conta
    • Login com URL e nome de usuário
      • Aponte o calendário no link
      • Nome de usuário: fakeuser
      • Senha: [senha que você deu para htpasswd]
  • Tente manualmente atualizar seu Novo Calendário algumas vezes, verifique os logs do Radicale para solucionar problemas
por jtd 01.08.2017 / 23:46
1

Você pode instalar o owncloud. link

Ou:

por Fahad Ahammed 09.09.2016 / 09:14