needed packages: mgetty, pppd
start and stop mgetty on plugin of usbmodem (0572:1329 Conexant Systems (Rockwell), Inc.)
/etc/init/mgetty.conf
# mgetty - dialin daemon
description "mgetty daemon"
start on tty-device-added KERNEL=ttyACM0
stop on tty-device-removed KERNEL=ttyACM0
respawn
exec /sbin/mgetty -s 115200 -D /dev/ttyACM0
/etc/mgetty/login.config
/AutoPPP/ - a_ppp /usr/sbin/pppd auth +chap -pap name dialinserver remotename dialer debug
I use chap instead of pap because of plain password used by pap.
/etc/ppp/chap-secrets
dialer dialinserver password *
/etc/ppp/options.ttyACM0
10.0.0.1:10.0.0.2
Client
needed packages: pppd
/etc/ppp/peers/dialinserver
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/dialinserver"
debug
/dev/ttyS0
115200
defaultroute
noipdefault
name dialer
remotename dialinserver
/etc/chatscripts/dialinserver
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE'
ABORT 'NO ANSWER' ABORT DELAYED
'' ATZ
OK-AT-OK "ATDTnumber"
CONNECT \d\c
/etc/ppp/chap-secrets
dialer dialinserver password *
Connect with "pon dialinserver" and disconnect with "poff dialinserver"
[ view entry ] ( 1029 views ) | print article
sudo apt-get install kexec-tools
change LOAD_KEXEC to true in /etc/default/kexec
[ view entry ] ( 800 views ) | print article
First activate and rise webcam audio input level with alsamixer.
ffmpeg -f video4linux2 -i /dev/video0 -pix_fmt yuv420p -s vga -r 8 -f alsa -ac 1 -ar 16000 -i hw:1,0 -vcodec mpeg4 -b 400k -acodec libmp3lame -ab 80k video.avi
[ view entry ] ( 1195 views ) | print article
I got a funny viennese dialect keyboard, but after start using it i missed a key '<,>,|'

So i searched for a way to remap 'AltGr + y' to '|', 'AltGr + ,' to '<' and 'AltGr + .' to '>'
Console
evaluate the key to change with
#> sudo showkey -s
press the key
here y is 0x2c = 44
here , is 0x33 = 51
here . is 0x34 = 52
test remap with
echo "altgr keycode 44 = bar" | loadkeys
bar is a symbolic name i found at German-Howto
Finally i extended /etc/rc.local with
LOADKEYS=$(which loadkeys)
if [ -x $LOADKEYS ]; then
cat << EOT | $LOADKEYS
altgr keycode 44 = bar
altgr keycode 51 = less
altgr keycode 52 = greater
EOT
unset LOADKEYS
fi
Xorg
evaluate the key to change with
#> xev
press the key
here y is keycode 52
here , is keycode 59
here . is keycode 60
test remap with
xmodmap -e "keycode 52 = y Y y Y bar"
dump keys with
#> xmodmap -pke > ~/.Xmodmap
remove all lines except lines starting with desired keycodes to change.
my ~/.Xmodmap now looks like
keycode 52 = y Y y Y bar U203A guillemotright
keycode 59 = comma semicolon comma semicolon less multiply periodcentered
keycode 60 = period colon period colon greater division U2026
[ view entry ] ( 2451 views ) | print article
#> apt-get install xawtv
I assume the usb stick become /dev/video0 and audio became card 1 (card 0 is an onboard audio device)
#> v4lctl -c /dev/video0 setattr input Composite1
#> v4lctl -c /dev/video0 setattr mute off
#> amixer -c 1 sset Line,0 50%,50% unmute cap
test with:
#> arecord -D hw:1,0 -f S16_LE -c2 -r48000 | aplay
To execute this commands automatically on plugin udev could be used:
I have a cheap msi movie vox mini stick using em28xx driver with an option set:
/etc/modprobe.d/local.conf
options em28xx card=38
/etc/udev/rules.d/90-usbvideo.rules:
ACTION=="add", KERNEL=="video*", DRIVERS=="usb", ATTRS{idVendor}=="eb1a", ATTRS{idProduct}=="2861", RUN+="/usr/bin/v4lctl -c /dev/%k setattr input Composite1"
ACTION=="add", KERNEL=="video*", DRIVERS=="usb", ATTRS{idVendor}=="eb1a", ATTRS{idProduct}=="2861", RUN+="/usr/bin/v4lctl -c /dev/%k setattr mute off"
ACTION=="add", KERNEL=="video*", DRIVERS=="usb", ATTRS{idVendor}=="eb1a", ATTRS{idProduct}=="2861", RUN+="/usr/bin/logger video init %k done"
ACTION=="add", KERNEL=="controlC[0-9]*", DRIVERS=="usb", ATTRS{idVendor}=="eb1a", ATTRS{idProduct}=="2861", RUN+="/usr/bin/amixer -c %n sset Line,0 50%,50% unmute cap"
ACTION=="add", KERNEL=="controlC[0-9]*", DRIVERS=="usb", ATTRS{idVendor}=="eb1a", TTRS{idProduct}=="2861", RUN+="/usr/bin/logger audio init card %n done"
v4lctl needs some time to finish, to check the settings use:
v4lctl -c /dev/video0 show
[ view entry ] ( 5171 views ) | print article
<<First <Back | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Next> Last>>