Author Topic: Zentyal - command line commando  (Read 10508 times)

darkspr1te

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +3/-0
    • View Profile
Zentyal - command line commando
« on: April 24, 2013, 12:06:42 pm »
Hi All,
 This topic is where i am going to post a few ticks, tips and guides for the ssh/command line side of Zentyal/Linux/Ubuntu.
After running Clearos for the past 5 years and recently deploying zentyal servers in business enviroments i Thought i would document a few of the tools/tricks/tips i use to stay sane in this ever changing world of linux.

I do a lot of ssh work, due to our poor internet infrastructure and being old school dos baby i still prefer this approach.

Ok, onto the meat of it all.

Quick Bandwidth Graphs

Install iftop
Code: [Select]
$ sudo apt-get install iftop
$ sudo iftop -i ethX

ethX being the device you want to monitor, also note you can monitor your vpn links to, replace ethx with tun0 or tap0

Where My SQL password at?

Code: [Select]
$ sudo cat /var/lib/zentyal/conf/sa-mysql.passwdor
Code: [Select]
$ sudo cat /var/lib/zentyal/conf/zentyal-mysql.passwd
Scan for live clients

if nmap not installed
Code: [Select]
$ sudo apt-get install nmap

Code: [Select]
$ nmap -sP $(ip -o addr show | grep inet\  | grep eth | cut -d\  -f 7)you can replace eth with which ever device you need, eg. tun for openvpn clients, or eth1/eth2 etc to see a specific device

Give me my 3 free zarafa/outlook clients

Code: [Select]
$ sudo apt-get install zarafa-licensed
$ sudo zarafa-licensed

to clear the 3 clients linked to zarafa ( for example if you created a test account to test outlook functions)
Code: [Select]
$ sudo rm /var/lib/zarafa/userdb
Zentyal Built in Backup

Trigger full backup now
Code: [Select]
$sudo /usr/share/zentyal-ebackup/backup-tool --fullRun only incremental
Code: [Select]
sudo /usr/share/zentyal-ebackup/backup-tool --incremental
Zentyal Services lookup

Code: [Select]
network firewall antivirus audit bwmonitor ca dhcp dns ebackup events haproxy logs mail mailfilter monitor ntp openchange openvpn remoteservices samba sogo squid trafficshaping usercorner users webadmin webmail webserver
More to come soon. Updated 03/06/2014
darkspr1te
« Last Edit: June 03, 2014, 06:14:32 am by darkspr1te »

darkspr1te

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +3/-0
    • View Profile
Re: Zentyal - command line commando
« Reply #1 on: April 29, 2013, 11:17:07 am »
Scan current folder and sub folder for text

Code: [Select]
$ find ./ -type f  -exec grep -l 'TEXTTOSEARCH' {} \;
non case sensitive search

Code: [Select]
$ find ./ -type f  -exec grep -il 'TEXTTOSEARCH' {} \;
Locate File X Please

install mlocate first
then update mlocate database

Code: [Select]
$sudo apt-get install mlocate
$sudo updatedb

after that,
Code: [Select]
$locate filenamedont forget to run updatedb often
« Last Edit: June 03, 2014, 06:10:11 am by darkspr1te »

meetmtushar

  • Zen Apprentice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Zentyal - command line commando
« Reply #2 on: June 20, 2013, 08:55:07 am »
to clear the 3 clients linked to zarafa.... means I can user more than 3 oulook mail client users ?
Is this means in Zentyal components if I install Groupware (Zarafa) I can use more than 3 clients ?

Please guide me to understand it.

Thank you.

Hi All,
 This topic is where i am going to post a few ticks, tips and guides for the ssh/command line side of Zentyal/Linux/Ubuntu.
After running Clearos for the past 5 years and recently deploying zentyal servers in business enviroments i Thought i would document a few of the tools/tricks/tips i use to stay sane in this ever changing world of linux.

I do a lot of ssh work, due to our poor internet infrastructure and being old school dos baby i still prefer this approach.

Ok, onto the meat of it all.

Quick Bandwidth Graphs

Install iftop
$ sudo apt-get install iftop
$ sudo iftop -i ethX

ethX being the device you want to monitor, also note you can monitor your vpn links to, replace ethx with tun0 or tap0

Where My SQL password at?

$ sudo cat /var/lib/zentyal/conf/sa-mysql.passwd
or
$ sudo cat /var/lib/zentyal/conf/zentyal-mysql.passwd

Scan for live clients

if nmap not installed
$ sudo apt-get install nmap

$ nmap -sP $(ip -o addr show | grep inet\  | grep eth | cut -d\  -f 7)
you can replace eth with which ever device you need, eg. tun for openvpn clients, or eth1/eth2 etc to see a specific device

Give me my 3 free zarafa/outlook clients

$ sudo apt-get install zarafa-licensed
$ sudo zarafa-licensed

to clear the 3 clients linked to zarafa ( for example if you created a test account to test outlook functions)
$ sudo rm /var/lib/zarafa/userdb


More to come soon.
darkspr1te

darkspr1te

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +3/-0
    • View Profile
Re: Zentyal - command line commando
« Reply #3 on: June 25, 2013, 12:02:35 pm »
The "Clear Zarafa users" only deletes the 3 users in demo mode, it does not allow you to go beyond the 3 user limit,a licence is required for that. This is in case you created a testing user and linked it to a outlook client and now want to link it to another client.

darkspr1te
 

darkspr1te

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +3/-0
    • View Profile
Re: Zentyal - command line commando
« Reply #4 on: June 03, 2014, 06:16:04 am »
*updated 03/06/2014