Categories
Development System & Network

How do I block news.google.com using my host file?

I have a problem – whenever my mind veers off, my fingers type in news.google.com and two hours pass by. The way I’ve usually dealt with this issue for other websites is that I add them to my host file with an entry like: 0.0.0.0 gamespot.com www.gamespot.com Then, when I try to visit the website […]

Categories
Development System & Network

How to distribute files via SFTP in read-only, without root permission, without password prompt and restricting directory access?

How can I distribute some files to everyone without password via SFTP protocol in read-only restricting directory access without the need of root permissions/chroot? I prefer to not use software that isn’t commonly available in GNU/Linux distributions. Openssh seems to require root permission for chrooting the directory.

Categories
Development System & Network

How to set up a wireguard IPv4 to IPv6 VPN?

My ISP currently does not support IPv6, and I’m trying to set up a way for all of my computers at home to have a public IPv6 address range. I’ve been following a guide on getting wireguard set up, and I’m able to get an IPv4 VPN set up. However for some reason I can’t […]

Categories
Development System & Network

How to structure php files on server

Sorry that this is a simple question but I have the following layout of a PHP files classes migrations public (inside is index.php, js, css) sample templates I wasn’t sure how to put this on my server so I put the files from public into my public_html folder which is what my cpanel already had, […]

Categories
CMS Development Wordpress

How add the image alt attribute in every image in the gallery shortcode

I want to add the alt attribute in the output of a shortcode e.g. Now the source code looks like this: <dt class=”gallery-icon landscape”><img width=”150″ height=”84″ src=”//” class=”attachment-thumbnail size-thumbnail” alt=”” srcset=”….. As you can see the attribute alt is empty. How add the image alt attribute in every image in the gallery shortcode?

Categories
Development Linux Ubuntu

Dnsmasq not working in port 53 but there’s nothing else on port 53

So I’m running an apache2 server and hostapd on a raspberry pi 2, with raspbian. When I try to run dnsmasq with dnsmasq.conf localhost=127.0.0.1 (among others settings I don’t think they are important now) it says dnsmasq: failed to create listening socket for port 53: Address already in use [fail] But I have tried lsof […]

Categories
Development Linux

Fedora 31 touchpad issues and Wayland?

Hi folks Im a new user to Linux comining from mac. HP envy x360 Ryzen 7, Radeon vega graphics. When it works it works well. But the touchpad and touch screen are glitchy and for some reason I cant update. Im completely in the dark here and just hope someone can help

Categories
Development Linux

Problem using ./ld-linux-x86-64.so.2 with newer glibc

I recently compiled a glibc newer than the one I keep on my system, with the purpose of running a pre compiled binary. When I try to run it with: ./ld-linux-x86-64.so.2 /media/34GB/Arquivos-de-Programas-Linux/palemoon-28.6.1/palemoon I receive: /media/34GB/Arquivos-de-Programas-Linux/palemoon-28.6.1/palemoon: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory Then I tried: ./ld-linux-x86-64.so.2 […]

Categories
Development System & Network

How to structure php files on server

Sorry that this is a simple question but I have the following layout of a PHP files classes migrations public (inside is index.php, js, css) sample templates I wasn’t sure how to put this on my server so I put the files from public into my public_html folder which is what my cpanel already had, […]

Categories
Cryptocurrency Development Ethereum

Metamask not showing localhost “7545”

A happy new year to you all. I am trying to make a decentralised application. Everything was going well until I came across a snag. Metamask does not show localhost “7545” which I need to connect the client facing application to the local network. I would be grateful for your guidance in this respect. Thank […]