Comments (21)
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.
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.
@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.
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.
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.
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.
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.
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.
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.
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.
"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.
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.
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.
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.
Also got this problem. I confirm parobalth’s solution fixed the issue.
from rpi23-gen-image.
@parobalth I'll buy you some SD (MicroSD?) cards or donate if needed.
from rpi23-gen-image.
I can confirm that ''sudo apt-get install --reinstall openssh-server'' fixes the problem.
from rpi23-gen-image.
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.
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.
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.
checked with latest version of this script -> fixed.thanks for all help
from rpi23-gen-image.
Related Issues (20)
- Seg fault HOT 2
- Strange behaviour : kernel panic not at all boots : is #165 back ? + workaround HOT 1
- broken link on project page HOT 2
- resuming build from error HOT 3
- Does the RPI4 run with the 32bit buster image? HOT 5
- Permission problems with rpi23genimage HOT 3
- wlan0 issues with wpa_cli [rpi3b+] HOT 11
- feat: custom.d firstboot action HOT 4
- error msg: bcm2708-rng -- Failed to find module 'bcm2708_rng' HOT 3
- Crash compiling Pi3-Bullseye 32 missing script mkknlimg kernel 5.3 and up (solved PR #212) HOT 2
- Pi4 images compiles (32 & 64) and boot (after Pr #212 #213) solved ! (edited) HOT 4
- Rpi4 64 bit image not working HOT 6
- Bluetooth is uninstalled if ENABLE_SOUND is set to false
- All generated images freeze on the rainbow screen HOT 4
- Typo in 15-rpi-config.sh
- RPI4 eeprom updater
- 20-networking.sh
- Pi4 and Pi4-64 Buster ans Bullseye are back ! (after #226 and #227) HOT 5
- Kernel version issue : 5.10.44-v7 with wrong architecture of binaries in /usr/src/linux (SOLVED) HOT 2
- Why do the "hardening" sysctls basically kill off IPv6 SLAAC and public IPv6? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpi23-gen-image.