I wanted to try creating a web server in my spare time. It took me a night to get a Linux distro installed. The bios kept ignoring my USB drive, so I had to make a few changes in the bios settings to enable me to install a new OS over Windows 10 Home edition. I’d rather not risk ruining others’ bios, so I am not going to share what settings I modified.
I tend to be on my laptop often, so I tried to figure out a way to remote desktop into the Linux computer. Apparently there is a bug with the OS and Nvidia driver where I kept getting a blank screen. I should have known to try looking through existing issues to save the time spent trying to trouble-shoot it on my own. I tried AnyDesk app, but it’s looking like it’s not DPI aware because of the tiny text. So I installed PuTTY to allow me to SSH into the machine.
I proceeded to install Lighttpd, MariaDB, and MyPHPAdmin. I couldn’t get MyPHPAdmin to render without getting a 500 error. I tried a wide range of suggestions on how to fix it, until I decided to reboot the computer. MyPHPAdmin started to work.
Next was getting my laptop to hit the web server. It was struggle to figure out what was wrong, before I realized it was a firewall issue. I felt so proud when I saw the default website show up on my laptop knowing it’s hosting from my other PC.
I was showing it off to people and they asked if I could do rainbow text. I know people can do some really cool stuff with CSS, so I looked online to see if someone already had a solution. I used the following from https://w3bits.com/rainbow-text/:
.rainbow-text {
background-image: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red); -webkit-background-clip: text;
color: transparent;
}
Well, this is embarrassing, I don’t know enough of WordPress to try to demonstrate in this page. I tried to use the code editor to include the code in a tag, but it doesn’t like “-webkit-background-clip” part. If I take that out, the whole section is just a rainbow background. Hopefully the above link will continue to work and people can see the example there. If not, I will have to include this code in some other HTML page outside of WordPress for now.
The whole web server experience has been fun. I encountered quite a few roadblocks, but luckily I was able to find answers online. I will be forever amazed by people’s ability to work without any outside help in implementing new features that no one knows the answer to. I still need tutorials and code examples to implement stuff, then I modify the solution to do what I need.