Jump to content


Photo

Remove unused languages?

enigma2 remove language dm800

  • Please log in to reply
65 replies to this topic

Re: Remove unused languages? #21 mika-nl

  • Senior Member
  • 454 posts

+10
Neutral

Posted 28 October 2012 - 20:13

I do always remove
sambaserver
enigma2-plugin-systemplugins-fastscan
enigma2-plugin-systemplugins-osd3dsetup
enigma2-plugin-extensions-mediascanner
enigma2-plugin-extensions-mediaplayer
opkg remove --force-depends oscam-util-list-smargo
enigma2-plugin-extensions-ppanel
enigma2-plugin-systemplugins-hdmicec
kernel-module-rt2500usb
kernel-module-rt2800usb
kernel-module-rt73usb
hotplug-e2-helper
enigma2-plugin-systemplugins-wirelesslan
python-wifi
enigma2-plugin-systemplugins-softwaremanager
sambaserver
enigma2-plugin-systemplugins-cablescan

Gr Mika

Re: Remove unused languages? #22 mika-nl

  • Senior Member
  • 454 posts

+10
Neutral

Posted 28 October 2012 - 20:19

wireless-tools - 1:29-r4
wpa-supplicant - 0.7.3-r11
wpa-supplicant-cli - 0.7.3-r11
wpa-supplicant-passphrase - 0.7.3-r11

have dependings so not porseble to remove

Re: Remove unused languages? #23 hemispherical1

  • Senior Member
  • 1,596 posts

+49
Good

Posted 28 October 2012 - 20:31

Those specific packages' dependencies have to do with wireless so they could be removed with the --force-remove switch, without breaking anything if you don't use wireless...

--
hemi

Re: Remove unused languages? #24 mika-nl

  • Senior Member
  • 454 posts

+10
Neutral

Posted 28 October 2012 - 20:54

Those specific packages' dependencies have to do with wireless so they could be removed with the --force-remove switch, without breaking anything if you don't use wireless...

--
hemi



it wil be "opkg remove --force-depends" :)

task-base-wifi
wireless-tools
wpa-supplicant
wpa-supplicant-cli
wpa-supplicant-passphras

MiKa

Re: Remove unused languages? #25 mika-nl

  • Senior Member
  • 454 posts

+10
Neutral

Posted 28 October 2012 - 20:58

are these also wifi modules ?

kernel-module-ath - 3.2-r13.11.30
kernel-module-ath9k-common - 3.2-r13.11.30
kernel-module-ath9k-htc - 3.2-r13.11.30
kernel-module-ath9k-hw - 3.2-r13.11.30

and what about these :

firmware-carl9170 - 1.9.5-r0
firmware-htc7010 - 1.0-r0
firmware-htc9271 - 1.0-r0
firmware-rt2870 - 1.0-r0
firmware-rt73 - 1.0-r0
firmware-rtl8192cu - 1.0-r0
firmware-rtl8712u - 1.0-r0
firmware-zd1211 - 1.0-r0


MiKa

Edited by mika-nl, 28 October 2012 - 20:59.


Re: Remove unused languages? #26 atilaks

  • Senior Member
  • 245 posts

+5
Neutral

Posted 28 October 2012 - 21:37

remove them all :) no worries...

Re: Remove unused languages? #27 hemispherical1

  • Senior Member
  • 1,596 posts

+49
Good

Posted 28 October 2012 - 22:28

Oh, and another good thing about removing unneeded packages, rather than just deleting files...


Packages stay gone across image updates... ;)


--
hemi

Edited by hemispherical1, 28 October 2012 - 22:30.


Re: Remove unused languages? #28 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 29 October 2012 - 00:09

Awesomeness!!!...Thx so much!!! mika-nl, atilaks, and hemi!!!....you made my day!!!.
============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #29 mfaraj57

  • Senior Member
  • 1,557 posts

+279
Excellent

Posted 29 October 2012 - 05:49


you can not remove block addlanguage but you can modify it in way similar to this
if os.path.exist(language file path ):
addlanguage


he doesn't want to remove the whole addLanguage function, he simply should remove calls to it...

just remove lines with self.addLanguage("some language",...)
be very careful with indentation


This modification for /components/language.py
no need to remove self.addlanguage libe for each unused language
just replace the current unmodified language.py by the attached one and remove unused languages from /usr/share/enigma2/po

original routine


def addLanguage(self, name, lang, country):
  try:
   self.lang[str(lang + "_" + country)] = ((name, lang, country))
   self.langlist.append(str(lang + "_" + country))
  except:
   print "Language " + str(name) + " not found"


modified routine

def addLanguage(self, name, lang, country):
  langpath="/usr/share/enigma2/po/"
				try:
	  if os.path.exists(langpath+lang):
						self.lang[str(lang + "_" + country)] = ((_(name), lang, country))
   self.langlist.append(str(lang + "_" + country))
  except:
   print "Language " + str(name) + " not found"

Attached Files


Edited by mfaraj57, 29 October 2012 - 05:54.


Re: Remove unused languages? #30 mfaraj57

  • Senior Member
  • 1,557 posts

+279
Excellent

Posted 29 October 2012 - 06:02

also this more accurate modifiication for language.py

def addLanguage(self, name, lang, country):
  langfile="/usr/share/enigma2/po/"+lang+"/LC_MESSAGES/enigma2.mo"
				try:
	  if os.path.exists(langfile):
						self.lang[str(lang + "_" + country)] = ((_(name), lang, country))
   self.langlist.append(str(lang + "_" + country))
  except:
   print "Language " + str(name) + " not found"


note:indentation is not correct in above code

Edited by mfaraj57, 29 October 2012 - 06:07.


Re: Remove unused languages? #31 mfaraj57

  • Senior Member
  • 1,557 posts

+279
Excellent

Posted 29 October 2012 - 06:09

expect also the update will not overwrite the modified py file but only supply original pyo file with no effect in presence of modified py file

Re: Remove unused languages? #32 junad

  • Senior Member
  • 269 posts

0
Neutral

Posted 29 October 2012 - 08:00

very interesting...

also Is there something we can do to earn more space on the RAM Memory?
anyone have any idea please?

Re: Remove unused languages? #33 mfaraj57

  • Senior Member
  • 1,557 posts

+279
Excellent

Posted 29 October 2012 - 08:39

also good material to write new plugin called as example space manager and menu may look like this

uninstall package
uninstall languages
remove wireless files
clear tmp
remove py files
clear crashlog
,...etc

Re: Remove unused languages? #34 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 29 October 2012 - 10:56

also Is there something we can do to earn more space on the RAM Memory?
anyone have any idea please?


I use this dedicated memory plugin for that.

Attached Files


============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #35 Lukin

  • Senior Member
  • 134 posts

+8
Neutral

Posted 29 October 2012 - 11:04

Thx mfaraj57!..the more options there are, the better....a dedicated plugin would be a very welcome addition, or maybe have those features embedded into Pli...that would be nice...space management, ram clean-up...
============= Current Box =====================
- DM800 HD PVR - Running on Experimental Openpli 2.1
=============================================
========= Storage Device Info =====================================
- Internal - HDD - Toshiba 320G Model: MK3265GS Rev: GJ00 Ansi Scsi rev: 05
- External - USB - SanDisk 08G Model: Cruzer Blade Rev: 1.03 Ansi Scsi rev: 02
================================================================
===== TV =======
LED TV Tcl 32inch
===============

Re: Remove unused languages? #36 junad

  • Senior Member
  • 269 posts

0
Neutral

Posted 29 October 2012 - 11:58


also Is there something we can do to earn more space on the RAM Memory?
anyone have any idea please?


I use this dedicated memory plugin for that.

Yes I've used it when I had Previous image installed with 1.6 ie
but now i use OpenPLi-3.0 with 2.0 oe and this plugin just compatible with 1.6 oe

and also I don't think is big deal with this plugin Because It does not help much

Re: Remove unused languages? #37 Happysat

  • Senior Member
  • 686 posts

+42
Good

Posted 29 October 2012 - 13:50

The plugin deletes the cache which will be full again, and the kernel does that by himself when it needs more memory..

'Wie weet spreekt niet, wie spreekt weet niet'

Sunray Vu Solo2/DM800SE V2 DVB-S2/C/T T-85 (28e,23e,19e,13e,9e,4e,1w,5w)


Re: Remove unused languages? #38 Happysat

  • Senior Member
  • 686 posts

+42
Good

Posted 29 October 2012 - 14:01

also good material to write new plugin called as example space manager and menu may look like this

uninstall package
uninstall languages
remove wireless files
clear tmp
remove py files
clear crashlog
,...etc


I have some custom scripts (which suite my needs) but they dont remove wifi because i need some of that stuff:

For some more memory:

Edit the /etc/default/ avahi-daemon file: /etc/default/avahi-daemon
Change the line: AVAHI_DAEMON_START = 1
to: AVAHI_DAEMON_START = 0
update-rc.d -f avahi-daemon remove
opkg remove avahi-daemon - 0.6.31-r14.1
update-rc.d -f dropbear remove
To recreate:
update-rc.d dropbear defaults



Restore box after online update:

#!/bin/sh
echo "PLi Restore dm800se"
echo "Backup NL/EN Languages"
cp /usr/share/enigma2/countries/missing.png /media/hdd/backup/restore/po/
cp /usr/share/enigma2/countries/en.png /media/hdd/backup/restore/po/
cp /usr/share/enigma2/countries/nl.png /media/hdd/backup/restore/po/
cp -r /usr/share/enigma2/po/en /media/hdd/backup/restore/po/lang/
cp -r /usr/share/enigma2/po/nl /media/hdd/backup/restore/po/lang/
cp -r /usr/lib/locale/en_EN /media/hdd/backup/restore/po/locale/
cp -r /usr/lib/locale/nl_NL /media/hdd/backup/restore/po/locale/
echo "Removing obsolete Languages"
rm /usr/share/enigma2/countries/*.png
rm -r /usr/share/enigma2/po/*
rm -r /usr/lib/locale/*
rm /usr/lib/enigma2/python/Components/Language.*
echo "Restoring NL/EN Languages back"
mv /media/hdd/backup/restore/po/*.png /usr/share/enigma2/countries/
cp -r /media/hdd/backup/restore/po/lang/* /usr/share/enigma2/po/
cp -r /media/hdd/backup/restore/po/locale/* /usr/lib/locale/
cp /media/hdd/backup/restore/po/Language.py /usr/lib/enigma2/python/Components/
echo "Cleaning up used files"
rm -r /media/hdd/backup/restore/po/lang/*
rm -r /media/hdd/backup/restore/po/locale/*
echo "Removing RC Models"
rm -r /usr/share/enigma2/rc_models*/
echo "Restoring Oled picon display"
cp /media/hdd/backup/restore/enigma/skin_display96.xml /usr/share/enigma2/
echo "Restoring Remote-Keymap"
cp /media/hdd/backup/restore/enigma/keymap.xml /usr/share/enigma2/
echo "Restoring Rytec EPG"
cp /media/hdd/backup/restore/epgimport/rytec.*.xml /etc/epgimport/
echo "Restoring Sat-xml"
cp -r /media/hdd/backup/restore/xml/* /etc/tuxbox/
echo "Restoring Spinners"
cp /media/hdd/backup/restore/spinner/wait*.png /usr/share/enigma2/skin_default/spinner/
echo "Restoring Wifi back"
cp /media/hdd/backup/restore/wifi/wpa_supplicant.conf /etc/
echo "Done with PLi restore!"
exit

Cleanup shit after reboot:

#!/bin/sh
echo "Py Removal Plugin Section"
rm /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/plugin.py
rm /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/AC3delay.py
rm /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/AC3main.py
rm /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/AC3setup.py
rm /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/AC3utils.py
rm /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/HelpableNumberActionMap.py
rm /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/MovableScreen.py
rm -r /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/locale/de*/
rm -r /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/locale/fa*/
rm -r /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/locale/fi*/
rm -r /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/locale/hu*/
rm -r /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/locale/it*/
rm -r /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/locale/sr*/
rm -r /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/locale/sv*/
rm -r /usr/lib/enigma2/python/Plugins/Extensions/AudioSync/locale/tr*/
rm /usr/lib/enigma2/python/Plugins/Extensions/CutListEditor/plugin.py
rm /usr/lib/enigma2/python/Plugins/Extensions/CutListEditor/ui.py
rm /usr/lib/enigma2/python/Plugins/Extensions/DVDPlayer/plugin.py
rm /usr/lib/enigma2/python/Plugins/Extensions/Filebrowser/plugin.py
rm /usr/lib/enigma2/python/Plugins/Extensions/MediaPlayer/plugin.py
rm /usr/lib/enigma2/python/Plugins/Extensions/MediaPlayer/settings.py
echo "Py Removal PLi Section"
rm /usr/lib/enigma2/python/Plugins/PLi/SoftcamSetup/camcontrol.py
rm /usr/lib/enigma2/python/Plugins/PLi/SoftcamSetup/plugin.py
rm /usr/lib/enigma2/python/Plugins/PLi/SoftcamSetup/Sc.py
rm -r /usr/lib/enigma2/python/Plugins/PLi/SoftcamSetup/locale/cs*/
rm -r /usr/lib/enigma2/python/Plugins/PLi/SoftcamSetup/locale/de*/
rm -r /usr/lib/enigma2/python/Plugins/PLi/SoftcamSetup/locale/fa*/
rm -r /usr/lib/enigma2/python/Plugins/PLi/SoftcamSetup/locale/hu*/
rm -r /usr/lib/enigma2/python/Plugins/PLi/SoftcamSetup/locale/pl*/
rm -r /usr/lib/enigma2/python/Plugins/PLi/SoftcamSetup/locale/ru*/
rm -r /usr/lib/enigma2/python/Plugins/PLi/SoftcamSetup/locale/sv*/
echo "Py Removal SystemPlugins Section"
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/AutoMount.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/MountEdit.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/MountManager.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/MountView.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/NetworkBrowser.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/plugin.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/UserDialog.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/UserManager.py
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/ar*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/ca*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/cs*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/da*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/de*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/el*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/es*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/fa*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/fi*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/fr*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/hr*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/hu*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/is*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/it*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/lt*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/no*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/pl*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/pt*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/ru*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/sl*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/sr*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/sv*/
rm -r /usr/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/locale/tr*/
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/HdmiCEC/plugin.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/Hotplug/plugin.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/Satfinder/plugin.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/SkinSelector/plugin.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/SoftwareManager/plugin.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/SoftwareManager/BackupRestore.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/SoftwareManager/ImageWizard.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/SoftwareManager/SoftwareTools.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/VideoEnhancement/plugin.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/VideoEnhancement/VideoEnhancement.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/Videomode/VideoHardware.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/Videomode/plugin.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/Videomode/VideoWizard.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/VideoTune/plugin.py
rm /usr/lib/enigma2/python/Plugins/SystemPlugins/VideoTune/VideoFinetune.py
echo "Done with PLi restore2!"
exit

'Wie weet spreekt niet, wie spreekt weet niet'

Sunray Vu Solo2/DM800SE V2 DVB-S2/C/T T-85 (28e,23e,19e,13e,9e,4e,1w,5w)


Re: Remove unused languages? #39 WanWizard

  • Forum Moderator
    PLi® Core member
  • 48,468 posts

+824
Excellent

Posted 30 October 2012 - 00:03

Yes I've used it when I had Previous image installed with 1.6 ie
but now i use OpenPLi-3.0 with 2.0 oe and this plugin just compatible with 1.6 oe


Just for the record: OE 1.6/2.0 is something used by Dream Multimedia. OpenPLi doesn't use a DMM image as a basis, we have our own OpenEmbedded environment.

Currently in use: VU+Duo 4K (2xFBC S2), Amiko Viper T2C (T2), SAB Alpha Triple HD (S2+T2), Zgemma H3.T2C (T/C), Zgemma H6 (fallback), VU+Zero (fallback)

Many answers to your question can be found in our new and improved wiki.

note: I do not provide support via PM !

 


Re: Remove unused languages? #40 alex36

  • Member
  • 14 posts

0
Neutral

Posted 30 October 2012 - 05:08

VTI has a option like this,
vti zero called,
it has functions like,
delete/remove:
usb tuners
costum plugins
samba
wlan
etc..





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users