benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Tue May 01, 2012 6:05 pm

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

User avatar
spennig
Posts: 84
Joined: Mon Aug 29, 2011 11:34 am
Location: New Forest
Contact: Website

Re: Arch Linux Enable SSH

Tue May 01, 2012 6:45 pm

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

benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Tue May 01, 2012 6:58 pm

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.

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Arch Linux Enable SSH

Tue May 01, 2012 7:16 pm

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

User avatar
spennig
Posts: 84
Joined: Mon Aug 29, 2011 11:34 am
Location: New Forest
Contact: Website

Re: Arch Linux Enable SSH

Tue May 01, 2012 7:19 pm

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

benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Tue May 01, 2012 7:29 pm

downloading the images now

benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Tue May 01, 2012 8:02 pm

Ok, so I don't get any HDMI output (using a HDMI to DVI cable) with those images... weird...

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Arch Linux Enable SSH

Tue May 01, 2012 8:17 pm

Do you know if it's booting? Can you try a different display?

Do you get HDMI output with latest debian image?

benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Tue May 01, 2012 8:26 pm

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.

benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Tue May 01, 2012 8:44 pm

nope, a re-image and arch 29-04-12 still won't give hdmi out :'(

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Arch Linux Enable SSH

Tue May 01, 2012 8:51 pm

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?

benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Tue May 01, 2012 8:53 pm

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...


User avatar
Tass
Posts: 535
Joined: Sat Jan 21, 2012 11:15 am

Re: Arch Linux Enable SSH

Tue May 01, 2012 8:54 pm

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?

benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Tue May 01, 2012 8:58 pm

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?)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Arch Linux Enable SSH

Tue May 01, 2012 9:25 pm

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...

User avatar
Tass
Posts: 535
Joined: Sat Jan 21, 2012 11:15 am

Re: Arch Linux Enable SSH

Tue May 01, 2012 9:43 pm

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

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Arch Linux Enable SSH

Tue May 01, 2012 10:11 pm

First boot it generates unique certs.

try deleting /boot/config.txt, when you get a chance

User avatar
Tass
Posts: 535
Joined: Sat Jan 21, 2012 11:15 am

Re: Arch Linux Enable SSH

Tue May 01, 2012 10:49 pm

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?

benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Wed May 02, 2012 5:24 am

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!

benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Wed May 02, 2012 5:30 am

Well, just tried SSH-ing without any modifications, and got a big fat error (connection refused)...

benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Wed May 02, 2012 7:02 am

Will try this evening with the laptop I'm using and the Pi plugged into the same router.

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Arch Linux Enable SSH

Wed May 02, 2012 10:17 am

Maybe IP address changed?

User avatar
Tass
Posts: 535
Joined: Sat Jan 21, 2012 11:15 am

Re: Arch Linux Enable SSH

Wed May 02, 2012 10:23 am

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.

benzeman
Posts: 108
Joined: Fri Apr 20, 2012 12:04 pm
Contact: Website

Re: Arch Linux Enable SSH

Wed May 02, 2012 11:13 am

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.

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: Arch Linux Enable SSH

Wed May 02, 2012 11:26 am

I don't know about Arch, but the standard Linux command should be

hostname -I

Return to “Beginners”