Commit 9df4053b authored by Christopher League's avatar Christopher League
Browse files

firefox profile

parent c0a44860
For S19, I'd like to reinstate using a virtual machine for
classes.
* Base nixos image in VirtualBox
Scripting the creation of the nixos base image is tricky because of
grub support -- best to do it once on VBox and clone it. Here are the
steps:
- Machine » New » Expert mode
- Name: nixos-minimal-18.09.1651
- Type: Linux, Version: Other Linux (64-bit)
- Memory: 1536MB
- Create virtual disk now
- File size: 20 GB
- VDI, dynamically allocated
- Settings » Storage » CD » nixos-minimal ISO
- Start
- loadkeys dvorak
- parted /dev/sda
- mklabel msdos
- mkpart p linux-swap 1MiB 2GiB
- mkpart p ext4 2GiB 100%
- quit
- mkswap -L swap /dev/sda1
- mkfs.ext4 -L nixos-root /dev/sda2
- swapon /dev/disk/by-label/swap
- mount /dev/disk/by-label/nixos-root /mnt
- nixos-generate-config --root /mnt
- vi /mnt/etc/nixos/hardware-configuration.nix
- Change the by-uuid to by-label
- vi /mnt/etc/nixos/configuration.nix
- boot.loader.grub.device = "/dev/sda";
- nixos-install
- Set root password: pHF,86?.mQ
- poweroff
- Settings » Storage » Eject CD
- Start
- Login as root
- nix-channel --update
- nixos-rebuild switch
- nix-collect-garbage --delete-old
- nixos-rebuild switch # to update GRUB menu
- poweroff
* Reducing size of image
The VMDK is now 2.0 GB. Let's see if we can reduce that.
- Settings » Storage » Attach CD iso again
- Start
- nix-collect-garbage --delete-old
- nixos-rebuild switch # to update GRUB menu
- nix-shell -p zerofree --command 'zerofree -v /dev/sda2'
- dd if=/dev/zero of=/dev/sda1 bs=1M
- mkswap -L swap /dev/sda1
- poweroff
- Eject ISO
Got it down to 1.4.
* Considerations for desktop environments
- lxqt does seem lightweight, but also clunky. A chief advantage,
though, may be that it is configurable with sensible .ini files
rather than XML like mate. Can be made to look better out of the
box.
- Lumina keeps crashing
- maxx couldn't download
- xfce -> xml files
Another consideration, though, is how well the DE responds
to having its configuration files changed underneath it.
Ideally, components would update automatically. Worst case
is that components save over the change when they exit/reboot.
Not clear lxqt is doing a great job with this.
https://forum.xfce.org/viewtopic.php?id=8619
→ xfce less clunky, and seems to respond well to having its
files change beneath it (just do logout).
** Firefox settings
- Privacy and onboarding is annoying
- copy out entire profile, then try to delete
- anything with references to /nix/
* addonStartup.json.lz4
* compatibility.ini
* extensions.json
* pluginreg.dat
- bigger items, in hopes they'll be recreated
search.json.mozlz4
key4.db
cert9.db
revocations.txt
webappsstore.sqlite
permissions.sqlite
cookies.sqlite
blocklist.xml
content-prefs.sqlite
favicons.sqlite
places.sqlite
- these dirs
8 sessionstore-backups
104 datareporting
1380 gmp-gmpopenh264
3320 storage
......@@ -20,13 +20,15 @@ in
powerManagement.enable = false;
sound.enable = false;
services.nginx.enable = true;
services.xserver.enable = true;
services.xserver.displayManager.slim = {
enable = true;
autoLogin = true;
defaultUser = "student";
};
services.xserver.desktopManager.lxqt.enable = true;
services.xserver.desktopManager.xfce.enable = true;
users.extraUsers.root.initialPassword = lib.mkDefault "root";
users.extraUsers.student = {
......
{pkgs}:
{pkgs ? (import <nixpkgs> {}).pkgs}:
let
userfile = name:
userIni = name:
pkgs.writeText name ''
[General]
__userfile__=true
'';
in
pkgs.linkFarm "skel" [
{ name = ".config/pcmanfm-qt/lxqt/settings.conf";
path = pkgs.callPackage lxqt/pcmanfm.nix {};
}
{ name = ".xscreensaver";
path = pkgs.callPackage ./xscreensaver.nix {};
}
{ name = ".config/lxqt/panel.conf";
path = pkgs.callPackage lxqt/panel.nix {};
}
{ name = ".config/lxqt/lxqt.conf";
path = pkgs.callPackage lxqt/lxqt.nix {};
}
{ name = ".config/lxqt/lxqt-powermanagement.conf";
path = pkgs.callPackage lxqt/powermgt.nix {};
}
{ name = ".config/lxqt/session.conf";
path = pkgs.callPackage lxqt/session.nix {};
}
{ name = ".config/lxqt/lxqt-runner.conf";
path = userfile "runner.conf";
}
{ name = ".config/lxqt/notifications.conf";
path = userfile "notifications.conf";
}
{ name = ".config/lxqt/power.conf";
path = userfile "power.conf";
}
]
xscreensaverConf = [
{ name = ".xscreensaver";
path = pkgs.callPackage ./xscreensaver.nix {};
}
];
lxqtConfs = xscreensaverConf ++ [
{ name = ".config/pcmanfm-qt/lxqt/settings.conf";
path = pkgs.callPackage lxqt/pcmanfm.nix {};
}
{ name = ".config/lxqt/panel.conf";
path = pkgs.callPackage lxqt/panel.nix {};
}
{ name = ".config/lxqt/lxqt.conf";
path = pkgs.callPackage lxqt/lxqt.nix {};
}
{ name = ".config/lxqt/lxqt-powermanagement.conf";
path = pkgs.callPackage lxqt/powermgt.nix {};
}
{ name = ".config/lxqt/session.conf";
path = pkgs.callPackage lxqt/session.nix {};
}
{ name = ".config/lxqt/lxqt-runner.conf";
path = userIni "runner.conf";
}
{ name = ".config/lxqt/notifications.conf";
path = userIni "notifications.conf";
}
{ name = ".config/lxqt/power.conf";
path = userIni "power.conf";
}
];
firefoxConf = [
{ name = ".mozilla/firefox/profiles.ini";
path = firefox/profiles.ini;
}
{ name = ".mozilla/firefox/v2codrrw.default";
path = firefox/v2codrrw.default;
}
];
in
pkgs.linkFarm "skel" firefoxConf
[General]
StartWithLastProfile=1
[Profile0]
Name=default
IsRelative=1
Path=v2codrrw.default
Default=1
accounts.firefox.com:HSTS 0 17884 1560805827473,1,1,2
discovery.addons.mozilla.org:HPKP 0 17884 1550437946952,1,1,WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=r/mIkG3eEpVdm+u/ko/cwxzOMo1bk4TyHIlByibiA5E=
www.mozilla.org:HSTS 0 17884 1576789826488,1,0,2
snippets.cdn.mozilla.net:HSTS 0 17884 1576789828331,1,0,2
shavar.services.mozilla.com^firstPartyDomain=safebrowsing.86868755-6b82-4842-b301-72671a0db32e.mozilla:HSTS 0 17884 1576789827834,1,1,2
mozilla.org:HSTS 0 17884 1576789827052,1,0,2
discovery.addons.mozilla.org:HSTS 0 17884 1576789946948,1,0,2
addons.cdn.mozilla.net:HSTS 0 17884 1576789947482,1,1,2
www.google-analytics.com:HSTS 0 17884 1556140229235,1,1,2
aus5.mozilla.org:HSTS 0 17884 1576789845319,1,0,2
{"schema":5,"addons":[],"compatOverrides":[]}
\ No newline at end of file
{"version":1,"listeners":{"remote-settings/monitor_changes":{"version":"\"1545232187960\"","sourceInfo":{"moduleURI":"resource://services-settings/remote-settings.js","symbolName":"remoteSettingsBroadcastHandler"}}}}
\ No newline at end of file
{"version":4,"lastUserContextId":5,"identities":[{"userContextId":1,"public":true,"icon":"fingerprint","color":"blue","l10nID":"userContextPersonal.label","accessKey":"userContextPersonal.accesskey","telemetryId":1},{"userContextId":2,"public":true,"icon":"briefcase","color":"orange","l10nID":"userContextWork.label","accessKey":"userContextWork.accesskey","telemetryId":2},{"userContextId":3,"public":true,"icon":"dollar","color":"green","l10nID":"userContextBanking.label","accessKey":"userContextBanking.accesskey","telemetryId":3},{"userContextId":4,"public":true,"icon":"cart","color":"pink","l10nID":"userContextShopping.label","accessKey":"userContextShopping.accesskey","telemetryId":4},{"userContextId":5,"public":false,"icon":"","color":"","name":"userContextIdInternal.thumbnail","accessKey":""},{"userContextId":4294967295,"public":false,"icon":"","color":"","name":"userContextIdInternal.webextStorageLocal","accessKey":""}]}
\ No newline at end of file
{"defaultHandlersVersion":{"en-US":4},"mimeTypes":{"application/pdf":{"action":3,"extensions":["pdf"]}},"schemes":{"ircs":{"action":2,"ask":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]},"webcal":{"action":2,"ask":true,"handlers":[null,{"name":"30 Boxes","uriTemplate":"https://30boxes.com/external/widget?refer=ff&url=%s"}]},"mailto":{"action":2,"ask":true,"handlers":[null,{"name":"Yahoo! Mail","uriTemplate":"https://compose.mail.yahoo.com/?To=%s"},{"name":"Gmail","uriTemplate":"https://mail.google.com/mail/?extsrc=mailto&url=%s"}]},"irc":{"action":2,"ask":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]}}}
\ No newline at end of file
library=
name=NSS Internal PKCS #11 Module
parameters=configdir='sql:/home/student/.mozilla/firefox/v2codrrw.default' certPrefix='' keyPrefix='' secmod='secmod.db' flags=optimizeSpace updatedir='' updateCertPrefix='' updateKeyPrefix='' updateid='' updateTokenDescription=''
NSS=Flags=internal,critical trustOrder=75 cipherOrder=100 slotParams=(1={slotFlags=[ECC,RSA,DSA,DH,RC2,RC4,DES,RANDOM,SHA1,MD5,MD2,SSL,TLS,AES,Camellia,SEED,SHA256,SHA512] askpw=any timeout=30})
// Mozilla User Preferences
// DO NOT EDIT THIS FILE.
//
// If you make changes to this file while the application is running,
// the changes will be overwritten when the application exits.
//
// To change a preference value, you can either:
// - modify it via the UI (e.g. via about:config in the browser); or
// - set it within a user.js file in your profile.
user_pref("app.normandy.enabled", false);
user_pref("app.normandy.first_run", false);
user_pref("app.update.lastUpdateTime.addon-background-update-timer", 0);
user_pref("app.update.lastUpdateTime.blocklist-background-update-timer", 0);
user_pref("app.update.lastUpdateTime.browser-cleanup-thumbnails", 1545253853);
user_pref("app.update.lastUpdateTime.search-engine-update-timer", 0);
user_pref("app.update.lastUpdateTime.services-settings-poll-changes", 0);
user_pref("app.update.lastUpdateTime.telemetry_modules_ping", 0);
user_pref("app.update.lastUpdateTime.xpi-signature-verification", 0);
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref("browser.cache.disk.capacity", 122880);
user_pref("browser.cache.disk.filesystem_reported", 1);
user_pref("browser.cache.disk.smart_size.first_run", false);
user_pref("browser.laterrun.bookkeeping.profileCreationTime", 1545253823);
user_pref("browser.laterrun.bookkeeping.sessionCount", 2);
user_pref("browser.laterrun.enabled", true);
user_pref("browser.migration.version", 74);
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories.rec.impressions", "{\"30588\":1545253827569,\"30595\":1545253827569,\"30607\":1545253827569,\"30612\":1545255063722}");
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories.spoc.impressions", "{\"784\":[1545253827838,1545255063840]}");
user_pref("browser.newtabpage.activity-stream.feeds.snippets", false);
user_pref("browser.newtabpage.activity-stream.feeds.topsites", false);
user_pref("browser.newtabpage.activity-stream.impressionId", "{fd79c3b1-477c-4740-8a32-a304848464c3}");
user_pref("browser.newtabpage.activity-stream.migrationLastShownDate", 1545177600);
user_pref("browser.newtabpage.activity-stream.migrationRemainingDays", 3);
user_pref("browser.newtabpage.activity-stream.prerender", false);
user_pref("browser.newtabpage.activity-stream.section.highlights.includePocket", false);
user_pref("browser.newtabpage.activity-stream.showSponsored", false);
user_pref("browser.newtabpage.storageVersion", 1);
user_pref("browser.onboarding.enabled", false);
user_pref("browser.onboarding.hidden", true);
user_pref("browser.onboarding.seen-tourset-version", 2);
user_pref("browser.pageActions.persistedActions", "{\"version\":1,\"ids\":[\"bookmark\",\"bookmarkSeparator\",\"copyURL\",\"emailLink\",\"addSearchEngine\",\"sendToDevice\",\"pocket\",\"screenshots\"],\"idsInUrlbar\":[\"pocket\",\"bookmark\"]}");
user_pref("browser.pagethumbnails.storage_version", 3);
user_pref("browser.safebrowsing.provider.mozilla.lastupdatetime", "1545253828903");
user_pref("browser.safebrowsing.provider.mozilla.nextupdatetime", "1545257428903");
user_pref("browser.search.cohort", "nov17-2");
user_pref("browser.search.region", "US");
user_pref("browser.sessionstore.upgradeBackup.latestBuildID", "20181207193237");
user_pref("browser.shell.mostRecentDateSetAsDefault", "1545253974");
user_pref("browser.slowStartup.averageTime", 2579);
user_pref("browser.slowStartup.samples", 2);
user_pref("browser.startup.homepage", "http://localhost/");
user_pref("browser.startup.homepage_override.buildID", "20181207193237");
user_pref("browser.startup.homepage_override.mstone", "63.0.3");
user_pref("browser.uiCustomization.state", "{\"placements\":{\"widget-overflow-fixed-list\":[],\"PersonalToolbar\":[\"personal-bookmarks\"],\"nav-bar\":[\"back-button\",\"forward-button\",\"stop-reload-button\",\"home-button\",\"customizableui-special-spring1\",\"urlbar-container\",\"customizableui-special-spring2\",\"downloads-button\",\"library-button\",\"sidebar-button\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[\"tabbrowser-tabs\",\"new-tab-button\",\"alltabs-button\"]},\"seen\":[\"developer-button\"],\"dirtyAreaCache\":[\"PersonalToolbar\",\"nav-bar\",\"toolbar-menubar\",\"TabsToolbar\"],\"currentVersion\":14,\"newElementCount\":2}");
user_pref("browser.urlbar.placeholderName", "Google");
user_pref("datareporting.policy.dataSubmissionPolicyAcceptedVersion", 2);
user_pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "1545253828180");
user_pref("devtools.onboarding.telemetry.logged", true);
user_pref("distribution.iniFile.exists.appversion", "63.0.3");
user_pref("distribution.iniFile.exists.value", false);
user_pref("dom.push.userAgentID", "70d056e7330046678be1a44c5e60c691");
user_pref("extensions.blocklist.pingCountVersion", 0);
user_pref("extensions.databaseSchema", 27);
user_pref("extensions.getAddons.databaseSchema", 5);
user_pref("extensions.lastAppBuildId", "20181207193237");
user_pref("extensions.lastAppVersion", "63.0.3");
user_pref("extensions.lastPlatformVersion", "63.0.3");
user_pref("extensions.pendingOperations", false);
user_pref("extensions.systemAddonSet", "{\"schema\":1,\"addons\":{}}");
user_pref("extensions.ui.dictionary.hidden", true);
user_pref("extensions.ui.lastCategory", "addons://list/plugin");
user_pref("extensions.ui.locale.hidden", true);
user_pref("extensions.webextensions.uuids", "{\"formautofill@mozilla.org\":\"8b45c29c-9883-4540-ab04-3f2bd758f5b0\",\"webcompat@mozilla.org\":\"efa09e28-ea1d-43c7-8cf0-fa9ffd7903f2\",\"screenshots@mozilla.org\":\"b1d5e752-3b61-4217-8fe2-66554f2c6f95\"}");
user_pref("lightweightThemes.usedThemes", "[]");
user_pref("media.gmp-manager.buildID", "20181207193237");
user_pref("media.gmp-manager.lastCheck", 1545253845);
user_pref("media.gmp.storage.version.observed", 1);
user_pref("network.predictor.cleaned-up", true);
user_pref("pdfjs.enabledCache.state", true);
user_pref("pdfjs.migrationVersion", 2);
user_pref("pdfjs.previousHandler.alwaysAskBeforeHandling", true);
user_pref("places.history.expiration.transient_current_max_pages", 12312);
user_pref("plugin.disable_full_page_plugin_for_types", "application/pdf");
user_pref("privacy.sanitize.pending", "[]");
user_pref("security.sandbox.content.tempDirSuffix", "89b93340-c016-4bd7-87d0-129912a3ed52");
user_pref("services.blocklist.addons.checked", 1545253846);
user_pref("services.blocklist.gfx.checked", 1545253846);
user_pref("services.blocklist.onecrl.checked", 1545253846);
user_pref("services.blocklist.pinning.checked", 1545253846);
user_pref("services.blocklist.plugins.checked", 1545253846);
user_pref("services.settings.clock_skew_seconds", -1);
user_pref("services.settings.last_update_seconds", 1545253846);
user_pref("signon.importedFromSqlite", true);
user_pref("toolkit.startup.last_success", 1545253972);
user_pref("toolkit.telemetry.cachedClientID", "2a4826e4-0afd-47e4-8e40-e3a99d88da95");
user_pref("toolkit.telemetry.previousBuildID", "20181207193237");
user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);
{"profile-after-change":true,"final-ui-startup":true,"sessionstore-windows-restored":true,"quit-application-granted":true,"quit-application":true,"sessionstore-final-state-write-complete":true,"profile-change-net-teardown":true,"profile-change-teardown":true,"profile-before-change":true}
\ No newline at end of file
user_pref("app.normandy.enabled", false);
user_pref("app.normandy.first_run", false);
user_pref("browser.onboarding.enabled", false);
user_pref("browser.onboarding.hidden", true);
user_pref("browser.onboarding.seen-tourset-version", 2);
user_pref("browser.startup.homepage", "http://localhost/");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment