PCManFM 1.2.5 in Lubuntu 18.04 – custom command to batch rename all files in dir incl. subdir to subdir001, 002,

PCManFM 1.2.5 in Lubuntu 18.04 here.

want to add a custom command to right click menu to batch rename all files in the selected dir, including all files in all subdirs, to subdir001, subdir002, …

For example, if a directory x has subdirs abc and def containing files a1.mp3, a2.mp3, a3.mp3 each, I want the files in abc to be renamed abc001.mp3, abc002.mp3, abc003.mp3, in the same order. Same for the def dir, except to def001.mp3, etc…

How do I do this? I was searching for solutions, but they all seem to be PCManFM version dependent.

WP install in sub-dir white screen

I read trough a lot of posts but I can’t find what I am looking for!

My WP moved from localhost to online, and now it shows a blank page (wp-admin is working normally). This is the structure: sub.domain.nl/dir1/dir2/WP-install

Something must me off with the redirecting I think after trying these: – removing all plugins – activate default template – change functions.php – turned on debug mode – played around with wp-config and .htaccess

codex.wordpress wasn’t much helpful either as it, like most posts about this, wants me to place files (like .htaccess) in the root of the site.

The WP install should only be living in the sub.domain.com/dir1/dir2/WP-install directory. Because there are other pages above: sub.domain.nl/dir1/dir2 (like a ‘site menu’).

The .htaccess:

<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?sub.domain.nl$   RewriteCond %{REQUEST_URI} !^/dir1/dir2/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$   /dir1/dir2/$  1 RewriteCond %{HTTP_HOST} ^(www.)?sub.domain.nl$   RewriteRule ^(/)?$   dir1/dir2/index.php [L]  </IfModule> 

Other try at the .htaccess (this does display the site, but all the links get duplicated like: https://www.sub.domain.nl/sub.domain.nl/dir1/dir2/index.php)

# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /sub.domain.nl/dir1/dir2/ RewriteRule ^index\.php$   - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /sub.domain.nl/dir1/dir2/index.php [L] </IfModule> # END WordPress 

How to bind mount a subdir of a RO file system as R/W, and keep it as R/W

I have a read-only root file system and I want to make a subdir (let’s say /home) writable. For this I do the following:

mount --bind /home /home mount -o remount,rw /home 

This works fine.

Now let’s assume I want to make a change in the root file system (outside of /home). I then do the following:

mount -o remount,rw / ...change some files... mount -o remount,ro / 

What happens now is that /home, which was writable, is now also read-only.

How can I avoid this? I would like to keep /home as R/W always regardless of what happens with the root FS.

Drupal 7 in root dir, Drupal 8 in subdir – can’t get to Drupal 8

In an odd situation, I have a site running Drupal 7 installed in the root directory. I want to install a Drupal 8 site into a subdirectory – but when I go to www.example.com/drupal-8/ I get redirected to the Drupal 7 page not found. Worth noting is that there is another Drupal 7 install in another subdirectory and that site can be accessed via www.example.com/drupal-7/. I imagine it may have something to do with .htaccess but have been unsuccessful thus far.

Most of what I have been able to find discuss subdirectory installs where they want to mask the subdirectory path OR discuss issues related to multi-site installations.