Askozia Forums
May 21, 2012, 09:23:08 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ssh and asterisk console  (Read 2464 times)
binary_dreamer
Full Member
***

Karma: 1
Posts: 55


View Profile
« on: February 27, 2010, 09:26:44 pm »

hi.
i managed to get acced through ssh to askozia;s console.
i am trying to get the asterisk console to debug some sessions but nothing
i am doing
#asterisk -r
and it does not recognise the command. any ideas?
Logged
giovanni.v
Hero Member
*****

Karma: 53
Posts: 670


View Profile
« Reply #1 on: February 27, 2010, 09:56:17 pm »

#asterisk -r
and it does not recognise the command. any ideas?

/offload/rootfs/usr/sbin/asterisk -r
Logged
Michael
Askozia Staff
Hero Member
*

Karma: 49
Posts: 1020


View Profile
« Reply #2 on: February 28, 2010, 09:58:58 am »

It should also just work with: /usr/sbin/asterisk -r

The PATH for ssh access does not include /sbin or /usr/sbin. If someone wants to throw the right rc file in the pbx/rootfs overlay I'd be thankful (for the busybox hush shell). I just haven't done it yet.
Logged
Mats Karlsson
Full Member
***

Karma: 5
Posts: 62



View Profile WWW
« Reply #3 on: March 20, 2010, 03:26:25 pm »

From what I understand, the file that dropbear uses for setting up the start env. is:
/etc/profile

and that should contain something like:
PATH="/usr/sbin:/usr/bin:/sbin:/bin"

Im still learning the Askozia boot system so Im unable to add the correct file for the moment.
Logged
Michael
Askozia Staff
Hero Member
*

Karma: 49
Posts: 1020


View Profile
« Reply #4 on: March 20, 2010, 08:02:53 pm »

The /etc directory is in a writable part of the filesystem. You could ssh in, and use vi to add that file. Then log out and ssh back in. If the path is set correctly this time, then the problem's solved. I thought the shell, hush, would have to set this but if dropbear sets it directly that's ok too.
Logged
Mats Karlsson
Full Member
***

Karma: 5
Posts: 62



View Profile WWW
« Reply #5 on: March 21, 2010, 06:18:20 am »

Before posting the tip I created the file and it worked, then I rebooted and the file was gone....

Is there any documentation what fs Askozia uses ?
Logged
Michael
Askozia Staff
Hero Member
*

Karma: 49
Posts: 1020


View Profile
« Reply #6 on: March 21, 2010, 08:43:11 am »

Rebooting clears the memory file system. The entire system, except for /usr, lives in an initramfs file system. The /usr directory is mounted read-only from the install media. This combination eliminates writes to the installed media, except for configuration changes (one write for the config.xml file) and reduces ram usage by storing the big binaries in /usr directory on the install media.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.063 seconds with 18 queries.