Navigation

LCD 16x2 + I2C IIC TWI SPI MODULE

Arduino - I2C IIC TWI SPI MODULE
5V - 5V
SDA - SDA
SCL - SCL
GND - GND

Linux WIFI hotspot

eth1 - internet
wlan1 - internal network

 

Install programs:

 apt-get install dhcp3-server hostapd iptables

 

Set wlan1 IP

ip link set dev wlan1 up
ip addr add 10.10.0.1/24 brd + dev wlan1

 

/etc/hostapd/hostapd.conf

interface=wlan1
bridge=br0
driver=nl80211
ssid=APname
hw_mode=b
channel=1
wpa=2
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
wpa_ptk_rekey=600

 

/etc/default/dhcp3-server

Download videa z ČT, Nova, Prima

Install:

add-apt-repository ppa:nilarimogard/webupd8
apt-get update
apt-get install movgrab rtmpdump 

Download:

wget https://github.com/Limoto/tv-dl/tarball/master -O tv-dl.tgz && tar -xzvf tv-dl.tgz && mv Limoto-tv-dl-* tv-dl

Use:

./tv-dl https://www.ceskatelevize.cz/ivysilani/1097181328-udalosti/205411000100101/

gphoto2 - Remote controllable cameras

Install:

apt-get install gphoto2

visudo:

www-data ALL = NOPASSWD: /usr/bin/gphoto2

Example:

gphoto2 --auto-detect
gphoto2 --list-all-config
gphoto2 --capture-image-and-download --camera="Canon PowerShot A520 (PTP mode)"
gphoto2  --set-config zoom=0 --set-config imagequality=2 --set-config aperture=53 --capture-image-and-download --filename `date +%Y%m%d%H%M%S`.jpg

PHP:

SSHFS . connect to server

mkdir /mnt/mountpoint
echo 'password' | sshfs user@domain.com:/web/sub/ /mnt/mountpoint/ -o workaround=rename -o password_stdin

Example PHP SESSION_START

index.php

wpasupplicant

Install:
 

apt-get install wpasupplicant

Run commands:
 

wpa_passphrase ESSID "password" > wpa_supplicant.conf
wpa_supplicant -i wlan1 -c wpa_supplicant.conf -B -dd
dhclient3 wlan1

Edit file: /etc/network/interfaces

#Wireless Networking Devices
auto wlan1
iface wlan1 inet dhcp
        pre-up wpa_supplicant -D wext -i wlan1 -c /etc/wpa_supplicant.conf -B
        post-down killall -q wpa_supplicant

If not run after boot, edit: /etc/rc.local

Winexe - Winexe remotely executes commands on WindowsNT/2000/XP/2003 systems from GNU/Linux

Winexe remotely executes commands on WindowsNT/2000/XP/2003 systems from GNU/Linux (probably also other Unices capable to compile Samba4).

/etc/apt/sources.list

 
apt-get install winexe

 

 

Linux commands and programs

Hry

Tags: 

Pages

Subscribe to www.duckd.cz RSS