maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Establish BT DUN connection from Console? (https://talk.maemo.org/showthread.php?t=51584)

lm2 2010-05-01 17:49

Establish BT DUN connection from Console?
 
All,

I would like to see what is happening behind the scenes when my n800 running diablo connects to my verizon phone. The connection works wonderfully. I'd just like to be able to see the details spit out in the console.

Can anyone help me do this?

Thanks!

lm2 2010-05-01 21:26

Re: Establish BT DUN connection from Console?
 
Figured it out after searching for a while and piecing together clues.

In case it helps someone else:

1. Add diablo tools to application catalog.
2. Open xterm. Get root. install sysklogd:

Code:

apt-get install sysklogd
3. start syslog:

Code:

/etc/init.d/sysklogd start
4. Do what you want to get system log of. So I established a bluetooth dun connection.

5. Stop syslog:

Code:

/etc/init.d/sysklogd stop
6. copy created syslog to Documents:

Code:

cp /var/log/syslog /home/user/MyDocs/.documents/
7. install emelfm2 and then launch as root (so open new xterm; gain root; then type "emelfm2" and hit return.)

8. In emelfm2, navigate to syslog file located in /home/user/MyDocs/.documents/.

9. Copy contents and paste into a note or email.

10. Voila.

11. This post issues this warning about syslog:

Quote:

note that when you don't need syslog, it's best to remove it and rm /var/log/syslog*. Syslog has some log file rotation, but with time it can fill the root filesystem completely. When that's done by a root process, it can become so full that the device fails to boot.
so I entered the following in xterm (because I wasn't sure what the * meant, I entered both the following):

Code:

rm /var/log/syslog
rm /var/log/syslog*

then I checked the /var/log directory and the syslog was in fact gone.

Hope this helps someone in the future.

bunanson 2010-05-02 00:26

Re: Establish BT DUN connection from Console?
 
Thanks, useful info. Will get handy one day.

bun


All times are GMT. The time now is 14:36.

vBulletin® Version 3.8.8