• 39 Posts
  • 48 Comments
Joined 1 year ago
cake
Cake day: October 8th, 2023

help-circle















  • Thanks all for your input !

    So yes /sdcard was /storage/emulated/0 and it’s a real sd-card.

    That was indeed formatted as FAT, I reformatted into EXT4 (from a desktop Linux) put the SD-card back into the phone and started the phone.

    Ive tried (in the phone)

    su
    chmod 777 /storage/emulated/0 #yes it's still mounted as emulated !
    stat /storage/emulated/0
    #...
    #Access: (0771)
    #....
    

    So I’m still blocked… any ideas ?

    Thanks.




  • Rick_C137OPtoAndroid@lemmy.worldHow terminal in, on Android
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 months ago

    Thank you all for your input… but it seem my question is still not fully answered…

    let me rephrase, I’m not looking to have a GUI to transfer files, but I would like to execute terminal command remotely (from my computer) to my android phone. Like SSH .

    So I’ve read that I can install a SSH server on my android phone… (If you know some’s (FLOSS), I’m all ears) Or if you know a better way than SSH I’m all ears too.

    Thanks.















  • Thank you all !

    Indeed setting execute perm on example, sub1, sub2, static

    The program/user have now access to the directory.

    In order words all the parents directory need at least execute in order to have access in the targeted directory…

    Now I gave 751 for static. Meaning than others (here nginx) cannot list the files within. But never the less it works
    the static files are appearing when requested (HTTP) but forbidding nginx to list the directory is changing something ? (performance/security)

    Thanks



  • Rick_C137OPtoWeb Developmentnginx, Default server do not works ! [solved]
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    6 months ago

    I wanted to have a default server that catch ~wrong DNS query to the server

    Solution

    I don’t know how to link to my previous lemmy post, so here it is again

    server {
        listen 443 ssl;
        server_name _;
        ssl_certificate /etc/nginx/ssl/catchall.crt;
        ssl_certificate_key /etc/nginx/ssl/catchall.key;
    
        error_page 404 /404_CatchAll.html;
    
        # Everything is a 404
        location / {
            return 404;
        }
    
        location /404_CatchAll.html {root /var/www/html/;}
    }
    


  • ok I’ve found something that ~works !

    	server {
    		listen 443 ssl;
    		server_name _;
    		ssl_certificate /etc/nginx/ssl/catchall.crt;
    		ssl_certificate_key /etc/nginx/ssl/catchall.key;
    
    		error_page 404 /404.html; #at /var/www/html/
    
    		location /404.html {internal;}
    
    		return 404;
    	}
    

    so i get the default 404 html from nginx. but not the one that I specified error_page 404 /404.html; any ideas ?