No ssh after systemd install

This forum is for all other ARMv5 devices

No ssh after systemd install

Postby aasemkhan » Sun Dec 09, 2012 7:05 am

Hi, I can't find a post that addresses this particular issue so posting this question.

Recently installed arch linux on a p21. Then tried to set up static IP (through rc.conf settings) and it worked fine except I wasn't seeing the device on my router. That plus all comments about using netcfg, I figured I'd go that route so installed systemd and systemd-sysvcompat (that process removed sysvinit).

Now when I reboot the green light blinks and I have no ssh access to the box. I tried to change the rc.conf settings back to the original dhcp settings (from my ububtu machine) but no luck.

I'm pretty new to arch linux so follow instructions with limited knowledge of the system. I can change the files on the USB no problem by using my ubuntu machine. I also have another pogoplug p21 new in a box which I can use in this task if needed.

Any help in the right direction (perhaps another thread that I didn't pull up in my search?) will be greatly appreciated.
aasemkhan
 
Posts: 13
Joined: Sun Dec 09, 2012 6:49 am

Re: No ssh after systemd install

Postby pepedog » Sun Dec 09, 2012 9:39 am

You can't run systemd on these devices until kernel goes 3.x
Pogoplug Pro/Video/V3/B0x
Yes, you want netcfg but in DAEMONS line but replace network with net-profiles (in rc.conf)
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: No ssh after systemd install

Postby aasemkhan » Sun Dec 09, 2012 4:16 pm

Thanks for the info. Can you clarify two things please:

1) Where do I add the net-profiels in the Network section of rc.conf? I had added it in the Daemons section (right before sshd), but it didn't seem to make a difference.

2) How would I uninstall systemd without access to the pogoplug? Can it be done from my ubuntu machine, or would I have to pull out the other pogoplug and start from scratch?

If there's a link to do any of the options in 2 above that I may have missed, please shoot it over.

Thanks.
aasemkhan
 
Posts: 13
Joined: Sun Dec 09, 2012 6:49 am

Re: No ssh after systemd install

Postby WarheadsSE » Sun Dec 09, 2012 4:19 pm

1) I actually don't know off the top of my head.

2) You can use the other device, and attach this device's rootfs drive, then do all the necessary work in a chroot. If you don't have much work into this, then just re-imaging might be simpler.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: No ssh after systemd install

Postby pepedog » Sun Dec 09, 2012 5:03 pm

With netcfg installed, here are some files to edit or create
$this->bbcode_second_pass_code('', '# cat /etc/conf.d/netcfg
# Enable these netcfg profiles at boot time.
#   - prefix an entry with a '@' to background its startup
#   - set to 'last' to restore the profiles running at the last shutdown
#   - set to 'menu' to present a menu (requires the dialog package)
# Network profiles are found in /etc/network.d
NETWORKS=(myeth0)

# Specify the name of your wired interface for net-auto-wired
WIRED_INTERFACE="eth0"

# Specify the name of your wireless interface for net-auto-wireless
WIRELESS_INTERFACE="wlan0"

# Array of profiles that may be started by net-auto-wireless.
# When not specified, all wireless profiles are considered.
#AUTO_PROFILES=("profile1" "profile2")


# cat /etc/network.d/myeth0
CONNECTION='ethernet'
DESCRIPTION='ISP'
INTERFACE='eth0'
IP='static'
ADDR='87.194.121.99'
NETMASK='255.255.248.0'
GATEWAY='87.194.120.1'
DNS=('87.194.255.154')')
In /etc/rc.conf
On the line at the bottom where it says DAEMONS
replace the word network with net-profiles
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: No ssh after systemd install

Postby aasemkhan » Sun Dec 09, 2012 6:15 pm

Thanks for the details pepedog.

I'll work on this and report back the results.

Much appreciated.
aasemkhan
 
Posts: 13
Joined: Sun Dec 09, 2012 6:49 am

Re: No ssh after systemd install

Postby Geoff » Sun Dec 09, 2012 6:17 pm

$this->bbcode_second_pass_quote('pepedog', 'I')n /etc/rc.conf On the line at the bottom where it says DAEMONS replace the word network with net-profiles

On my PogoPro, I have managed to move everything out of /etc/rc.conf and into the various places that systemd would expect to find it, with the single exception being the DAEMONS definition at the end of /etc/rc.conf. With all that said and done, though, it's still using initscripts. I suppose the latest initscripts must have some compatibility feature that interprets systemd configuration, in order to make all that work properly. I'm not sure this is what everyone will want to do yet, because it makes some of the how-to wisdom found in this forum obsolete.
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm

Re: No ssh after systemd install

Postby aasemkhan » Sun Dec 09, 2012 11:54 pm

OK, so I did the above and still nothing, so will pull out the new pogoplug.

However, so others in this predicament - who don't have an extra one lying around - can be helped, what would be the solution if one were to 'start over'?

Also once I set up the new one, with a usb, would that usb work on the old machine, so I can reset it?
aasemkhan
 
Posts: 13
Joined: Sun Dec 09, 2012 6:49 am

Re: No ssh after systemd install

Postby karog » Mon Dec 10, 2012 12:07 am

$this->bbcode_second_pass_quote('aasemkhan', 'O')K, so I did the above and still nothing, so will pull out the new pogoplug.

However, so others in this predicament - who don't have an extra one lying around - can be helped, what would be the solution if one were to 'start over'?

Also once I set up the new one, with a usb, would that usb work on the old machine, so I can reset it?

Just reformat the drive and install a fresh rootfs and the other things the install tells you like setting /usr/local/mac_addr, hostname, etc. This drive would work on old or new version 3 pogo but adjust mac_addr, hostname, etc.
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: No ssh after systemd install

Postby aasemkhan » Sun Dec 16, 2012 3:51 am

Gents, just reporting back a complete failure.

My other pogo is a different model (E02), so while that one installed fine, I'm still stuck with the P21.

I tried installing the rootfs on the usb but can't untar onto it, or untar on my laptop and move the files to it. Getting permission issues even if I use sudo su.

I have just enough linux knowledge to be very dangerous (had to reinstall ubuntu on my laptop last night because of a wrong "/" after an rm command), so if someone can direct me to any link or resource that can provide instructions on how to install on the USB directly it would be greatly appreciated.

If not that, then any way of connecting directly to the pogo would also probably get me there.

Much appreciated.
aasemkhan
 
Posts: 13
Joined: Sun Dec 09, 2012 6:49 am

Next

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 1 guest