Giter Site home page Giter Site logo

Comments (21)

drtyhlpr avatar drtyhlpr commented on June 5, 2024

thanks for your feedback - i need to investigate this - hm haven't tested screen yet.

ENABLE_DBUS=false was set on your command line - maybe by mistake - this is why u need to post-install dbus manually.

from rpi23-gen-image.

fangfufu avatar fangfufu commented on June 5, 2024

Yes, I was informed by OpenVPN that I needed dbus - I thought I didn't need it. I thought providing this extra bit of information might be of some use.

By the way, I detached the terminal by pressing Ctrl + A, then d. I typed it wrong.

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

@fangfufu
all my rpi2s/sdcards are currently busy - I need more sdcards ;] / so I need some more days to test and verify your problem.

here is a post that sounds similar to the problem you described: http://serverfault.com/questions/660728/screen-r-not-working-with-ssh

if you have time please send me the output of the following commands:
screen -ls
(and or)
ls -laR /var/run/screen/

ps. I don't know dbus well - I only see it is a req dependency from X or systemd error logs - I will add some note about openvpn to the readme.md

from rpi23-gen-image.

fangfufu avatar fangfufu commented on June 5, 2024

I connected to two SSH sessions, these commands were performed in one session that was kept on.

Before exiting the other SSH session:

fangfufu@vanguard:~$ screen -ls
There is a screen on:
        2169.pts-2.vanguard     (05/01/16 01:30:48)     (Detached)
1 Socket in /var/run/screen/S-fangfufu.

fangfufu@vanguard:~$ ls -laR /var/run/screen/
/var/run/screen/:
total 0
drwxrwxr-x  3 root     utmp      60 Jan  5 01:30 .
drwxr-xr-x 16 root     root     500 Jan  3 00:35 ..
drwx------  2 fangfufu fangfufu  60 Jan  5 01:30 S-fangfufu

/var/run/screen/S-fangfufu:
total 0
drwx------ 2 fangfufu fangfufu 60 Jan  5 01:30 .
drwxrwxr-x 3 root     utmp     60 Jan  5 01:30 ..
prw------- 1 fangfufu fangfufu  0 Jan  5 01:30 2169.pts-2.vanguard
fangfufu@vanguard:~$

After exiting the SSH session:

fangfufu@vanguard:~$ screen -ls
No Sockets found in /var/run/screen/S-fangfufu.

fangfufu@vanguard:~$ ls -laR /var/run/screen/
/var/run/screen/:
total 0
drwxrwxr-x  3 root     utmp      60 Jan  5 01:30 .
drwxr-xr-x 16 root     root     500 Jan  3 00:35 ..
drwx------  2 fangfufu fangfufu  40 Jan  5 01:33 S-fangfufu

/var/run/screen/S-fangfufu:
total 0
drwx------ 2 fangfufu fangfufu 40 Jan  5 01:33 .
drwxrwxr-x 3 root     utmp     60 Jan  5 01:30 ..
fangfufu@vanguard:~$

By the way, my problem is different to the one described in serverfault, that person failed to reattach, whereas for me, the whole socket got deleted.

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

ok - my first impression is that this seems not to be a problem related to the image creation process - but I may be wrong - I will try to solve your issue this weekend....wired problem...

here is another post - that really ;] sounds like the problem you described:
http://superuser.com/questions/58525/how-do-i-reconnect-to-a-lost-screen-detached-missing-socket

from rpi23-gen-image.

fangfufu avatar fangfufu commented on June 5, 2024

I have previous debootstrap my own Debian image before, not using your script, using the instructions from:
https://wiki.debian.org/MatthiasSchmitz#Building_own_Debian_image_for_Raspberry_Pi

It worked fine for me. I didn't have this strange screen problem. I have a filling that some permissions might not have been set correctly / signals aren't passing through correctly. In the image created using your script, ping doesn't work natively. I had to give the binary the +S flag.

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

hm I understand your point. but my point is that I am just using the standard installer utilities for a debian linux to build an image. Times have changed and I feel like Linux became Windows in the way that a (well tested) default install of linux distros uses GBs of data and the user has to remove all the stuff he possibly does not need. if you check the dependency-relation-tree it is still hard to get a small final OS with all the tools and GUIs you maybe like even if you use the created images by this script - well thats my point of view. (summary: this text somehow says that it's debian's fault / because I am just using their minimal installer fe. type 'minbase' does not work without minimal mods / so I conclude that there may be small errors or problems if you don't use tasksel install (like ping / well I am sure I used ping but I will test that too).

I will try to help you, but you seem to have advanced linux/debian skills (like your own bootstrap instructions etc.) - so I am NOT sure if I can. so fe. I am sure you already used strace etc

from rpi23-gen-image.

fangfufu avatar fangfufu commented on June 5, 2024

Ah, no worries. I am not that good with Linux. I haven't used strace. I know how to copy and paste other people's command, that's about it.

Your script is wonderful, by the way. Keep up with the good work. :)

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

thanks - but of course I do not want to offer a script without working screen and ping / which are very essential utilities :)

I am happy you like it - I just created it to save people time / maybe bring some people back to smaller OS sizes (and finally to RIOT OS... hehe) / work on their project instead of messing with the bootstrapping etc.

from rpi23-gen-image.

fangfufu avatar fangfufu commented on June 5, 2024

I think ping's problem is easy to solve. You are sort of right about tasksel. I have occasionally created images that required me to manually give the +s flag to ping. But I am absolutely clueless about screen though.

I think running Debian is simply better than running Raspbian. You get to use all the random repositories that people have put on the Internet, especially deb-multimedia.

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

"In any event ping won't be usable until netbase has been configured, rather than simply unpacked. dpkg --pending --configure will fix that."

dpkg --pending --configure heh first time I hear about that command ... hmmm (added to list of things to test to fix described problems)

from rpi23-gen-image.

fangfufu avatar fangfufu commented on June 5, 2024

Where did you get this piece of information from? It is kind of useful
for me to learn about these too. :)

On 07/01/16 20:09, drtyhlpr wrote:

"In any event ping won't be usable until netbase has been configured,
rather than simply unpacked. dpkg --pending --configure will fix that."

|dpkg --pending --configure| heh first time I hear about that command
... hmmm (added to list of things to test to fix described problems)


Reply to this email directly or view it on GitHub
#10 (comment).

from rpi23-gen-image.

parobalth avatar parobalth commented on June 5, 2024

This problem existed also with my image. It is wicked to google for a solution because all you get are solutions to other screen related problems. Somehow the screen process gets killed when you logout. My working solution was to reinstall the packages 'openssh-client' and 'openssh-server'. Then I restarted the ssh server with 'sudo service sshd restart'. Screen now works as expected. Please tell me if this solution fixes the problem for you too.

EDIT:
I have noticed the hard way that my workaround is not a permanent solution. After a reboot the decribed problems with screen are back again. I'm going to further investigate this issue.
There are no such problems with Sjoerd Luons image (http://sjoerd.luon.net/posts/2015/02/debian-jessie-on-rpi2/) which is also a Debian Jessie debootstrap with extra packages for hardware support.

from rpi23-gen-image.

parobalth avatar parobalth commented on June 5, 2024

A persistent workaround is "sudo apt-get -y purge openssh-server && sudo apt-get -y install openssh-server". The 'purge' command deletes all configuration files and deinstalls the package. I think that openssh may not be properly set up in the image. I tried to move the installation of openssh-server to a later position in the script and have to buy another sd-card to test it.

from rpi23-gen-image.

zerkman avatar zerkman commented on June 5, 2024

Also got this problem. I confirm parobalth’s solution fixed the issue.

from rpi23-gen-image.

 avatar commented on June 5, 2024

@parobalth I'll buy you some SD (MicroSD?) cards or donate if needed.

from rpi23-gen-image.

fangfufu avatar fangfufu commented on June 5, 2024

I can confirm that ''sudo apt-get install --reinstall openssh-server'' fixes the problem.

from rpi23-gen-image.

zerkman avatar zerkman commented on June 5, 2024

FWIW, I forgot to mention that LXC containers also got terminated when you log out. This is also fixed with the reinstallation of openssh-server.

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

sorry I am very bussy with my job currently . I went to hell with an orchid w board currently working on a g25 project that I know since today should be working start of next week (hey it works very nice so far)...

I will include the fix soon - thanks for your help!

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

hm I currently don't have a rpi2 next to me. but I thought about if the error is related to the following lines (511, 512) of the script:

rm -fr $R/etc/ssh/ssh_host_*
LANG=C chroot $R dpkg-reconfigure openssh-server

from rpi23-gen-image.

drtyhlpr avatar drtyhlpr commented on June 5, 2024

checked with latest version of this script -> fixed.thanks for all help

from rpi23-gen-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.