Remove X or create a headless server on a Raspberry Pi

As I use my Raspberry Pi as a headless server, I thought it would be a good idea to clean up unnecessary files. After studying some material from others and several attempts later, I distilled the following steps…

Login to your Raspberry Pi, so open a terminal and use SSH…

Step – 1: To get rid of orphaned files later, we are going to install a program called deborphan first:

sudo apt-get install deborphan

 

Step – 2: Next we are going to remove all desktops from your Raspbian (if you don’t want to remove samba, remove it from the following command!):

sudo apt-get remove –auto-remove –purge libx11-.* lxde-.* raspberrypi-artwork xkb-data omxplayer penguinspuzzle sgml-base xml-core cifs-.* samba-.* fonts-.* desktop-* gnome-.*

 

Step – 3: Now we are going to remove all orphaned files:

sudo apt-get remove –purge $(deborphan)

 

Step – 4: After that it is time to remove the unnecessary packages that are not orphaned:

sudo apt-get autoremove

 

Step – 5: You can even free up more space by removing the locales:

sudo apt-get install locale:purge:
sudo localepurge

 

Step – 6: Clean up some more:

sudo apt-get clean

 

Step – 7: You might need to reinstall the following packages for squeezelite:

sudo apt-get install -y libflac-dev libfaad2 libmad0

 

Step – 8: Reboot If you want, else stop start the service:

sudo shutdown -r now

 

By doing a “before and after“, you can see the difference:

df -h /dev/root

 

Suggestions for improving this article are welcome, please let me know and drop me a line .

How to EQ vocals

Of course there is no exhaustive and conclusive answer to “how to EQ vocals“, but there are some guidelines you can follow and that offer you reasonable results even if you’re not into audio.

You can use the following 4 steps within your audio package of choice.

Step 1 – Remove low frequency rumble
Set your “High Pass Filter” somewhere between 80 and 120 Hz

Step 2 – Add more freshness to audio track
Top shelf, boosting high from 8 kHz with 1 to 6 db (if you want to do it subtle: 12 – 16 kHz)

Step 3 – Reduce offending frequencies
Sweep your vocal track by using a small bell curve, to find offending frequencies round 800 – 1 kHz and reduce them by -3 db

Step 4 – Make vocals more outstanding
Boost the vocal presence in your mix, by boosting the range between 2 – 5 kHz with 1 to 4 db

 

EXTRA:

  • With everything you do while EQ ing your audio, listen carefully to the results!
  • Never work on your original files, always use a copy!

 

Suggestions for improving this article are welcome, please let me know and drop me a line .

Backing up and restoring software installations in Ubuntu

Sometimes you just want to restore (or clone) your favorite (studio ;-)) installation, to a clean installed, freshly formatted machine, without having to  install manually all your favorite applications again.

This can be done, by exporting the list of all your installed applications to a text file and reinstall all your applications listed in the text file to your freshly formatted machine (as Hannibal would have said “I love it when a plan comes together“).

First create a text file in your ‘Home’ folder containing a list of all your applications of your favorite (studio ;-)) installation. Open a terminal window:

sudo dpkg –get-selections > app-backup-list.txt

 

Next copy the file “app-backup-list.txt” from your ‘Home’ folder to your freshly formatted machine (your ‘Home’ folder will do ;-). Now to restore your applications, open a terminal window:

sudo dpkg –get-selections < app-backup-list.txt
sudo apt-get -y update
sudo apt-get dselect-upgrade

 

Suggestions for improving this article are welcome, please let me know and drop me a line .

Running Google Sketchup on Wine

You can run “Sketchup the 3D modelling software for everyone from Google” in Wine on Ubuntu. In this article I’ll try to explain how to get by the error “Sketchup was unable to initialize OpenGl”.

This error is relatively easy to get by.

  • Go to your “Home folder and make sure you see all your hidden files (in Gnome File Browser go to View and select “Show Hidden Files”.
  • Go to .wine folder
  • Open the file user.reg with notepad or Gedit
  • Search for GLConfig
  • Change de “HW_OK”=dword:00000000 to “HW_OK”=dword:00000001
  • Save the changes you made in the file user.reg

Now you’re ready to start Google Sketchup on Wine

 

Suggestions for improving this article are welcome!

Please let me know and drop me a line.

Firefox zoom not working on Mac OSX

By default the “pinch open” and “close zoom” options are not working in Firefox on OSX. But it’s not that hard to enable the Firefox zoom settings, if you know how to do it…

Open Firefox
Go to a new tab, type in “about:config” and hit <Enter>.
Click the “I’ll be careful, I promise!” button.

You can now modify the related browser.gesture preferences by changing the values as stated below:

  • browser.gesture.pinch.in -> cmd_fullZoomReduce
  • browser.gesture.pinch.in.shift -> cmd_fullZoomReset
  • browser.gesture.pinch.out -> cmd_fullZoomEnlarge
  • browser.gesture.pinch.out.shift -> cmd_fullZoomReset
  • browser.gesture.pinch.latched -> false

Once you have changed the preferences, close the tab and the new settings should work. You might want to restart Firefox!?

 

Suggestions for improving this article are welcome, please let me know and drop me a line.