WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Disabling network related extensions  (Read 307 times)

Offline ashfame

  • Full Member
  • ***
  • Posts: 112
Disabling network related extensions
« on: July 08, 2020, 04:41:02 PM »
Hi,

As I am using Raspberry Pi Zero (non-W) which has no network capabilities whatsoever. Can I remove network related extensions from piCore?

To being with, openssh & openssl packages come to mind. Are there more?

I don't care about the disk space at all, just wish to optimize the memory footprint and since I will be using copy2fs.flag, just preventing it from starting up will still cause it to reside in memory, right?

Not sure about their sizes, so don't know if I stand to gain anything by removing them completely rather than just disabling their start.

I think this will also help with the boot time since no key pair needs to be generated at boot up.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 8120
Re: Disabling network related extensions
« Reply #1 on: July 08, 2020, 06:35:05 PM »
Hi ashfame
The  copy2fs.flg  file causes all extensions listed in  tce/onboot.lst  to be copied to RAM. Removing those entries from  tce/onboot.lst
would be sufficient.

Offline ashfame

  • Full Member
  • ***
  • Posts: 112
Re: Disabling network related extensions
« Reply #2 on: July 09, 2020, 02:22:33 PM »
Hi ashfame
The  copy2fs.flg  file causes all extensions listed in  tce/onboot.lst  to be copied to RAM. Removing those entries from  tce/onboot.lst
would be sufficient.

Hi Rich,

thanks! I can see 3 files in piCore11 by default:
Code: [Select]
mc.tcz
openssh.tcz
libgcrypt.tcz

I think I can easily get rid of `openssh.tcz` and `libgcrypt.tcz`. But I am unsure about `mc.tcz`

http://tinycorelinux.net/11.x/armv6/tcz/mc.tcz.info describes it as "User shell with text-mode full-screen interface". Is this the shell that I see on tty1? Or something else?

If latter (which I think it is, otherwise this won't be in tce/optional, more likely baked into kernel itself), I guess this can be removed as well.

Offline ashfame

  • Full Member
  • ***
  • Posts: 112
Re: Disabling network related extensions
« Reply #3 on: July 09, 2020, 04:54:34 PM »
I removed all 3 entries from onboot.lst and it worked fine :) Thanks Rich!

Offline ashfame

  • Full Member
  • ***
  • Posts: 112
Re: Disabling network related extensions
« Reply #4 on: July 09, 2020, 05:06:31 PM »
Additionally, I also added "nodhcp" bootcode to disable network address allotment upon boot 8)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 8120
Re: Disabling network related extensions
« Reply #5 on: July 09, 2020, 05:08:13 PM »
Hi ashfame
mc.tcz  is Midnight Commander. It is an  ncurses  based file manager type program that can run in a terminal or the console. No GUI
required. It uses extended ASCII characters for line drawing graphics.

Offline ashfame

  • Full Member
  • ***
  • Posts: 112
Re: Disabling network related extensions
« Reply #6 on: July 09, 2020, 05:15:11 PM »
Thanks for that explanation Rich! I googled it and now I understand what it actually is :)