Blue Flower

Displaying items by tag: zentyal

ABILITARE INNODB

sudo nano /etc/mysql/conf.d/zentyal.cnf

in [mysqld]
innodb = on

se non si trova potrebbe essere in :

/etc/my.cnf
/etc/mysql/my.cnf
$MYSQL_HOME/my.cnf
[datadir]/my.cnf
~/.my.cnf

eventualmente cercare i file con i comandi di locate

locate my.cnf
whereis my.cnf
find . -name my.cnf

TABELLE CASE INSENSITIVE

Aprire nel terminale 

sudo nano /etc/mysql/my.cnf

Nella sezione [mysqld] aggiungere:

lower_case_table_names = 1

infine riavviare mysql

sudo /etc/init.d/mysqld restart

Published in Server
Lunedì, 19 Novembre 2018 07:21

Ubuntu: cancellare file in modo ricorsivo

sudo find . -name '*.png' -delete   o   sudo find . -name "*.bak" -type f -delete

But use it with precaution. Run first:

sudo find . -name "*.bak" -type f

to see exactly which files you will remove.

Also, make sure that -delete is the last argument in your command. If you put it before the -name *.bak argument, it will delete everything.

rm -r *.bak elimina anche le cartelle che terminano in .bak con tutto il loro contenuto

Published in Server
Lunedì, 19 Novembre 2018 07:09

Zentyal: condividere cartelle

1. Login to the zentayal server and get to a shell; Switch to root user.

2. Mount the partition where u want the share to be. Setup correctly under /etc/fstab as follows. ( /u is my mountpoint for my 2nd disk  ( partitioned  /dev/sdb1 )

sudo fdisk -l   o   sudo lsblk individua le partizioni e i dischi

es: sudo mount -t ntfs-3g /dev/sdb1 /media/Skliros_Diskos (montare una partizione ntfs al volo ma meglio non fare questo ma sotto montare all'avvio con le giuste acl per zentyal)

sudo nano /etc/fstab (per far automontare la partizione all'avvio)

    /dev/sdb1 /u      ext4    errors=remount-ro,acl,user_xattr,usrquota,grpquota,acl  0       1
   
     or
 
   UUID=54fc9f7f-d13d-4649-b104-1584d4e7cd96       /u      ext4    errors=remount-ro,acl,user_xattr,usrquota,grpquota,acl  0       1

a.   From terminal, make the mount point, mkdir /u

b.  then do a mount -a , to mount the disk at /u.

3. Change the ownership of the mountpoint /u to root and the group to domain users.
 
    sudo chown root:domain\ users /u

4. Create a folder that you want to share. cd to /u
 
    sudo mkdir Folder1

5. Change the ownership and group of the folder
 
    sudo chown -R root:domain\ users Folder1
    then
    sudo chmod -R 770 /u/Folder1

6. Now go to the zentayal web interface under File Sharing,. create a new share.
    Share name = Folder1
    Share Path = Select filesystem path, type in /u/Folder1.
    Comment = Whatever you like
    Tick Apply ACLS recursively.

7.  Click Add, then Save Changes, the samba module should return success, i.e share created without any errors.

8. Add an ACL for the Folder1 share.

If there is any one who can update / or contribute to clarify or define this issue,, please feel free to do so.
Perhaps someone can shed some light on how and why this issue occurs.

References I used: https://forum.zentyal.org/index.php?topic=21038.0
NOTE : I used root:domain\ users instead of ebox:ebox like mentioned in the above link.

Published in Server