GithubHelp home page GithubHelp logo

Comments (9)

nachoparker avatar nachoparker commented on May 22, 2024

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.

Plorenzo avatar Plorenzo commented on May 22, 2024

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.

nachoparker avatar nachoparker commented on May 22, 2024

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:

  1. mount image
  2. touch bootmnt/ssh
  3. sync
  4. dd to SD card

from nextcloudpi.

Plorenzo avatar Plorenzo commented on May 22, 2024

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:

  1. Download image from https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/
  2. Insert SD into mac
  3. diskutil unmountDisk /dev/disk3
  4. cd ~/Downloads
  5. sudo dd bs=1m if=NextCloudPi_03-31-17_FULL.img of=/dev/rdisk3
  6. cd /Volumes/boot
  7. touch ssh
  8. Eject SD
  9. Insert SD into RPi
  10. 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.

nachoparker avatar nachoparker commented on May 22, 2024

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.

Plorenzo avatar Plorenzo commented on May 22, 2024

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.

nachoparker avatar nachoparker commented on May 22, 2024

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.

nachoparker avatar nachoparker commented on May 22, 2024

opened as a new issue #5

from nextcloudpi.

Plorenzo avatar Plorenzo commented on May 22, 2024

Thank you for the contribution and the quick answers! I'm looking forward to try NextCloudPi :)

from nextcloudpi.

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.