Browse Source

added linux bundle build script

Former-commit-id: 5c66c4900c
pull/43/head 1.1.2
R4SAS 8 years ago
parent
commit
89520129d3
  1. 32
      linux/configs/bookmarks.html
  2. 70
      linux/configs/prefs.js
  3. 1
      linux/configs/xulstore.json
  4. 62
      linux/i2pdbrowserportable.sh

32
linux/configs/bookmarks.html

@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1479561249" LAST_MODIFIED="1479561768" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Toolbar</H3>
<DD>Add bookmarks to this folder to see them displayed on the Bookmarks Toolbar
<DL><p>
<DT><A HREF="http://127.0.0.1:7070/" ADD_DATE="1479679427" LAST_MODIFIED="1479679570" ICON_URI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiIAAC4iAari3ZIAAAAHdElNRQfgCQsUNSZrkhi1AAAAGXRFWHRTb2Z0d2FyZQBwYWludC5uZXQgNC4wLjEyQwRr7AAAAoJJREFUOE9jwAUqi4Q1oEwwcDTV1+5sETaBclGBvb09C5QJB6kWpvFQJoOCeLC5kmjEHCgXE2SlyETLi3h6QrkM4VL+ssWSCZUgtopITLKqaOotRTEncbAkLqAkGtOqLBLVAWLXyWSVFkkmRiqLxuaqiWb/VBYJMAYrwgckJY25VEUzniqKhjU2y+RtCRSP6lUXy/1jIBV5tlYxZUaFVMq2NInwIi9hO8fSfOEAqDZUoCwal6MulvOvyS7gi69K4j9zxZT/m0ps/28ptvvvquXXryIa7QYMMdTwqi0WNtVi0GIDseXl7TnUxFKfnGlxAGp0+D8j2eH/8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/8Ub7/9e7nf7X+Af/B7rwt6pI0h0l0WhQADOC9DBkhSirpImHNVZKp24ukkyoshGLnN8d5fA/y13t/44Kq/8hlnL/z7fZ/58f6vcxSNpbVUVFhV1RLNBVTsQzVYZPSwhsCAhkiIfpNMrkbO6TLf071Sfk/5ZSi/+7q6z/P5ns+v9mj/P/CpuI/20y+aeNGYxZoVoYGmsF3aFMBAAZlCwftnF9ke3//bU2//fXWP8/UGv731Am+V+DdNblSqnUYqhSTKAiYSOqJBrVqiaa+S3UNPr/gmyH/xuKXf63hnn/B8bIP0UxHfEyyeSNQKVMEB1AEB2twhcTLp+gIBJUoyKasEpVJHmqskh8qryovUG/ffCHHRU2q/Tk/YuB6eGPsbExa7ZkpLu1oLEcVDtuUCgV1w60rQzElpRUE1EVSX0BYidHiInXF4nagNhYQW60EF+ApH1ktni0A1SIITSUgVlZJHYnlIsfzJjIp9xZKswL5YKBHL+coKJoRDaUSzoozxHVrygQU4JykQADAwAT5b1NHtwZugAAAABJRU5ErkJggg==" LAST_CHARSET="windows-1251">Purple I2P Webconsole</A>
<DD>Веб-панель управления миром
<DT><A HREF="http://333.i2p/" ADD_DATE="1479561480" LAST_MODIFIED="1479561480" LAST_CHARSET="UTF-8">333.i2p: Форум, посвященный разработке и поддержке i2pd</A>
<DD>333.i2p: Форум, посвященный разработке и поддержке i2pd
<DT><A HREF="http://102chan.i2p/" ADD_DATE="1479561317" LAST_MODIFIED="1479561317" ICON_URI="http://102chan.i2p/favicon.ico" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHUlEQVQ4ja3TTStFURQG4Of4VjdfycCAkCjKwNeEMLrFSEopxcRHZsrEwISJgWQgzM39Af/Ab2AiP8IIg7NubdcxoPvW6bxr7Xefvd511qaGqIunggz1BbqsSvfnQ35NHuE2yY9go0Dfi+nq5AI+8RpxK97wgiGU5Hau8IFnnMvtaMEDbvAUH1jHO9owh90QX2I7NHfoESdsYgyPyeJF8AZcoz2puBNnaE5t9CU9uMdkpUQch++GqPgQg+nmDB04ifhU3sQK9jERfCvhWaLRib3gu5iXNy5DGU0Yxk5i7Ru6sBZ8FgfJ2mK8N8NCIUpYDd4on4uy/C+MY0rezGXMyOfhB/oSXo8VLEXcjVEMoD8qrj2yqrjogmUFuv/jC6o9H3l1oWaZAAAAAElFTkSuQmCC" LAST_CHARSET="UTF-8">102chan</A>
<DD>ИИ, живущий в даркнете, с кодовым названием "Тлено-тян"
<DT><A HREF="http://flibusta.i2p/" ADD_DATE="1479851686" LAST_MODIFIED="1479851790" ICON_URI="http://flibusta.i2p/sites/default/files/bluebreeze_favicon.ico" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACSUlEQVQ4jZXTTUzSARjH8f+Bmyc37NpFT126dOnmpempk1tz0xwezNwq1wbaaiBL1mJuEoaA5ghQiP1FAzWEJNDEmSTq1F4El7MZvkSTydRpfDu01otk9my/0/Pssz3P9giz0Qj+aPxIAv1DPBPFnL1fI/ijcUzR7JEYDA5UKh0G3xrtwys5Z0zRbG5A75xEq21FH0phsvsxdU/8H9DT40UURcKhAC6bDU1HP+aprycD2iJpgn4P4eAQS0tjbGws43a7MLu9JwOaWx9jMirRaZuxWc08sZqxWbUMeLppc8f+DVh7gwiCINisXSzORwn7BxBFKy6nDkePHVNk/3jA4Bjj8CDD6GiI1Od19jIpdtIpwsEhhn0Omu5bjgcsTjebySWmXr3k0/Is6yszJN7H8Hpc3Lleg74v/nfgWtsgtVcquKdupPFmDWq1HI1KhbFFTUV1NfpA8vgbFBaeoei0lLNFUk7l5yORSJBIJFwuKaG2shJXNEHH85WjQH8swcfXHlbfxmhoaODC+XMUSaUUFBSQl5fHpeJiBr0i29tJ3oW82NW3UWk6MYxsIvRadaS3PpD5ssru2gLZbJbDgwxbiRjxUQuJYDsLE0/Zm37E3riR7bkBVoOd2OuqkF+VI9jldcy98LKTTrGz6Gd3ppf0uIFUQE1qUEE2pGY/qCXi0NCluIi5XobqlpZWcf77CtNjPsz1MpIjD9gQm5i23CCgLsWlKKVPUcasqZw3xnK6qspw6rT4RiZ//8YfZVIqyZUWmYyHd5U/B/+ob3vQ/Nm4vJ+hAAAAAElFTkSuQmCC" LAST_CHARSET="UTF-8">Флибуста</A>
<DD>Флибуста - независимый библиотечный ресурс. Как и в любой библиотеке, просьба соблюдать чистоту, порядок и спокойствие. Здесь читают и работают хорошие люди.
<DT><A HREF="http://inr.i2p/" ADD_DATE="1479679523" LAST_MODIFIED="1479679523" LAST_CHARSET="UTF-8">I2P Name Registry</A>
<DD>Поиск и регистрация в i2p зоне
<DT><A HREF="http://identiguy.i2p/" ADD_DATE="1479679634" LAST_MODIFIED="1479679642" ICON_URI="http://identiguy.i2p/favicon.ico" ICON="data:image/png;base64,AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgnwAeIcAbZEAY5sAWKcATbEAQrwAOMYALdEAItsAGOYADfEAA/wAAP8AAP8AAP8AjnAAg3wAeIYAbZAAY5sAWKYATrAAQ7sAOMYALtEAI9sAGOYADvAAA/sAAP8AAP8AmWUAjnAAg3oAeYYAbpAAY5sAWKYATrAAQ7oAOMYALtAAJNoAGeYADu8AA/sAAP8Ao1sAmWUAjnAAg3oAeIUAbpAAZJoAWaYAT7AARLoAOcUAL9AAI9sAGeYADvAAA/sAr08ApFsAmWUAj28Ag3sAeYUAb5AAZJoAWaUAT7AAQ7sAOcUAL9AAJNoAGeUADvAAukQArk8ApFoAmWUAj28AhHoAeYQAb5AAZJoAWaUAT7AARLoAOsQAL88AJNoAGuUAxDoAukUArk8ApFoAmmUAj3AAhHoAeYQAb48AZJkAWaUAT68ARLoAOcUAL88AJNoAzy8AxDoAukUAr08ApFoAmmQAj28AhXoAeYQAb48AZJoAWqQAT68ARLoAOsQAL88A2iQAzy8AxTkAukQAr08ApVoAmmQAkG8AhXoAeoQAcI8AZZoAWqQAT64ARbkAOcQA5RgA2iQA0C8AxDkAukMAr08ApVkAmmMAkG4AhXkAe4QAb44AZZkAWqMAUK4ARbkA8A4A5RkA2iQAzy4AxTkAu0MAsE4AplgAm2QAkG4AhXgAe4QAcI8AZZkAWqMAT64A+gMA8A4A5RkA2yQA0C4AxTkAukMAsE4ApVkAm2MAkG4AhngAe4QAcI4AZZgAW6MA/wAA+wQA8A4A5RgA2yQA0C0AxjgAu0MAsE4AplgAm2MAkG0AhnkAe4MAcY4AZpgA/wAA/wAA+wMA8Q4A5hgA2yMA0C0AxjgAu0MAsU0AplgAnGMAkG0AhngAfIMAcI0A/wAA/wAA/wAA+wMA8Q0A5hgA3CIA0S0AxjgAu0MAsU0Ap1gAm2MAkW0AhncAe4MA/wAA/wAA/wAA/wAA/AMA8Q0A5xcA3CIA0S0AxzcAu0IAskwAp1cAnGIAkWwAhngAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" LAST_CHARSET="windows-1252">IdentyGuy</A>
<DD>eepsites
<DT><A HREF="http://hashshop.i2p/" ADD_DATE="1479679481" LAST_MODIFIED="1479679492" ICON_URI="http://hashshop.i2p/favicon.ico" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA5klEQVQ4je2MsQqCUABF7+Ab4uEg+gcu+g1CS38QhVNJQUM0NkRDIESTaJOTi6P1D4FuDUbDQxDED3CKdsGWoiAs5+hMlwP3AL9JAMg7wAmAKACi+5YbnX1A3tPWIR30iut6WV7XyzId9Io9bR38JhEfcJJhvzgb+mXL82zL8+xs6Jdk2C98wPka8IAom45Ki1K2ArQVoFmUsmw6Kj0g+hpwgZjp3coE4ocz7859cbXYQJx32m+BvNOu7CYBRVEmYXisVFVdfHK1CIIwO52SSpKk+cOJovjmaiGEjDmO2xBCxp/cnyc3xQhcWzmwLm4AAAAASUVORK5CYII=" LAST_CHARSET="UTF-8">HashShop</A>
<DD>Скачать торренты бесплатно без СМС
<DT><A HREF="http://onelon.i2p/feed/new" ADD_DATE="1479561488" LAST_MODIFIED="1479561488" ICON_URI="http://onelon.i2p/favicon.png" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wsZEC4vyY26WwAAAJFJREFUSMftlj0OwCAIhYF0r9fw/ofxGt7ADl1MQTFF0g68iRjzPn4MEQFO8BSBswIQALsO8TS3CgAF0yPmd3rxO0OAKk7NreZWOYO2uD/K/XQGfQo8Frs8GokM4INVrSfue1o0z4Bc3a2Ale6Rq7v1Fanuple04v7XbSpuhVGhL5ddwXRvN7VpGN+WAATAH3ABZKVRs6HJLusAAAAASUVORK5CYII=" LAST_CHARSET="UTF-8">#onelon</A>
<DD>onelon - анонимные блоги без цензуры
<DT><A HREF="http://pizdabol.i2p/armada.html" ADD_DATE="1479679877" LAST_MODIFIED="1479679907" LAST_CHARSET="UTF-8">Профессиональный Эксперт</A>
<DD>ARMADA Первый в мире Глобальный Хуяк сервис 24/7
</DL><p>
</DL>

70
linux/configs/prefs.js

@ -0,0 +1,70 @@ @@ -0,0 +1,70 @@
# Mozilla User Preferences
/* Do not edit this file.
*
* If you make changes to this file while the browser is running,
* the changes will be overwritten when the browser exits.
*
* To make a manual change to preferences, you can visit the URL about:config
* For more information, see http://www.mozilla.org/unix/customizing.html#prefs
*/
user_pref("app.update.auto", false);
user_pref("app.update.enabled", false);
user_pref("browser.cache.disk.capacity", 65536);
user_pref("browser.download.useDownloadDir", false);
user_pref("browser.fixup.alternate.enabled", false);
user_pref("browser.newtabpage.enhanced", false);
user_pref("browser.newtabpage.introShown", true);
user_pref("browser.safebrowsing.malware.enabled", false);
user_pref("browser.safebrowsing.phishing.enabled", false);
user_pref("browser.search.geoip.url", false);
user_pref("browser.search.suggest.enabled", false);
user_pref("browser.selfsupport.url", "");
user_pref("browser.shell.checkDefaultBrowser", false);
user_pref("browser.startup.homepage", "http://i2pd.i2p/");
user_pref("browser.tabs.crashReporting.sendReport", false);
user_pref("datareporting.healthreport.about.reportUrl", "");
user_pref("datareporting.healthreport.service.enabled", false);
user_pref("datareporting.healthreport.uploadEnabled", false);
user_pref("datareporting.sessions.current.clean", true);
user_pref("extensions.autoDisableScopes", 0);
user_pref("general.warnOnAboutConfig", false);
user_pref("geo.enabled", false);
user_pref("intl.locale.matchOS", true);
user_pref("keyword.enabled", false);
user_pref("media.eme.enabled", false);
user_pref("media.gmp-eme-adobe.enabled", false);
user_pref("media.peerconnection.enabled", false);
user_pref("network.cookie.prefsMigrated", true);
user_pref("network.dns.disableIPv6", true);
user_pref("network.dns.disablePrefetch", true);
user_pref("network.dns.disablePrefetchFromHTTPS", true);
user_pref("network.proxy.backup.ftp", "127.0.0.1");
user_pref("network.proxy.backup.ftp_port", 4444);
user_pref("network.proxy.backup.socks", "127.0.0.1");
user_pref("network.proxy.backup.socks_port", 4444);
user_pref("network.proxy.backup.ssl", "127.0.0.1");
user_pref("network.proxy.backup.ssl_port", 4444);
user_pref("network.proxy.ftp", "127.0.0.1");
user_pref("network.proxy.ftp_port", 4444);
user_pref("network.proxy.http", "127.0.0.1");
user_pref("network.proxy.http_port", 4444);
user_pref("network.proxy.share_proxy_settings", true);
user_pref("network.proxy.socks", "127.0.0.1");
user_pref("network.proxy.socks_port", 4444);
user_pref("network.proxy.socks_remote_dns", true);
user_pref("network.proxy.ssl", "127.0.0.1");
user_pref("network.proxy.ssl_port", 4444);
user_pref("network.proxy.type", 1);
user_pref("network.cookie.prefsMigrated", true);
user_pref("noscript.ABE.enabled", false);
user_pref("noscript.ABE.wanIpAsLocal", false);
user_pref("plugin.default_plugin_disabled", true);
user_pref("privacy.trackingprotection.enabled", true);
user_pref("security.ssl.errorReporting.automatic", false);
user_pref("security.ssl.errorReporting.enabled", false);
user_pref("startup.homepage_welcome_url", "about:blank");
user_pref("startup.homepage_welcome_url.additional", "about:blank");
user_pref("toolkit.telemetry.enabled", false);
user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);

1
linux/configs/xulstore.json

@ -0,0 +1 @@ @@ -0,0 +1 @@
{"chrome://browser/content/browser.xul":{"navigator-toolbox":{"iconsize":"small"},"titlebar-placeholder-on-menubar-for-caption-buttons":{"width":"96"},"titlebar-placeholder-on-TabsToolbar-for-captions-buttons":{"width":"96"},"main-window":{"screenX":"0","screenY":"0","width":"1280","height":"720","sizemode":"normal"},"PersonalToolbar":{"collapsed":"false","currentset":"personal-bookmarks"},"toolbar-menubar":{"currentset":"menubar-items"},"TabsToolbar":{"currentset":"tabbrowser-tabs,new-tab-button,alltabs-button"},"addon-bar":{"currentset":"addonbar-closebutton,status-bar"},"sidebar-title":{"value":""}}}

62
linux/i2pdbrowserportable.sh

@ -0,0 +1,62 @@ @@ -0,0 +1,62 @@
#!/bin/sh
arch=$(uname -m)
# Configure the following default variables according to your requirements
#language="en-US" # e.g. "de" or "en-US" # We will detect language from system!
language=$(echo $LANG | cut -c-5 | sed s/_/-/g)
# default if no argument is set:
version="45.6.0esr" # chose from http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/
application="firefox"
echo "This script prepearing $application $version for use with I2Pd"
#read -n1 -r -p "Press space to continue..." key
file="$application-$version.tar.bz2"
url="http://ftp.mozilla.org/pub/$application/releases/$version/linux-$arch/$language/$file"
# or example for firefox nightly:
#file=firefox-32.0a2.en-US.linux-i686.tar.bz2
#url=http://download.cdn.mozilla.net/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/$file
dir="$application-portable-$version"
mkdir "$dir"
cd "$dir"
echo "Downloading $application..."
wget -q $url
if [ $? -ne 0 ]; then # Not found error, trying to cut language variable
language=$(echo $language | cut -c-2)
# re-create variable with cutted lang
url="http://ftp.mozilla.org/pub/$application/releases/$version/linux-$arch/$language/$file"
wget -q $url
fi
if [ ! -f $file ]; then
echo "Can't find downloaded file. Does FireFox support your system language?"
exit 1;
fi
echo "Extracting archive, please wait..."
tar xfj $file
rm $file
mv $application app
mkdir data
echo "Downloading NoScript extension..."
wget -q https://addons.mozilla.org/firefox/downloads/latest/noscript/addon-722-latest.xpi?src=search -O app/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi
echo "Adding standart configs..."
cp ../configs/* data/
echo '#!/bin/sh' > "${application}-portable"
echo 'dir=${0%/*}' >> "${application}-portable"
echo 'if [ "$dir" = "$0" ]; then' >> "${application}-portable"
echo ' dir="."' >> "${application}-portable"
echo 'fi' >> "${application}-portable"
echo 'cd "$dir/app"' >> "${application}-portable"
echo './firefox -profile ../data' >> "${application}-portable"
chmod +x "$application-portable"
echo ... finished
echo "#close all running instances of another $application version:"
echo killall $application
echo "#change into the directory"
echo "# and start the application there"
echo cd "$dir"
echo ./"$application-portable"
Loading…
Cancel
Save