Forum

Full Version: Can't make ssh start automatically.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
xbian@xbian /etc $ cat xbian_version
1.0Beta1.1

Every time reboot, I have goto " setup-> xbian -> service -> ssh -> run " to make ssh work.

I have set /etc/rc.local
Quote:sleep 30; /etc/init.d/ssh restart
but this is not working.

I also set ssh by console.
Quote:root@xbian:~# xbian-config services status ssh
ssh 5
root@xbian:~# xbian-config services autostart ssh disable
1
root@xbian:~# xbian-config services autostart ssh enable
1
Still not working. Sad

Also I have try install openbsd-inetd and telnetd. It's not start when system boot too.

Any idea for this problem? Huh
can you send output of

Code:
sudo -i
insserv -v

?
(19th Oct, 2013 06:37 AM)mk01 Wrote: [ -> ]can you send output of

Code:
sudo -i
insserv -v

?

Code:
root@xbian:~# sudo -i
root@xbian:~# insserv -v
insserv: creating .depend.boot
insserv: creating .depend.start
insserv: creating .depend.stop
root@xbian:~#


Seen insserv works fine. Each file are print below.

Code:
root@xbian:~# cat /etc/init.d/.depend.boot
TARGETS = networking urandom hostname.sh checkroot-bootclean.sh mountkernfs.sh procps pppd-dns rpcbind mountdevsubfs.sh checkroot.sh kmod mtab.sh mountnfs.sh mountnfs-bootclean.sh bootmisc.sh screen-cleanup
INTERACTIVE = checkroot.sh
rpcbind: networking
mountdevsubfs.sh: mountkernfs.sh
checkroot.sh: mountdevsubfs.sh hostname.sh
kmod: checkroot.sh
mtab.sh: checkroot.sh
mountnfs.sh: networking rpcbind
mountnfs-bootclean.sh: mountnfs.sh
bootmisc.sh: checkroot-bootclean.sh mountnfs.sh mountnfs-bootclean.sh
screen-cleanup: mountnfs.sh mountnfs-bootclean.sh
root@xbian:~# cat /etc/init.d/.depend.start
TARGETS = bootlogs killprocs motd single rpcbind ifplugd iguanaIR lirc openbsd-inetd anacron cron rsync ssh rmnologin rc.local
INTERACTIVE =
single: killprocs bootlogs motd
lirc: iguanaIR
rmnologin: ifplugd lirc iguanaIR rpcbind openbsd-inetd bootlogs motd anacron cron rsync ssh
rc.local: ifplugd lirc iguanaIR rpcbind openbsd-inetd bootlogs motd anacron cron rsync ssh
root@xbian:~# cat /etc/init.d/.depend.stop
TARGETS = urandom ifplugd lirc openbsd-inetd iguanaIR sendsigs umountnfs.sh rpcbind networking umountfs umountroot halt reboot
iguanaIR: lirc
sendsigs: ifplugd lirc iguanaIR openbsd-inetd
umountnfs.sh: ifplugd lirc iguanaIR sendsigs openbsd-inetd
rpcbind: umountnfs.sh
networking: ifplugd umountnfs.sh rpcbind
umountfs: ifplugd lirc iguanaIR umountnfs.sh networking urandom rpcbind openbsd-inetd
umountroot: umountfs
halt: umountroot
reboot: umountroot
root@xbian:~#

Thanks for you reply.
and please send :

Code:
ls -la /etc/rc2.d
(19th Oct, 2013 05:49 PM)mk01 Wrote: [ -> ]and please send :

Code:
ls -la /etc/rc2.d

Looks fine. I think.
Code:
xbian@xbian ~ $ ls -la /etc/rc2.d
total 56
drwxr-xr-x 1 root root  264 Oct 19 01:54 .
drwxr-xr-x 1 root root 3036 Jan  1  1970 ..
-rw-r--r-- 1 root root  677 Jul 15 01:24 README
lrwxrwxrwx 1 root root   18 Jun 22 22:19 S01bootlogs -> ../init.d/bootlogs
lrwxrwxrwx 1 root root   14 Jun 22 22:19 S01motd -> ../init.d/motd
lrwxrwxrwx 1 root root   17 Oct 17 05:54 S04rpcbind -> ../init.d/rpcbind
lrwxrwxrwx 1 root root   17 Oct 17 01:09 S08ifplugd -> ../init.d/ifplugd
lrwxrwxrwx 1 root root   18 Oct 17 01:09 S08iguanaIR -> ../init.d/iguanaIR
lrwxrwxrwx 1 root root   17 Oct 17 01:09 S09anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root   14 Oct 17 01:09 S09cron -> ../init.d/cron
lrwxrwxrwx 1 root root   14 Oct 17 01:09 S09lirc -> ../init.d/lirc
lrwxrwxrwx 1 root root   23 Oct 17 15:28 S09openbsd-inetd -> ../init.d/openbsd-inetd
lrwxrwxrwx 1 root root   15 Oct 17 01:09 S09rsync -> ../init.d/rsync
lrwxrwxrwx 1 root root   13 Oct 19 01:54 S09ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root   18 Oct 18 21:32 S11rc.local -> ../init.d/rc.local
lrwxrwxrwx 1 root root   19 Oct 17 01:09 S11rmnologin -> ../init.d/rmnologin

this is process list. It seen it lost some daemon too. ex. cron

Code:
PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:04 /sbin/init
    2 ?        S      0:00 [kthreadd]
    3 ?        S      0:19 [ksoftirqd/0]
    5 ?        S<     0:00 [kworker/0:0H]
    7 ?        S<     0:00 [kworker/u:0H]
    8 ?        S      0:16 [rcu_kthread]
    9 ?        S<     0:00 [khelper]
   10 ?        S      0:00 [kdevtmpfs]
   11 ?        S<     0:00 [netns]
   12 ?        S      0:00 [bdi-default]
   13 ?        S<     0:00 [kblockd]
   14 ?        S      0:00 [khubd]
   15 ?        S      0:30 [kworker/0:1]
   16 ?        S      0:04 [kworker/u:1]
   19 ?        S      0:00 [kswapd0]
   20 ?        S      0:00 [fsnotify_mark]
   21 ?        S<     0:00 [crypto]
   27 ?        S<     3:32 [VCHIQ-0]
   28 ?        S<     0:25 [VCHIQr-0]
   29 ?        S<     0:00 [VCHIQs-0]
   30 ?        S<     0:00 [dwc_otg]
   31 ?        S<     0:00 [DWC Notificatio]
   32 ?        S<     0:00 [deferwq]
   33 ?        S      0:00 [kworker/u:2]
   40 ?        S      0:26 [mmcqd/0]
  197 ?        S      0:00 [btrfs-worker-1]
  198 ?        S      0:00 [btrfs-genwork-1]
  199 ?        S      0:00 [btrfs-submit-1]
  200 ?        S      0:00 [btrfs-delalloc-]
  201 ?        S      0:00 [btrfs-fixup-1]
  202 ?        S      0:03 [btrfs-endio-1]
  203 ?        S      0:00 [btrfs-endio-met]
  204 ?        S      0:00 [btrfs-rmw-1]
  205 ?        S      0:00 [btrfs-endio-rai]
  206 ?        S      0:00 [btrfs-endio-met]
  207 ?        S      0:01 [btrfs-endio-wri]
  208 ?        S      0:00 [btrfs-freespace]
  209 ?        S      0:00 [btrfs-delayed-m]
  210 ?        S      0:00 [btrfs-cache-1]
  211 ?        S      0:00 [btrfs-readahead]
  212 ?        S      0:00 [btrfs-flush_del]
  213 ?        S      0:00 [btrfs-cleaner]
  214 ?        S      0:00 [btrfs-transacti]
  236 ?        S      0:00 /usr/bin/splash --reopen --msgtxt=loading... --percentagebar --percentage=15
  301 ?        S<     0:00 [rpciod]
  302 ?        S<     0:00 [nfsiod]
  313 ?        S      0:00 upstart-udev-bridge --daemon
  326 ?        Ss     0:00 /sbin/udevd --daemon
  400 ?        S<     0:00 [loop0]
  416 ?        S      0:00 /sbin/udevd --daemon
  417 ?        S      0:00 /sbin/udevd --daemon
  603 ?        S      0:16 /usr/sbin/ifplugd -i eth0 -q -f -u0 -d10 -w -I
  631 ?        S      0:03 /usr/sbin/ifplugd -i lo -q -f -u0 -d10 -w -I
  646 ?        S      0:00 /usr/sbin/pppd call dsl-provider
  649 ?        S      0:00 [kworker/0:2]
  663 ?        S      0:00 upstart-socket-bridge --daemon
  685 ?        Ss     0:00 /sbin/rpcbind -w
  700 ?        Ss     0:00 /sbin/rpc.statd
  727 ?        S      0:03 /usr/sbin/ifplugd -i ppp0 -q -f -u0 -d10 -w -I
  742 ?        S      0:00 [nfsv4.0-svc]
  793 tty1     Ss+    0:00 /bin/sh -e /proc/self/fd/9
  800 tty1     S+     0:00 /bin/sh /etc/init.d/rc S
  824 tty1     SL+    0:00 startpar -p 4 -t 20 -T 3 -M boot -P N -R S
  854 ?        S<l  146:22 /usr/local/lib/xbmc/xbmc.bin --standalone
  962 ?        S      0:00 [VCHIQka-0]
  990 ?        Ss     0:05 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 102:104
1018 ?        S<     0:00 [krfcommd]
4008 ?        S<s    0:00 /usr/sbin/sshd
4171 ?        S      0:00 [flush-btrfs-1]
4188 ?        S<s    0:00 sshd: xbian [priv]
4192 ?        S<     0:00 sshd: xbian@pts/0
4193 pts/0    S<s    0:00 -bash
4219 ?        S      0:00 [flush-179:0]
4220 ?        S      0:00 [flush-0:27]
4238 pts/0    R<+    0:00 ps ax
This RPi is type B with Samsung chipset.

Also, I have been set the /etc/network/interfaces manual. would this cause any problem?
Code:
auto lo

iface lo inet loopback
#iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
wireless-power off
iface default inet dhcp

auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up
provider dsl-provider

auto eth0
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
dns-nameservers 8.8.8.8 8.8.4.4
Hi,
I have same problem. I thought that problem is my strange configuration and tried reinstaling everything but without success (same problem occured). Finaly I made clear installation and all I did is: Install beta 1.1 on SD, apt-get update, apt-get upgrade, installed developement apache and transmission through xbian-configure and afther reboot apache, transmission, ssh, Igunair, Dbus, Lirc, Avahi-Daemon cron are stopped (Xbmc and Ntp are only services that are checked for autostart that are running). If i go to xbmc-system-xbian-services those services are checked for autostart but are stopped and I can manualy start them from there. I tried unchecking autostart rebooting and checking again autostart but nothing happens I still need to manualy start them.
EDIT: runlevel says unknown
I'm completely confused by this as well.

Where and how does xbian/xbmc start sshd?

I've got no /etc/init.d/ssh, nor do I have it listed in /etc/init/ssh.conf to be run by upstart-job.
Hello
I have the same Problem with reboot and ssh activation
Have you found a solution ?
Thanks
sshd is started via inetd.

/etc/inetd.conf contains line:
Code:
ssh  stream  tcp  nowait  root   /usr/sbin/tcpd /usr/sbin/sshd -i
Reference URL's