What to do with the daily posts requirement ... i'm far off an unemployment cheque, although some days get half of that and there's probably countries where that would already be livable, alas this is hellgium, i am scum and
dat was niet masjen ...
Considering i need 60% on top of that for taxes (because its a bit of a lottery here, like the cops can do as they please on things like weed depending on how busy they are, the tax dogs can sometimes decide what 'category' your money comes from which makes it anywhere from 15 to 50% (add 10 for inflation HAHAHAHAHAHA flandersfunny)
Think i'm not serious and whatever, lazy and whatever, i should just get a job at the local factory ... (of which there is actually one or two left, slightly saturated, full of young people and about a few hunreded waiting in line)
Start something up ! Even if i wanted here, i couldnt get a loan b/c i'm blacklisted due to some shit 15 years ago, and even then, to start something here without BIG money behind you is crazy, like stone cold fucking crazy, you're down €10000 euros on quarterlies in the second year even if you didnt make ONE cent.
Always hard to believe, specially for americans and chinese but, if you don't you can always come live here and start with nothing, see how many bill gateses and jack mas you'll spawn.
While i feel i wouldnt even be living here in hell if they let me do instead of wrecking it several times so
instead of catoverflow i think i'll re-install the hobby server tonight. I mean i gotta keep it up
until i can tone it down , and there's literally NO alternative. If it wasn't for this, there would be NOTHING , this has gotten me a little bit of routine, my day more or less evolves around it. I have gotten a little bit of interest, ive even written a few lines of simplistic code. There's no guarantee.
But before that there was only one guarantee : that there was NOTHING in #fuckflanders to look forward to for me.
So, why, if i'm so poor, do i keep my own "webserver" ?
Well, because it's cheaper than having something hosted actually. Because it's a hobby and because i dont make money with it (and if i did id probably be a tax-criminal or something). Yes you would find this a recurring topic in about everything i write because it interrupts me about once ever 1 to 5 minutes since i got stuck back here, and thats not getting better. Now i'm not looking for compassion. I'm looking for a life and i try to keep it diverse and interesting although trolls will be trolls and some people have a real peculiar idea of enforcing. Like stalking your posts for weeks no matter the size or content. And even without the eye i find most of my stuff doesn't get read much anyway. Doesn't matter, i don't want the spotlight. I actually hate the spotlight. So i need a tempo until its big enough so i can slow down, and spend more time per post , even tually growing up (or down ?) to 1 post per week like the big boys :)
(because seven days is the time it takes for one beat of the divine heart - and for a steemit payment)
And i'm also great at going off track and topic all the time on anything and everywhere at all. I'm not your structured phoneboy nor will i ever be.
Gud : the server,
its basically the lowest end lowcost machine i could assemblelooks like this
core
description: Motherboard
product: H110M-ITX
vendor: ASRock
physical id: 0
*-firmware
description: BIOS
vendor: American Megatrends Inc.
physical id: 0
version: P7.00
date: 10/27/2016
size: 64KiB
capacity: 6080KiB
capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
etc , etc etc ...
*-cpu
description: CPU
product: Intel(R) Celeron(R) CPU G3900 @ 2.80GHz
vendor: Intel Corp.
physical id: c
bus info: cpu@0
version: Intel(R) Celeron(R) CPU G3900 @ 2.80GHz
serial: To Be Filled By O.E.M.
slot: CPUSocket
size: 2800MHz
capacity: 2800MHz
width: 64 bits
clock: 100MHz
capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust erms invpcid rdseed smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp cpufreq
configuration: cores=2 enabledcores=2 threads=2
*-memory
description: System Memory
physical id: d
slot: System board or motherboard
size: 8GiB
*-bank:0
description: DIMM Synchronous 2133 MHz (0,5 ns)
product: CMV8GX4M1A2133C15
vendor: AMI
physical id: 0
serial: 00000000
slot: ChannelA-DIMM0
size: 8GiB
width: 64 bits
clock: 2133MHz (0.5ns)
for about 217 lines, describing about every chip on it in as much detail as they got, #linux really comes pre-packed with pretty much everything. Probably one of the main reasons why microsoft cheats by offering a version for people who don't know virtualbox so its 'part of windows' now without them having to do about any work on it but that's open source for ya, betcha fiver if they got the chance they would try patent it then prevent anyone else but them from using it. Sign of the 2000s and total Edisonian.
so it's REALLY bare minimum, all that stuck in a 17cm mini ITX case with a picopsu and two extra fans because there is none on top of the cpu (theres no room for that in the mini-case) multimedia mainboard , celeron-cpu , 8gb of ddr4 memory and a kingston suv4005 ssd drive ... 2 special low noise fans ... total price somewhere between 150 - 200 euros ...
To compare , hosting service with the people i used to have when i could PAY for my hobby is anywhere between €120-€240 / years , plus a domain name that costs about €50 too yearly. There's not much hobby left but i keep it around just in case. I dont need it to do much either , i test the load it gets me about 50-60 connnections from all around the world at once with no noticeable slowdown. Way more that i get, if i check the logs 90% is spiders, feelers and bots :)
which doesn't matter, because i really don't have anything to prove. I'm not phoneboy and i'm not a competitive psychopath, but frankly you could be sure this thing will NOT run windows and probably not even the latest android or iOS but it runs linux, like a breeze, the ssd with the fast ram and the special journalling filesystem makes it perfect for the task, the mobo actually makes working with GIMP just as perfect for quick photo manipulation or editing without having to boot up another server. Other than that i have a script that strips out the programs i dont use after install (like openoffice and stuff, theres no need for that to be taking up space) ... something you can't do with windows unless you resort to third party tools like DWS which i certainly have done since windows has one purpose : steam games, and well i started on gameguru but i had a total meltdown in december and for some reason i don't get beyond typing stuff, getting angry, ranting and running around in circles now, five months later still.
so when that is done and you can push the power button and you get the bios screen and then something saying like "insert disk" or something the likes of that you can be relatively safe you didnt break anything. If one component is broken it will highly unlikely start up ... barring the hard drive yes but thats the next (and easy) step.
over vim , not because its more powerful, au contraire most likely but because its lightweight and it colourcodes stuff like linux shell scripting or html or php just by itself, all standard and included. I'm not really the elite geek , i prefer functional (because i'm lazy ofcourse) and with my head in a twist i prefer not too much difficulty either BUT, if it was about performance then a version without the graphical desktop would CERTAINLY be a better choice
not very nice again, the markdown wont let me unless i leave an extra blank line ???!?
but it's not, now if you think *downloading* is an f-word because of all the noise around it in the past years, or you think a torrent is what terrorists use to kidnap children, then is probably best where you get off the boat. It's been associated through lobbying and mass media but the fact is most downloads on the internet are just that : downloads.
you can download this ISO file as its called just as easy on windows using bittorent or µtorrent or anything like that, or you can just download the whole file (which is never a good idea since if it breaks your http download will have to start over from scratch and also, verification is an option following the instructions
(same thing again with the markup??!? am i missing something here ? )
literally step-by-step you can just copy paste that in a terminal. That is if you think the https connection AND torrenting the file instead of http leaves much room for error. In a way torrents are like primevel forefathers of blockchain , only they have expirable data when people stop seeding because there's no "centralized" (lol) blockchain keeping it all together. But the fact is you can verify the download as it will be stored on many servers who all have the same file. Its not really possible to deviate there like that.
SO you got the ISO file, you stick it on a flash drive with some usb writer tool (ofcourse comes pre-packed with linux) you put it in a slot and press play on tape. Make sure you push that F11 or F2 or whatever it is (will say in your manual) yo make sure you get a boot menu and you choose to boot from said flash drive.
Installing it really doesnt need much explanation. Unless you go into special partitioning it comes down to entering your name, entering your password and pressing enter about 5 times or so.
Definitely not harder than winedos, certainly not Once it's done (which really doesn't take long on a system with an ssd drive and a decent internet connection. It will ask you to either "continue testing" or "reboot", after which you get a lot of text and one more stop when it asks you to remove the flash drive (in case of older systems where you can only set boot order in the bios i suppose, or maybe just in case.
sudo apt-get -y install default-jre
or
#nheqminer_cpu
sudo apt -y install git
cd $HOME
git clone -b Linux https://github.com/nicehash/nheqminer.git
cd nheqminer/cpu_xenoncat/Linux/asm/
sh assemble.sh
cd ../../../Linux_cmake/nheqminer_cpu
cmake .
make -j $(nproc)
sudo apt-get install cmake build-essential libboost-all-dev
or
sudo apt-get remove --purge libreoffice*
sudo apt-get remove --purge mysql-server
sudo apt-get remove --purge mysql-client
basically add all the stuff you would use thats not in there and remove all the stuff you don't
clean it up
sudo apt-get clean
sudo apt-get autoremove --purge
add rules
sudo ufw default deny incoming
sudo ufw default allow outgoing
#sudo ufw allow ssh
sudo ufw allow 8888/tcp #andromouse
sudo ufw deny ssh
whatever it is to keep your system as clean as possible and get the extra tools you frequently use (don't take this firewall config as a way to hack me please, i dont use andromouse anymore lol
stick all of it in one script and just run it right after install
all the programs are free ofcourse ... and in this case actually its best i first install the complete LAMP (as its called)
as per tfa, i couldnt say it any better ...
sudo apt-get update && sudo apt-get dist-upgrade -y
sudo reboot
(actually shouldnt be necessary since you just did that)
sudo apt-get install lamp-server^ -y
follow instructions
you can test php if you like but i suppose you will be doing that anyways since you're installing it
sudo apt-get install phpmyadmin -y
and test it (as per tfa i'm not just gonna copy paste that it's all there)
after which i personally like to remove mysql since i dont need it, i use flatfiles for everything, even if i had hundreds of entries the EXT filesystem and the fast ram wouldnt need sql for that to work without noticeable delay and since i'm not the security expert, ... well .. i never heard of a flatfile injection attack so far
thats virtually all there is to it, you're now set and ready to unleash your mad php skills
if you like you can do some tweaking in the config
protected folders for instance
the configuration files for apache are found in /etc/apache2 (under linux mint that is, i can't say for all the distros in the world since i dont know those)
the file you would want is in this case 000-default.conf, you need to edit it as superuser (sudo) or its read only
if you want a protected folder you just add these instructions, like xml-type or whatever its called at the bottom or in the middle or wherever as long as you don't put the in the middle of another set
<Directory "/var/www/html/thisiswheremypr0nlives/">
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
</Directory>
which means only people to have the password can access that folder (unless they have local access to the machine ofcourse but that goes without saying)
for which you would have to generate a htpasswd file , easy as goblin pie
or you can use aliases, for instance i put a lot of media outside the root folder, simply because most 'albums' never change so they don't need to be backed up completely every single time, while (when im actually busy with it) i like to backup the whole html folder once a month, preferably once a week. Its saves a lot of gigs and harddrive use
for instance
Alias /pussypics /var/www/mykittens/
<Directory /var/www/mykittens>
Require all granted
</Directory>
will alow you to use www.yoursitename.org/pussyics as a url to access a folder thats actually below the /html folder
you can muck it up as much as you like until you get it if you don't, just make sure to backup if you have relevant data lol
ah yea well you would need to euh
restart apache ofcourse (you dont have to reboot the whole system)
sudo service apache2 restart
if i remember correctly but there's probably 20 ways to do that and not all might work on all systems
after which i can go for another function in the same script
actually,
woke up at a nice hour ... had a decent walk with the cat, day is dawning to a neaw heap of shyte but i feel like the night was not completely lost