понеделник, 31 май 2010 г.

gpsd test install log - tangogps

gpsd - get and install from berlios:

tangoGPS - from home page

start like root:
gpsd -N -G -D 4 /dev/ttyUSB0

GPS device - /dev/ttyUSB0 - for My
-N to get data continuously
-G to listen on all interfaces
-D debug Level

To test:
telnet 0.0.0.0 2947

To get log from GPSD:
cgpxlogger > track.gpx
- for quick test cgps is used.
- do not use tee or other - will broke XML at END.

If all working well and GPS get signal:
- see in telnet:
$GPGSA,A,2,,,,,,,,,,,,,0.0,0.0,0.0*33
$PGRME,93.08,M,28.68,M,97.40,M*22
$GPGGA,083522,4241.2008,N,02315.3579,E,2,00,,643.98,M,36.847,M,,*5B
$GPRMC,083522,A,4241.2008,N,02315.3579,E,0.6999,168.376,310510,,*23
- in cgpxlogger:

2d


- in gpsd debug:
gpsd: PrintSERPacket(, 0x33, 0x40, ) = 0x100383fa
gpsd: SendPacket(), writing 6 bytes: 100600fa1003
gpsd: PrintSERPacket(, 0x6, 00, )
gpsd: ACK
gpsd: PrintSERPacket(, 0x6, 00, ) = 00
gpsd: => GPS: 100600fa1003
gpsd: SendPacket(), wrote 6 bytes
gpsd: <= GPS (binary) /dev/ttyUSB0: $GPGGA,083717,4241.2020,N,02315.3574,E,2,00,,646.51,M,36.847,M,,*58\x0d\x0a$GPRMC,083717,A,4241.2020,N,02315.3574,E,0.2071,344.474,310510,,*22\x0d\x0a$GPGSA,A,2,,,,,,,,,,,,,0.0,0.0,0.0*33\x0d\x0a$PGRME,86.39,M,28.69,M,91.03,M*24 gpsd: => client(0): $GPGGA,083717,4241.2020,N,02315.3574,E,2,00,,646.51,M,36.847,M,,*58\x0d\x0a$GPRMC,083717,A,4241.2020,N,02315.3574,E,0.2071,344.474,310510,,*22\x0d\x0a$GPGSA,A,2,,,,,,,,,,,,,0.0,0.0,0.0*33\x0d\x0a$PGRME,86.39,M,28.69,M,91.03,M*24
gpsd: => client(1): $GPGGA,083717,4241.2020,N,02315.3574,E,2,00,,646.51,M,36.847,M,,*58\x0d\x0a$GPRMC,083717,A,4241.2020,N,02315.3574,E,0.2071,344.474,310510,,*22\x0d\x0a$GPGSA,A,2,,,,,,,,,,,,,0.0,0.0,0.0*33\x0d\x0a$PGRME,86.39,M,28.69,M,91.03,M*24
gpsd: garmin_ser_parse() Type: 0x33, Len: 0x40, chksum: 00

In EVERY LOG is seen :
DIGIT:2
A,2
2d
This mean that GPS Lock position from Two satelites! This is very important.

If not Lock acquired, you will see:
"GPS has no fix" in gpsd log
and
A,1 - in telnet log
and no gpx log will be created from cgpslogger.
Any program will not work and give strange results :).


Google Maps:
First:
http://code.google.com/apis/maps/signup.html

And then:
http://norman.walsh.name/2006/06/20/gpxGoogle - this tool will make from GPX ready for use html - many thanks to creator.


http://www.obviously.com/gis/gpx_loader.html - load GPX file to google maps
Some KEY need :)

http://www.chrislacy.net/map/current/index.html - another loader for GPX file

See here for more:
http://www.topografix.com/gpx_resources.asp

петък, 28 май 2010 г.

catalist 10.5

From Aur: patches for 2.6.33 and 2.6.34-rc4.

--extract SomeDir

cd SomeDir/common/lib/modules/fglrx/build_mod/
cat PatchName| patch

cd SomeDir
./ati-installer.sh . --buildpkg Slackware/All
this will make packages in ../ Dir

If make in hand:
cp /usr/src/ati/fglrx-10.5/arch/x86_64/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 SomeDir/common/lib/modules/fglrx/build_mod/
./make.sh

петък, 21 май 2010 г.

memtest86+ on 64 Amd

memtest86+-4.10 HowTo

make
memtest.bin - linux Kernel x86 :)
copy "memtest.bin" to your boot dir /boot usually, not memtest it's ELF exe
edit
/etc/lilo.conf
add this:

image = /boot/memtest.bin
root=/dev/sda3 # no need
label = Memtest86

execute from bash like root, to refresh Loader >lilo

Grub: close to upper.

reboot choose memtest! And Happy waiting.

сряда, 19 май 2010 г.

Sata hot add remove

Hot Add: redetect for devices on Bus 0, replace host0 with host0-.. for other. It's harmless to try with all ready working devices.
echo "- - -" > /sys/class/scsi_host/host0/scan

Hot Remove: spin down and disable device. Be careful - it can be Root, or mounted device.
!!! Some SATA devices are not HOT swap. !!!
echo 1 > /sys/block/sda/device/delete

From:
http://www.sakana.fr/blog/2009/05/04/linux-sata-hot-plug-unplug/

понеделник, 17 май 2010 г.

slackware 64 with 32bit support compile trouble

1. Pass LDFLAGS to configure, possibly
LDFLAGS='-L/lib64 -L/usr/lib64 -L/usr/X11/lib64 -L/opt/kde/lib64' or
something like that.

This help mi, compiling libtorrent: LDFLAGS='-L/lib64 -L/usr/lib64' ./configure

/usr/lib64/../lib/libstdc++.so: could not read symbols: File in wrong format


from: http://osdir.com/ml/lfs.clfs.support/2006-07/msg00103.html

неделя, 18 април 2010 г.

stream nc mplayer mencoder

Server:
mencoder Movie.avi -really-quiet -oac copy -ovc lavc -lavcopts vcodec=mpeg4 -o - | nc -l -p 10000

Client:
nc lnx.biz.tm 10000 | mplayer -cache 8000 -

Also:

Client:
nc -u -l -p | mplayer -cache 8000 -

Server:
Some Player -o - | nc -u

I use first one - it's play very well. For Home use. With current version of Mencoder trafic is ~ 700-2000kbits/sec

петък, 11 декември 2009 г.

Bluetooth slackware logitech hidd devices

MX5000
1. Unplug USB dongle
2. Press and hold RED BUTTON
3. Plug usb back

lsusb - on terminal - mus see sometig like that ot without

Bus 005 Device 007: ID 046d:0b02 Logitech, Inc. BT Mini-Receiver (HID proxy mode)

edit: "/etc/bluetooth/hcid.conf"
and add:

device 00:07:61:48:34:A2 {
name "Logitech MX1000 mouse";

}
and for keyboard too.
00:07:61:48:34:A2 - this is MAC address of Mouse that can be seen with :


edit: "/etc/bluetooth/main.conf"
and add:
DisablePlugins = network - for Slackware may be other distro too
if this not help and
hcid not load delete plugin from:
/usr/lib/bluetooth/plugins/network.so
This problem appears in some version of Bluez. If have some experience with manualy compiling try some versions from this site "http://www.kernel.org/pub/linux/bluetooth/".

edit: "/etc/rc.d/rc.bluetooth.conf" and
add or change to:
HIDD_ENABLE=true
HIDD_OPTIONS="--master --server" or
"HIDD_OPTIONS="--master --connect 00:07:61:45:AF:A3 --server"" where 00:07:61:45:AF:A3 is MAC of your mouse and keyboard that you add in
"/etc/bluetooth/hcid.conf"

HID2HCI_ENABLE=true - here is the place to say this way is the same way that Logitech use to connect devices like HIDD one. Simply You control this now, and may use Your Bluetooth dobgle for other devices let say Mobile too.
Other way is when you use :
hid2hci -v046d -pc709 -m logitech - here i not discus this but you can try it.

restart Bluetooth:
/etc/rc.d/rc.bluetooth restart - for slackware
do - and must see:
ps xa | grep hidd
15443 ? Ss 0:00 /usr/bin/hidd --master --server
and do the same for "hcid" must see him too


after that:
1. hciconfig hci0 up
2. hciconfig hci0 -a
and hcitool scan
3. hidd --search - RED BUTTON on the Mouse and Keyboard must be pressed while do that if you not have 3 hand do it one by one
4. Hold The BUTTON and hidd --connect 00:07:61:45:AF:A3 one boy one for MAuse nad Keyboard
If they are connected and your X is fine use it :).
in Some cases you must restart X or define them in x.org.
for You help use:
udevadm info -a -p `udevadm info -q path -n /dev/input/eventX` | less
to see devices "eventX" must be replaced.

After that look at the
top and see if hcid eat all your CPU kill it. In this case you not use it.

Links:
http://ubuntuforums.org/showthread.php?t=227057&page=2
https://bugs.launchpad.net/ubuntu/+source/bluez-utils/+bug/29506
http://ubuntuforums.org/showthread.php?t=594624
http://ubuntuforums.org/archive/index.php/t-325455.html
http://ubuntuforums.org/showpost.php?p=6284259&postcount=37