Archive for 2015-05-28

OpenVPN windows automatikus indítása Windows-on

regedit

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

Majd az alábbi kulcs hozzádása:

openvpn

“C:\Program Files\OpenVPN\bin\openvpn-gui.exe” –connect housemaster.ovpn

Példa:

openvpn_regedit

 

Arduino PRO + FTDI how to

We use the JY-MCU USB Serial Port Adapter from dx.com. These are extremely cheap but unfortunately the documentation is very scarce (as with almost all DX stuff) so connecting it to an Arduino Mini Pro 3.3V Atmega328 can be confusing.

  1. Connect USB 3.3V to Arduino VCC. (red)
  2. Connect USB Ground to Arduino BLK. (black)
  3. Connect USB TXO to Arduino RXI. (yellow)
  4. Connect USB RXD to Arduino TXD. (blue)
  5. Connect USB DTR (Data Terminal Ready, which is basically a RS-232 line) to Arduino GRN. (green)

 

The VBUS on the JY-MCU Serial Adapter is basically just an extra 5.2V line, handy for Rasberry Pi serial communication.
After wiring everything together select the Arduino Mini Pro 3.3V 328 (make sure it’s the correct voltage!) in the dropdown.

mt7601U Wifi dongle telepítése Raspberry Pi2-re

Frissítünk GCC-4.7re:

apt-get install gcc-4.7
rm /usr/bin/gcc
ln -s /usr/bin/gcc-4.7 /usr/bin/gcc

letöltjük a driver forrást (https://github.com/porjo/mt7601):

mt7601-master vagy

git clone https://github.com/porjo/mt7601.git

majd

$ cd mt7601/src
$ make
$ mkdir -p /etc/Wireless/RT2870STA/
$ cp RT2870STA.dat /etc/Wireless/RT2870STA/
$ insmod os/linux/mt7601Usta.ko

majd config:

auto ra0
allow-hotplug ra0
iface ra0 inet dhcp
wpa-ssid "ENTER YOUR NETWORK SSID"
wpa-psk "ENTER YOUR NETWORK PASSWORD"

és próba:

ifup ra0

 

CMUS helper

Mert mindig elfelejtem:

Shortcut-ok:

  • c – Pause/Resume
  • C – Toggle playback after current track. Turning this off will halt playback once the current song is done.
  • r – Toggle “repeat” mode.
  • s – Toggle “shuffle” mode.
  • m – Cycle between playback groups: “All from Library”, “Artist from Library”, “Album from Library”.
  • / – Freeform search (in library view)
  • n – Next search result.
  • y – Add to playlist. (Use in Tree View/Library)
  • e – Add to queue. (Use in Tree View/Library/Playlist)
  • p – Move up in Playlist/Queue
  • P – Move down in Playlist/Queue
  • D – Remove from Playlist/Queue
  • 1 – Switch to Tree View
  • 2 – Library View
  • 3 – Playlist
  • 4 – Queue
  • 5 – Directory Browser
  • 6 – View Filters
  • 7 – View Settings

Illetve ha elindul, de nem reagál semmire (kurzor billentyűk, vagy view választók (1-6):

rm ~/.cmus/cache