Puppy Linux Blog

About





This Blog:
PRITLOG is an extremely simple, small and powerful blog system. 
Just drop Pritlog into your server and it starts running. No separate installation is required. The basic idea is derived from a similar app called PPLOG.

Stats

Users Online: 0
Hits: 0

Convert .ogg to .mp3

for x in *.ogg; do ffmpeg -i "$x" -ab 128 "`basename "$x" .ogg`.mp3"; done

This does an entire dir at once. You must be inside the dir you want to convert. Substitute whatever you want your target bitrate to be up where 128 is.

Author: admin -  Date: 18 Dec 2011 04:13
Category: ffmpeg -  Visits: 2003

No Comments - Edit - Delete



mplayer and recording

To record using mplayer, use the following format:

mplayer -dumpstream -dumpfile <filename> <url>

Author: admin -  Date: 18 Dec 2011 04:07
Category: mplayer -  Visits: 2167

No Comments - Edit - Delete



External IP

curl whatismyip.org

or

wget -O - -q http://whatismyip.org/

Author: admin -  Date: 18 Dec 2011 04:00
Category: internet -  Visits: 2060

No Comments - Edit - Delete




Author: adminlowing is what is used for commandline for connecting to the Samsung Instinct via bluetooth

*readmore*
05:50:37: ~ > hcitool scan
Scanning ...
        00:24:91:8A:B6:7F       Al's Phone
05:50:58: ~ > sdptool browse  00:24:91:8A:B6:7F
Browsing 00:24:91:8A:B6:7F ...
Service RecHandle: 0x10000
Service Class ID List:
  "PnP Information" (0x1200)

Service Name: HSP PS Audio Gateway
Service RecHandle: 0x10001
Service Class ID List:
  "Headset Audio Gateway" (0x1112)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0100

Service Name: HFP PS Audio Gateway
Service RecHandle: 0x10002
Service Class ID List:
  "Handsfree Audio Gateway" (0x111f)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 2
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0105

Service Name: Dialup Networking
Service RecHandle: 0x10003
Service Class ID List:
  "Dialup Networking" (0x1103)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 3
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100
Service Name: Serial Server
Service RecHandle: 0x10004
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 4

Service Name: Object Exchange
Service RecHandle: 0x10005
Service Class ID List:
  "OBEX Object Push" (0x1105)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 5
  "OBEX" (0x0008)
Profile Descriptor List:
  "OBEX Object Push" (0x1105)
    Version: 0x0100

Service Name: File Transfer
Service RecHandle: 0x10006
Service Class ID List:
  "OBEX File Transfer" (0x1106)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 6
  "OBEX" (0x0008)
Profile Descriptor List:
  "OBEX File Transfer" (0x1106)
    Version: 0x0100

Service RecHandle: 0x10007
Service Class ID List:
  "AV Remote Target" (0x110c)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 23
  "AVCTP" (0x0017)
    uint16: 0x100
Profile Descriptor List:
  "AV Remote" (0x110e)
    Version: 0x0100
Service Name: Advanced audio source
Service RecHandle: 0x10008
Service Class ID List:
  "Audio Source" (0x110a)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 25
  "AVDTP" (0x0019)
    uint16: 0x100
Profile Descriptor List:
  "Advanced Audio" (0x110d)
    Version: 0x0100

Service Name: Sim Access
Service RecHandle: 0x10009
Service Class ID List:
  "SIM Access" (0x112d)
  "Generic Telephony" (0x1204)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 7
Profile Descriptor List:
  "SIM Access" (0x112d)
    Version: 0x0100
   
 
 Make sure phone are paired with bluetooth .
 
 Contents of /etc/wvial.conf should be:
 
[Modem0]
Modem = /dev/ttyACM0
Baud = 115200
SetVolume = 0
DialCommand = ATDT
Init = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = ATM0

[Dialer test]
Username = ""
Password = ""
Phone = #777
Init1 = ATZ
ISDN = 0
Modem Type = Analog Modem
Auto Reconnect = on
Carrier Check = no
Stupid Mode = 1
Inherits = Modem0

[Dialer al]
Modem = /dev/rfcomm0
Baud = 115200
Init1 = AT+CGDCONT=1,"IP","WAP.CINGULAR"
Init2 = ate0q0v1
Init3 = at
Init4 = at
#FlowControl = CRTSCTS
Phone = *99#
Username = <phone number>
Password = <password>
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
CompuServe = 0
Idle Seconds = 300
ISDN = 0

[Dialer Defaults]
Modem = /dev/rfcomm0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
stupid mode = 1
Modem Type = Analog Modem
Phone = *99***#
ISDN = 0
Username = a
Password = b
Baud = 460800

; Phone =
; Username =
; Password =
 
 
 
Then In one console use: 
Try this first:
05:51:42: ~ > rfcomm connect 0 00:24:91:8A:B6:7F 3

05:51:42: ~ > rfcomm connect 0
bluetoothd[22508]: link_key_request (sba=00:22:43:F9:F3:DC, dba=00:24:91:8A:B6:7F)
Connected /dev/rfcomm0 to 00:24:91:8A:B6:7F on channel 3
Press CTRL-C for hangup

        This will bring up an option on the phone to connect to DUN, answer yes.


In another console use:
05:51:42: ~ > wvdial

Make sure you have dns nameserver in /etc/resolve.conf
ie:
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 208.67.222.222
nameserver 63.226.12.96
nameserver 72.3.208.251



To use Blu-tooth internet with samsung instinct:
Start Gnome-ppp
Use  "rfcomm connect 0 00:24:91:8A:B6:7F 3" in a console
use "wvdial" in another console


To transfer file from laptop to phone:
Make sure bluetooth is enabled on the phone
Use  "rfcomm connect 0" in a console

Note the hardware address (00:24:91:8A:B6:7F) of the phone and the channel (5) for the Obex Object Push  from the above hcitool scan

Use  obex_test -b  00:24:91:8A:B6:7F 5 in a console on laptop
at the prompt type "c" for connect
at the prompt type "p" to push a file the use [/path/to/file  file] which is [path to the file on laptop filename]

this should transfer the file to /menu/my pictures on the phone


 -  Date:
Category:  -  Visits: 1303

No Comments - Edit - Delete




Author: admin -  Date:
Category:  -  Visits: 1339

No Comments - Edit - Delete



Pages: ... [2] [3]