Recent Questions - Unix & Linux Stack Exchange |
- How do I get nmap to list all devices connected to my ATT wifi?
- midnight commander view mode: how to select all text
- Calling Ansible tags in a specific order
- Confused On Colors Xterm Vs Zsh - How to set Xterm without breaking Zsh colors?
- Ip address of wireless adapter is not showing on ifconfig
- Kubuntu Plasma Login screen is frozen when switching users
- what permissions should have /boot directory?
- How to change a symlink (viewed as a text file) to the content of that text file (i.e. "remove symlink bit")?
- nmcli - command line means to delete all wifi / wlan0 connections
- What are the software tools to view the video on Android from the Linux server?
- How to install Linux from a UEFI bootable, overwriting an existing Windows installation
- Make a link to external file behave as the file itself (i.e. delete the link target, not the link)
- sed replace with exception list
- How to print a '@' in a linux shell?
- Merging every nth files in a folder and delete used one
- Syntax to select a group of files based on extension?
- How to catch and break on a Fortran 90 runtime error in GDB?
- Interpretation of Open Group Base Specification's description of exit()
- WSL Run Service at Start
- Timed out waiting for device dev-disk-by\x2duuid-C829\x2dC4C1.device
- awk search and replace string in a specific column of CSV file
- Add custom menu action to Caja file manager
- Why does my laptop screen dim after a few seconds on battery power?
- Debian 9 XFCE fresh install, nothing but wallpaper after login
- Unable to restart lsyncd after killing it
- Why does urxvt appear different when run through x-terminal-emulator?
- Systemd service creation of Prometheus and Node Exporter
- What's the difference between gzip and compress?
- how to nsupdate remotely?
How do I get nmap to list all devices connected to my ATT wifi? Posted: 19 Aug 2021 10:01 AM PDT Using Ubuntu, I attempted to list all devices connected to my wifi with Per the output above, there appears to be 5 devices with internal IP addresses currently connected. However, the browser-based GUI for the router correctly shows 8 additional devices connected that do not appear on the nmap output such as Pinging 192.168.1.83 produced no results either even though there is definitely an active device connected with that IP. Why is there a difference between nmap's output and the browser view of the router as well as pinging it? |
midnight commander view mode: how to select all text Posted: 19 Aug 2021 09:58 AM PDT I am using midnight commander. To view the content of a .txt file I press F3. Then I can select text holding Shift + selecting with mouse: But I would like to select the whole content of the file and it is not possible to scroll while I am selecting with the mouse. Is there a "select all" option in that View mode? |
Calling Ansible tags in a specific order Posted: 19 Aug 2021 09:45 AM PDT I have an Ansible job where I am calling multiple Shell scripts...and each shell script has its own tag. So, I have 5 scripts in total with 5 tags. My Tag 1 & tag 2 are the first that has to go and then only the running the next 3 tags would make sense. If someone runs tag 3 directly, I want the pipeline to fail. How can I add a dependency for the tags 3,4 & 5 that tags 1 & 2 has to run 1st. Please advice. My current .yml file is like this. |
Confused On Colors Xterm Vs Zsh - How to set Xterm without breaking Zsh colors? Posted: 19 Aug 2021 08:52 AM PDT I am confused by the color settings for xterm (or uxvt in my case but uses the same) verus the zsh PROMPT colors. If I change the xterm colors then it changes the zsh prompt colors and I think it makes the zsh prompt colors inaccurate. How do I handle this situation? How do I set the xterm colors where they do break the zsh prompt colors? Example Example |
Ip address of wireless adapter is not showing on ifconfig Posted: 19 Aug 2021 08:50 AM PDT |
Kubuntu Plasma Login screen is frozen when switching users Posted: 19 Aug 2021 08:35 AM PDT I have two users sessions running. I can switch between users without error most of the time. But after a while, after I try to switch users, on the login screen for the user I am swtiching to, the login screen is frozen solid. The cursor works on the frozen login screen, but nothing else works. I can not login even if I try to do with without the UI reflecting my typing. If I hit ctrl+alt+F1, I can switch back and login in to the other user, but if I try to switch to the frozen user, nothing happens. I am using a Radeon rx580 video card... Operating System: Kubuntu 20.04 KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 Kernel Version: 5.11.0-27-generic |
what permissions should have /boot directory? Posted: 19 Aug 2021 08:57 AM PDT I have been reading a linux security paper that says we should only give root access to /boot directory. What does mean, in terms of permissions, 'only root access to /boot directory'? If I set up my /boot to 700, a lot of files inside that dir which give permissions to root group and others wont be able to be accessed anymore? (in my case, 294 files has at least read permmission set to others). Should not /boot directory be set up at least to 755? but in this case, it's a world access not only a root access? Actually the question should be: are there some processes other than root which need access to /boot directory? how can I check that? /var/log/boot.log does not give any answer to that So far I understood that a computer starts that way: mother bios/efi checks the hardware and looks for an mbr/boot media.Then it loads the boot loader and gives boot control to it. the boot loader then loads the kernel and gives boot control to it. The kernel starts services (among other things). Does all this performed by only root or by another user or another root group member as well? The same idea goes for /boot/grub2 directory. This directory has got, by default, permissions set to 700: and there are numerous files in this dir: but only 2 of them are not accessible to others so why set /boot/grub2 up to 700 which is incoherent in view of permissions that have been set up inside that directory ? Tell me what I have missed there please. Thanx folks! |
Posted: 19 Aug 2021 08:59 AM PDT In ubuntu Linux, I have a bunch of abominably broken symlinks like: They are the result of an attempt to replace all symlinks in a project with a comment and a source call (" One theoretical fix would be to just remove the "symlink bit" and keep the resulting textfile as is, but I see no way of doing that ( Another fix would be to manually create a new file, with contents as the above as taken from the |
nmcli - command line means to delete all wifi / wlan0 connections Posted: 19 Aug 2021 09:53 AM PDT I'd like to delete all active or inactive wifi connections on interface wlan0, with the intention of having a known-empty clean slate to set things up. Is this possible? I was hoping for something like 'nmcli connection delete device wlan0' or 'nmcli dev show wlan0 delete..' but no such luck. Or is there a means to do this with 'iw' ? I found a means to delete the interface, but not connections. Thank you for your time. |
What are the software tools to view the video on Android from the Linux server? Posted: 19 Aug 2021 07:46 AM PDT I have a Debian 10 remote server on the local network. On this server there is a directory What are the programs for this purpose for both sides: client (Android) and server (Linux)? Preferably open source. P.S. I can install the server in Docker Container (in my Debian 10 local network server) if necessary. |
How to install Linux from a UEFI bootable, overwriting an existing Windows installation Posted: 19 Aug 2021 09:54 AM PDT I am on an older netbook that cannot handle Windows 10 (nor Windows 11) anymore since the 64 GB fixed flash memory cannot handle the data. It is a Medion Akoya netbook, model number: MD 61900, model: E2228T. Obviously, this question is not bound to just this special choice of hardware. There are 50 similar questions on Stack Exchange, but just because of that, I could not find a clear help of how to over-install Linux on a Windows installation using UEFI and a Linux bootable. Thus: how to really just do it? |
Make a link to external file behave as the file itself (i.e. delete the link target, not the link) Posted: 19 Aug 2021 07:49 AM PDT I have Arch installed on an SD card (F2FS) that is rather sparce in terms of disk space. There is also an original laptop's NTFS Windows SSD drive that has much more free space and is much faster. I would like to move large files of Linux packages installed with pacman or yay (AUR) to the mentioned NTFS drive, so that they would seamlessly be accessible by the Linux system and applications as the target files themselves. I could simply move the files and put soft links instead, but this would make the system maintained in manual-only mode (i.e. once the package files are rewritten upon package upgrade via a package manager, the links get replaced with the actual files of the updated package; once the file is deleted, it is only the link that gets deleted, with the target file still wasting space on the NTFS drive etc). Hard links do not meet these feature set requirements: they do not work with different filesystems, and they make the file exist unless the last hard link is present, that is opposed to what I actually need. I could do this in Windows 10 with junction links (I guess?), but is there any proper Linux equivalent to this functionality? |
sed replace with exception list Posted: 19 Aug 2021 10:20 AM PDT I need to replace strings in many large textfiles but I have a list of exception strings (200+ items). For example: My current regex looks like this: The content of the file looks like this: this is the content of the file after execution: But I want the content to look like this: since dankine and dankzwd are in my exclusion list How can I accomplish this? Thanks and kind regards, Jan |
How to print a '@' in a linux shell? Posted: 19 Aug 2021 09:25 AM PDT I have a problem with a remote server having a keyboard layout in console different from my physical keyboard I need to copy a '@' letter to be able to paste in a browser forum The server is in a VPN without external access, so a simple googling for 'at symbol' doesn't works. Is there some trick to have a @ printed in the console so I can copy and paste it? Is there a well-known file to simple do a |
Merging every nth files in a folder and delete used one Posted: 19 Aug 2021 08:55 AM PDT I have folder with 30000 txt files, each file is 50-60kb. I need to merge them into 2.5mb txt files.And remove the one that was merging. My code would need to be something like: |
Syntax to select a group of files based on extension? Posted: 19 Aug 2021 10:29 AM PDT I have several files in the following form, Group - 1 Group - 2 In order to remove only files, with extension |
How to catch and break on a Fortran 90 runtime error in GDB? Posted: 19 Aug 2021 08:47 AM PDT Is it possible to have Fortran 90 break at a runtime error in GDB? I show here a MWE for a simple routine test.f90 which throws an out of bounds error: I compile as follows: Which, mostly as expected, gives the backtrace here: When I run in GDB I set How can I get GDB to catch errors like this and start debugging from the culprit line? Obviously it's easy to identify useful break points in smaller scripts but in a larger legacy Fortran code it can save a ton of time and effort. |
Interpretation of Open Group Base Specification's description of exit() Posted: 19 Aug 2021 08:45 AM PDT In the
It is my fault for sure, but I cannot understand (and recognize the syntax structure!) of the statement in boldface. May I ask for somebody to rephrase and explain what is the meaning of this statement? Possibly with an example. |
Posted: 19 Aug 2021 08:51 AM PDT I'm honestly not sure if this is an issue with WSL or I'm just doing something wrong for Ubuntu in general, but I cannot get the cron service to run at start on my WSL system. It starts just fine with: But it doesn't start at boot even after: Version: |
Timed out waiting for device dev-disk-by\x2duuid-C829\x2dC4C1.device Posted: 19 Aug 2021 08:46 AM PDT I had formatted efi partition and installed windows again. I have dual boot Windows and Linux, then I installed the grub bootloader again from a live usb using these commands: Then I unmounted all of this again. When I tried to boot, I got this messages: and it turns me into emergency mode. How can I solve this problem? |
awk search and replace string in a specific column of CSV file Posted: 19 Aug 2021 09:07 AM PDT I have a csv file with 17 columns and million rows. I want to search for a specific string in the 16th column and replace all the instances of that string with another string. Since my rest of the program uses bash script, I thought using awk instead of Python search & replace. My current OS is Rhel6. The following is the sample output of my data: In this the 16th column is Market, wherein I want to change the I tried the following code: This runs without any output, but the string |
Add custom menu action to Caja file manager Posted: 19 Aug 2021 10:11 AM PDT There should be a tool to create such actions in Caja (default file manager in Mate desktop environment), installed with But it doesn't seem to work, as indicated here. In my case, this tool is in the start menu, but it doesn't launch (Mint Mate 18.3, based on Ubuntu 16.04). How to create such actions manually? This is posted in order to provide an answer. |
Why does my laptop screen dim after a few seconds on battery power? Posted: 19 Aug 2021 10:02 AM PDT It isn't actually locking or going to sleep. After a few seconds, the screen just clicks to a slightly darker setting. I have looked through dconf editor and the settings menu, and can't find any. Someone on here asked a similar question about Fedora, but it was a system update that fixed it. I'm running Debian 9, so that won't work for me. Below I will include a screenshot of my dconf power menu: To be clear, this issue doesn't plague me when the laptop is plugged in. But when it's unplugged, the computer gets noticeably darker after just a few seconds of idling. Also, the screen brightens back up as soon as I touch the mouse or the keyboard. Solved, kind of: While dealing with some other issues, I rebooted my computer a few times (something I hadn't done since messing with dconf) and the issues seems to have gone away. So perhaps it was just necessary to reboot after editing? |
Debian 9 XFCE fresh install, nothing but wallpaper after login Posted: 19 Aug 2021 08:08 AM PDT I successfully installed debian 9 as a dual boot with windows 10. I chose automatic partitioning of a free space of 37 gb next to the windows partition. A swap and The only thing that surprised me was the swap created was quite big; almost half the space, but I should trust that the installer knows better Everything went fine, grub was installed correctly. The computer is an ASUS laptop, one year old, intel i7, 16gb ram, 500gb ssd. The PC boots as expected, I get to the login where I can login with the user account as well as the root account. The problem is that after logging in, there is nothing but the wallpaper and the cursor.. Absolutely nothing else.. No default shortcut/hotkey works, all I could notice is that ctrl + alt + f2 makes the cursor disappear. Nothing else seems to happen whatever I try; I have to press the shutdown key to get out.. In recovery mode, at the end of what looks like a slow booting process, I am prompted for a root password for maintenance, and, given the alternative of pressing ctrl + shift + D to "continue". At that point, entering root password logs me in a full screen terminal as root, and, only pressing 'enter' gets me to a full screen terminal like login. There everything looks fine, all the folders I am used to see are there, I can run commands, update apt repository.. But, once in a while (I cannot reproduce every time), Ctrl + Shift + D brings me to the graphical usual login page, and logging from there starts a normal For information, windows boot is offered by Grub, and works perfectly. Things I have tried:
I tried with boot secure enabled, disabled, with fast boot enabled, disabled as well. |
Unable to restart lsyncd after killing it Posted: 19 Aug 2021 09:02 AM PDT I noticed that I was not getting new backups on our DR, so I took a look and saw that When I run status on lsyncd after I run I get the following error: I am able to browse to the |
Why does urxvt appear different when run through x-terminal-emulator? Posted: 19 Aug 2021 08:44 AM PDT When But when it is launched by But and If it matters I'm running Ubuntu 16.04, with urxvt version 9.21. |
Systemd service creation of Prometheus and Node Exporter Posted: 19 Aug 2021 08:43 AM PDT I am trying to create services for both Prometheus and Node Exporter. Both .service files have nearly identical content. My issue is I cannot start the service. I get the following error I have tried changing the user, verifying the path is correct, among many many other iterations. I for the life of me cannot get this to work after hours of tweaking, google, and backtracking. There are guides for Upstart, but I need this to work on 16.04 without Upstart as a dependency. |
What's the difference between gzip and compress? Posted: 19 Aug 2021 08:24 AM PDT What is the difference between gzip and compress? What are the advantages of using compress function. I could see a size difference in the compressed file, but apart from this what are the main adavantages? |
Posted: 19 Aug 2021 09:53 AM PDT I have BIND as a DNS server, what I want is to let this server to allow me to add or remove records to a zone without manually editing the zone file and I want to do this remotely. Is this updating need a key or something like that or can I do it using ssh connection like this: |
You are subscribed to email updates from Recent Questions - Unix & Linux Stack Exchange. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment