• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Remove all GUI on my RasPi

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This did the trick!



I'm not completely sure if all the relevant packages are removed!
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic