Recent Questions - Unix & Linux Stack Exchange |
- How do I install softwares in openbsd?
- Install default Ubuntu 20.04 repositories and files on Kali
- tee in for loop not working as expected
- How to calculate disk usage filtering by pattern (e.g., *.JPG)?
- Extract unique subdomains from a list
- External monitor stuck on "Unknown display" 1024x768 - Fedora 34
- How to create a file with a name that starts with the symbol '-'
- How to install .deb package without breaking debian?
- How it comes that ldapsearch output can't be piped
- Return status code and body in curl
- Preventing terminal output race of a Bash' sub process by `>( )` and its following command
- How can I switch (local) virtual desktops from a VNC fullscreen session?
- Howto hook a Guest to a `tun` Interface
- Awk command to replace a substring with a specific value
- Kernel panic while install OpenBSD
- Why a Bash script still outputs to stdout even I redirect it to stderr?
- Diff between command > and command 1> ,>> [duplicate]
- Are there Linux distributions designed for the 'mobile computing' use case in 2021?
- Delete sub-directories based on matching information from column
- X11 connection rejected because of wrong authentication
- Installing zsh from source file without root user access
- How to configure the path to my Linux installation in GRUB (currently doing it manually at each boot)?
- Why is the Wi-Fi in Ubuntu 21.04 so painfully slow?
- How to add Pycharm Community Edition to path
- Centos 7 and Windows 10 Dual Boot Grub Not Saving Last Choice
- Can Symbolic Links span different file systems in Unix or Linux
- Apache not reading changes to PHP files
- Cannot prompt user using rm bultin prompt option -i with xargs and find
- Why does Firefox refuse to die despite killing it with pkill -9?
- How do I delete a file whose name begins with "-" (hyphen a.k.a. dash or minus)?
How do I install softwares in openbsd? Posted: 22 Oct 2021 10:50 AM PDT I want to install Firefox but been having issues. So how do I install softwares and games in OpenBsd? Thanks Jonathan Steadman. |
Install default Ubuntu 20.04 repositories and files on Kali Posted: 22 Oct 2021 10:48 AM PDT I can't seem to get my Desktop Environment for my (Windows 11 Beta) WSL-2 Ubuntu 20.04 to work, so I think it would be easier to just set up win-kex gnome on kali, then just install the default Ubuntu 20.04 files. Is this doable? If so, how do I do it? |
tee in for loop not working as expected Posted: 22 Oct 2021 11:29 AM PDT I'm trying to use I.e. using the output of This seems to work initially, but the command doesn't seem to complete (file size for each output is smaller than if command was done without Eventually I get an error that the two Is this the best way to accomplish what I'm after, i.e. using the output of the first command in two separate commands (ideally, not recording/printing the output of the first command at all)? Is Thanks in advance. |
How to calculate disk usage filtering by pattern (e.g., *.JPG)? Posted: 22 Oct 2021 10:27 AM PDT How can I calculate disk space consumed only by some files of a directory recursively? |
Extract unique subdomains from a list Posted: 22 Oct 2021 10:40 AM PDT I have a .txt file with 2 million lines containing URLs of the same domain, I need to extract only unique subdomains of this list... The problem is when I use the command below, the output return the entire unique URLs, I only need to extract unique subdomain names not the entire URL, without repeat. Any tips? Thanks<3 |
External monitor stuck on "Unknown display" 1024x768 - Fedora 34 Posted: 22 Oct 2021 10:10 AM PDT Using a fresh install of Fedora 34 Workstation edition(GNOME) on a dell latitude 7400 laptop, I'm struggling to make my external display to work, an Asus ROG PG278Q 27". Connecting through the USB-C port, the display shows up in the system settings as an "unknown display" and the resolution is capped at 1024x768. Things I already did:
system info:
This is my first time in many years switching to a linux desktop, this display used to work on my previous windows 10 instalation and it also worked in my (brief) rocky linux 8 installation. |
How to create a file with a name that starts with the symbol '-' Posted: 22 Oct 2021 10:26 AM PDT I want to use the How can I overcome the the fact that For example, if I wanted to create a file with the name Instead I would have to write |
How to install .deb package without breaking debian? Posted: 22 Oct 2021 09:54 AM PDT I've a self build "emacs-ng.deb" package, i now want to install in my machine. But i heard horrible stories of installing third party softwares. But i really want to install emacs-ng, i see it is available in .deb package , made in docker. I found because of lower version, i cant install from source. Would you guys, please provide me a debian way of installing .deb packages in debian, so that in next uprade or upgrade, i wont be breaking my system |
How it comes that ldapsearch output can't be piped Posted: 22 Oct 2021 10:23 AM PDT ldapsearch always outputs an authentication message with every query at the beginning: if I do If append This is annoying I am looking for some way to not show this SASL output when I do ldapsearch queries. The ldapsearch command ist executed against a samba4-LDAP |
Return status code and body in curl Posted: 22 Oct 2021 10:54 AM PDT Is it possible to use curl to call a REST service (POST method) and get:
Other information like headers, methods, etc. are not relevant for my use case and actually add to the confusion when testing. For example, I'm doing: I know the service is returning However, is it possible to get rid of the rest of the display? |
Preventing terminal output race of a Bash' sub process by `>( )` and its following command Posted: 22 Oct 2021 09:55 AM PDT How do we prevent terminal output race between a Bash' sub process by >( ) and command following it when this sub processing a large number of lines so most of its output lag behind the output of the following Bash command ? |
How can I switch (local) virtual desktops from a VNC fullscreen session? Posted: 22 Oct 2021 08:53 AM PDT My goal is to have my local PC apps on desktop 1 and a full-screen VNC remote session on desktop 2. I'm using KDE5 on both, with Ctrl-F1/F2 mapped to the desktops. OS is Tumbleweed if that matters. I would like the benefits of full-screen, namely Alt-Tab handling, but I would like to keep Ctrl-F1 local. In searching, I'm finding a lot of discussion related to sending keystrokes to the remote server but nothing about keeping keystrokes local to the client. The documentation mentions the How can I keep Ctrl-F1/F2 local? |
Howto hook a Guest to a `tun` Interface Posted: 22 Oct 2021 08:30 AM PDT I'm trying to force all traffic from a guest (Windows or Linux) to go through the VPN of the host (Linux). To make sure that a guest has no access to the internet outside the VPN, I establish the connection on the host system, which creates a new interface Setting up |
Awk command to replace a substring with a specific value Posted: 22 Oct 2021 09:22 AM PDT I have a flat file which has a phone number in field starting at position 314 till 323. Now I wanted to dummy out that field with For this I tried using the below commands and both are throwing error:
In second case This worked but the values didn't change. The output remained the same. Can someone help me with the syntax here? In the first case I tried to assign the substring to a variable and in can someone help me with this |
Kernel panic while install OpenBSD Posted: 22 Oct 2021 10:25 AM PDT Kernel panic while install OpenBSD.I tried installing the system but this is the error message that I have got: Steps I tried:
Thanks Jonathan Steadman. The helpful guide I followed: https://www.openbsdhandbook.com/installation/ |
Why a Bash script still outputs to stdout even I redirect it to stderr? Posted: 22 Oct 2021 08:39 AM PDT I have a Bash script: Also, I have a custom app that starts this script. The app captures both - stdout and stderr. The stdout is empty and the stderr contains the text provided. So far, so good. But when I start the script from the console (physical terminal): I expect it to not print anything on the display, but it prints. I tried various combinations of redirecting, e.g., Where is this configured? How can I make my terminal to not display stderr? |
Diff between command > and command 1> ,>> [duplicate] Posted: 22 Oct 2021 10:01 AM PDT I am little bit confused about redirections in linux.
some guys said > and 1> are same but when used with commands not getting proper output. for example , pg_dump -d postgres -t schemaname.table -v -f table.sql >>table.out 2>>table.err if I execute above command , if command is successful , it should log the logs to table.log and not in table.err . table.err we get logs only in case pg_dump status exit 1. My expectation is we get log in table.out when pg_dump executed without any error while dumping tables. and we should get logs in table.err when pg_dump status is exit 1 or it's failed to dump tables. Thanks! |
Are there Linux distributions designed for the 'mobile computing' use case in 2021? Posted: 22 Oct 2021 09:21 AM PDT In 2021 are there any linux distributions that succeed at delivering the basics of a 'mobile computing' use case for aftermarket installation on a laptop. I consider a minimum 'mobile computing' baseline for reference is...
There seem to be plenty of distros which will get laptops to boot and run off mains power, but every distro+hardware combination I have ever encountered has problems such as...
These are indications that those distros do not target 'mobile computing'. This makes a typical linux laptop radically worse than an equivalent MacBook in my experience. I want to identify a distro which targets the 'mobile computing' case, and which is therefore likely to work out of the box without months of effort and likely failure. I have no experience of the preinstalled Linux market, I don't know what level of mobile-computing support is reliable by default in any of those vendors' distro builds, and I can't realistically afford the 'Developer edition' price tags for preinstalled linux models, so I am looking for an distro that can be installed aftermarket. Are there any examples of distro builds which fulfil the listed requirements? BACKGROUND In recent years I have relied on Chromebooks which have a linux kernel pre-configured correctly for their target hardware, and which will normally run for 10 hours straight. These fulfil the criteria on paper. They can run XWindows and linux apps via containerised crostini. Unfortunately crostini is not really maintained and is currently unstable on my personal development machine, meaning it routinely experiences hard shutdowns when running or during sleep/hibernation, losing state. Because of the composition of the closed ChromeOS ecosystem, there's no chance of uncovering or fixing those issues. I would like to find a FOSS alternative that meets the criteria of 'mobile computing'. |
Delete sub-directories based on matching information from column Posted: 22 Oct 2021 08:56 AM PDT I want to keep only those sub-directories that are present in the corresponding directory from CSV file. The file structure looks something like this: Information in CSV: Based on the information from the columns, I want to remove the sub-directories that are not present in CSV file. Here is how I read the file: |
X11 connection rejected because of wrong authentication Posted: 22 Oct 2021 11:27 AM PDT First of all what I want to do: I want to login to a server via Some collegues do it by an it works. I connect to a server via Warnings: If I run Error: I found some articles about this problem. X11 forwarding fails when switching users ssh connection. X11 connection rejected because of wrong authentication So extend the And later I changed and restarting the sshd by But nothing changed. Does anybody know what to do? Its important to check some changes on the users program configurations after making changes. |
Installing zsh from source file without root user access Posted: 22 Oct 2021 11:38 AM PDT I clone the source of zsh source file from github, after that I ran the command and It prompt to me that
Then follow the instructions I tried No luck I got
Can anyone give me some Hints or Instructions? |
Posted: 22 Oct 2021 08:44 AM PDT So I have a laptop and I'm trying to get rid of my windows os and install kali linux. Now I have done that but the problem is every time I turn on the computer it doesn't automatically go into the desktop environment it goes to the grub menu. Now I figured out the problem. The Problem is that it doesn't understand where to boot the instance from and I can go into the desktop by typing this Now the problem I'm having is this doesn't fix the whole problem every time I reboot my computer to get to the desktop I have to type all this again. I reinstalled grub but did not help.I also noticed that when I do sudo efibootmg there is a windows boot manager an Ubuntu one too but no kali. What can I do so it automatically sends me to the desktop when I turn on the computer? |
Why is the Wi-Fi in Ubuntu 21.04 so painfully slow? Posted: 22 Oct 2021 09:51 AM PDT I had been using Ubuntu 21.04 for a while, and all of a sudden the wifi is slow (download rate is not more than ~7000 B/s). My internet is pretty fast and gives around 50Mbps. A few days back, I got myself with ransomware on Windows. I had to reset Windows. After resetting Windows, Ubuntu started to behave sluggishly. I reinstalled Ubuntu 21.04 twice using a bootable stick. The safe boot in Windows seems to block my wifi adapter, so I disabled it. Then I had the issue rising again yesterday and today. I disabled the power management, but the issue is still there.. I can't even do an update! My laptop runs Ubuntu on Dual boot alongside Windows 10. output of Does anyone have any suggestions on how I can make Wi-Fi in Ubuntu 21.04 faster? |
How to add Pycharm Community Edition to path Posted: 22 Oct 2021 09:04 AM PDT I want to add Pycharm to my path so that I may launch it from the command line from any directory in the same way that atom can launch from terminal if I type atom. I have already tried charm, pycharm-community, and believe instead I need to add this to my path? Also, how would I do this for other programs in general as well. Thanks for any help! |
Centos 7 and Windows 10 Dual Boot Grub Not Saving Last Choice Posted: 22 Oct 2021 10:03 AM PDT I have a dual boot system with CentOS 7 and Win10. My install was totally vanilla (CentOS then Win10) and went fine. Everything is great except that grub does not appear to save my "last" choice from the boot load menu. I dug through all the grub configuration files (e.g. My Is there anything obvious I am missing or need to do to enable this? My I can't see this file from a Windows boot, but I did test via the "rescue Centos entry". I manually set the value in It just seems I am missing something to enable this "save the last choice" behavior. Any ideas? |
Can Symbolic Links span different file systems in Unix or Linux Posted: 22 Oct 2021 11:02 AM PDT Can Symbolic Links span different file systems in Unix or Linux ??? I.e consider different file systems like ext2 and ext3 can symbolic link span them? |
Apache not reading changes to PHP files Posted: 22 Oct 2021 10:10 AM PDT I'm developing on a CentOS6 server with Apache and PHP. When I make a change to a PHP file (and save) it appears that apache is not reading the changed file - it's still processing my old .php file. After 5-10 minutes it will start to use the new file. Can someone tell me how to force Apache to immediately pickup the changed .php files? UPDATE: I moved the files onto the apache server and the problem remains (this is not an NFS issue). So it seems that Apache is just not reading in the changed files for several minutes Confused... |
Cannot prompt user using rm bultin prompt option -i with xargs and find Posted: 22 Oct 2021 11:26 AM PDT I am using xargs and rm with find in order to remove files that follow a specific pattern defined by find as follows. Everything works fine with the above code, but if I enter the -i option to rm, then executing: prints:
without letting me enter y or n ? Thus the file is not removed. What's the problem in here ? I also am aware of -p parameter of xargs which works but it is more general. That is, it prompts user to execute the specific command, which is not user-friendly. EDIT: While using it in a shell script, I've found out that it executes the command I want but it also prints find's result. Something that it is not preferable. Also when I pass the This is my script: The only solution I can think of, is to prompt the user separately for his preferred pattern. Then store that pattern to a variable and pass it as an argument to find command's -name option. Something like this: But even with this solution, find's output is still printed and if the pattern field is left empty (i.e the user just does not want to use a pattern) then problems occur. Any Ideas ? |
Why does Firefox refuse to die despite killing it with pkill -9? Posted: 22 Oct 2021 10:23 AM PDT I am issuing the following command to kill Firefox on my Red Hat Linux box: However, when I try to invoke Firefox through Applications -> Internet -> Firefox, it says:
|
How do I delete a file whose name begins with "-" (hyphen a.k.a. dash or minus)? Posted: 22 Oct 2021 10:16 AM PDT How do you remove a file whose filename begins with a dash (hyphen or minus) How in the world can I delete I have tried using backslash I have tried quotes How do I prevent the minus (dash or hyphen) character to be interpreted as an option? |
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