also sync support
http://mp4museum.org/howto-sync/
GUI for "smartctl"
https://github.com/smartmontools/smartmontools/tree/master/smartmontools
convert in.png -fill white -fuzz 80% +opaque "#000000" out.png
echo "$(date -Iseconds) WiFi Reset Script" >> /home/pi/wifi_reset.log
install network manager (wicd-curses) i uključi auto connect
isključi power management wifi adaptera
u fajlu /etc/rc.local dodaj:
iwconfig wlan0 power off
ili dodaj reset skriptu u crontabu:
!/bin/bash
if ! [ "$(ping -c 1 192.168.65.254)" ]; then
echo "$(date -Iseconds) WiFi Reset Script" >> /home/pi/wifi_reset.log
sudo ifdown wlan0
sudo ifup wlan0
fi
Connect using USB TTL adapter (CP2102)
Connections from the USB TTL adapter to the Pi:
GND (ground) > GPIO pin 06 (GND)
RXD > GPIO pin 08 (TXD)
TXD > GPIO pin 10 (RXD)
sudo screen /dev/ttyUSB0 115200
sudo nano /etc/fstab
//192.168.0.XX/MJUZ /mnt/MJUZ cifs x-systemd.automount,noauto,rw,iocharset=utf8,username=media,password=oblak,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770 0 0
sudo mount -a
sudo dmesg
sudo systemctl daemon-reload
sudo systemctl restart remote-fs.target
cd /mnt/MJUZ
ls
get strings
check device model end errors:
uname
lsusb | grep -i bluetooth
dmesg | grep bluetooth
get model of computer:
dmidecode -t system | grep -i "serial number"
download win 7 driver:
sudo apt-get install innoextract
extract exe:
innoextract g4wb12ww.exe
cd app/Win64/
find model and appropriate hex:
nano bcbtums-win7x64-brcm.inf
hex2hcd BCM20702A1_001.002.014.0449.0462.hex
sudo cp BCM20702A1_001.002.014.0449.0462.hex /lib/firmware/brcm/BCM20702A1-0a5c-21e6.hcd
reboot
xcalib -i -a
(sudo apt-get install xcalib)
if error:
Error - unsupported ramp size 0
Bug in X windows:
You need to create a xorg .conf file to force usage of intel drivers. Create a file /etc/X11/xorg.conf.d/20-intel.conf and put these lines there:
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
EndSection
/etc/rc.local
script is executed by the "root" user
if you want to execute commands as another user:
su - pi /do/something/as/oracle/user
make bash script:
!/bin/bash
sleep 20
iceweasel
make it executable:
chmod +x myscript.sh
A; B Run A and then B, regardless of success of A
A && B Run B if A succeeded
A || B Run B if A failed
A & Run A in background.
enable php shortcodes:
sudo nano /etc/php/5.6/apache2/php.ini
short_open_tag = On
permissons (for local setup)
chown -R www-data.www-data /var/www
chmod -R 777 /var/www
restart apache-a (two ways)
service apache2 restart
/etc/init.d/apache2 restart
A; B Run A and then B, regardless of success of A
A && B Run B if A succeeded
A || B Run B if A failed
A & Run A in background.
sudo apt-get install matchbox-keyboard -y
run it:
menu / accessories / keyboard
if not there, set it:
preferences / main menu editor / accessories / keyboard
to show it only when needed:
matchbox-keyboard --daemon &
no need for finding and memorizing devices local IP addresses