[opensuse-arm] Using image 13.2 headless
I copied the 13.2 JeOS-raspberrypi image onto my SD card and tried to use it headless by connecting to it via "ssh root@<IP-address>", which gives me a prompt for the password. However the password linux does not give me access. What is the password or is there something else I should so? Copying the image to a 16 GB SD card gives me four partitions, a small FAT16 BOOT partition at the beginning and a very small empty partition, a large ext4 partition and a swap partition of about 520 MB at the end. The large ext4 partition takes all the remaining space on the SD card. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 11/22/2014 05:38 PM, Freek de Kruijf wrote:
I copied the 13.2 JeOS-raspberrypi image onto my SD card and tried to use it headless by connecting to it via "ssh root@<IP-address>", which gives me a prompt for the password. However the password linux does not give me access.
What is the password or is there something else I should so?
i don't remember if it was the factory or 13.2 image, but i had to recreate the ssh keys on the pi to log in. of course, you'll need a screen and keyboard connected to your pi for that ... # ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key # ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key - -- Sebastian Kratz @ProhtMeyhet -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJUcMpuAAoJEPy7f1qF9ovT35gP/1Q3HEA2asOPYHmxzzF24ldV Wjh1A2rHU4PSKsZ9+Y8SFreogcHOlRL6DOjVJOW+xgWdMfinxN2yqP0DlemPsUk6 VDbAKqMzvIuUF780ZMLWhnptJF4CfMr9r5en73/Lov1aFnRMNton+XJK7ZfA7W25 GR3G5yxD4fMSlWtAjpjGzjDrzLZN+T/FBm1vqzN8VgwyHoYAQ+HcI5yfWa0OKq6J EnMACsr7v04RPU4+fLC5aujq6cwcm1PUXiCZ8tRytlnhELnUq9Xmo547X+9OPk/m 6hYc6z81I56/FpBXc4mOQJFGkea1rkU9AEiHqbOhQdeFr8SPqlrY463CJoaT61C0 bXUOnhnu9SojxS7epNYgcFXipeoXXnaWMkNNb48At8xKk8JpGagHgT+0KVyDvq5E HAKEGQKX5hoSXErT99aeB3ZUBg2z8g+9Qd177qa5GT8wR9Yi/a/3YqN+YefXup4P iuyeCsR5OpQv9r0MrsELzZNc0pJ8PvqwGpDIbf6MJFM+JXJ7UVcuV1h3d+wUi4L5 7mQQXMF+eqxrkKgs0km7/gpa+Yi0u4tGEsksdX2ClE9rnKbl0hCvOCtDb8N5MyvZ 3iqVfLggd/HVfVShOS+qjmvqdIvP/8poe5zzsM6h2R6Wu3av7AkXeMkgeQJFsyfI yHQknblsi2XFIJ97Kn8p =WL9C -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi, Am 22.11.2014 um 18:39 schrieb Sebastian Kratz:
On 11/22/2014 05:38 PM, Freek de Kruijf wrote:
I copied the 13.2 JeOS-raspberrypi image onto my SD card and tried to use it headless by connecting to it via "ssh root@<IP-address>", which gives me a prompt for the password. However the password linux does not give me access.
What is the password or is there something else I should so?
i don't remember if it was the factory or 13.2 image, but i had to recreate the ssh keys on the pi to log in. of course, you'll need a screen and keyboard connected to your pi for that ...
# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key # ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
The more straightforward way would be to disable YaST firstboot by removing some file. Check the openSUSE Wiki for details. That then allows the pending systemd services to run. Regards, Andreas -- SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 21284 AG Nürnberg
Op zaterdag 22 november 2014 18:59:47 schreef Andreas Färber:
Hi,
I made a mistake in copying the image to the SD card, so I booted an old image. Sorry about that. However after that, I copied the image in the right way and and found that the SD card now contains a GPT formatted image with a FAT partition, a small ext3 /boot partition and the ext4 system / partition. After starting gparted it advised to move the backup GPT table to the end of the device, which I did. With gparted I enlarged the system partition, added a swap partition and after that removed the empty file /var/lib/YaST2/reconfig_system . However after booting the system headless, the network did not appear. I documented this on the wiki. Please help me to get it running. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Am 22.11.2014 um 22:07 schrieb Freek de Kruijf <freek@opensuse.org>:
Op zaterdag 22 november 2014 18:59:47 schreef Andreas Färber:
Hi,
I made a mistake in copying the image to the SD card, so I booted an old image. Sorry about that.
However after that, I copied the image in the right way and and found that the SD card now contains a GPT formatted image with a FAT partition, a small ext3 /boot partition and the ext4 system / partition.
After starting gparted it advised to move the backup GPT table to the end of the device, which I did.
With gparted I enlarged the system partition, added a swap partition and after that removed the empty file /var/lib/YaST2/reconfig_system .
However after booting the system headless, the network did not appear.
I documented this on the wiki.
Please help me to get it running.
Please just dd the image onto your sd card and then boot it up straight from there. The first boot will fix up the gpt headers and repartition the card :). Do you happen to have a ttl serial cable you could connect to the board to see what it's doing? Alex -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Op zondag 23 november 2014 00:10:14 schreef u:
Please just dd the image onto your sd card and then boot it up straight from there. The first boot will fix up the gpt headers and repartition the card :).
Thanks Alex, indeed the SD card gets initialized, like I did. I also see the lights coming up, so apparently the Ethernet interface comes up. However the system does not get an IP address. Inspecting the /var/log/messages later shows that wicked gets started, however there no log entry it gets an IP address.
Do you happen to have a ttl serial cable you could connect to the board to see what it's doing?
No. I don't have such a thing, but the /var/log/messages gives some information. See above. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On 23.11.14 15:22, Freek de Kruijf wrote:
Op zondag 23 november 2014 00:10:14 schreef u:
Please just dd the image onto your sd card and then boot it up straight from there. The first boot will fix up the gpt headers and repartition the card :).
Thanks Alex,
indeed the SD card gets initialized, like I did. I also see the lights coming up, so apparently the Ethernet interface comes up. However the system does not get an IP address. Inspecting the /var/log/messages later shows that wicked gets started, however there no log entry it gets an IP address.
Do you happen to have a ttl serial cable you could connect to the board to see what it's doing?
No. I don't have such a thing, but the /var/log/messages gives some information. See above.
Meh. I just tried to run 13.2 locally on a RPi as well and it looks like Andreas' analysis is correct: Network doesn't work because yast2 firstboot didn't finish yet. You have a few options: 1) Attach a monitor using HDMI and finish yast2 firstboot or 2) Remove the file /var/lib/YaST2/reconfig_system from the target rootfs 3) Attach a serial cable to the uart GPIOs and kill the firstboot process I think in your case, option 2 is the easiest. I'm not really sure how to properly deal with this in our image creation. Some users have a serial cable / monitor attached and want to set the root password on first boot, others don't. How can we accomodate both? Maybe we should add a timeout to the firstboot screen? That way if nobody pressed anything for say 60 seconds, it would automatically quit and leave all the default settings. Bootup could then continue, network would come up and you'd just run using the default password at first. Alex -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Op zondag 23 november 2014 19:30:24 schreef Alexander Graf:
You have a few options:
1) Attach a monitor using HDMI and finish yast2 firstboot or 2) Remove the file /var/lib/YaST2/reconfig_system from the target rootfs 3) Attach a serial cable to the uart GPIOs and kill the firstboot process
I think in your case, option 2 is the easiest. I'm not really sure how to properly deal with this in our image creation. Some users have a serial cable / monitor attached and want to set the root password on first boot, others don't. How can we accomodate both?
Thanks Alex, option 2 did the trick. Now I can log in using root and the published password. Will change it immediately, although it is only connected locally. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Op zaterdag 22 november 2014 18:59:47 schreef Andreas Färber:
Hi,
I made a mistake in copying the image to the SD card, so I booted an old image. Sorry about that. However after that, I copied the image in the right way and and found that the SD card now contains a GPT formatted image with a FAT partition, a small ext3 /boot partition and the ext4 system / partition. After starting gparted it advised to move the backup GPT table to the end of the device, which I did. With gparted I enlarged the system partition, added a swap partition and after that removed the empty file /var/lib/YaST2/reconfig_system . However after booting the system headless, the network did not appear. I documented this on the wiki. Please help me to get it running. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (4)
-
Alexander Graf
-
Andreas Färber
-
Freek de Kruijf
-
Sebastian Kratz