Linux News

GUI wont load in Peppermint 11

Linux Questions - Fri, 08/12/2022 - 13:59
This is a new issue after 3 weeks of use. Loads to the shell with this:

"Peppermint OS GNU/Linux jerry-inspiron3847 tty1"

I can log on but don't know what to do after that. I'm somewhat familiar to the shell but need clear instruction.

Thanks for any reply.
Categories: Software and Help

How to Install Drupal on Ubuntu 22.04

Linux Today News - Fri, 08/12/2022 - 13:00

Drupal is a free and open-source CMS (Content Management System) written in PHP. Learn how to install Drupal on Ubuntu 22.04 here.

The post How to Install Drupal on Ubuntu 22.04 appeared first on Linux Today.

Categories: General News

javascript trouble comparing string with innerHTML

Linux Questions - Fri, 08/12/2022 - 12:07
I have the following javascript function:
Code: function chxMe(f)
{
    var t = document.getElementById("disable_" + f).innerHTML;
    alert(t);

    if (t == '<img src="/images/minus-circle.png">')
    {
        alert("Blah, blah, blah");
    }
 
} The alert(t) shows exactly: <img src="/images/minus-circle.png">, and I've added a screen-shot image of the alert box, just in case I'm typing what I want to see.

This code post is a bit confusing. I've had to add a leading / to the src= because otherwise this editor inserts "https://www.linuxquestions.org/questions" in my src= value. Refer to the image for the exact string.

Why does the 'if' never return true? I've also tried === as the comparator.

Attachment 39382
Attached Thumbnails  
Categories: Software and Help

GUI wont load in Peppermint 11. This is new issue after 3 weeks of us.

Linux Questions - Fri, 08/12/2022 - 11:50
This is a new issue after 3 weeks of use. Loads to the shell with this:

"Peppermint OS GNU/Linux jerry-inspiron3847 tty1"

I can log on but don't know what to do after that. I'm somewhat familiar to the shell but need clear instruction.

Thanks.
Categories: Software and Help

appending behavior of nohup

Linux Questions - Fri, 08/12/2022 - 11:06
i use nohup ./binary

and i did not slow down to understand

ignoring input and appending output to 'nohup.out'

and know what? I keep seeing the top part of an old nohup.out across different
folders that supposed to have different input parameters for a batch of run.
Since the top part shows an old run
and i ended up thinking there is a problem in my source code!

I meant, the default should overwriting the existing nohup.out unless the user
really want keep millions of confusing copies of nohup.out in the same file by doing
something extra.

Urg... I am unhappy with the default behaviour of nohup!
Categories: Software and Help

Malicious PyPI Packages Drop Ransomware, Fileless Malware

Linux Today News - Fri, 08/12/2022 - 11:00

Ax Sharma, Senior Security Researcher at Sonatype, discusses newly found PyPI packages that pack ransomware in this article.

The post Malicious PyPI Packages Drop Ransomware, Fileless Malware appeared first on Linux Today.

Categories: General News

Heroic Games Launcher 2.4.0 Released With Epic Overlay, Other Features

Linux Today News - Fri, 08/12/2022 - 09:00

Heroic Games Launcher 2.4.0 has been released with solid features for Linux gamers. If you haven’t used it yet, try out its new release.

The post Heroic Games Launcher 2.4.0 Released With Epic Overlay, Other Features appeared first on Linux Today.

Categories: General News

Have multiple USB<->RS2332 devices. Which /dev/ttyUSBx goes to each device?

Linux Questions - Fri, 08/12/2022 - 08:50
I have multiple USB<->serial devices. They use the FTDI chip. As each USB device is plugged in, they are correctly detected by the kernel and given a serial port, /dev/ttyUSB0, /dev/ttyUSB1, etc.

Devices can be plugged in any order, they can be unplugged, and plugged in again, etc. How do I map which serial port is which USB device? i.e. I want to ask the kernel which /dev/ttyUSBx device it assigned to a specific USB<->serial device.

This question has come up a few times on stackexchange. Using shell scripting, it can be done by following directory links in /sys/bus/usb/devices, looking for a line in uevent files, etc. I want to do this from C or C++, and was wondering if there's system calls I can use to query the kernel/driver, instead of searching directories for files, parsing links and open/reading/parsing text files.

I am familiar with libusb, so I already know how to get the list of USB devices and find my devices: bus #, device #, ID, manufacturer string, serial number string, etc.

Thanks!
Categories: Software and Help

ffmpeg can't assign requested address for http stream

Linux Questions - Fri, 08/12/2022 - 08:48
I'm writing a script to stream webcam video / audio to http or rtmp using ffmpeg. I managed to get the capture devices right and have them output to mp4 file, streaming to UDP also seems to work but I want to go with TCP. For some reason ffmpeg always complains about the connection and is unable to access the address.

Code: ffmpeg -f video4linux2 -i /dev/video0 -f alsa -i hw:2 -f mpegts http://1.2.3.4:5678 This instantly gives the error "connection refused". I understand I need to add the parameter "-listen 1" for http to work, I did so but now the error then becomes "cannot assign requested address". Some articles suggested using ffserver but that command doesn't exist, I take it the normal ffmpeg command acts as that now? Firewall settings and port forwarding in the router are configured and shouldn't be the problem.
Categories: Software and Help

Permanently raising open file limits in Alpine Linux

Linux Questions - Fri, 08/12/2022 - 08:41
I would like to raise the limit on the number of files a particular account can have open -- in Alpine Linux. Alpine is quite different in that regard from other distros, so guesses and methods which apply to other distros are not relevant, as far as I know.

I've tried adding a file /etc/sysctl.d/me.conf:

Code: me soft nofile 4096
me hard nofile 8192 However, that has been ignored even after a reboot,

Code: $ ulimit -Sn; ulimit -Hn
1024
4096 so I have clearly guessed Alpine's settings incorrectly.

Which file does Alpine user for that and what is the right syntax, to raise the limit on the allowed number of open files for a single account in Alpine Linux?
Categories: Software and Help

Who has eaten my disk space?

Linux Questions - Fri, 08/12/2022 - 08:22
Yesterday I did not manage to login from the graphical surface. A small window popped up saying: "no space for X-server". I logged in recovery mode and the "df" command showed the system partition was full. I've deleted log files, but no success. Actually, "df" showed a considerable difference (several hundred Megabytes) between the number of available and used blocks, but still 0% free.

Thus, after searching Internet I found the command "sudo tune2fs -m0 /dev/sda6". This helped. After rebooting the PC was working as usual. However, I tested again with "df" and it showed 73% in use. This means the system reserve space was 27% before! But who has set up this unusual high value? Not me, because I saw the "tune2fs" command first time now. Is there any other program, which arbitrary changes the system reserve space? Or perhaps this was already set up when Linux was installed, several years ago? Why an installation reserves 27% of disk space (the system partition is 40GB)?

Another question: I also tried to start up the Linux box from a live Linux pendrive. This happened flawlessly, but after the login I had no access to the old Linux' system partition. It has not succeded to mount that, although all other harddisk partitions were correctly mounted and accessible. What could be the reason for this? Perhaps, because the partition directory ("/") is the same as the live Linux system directory? What to do in this case? This means one can not delete unused files from the system using a live Linux disk?

Thanks,

John Brass
Categories: Software and Help

Ubuntu 22.04.1 LTS (Jammy Jellyfish) Is Now Available for Download

Linux Today News - Fri, 08/12/2022 - 08:00

Ubuntu 22.04.1 LTS is here to update the iteration of Jammy Jellyfish that launched in April 2022. Learn more about the release here.

The post Ubuntu 22.04.1 LTS (Jammy Jellyfish) Is Now Available for Download appeared first on Linux Today.

Categories: General News

Postfix masquerading problem

Linux Questions - Fri, 08/12/2022 - 07:12
I've installed postfix on a newly created alma 8.6 server. I followed the instructions from one of the websites and it works, no problem

I need to masquerade sender@office.myDomain.com to sender@myDomain.com

I added the line:

> smtp_generic_maps = hash:/etc/postfix/generic to /etc/postfix/main.cf

I added the line mail1@office.myDomain.com mail1@myDomain.com

I execute postmap /etc/postfix/generic and I get a warning
postmap: warning: /etc/postfix/main.cf, line 135: overriding earlier entry: inet_interfaces=$myhostname, localhost

Restart postfix and the masquerade doesn't work.

What am I doing wrong?
Categories: Software and Help

How to Update Linux Mint to Mint 21

Linux Today News - Fri, 08/12/2022 - 07:00

It’s not too hard to move from Linux Mint 20.3 to the long-term support of Linux Mint 21. But it’s not a walk in the park, either.

The post How to Update Linux Mint to Mint 21 appeared first on Linux Today.

Categories: General News

Infinite login loop, display unclaimed

Linux Questions - Fri, 08/12/2022 - 06:33
Hello,

Over a year ago I installed Elementary OS on an old Macbook Air from circa 2011. It worked fine, albeit slowly, for a couple of weeks until I performed a suggested nvidia driver update. I read stack exchange questions from time to time but none of the suggestions worked.

So here�s my first question to the LQ community:

* I am confronted to an infinite log-in loop: the system recognises my password, then goes blank a moment, only to return to the log-in screen.

* the system�s response to � sudo rm -r $HOME/ .Xauthority � is � rm: cannot remove �.Xauthority�: No such file or directory �

* the system�s response to � lspci | grep VGA � is � 02:00.0 VGA compatible controller: NVIDIA Corporation MCP89 [GeForce 320M] (rev a2) �

* the system�s response to � sudo lshw -c video � is � *-display UNCLAIMED � (followed by a raft of technical hardware description)

Question: how do I get the system to work again after this failed upgrade?

Thank you!

PS - I am no IT expert, but an average office package user trying to continue using older computers to avoid waste of our planet�s resources.
Categories: Software and Help

ssh connectivity issues

Linux Questions - Fri, 08/12/2022 - 06:28
Hi all,

when i tried to connect via ssh, then i get the below error
Code: Unable to negotiate port 22: no matching cipher found. Their offer: 3des-cbc If i pass ciphers to the ssh command then I get
Code: Received disconnect port 22:2:  Client Disconnect Can anyone suggests?
Categories: Software and Help

Dell Latitude D600 & D610

Linux Questions - Fri, 08/12/2022 - 06:20
Morning,

Cleaning out my old computer area I found my Dell D600 & D610. They are running XP professional.

Any suggestions as to what Linux I should install?
Categories: Software and Help

How to Check Video Resolution Width(W) and Height(H) in Linux

Linux Today News - Fri, 08/12/2022 - 06:00

To find the width and height of the video from the terminal, you just need to have a prerecorded video and the FFmpeg package installed on your system.

The post How to Check Video Resolution Width(W) and Height(H) in Linux appeared first on Linux Today.

Categories: General News

Disable root access directly

Linux Questions - Fri, 08/12/2022 - 04:43
I am new to the docker. I am trying to disable direct root login into the container. For that I did few things but unable to fix it any input will help a lot

I can login directly from user and user into the sudoers but when put user as Root then I login directly

root@ip-10-11-175-238:~# docker exec -it 9ec767e2c4ae /bin/bash
dpant@9ec767e2c4ae:/$ ls -la /root
ls: cannot open directory '/root': Permission denied
dpant@9ec767e2c4ae:/$


root@ip-10-11-175-238:~# docker exec -it --user root 2fba98d9d60e /bin/bash root@2fba98d9d60e:/home/ubuntu#

I can obstruct the Root from the first option where I have set password on root and also on the user which sudo access, But when I try from Root then all everything is open for me I want to deploy the container on other environment but no one can access it

Regards Dk
Categories: Software and Help

How to enable TSX ( Intel transactional memory feature ) in SuSE Linux

Linux Questions - Fri, 08/12/2022 - 04:40
There is an request from SAP application team to enable TSX ( Intel transactional memory feature ) in one of our SuSE Linux server. Can someone help me how to enable this feature in the OS level. SAP notes attached for reference




With thanks,
Madhan
Attached Thumbnails  
Categories: Software and Help

Pages