Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - darkspr1te

Pages: [1]
1
Installation and Upgrades / Re: Zentyal - command line commando
« on: June 03, 2014, 06:16:04 am »
*updated 03/06/2014

2
Installation and Upgrades / Zentyal NUT Hacks
« on: November 14, 2013, 12:14:27 pm »
Hi All,
 I recently needed to add driver parameters to a config in nut,
Originally I altered  the ups.conf.mas file and added my productid/vendorid parameters there but this breaks if you have more than once UPS on the system or change the UPS.
Solution? Add my parameters as a new UPS to the Zentyal nut
The UPS is a product from meissner.co.za but there is no website or support yet. It a 3KVA unit and uses the USB ven/pid of 06da/0005 with subdriver phoenix.

So look for driver.list located in /usr/share/nut/

Code: [Select]
$sudo nano /usr/share/nut/driver.list
find a simlar device, in my case i knew i need to use blazer_usb so i added the following line among the Eaton range
 
Code: [Select]
"Eaton" "ups" "5" "Darkspr1te Special Driver" "" "blazer_usb vendorid=06da subdriver=phoenix productid=0005"
Save and thats it, you can now select your specific config from the pick list

the format of driver.list is as follows

Code: [Select]
# Format:
# =======
# <manufacturer> <device type> <support level> <model name> <model extra> <driver [parameters]>
#
# Details:
# ========
# - device type:
#   "ups" for Uninterruptible Power Supply
#   "pdu" for Power Distributions Unit
#   "scd" for Solar Controlers Device
#
# - support level: a number from "1" to "5" (stars) meaning:
#   *       protocol based on reverse engineering
#   **      based on fragments of publicly available protocol
#   ***     based on publicly available protocol
#   ****    vendor provided protocol
#   *****   vendor provided protocol and hardware
#
# - driver [parameters]: mention the driver(s) (separated by "or" if there are
#   several possibilities. Any mandatory parameter(s) must be referenced, as
#   they will be parsed by configuration helper softwares.
#   For example, genericups entries must mention the "upstype=nn" format.
#
# Duplicate text in the last field will be cooked out during the conversion
# to HTML with ROWSPAN magic.  They must be an exact match for this to work.

regards

darkspr1te

3
Installation and Upgrades / Re: Zentyal - command line commando
« 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
 

4
Installation and Upgrades / bi-direction openvpn problems
« on: May 09, 2013, 05:14:59 pm »
hi all
My problem is i am trying to connect dd-wrt router to openvpn on zentyal so that a client on the lan can access a ip device behind the dd-wrt box.

Server detail (zentyal 3.0)
 lan: 10.0.0.1
openvpn 192.168.160.1 gw 192.168.160.2 ptp

dd-wrt (DD-WRT v24-sp2 (12/20/11) vpn - build 18024)
lan: 192.168.1.1
openvpn: 192.168.160.6 gw 192.168.160.5 ptp
(if nat on dd-wrt for open is disabled then clients cant ping any 10.0.0.x devices but dd-wrt box can)


On the server i can ping the openvpn server address and the dd-wrt vpn address (192.168.160.1 for server and 192.168.160.6)
so what i want is a client on the 10.0.0.x subnet to be able to ping the dd-wrt lan client on 192.168.1.x

I suspect it's some blocking on the dd-wrt box but i've disabled nat and spi firewall and still nothing.

Has anybody got this to work?

darkspr1te

5
Installation and Upgrades / Re: Zentyal - command line commando
« 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

6
Installation and Upgrades / 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

Pages: [1]