Skip to content

Tag: linux

ActiveMQ basic JAAS authentication configuration

I am trying to configure simple JAAS authentication for ActiveMQ. I have created a xml called activemq-jaas.xml as: The other configuration files are: login.config users.properties groups.properties I started the ActiveMQ with command ./activemq start in linux terminal. But I cannot login with guest/guest cre…

pci device info access in linux from userspace

I want to access the pci device tree information from user space programatically. Like the root complex and the devices connected to it. How can I do it please let me know. Regards, Pradeep Answer libpci or pcilib (on which lspci is based) uses sysfs, procfs, and possibly other means to access PCI information…

Grouping some lines into one

I have an hosts file and I need to group multiple lines into one, using Linux standard commands; starting with this: I want this: The ip address is always the same, and I can easily remove it to simplify the work; the file can reach 30K+ lines, so my goal is to reduce its size using as few resources as