• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Remove all GUI on my RasPi

 
Ranch Hand
Posts: 10191
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you guys please let me know which packages I should uninstall to get rid of all the UI packages? Since I'm running my Pi headless and I've also set SSH enabled, I want to free up some space by removing all the UI that I do not need. Any suggestions?
 
Joe Harry
Ranch Hand
Posts: 10191
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this:

https://gist.github.com/martinparedes/4747196

But not sure if that is the complete set of packages that would get rid of all my GUI! However when I ran this, it said it would free up 205 MB of disk space!
 
Joe Harry
Ranch Hand
Posts: 10191
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After doing what is mentioned in the link above, I additionally ran the following (http://www.stefan-seelmann.de/wiki/rasperrypi-homeserver):



 
Joe Harry
Ranch Hand
Posts: 10191
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like I messed up with my RasPi. When I try to connect via SSH, I get to see the following:



There seems to be no folder on my RasPi that says /etc/ssh_config?
 
Joe Harry
Ranch Hand
Posts: 10191
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had to pay the price for this. I had to reformat and flash the OS again from the start to get this working.
 
Bartender
Posts: 20828
125
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you got confused. /etc/ssh_config should have been the file on the machine you are connecting FROM, /etc/ssh/sshd_config should be what controls the ssh daemon on the RPi itself.

More importantly, I suspect that when you yanked all those GUI packages you snipped out whatever was causing the sshd daemon to auto-start on boot. Unless the daemon is up and listening on the Pi, attempts to connect will fail.

I'm a bit out of practice on the nuances of debian, but control of daemons is normally accomplished by establishing aliases in the /etc/rcX.d directories. Without a GUI, you'd be running at runlevel 3, so there should have been an alias such as /etc/rc3.d/S55sshd pointing to /etc/init.d/sshd.
 
Joe Harry
Ranch Hand
Posts: 10191
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Holloway wrote:I think you got confused. /etc/ssh_config should have been the file on the machine you are connecting FROM, /etc/ssh/sshd_config should be what controls the ssh daemon on the RPi itself.

More importantly, I suspect that when you yanked all those GUI packages you snipped out whatever was causing the sshd daemon to auto-start on boot. Unless the daemon is up and listening on the Pi, attempts to connect will fail.

I'm a bit out of practice on the nuances of debian, but control of daemons is normally accomplished by establishing aliases in the /etc/rcX.d directories. Without a GUI, you'd be running at runlevel 3, so there should have been an alias such as /etc/rc3.d/S55sshd pointing to /etc/init.d/sshd.



I decided this time not to mess around with it anymore. I will check if there are any pre-built images for the RasPi without all the UI packages.
 
Joe Harry
Ranch Hand
Posts: 10191
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This did the trick!



I'm not completely sure if all the relevant packages are removed!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!