ds00424
Posts: 5
Joined: Mon Oct 21, 2013 2:19 pm

Minimal config for cmdline only mode

Tue Oct 22, 2013 2:54 am

Hi Folks.
I am looking for guidance on a minimal Arch config for the RPi model B when used in cmdline mode (no X)
System will have root and one user account.
will run commands from cron
will use wifi or ethernet
will use ssh
one user will autologin on console via systemd service and run a custom shell + executable
executable writes to framebuffer using SDL

The system runs pretty well now using Arch 3.6.11.17 with updates.
But I would like to remove any unnecessary processes or services as well as minimize disk IO

TIA for any guidance

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Minimal config for cmdline only mode

Wed Oct 23, 2013 7:53 pm

This is a hard question to answer because we do not know what you have already installed that you do not need. You do say you have a running system, which to me means it already does what you want.

Unlike the other distributions, Arch is very bare bones. The only things on it (in my opinion) that could be done away with in the base system are things that you likely need, like the real time daemon, ssh, and wifi (if it's there already, I forget).

the only thing the system came with that I did away with was the time daemon - I think it is called something like nptd. But if your system is always online, I would think you would want that. I found it constantly checking the time to be annoying, so I set the time on my headless system by sending the real time over ssh up to the pi before I log in after a reboot.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

suchenwi
Posts: 27
Joined: Fri Sep 27, 2013 8:40 pm

Re: Minimal config for cmdline only mode

Wed Oct 23, 2013 8:06 pm

ntpd (Network Time Protocol Daemon)

User avatar
cpcnw
Posts: 65
Joined: Thu Jan 05, 2012 5:36 pm
Location: NW UK
Contact: Website

Re: Minimal config for cmdline only mode

Thu Oct 24, 2013 6:27 am

The stock Arch distro for pi is already pretty minimal and cli only. You add [or remove] the stuff you want after install. Distro's like Tiny Core base or Slitaz base seem to have got this down to a fine art. Not sure how much you can strip out of the Arch distro for Pi without rendering other parts of the system inoperable? Guess someone will have dont it though?
If you don't know what you want, you end up with a lot you don't!

Return to “Arch”