my dog learned polymorphism*
The moose likes Linux / UNIX and the fly likes Remove all GUI on my RasPi Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Remove all GUI on my RasPi" Watch "Remove all GUI on my RasPi" New topic
Author

Remove all GUI on my RasPi

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

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?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

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

Joined: Sep 26, 2006
Posts: 9351
    
    2

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

Joined: Sep 26, 2006
Posts: 9351
    
    2

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

Joined: Sep 26, 2006
Posts: 9351
    
    2

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

Joined: Jun 25, 2001
Posts: 16019
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

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

Joined: Sep 26, 2006
Posts: 9351
    
    2

This did the trick!



I'm not completely sure if all the relevant packages are removed!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Remove all GUI on my RasPi