WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Towards Core (microcore) on Raspberry Pi  (Read 54205 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7172
    • My Community Forum
Re: Towards Core (microcore) on Raspberry Pi
« Reply #60 on: September 20, 2012, 01:14:17 PM »
I think it'd be good to stay compatible with the x86 repo. There extensions don't generally autostart, but dropbear's init script can generate keys.

curaga,

existing dropbear.tcz in the x86 repo is not PPI compatible, keeps files in /etc, /etc/init.d ... Modifying the dropbear script extension can be made PPI compatible, rearranged in /usr/local

It works fine in the piCore version. Thanks for the original. Modified version attached. Just for the case you want to make x86 version compatible to piCore  :D

« Last Edit: September 20, 2012, 01:27:38 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline t.janos

  • WikiUser
  • *
  • Posts: 3
Re: Towards Core (microcore) on Raspberry Pi
« Reply #61 on: September 21, 2012, 01:17:34 AM »
Bela,
I received your new dropbear.tcz for raspberrypi. I installed it on rpi, and started, as you note, and as usually the parctice with this system daemons, use the start/stop script in ./init.d dir (the special is here, it is not in /etc, but in /usr/local/etc...):

sudo /usr/local/etc/init.d/dropbear start

It start and generate the key files, and listen on the ssh port.
To connect into it from a remote machine, need to create "standard" user(s) on rpi, means username with valid passwd. The recently used TC system has the default username tc, without any password, and this user has root privilegies. The ssh dont allow to make connection with username, havenot passwd.

Another small trick: when I tried to make connection on second time, start a bare/minimal tc system, the ssh dont allow me to make this connection. It happens, because on the previous session the runing dropbear sent me keys, and it was stored on the "remote" machine.
There is a "brute-force" solution to this situation: if you rename/delete the known.hosts file in your home dir, under ./.ssh, the dropbear daemon will send you new keys, valid for the new sessions.
You can see this on the attached screenshot: in the left-side terminal windows I made an ssh connection on my LAN, used the 192.168.1.111 ip. Previously you can see the rename of the known.hosts file. On the right-side windows I made connnection to the raspberrypi through my public ip address, hg5apz.homelinux.org, used the preciously generated username. On this connection run the mc whitout any problems.

So: it is working, and this is a usefull tool to access the growing tc system on rpi. Bela, thank you for it!
t.janos


[attachment deleted by admin]

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10694
Re: Towards Core (microcore) on Raspberry Pi
« Reply #62 on: September 21, 2012, 06:33:51 AM »
@bmarkus

Heh :)

I said it elsewhere, that dropbear.tcz would be updated to current standards when it needed an update otherwise. There weren't any new versions in a long time.

@janos

You're supposed to save the host keys in your backup, as well as set passwords. Both are working as intended.
« Last Edit: September 21, 2012, 06:36:07 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7172
    • My Community Forum
Re: Towards Core (microcore) on Raspberry Pi
« Reply #63 on: September 21, 2012, 09:11:26 AM »
Now it is getting usable. You have file manager, ftp, ssh, htop. I also submitted lynx, sqlite3 and Python 2.7.3 will follow soon.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Towards Core (microcore) on Raspberry Pi
« Reply #64 on: September 23, 2012, 04:22:45 PM »
I have posted an updated image, 20120923
See http://distro.ibiblio.org/tinycorelinux/4.x/armv6/
Both rpiCore and qemuPiCore images have been updated to set time.
10+ Years Contributing to Linux Open Source Projects.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Towards Core (microcore) on Raspberry Pi
« Reply #65 on: September 24, 2012, 01:05:25 AM »
Tested on qemuPiCore.tgz 4.6.1:
The provides function of tce-ab look in the repository of core x86 not in arm repository

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7172
    • My Community Forum
Re: Towards Core (microcore) on Raspberry Pi
« Reply #66 on: September 25, 2012, 02:34:17 AM »
Robert,

what is about X? Are you going to add it and offering a TC variant?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7172
    • My Community Forum
Re: Towards Core (microcore) on Raspberry Pi
« Reply #67 on: September 25, 2012, 05:56:26 AM »
Robert,

can you provide eglibc_base-dev.tcz for piCore?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Towards Core (microcore) on Raspberry Pi
« Reply #68 on: September 26, 2012, 10:35:26 PM »
Tested on qemuPiCore.tgz 4.6.1:
The provides function of tce-ab look in the repository of core x86 not in arm repository
I am considering dropping cgi and using zsync to have databases stored locally.
10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Towards Core (microcore) on Raspberry Pi
« Reply #69 on: September 26, 2012, 10:40:46 PM »
Robert,

what is about X? Are you going to add it and offering a TC variant?
I have too much on my to-do list. Also the arm base core still need more work. Modules need to be factored out. Infrastructure needs more work. Like you are the only one doing extensions. I am only one doing these arm ports and supporting infrastructure, as well as the continuing development of Core x86.

Since X is really just more extensions. Please feel free to not wait on me and proceed if you wish. Otherwise in due time as permits.
10+ Years Contributing to Linux Open Source Projects.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7172
    • My Community Forum
Re: Towards Core (microcore) on Raspberry Pi
« Reply #70 on: September 26, 2012, 11:04:06 PM »
Robert,

can you provide eglibc_base-dev.tcz for piCore?

Managed, drop my request.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7172
    • My Community Forum
Re: Towards Core (microcore) on Raspberry Pi
« Reply #71 on: September 26, 2012, 11:06:06 PM »
Robert,

what is about X? Are you going to add it and offering a TC variant?
I have too much on my to-do list. Also the arm base core still need more work. Modules need to be factored out. Infrastructure needs more work. Like you are the only one doing extensions. I am only one doing these arm ports and supporting infrastructure, as well as the continuing development of Core x86.

Since X is really just more extensions. Please feel free to not wait on me and proceed if you wish. Otherwise in due time as permits.

OK, it was just a qustion. X is not the highest priority stuff as I'm fine with CLI.

BTW, getting close to heve toolchain for piCore, just compiled successfully hello.c on piCore :)
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: Towards Core (microcore) on Raspberry Pi
« Reply #72 on: September 27, 2012, 06:22:15 AM »
Quote
BTW, getting close to heve toolchain for piCore, just compiled successfully hello.c on piCore :)

 :)
« Last Edit: September 27, 2012, 06:23:54 AM by vinnie »

Offline zerophnx

  • WikiUser
  • *
  • Posts: 24
Re: Towards Core (microcore) on Raspberry Pi
« Reply #73 on: September 27, 2012, 10:17:58 AM »
I'm more than willing to help compile programs on my Pi and mix in any necessary files (initscripts and such) from x86 core to help with extensions.

I just have no idea where to start!
« Last Edit: September 27, 2012, 10:20:22 AM by zerophnx »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7172
    • My Community Forum
Re: Towards Core (microcore) on Raspberry Pi
« Reply #74 on: September 27, 2012, 11:19:57 AM »
Hi, wait a bit. I'm actually testing the toolchain on piCore and will release it soon. T
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."