Linux Commands

Stripping linux weezy raspbian Part 2

This is part 2 of Stripping linux weezy raspian Lets strip some more stuff out. 🙂 sudo apt-get remove -purge xdg-utils sudo apt-get remove -purge x11.* sudo apt-get remove -purge scratch sudo apt-get remove -purge xserver.* sudo apt-get remove -purge xarchiver sudo apt-get remove -purge xinit sudo apt-get remove -purge lightdm sudo apt-get remove -purge

List all installed Libraries

To get a list of all the libraries installed on your linux machine execute /sbin/ldconfig -p Lets output it to a log file for viewing with nano or another editor. /sbin/ldconfig -p > libraries.log  

Monitor dmesg in real time

dmesg is the command line tool for outputing the message buffer of the kernel. Monitoring it in real time with the command below comes in handy when trying to diagnose problems. watch -n 0.1 “dmesg | tail -n $((LINES-6))” The watch command executes dmesg over and over again until you stop it.