Suggestion on Mozilla Firefox

Marcio markosloski at gmail.com
Tue Aug 12 07:26:57 UTC 2014


So...Hello everyone.

First of all forgive me if it's not the right place to send a 
suggestion, I'm barely new here, I just hope that a kind soul take my 
idea to the right person.

Well....after bugging around internet a little, taking tips here and 
there, I come to setup up my prefs.js file in a way that makes the 
browser literally fly, it's really, really fast. (this file keeps some 
browser parameters like connections-per-server, the time it takes to 
render a page, etc. I'm attaching my file to this message to who want to 
test it, I swear it's not a malware or some of kind. If you want to be 
safe, backup your own prefs.js, located on 
home/.mozilla/profile/screwthiszxc/ ---> just make a copy of it, then 
paste mine. close the browser and open it again, try enter on youtube (a 
lot of images here), an online game, some other heavy pages you know. If 
possible, I'd like to know your results, if you can send me a mail I 
apprecite it.

Since I decided to start in the linux life, I gradually become a kind of 
optimization geek, I like to make my computer go fast. Lubuntu has done 
half the way, it's a great distro. The other 50% I achieved tweaking it, 
not big deal, I have little if nothing knowledge about things like 
compiling, kernel parameters and other stuff, I just modded what I knew, 
for sharing purposes I'm attaching here too a script of mine, it's an 
safety script, just to install programs automatically, remove others, 
download PPA's, and make some "tweaking".

Finishing, about these tweak commands, it's all taken from internet 
again, I tested on my laptop, and it worked well. My wish is that you 
can analyze it, and decide if it's worth to put on the distro. I can't 
be called a programmer, just a bad hobbist, so wait to see the some 
messy scripting :D

It's all good people, forgive the horrible english, I'm not doing my 
best effort to write right know, and it's not my mother language, but 
I'm sure I make myself understand.

(If you can take this message to some portuguese speakers, they can help 
on the script)

Be with God you all and keep the awesome work.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prefs.js
Type: application/javascript
Size: 9428 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/lubuntu-users/attachments/20140812/d46751a0/attachment.js>
-------------- next part --------------
#!/bin/sh

#https://bitbucket.org/javalianemico/pancreas/downloads/prefs.js#LINK DO PREFS.JS#

#---------------------------------------------------------------------------------------------NETBEANS 8.0--------------------------------------------------------------------------------------------------#

#sudo apt-fast install -y openjdk-6-jdk openjdk-6-source openjdk-6-demo openjdk-6-doc oudopenjdk-6-jre-headless openjdk-6-jre-lib

#sudo apt-fast install -y openjdk-7-jdk openjdk-7-source openjdk-7-demo openjdk-7-doc openjdk-7-jre-headless openjdk-7-jre-lib

#sudo wget http://download.netbeans.org/netbeans/8.0/final/bundles/netbeans-8.0-javase-linux.sh

#sudo chmod +x netbeans-8.0-javase-linux.sh

#sudo ./netbeans-8.0-javase-linux.sh

#sudo rm netbeans-8.0-javase-linux.sh

																		#CONTRATO--------------------------#sudo apt-fast install -y mysql-server 

																		#CONTRATO--------------------------#sudo apt-fast install -y phpmyadmin


#----------------------------------------------------------------------------------CONTRATOS/CONFIG. Manual-----------------------------------------------------------------------------------#

																									#APT-FAST#

wget https://launchpad.net/~apt-fast/+archive/ubuntu/stable/+build/4862442/+files/apt-fast_1.8.2-1%7Esaucy1_amd64.deb

sudo dpkg -i apt-fast_1.8.2-1~saucy1_amd64.deb

sudo apt-get install -f -y 

sudo rm apt-fast_1.8.2-1~saucy1_amd64.deb

																									#FONTES DO WINDOWS#

sudo apt-fast install -y ttf-mscorefonts-installer


#-----------------------------------------------------------------------------------------------------------------PPA's e ADIÇÕES A BASE-------------------------------------------------------------#

																									#PPA WINE#

sudo add-apt-repository ppa:ubuntu-wine/ppa -y

																									#PPA TLP - GESTOR DE BATERIA#

sudo add-apt-repository ppa:linrunner/tlp -y

																									#PPA SNES9X#

sudo add-apt-repository ppa:bearoso/ppa -y

																									#PPA EDITOR DE ITENS MENU INICIAR#

sudo add-apt-repository ppa:menulibre-dev/devel -y

																									#PPA GRAVADOR DE SOM#

sudo add-apt-repository ppa:osmoma/audio-recorder -y

																									#MELHORA O ACESSO A LISTA DE REPOSITORIOS#

sudo sh -c "echo 'deb http://archive.canonical.com/ubuntu/ saucy partner' >> /etc/apt/sources.list.d/canonical_partner.list"

																									#REPOSITORIO NÃO OFICIAL DO LUBUNTU#

sudo add-apt-repository ppa:lubuntu-dev/non-official-apps -y

																									#PATCH 200 LINHAS PARA OTIMIZAÇÃO - LINUS TORVALDS

wget http://launchpadlibrarian.net/59511828/cgroup_patch

chmod +x cgroup_patch

sudo ./cgroup_patch

sudo rm cgroup_patch  

																									#ATIVA FIREWALL#

sudo ufw enable 

																									#ATUALIZA LISTA DE REPOSITORIOS#

sudo apt-fast update 

#------------------------------------------------------REMOÇÕES---------------------------------------------#

											           													#DESINSTALA PIDGIN#

sudo apt-fast purge -y pidgin

																									#DESINSTALA XFBURN#

sudo apt-fast purge -y xfburn

																									#DESINSTALA ABIWORD#

sudo apt-fast purge -y abiword

																									#DESINSTALA SILPHEED#

sudo apt-fast purge -y sylpheed

																									#DESINSTALA GNUMERIC#

sudo apt-fast purge -y gnumeric

																									#DESINSTALA LXTERMINAL#

sudo apt-fast purge -y lxterminal 

																									#DESINSTALA AUDACIOUS#

sudo apt-fast remove -y audacious

																									#DESINSTALA GNOME-PLAYER#

sudo apt-fast remove -y gnome-mplayer
	
																									#DESINSTALA GESTOR DE BATERIA NATIVO - NECESSARIO AO TLP #

sudo apt-fast remove -y laptop-mode-tools

#----------------------------------------PROGRAMAS E UTILITARIOS----------------------------------#

																									#INSTALA PINDURICALHOS DO LUBUNTU - ICONES E AFINS#

sudo apt-fast install -y lubuntu-restricted-extras

																									#INSTALA MICROCODE INTEL - PARA MELHOR GERENCIAMENTO DO PROCESSADOR (TAMBÉM HÁ PARA AMD)#

sudo apt-fast install -y intel-microcode

																									#INSTALA WINE 1.7#

sudo apt-fast install -y wine1.7 wine

																									#INSTALA LIBREOFFICE#

sudo apt-fast install -y libreoffice

																									#INSTALA IDIOMA NO LIBRE OFFICE#

sudo apt-fast install -y libreoffice-l10n-pt-br

																									#INSTALA PRELOAD - PRIORIZA PROGRAMAS MAIS UTILIZADOS NA MEMORIA#

sudo apt-fast install -y preload

																									#INSTALA PRELINK - TAMBEM PRIORIZA ACESSO NA MEMORIA#

sudo apt-fast install -y prelink

																									#INSTALA MECANISMO PARA COMPACTAÇÃO#

sudo apt-fast install -y rar unrar-free

																									#INSTALA GESTOR DE BATERIA#

sudo apt-fast install -y tlp tlp-rdw

																									#BESTEIRINHA#

sudo apt-fast install -y lubuntu-tweaks

																									#INSTALA VIRTUAL BOX E VB EXTENSION PACK 4.3#

wget http://download.virtualbox.org/virtualbox/4.3.14/virtualbox-4.3_4.3.14-95030~Ubuntu~raring_amd64.deb

sudo dpkg -i virtualbox-4.3_4.3.14-95030~Ubuntu~raring_amd64.deb

rm virtualbox-4.3_4.3.14-95030~Ubuntu~raring_amd64.deb

wget http://download.virtualbox.org/virtualbox/4.3.14/Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack

sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-$(VBoxManage -v | cut -d r -f1)-$(VBoxManage -v | cut -d r -f2).vbox-extpack

rm Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack

																									#GERENCIADOR DE COMPARTILHAMENTOS - IMPRESSORAS#

sudo apt-fast install -y samba gvfs-bin system-config-samba

																									#INSTALA THUNDERBIRD - GERENCIADOR DE E-MAIL#

sudo apt-fast install -y thunderbird thunderbird-locale-pt-br

																									#INSTALA NORMLIZADOR DE VOLUME PARA MP3#

sudo apt-fast install -y easymp3gain-qt

																									#INSTALA GRAVADOR DE SOM#

sudo apt-fast install -y audio-recorder

																									#INSTALA LIMPADOR#

sudo apt-fast install -y gconf-cleaner

																									#INSTALA UM "PAINT" PARA LINUX#

sudo apt-fast install -y kolourpaint4 

																									#INSTALA GERENCIADOR DE SOM#

sudo apt-fast install -y pavucontrol

																									#INSTALA MONTADOR DE IMAGENS#

sudo apt-fast install -y gmountiso

																									#INSTALA EDITOR DO MENU INICIAR#

sudo apt-fast install -y menulibre

																									#INSTALA ZIPADOR#

sudo apt-fast install -y p7zip-full

																									#INSTALA "CCLEANER" PARA LINUX#

sudo apt-fast install -y bleachbit

																									#INSTALA ACESSO A ÁREA REMOTA#

sudo apt-fast install -y remmina

																									#INSTALA SKYPE#

sudo apt-fast install -y skype

																									#INSTALA CONVERSOR DE INSTALDORES (TAR-DEB, RPM-DEB)#

sudo apt-fast install -y alien

																									#EDITOR DE PROGRAMAS NA INICIALIZAÇÃO#

sudo apt-fast install -y bum

																									#INSTALA VLC PLAYER#

sudo apt-fast install -y vlc

																									#INSTALA EMULADOR DE SUPER NINTENDO#

sudo apt-cache search snes9x 

sudo apt-fast install -y snes9x-gtk

																									#ATIVA GESTOR DE BATERIA#

sudo tlp start

																									#RAMLOG#

sudo wget http://www.tremende.com/ramlog/download/ramlog_2.0.0_all.deb

sudo dpkg -i ramlog_2.0.0_all.deb 

sudo rm ramlog_2.0.0_all.deb
 
																									#DRIVER GENERICO PARA WEBCAMS LINUX#

sudo wget http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz

sudo alien --to-deb gspcav1-20071224.tar.gz 

sudo dpkg -i gspcav1_20071224-2_all.deb

sudo rm gspcav1-20071224-2_all.deb

sudo rm gspcav1-20071224.tar.gz 

																									#INSTALA TEAMVIEWER#

sudo wget download.teamviewer.com/download/teamviewer_linux.deb

sudo dpkg -i teamviewer_linux.deb

sudo apt-fast install -f -y

sudo rm teamviewer_linux.deb

																									#FAZ UPGRADE DE ALGUNS PROGRAMAS ESSENCIAIS#

sudo apt-fast --only-upgrade install java -y

sudo apt-fast --only-upgrade install firefox -y

sudo apt-fast --only-upgrade install transmission -y

sudo apt-fast --only-upgrade install flashplugin-installer  -y


																									#MELHORA O DESEMPENHO DO FLASH NO NAVEGADOR#

sudo mkdir /etc/adobe

echo "OverrideGPUValidation=true" >~/mms.cfg

sudo mv ~/mms.cfg /etc/adobe

																									#INSTALA PRINTSCREEN NO LUBUNTU#

sudo sed -i 's#lxsession-default screenshot#scrot#' ~/.config/openbox/lubuntu-rc.xml

sudo sed -i 's#scrot window#scrot -u -b#' ~/.config/openbox/lubuntu-rc.xml

																									#MELHORA CANAIS NO TORRENT#

transmission-gtk &
sleep 5 
PID=`pidof transmission-gtk`
kill $PID

sudo sed -i 's#"cache-size-mb": 4,#"cache-size-mb": 32,#' ~/.config/transmission/settings.json 

																									#RETIRA O LOGO DO LIBREOFFICE#

sudo sed -i 's#Logo=1#Logo=0#' /etc/libreoffice/sofficerc

#CASO 14.04, DESMARCAR A DUAS ABAIXO, CORRIGE BUG EM PLACAS INTEL#

#sudo sed -i '13i\\n\n' /etc/rc.local

#sudo sed -i '14i\echo 0 > /sys/class/backlight/acpi_video0/brightness' /etc/rc.local

																									#DIRECIONA PROCESSAMENTO PARA UMA TEREFA PESADA#

sudo sed -i '48i\\n\tfor CPU_THRESHOLD in /sys/devices/system/cpu/cpu*/cpufreq/ondemand/up_threshold\n\tdo\n\t\t[ -f $CPU_THRESHOLD ] || continue\n\t\techo -n 50 > $CPU_THRESHOLD' /etc/init.d/ondemand

																									#USA TODO  PROCESSADOR DURANTE O BOOT#

sudo sed -i '72i\CONCURRENCY=makefile' /etc/init.d/rc

sudo sed -i '73d' /etc/init.d/rc

																									#AJUSTES DO PRELOAD#

sudo sed -i 's#memfree = 50#memfree = 100#' /etc/preload.conf

sudo sed -i 's#memcached = 0#memcached = 30#' /etc/preload.conf

sudo sed -i 's#processes = 30#processes = 60#' /etc/preload.conf

																									#AJUSTE DO PRELINK#

sudo sed -i 's#unknown#yes#' /etc/default/prelink

																									#MOVE A PASTA TEMP PARA A RAM - AGILIZA TAREFAS ATUAIS#
 
echo "# Move /tmp to RAM
tmpfs /tmp tmpfs defaults,noexec,nosuid 0 0" | sudo tee -a /etc/fstab

																									#CONFIGURA MEMORIA SWAP - LUBUNTU USA ZRAM#

echo "# Decrease swap usage to a workable level
vm.swappiness=10
# Improve cache management
vm.vfs_cache_pressure=50" | sudo tee -a /etc/sysctl.conf

																									#AGILIZA ABERTURA DE MENU INICIAR#

touch .gtkrc-2.0 

echo "gtk-menu-popup-delay = 0" >> ~/.gtkrc-2.0
echo "gtk-menu-popdown-delay = 0" >> ~/.gtkrc-2.0
echo "gtk-menu-bar-popup-delay = 0" >> ~/.gtkrc-2.0
echo "gtk-enable-animations = 0" >> ~/.gtkrc-2.0
echo "gtk-timeout-expand = 10" >> ~/.gtkrc-2.0

																									#FINALIZAÇÃO#

sudo /etc/cron.daily/prelink

sudo openbox --reconfigure

sudo update-grub2 

sudo reboot


More information about the Lubuntu-users mailing list