Slimming OS

Line 8: Line 8:
* [safe] remove *-installers: apt-get remove --purge ap-installer amazon-installer foreca-installer facebook-installer skype-installer dtg-installer
* [safe] remove *-installers: apt-get remove --purge ap-installer amazon-installer foreca-installer facebook-installer skype-installer dtg-installer
-
==Tips and tricks==
+
==apt-magic [http://talk.maemo.org/showpost.php?p=1190876&postcount=6]==
-
apt-magic [http://talk.maemo.org/showpost.php?p=1190876&postcount=6]
+
  #package description:
  #package description:
  apt-cache show PKGNAME
  apt-cache show PKGNAME
Line 21: Line 20:
  apt-get remove --purge PKGNAME
  apt-get remove --purge PKGNAME
 +
==remove_locales.sh==
 +
<pre>
 +
# remove_locales.sh
 +
# removing locales can make apps unreadable, so keep en_US and your language
 +
needed="^\.$|en_US|pl_PL"
 +
 +
just_a_test=""
 +
# comment the next line to really remove the files:
 +
just_a_test="echo"
 +
 +
cd /usr/share/locale && \
 +
for each in `find . -type d -maxdepth 1`; do
 +
if [ `echo "$each"|grep -E "$needed"` ]; then
 +
  echo "keeping $each"
 +
else
 +
  echo "removing $each"
 +
  $just_a_test echo rm -rf "$each"
 +
fi
 +
done
 +
</pre>
[[Category:N900]]
[[Category:N900]]

Revision as of 16:56, 19 July 2015

This page is a work in progress, continue only if you know what you are doing! Never use apt-get autoremove (ie. watch out what apt wants to remove).

  • [safe] disabling welcome screen (date/time/language): delete/move /etc/X11/Xsession.d/30osso_startup_wizard
  • [safe] nokia hands: delete/move /etc/X11/Xsession.d/10hildon_welcome or: apt-get remove --purge hildon-welcome
  • [safe] remove cherry (nokia's sms subscruption): apt-get remove --purge cherry
  • [safe] remove osso-tutorial: apt-get remove --purge osso-tutorial*
  • [safe] remove *-installers: apt-get remove --purge ap-installer amazon-installer foreca-installer facebook-installer skype-installer dtg-installer

apt-magic [1]

#package description:
apt-cache show PKGNAME
#provides files:
dpkg -L PKGNAME
#current version:
apt-cache policy PKGNAME
#reverse dependencies:
apt-cache showpkg PKGNAME
#remove (on device which can be reflashed)
apt-get remove --purge PKGNAME

remove_locales.sh

# remove_locales.sh
# removing locales can make apps unreadable, so keep en_US and your language
needed="^\.$|en_US|pl_PL"

just_a_test=""
# comment the next line to really remove the files:
just_a_test="echo"

cd /usr/share/locale && \
for each in `find . -type d -maxdepth 1`; do
 if [ `echo "$each"|grep -E "$needed"` ]; then
  echo "keeping $each"
 else
  echo "removing $each"
  $just_a_test echo rm -rf "$each"
 fi
done