2011-04-13

Linux

sudo su -
stty -F /dev/ttyUSB0 9600 cs8 -cstopb -parenb -icanon min 1 time 1
while true; do
        cat -v < /dev/ttyUSB0
done


В свежепроинсталлированой Fedora Linux не стартует сеть:

system-config-network-tui
system-config-firewall

1) dhclient eth0
2) chkconfig --list networking
chkconfig --list networking on
3)/etc/sysconfig/network-scripts/ifcfg-eth0:
ONBOOT=yes

virtualbox issue under Fedora 12:
sudo rmmod kvm-intel


Bluetooth:
sdptool browse local
sdptool add --channel=22 SP
sudo rfcomm listen /dev/rfcomm0 22  
cat /dev/rfcomm0
echo 'asdf' > /dev/rfcomm0 
echo -en '\xF4\x57\x01\x00\xB4\xF4\x92\x01\x07\x41\x00\x00\x00\x80\x81\x61\xF5\xF7\xFE\x19\x00\x69\x00\x00\xD8\x3F\x81\x79\x80\x00\x09\x5A\x5A\x00\x29\x19\x3B\x23\x00\x00\x00\x00\x20\x00\x04\x2A\x5B\x80\x00\x00\xCE\x00\x00\x00\x00\x80\x00\x08\x00\x01\x01\x00\x20\x06\x00\x00\xE4\x98\x52' > /dev/rfcomm0
Ref: How do I connect and send data to a bluetooth serial port on Linux? 
 
 
find $directory -type f -name '*' -exec mv {} $directory2/. \; 
ls / | xargs du -hs