Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

shellinabox unRAID plugin

Featured Replies

can switch back to original shellinbox plugin, but i only use FF so it does me no good to have it if i cant connect and use underscores...

  • Replies 59
  • Views 13.3k
  • Created
  • Last Reply
  • Author

I just did a test on my dev machine and it installed just fine.

 

I was running an older version on there but I moved the new .plg into place and ran installplg /boot/config/plugins/shellinabox.plg

i will try to re-install, that's exactly how I installed it, but will try it again.

 

UPDATE:

 

removed shellinabox, then reinstalled same issue - service says its running but cannot connect no matter what port i have it set to.

same for me ... opening in a new tab doesn't work either ...

and there is nothing in the logs :(

 

attached shellinabox log

shellinaboxd.zip

  • Author

OK, you two that seem to be having issues:

 

can you open a telnet connection and type:

ps -ef | grep shellin

let me know what the output is

 

next try this one and let me know the output:

/usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4500

OK, you two that seem to be having issues:

 

can you open a telnet connection and type:

ps -ef | grep shellin

let me know what the output is

 

next try this one and let me know the output:

/usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4500

Output of first command:

root    15174  1223  0 22:12 pts/0    00:00:00 grep shellin

 

Output of second command:

Cannot read valid certificate from "certificate.pem". Check file permissions and file format.

  • Author

OK, so I see this issue listed and discussed but it is too late right now for me to look into it.

 

try running this command for me:

cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4500

 

I will take a look when I have some time and see what I can come up with.

here is the outcome

 

root@p5bplus:~# ps -ef | grep shellin

root    32350 12878  0 11:05 pts/0    00:00:00 grep shellin

 

and

root@p5bplus:~# /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4200

root@p5bplus:~# Cannot read valid certificate from "certificate.pem". Check file permissions and file format.

Had to do CTRL-C to stop it

 

and

cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4200

 

seems to have solved the issue ....

 

can connect now

 

 

  • Author

and

cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4200

 

seems to have solved the issue ....

 

can connect now

 

OK, it is about 12:30am my time and I have to be up in 5 hours.  I will get a new .plg put together in the morning and put it up for grabs.

Do easy :)

 

it is not urgent at all ....

used to use putty ...

but this is good for on the tablet or android phone :)

 

  • Author

OK, new version uploaded.

 

Download and test please.  This should fix the issue sacretagent and nacat78 have

installed updated plugin, same results as before, even rebooted server no joy... as sacretagent said no rush, i have been using putty myself too just wanted another option, i really appreciate the help.

well i put the new plg in the boot/plugins folder

rebooted the server and no Joy after that

but then i stopped the plugin and started it again and it worked

 

and it still works .... just tried .... can not reboot now again as family is watching stuff

 

  • Author

well i put the new plg in the boot/plugins folder

rebooted the server and no Joy after that

but then i stopped the plugin and started it again and it worked

 

and it still works .... just tried .... can not reboot now again as family is watching stuff

Good to hear it is working for you.  When you get a chance test a reboot and let me know what happens please.

  • Author

installed updated plugin, same results as before, even rebooted server no joy... as sacretagent said no rush, i have been using putty myself too just wanted another option, i really appreciate the help.

 

can you give me the output of:

cat /etc/rc.d/rc.shellinaboxd

I see this

 

 

root@tower:/boot/config/plugins# /etc/rc.d/rc.shellinaboxd stop
Stopping shellinaboxd...
cat: /var/run/shellinaboxd/shellinaboxd.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
shellinaboxd Stopped

 

 

 

root@tower:/boot/config/plugins# ps -ef | grep shel
root       310  5761  0 15:59 pts/0    00:00:00 grep shel
nobody   15275     1  0 Aug04 ?        00:00:00 /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4500
nobody   15276 15275  0 Aug04 ?        00:00:00 /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4500

 

root@tower:/boot/config/plugins# /etc/rc.d/rc.shellinaboxd start
Starting shellinaboxd...
warning: commands will be executed using /bin/sh
job 8 at Mon Aug  5 16:00:00 2013
shellinaboxd Started

 

root@tower:/boot/config/plugins# ps -ef | grep shel
root       394  5761  0 16:00 pts/0    00:00:00 grep shel
nobody   15275     1  0 Aug04 ?        00:00:00 /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4500
nobody   15276 15275  0 Aug04 ?        00:00:00 /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4500

 

 

root@tower:/boot/config/plugins# /etc/rc.d/rc.shellinaboxd stop
Stopping shellinaboxd...
/etc/rc.d/rc.shellinaboxd: line 25: kill: (331) - No such process
/etc/rc.d/rc.shellinaboxd: line 28: kill: (331) - No such process
shellinaboxd Stopped

 

root@tower:/boot/config/plugins# ps -ef | grep shel
root       819  5761  0 16:02 pts/0    00:00:00 grep shel
nobody   15275     1  0 Aug04 ?        00:00:00 /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4500
nobody   15276 15275  0 Aug04 ?        00:00:00 /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4500

  • Author

what about the output of:

cat /etc/rc.d/rc.shellinaboxd

 

and

cat /var/run/shellinaboxd/shellinaboxd.pid

root@tower:/boot/config/plugins# cat /etc/rc.d/rc.shellinaboxd
#!/bin/sh
# Start/stop/restart the shellinaboxd:

shellinaboxd_start() {
  # no-op if not enabled
  if [ $SERVICE != "enable" ]; then
    return
  fi

  # no-op if already running
  if [ -r /var/run/shellinaboxd/shellinaboxd.pid ]; then
    return
  fi

  echo "Starting shellinaboxd..."

  echo "/usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=$PORT" | at now

  echo "shellinaboxd Started"
}

shellinaboxd_stop() {
  echo "Stopping shellinaboxd..."

  kill $(cat /var/run/shellinaboxd/shellinaboxd.pid)
  sleep 3
  if [ -e /var/run/shellinaboxd/shellinaboxd.pid ]; then
                kill -9 $(cat /var/run/shellinaboxd/shellinaboxd.pid)
                rm -f /var/run/shellinaboxd/shellinaboxd.pid
  fi
  echo "shellinaboxd Stopped"

}

shellinaboxd_restart() {
  shellinaboxd_stop
  sleep 3
  shellinaboxd_start
}

# read our configuration
source /boot/config/plugins/shellinaboxd/shellinaboxd.cfg

case "$1" in
'start')
  shellinaboxd_start
  ;;
'stop')
  shellinaboxd_stop
  ;;
'restart')
  shellinaboxd_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
esac

 

 

Below code is empty

 

cat /var/run/shellinaboxd/shellinaboxd.pid

this dosent work from command prompt

 

 /etc/rc.d/rc.shellinaboxd start

 

works OK from GUI

installed updated plugin, same results as before, even rebooted server no joy... as sacretagent said no rush, i have been using putty myself too just wanted another option, i really appreciate the help.

 

can you give me the output of:

cat /etc/rc.d/rc.shellinaboxd

Output from above command:

root@SERVER:~# cat /etc/rc.d/rc.shellinaboxd
#!/bin/sh
# Start/stop/restart the shellinaboxd:

shellinaboxd_start() {
  # no-op if not enabled
  if [ $SERVICE != "enable" ]; then
    return
  fi

  # no-op if already running
  if [ -r /var/run/shellinaboxd/shellinaboxd.pid ]; then
    return
  fi

  echo "Starting shellinaboxd..."

  echo "cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=$PORT" | at now

  echo "shellinaboxd Started"
}

shellinaboxd_stop() {
  echo "Stopping shellinaboxd..."

  kill $(cat /var/run/shellinaboxd/shellinaboxd.pid)
  sleep 3
  if [ -e /var/run/shellinaboxd/shellinaboxd.pid ]; then
                kill -9 $(cat /var/run/shellinaboxd/shellinaboxd.pid)
                rm -f /var/run/shellinaboxd/shellinaboxd.pid
  fi
  echo "shellinaboxd Stopped"

}

shellinaboxd_restart() {
  shellinaboxd_stop
  sleep 3
  shellinaboxd_start
}

# read our configuration
source /boot/config/plugins/shellinaboxd/shellinaboxd.cfg

case "$1" in
'start')
  shellinaboxd_start
  ;;
'stop')
  shellinaboxd_stop
  ;;
'restart')
  shellinaboxd_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
esac

  • Author

installed updated plugin, same results as before, even rebooted server no joy... as sacretagent said no rush, i have been using putty myself too just wanted another option, i really appreciate the help.

 

can you give me the output of:

cat /etc/rc.d/rc.shellinaboxd

Output from above command:

root@SERVER:~# cat /etc/rc.d/rc.shellinaboxd
#!/bin/sh
# Start/stop/restart the shellinaboxd:

shellinaboxd_start() {
  # no-op if not enabled
  if [ $SERVICE != "enable" ]; then
    return
  fi

  # no-op if already running
  if [ -r /var/run/shellinaboxd/shellinaboxd.pid ]; then
    return
  fi

  echo "Starting shellinaboxd..."

  echo "cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=$PORT" | at now

  echo "shellinaboxd Started"
}

shellinaboxd_stop() {
  echo "Stopping shellinaboxd..."

  kill $(cat /var/run/shellinaboxd/shellinaboxd.pid)
  sleep 3
  if [ -e /var/run/shellinaboxd/shellinaboxd.pid ]; then
                kill -9 $(cat /var/run/shellinaboxd/shellinaboxd.pid)
                rm -f /var/run/shellinaboxd/shellinaboxd.pid
  fi
  echo "shellinaboxd Stopped"

}

shellinaboxd_restart() {
  shellinaboxd_stop
  sleep 3
  shellinaboxd_start
}

# read our configuration
source /boot/config/plugins/shellinaboxd/shellinaboxd.cfg

case "$1" in
'start')
  shellinaboxd_start
  ;;
'stop')
  shellinaboxd_stop
  ;;
'restart')
  shellinaboxd_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
esac

 

That is as I would expect after the install of the new .plg.  I have no idea what yours is failing.

 

can you enter this command and see if shellinabox starts:

cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4200

 

and then try stopping shellinabox and then try this command:

echo "cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=$PORT" | at now

installed updated plugin, same results as before, even rebooted server no joy... as sacretagent said no rush, i have been using putty myself too just wanted another option, i really appreciate the help.

 

can you give me the output of:

cat /etc/rc.d/rc.shellinaboxd

Output from above command:

root@SERVER:~# cat /etc/rc.d/rc.shellinaboxd
#!/bin/sh
# Start/stop/restart the shellinaboxd:

shellinaboxd_start() {
  # no-op if not enabled
  if [ $SERVICE != "enable" ]; then
    return
  fi

  # no-op if already running
  if [ -r /var/run/shellinaboxd/shellinaboxd.pid ]; then
    return
  fi

  echo "Starting shellinaboxd..."

  echo "cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=$PORT" | at now

  echo "shellinaboxd Started"
}

shellinaboxd_stop() {
  echo "Stopping shellinaboxd..."

  kill $(cat /var/run/shellinaboxd/shellinaboxd.pid)
  sleep 3
  if [ -e /var/run/shellinaboxd/shellinaboxd.pid ]; then
                kill -9 $(cat /var/run/shellinaboxd/shellinaboxd.pid)
                rm -f /var/run/shellinaboxd/shellinaboxd.pid
  fi
  echo "shellinaboxd Stopped"

}

shellinaboxd_restart() {
  shellinaboxd_stop
  sleep 3
  shellinaboxd_start
}

# read our configuration
source /boot/config/plugins/shellinaboxd/shellinaboxd.cfg

case "$1" in
'start')
  shellinaboxd_start
  ;;
'stop')
  shellinaboxd_stop
  ;;
'restart')
  shellinaboxd_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
esac

 

That is as I would expect after the install of the new .plg.  I have no idea what yours is failing.

 

can you enter this command and see if shellinabox starts:

cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4200

 

and then try stopping shellinabox and then try this command:

echo "cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=$PORT" | at now

Then I get this for first command:

 

Cannot read valid certificate from "certificate.pem". Check file permissions and file format.

 

and This for the second:

 

echo "cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=$PORT" | at now

warning: commands will be executed using /bin/sh

job 10 at Mon Aug  5 18:28:00 2013

  • Author

This command:

echo "cd /tmp && /usr/local/bin/shellinaboxd --background=/var/run/shellinaboxd/shellinaboxd.pid -s /:LOGIN --port=4200" | at now

 

should start shellinabox without issue.  Not sure why on your system it is not, short of the error you posted above.  I will have to do some more looking into it and figure out what is going on.

  • 2 weeks later...

sorry for late reply.... been busy with work

 

yeah still same after reboot it doesn't work

but once you restart shellinabox in the gui then it works

both on the page as in the tab....

and as far as i can tell it continues to work .. will test tomorrow if i can still get in ....

  • Author

sorry for late reply.... been busy with work

 

yeah still same after reboot it doesn't work

but once you restart shellinabox in the gui then it works

both on the page as in the tab....

and as far as i can tell it continues to work .. will test tomorrow if i can still get in ....

OK, so it does seem to work now... that is good to hear.

 

I will do some testing on my VM when I get a chance but I have not had the issue of rebooting and it not starting.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.