Comments (9)
This image is based in Raspbian, so there is no difference
If you place a file called ssh it indeed enables SSH
If you look at
https://github.com/nachoparker/qemu-raspbian-network/blob/master/qemu-pi.sh
The relevant code is
# prepare the image
SECTOR1=$( fdisk -l $IMG | grep FAT32 | awk '{ print $2 }' )
SECTOR2=$( fdisk -l $IMG | grep Linux | awk '{ print $2 }' )
OFFSET1=$(( SECTOR1 * 512 ))
OFFSET2=$(( SECTOR2 * 512 ))
mkdir -p tmpmnt
mount $IMG -o offset=$OFFSET1 tmpmnt
touch tmpmnt/ssh # this enables ssh
umount tmpmnt
I use that everyday (automatically) to build NextCloudPi images, so I know it works.
You must have done something wrong... maybe you forgot to sync and umount?
from nextcloudpi.
maybe I'm missing something but I unmount the SD (on my Mac) after I run:
sudo dd bs=1m if=NextCloudPi_03-31-17_FULL.img of=/dev/rdisk3
and I add the ssh file
After I insert the SD to the pi, attach the ethernet to the router, I find the IP the Pi has been assigned and I try
ssh [email protected]
the result is:
ssh: connect to host 192.168.1.73 port 22: Operation timed out
from nextcloudpi.
how are you adding the ssh file to the boot partition?
did you run sync before dd'ing the image to the SD?
Just to be sure:
- mount image
- touch bootmnt/ssh
- sync
- dd to SD card
from nextcloudpi.
I'm not sure what you mean by sync, I add the file with touch from the boot directory.
This are the steps I'm doing:
- Download image from https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/
- Insert SD into mac
diskutil unmountDisk /dev/disk3
cd ~/Downloads
sudo dd bs=1m if=NextCloudPi_03-31-17_FULL.img of=/dev/rdisk3
cd /Volumes/boot
touch ssh
- Eject SD
- Insert SD into RPi
ssh [email protected]
And then I get one of the following error:
ssh: connect to host 192.168.1.73 port 22: Operation timed out
ssh: connect to host 192.168.1.73 port 22: Host is down
from nextcloudpi.
The steps look ok to me, but I do not own an apple computer, so I am not sure.
Try to type sync
after step 7
In any case, it must be just the same as with any other Raspbian. The exact same
How do you know what IP you have to use? can you ping the IP you are trying to connect to?
Connect a TV and keyboard if you are stuck
from nextcloudpi.
After some time trying to figure it out I think it has to do with DHCP no assigning a local IP to the Pi .
Any idea why it could be?
If I do the exact same steps with the raspbian image, works fine
from nextcloudpi.
I tested the issue and you are right:
as long as wicd is active, DHCP no longer appears to work.
I will disable it by default then
thanks for the feedback, I'll open a new issue with this
from nextcloudpi.
opened as a new issue #5
from nextcloudpi.
Thank you for the contribution and the quick answers! I'm looking forward to try NextCloudPi :)
from nextcloudpi.
Related Issues (20)
- v1.53.1 breaks NextcloudPi panel on custom domain (4443) HOT 16
- Request entity too large when sync files using Photosync app
- NCP Disable automatic preview generation HOT 1
- setting up webauthn with fido2 not working
- [IMPORTANT] nc-encrypt will totally brick the entire installation HOT 1
- Run a module (etc nc-upnp) every 6 hrs support
- Clean Install Max Upload Is 8M HOT 4
- Upgrade from 26 to 27 fails, rollback as well
- Format USB drive doesn't respect flag from GUI HOT 2
- Restoring Backup after drive crash is not possible HOT 1
- How to set radio 0 hard disk backup in nextcloudPI; how to mount different hard disk partitions for different users, HOT 1
- Unable to restore NCP instance backup with ncp-restore
- Deleted files not going to deleted directory HOT 2
- Support update to Nextcloud 27.1.7 HOT 2
- Improve behavior when updating and there are no updates
- Remove Docker from project about and tags HOT 1
- Rolling back to backup after successful upgrade 26.0.3 to 27.0.1 ! HOT 1
- ncp-backup: exclude pattern not working
- Add support for Nextcloud 28.0.4 HOT 2
- old domain link in login screen 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 nextcloudpi.