The officially official Devuan Forum!

You are not logged in.

#851 Re: Desktop and Multimedia » [SOLVED] Delete track number from music file names » 2021-11-09 18:44:43

ralph.ronnquist wrote:

The -exec option variant for find that ends with ';' rather than + lets you use {} more freely, and then perhaps the following would work

find . -type f -name '[0-9][0-9] - *' \
    -exec sh -c "file-rename -v 's/^[0-9][0-9]\s-\s//' '{}'" ';'

That proposal causes 3 times a: "1: Syntax error: Unterminated quoted string". Tried to fix this, but failed. No idea what exactly caused that to fail. Fiddeled with the quotes around the {}, the ; and the file-rename string.

ralph.ronnquist wrote:

or almost certainly (and with less python):

find . -type f -name '[0-9][0-9] - *' \
    -exec sh -c 'X="{}"; mv "{}" "${X#*- }"' ';'

and this one does the job! Thank you, never would have got that together. This line also works on both ways a ' is quoted in the file names on the terminal line:

"Chris Rea - Let's Dance.wav"
'Dr. Hook & The Medicine Show - Sylvia'\''s Mother.wav'

Again, many thanks for this solution.

rolfie

#852 Re: Desktop and Multimedia » Devuan 4 Chimaera / SLiM and WiCD » 2021-11-09 07:42:13

Also SLIM is no more maintained since 7 or 8 years now. Its sort of deprecated. Lightdm is working fine (for me at least).

rolfie

#853 Re: Installation » Two more issues on new Devuan 4 install » 2021-11-09 06:56:55

inxi is in the normal Devuan repository.

rolfie

#854 Re: Desktop and Multimedia » [SOLVED] Delete track number from music file names » 2021-11-07 21:32:10

hemimaniac wrote:

would this work for ya?

http://www.guyrutenberg.com/2009/01/12/ … using-sed/

Or if you would like a GUI , I use gprename all the time, with gprename you may need to also install ssed as for some reason it doesn't get pulled automatically

Well, different approach. I first want to try if I can get my approach to work. Thank you anyway.

rolfie

#855 Re: Desktop and Multimedia » [SOLVED] Delete track number from music file names » 2021-11-07 21:25:41

One step further, replaced rename with file-rename from the Debian package rename. It now reads

find . -type f -name '[0-9][0-9] - *' -exec file-rename -v 's/^[0-9][0-9]\s-\s//' {} +

A direct

file-rename -v 's/^[0-9][0-9]\s-\s//' '01 - Canned Heat - On The Road Again.wav'

renames the file as desired. So I have a problem with the hand-over of the filenames from find to file-rename. And here I am stuck. I have too little insight into this topic.

rolfie

#856 Desktop and Multimedia » [SOLVED] Delete track number from music file names » 2021-11-07 20:47:21

rolfie
Replies: 9

Got a lot of music data on my file server. Before finding out that an easy duplicate recognition isn't possible, files were ripped beginning with the track number from the CD. I stopped this later on and want to clean up now. Example:

01 - Canned Heat - On The Road Again.wav

My goal is to remove the track number from the file name for all files having this in the current directory. Example:

Canned Heat - On The Road Again.wav

From digging through man pages and several threads on many forums, I finally came up with this approach:

find . -type f -name '[0-9][0-9] - *' -exec rename 's/^[0-9][0-9] - //' {} +

The find part works, with the -print option it lists all the files in the test directory I have set up. The rename part has a problem, and I can't figure out what's wrong. I have learned that compared to Debian the rename utility isn't part of the util-linux package but a perl application that has to be installed separately. How is the relation between regex and a perl-expression?

In any case, above line in a script does not seem to do anything, the script terminates without action, output or error. What ido I need to change?

rolfie

#857 Re: Installation » Looking for advice for upgrading from Ascii to Chimaera. » 2021-11-06 20:03:51

A direct upgrade isn't advised and possible (if you don't want to break your server).

Either stepwise to Beowulf first with enough reboots to digest the changes (read the release notes), or a complete new installation is required to achieve what you want.

rolfie

#858 Re: Installation » [SOLVED] change from cdrom to USB flash drive in sources.list » 2021-11-04 21:59:02

What for? Your approach isn't useful. Delete that line(s) and you're done.

rolfie

#859 Re: Installation » How to have updated firefox-esr in Chimaera? » 2021-11-02 19:55:46

Why all this hickup - just checked my 78.15.0ESR: the upgrade to 91.3.0ESR is possible.

#860 Re: Hardware & System Configuration » [SOLVED] Display / monitor / mouse freeze after hours - Chimaera, not ASCII » 2021-10-31 18:08:11

Try to replace slim (no more developed) with lightdm. I am running that on a 3700X.

rolfie

#861 Re: Installation » Devuan was working ok, but now no internet » 2021-10-29 19:52:06

Mike-thinky wrote:

ahh, adding /sbin/blkid now works,

so sudo blkid gives command not found,
but sudo /sbin/blkid works!

Explanation: please read the Chimaera release notes https://files.devuan.org/devuan_chimaer … _notes.txt, especially the section about su (not a Devuan specific problem).

rolfie

#862 Re: Installation » Devuan was working ok, but now no internet » 2021-10-28 18:48:54

Mike-thinky wrote:

How do I display the uuid's of the disks?

# blkid

#863 Re: Devuan » Test Testing version » 2021-10-26 19:57:32

Devuan is free from systemd. Thats the purpose.

#864 Re: Installation » [SOLVED] sysvinit, runit, or OpenRC? » 2021-10-22 19:10:15

I am using openrc since ASCII. Works fine.

My first encounter with runit in a virtual machine a while ago was frustrating. Didn't realy work. Though there are people that are using it with success now. Maybe its time for another try.

rolfie

#865 Re: Installation » How to have updated firefox-esr in Chimaera? » 2021-10-22 19:07:26

What is wrong with firefox-esr 78.15.0? When it is no more supported Chimaera will update to the next release.

Anyhow, I am using firefox-esr downloaded from upstream. It will tell me when the Upgrade to 91.2 is due. I can wait.

rolfie

#866 Re: Other Issues » Devuan on Virtualbox share not working » 2021-10-18 19:38:00

You have to define the shared folder in the VBox Manager and then you need to mount it within Devuan. Refer to VBox manual.

#867 Re: Other Issues » Devuan on Virtualbox share not working » 2021-10-18 19:07:56

Not a Devuan problem. What exactly do you want to achieve, and what have you done as preparation?

#868 Re: Hardware & System Configuration » Chimaera upgrade - Printing » 2021-10-18 17:18:35

Good that you got it working again the oldfashioned way.

In my private environment at home, I did disable IPP in the printer because it interfered with the classic ppd and did not allow to modify the options. This was on a Kyocera P6230 laserprinter a bit more than a year ago. The PPD control survived the upgrade from Beowulf to Chimaera.

rolfie

#870 Re: Other Issues » Updated inxi, have issue » 2021-10-17 13:28:09

Your update bypassed the apt database. Synaptic looks at the database and not at the application.

rolfie

#871 Re: Installation » no ext3 and ext4 option for formatting partitions during installation » 2021-10-16 18:27:04

pblanker wrote:

... and installed in expert mode. the only options for the file system were ext2, fat, fat32 and that was about it, as far as I can remember ...

This happens if you skip the step "load components". These "components" supply the required modules for the full installation.
Example: https://dev1galaxy.org/viewtopic.php?id=4509&p=2

rolfie

#872 Re: Installation » [SOLVED] Apt-get update error during Chimaera upgrade » 2021-10-15 16:21:40

The recommendation is to exclude all foreign sources from the upgrade. In your case Earth and Skype and maybe Zoom.

Once the upgrade is done you may take care for the other stuff one by one.

rolfie

#873 Re: Other Issues » slow shutdown: remaining crypto disks busy failed » 2021-10-15 16:17:07

Well, I have several luks2 encrypted LVMs with ext4/swap running under Chimaera, no delays. As well upgrades from Beowulf as native installs.

What do you mean by overlay fs?

rolfie

#874 Re: Devuan » As Debian 11 moves closer to Devuan. Is there any reason to stay on De » 2021-10-12 12:25:02

Tatwi wrote:

There's something to be said about purpose built devices; I would prefer to use Devuan over Debian, because Devuan is supposed to work 100% fine with SystemV Init. I know I won't need to fight with the system just to get it work and that means a lot to me!

For me, it's not about "not using ____", it's about continuing to use that which "ain't broke and don't need fix'n"!

Same for me,

rolfie

#875 Re: Other Issues » slow shutdown: remaining crypto disks busy failed » 2021-10-03 09:51:14

Well, the symptoms are similar to the ones I had with ASCII and Beowulf. Encrypted LVMs were not shut down correctly.

When you see this problem with Chimaera I guess something along the cryptsetup packages is missing on your machine. I have installed:

cryptsetup
cryptsetup-bin
cryptsetup-initramfs
cryptsetup-run
libcryptsetup12
udisks2

HTH, rolfie

Board footer

Forum Software