USB Serial adapter (Digitus DA-70156 USB Seriell Adapter USB 2.0)
# lsusb
Bus 006 Device 008: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
# create udev roule
cat << EOF | sudo tee /etc/udev/rules.d/70-usb-serial.rules
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="0666"
EOF
# connect to serial port
screen /dev/ttyUSB0 115200
Brother MFC 7320
Install printer
<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/hardware/install.brother-mfc-7320.printer.sh";
echo "wget $URL -O - | bash -";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
Install scanner
<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/hardware/install.brother-mfc-7320.scanner.sh";
echo "wget $URL -O - | bash -";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
Create thumbnail with ImageMagic
- Read more about Create thumbnail with ImageMagic
- Log in to post comments
# rename JPG to jpg
for i in *.JPG; do
mv $i "${i%.JPG}.jpg"
done
# create thumbnails
for i in *.jpg; do
convert $i -pointsize 72 -quality 90 -resize 600x800 -unsharp 0x.5 ${i/.jpg/_tmb.jpg}
done
# create thumbnails from pdf
for i in *.pdf; do
convert $i -pointsize 72 -quality 90 -resize 140x200 -unsharp 0x.5 ${i/.pdf/_tmb.jpg}
done
# convert jpg to pdf
mkdir pdf
for i in *.jpg; do
convert $i -quality 70 -density 72x72 -sharpen "0x1" -page A4 pdf/${i/.jpg/.pdf}
done
Yamaha RX-V3800 / RX-V3900 AV-Receiver
Install and configure DLNA server for Yamaha RX-V3800
# install MiniDLNA
http://www.panticz.de/Install-MiniDLNA
# configure MiniDLNA for Yamaha PC/MCX player
sed -i 's|#notify_interval=895|notify_interval=86400|g' /etc/minidlna.conf
wlyc
http://www.panticz.de/wlyc
wlyc for Yamaha RX-V3900
https://github.com/panticz/wlyc/blob/master/wlyc3900.html
http://dl.panticz.de/wlyc/wlyc3900.html
Comparison Chart: Yamaha RX-Z7 vs. RX-V3900 vs. RX-V3800
wlyc - Yamaha Receiver Webcontrol
GitHub repository
https://github.com/panticz/wlyc
Demo
http://dl.panticz.de/wlyc/wlyc3900.html
<?php
$URL="https://raw.githubusercontent.com/panticz/wlyc/master/wlyc";
echo $URL;
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); #echo htmlspecialchars(curl_exec($c)); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
Links
http://your.recier.ip/YamahaRemoteControl/UnitDesc.xml
lyc - Linux Yamaha receiver control (over serial / RS232 interface)
Yamaha RX-V3800 and some older models like DSP-AX1 are great AV-Receiver, but unfortunately they have no control / web interface to manage it from outside. With a USB-Serial adapter connected to the reciver RS-232 interface, a computer or router and lyc you can control the reciver. In addition, a web interface can be created with wlyc to provide a web access to all network devices like PC, smartphone or tablet.
GitHub repository
https://github.com/panticz/lyc
Download binary
http://dl.panticz.de/lyc/i386/lyc - i386 compiled
http://dl.panticz.de/lyc/ar9132/lyc - Atheros AR9132 (TP-LINK TL-WR1043ND / TL-WDR4300 router)
HowTo compile and run
1. download lyc.c and Makefile
2. compile with: make
3. set up USB Serial adapter http://www.panticz.de/USB-Serial-adapter
4. run command:
./lyc input dvd
./lyc volume up
Run on OpenWrt router
1. download sources
2. comile with
make mips
4. copy lyc to OpenWRT router:
scp lyc root@OPENWRT_IP:/root/lyc
5. login to root@YOUR_OPENWRT_IP
6. download wlyc (OpenWrt wget can not access https, use http redirection)
wget -q http://dl.panticz.de/wlyc/wlyc -O /www/cgi-bin/wlyc
chmod 755 /www/cgi-bin/wlyc
7. Open im broser:
http://OPENWRT_IP/cgi-bin/wlyc
Example: http://ROUTER_IP/cgi-bin/wlyc?p1=input&p2=dvd
cros-compile script for OpenWRT
http://dl.panticz.de/lyc/compile_openwrt_ar9132.sh
http://raw.githubusercontent.com/panticz/lyc/master/lyc.c - lyc source code
<?php
$URL="https://raw.githubusercontent.com/panticz/lyc/master/lyc.c";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
https://raw.githubusercontent.com/panticz/lyc/master/rxvx700.h - Yamaha RS232 codes
<?php
$URL="https://raw.githubusercontent.com/panticz/lyc/master/rxvx700.h";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
https://raw.githubusercontent.com/panticz/lyc/master/Makefile - Makefile
<?php
$URL="https://raw.githubusercontent.com/panticz/lyc/master/Makefile";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
Links
http://mark.jerde.org:13780/v1/comp/rxv2400/
http://linuxmce.org/
http://forum.linuxmce.org/index.php?topic=5759.0
http://www.remotecentral.com/cgi-bin/mboard/rc-touch/thread.cgi?849
http://www.omei.de/
Create Ubuntu preseed net install CD
<?php
$URL="https://raw.githubusercontent.com/panticz/preseed/master/pxe/scripts/create.netinstall.ubuntu.cd.sh";
echo "wget -q $URL -O - | bash -";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>
# LINKS
http://manpages.ubuntu.com/manpages/karmic/man7/casper.7.html - casper boot options
https://help.ubuntu.com/6.10/ubuntu/installation-guide/hppa/appendix-preseed.html
https://wiki.ubuntu.com/Installation/LocalNet
http://d-i.alioth.debian.org/svn/debian-installer/installer/doc/devel/partman-auto-recipe.txt
Acronis iPXE boot
# chain
initrd tftp://${next-server}/acronis/ramdisk64.dat
chain tftp://${next-server}/acronis/kernel64.dat ramdisk_size=32768 vga=791 root=/dev/ram0 acpi=off quiet
View featured products on top from product listing
<?php
$URL="http://www.panticz.de/sites/default/files/magento/featured/set_featured_product.php";
echo "
"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $URL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); echo curl_exec($ch); curl_close($ch); echo "
";
?>
php -f set_featured_product.php sku1 sku2 sku3
clear magento cache
<?php
$URL="http://www.panticz.de/sites/default/files/magento/featured/update_featured_product.php";
echo "
"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $URL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); echo curl_exec($ch); curl_close($ch); echo "
";
?>
php -f update_featured_product.php