12526 Members
237 Forums
7812 Topics
24005 Posts
Max Online: 9115 @ 08/24/24 07:30 PM
|
|
|
|
|
|
|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
30
|
31
|
|
|
|
|
|
|
|
|
#7115 - 03/18/16 11:14 AM
OpenPLi 4.0 : Free as much as possible Flash space
|
Japhar Member
Carpal Tunnel
Registered: 10/21/10
Posts: 2649
|
Just a little script to free as much as possible Flash space, Create a file "script.sh", set to "chmod 755 script.sh". Put the text below. You should gain around 6.5 Mb of Free Flash space, as on my DM800HD. I kept only UK-English-French-Italian-Spanish-German, but it's easy to modify as you can see below with "#" to remove a line and keep it only as Remark. Remember as well that to optimize the Flash at the best, during first config you must refuse the Internet test, and in the same time the automatic update of the box. As this uses more than 3.5 Mb of space for no much use.TS #!/bin/sh
#
#Remove from /usr/share/enigma2/countries
#
cd /usr/share/enigma2/countries
#
rm ad.png
rm ee.png
rm hr.png
rm lt.png
rm ro.png
rm ua.png
rm ae.png
#rm en.png
rm hu.png
rm lv.png
rm ru.png
rm yu.png
rm bg.png
#rm es.png
rm il.png
rm se.png
rm br.png
rm fi.png
rm ir.png
rm nl.png
rm si.png
rm cz.png
#rm fr.png
rm is.png
rm no.png
rm sk.png
#rm de.png
rm fy_NL.png
#rm it.png
rm pl.png
rm th.png
rm dk.png
rm gr.png
rm ku.png
#rm pt.png
rm tr.png
rm hk.png
rm id.png
rm nn.png
rm zh.png
#rm missing.png
#
#Remove from /usr/share/enigma2/po
#
cd /usr/share/enigma2/po
#
rm -r ar
rm -r cs
rm -r el
rm -r et
#rm -r fr
rm -r hr
#rm -r it
rm -r lv
rm -r no
#rm -r pt_BR
rm -r sk
rm -r sv
rm -r uk
rm -r bg
rm -r da
#rm -r en
rm -r fa
rm -r fy
rm -r hu
rm -r ku
rm -r nb
rm -r pl
rm -r ro
rm -r sl
rm -r th
rm -r ca
#rm -r de
#rm -r es
rm -r fi
rm -r he
rm -r is
rm -r lt
rm -r nl
#rm -r pt
rm -r ru
rm -r sr
rm -r tr
rm -r hk
rm -r id
rm -r nn
rm -r zh
#
#Remove not used Skins
#
rm -r /usr/share/enigma2/PLi-FullHD
rm -r /usr/share/enigma2/PLi-FullNightHD
rm -r /usr/share/enigma2/PLi-HD1
rm -r /usr/share/enigma2/PLi-HD2
#
#Remove Feeds Packages List
#
rm /var/lib/opkg/O*
rm /var/lib/opkg/lists/o*
#
#END
# Uninstall not used Languages : opkg remove --force-depends enigma2-locale-ar
opkg remove --force-depends enigma2-locale-bg
opkg remove --force-depends enigma2-locale-ca
opkg remove --force-depends enigma2-locale-cs
opkg remove --force-depends enigma2-locale-da
opkg remove --force-depends enigma2-locale-de
opkg remove --force-depends enigma2-locale-el
opkg remove --force-depends enigma2-locale-es
opkg remove --force-depends enigma2-locale-et
opkg remove --force-depends enigma2-locale-fa
opkg remove --force-depends enigma2-locale-fi
opkg remove --force-depends enigma2-locale-fy
opkg remove --force-depends enigma2-locale-he
opkg remove --force-depends enigma2-locale-hr
opkg remove --force-depends enigma2-locale-hu
opkg remove --force-depends enigma2-locale-is
opkg remove --force-depends enigma2-locale-ku
opkg remove --force-depends enigma2-locale-lt
opkg remove --force-depends enigma2-locale-lv
opkg remove --force-depends enigma2-locale-nb
opkg remove --force-depends enigma2-locale-nl
opkg remove --force-depends enigma2-locale-no
opkg remove --force-depends enigma2-locale-pl
opkg remove --force-depends enigma2-locale-pt
opkg remove --force-depends enigma2-locale-pt-br
opkg remove --force-depends enigma2-locale-ro
opkg remove --force-depends enigma2-locale-ru
opkg remove --force-depends enigma2-locale-sk
opkg remove --force-depends enigma2-locale-sl
opkg remove --force-depends enigma2-locale-sr
opkg remove --force-depends enigma2-locale-sv
opkg remove --force-depends enigma2-locale-th
opkg remove --force-depends enigma2-locale-tr
opkg remove --force-depends enigma2-locale-uk Available 6.4 Mb ! root@dm800:/var/volatile/tmp# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 60.0M 53.6M 6.4M 89% /
tmpfs 64.0K 0 64.0K 0% /media
tmpfs 71.0M 5.4M 65.6M 8% /var/volatile
/dev/mtdblock2 3.8M 2.4M 1.3M 64% /boot FYI : root@dm800:/var/volatile/tmp# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 60.0M 53.6M 6.4M 89% /
tmpfs 64.0K 0 64.0K 0% /media
/dev/sda1 74.5G 65.8G 8.7G 88% /media/hdd
tmpfs 71.0M 5.1M 65.9M 7% /var/volatile
/dev/mtdblock2 3.8M 2.4M 1.3M 64% /boot
root@dm800:/var/volatile/tmp# opkg update
Downloading http://jam.japhar.com/feeds/OpenPLi-4/japhar/dm800/all/Packages.gz.
Updated list of available packages in /var/lib/opkg/OpenPLi-all.
Downloading http://jam.japhar.com/feeds/OpenPLi-4/japhar/dm800/dm800/Packages.gz
.
Updated list of available packages in /var/lib/opkg/OpenPLi-dm800.
Downloading http://jam.japhar.com/feeds/OpenPLi-4/japhar/dm800/mips32el-nf/Packa
ges.gz.
Updated list of available packages in /var/lib/opkg/OpenPLi-mips32el-nf.
root@dm800:/var/volatile/tmp# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 60.0M 56.5M 3.5M 94% /
tmpfs 64.0K 0 64.0K 0% /media
/dev/sda1 74.5G 65.8G 8.7G 88% /media/hdd
tmpfs 71.0M 5.1M 65.9M 7% /var/volatile
/dev/mtdblock2 3.8M 2.4M 1.3M 64% /boot
root@dm800:/var/volatile/tmp#
Script also available on JAM 5.2
Attachments
Clean_Flash_Memory.jpg (3467 downloads)enigma2-clean-flash-openpli4_1.0_openpli40_all.rar (190 downloads)
_________________________
DM8000, DM800se, DM500HD, DM800HD, DM7025, DM7020s, DM7000, DM500s VU+ Solo, VU+ Uno, VU+ Duo, Kathrein UFS910 Tivusat, TNTSat, Fransat, SSR/TSR, BBC1-2-3/ITV DE-OpenBlackHole 1.4 image : http://www.openblackhole.com/
|
Top
|
|
|
|
|
#7188 - 03/22/16 03:55 PM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: Toysoft]
|
VIP Japhar
newbie
Registered: 03/15/16
Posts: 31
|
Hello,
When I try to run the script I get errors about the script cannot cd to the folders.
Any idea why that can happen?
_________________________
sab unix F solo with openAtv 4.2 DM500HD with Japhar openpli 4.0
|
Top
|
|
|
|
|
#7189 - 03/22/16 04:23 PM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: Toysoft]
|
VIPF Panda
newbie
Registered: 02/22/16
Posts: 25
|
script is 755 ?
you are using openpli 4.0 image ?
|
Top
|
|
|
|
|
#16245 - 04/15/18 09:12 PM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: Toysoft]
|
newbie
Registered: 02/12/17
Posts: 38
Loc: Br/Sp/Interior
|
/usr/share/enigma2/rc_models have many not DMM remotes with 1mb. Ola poderia explicar sobre um pouco +.Obrigdo !!!
_________________________
Observar !
Ler !
Aprender !
|
Top
|
|
|
|
|
#16250 - 04/16/18 04:03 AM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: yra1976yan]
|
Japhar Member
Carpal Tunnel
Registered: 10/19/10
Posts: 9994
|
You can remove most of the files in this folder to gain more space (not the DMM...files and xml one, but all others yes if there is any), /usr/share/enigma2/rc_models Admin /usr/share/enigma2/rc_models have many not DMM remotes with 1mb. Ola poderia explicar sobre um pouco +.Obrigdo !!!
_________________________
|
Top
|
|
|
|
|
#16306 - 04/21/18 01:23 PM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: Admin]
|
newbie
Registered: 02/12/17
Posts: 38
Loc: Br/Sp/Interior
|
Muitos controles. Qual abrir a space ? Obrigado.
Attachments
PASTA 1.png (941 downloads)PASTA 2.png (934 downloads)
_________________________
Observar !
Ler !
Aprender !
|
Top
|
|
|
|
|
#20002 - 11/24/19 08:10 AM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: Toysoft]
|
VIP Japhar
stranger
Registered: 05/16/19
Posts: 17
|
Hi Guys! Can anyone write a short tutorial on how to use the script, where to copy it and how to run? What it means: set to "chmod 755 script.sh" ? JAM tool "Clean Extra Flash Memory" gives me a loop on boot. I want to leave only Polish, English and German languages. Thank you from the mountain Regards
|
Top
|
|
|
|
|
#20003 - 11/24/19 08:28 AM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: Toysoft]
|
Japhar Member
Carpal Tunnel
Registered: 10/19/10
Posts: 9994
|
Install the image and copy/paste the lines that are not the languages you want into your box via telnet or ssh/Putty. You need to build your own commands/script, in fact you can just send command/line after line, into the console/telnet/putty/ssh, selecting naturally the ones you want. It's normal it goes in loop, as the script removed the Polish language, that in your case you need and probably selected at setup. Admin #!/bin/sh
#
#Remove from /usr/share/enigma2/countries
#
cd /usr/share/enigma2/countries
#
rm ad.png
rm ee.png
rm hr.png
rm lt.png
rm ro.png
rm ua.png
rm ae.png
#rm en.png
rm hu.png
rm lv.png
rm ru.png
rm yu.png
rm bg.png
rm es.png
rm il.png
rm se.png
rm br.png
rm fi.png
rm ir.png
rm nl.png
rm si.png
rm cz.png
rm fr.png
rm is.png
rm no.png
rm sk.png
#rm de.png
rm fy_NL.png
rm it.png
#rm pl.png
rm th.png
rm dk.png
rm gr.png
rm ku.png
rm pt.png
rm tr.png
rm hk.png
rm id.png
rm nn.png
rm zh.png
#rm missing.png
#
#Remove from /usr/share/enigma2/po
#
cd /usr/share/enigma2/po
#
rm -r ar
rm -r cs
rm -r el
rm -r et
rm -r fr
rm -r hr
rm -r it
rm -r lv
rm -r no
rm -r pt_BR
rm -r sk
rm -r sv
rm -r uk
rm -r bg
rm -r da
#rm -r en
rm -r fa
rm -r fy
rm -r hu
rm -r ku
rm -r nb
#rm -r pl
rm -r ro
rm -r sl
rm -r th
rm -r ca
#rm -r de
rm -r es
rm -r fi
rm -r he
rm -r is
rm -r lt
rm -r nl
rm -r pt
rm -r ru
rm -r sr
rm -r tr
rm -r hk
rm -r id
rm -r nn
rm -r zh
#
#Remove not used Skins
#
rm -r /usr/share/enigma2/PLi-FullHD
rm -r /usr/share/enigma2/PLi-FullNightHD
rm -r /usr/share/enigma2/PLi-HD1
rm -r /usr/share/enigma2/PLi-HD2
#
#Remove Feeds Packages List
#
rm /var/lib/opkg/O*
rm /var/lib/opkg/lists/o*
#
#END
#
_________________________
|
Top
|
|
|
|
|
#20004 - 11/24/19 09:00 AM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: Toysoft]
|
VIP Japhar
stranger
Registered: 05/16/19
Posts: 17
|
Thanx for quick reply, I have Putty 0.71 installed, but don't have any experience with using it. Which section I put the needed lines in? When I open SSH window I got some error on network: "Connection refused" and is inactive. Telnet window opens well, but where to paste the lines? Please forgive me my poor knowledge. Thank you! >windshear<
|
Top
|
|
|
|
|
#20008 - 11/24/19 09:38 AM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: Toysoft]
|
VIP Japhar
stranger
Registered: 05/16/19
Posts: 17
|
Of course, I did put the box IP in host window, but still don't see the place to paste the text. I open Telnet window from putty program after I set IP address of my box. >windshear<
|
Top
|
|
|
|
|
#20009 - 11/24/19 09:40 AM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: Toysoft]
|
VIP Japhar
stranger
Registered: 05/16/19
Posts: 17
|
Is the place to paste the text instead of "Default Settings"?
|
Top
|
|
|
|
|
#20013 - 11/24/19 01:05 PM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: Toysoft]
|
VIP Japhar
stranger
Registered: 05/16/19
Posts: 17
|
OK, done with Telnet, thank you! Nice evening! >windshear<
|
Top
|
|
|
|
|
#20014 - 11/24/19 01:09 PM
Re: OpenPLi 4.0 : Free as much as possible Flash space
[Re: windshear]
|
Japhar Member
Carpal Tunnel
Registered: 10/19/10
Posts: 9994
|
Great, Enjoy ! Admin OK, done with Telnet, thank you! Nice evening! >windshear<
_________________________
|
Top
|
|
|
|
|
|
|