Simple one, it monitor regularly the Established connection to file: Continue reading “Monitor TCP Connection in bash regularly”
Execute the same command on multiple Linux host in once
I found difficult to maintain updates over multiple hosts however, some tool exist to facilitate that time of maintenance steps.
Alternatively, some python script could also be used however I have decided to present that one for now.
Continue reading “Execute the same command on multiple Linux host in once”
Download file from box using cli (wget)
wget -v -O myfile.tgz -L https://xxxx.box.com/shared/static/xxxxx.tgz
Monitor wlan0 Interface (Wireless) to avoid disconnection from Raspberry Pi
I had implemented my raspberry pi to use wireless network, unfortunately the connection might after a while disconnect, the only option that I have found was to run a script that check the connection and re-connect if network is down.
Continue reading “Monitor wlan0 Interface (Wireless) to avoid disconnection from Raspberry Pi”
Hydra in bash
Run Hydra in bash upon a password list;
ncat for the potential port for each protocol, some additional port / protocol could be added of course.
You will require to set couple of file, one would be login (one user per line) + password (still one by line)
Set time zone on Raspberry pi
Run this command which should work in most of distro.
Select the correct Zone that you wish to apply:
Example (London):
cp /usr/share/zoneinfo/Europe/London /etc/localtime
HubiC on Raspberry pi
sync your data with HubiC.
Install it on your Raspberry, just download the last package:
http://mir7.ovh.net/ovh-applications/hubic/hubiC-Linux/1.2.5/
Install it:
sudo dpkg -i -R hubiC-Linux-1.2.5.38-linux.deb
finalize the installation as for the dependancies:
sudo apt-get -f install
Before running it, you need to reed the bus:
dbus-launch --sh-syntax
Copy/paste the bus data address and export the settings (change ‘xxxx’ with your own data from the previous command output:
export DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-xxxx,guid=xxxx'
And run hubiC with the login you have created on the website:
mkdir /home/pi/hubiC
hubic login login@domain.tld /home/pi/hubiC