Greebe
Posts: 3
Joined: Sat Jun 15, 2013 11:15 pm

Headless -- How is this set up?

Sat Jun 15, 2013 11:25 pm

Hello everyone,

First post here. Just got a RPI yesterday and have been playing around with it today.

So far I have installed Raspbmc Xbmc on one SD card and played with using it as a home theater set up.

Installed Raspbian on another card and installed a few programs to get it set up as a desktop.

And then I just got finished installing LAMP on another card to run a web server. I also set up WordPress on this and will end up hosting a regular web page as well.

My question is how to I set the Web Server up as headless to optimize it. I have searched the net and this forum but have not found a tutorial on such a thing. Do I need to somehow keep the GUI from loading? If so then how do I turn it the unit on and off? Is this all remote through another computer?

Sorry for the total noob question but hey I am a noob so treat me as such. At least I am interested in learning right?

Thanks a lot,
Greebe

klricks
Posts: 7172
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Headless -- How is this set up?

Sun Jun 16, 2013 12:29 am

Normally you set up your Web Server connected to a router either by cable or WIFI if you have a WIFI adapter.
Configure your router to Reserve an IP address for the RPi so your router always gives the RPi the same IP number.
Also configure your router for port forwarding.
(See my RPi hosted web site for details).
http://64.13.91.137:86/Comp/RPi/Rpi.html

You will most likely connect remotely to your RPi from another computer or even another RPi using SSH or RDP (full desktop).
Also have tutorials on my site:
If you need to reboot or shutdown then connect to remote computer and just issue the standard commands:
To reboot:
sudo shutdown - r now

To shutdown (halt):
sudo shutdown -h now

For optimization this is all I do but others do more such as deleting unnecessary programs.
On the Rasbian image run the configuration utility by issuing the following at the command prompt:

sudo raspi-config

- Turn enable boot to desktop - off.
- In advanced settings set memory split to GPU=16 (The lowest value GPU). This give the most memory to the CPU as you won't be using the GPU much.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

Greebe
Posts: 3
Joined: Sat Jun 15, 2013 11:15 pm

Re: Headless -- How is this set up?

Mon Jun 17, 2013 4:47 pm

Thanks for the reply. I am reading over your website and will get back to you when I actually try out these things as I will probably not have a chance to mess with the RPI for a few more days.

Thanks
Greebe

Return to “Beginners”