Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

2 votes
1 answers
85 views
docker can't access to some tagged images
I'm facing with the following error using `docker` on my Linux Ubuntu system. ubuntu@ubuntu:~$ docker version Client: Docker Engine - Community Version: 28.0.1 API version: 1.48 Go version: go1.23.6 Git commit: 068a01e Built: Wed Feb 26 10:41:08 2025 OS/Arch: linux/amd64 Context: default ubuntu@ubun...
I'm facing with the following error using docker on my Linux Ubuntu system. ubuntu@ubuntu:~$ docker version Client: Docker Engine - Community Version: 28.0.1 API version: 1.48 Go version: go1.23.6 Git commit: 068a01e Built: Wed Feb 26 10:41:08 2025 OS/Arch: linux/amd64 Context: default ubuntu@ubuntu:~$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE yangsuite-one-container latest 604c66275985 7 weeks ago 2.7GB ubuntu 22.04 a24be041d957 3 months ago 77.9MB carlo-ubuntu latest 1245a5e87e81 5 months ago 608MB ubuntu_iperf latest 072ecc269646 7 months ago 387MB debian latest 617f2e89852e 7 months ago 117MB ubuntu 20.04 6013ae1a63c2 7 months ago 72.8MB networkstatic/iperf3 latest 377c80503c6d 12 months ago 82MB ios-xr/xrd-control-plane 7.11.2 58b64211c345 14 months ago 1.29GB ubuntu 18.04 f9a80a55f492 24 months ago 63.2MB ubuntu@ubuntu:~$ ubuntu@ubuntu:~$ docker inspect ios-xr/xrd-control-plane [] Error: No such object: ios-xr/xrd-control-plane ubuntu@ubuntu:~$ ubuntu@ubuntu:~$ docker inspect "ios-xr/xrd-control-plane" [] Error: No such object: ios-xr/xrd-control-plane ubuntu@ubuntu:~$ As you can see, when I try to access/inspect the tagged image ios-xr/xrd-control-plane I get an error. Which is actually the problem ?
CarloC (385 rep)
May 24, 2025, 01:09 PM • Last activity: May 24, 2025, 05:00 PM
0 votes
0 answers
35 views
Which MP3 tagging tool for Linux? -> For Album Folders (Alrady tried a lot)
I'm trying to sort my music by album into folders. I have already tried: - Picard - easytag - puddletag - kid3 - tageditor - eartag - beets - eyeD3 I think there's an option on puddle tag but i couldn't find it, if someone could help me with that or suggest me an alternative, I'd be very happy.
I'm trying to sort my music by album into folders. I have already tried: - Picard - easytag - puddletag - kid3 - tageditor - eartag - beets - eyeD3 I think there's an option on puddle tag but i couldn't find it, if someone could help me with that or suggest me an alternative, I'd be very happy.
Dr_ Buhu (1 rep)
Mar 1, 2025, 01:37 PM • Last activity: Mar 2, 2025, 07:36 PM
7 votes
3 answers
8499 views
Adding metadata to opus file from command line
I have a collection of opus music files that needs tagging and a text file containing the appropriate tags. I'm trying to accomplish the tagging through a Python script but I need a way to edit the metadata of the opus files. So a CLI program that can tag opus files. `opusenc`, which is part of `opu...
I have a collection of opus music files that needs tagging and a text file containing the appropriate tags. I'm trying to accomplish the tagging through a Python script but I need a way to edit the metadata of the opus files. So a CLI program that can tag opus files. opusenc, which is part of opus-tools doesn't accept opus files as input. There are a lot of graphical programs that can edit the tags of opus files but that doesn't work in this case. I was thinking ffmpeg could do it but the wiki page doesn't mention opus (or ogg or flac which also uses a "Vorbis Comment" to store metadata as I understand it). I assume my two suggestions would re-encode the files and I'm not sure if that will damage the sound quality. If so it would be preferable to use something that doesn't re-encode. I'm running Manjaro Linux.
user.S (271 rep)
Nov 2, 2018, 12:29 AM • Last activity: Feb 18, 2025, 09:10 AM
5 votes
2 answers
8737 views
How to tag any file on the Unix system?
I am trying to figure out the best solution to tag files in GNU/Linux. This is the particular thing I am trying to achieve. I download all my movies and save them on the external SSD. I sort them in two directories: "watched" and "to_watch". However, I want to assign attributes to each movie such as...
I am trying to figure out the best solution to tag files in GNU/Linux. This is the particular thing I am trying to achieve. I download all my movies and save them on the external SSD. I sort them in two directories: "watched" and "to_watch". However, I want to assign attributes to each movie such as (but not limited to): main actor(s), director(s), genre. That way, if I have a huge amount of files and I am in a mood to watch a movie directed by Scorsese, I can display only movies that contain a tag "scorsese". Here are some of the requirements that I have: - I want the solution to be independent of my local computer being used. For example, if I take my external SSD to my friend who also has the Unix system (and installs the required solution for tags), he's computer will also be able to interpret all of the tags generated by me. - I want to have a CLI option. - If I change the file's location, the tag(s) still stays with the file. - I can assign multiple tags to the file. - I can tag a file of any format. - I can tag a directory as well (not only files).
Vladimir (219 rep)
Dec 18, 2021, 07:16 PM • Last activity: Dec 6, 2024, 10:01 PM
4 votes
2 answers
2648 views
Replace file name with title in multiple audio files
I want a CLI or GUI solution for replacing file name of each file with the title of that file. I have multiple radio podcasts with file names that do not properly show the content. That is visible in media players under Title, but I have [problems seeing those in file managers][1], so I want to repl...
I want a CLI or GUI solution for replacing file name of each file with the title of that file. I have multiple radio podcasts with file names that do not properly show the content. That is visible in media players under Title, but I have problems seeing those in file managers , so I want to replace file names with titles. **I am looking for a Linux native tool**, while I know how to do this in Wine with programs like Foobar2000. **Edit after comment**: these are mp3 files. I can see the title data displayed in the info panel of Dolphin file manager.
user32012
Nov 20, 2016, 01:36 PM • Last activity: Nov 7, 2024, 08:23 AM
2 votes
1 answers
113 views
How to Manage a Local APT Package Mirror with Custom Tags Using Debtags
**Seeking Advice: Managing a Local APT Package Mirror with Custom Tags** Hello everyone, I'm looking for some advice and best practices on managing a local APT package mirror with custom tags. Here's the scenario I'm working with: **The Goal** I have set up the local APT mirror using `apt-mirror`, a...
**Seeking Advice: Managing a Local APT Package Mirror with Custom Tags** Hello everyone, I'm looking for some advice and best practices on managing a local APT package mirror with custom tags. Here's the scenario I'm working with: **The Goal** I have set up the local APT mirror using apt-mirror, and it works fine for me. But I need to organize the packages on my local APT mirror with custom tags, allowing client machines to install packages based on these tags. I came across the debtags tool, which seems to allow for the manual addition of tags to packages. However, I'm open to other suggestions or methods that might be more efficient or easier to manage. **Questions** - Has anyone implemented a similar setup using debtags? If so, how did it work out for you? - Are there any other tools or methods that you would recommend for managing package tags and installations? - How do you handle distributing tag information to multiple client machines efficiently? - Any tips on automating this process to reduce manual work?
Samadhan Fuke (21 rep)
May 23, 2024, 08:46 PM • Last activity: Aug 6, 2024, 02:00 PM
0 votes
0 answers
44 views
Fuzzy Search for filenames with synonyms and tags (auto generated)
Filesystem: Ext4 I create separate files for each topic. I have thousands of files segregated into 2 or 3 levels of hierarchical broad categories. I would like to search for these files efficiently. > For example, if I have a file Finance.md (not limited to markdown, e.g. Finance.tsv, Finance.txt, F...
Filesystem: Ext4 I create separate files for each topic. I have thousands of files segregated into 2 or 3 levels of hierarchical broad categories. I would like to search for these files efficiently. > For example, if I have a file Finance.md (not limited to markdown, e.g. Finance.tsv, Finance.txt, Finance.html, Finance.pdf), I would like following sample of tags to represent this file: > > loan, money, bank, investment, credit card, tax, Steuer (German word for Tax), tAX, Tax1 So, if I search with a particular tag, it shows all filenames that are represented by the tag. How can I do this? Moreover is there a software which could auto generate this tag for each file, and store it as a list that can be inspected and edited for future use? Also, may be when a new file is being created it would point that similar files based on the tags already exist. Would be nice to restrict this function within a particular parent directory and not the entire file system. If its not possible on ext4, I am open to virtual file system that could be enabled for a particular folder inside EXT4 filesystem. Also, I would prefer an opensource CLI tool, but GUI tools are also welcome.
Porcupine (2156 rep)
Dec 6, 2023, 12:33 PM • Last activity: Dec 6, 2023, 02:44 PM
0 votes
2 answers
1128 views
How to convert m3u to cue?
EasyTag can save playlists in m3u only, but cue is required. How can sed convert? It is required to glue all the lines with tags in the EXTINF block, rename EXTINF to TITLE, and move the line with the name of the mp3 file to the line above the TITLE. It should be taken into account that the processe...
EasyTag can save playlists in m3u only, but cue is required. How can sed convert? It is required to glue all the lines with tags in the EXTINF block, rename EXTINF to TITLE, and move the line with the name of the mp3 file to the line above the TITLE. It should be taken into account that the processed text may contain symbols CR and CR + LF. At least I failed to glue the paragraphs using sed '' s / $ // g '. Good day
dymdin (21 rep)
Oct 27, 2020, 04:33 AM • Last activity: Dec 1, 2023, 01:29 PM
0 votes
1 answers
1481 views
Change bridge vlan protocol from 802.1q to 802.1ad and packets start dropping
I have a bridge interface (`swbridge`) with `vlan_protocol=802.1q`. Sending tagged frame to it. I can see ARP request in Wireshark Successfully (ping request from another device), but when changing `vlan_protocol` to `802.1ad` I can no longer see packets in Wireshark. I've changed the bridge vlan pr...
I have a bridge interface (swbridge) with vlan_protocol=802.1q. Sending tagged frame to it. I can see ARP request in Wireshark Successfully (ping request from another device), but when changing vlan_protocol to 802.1ad I can no longer see packets in Wireshark. I've changed the bridge vlan protocol with this command:
sudo bash -c 'echo "0x88a8" > /sys/class/net/swbridge/bridge/vlan_protocol'
# ip -d -j -p link show swbridge

...
                "vlan_filtering": 1,
                "vlan_protocol": "802.1ad",
...
# uname -a
Linux 5.15.71 ...
# bridge vlan
port              vlan-id  
port2             10
swbridge          10
What I am trying to do is adding a double vlan tag to incoming packets, but I've stuck in this step. ### Edit This setup may not be practical, but it is what I want. I want to see QinQ packet (802.1AD) on Client's port2: enter image description here This setup is tested successfully on GNS3. Cisco device configs:
interface GigabitEthernet1/0/25
 switchport access vlan 10
 switchport mode access
!         
interface GigabitEthernet1/0/26
 switchport trunk allowed vlan 10
 switchport mode trunk
!
MySwitch vlan configs (before I go through why I get no packet):
# bridge vlan
port1             11 PVID Egress Untagged
port2             1 PVID Egress Untagged
                  11
swbridge          1
                  11
As you see we have a bridge (swbridge) that all ports are slave to. I've created a vlan int (with following code), but it didn't work too until I finally found that swbridge with vlan_protocol 802.1ad din't work at all (no packet goes through it).
ip link add link port1 name port1.11 type vlan proto 802.1ad id 11
And also note that I think required modules is present:
# lsmod
Module                  Size  Used by
8021q                  28672  0
...
SAMPro (257 rep)
Aug 20, 2023, 09:33 AM • Last activity: Aug 21, 2023, 12:18 PM
10 votes
4 answers
3785 views
Mass .flac --> .mp3 transcoding: How to write a shell script that preserves ID3 tag information?
In recent weeks I've gone from a fairly 'hands-on' approach to .flac --> .mp3 transcoding, to one that's far more 'set & forget'. The first step was to stop using a GUI front end (Audacity with a LAME plug-in) and instead use the method I outlined [here][1]. The second step was to find a bash shell...
In recent weeks I've gone from a fairly 'hands-on' approach to .flac --> .mp3 transcoding, to one that's far more 'set & forget'. The first step was to stop using a GUI front end (Audacity with a LAME plug-in) and instead use the method I outlined here . The second step was to find a bash shell script that would tell that command loop to work recursively, allowing directories with many subdirectories containing .flac files to be transcoded in one simple step. That answer was provided by a user at askubuntu.com. Now I wish to learn how to further refine things so that ID3 tag information is preserved. The methods linked to above strip ID3 tag data, leaving the bare minimum (i.e. only the title field remains). Can anyone teach me how to write such a shell script? *** The shell script has been updated thus: #!/bin/bash file="$1" flac -cd "$file" | lame --preset fast extreme - "${file%.flac}.mp3" id3cp "$file" "${file%.flac}.mp3" Doing find . -name '*.flac' -exec ~/bin/flac2mp3 '{}' \; in ~/Desktop/stack gives the following output: 01 - Amon Tobin - Chomp Samba.flac: done LAME 3.98.4 64bits (http://www.mp3dev.org/) Using polyphase lowpass filter, transition band: 19383 Hz - 19916 Hz Encoding to ./01 - Amon Tobin - Chomp Samba.mp3 Encoding as 44.1 kHz j-stereo MPEG-1 Layer III VBR(q=0) Parsing ./01 - Amon Tobin - Chomp Samba.flac: done. Copying to ./01 - Amon Tobin - Chomp Samba.mp3: done id3info for the original .flac and resultant .mp3 gives, respectively: *** Tag information for 01 - Amon Tobin - Chomp Samba.flac (i.e. nothing); *** Tag information for 01 - Amon Tobin - Chomp Samba.mp3 *** mp3 info MPEG1/layer III Bitrate: 128KBps Frequency: 44KHz The .flac definitely has tag information. I can verify this by opening up EasyTAG. EasyTAG refers to this as 'FLAC Vorbis Tag' but 'ID3 Tag' for the .mp3. Is this the problem?
boehj (2660 rep)
Mar 27, 2011, 11:39 AM • Last activity: Nov 12, 2022, 08:58 PM
5 votes
2 answers
6922 views
Command line tool to fingerprint and tag MP3
I have a large collection of MP3 files, accumulated over the years. The collection is intermittently tagged, and many filenames are totally nondescript as well (e.g. file01.mp3, file02.mp3, etc). The total collection is currently stored on a ubuntu 12.04 server. I am looking for a command line tool...
I have a large collection of MP3 files, accumulated over the years. The collection is intermittently tagged, and many filenames are totally nondescript as well (e.g. file01.mp3, file02.mp3, etc). The total collection is currently stored on a ubuntu 12.04 server. I am looking for a command line tool which can read the file, generate an audio fingerprint to identify the song (e.g. file01.mp3 -> Rick Astley's 'Never gonna give you up'), and populate the id3 tags. Being able to save album art or rename the file would be a bonus. There appear to be piecemeal tools which do what I need - though may of them are GUI driven. But I haven't found a single package which combines all of them.
Dave Joerger (61 rep)
Apr 24, 2015, 01:59 AM • Last activity: Aug 15, 2022, 10:48 AM
6 votes
1 answers
1812 views
Mapping metadata with avconv does not work
The way I understand `man avconv` (version `9.16-6:9.16-0ubuntu0.14.04.1`), the following command should convert `input.ogg` to `output.mp3` and carry over metadata: avconv -i input.ogg -map_metadata 0 output.mp3 It does not, however; `ogginfo` clearly shows the information (artist, album, title, .....
The way I understand man avconv (version 9.16-6:9.16-0ubuntu0.14.04.1), the following command should convert input.ogg to output.mp3 and carry over metadata: avconv -i input.ogg -map_metadata 0 output.mp3 It does not, however; ogginfo clearly shows the information (artist, album, title, ...) in input.ogg and id3info confirms that output.mp3 has empty (ID3) tags. The same happens when converting ogg to flac, or (presumably) any combination of the formats. Is my understanding of -map_metadata wrong? Is there a way to convert between formats and keep tags (without hardcoding like [this](https://unix.stackexchange.com/a/10186/17409)) ?
Raphael (2095 rep)
Jan 1, 2015, 05:23 PM • Last activity: Jun 5, 2022, 02:33 PM
6 votes
3 answers
10430 views
How to tag everything stored in a Linux filesystem?
How would I accomplish the following in Linux using the BTRFS filesystem? In Mac OS X El Capitan you can use tags to organize files. You can tag files and folders to make them easier to find. Tags work with all files and folders. You can add multiple tags to any file (or folder?). https://support.ap...
How would I accomplish the following in Linux using the BTRFS filesystem? In Mac OS X El Capitan you can use tags to organize files. You can tag files and folders to make them easier to find. Tags work with all files and folders. You can add multiple tags to any file (or folder?). https://support.apple.com/kb/PH22180?locale=en_US Of course, the purpose of these tags is for finding / searching by tag. Mac OS X Finder includes support for tags. In Linux, it's OK if I have to use command line tools to accomplish tagging and search by tags (and related functions).
MountainX (18888 rep)
Aug 24, 2017, 12:22 PM • Last activity: May 15, 2022, 08:11 AM
0 votes
1 answers
597 views
How do I reset the tags in the ranger file browser?
I have made a small script to list all my tagged files with ranger with ```ranger --list-tagged-files=*``` and put that list into another file (called todo). After a while I deleted and changed the name of some of the folders that still contained some tagged files. Then, when I ran ranger again, I s...
I have made a small script to list all my tagged files with ranger with
--list-tagged-files=*
and put that list into another file (called todo). After a while I deleted and changed the name of some of the folders that still contained some tagged files. Then, when I ran ranger again, I saw that all my tags were gone and I had to re-tag them. Now, when I run my script, not only my currently tagged files are shown, but also the files that resided in the old folders that are potentially not accessible to me anymore. Now, I would like to know how I can reset the tags in ranger, so that I can re-tag my new files again, but only see those in my todo-file. I've checked the man page, but I could only find some
and
commands that I cannot use on files and diretories that I can't access anymore. Thanks in advance :)
fruitiest Punch (11 rep)
May 2, 2022, 07:47 AM • Last activity: May 9, 2022, 09:29 AM
18 votes
4 answers
19121 views
command line tool to remove selected tags from mp3 files
Using [MP3 Diags](http://mp3diags.sourceforge.net/) to clean up my mp3 collection, I've discovered that in addition to the ID3v2 tag, some files also have a Lyrics3, ID3v1, and some an APE tag. Are there command line tools out there to remove all but the ID3v2 tag?
Using [MP3 Diags](http://mp3diags.sourceforge.net/) to clean up my mp3 collection, I've discovered that in addition to the ID3v2 tag, some files also have a Lyrics3, ID3v1, and some an APE tag. Are there command line tools out there to remove all but the ID3v2 tag?
mrtasktat (281 rep)
May 22, 2012, 09:38 PM • Last activity: Mar 19, 2021, 04:42 AM
0 votes
1 answers
2580 views
Music players that have 'Open CD' option and that show tracks' titles?
I should restrict this question to KDE, but the non-KDE-specific players may very well work. I am surprised how many Linux audio players (and video/multimedia players too) lack the simple option of accessing and opening a music CD that was inserted in the CD drive. [![open cd option in a player][1]]...
I should restrict this question to KDE, but the non-KDE-specific players may very well work. I am surprised how many Linux audio players (and video/multimedia players too) lack the simple option of accessing and opening a music CD that was inserted in the CD drive. open cd option in a player I mostly use Deadbeef and Clementine, and they do have this option, but they do not show the track names. What music players - have an "open CD" option? - show the tracks names in a playlist? **EDIT:**: Music players that do not have a clear way ('Open CD', 'Add CD' option, etc) to access a music cd in the drive: Bomi, Dragon, Guayadeque, Parole, Qmmp, Quod Libet, Tomahawk, Yarock.
user32012
Jan 12, 2016, 09:35 AM • Last activity: Jan 5, 2021, 11:21 AM
3 votes
2 answers
2063 views
How to remove the APE tag in an MP3 file?
An MP3 file can support three different types of tags (that I am aware of): ID3V1, ID3V2.4 and APE. I would like to know how to remove an APE tag in an MP3 file or files, since it is giving me headaches with my audio player. I am familiar with EasyTag and, more recently (today), with Mp3Diags; howev...
An MP3 file can support three different types of tags (that I am aware of): ID3V1, ID3V2.4 and APE. I would like to know how to remove an APE tag in an MP3 file or files, since it is giving me headaches with my audio player. I am familiar with EasyTag and, more recently (today), with Mp3Diags; however, none of them seems to be able to just delete the APE tag.
Carl Rojas (1139 rep)
May 22, 2015, 02:14 AM • Last activity: Jul 26, 2020, 01:38 PM
4 votes
3 answers
3613 views
MP3 tags Cyrillic chars
I have some `mp3` files with Cyrillic chars on file names and also on their tags. I'm using `audacious` to play them. See the file info below: ![enter image description here][1] Is it possible to change some encoding to show the contents correctly? **Âûñîêî** should be...
I have some mp3 files with Cyrillic chars on file names and also on their tags. I'm using audacious to play them. See the file info below: enter image description here Is it possible to change some encoding to show the contents correctly? **Âûñîêî** should be **Высоко**, I guess.
Sigur (2461 rep)
Feb 9, 2014, 03:19 PM • Last activity: Dec 10, 2019, 08:59 PM
1 votes
1 answers
354 views
Adding tags to mp3s for use in music players
I'm hoping this is the correct place to ask. Basically, I'm using **cmus** and have a little bash script to automate downloading, renaming and moving a mp3. However, cmus just lists the song name as its full path in the library (e.g.: `/home/user/music/genre/song.mp3`) I'd like to change this by add...
I'm hoping this is the correct place to ask. Basically, I'm using **cmus** and have a little bash script to automate downloading, renaming and moving a mp3. However, cmus just lists the song name as its full path in the library (e.g.: /home/user/music/genre/song.mp3) I'd like to change this by adding tags such as album, title, and artist to the mp3 files. I'm not sure if in Unix some files inherently have metadata like this or if you have to create the data in a specific way for the music player to be able to read it. I read the cmus man page and I don't see anything about how it reads tags or labels. Overall, through a bash script after reading an input, such as 'albumname' I'd like to know how to assign that input as the album tag of a mp3 file for a music player to use.
YungHepatitis (21 rep)
Aug 13, 2019, 01:41 PM • Last activity: Aug 13, 2019, 03:30 PM
2 votes
0 answers
751 views
Tagging outgoing packets with iptables
Is there any possibility to mark outgoing packets with iptables and recognize them by the response? I have a very simple outgoing rule: iptables -A OUTPUT -m conntrack --ctstate NEW,ESTABLISHED,RELATED --m owner --uid-owner XXX -j ACCEPT One way to accept response from this rule is just by accepting...
Is there any possibility to mark outgoing packets with iptables and recognize them by the response? I have a very simple outgoing rule: iptables -A OUTPUT -m conntrack --ctstate NEW,ESTABLISHED,RELATED --m owner --uid-owner XXX -j ACCEPT One way to accept response from this rule is just by accepting all incoming packets that has state ESTABLISHED,RELATED. iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT But I'm worried that can mess up my strictly configurated firewall setup. Instead I'm looking for a way to «tag»/«mark» this outgoing packet and then check the response. I know iptables has --set-mark but I don't think it work the way I want it to do. I'm looking for something like this: iptables -A OUTPUT -m conntrack --ctstate NEW,ESTABLISHED,RELATED -m owner --uid-owner 122 -m mark --set-mark 0x10 -j ACCEPT iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -m mark --mark 0x10 -j ACCEPT I know that marking happens in mangle table, but this is just a example to illustrate what I want.
BufferOverflow (353 rep)
Aug 2, 2019, 01:35 PM • Last activity: Aug 2, 2019, 05:35 PM
Showing page 1 of 20 total questions