Cleaning 2007-2017.

It works for years on debian alike linux.

#!/usr/bin/env bash
Clean scrypt by Sylvester
echo “apt-get clean, autoclean, autoremove”
df
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
df
dpkg -l linux-* | awk ‘/^ii/{ print $2}’ | grep -v -e `uname -r | cut -f1,2 -d”-“` | grep -e [0-9] | xargs sudo apt-get -y purge
exit 0

What You can do, while on holiday then xservers and two letters “a&s” had gone broke??

Well, need a lot of time , slow thinking to connect all dots and patience!!!

I had a linux machine without Polish keyboard,

someone post how to easy “install all of them in few steps”.

It does not apply for desktop but only for server`s “terminal or console”.

That was my last goal to get Polish letters but as a result I end with broken desktop ubuntu 16.04 .

“again a stupid kernel panic” – fixed first time ever.

13 hours later I mange to fix it all ubuntu and Polish letters, (There is a lot faster to put fresh ubuntu on hdd, but I`ll like to kept old-one ver.)

I transfer scripts thru ftp server on my android phone, download them on broken laptop and fixed.

Fixed without letters : s and a on keyboard 🙂

I USE ALLIASES TO REPLACE BROKEN KEYS , AS FOLLOW!!!!

I USE ALLIASES TO REPLACE BROKEN KEYS , AS FOLLOW!!!!

I USE ALLIASES TO REPLACE BROKEN KEYS , AS FOLLOW!!!!

I edit a file ~/.bashrc

alias pt=’sudo apt-get’

alias op=’sudo apt-get update’

alias oi=’sudo apt-get install’

alias or=’sudo apt-get remove’

alias xw=’startx’

alias rx=’sudo apt-get remove xserver-xorg’

alias ix=’sudo apt-get install xserver-xorg’

 

 

and used ssh clinet from android to run some commands.

 

It was a better fun than recovery a windows XP on Spanish laptop with knowlege of  two Spanish word “YES or NO” in 2008. 🙂 for a friend.