diff options
Diffstat (limited to 'org')
-rw-r--r-- | org/4get-guide.org | 142 | ||||
-rw-r--r-- | org/distro-guides/void.org | 13 | ||||
-rw-r--r-- | org/gophermap | 3 | ||||
-rw-r--r-- | org/images/4get-guide-background.jpg | bin | 0 -> 35366 bytes | |||
-rw-r--r-- | org/index.org | 8 |
5 files changed, 163 insertions, 3 deletions
diff --git a/org/4get-guide.org b/org/4get-guide.org new file mode 100644 index 0000000..171bccd --- /dev/null +++ b/org/4get-guide.org @@ -0,0 +1,142 @@ +#+SETUPFILE: ../org-templates/level-1.org +#+BACKGROUND_IMAGE: images/4get-guide-background.jpg +#+TITLE: 4get guide + +* About 4get +:PROPERTIES: +:CUSTOM_ID: about +:END: +4get is a meta search engine similar to searxng. Its faster, less resource +intense, and more reliable than searxng. *This guide is made for peeps using +4get with lighttpd+freebsd*. Those using a more sane setup should just check +out [[https://git.lolcat.ca/lolcat/4get/src/branch/master/docs/][the 4getdocs]]. + +* Installing 4get +:PROPERTIES: +:CUSTOM_ID: installing +:END: +First install a few packages. Replace =84= with whatever php version your using. +#+begin_src shell + pkp install lighttpd curl git php84 php84-curl php84-fileinfo php84-filter \ + php84-mbstring php84-pecl-APCu php84-pecl-imagick php84-sodium php84-zlib +#+end_src + +Next cd into =/usr/local/www= or wherever you keep your website data and clone +the repo with =git clone --depth 1 https://git.lolcat.ca/lolcat/4get <whatever +the fuck you want>= + +Now that you have it downloaded check out =data/config.php= and change it to +your liking. It's not my job to tell you how you want your 4get instance +configured (: + +* Setting up lighttpd +:PROPERTIES: +:CUSTOM_ID: lighttpd +:END: +If your reading this you likely already used lighttpd since there is no other +reason you would pick lighttpd out of all the other web servers rofl. Well +anyways here is a basic config for 4get to get you started. +#+begin_src + server.modules += ("mod_rewrite", "mod_fastcgi") + server.name = "<whatever the fuck you want>" + server.document-root = "/usr/local/www/<whatever the fuck you want>" + server.pid-file = "/var/run/lighttpd.pid" + index-file.names = ("index.php") + fastcgi.server = ( + ".php" => ( + "localhost" => ( + "socket" => "/var/run/php/php-fpm.pid", + "broken-scriptfilename" => "enable" + )) + ) + url.rewrite-once = ( "^(.*)/$" => "$1/" ) + url.rewrite-if-not-file = ( "^([^?]*)(\?.*)?$" => "$1.php$2" ) +#+end_src + +Next run =mkdir /var/run/php= and =chown www:www /var/run/php= to create the +directory for the sock + +To configure the sock path open =/usr/local/etc/php-fpm.d/www.conf= and set +this value somewhere: +#+begin_src + listen = /var/run/php/php-fpm.pid +#+end_src + +To prevent those annoying php warnings from showing up put these in +=/usr/local/etc/php.ini= +#+begin_src + error_reporting = E_ALL & ~E_DEPRECATED + display_errors = On +#+end_src + +To enable and start it run: +#+begin_src shell + service php_fpm enable + service lighttpd enable + service php_fpm start + service lighttpd start +#+end_src +\\ + +* Tor proxy +:PROPERTIES: +:CUSTOM_ID: tor +:END: +Using a proxy is likely something you will want to do. Meta search engines tend +to get IP banned and all of that funky stuff. + +** torrc +:PROPERTIES: +:CUSTOM_ID: torrc +:END: +To use tor as your proxy add these lines to =/usr/local/etc/tor/torrc= +#+begin_src + SOCKSPort 127.0.0.1:9050 + DNSPort 53 + AutomapHostsOnResolve 1 +#+end_src +The reason to also use torDNS is that if you don't you will get DNS leaks. + +** Tor service +:PROPERTIES: +:CUSTOM_ID: service +:END: +For tor to be able to create a DNS server in freebsd add this to =/etc/rc.conf= +#+begin_src + tor_setuid="YES" +#+end_src + +To use tor DNS change the content of =/etc/resolv.conf= to +=nameserver 127.0.0.1= + +Run =service tor enable= and =service tor start= to get it going + +To config 4get to use tor edit =<4get directory>/data/config.php= and set all +the =const PROXY_<...>= to ="onion"= +#+begin_src php + ... + const PROXY_DDG = "onion"; // duckduckgo + const PROXY_BRAVE = "onion"; + const PROXY_FB = "onion"; // facebook + ... +#+end_src + +** Freebsd pkg issue +:PROPERTIES: +:CUSTOM_ID: pkg +:END: +Freebsd pkg doesn't like torDNS. To fix that run +=mkdir -p /usr/local/etc/pkg/repos= +then =cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/= + +Now change =/usr/local/etc/pkg/repos/FreeBSD.conf= to something like this: +#+begin_src + FreeBSD: { + url: "https://pkg.FreeBSD.org/${ABI}/quarterly", + mirror_type: "none", + signature_type: "fingerprints", + fingerprints: "/usr/share/keys/pkg", + enabled: yes + } +#+end_src + diff --git a/org/distro-guides/void.org b/org/distro-guides/void.org index 57fc082..75d3a1c 100644 --- a/org/distro-guides/void.org +++ b/org/distro-guides/void.org @@ -37,6 +37,19 @@ Some useful things: + [[https://docs.voidlinux.org/config/containers-and-vms/chroot.html][Interesting]]. + [[https://gothub.ducks.party/void-linux/void-packages][Source packages in void]]. + +* Laptop brightness issue +:PROPERTIES: +:CUSTOM_ID: brightness +:END: +On void some laptops will not save their previous brightness after boot. To fix +that first install [[https://man.voidlinux.org/brillo.1][brillo(1)]]. + +To save the brightness on shutdown open =/etc/rc.shutdown= and add =brillo -O= + +Next open =/etc/rc.local= and add =brillo -I= to restore the brightness on +startup + * Packages :PROPERTIES: :CUSTOM_ID: packages diff --git a/org/gophermap b/org/gophermap index 50a6899..b459664 100644 --- a/org/gophermap +++ b/org/gophermap @@ -15,8 +15,7 @@ iPoorly exported shit from org-mode: 0My likes and dislikes likes-and-dislikes.txt 0How I do my computing computing.txt 0The declaration of freedom declaration.txt -0Donate give-me-your-dollaridoos.txt -0Contact contact.txt +04get setup guide 4get-guide.txt 0Void guide distro-guides/void.txt 0Xfce guide distro-guides/xfce.txt diff --git a/org/images/4get-guide-background.jpg b/org/images/4get-guide-background.jpg Binary files differnew file mode 100644 index 0000000..81fc560 --- /dev/null +++ b/org/images/4get-guide-background.jpg diff --git a/org/index.org b/org/index.org index 4b28882..2ad7878 100644 --- a/org/index.org +++ b/org/index.org @@ -36,18 +36,24 @@ :CUSTOM_ID: places :END: + [[file:linux-room.org][linux room]] + + [[file:distro-guides/void.org][Void (my daily driver)]] + + [[file:distro-guides/xfce.org][Xfce DE]] + + [[file:distro-guides/arch.org][Arch (my old daily driver)]] + + [[file:distro-guides/fedora.org][Fedora xfce (my old old daily driver)]] + [[file:music-room.org][music room]] + [[file:tv-corner.org][tv corner]] + [[file:reading-corner.org][reading corner]] + [[file:ttr.org][tips, tricks, & reviews]] + [[file:xmpp-and-mumble.org][learn about xmpp and mumble]] ++ [[file:4get-guide.org][4get setup guide]] + [[file:computing.org][how I do my computing]] + [[file:nathans-philosophy.org][Nathan's philosophy]] + [[file:likes-and-dislikes.org][my likes and dislikes]] + [[file:declaration.org][declaration of freedom]] ++ [[file:free-money.org][FREE MONEY]] + [[file:truth.org][LEARN THE TRUTH]] -/durp durp durp/ *bite my shiny metal ass* +/durp durp durp/ *who the fuck registered [[http://goatedfb.com][goatedfb.com]]!? I NEED TO KNOW* * About me :PROPERTIES: |