Note, all set out below — is draft decision and just "for fun".
I still do not have a "normal" internet, but everything is moving to it, albeit slowly.
I signed a contract with the provider and brought home ADSL-modem, also known as Wi-Fi router, Huawei HG532e. From day to day I expect to connect internet, and now I decided to experiment a bit without the Internet.
Very quickly, without getting a grasp, I set up a home Wi-Fi network and connected SliTaz to it. I am the first, and so my IP-address 192.168.1.2, this is what I learned from an icon on the panel. Come on, connect to my home Wi-Fi via my new Android smartphone, and then enter the address 192.168.1.2! What do you think, I saw on the screen of my smartphone? Most likely you've seen this page. http://localhost/ I give permission to view this web page to anyone who is connected to my home Wi-Fi network. Enough to know my IP-address.
But it would not be so interesting. I can access the files of my netbook, I can listen to music or watch videos...
Because the displayed page is located at
/var/www/index.html, I created a folder
/var/www/content and put two symbolic links into it:
Video, leading to the folders of my hard drive that contains, respectively, the music and video. I added the appropriate links on the page. Now I can go through the folders and start listening to music and watching videos.
But the interface is awful uncomfortable! Page contains tiny letters and links that are too close to each other. In order to get a finger to exactly where I want it, I have several times zoom the page. And again, and again... In addition, files and folders are mixed, being sorted by name. Still, it turned out that you can not get the contents of a folder if its name contains spaces.
This means that I need to make my interface that is comfortable for me. With help of CSS I made links in the form of large buttons. In addition, I had to significantly change the script that displays the contents of the folder:
I added a folder with icons and now on the left of the button I see a icon, depending on the type of file (in truth, not from the MIME-type, and only from the file name extension). It is very convenient. The largest size of the icons available to me at that time (48px) was not big on the smartphone screen, the size was appropriate.
Twice the processing list, I display folders first, then files.
Next, I noticed that most of the music album contains cover art. I made it so that cover art displayed instead of the standard folder icon (if any).
Then I wanted to make automatic playlists. If a folder contains more than one music file, then immediately under the "up" should be a button that will open the playlist with all the music files contained in the folder. But after experimenting with files M3U and PLS, I could not listen to them on my Android-based smartphone. By default they are opened in Google Play Music, and a second later produce an error, it was not possible to play music. So while I did not pursue this possibility further.
Current state of this small project you can see in the attachment.
I have a question. I would be grateful to quick response. How to change the listening port of the server to the non-standard (for example, http://192.168.1.2:1234/ )?
PS. Please, download archive from here.