Buscar

Config Ubuntu

Prévia do material em texto

Firebird3.0 
 
sudo add-apt-repository ppa:mapopa/firebird3.0 
sudo apt-get update 
 
apt-cache search firebird3.0 
 
sudo apt-get install firebird3.0-server 
 
sudo dpkg-reconfigure firebird3.0-server 
 
isql-fb 
 
SQL> connect "/pasta/employee.fdb " user 'SYSDBA' password 'SYSDBApassword'; 
 
 
Na pasta da base 
 
Chown –R firebird:root pasta 
 
Instalar FlameRobin 
No /et c/firebird/3.0/firebird.conf ajustar: 
 RemoteAccess = true 
 AuthClient = Srp, Win_Sspi, Legacy_Auth 
 RemoteBindAddress = [em branco] 
 
 
https://help.ubuntu.com/community/Firebird3.0
Samba 
Instalar 
 sudo apt-get install samba smbclient 
 
Configurar /etc/samba/smb.conf 
 
[global] 
 Netbios name = nome 
 Workgroup = WORKGROUP 
 server string = descrição 
 security = user 
 
 
[pasta_livre] 
 path = /pasta/pasta_livre 
 comment = descrição 
 writable = yes ou read only = no 
 browsable = yes 
 
[pasta_restrita] 
 path = /pasta/pasta_livre 
 comment = descrição 
 writable = yes ou read only = no 
 valid user = cm_user 
 
 host allow = nome, nome ou ip 
 host deny = nome, nome ou ip 
 host allow = ALL EXCEPT ip 
 avaliable = no → bloqueia o compartilhamento 
 
Reiniciar 
 /etc/init.d/smbd [start – stop – restart] 
 
 
Cadastrar grupo que terá acesso ao compartilhamento 
 groupadd nome_grupo 
 chgrp –R nome_grupo pasta_compartilhada 
 Se necessário, alterar permissões 
 chmod –R 775 /pasta_compartilhada 
 
 
Cadastrar usuários sistema 
 sudo adduser cm_user 
 ou 
 sudo adduser –-disabled-login –no-create-home cm_user 
 
 
Cadastrar senha 
 passwd cm_user 
 
 
Cadastrar no samba 
 Smbpasswd –a cm_user ➔ CM#4791 
 
 
 
https://help.ubuntu.com/community/Firebird3.0

Continue navegando