uxcatling the genie in the LAMP

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 assemble


so yes, before i try my hand at a second function for the cvs-php script i'll just do something i should have done weeks ago : reinstall the black box. So what's in it ? Quick lshw shows about everything right away in great detail. I'd paste the output but i don't think steemit has collapsable divs or parapraphs yet so that would be way too much text at once to scroll over.

looks 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 we start with one thing we need : assembling the pc. Something i won't go into here because frankly, if you know which side of the screwdriver is used for shanking people then it will be very hard to misplace parts in a computer, unless you try to force them in , in which case you're alredy wrong, there's only one way they fit, its REALLY hard to miss)
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.
next you get a flash drive, because dvd's are disposable, easy to ruin and frankly, totally passé. Linux even has a tool to check for counterfeit flash drives. Which means more or less the controller will tell the computer that theres more space than there actually is, which fools the computer into copying more than it can fit which actually results in REAL loss of data ... you might wanna check, and maybe i keep that for another post, i need the content after all
I have been with the *flavour* of linux mint with cinnamon desktop since about ubuntu started using unity (no clue what they're doing now actually since mint works fine for me) which is by no means THE best choice for this seeing as if i wanted to tweak performance like a minmaxer id actually remove the whole graphical interface completely. Now since i don't need it to be tweaked to the max and i actually use it for editing and i still much prefer

xed

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.
If you think linux is for eebul haxxers who will eat your pr0n pics and blackmail you then you should check the stats ... virii and trojans are written for popular OS and applications, since the method is to spread as many as you can and if only a few hundred hit you got a few 100 entry points already. This makes it VERY MUCH more likely for windows pc's and smartphones to be targeted then linux , simply because its not worth the effort, not just because of all the containment lol
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

here

(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.

Reboot, log in, click the little blue shield in the bottom right corner and update the system (most of it will have been done on install normally). If you're not sure what you're doing or you're not sure your hardware can handle the latest craze , leave the red things unchecked lol, green things are go, and yellow usually won't break your system either, contrary to windows (as usual) you have FULL control over the updates, whether to do them or which parts to postpone. If you have a post-install script (assuming you didnt brew your own version of the iso) you can run that to tweak your system further to your basic needs , stuff like
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

https://steemit.com/rudyardcatling/@rudyardcatling/catoverflow-svg-logo-through-php-or-pure-html-or-simply-png


actually, @ned and the boys, wouldnt it be nice to have collapsable sections for code-segments (a.o.) and svg tags which you can use to store graphics IN the text body without the need for external servers ? i think that would be really nice

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


Sort:  

great! so now your all setup to run your website :) ever heard of no-ip.com

the webstie has actually been running for a whlie but sinceits purely hobby its nothing but a collection of scripts and fotos, i always kept the url even if i couldnt afford the hosting anymore, cat.alleycat.be but i need the dmz setup still and im like 90% hayfever and 100% tired after up all night and taking out 2 armfuls of weeds that were lying in the rain but still powerful enough to make me scratch my eyes out, on top of the meter guy would be coming between 7:30 and 10 so i cant go to bed hahah, i guess the re-setup will be for tonight, i just disconnected it because it was making funny noises at always the same time of day, so since im not security xpert i just formatted it

its all just a hobby ofcourse, but who knows if i can get my head together ever :p

i heard microsoft bought Github should see an official announcement later Monday and also Less Than 1% of EOS Addresses Hold 86% of the Tokens,
or even better Just 10 Addresses Hold Nearly 50% of All EOS Tokens

Loading...

Enjoyed your post immensely.

It is obvious that you got the skills to pay the bills, buddy.

And I wouldn't be surprised to hear that you are running simultaneous, multiple nodes for various crypto and smart contract platforms in the near future...

Namaste, Jaichai

yes well, i don't think i'm worthy of that praise, we'll see what happens when it happens, i waded through too much mud lately to plan a year ahead but thanks :) ... i was kinda hoping of getting my own chain with a little idea but i'll see when i get to the point where its doable, if at all, see you around
the skills to pay the bills hm ... i'm gonna put that on a t-shirt, i don't think anyone here (in real life so to speak) has ever said that to me hahah thank you, sir

People focused on trivial shit ignore merlins (shamans) like you and me until it's too late..

Namaste, Jaichai

i like the metafor but the problem with us "merlins" as you so eloquently describe it is that wizard usually dont function very well outside their ivory tower ... if you go over classic fantasy you rarely find a wizard in a castle or a fortress, or in the open fields for that matter and the other thing with merlin was the only thing to beat him : the enchantress made him powerless lol ;-)

btw, (but the reply will have to wait until tonight) im toning down the number of posts for more reward / pp and maybe i bit longer and better lol, as my superwizardmath tells me the reward should actually be pretty much the same but slowly increasing so i get more time to react to comments which is something i actually didnt wanna mentio here but i am the wizard of chaos so thats something you'd get a lot with me.

What i wanted to aks (lol) was what you use Haskell for ? i heard of it but ive never actually seen it, stackoverflow is all about linux, c , and the 'fashionable' stuff like python and ruby (at the moment)
?
:) (i hope you see the glimmer of sarcasm in calling mysel a wizard there, .. i'm more like euhm ... well if you ever read the books of Amber by Zelazny ... im more like Random of Amber hahah)

Hi, we have voted on your post because you have posted your article to either food, recipe, recipes, cooking or steemkitchen #tag. Steemkitchen is a brand new initiative where we want to build a community/guild focused purely on the foodie followers and lovers of the steem blockchain. Steemkitchen is out of the conceptual phase and growing each day. We would love to hear your thoughts and ideas.

We are almost ready to Launch the first Decentralized Recipe and Food Blog Website that will utilize the Steem BlockChain and its community to reward contributions by its members.

Please consider joining us at our new discord server https://discord.gg/XE5fYnk

Also please consider joining our curation trail on https://steemauto.com/ to help support each other in this community of food and recipe lovers.

Kind Regards

@steemkitchen

Ps. Please reply “No Vote” if you prefer not to receive this vote and comment in the future.

why thank you , i'll try to cook something soon then :p

You got a 45.69% upvote from @dailyupvotes courtesy of @rudyardcatling!

Please upvote this comment to support the service.

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.033
BTC 63071.06
ETH 3121.31
USDT 1.00
SBD 3.84