Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remove all GUI on my RasPi

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC 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: 10124
3
Eclipse IDE Mac PPC 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: 10124
3
Eclipse IDE Mac PPC 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: 10124
3
Eclipse IDE Mac PPC 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: 10124
3
Eclipse IDE Mac PPC 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.
 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE 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: 10124
3
Eclipse IDE Mac PPC 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: 10124
3
Eclipse IDE Mac PPC 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic