diff options
Diffstat (limited to 'content/posts')
-rw-r--r-- | content/posts/libvirt-filter-localnet.rst | 6 | ||||
-rw-r--r-- | content/posts/software-kvm-switch.rst | 74 | ||||
-rw-r--r-- | content/posts/utf8-irssi-madness.rst | 3 | ||||
-rw-r--r-- | content/posts/xbmc-upgrade.rst | 151 |
4 files changed, 231 insertions, 3 deletions
diff --git a/content/posts/libvirt-filter-localnet.rst b/content/posts/libvirt-filter-localnet.rst index 1d2fcea..78fc0a1 100644 --- a/content/posts/libvirt-filter-localnet.rst +++ b/content/posts/libvirt-filter-localnet.rst @@ -1,9 +1,9 @@ Filter Local Network-Access for Libvirt Guest -################################## -:date: 2014-04-14 13:25 +############################################# +:date: 2014-12-04 13:25 :tags: libvirt, netfilter -My google-fu was not strong enough to found a walkthrough of how to filter +My google-fu was not strong enough to find a walkthrough of how to filter the local network for a libvirt guest instance which is using a nat-ed interface while keeping the access to the internet working. diff --git a/content/posts/software-kvm-switch.rst b/content/posts/software-kvm-switch.rst new file mode 100644 index 0000000..b4943f6 --- /dev/null +++ b/content/posts/software-kvm-switch.rst @@ -0,0 +1,74 @@ +A Software KVM Switch +##################### +:date: 2015-01-05 02:26 +:tags: composite video,software keyboard,kvm,remote management +:status: draft + +I have been so often in the need for quick graphical access to a server without +the need of an actual mouse and display plus wiring for power and so on. + +In the enterprise world there are things called 'KVM switches' and laptops +which do exactly what i need but a) they are fucking expensive and b) they are +stationary and built into server racks so i came up with my own low-budget solution. + +With this you will be able to see video output from composite,hdmi and vga and +control a virtual USB keyboard of a headless server or embedded system. + +.. image:: /img/videograbber_on_raspi.jpg + :width: 60% + :alt: video and soft keyboard attached to raspi + :align: middle + +I am using a 32u4 turned into a software keyboard and a Composite Video grabber to +capture the output of the system to supervise. + +*A fair Warning:* Be aware that the video image is very crappy and the software keyboard code is +a WIP. + +Parts list +---------- +All you need are the following things: + +For the soft keyboard input: +1. a 32u4 microcontroller like the `arduino pro micro`_ +2. a cheap `USB-TTL adapter`_ + +For capturing video: +1. a video grabber with the STK1160 chipset (for linux support) +I asked the sellers on aliexpress and found `this videograbber`_ which uses +the chipset needed. +2. a HDMI-to-AV_ (recommended) and optionally a VGA-to-HDMI_ box to capture +output other than the one from a Raspberry Pi which has native composite output. + + +Setup +----- + +**Soft Keyboard** + +Attach the USB-TTL adapter to the 32u4 by connecting both GND , Pin 9 to the +USB-TTL TX and pin 10 to USB-TTL RX. + +Now flash the passthrough firmware for the 32u4: + +.. code-block:: bash + + git clone https://github.com/makefu/keyboard-passthrough.git + cd keyboard-passthrough + cat README.md + arduino key_passthrough/key_passthrough.ino + # flash it + +Get the passthrough software running on your computer: + +.. code-block:: bash + + pip install hg+http://bitbucket.org/pygame/pygame + python here.py + + +.. _arduino pro micro: +.. _USB-TTL adapter: +.. _this videograbber: +.. _HDMI-to-AV: +.. _VGA-to-HDMI: diff --git a/content/posts/utf8-irssi-madness.rst b/content/posts/utf8-irssi-madness.rst index fb86115..5fa34bc 100644 --- a/content/posts/utf8-irssi-madness.rst +++ b/content/posts/utf8-irssi-madness.rst @@ -14,12 +14,14 @@ add lines in .{ba,z}shrc: export LC_ALL=en_US.utf8 add lines in .tmux.conf: + .. code-block:: bash set-option -g default-terminal "rxvt" set-window-option -g utf8 on in irssi: + .. code-block:: bash /set term_charset UTF-8 @@ -32,6 +34,7 @@ in irssi: /quit in putty config: + .. code-block:: bash window -> translation -> Received data assumed to be in which character set: UTF-8 diff --git a/content/posts/xbmc-upgrade.rst b/content/posts/xbmc-upgrade.rst new file mode 100644 index 0000000..62cf1ca --- /dev/null +++ b/content/posts/xbmc-upgrade.rst @@ -0,0 +1,151 @@ +Upgrading XBMC +################################## +:date: 2014-07-24 00:00 +:tags: xbmc,lirc +:status: draft + +* using usbmce +* using ir-blaster + everything worked under linux +* having multi-remotes +* kernel 3.2 - blaster does not work, `do-release-upgrade -d` +* using irexec +* Lircmap.xml + +.. code-block:: xml + + <lircmap> + <remote device="LG_TV"> + <play>play</play> + <pause>pause</pause> + <up>up</up> + <down>down</down> + <left>left</left> + <right>right</right> + <title>guide</title> + <menu>info</menu> + <back>back</back> + <select>ok</select> + <mute>mute</mute> + <showsubtitles>subtitle</showsubtitles> + <volumeup>ch_up</volumeup> + <volumedown>ch_down</volumedown> + <favourites>fav</favourites> + </remote> + <remote device="LG_BAR"> + <stop>stop</stop> + <pause>start_pause</pause> + <FastForward>forward</FastForward> + <Rewind>rewind</Rewind> + </remote> + </lircmap> + +both LG maps + +hardware.conf: + +.. code-block:: sh + + REMOTE="Windows Media Center Transceivers/Remotes (all)" + REMOTE_MODULES="lirc_dev mceusb" + REMOTE_DRIVER="" + REMOTE_DEVICE="/dev/lirc0" + REMOTE_SOCKET="" + REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb" + REMOTE_LIRCD_ARGS="" + TRANSMITTER="Microsoft Windows Media Center V2 (usb) : Scientific Atlanta Cable box" + TRANSMITTER_MODULES="lirc_dev mceusb" + TRANSMITTER_DRIVER="" + TRANSMITTER_DEVICE="" + TRANSMITTER_SOCKET="" + TRANSMITTER_LIRCD_CONF="scientificatlanta/general.conf" + TRANSMITTER_LIRCD_ARGS="" + START_LIRCD="true" + START_IREXEC="true" + START_LIRCMD="" + LOAD_MODULES="" + LIRCMD_CONF="" + FORCE_NONINTERACTIVE_RECONFIGURATION="" + +lircrc: + +.. code-block:: kernel-config + + begin + prog = irexec + button = 0 + remote = LG_BAR + config = shutdown -h now + end + begin + prog = irexec + button = 0 + remote = LG_TV + config = shutdown -h now + end + begin + prog = irexec + button = green + remote = LG_TV + config = python /home/ubuntu/chromoflex/chromo.py 4 65 253 38 + end + begin + prog = irexec + button = blue + remote = LG_TV + config = python /home/ubuntu/chromoflex/chromo.py 4 132 112 255 0 + end + begin + prog = irexec + button = yellow + remote = LG_TV + config = python /home/ubuntu/chromoflex/chromo.py 4 252 242 54 + end + begin + prog = irexec + button = red + remote = LG_TV + config = python /home/ubuntu/chromoflex/chromo.py 4 255 58 41 + end + begin + prog = irexec + button = t.opt + remote = LG_TV + config = python /home/ubuntu/chromoflex/chromo.py 4 0 0 0 + end + begin + prog = irexec + button = 9 + remote = LG_TV + config = irsend SEND_ONCE LG_BAR power + end + begin + prog = irexec + button = vol_up + remote = LG_TV + config = irsend SEND_ONCE LG_BAR volume_up + end + begin + prog = irexec + button = vol_down + remote = LG_TV + config = irsend SEND_ONCE LG_BAR volume_down + end + + + +* no xbmc-xvba, using radeon-oss + + 2.) XBMC settings + (Set xbmc to Advanced or Expert before doing this - settings hierarchies, see + in the middle of confluence) + System->Settings->System->Video output + Vertical blank sync: Let Driver choose + + System ->Video->Acceleration: + VDPAU: On + Prefer VDPAU Mixer: ON + VAAPI: off + +* no audio in xbmc ... + `apt-get purge pulseaudio` |