Posts
Access Terminal on PocketBook Touch Lux 2
UART Interface Connect: PB UART Interface GND GND TX RX RX TX Find the right tty device run command and connect UART converter: > dmesg --follow .... [...] ...: ... new attached to ttyUSB0 connect to uart BAUD-Rate: 115200 > screen /dev/ttyUSB0 115200 after: < HTTP/1.1 200 OK < Date: Tue, 09 Jan 2018 15:20:21 GMT < Server: Apache/2.2.3 (CentOS) < X-Powered-By: PHP/5.3.18 < Cache-Control: no-cache < Transfer-Encoding: chunked < Content-Type: application/json < [] cleanup task 'pbpn_broker.app' (1329) press enter a few times. ...
Insalling Purescript under Archlinux
download the binary for linux $ wget https://github.com/purescript/purescript/releases/download/v0.11.5/linux64.tar.gz - /opt/purescriptw smylink the executable $ ln -s /opt/purescript/purs /usr/local/bin/purs install libtinfo $ gpg --keyserver pgp.mit.edu --recv-keys F7E48EDB # needed for the folloing package $ pacaur -S ncurses5-compat-libs $ pacaur -S libtinfo see here
Running a window manager from inside a docker container
TL;DR-Version: run: $ sudo pacman -S xorg-server-xephyr or $ sudo apt-get install xserver-xephyr run: $ Xephyr :1 -ac -br -screen 1024x768 -resizeable -reset -terminate & run: $ docker run -it -e DISPLAY=:1 --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix csicar/ubuntu-mate-desktop /usr/bin/mate-session``` Window-Managers inside a container --- As show [here](http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/) docker is not only useful for server applications, but can also be used for desktop applications. Taking it a step further I wanted to run a window-manger from inside a docker container. There are basically 2 steps to it: 1. Creating a virtual DISPLAY using a program like [Xephyr](https://www.freedesktop.org/wiki/Software/Xephyr/) 2. giving the container access to the `DISPLAY` ### Creating a windowed X-Server 1. Installing Xephyr is pretty simple: Just do `sudo pacman -S xorg-server-xephyr` or `sudo apt-get install xserver-xephyr ` 2. Now run `Xephyr :1 -ac -br -screen 1024x768 -resizeable -reset -terminate` to create a X-Server - `:1` is the display-id; this will need to be passed to what ever wants to access the display - `-ac` disables access control restrictions - `-br` creates a window with a black background - `-screen 1024x768` sets the default screen size - `-resizeable` makes the screen (for the guest) and the window (for the host) resizeable - `-reset` closes the host-window, when the guest exits the X-Server ### Giving the container access to the DISPLAY Just do: `docker run -e DISPLAY=:1 -v /tmp/.X11-unix:/tmp/.X11-unix [container-id]` - `-e DISPLAY=:1` will pass the value `:1` as a environment variable `DISPLAY` through to the container - `-v /tmp/.X11-unix:/tmp/.X11-unix` will pass the file through to the container` The rest just like you are used to with docker. ### Conclusion #### Why? because you can. And maybe because you can test new configurations of your WM (like i3) without worrying about breaking your main system. #### What makes it better than virtualbox? I get a lot beter performance when using a wm in a container instead of a vm. ### Dockerfile https://github.com/csicar/docker-wm
Disable the Touchpad in Archlinux (on an T450s)
#!/bin/bash device=`xinput | grep TouchPad | grep -o "id=.." | grep -o "[0-9]*"` state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"` if [ $state == '1' ];then xinput --disable $device else xinput --enable $device fi
Linux on the T450s Thinkpad
When I got my T450s I was not quite sure, if and how good it would work with linux. I must say that I am pretty impressed: Currently I am using Ubuntu Gnome 15.10. Everything is working out of the box, except the 3-Finger-Gestures and the Fingerprint-Reader. A Fix for the Fingerprint-Reader can easily be found online For the 3-Finger-Gestures I did not yet find a fix, but even coming from a mac I quickly ended up not really wanting to have it anymore. ##Interesting things about the hardware ...
Make the Raspberry running stable
I always loved the raspberry and wanted to them permanently for different purposes, but no matter what, they seemed to bug out after so time. Good, high quality power supplies didn’t help in my case. Even with a high quality PSU only 4.8 Volts where on the test points of the raspberry. ##My Solution Use a Buck-Converter that outputs about 5.2 Volts (The Buck-Converter is the kis3r33s available from china) The advantage of this Buck-Converter is, that is can actually supply enough amperage for the raspberry. The converter does not get warm. I used the shortest USB-Cable I could find (about 15cm), so that the voltage drop of the cable would be minimal. ##Effectiveness ...
Scuba O-Ring Sizes If you’re looking to buy replacement O-Rings, stick to FKM (Viton) as the material. If you buy from non-scuba sources, it’s really not that expensive and does last a lot longer. SCUBA Application Seal Name Gewinde Standard DIN Regulator/Valve (Nearly all DIN regulators) Duro: NBR 70/90, FPM 75 BS1806- 112 5/8" Apeks DIN Regulator/Valve Duro: NBR 70, FPM 70 BS1806- 111 5/8" HP Port/Hose Manifold and Manifold Port Plugs Duro: NBR 90, FPM 90 BS1806- 012 7/16" UNF LP Port/Hose (3/8" UNF) Duro: NBR 70, FPM 70 BS1806- 011 3/8" UNF HP swivel Duro: NBR 90, FPM 90 BS1806- 003 1/16" If your looking for more details, checkout Scuba Doctor.