Johnholmes
Posts: 3
Joined: Thu Oct 18, 2012 3:31 pm

Debian based barebones server

Thu Oct 18, 2012 3:41 pm

Is there any (or is someone willing to do) barebone server installation for raspberry with only bash terminal/ssh access (u/p: pi : raspberry), crontab, nano, basic logging and networking and programs + apt-get?

I'd like to use my 256mb memory version as server with only minimal amount of memory for graphics. Any programs I would install using the apt-get. It would be great if it could be installed to usb-drive (without sd-card) and it would use the whole drive capacity..

I

Johnholmes
Posts: 3
Joined: Thu Oct 18, 2012 3:31 pm

Re: Debian based barebones server

Thu Oct 18, 2012 4:17 pm

Actually, why not base it to raspbian wheezy :P ... and oh it should handle netfilter (for iptables based firewalling)

Anyway, is there someone who could do this?

User avatar
RaTTuS
Posts: 9485
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Debian based barebones server

Thu Oct 18, 2012 4:21 pm

you have to boot from the SD card - there is no way around that
you can move the root FS to a USB hard disk if you want
there are a couple of threads about what you can remove from an installation
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

milhouse
Posts: 613
Joined: Mon Jan 16, 2012 12:59 pm

Re: Debian based barebones server

Thu Oct 18, 2012 4:31 pm

If you boot Raspbian Wheezy, then execute the following commands as root to remove all the desktop GUI/X11 programs and associated services:

Code: Select all

apt-get update

# Remove libx11-6 to remove x11 and all dependent packages (anything GUI related, basically)
apt-get remove libx11-6 libgtk-3-common xkb-data lxde-icon-theme raspberrypi-artwork penguinspuzzle

# Clean up redundant packages
apt-get autoremove

# Purge config files for removed packages
dpkg -l | awk '/^rc/ {print $2}' | xargs dpkg --purge
You'll be left with a paired down installation suitable as a server, but still with dev tools and various scripting languages (Python etc.). Remove the scripting languages if you don't want those too.

bantu
Posts: 18
Joined: Thu Sep 20, 2012 2:23 am

Re: Debian based barebones server

Thu Oct 18, 2012 4:41 pm

@milhouse: Use "apt-get purge" instead of "apt-get remove" to also remove the config files.
apt-get wrote:Commands:
remove - Remove packages
purge - Remove packages and config files

Johnholmes
Posts: 3
Joined: Thu Oct 18, 2012 3:31 pm

Re: Debian based barebones server

Thu Oct 18, 2012 5:16 pm

Ahh! Excellent! Thank you!

How can I set the memory usage so that there is only bare minimum used for the graphics?

milhouse
Posts: 613
Joined: Mon Jan 16, 2012 12:59 pm

Re: Debian based barebones server

Thu Oct 18, 2012 5:35 pm

bantu wrote:@milhouse: Use "apt-get purge" instead of "apt-get remove" to also remove the config files.
apt-get wrote:Commands:
remove - Remove packages
purge - Remove packages and config files
Ah yes, I realised that after I had removed the packages and then purge had no effect, hence my workaround. Should remember to use purge in future! :)
Last edited by milhouse on Thu Oct 18, 2012 5:39 pm, edited 1 time in total.

milhouse
Posts: 613
Joined: Mon Jan 16, 2012 12:59 pm

Re: Debian based barebones server

Thu Oct 18, 2012 5:38 pm

Johnholmes wrote: How can I set the memory usage so that there is only bare minimum used for the graphics?
You need to copy the required memory split file to start.elf, eg. arm240_start.elf would give you 240MB RAM with 16MB for the GPU (don't think you can go any lower than 16MB).

gdonald
Posts: 5
Joined: Sun Dec 16, 2012 8:01 am

Re: Debian based barebones server

Sun Dec 16, 2012 8:06 am

bantu wrote:@milhouse: Use "apt-get purge" instead of "apt-get remove" to also remove the config files.
Or the even shorter

Code: Select all

dpkg -P

Return to “Advanced users”

Who is online

Users browsing this forum: No registered users and 16 guests