Page 1 of 2
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 6:05 pm
by benzeman
Hi,
How do I enable (read: get from new SD card image to logged) SSH for the Arch Linux image? I've taken a look around the FAT partition for a folder called boot, but no luck, and obviously it's not enabled by default!
Chears,
Ben
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 6:45 pm
by spennig
If it's not already there, install the openssh package:
# pacman -S openssh
Then add it to the DAEMONS list in /etc/rc.conf, so it starts on boot:
DAEMONS=( .... sshd ....)
To start it immediately without reboot.
# rc.d start sshd
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 6:58 pm
by benzeman
I did that, but still can't SSH into the pi. Running rc.d start sshd comes up with: Starting Secure Shell Daemon [FAIL]. That's bad, isn't it...
If it helps, I've already done a pacman -Syu.
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 7:16 pm
by pepedog
Try new images
http://downloads.raspberrypi.o.....4-2012.zip
http://downloads.raspberrypi.o.....2.zip.sha1
http://downloads.raspberrypi.o.....ip.torrent
Default login: root/root
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 7:19 pm
by spennig
Certainly sub-optimal.
As root, what happens when you run the startup command manually?# /usr/bin/ssh-keygen -A# [[ -d /var/empty ]] || mkdir -p /var/empty
# /usr/sbin/sshd
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 7:29 pm
by benzeman
downloading the images now
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 8:02 pm
by benzeman
Ok, so I don't get any HDMI output (using a HDMI to DVI cable) with those images... weird...
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 8:17 pm
by dom
Do you know if it's booting? Can you try a different display?
Do you get HDMI output with latest debian image?
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 8:26 pm
by benzeman
dom said:
Do you know if it's booting? Can you try a different display?
Do you get HDMI output with latest debian image?
I get HDMI output with debian 19-04-12 – I''ll try re-imaging my (arch) SD card…
ps - for the avoidance of doubt I have 2 SD cards, one I'm currently using for debian/demo, and one for arch/webserver. This is (obviously) the arch/webserver card I'm putting arch on.
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 8:44 pm
by benzeman
nope, a re-image and arch 29-04-12 still won't give hdmi out :'(
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 8:51 pm
by dom
I don't think anything HDMI related has changed since debian 19-04-12.
Do you have a config.txt file on debian card?
Do you have a config.txt file on arch card?
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 8:53 pm
by benzeman
dom said:
I don't think anything HDMI related has changed since debian 19-04-12.
Do you have a config.txt file on debian card?
Do you have a config.txt file on arch card?
config on arch:hdmi_mode=19
#arm_freq=800
disable_overscan=1 no config file on debian...
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 8:54 pm
by Tass
benzeman said:
nope, a re-image and arch 29-04-12 still won't give hdmi out :'(
Very weird. I've only used 19-04-12, but it seemed fine. When you boot up are you getting the red Power AND the green OK light?
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 8:58 pm
by benzeman
Tass said:
benzeman said:
nope, a re-image and arch 29-04-12 still won't give hdmi out :'(
Very weird. I've only used 19-04-12, but it seemed fine. When you boot up are you getting the red Power AND the green OK light?
red on all the time, green flickers (I assume red is power, green is load?)
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 9:25 pm
by dom
benzeman said:
config on arch:hdmi_mode=19
#arm_freq=800
disable_overscan=1 no config file on debian...
So arch doesn't work. debian works:
Well the obvious suggestion is to remove the config file from arch...
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 9:43 pm
by Tass
OK - this probably won't help you much, but I've just downloaded & installed the latest image (29-04-2012), applied it to my SD card (Sandisk 2GB MicroSD - unknown class) and plugged in my network cabled & power. Once booted up (took about 60s the first time) I found the IP Address & connected via SSH (using Bitvise Tunnilier) without any problems. No adustments necessary. I'll try plug it into my TV when I can wrestle control back....
Sorry it's not much help
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 10:11 pm
by pepedog
First boot it generates unique certs.
try deleting /boot/config.txt, when you get a chance
Re: Arch Linux Enable SSH
Posted: Tue May 01, 2012 10:49 pm
by Tass
benzeman said:
red on all the time, green flickers (I assume red is power, green is load?)
Yes, green's load as I understand it, so at least you know it's booting up or doing something. For what it's worth, HDMI works for me without any modifications, and I have the config file - same content as above:
hdmi_mode=19
#arm_freq=800
disable_overscan=1
Sounds quite specific to your setup - the way your TV picks up your Pi when running Arch maybe? Hopefully simply removing that config file will sort it out. Not sure what other hmi_mode options there are?
Re: Arch Linux Enable SSH
Posted: Wed May 02, 2012 5:24 am
by benzeman
pepedog said:
First boot it generates unique certs.
try deleting /boot/config.txt, when you get a chance
That worked - I thought arch needed config.txt because 19-04-12 had it, but works fine without!
Re: Arch Linux Enable SSH
Posted: Wed May 02, 2012 5:30 am
by benzeman
Well, just tried SSH-ing without any modifications, and got a big fat error (connection refused)...
Re: Arch Linux Enable SSH
Posted: Wed May 02, 2012 7:02 am
by benzeman
Will try this evening with the laptop I'm using and the Pi plugged into the same router.
Re: Arch Linux Enable SSH
Posted: Wed May 02, 2012 10:17 am
by pepedog
Maybe IP address changed?
Re: Arch Linux Enable SSH
Posted: Wed May 02, 2012 10:23 am
by Tass
pepedog said:
Maybe IP address changed?
Yes, good point - I did notice that every time I booted up the Arch image it had a completely different IP. I have to keep using something like Advanced IP Scanner to get the IP every time.
Re: Arch Linux Enable SSH
Posted: Wed May 02, 2012 11:13 am
by benzeman
Is there a way to check the IP arch has within arch? I used the bt home hub (v2.0a if it helps), and it reported the IP stayed the same.
Re: Arch Linux Enable SSH
Posted: Wed May 02, 2012 11:26 am
by bredman
I don't know about Arch, but the standard Linux command should be
hostname -I