Recent Questions - Unix & Linux Stack Exchange |
- i install xming in my windows system and Enable X11 forwarding" box is checked but no output
- building Debian package without associated packages that are bundled together
- Is it possible to pipe output of ls into grep, but with grep standing first?
- Easiest IMAP archiver for multiple accounts
- How do I connect to a smb (samba) share using midnight commander?
- Problem with XServer - _XSERVTransSocketUNIXAccept: accept() failed
- Can't acces Kali Linux interface
- Failed to install Debian11 using apt-get command
- Installing Nodejs on Kali Linux (E: Sub-process /usr/bin/dpkg returned an error code (1))
- Problem with command for memory stress in linux - Unexpected end of string
- Permanently open tun0 interface
- WGET gives "No such file or directory" error when -O option is a variable
- Difference between linux file system and directory
- Odd behaviour of find command
- Run foreground process until background process exited in shell
- How to update initramfs from kickstart when installing to eMMC disk
- How to change a column name in multiple files?
- Can not execute hello world c program with user other than root
- Find all files in directory that have over 130 English characters or 43 asian characters
- AWK: Get the line where the maximum of a column value occurs
- How can I get xeyes to work? - XQuartz Display Error on Local System
- Current date in cal is not highlighted in recent Debian
- Command to DD Write Only if Different?
- htop / top with specifying process name filter on the command line - at program startup?
- Send command to USB device (FingerPrint Scanner) with no driver for Linux
- Debian + USB3 HDD + UAS: I/O errors
- ssh-keyscan has no output
- Not able to run Cisco Packet Tracer 7.0 even if installation is successful
- realm command doesn't work correctly when used in script (CentOS 7)
- How to deal with tearing in Gentoo on NVIDIA?
i install xming in my windows system and Enable X11 forwarding" box is checked but no output Posted: 07 Sep 2021 11:05 AM PDT installed xming (6.9.0.31)in my windows system and Enable X11 forwarding" box in checked in putty but no output Command :xclock -bash: xclock: command not found what are the other configuratons i need to check. |
building Debian package without associated packages that are bundled together Posted: 07 Sep 2021 10:54 AM PDT When I am building a debian package, often many related packages that are bundled together are being build, and also the For example, even relatively simple package such as Can I tell the build system to only build Here is the process that I am using for building the package: Is there a general process how I can specify which packages I want to build? Make is a simple example, but larger packages build many versions of package which I am not interested in, which need dependent libraries installed, and the build process takes longer. |
Is it possible to pipe output of ls into grep, but with grep standing first? Posted: 07 Sep 2021 10:33 AM PDT I'm doing a small exercise with command injections, and I have this statement that I can make injections into: Where So what I want to do is to run But, Since I'm doing an injection, I need the EDIT There seems to be a bit of confusion as to what I am doing here, and what I am trying to achieve. I am doing some introductory exercises on pen-testing. My current exercise is to do a injection on a website, that has this string in it: and then uses that string to run a command. I need to inject something into this string, which will be a command injection. I do no have control over the string as it is already written on the server, and thus I cannot put anything in to the left of I have a solution already, where I inject the following: Which then (when I inject it) creates this command which runs on the server Buy I would like to try to solve this exercise not using the semicolon, but perhaps actually use EDIT 2 A suggestion has been made that I am simply looking for This does not work though, nothing happens |
Easiest IMAP archiver for multiple accounts Posted: 07 Sep 2021 09:56 AM PDT I'm pretty new to linux, Im running Ubuntu at the moment. On windows I was using a service called "mailstore" to archive the entire contents of multiple email accounts. I've seen a few searching google, but a lot of the "verbage" goes way over my head at the moment. All the accounts being archived use yahoo, and I dont need to be able to send mail. Would be great to be able to add a full list of the accounts instead of manually adding them one by one. Also a plus if it has an integrated mail client for viewing emails as well, but thats not completely necessary. Would love any suggestions or links to any great guides for newbies to linux like me. Thanks! |
How do I connect to a smb (samba) share using midnight commander? Posted: 07 Sep 2021 11:14 AM PDT After I select left/SMB link... and enter the urn and user name and password I see this error message
I've tried different variant of the urn
Where on the first two are documenten in the F1 screen. Could this related to a version restriction on the server side? Needless to say |
Problem with XServer - _XSERVTransSocketUNIXAccept: accept() failed Posted: 07 Sep 2021 10:17 AM PDT I run a headless Manjaro server with Xhost and Xvfb (for a display) and after about 236 instances of a program running, the server starts lagging a lot and the error |
Can't acces Kali Linux interface Posted: 07 Sep 2021 09:49 AM PDT I'm using Kali Linux OS I'm a beginner yesterday I opened Linux OS but I can't access it's interface it's just showing terminal and I can't even close it because the closing buttons are missing in the terminal and I also can't do anything except typing in terminal please help me with this problem as I said before iam a beginner in Linux OS I can turn on Firefox but I couldn't type anything and closing Firefox button is missing too |
Failed to install Debian11 using apt-get command Posted: 07 Sep 2021 09:27 AM PDT I tried to install Debian with "apt-get install [-Y] package" And the result is "unable to locate package package" Anyone can help to solved this problem? |
Installing Nodejs on Kali Linux (E: Sub-process /usr/bin/dpkg returned an error code (1)) Posted: 07 Sep 2021 08:52 AM PDT Trying to install NodeJS on Kali Linux but then i got error, Idk what to do cuz this is my first time using kali. |
Problem with command for memory stress in linux - Unexpected end of string Posted: 07 Sep 2021 09:36 AM PDT I've problem with this command in python. I need a double quotation marks on the beginning and end of command, like: After escape inside quotation marks, I have unexpected end of string. Does anyone have an idea how to deal with this? |
Permanently open tun0 interface Posted: 07 Sep 2021 08:31 AM PDT I have CentOS on the host server and I installed OpenVPN on it. when I run but when I do What shall I do to keep tun0 interface alive? Iptables are not running on the server and netstat doesn't show 1194 to be opened |
WGET gives "No such file or directory" error when -O option is a variable Posted: 07 Sep 2021 08:52 AM PDT When I do this, it works perfectly and downloads the file at the required path. But when I do this: It says:
I've tried with or without quotes, wrapped in $(echo $PATH), always the same error. I am using MacOS Terminal. |
Difference between linux file system and directory Posted: 07 Sep 2021 07:44 AM PDT I am bit confused between file systems and directories in Linux, what is the difference and when do I need to create file system and mount it while I can simply create a directory ? |
Posted: 07 Sep 2021 08:05 AM PDT I have come across some odd behaviour while using the I have a .txt file with 1 filename per line and I am using the find command to recursively search through my database for that file. When I use the command like this: I get the expected output of 1 output per line. However when I then use the same command but set the output as a variable (which I ultimately need to do): The find command seems to be printing all the matching files in a folder in on the same line. I have 2 questions:
Cheers! |
Run foreground process until background process exited in shell Posted: 07 Sep 2021 09:42 AM PDT I'm running QEMU virtual machine in However in some scenarios QEMU could exit independently and my foreground process continues to run. But I would like to stop it in case. So the behavior of my custom interactive process should be like: How can I do that nicely? Maybe there is some kind of timeout-like wrapper, so I could run something like: |
How to update initramfs from kickstart when installing to eMMC disk Posted: 07 Sep 2021 08:56 AM PDT I'm trying to install Centos 8 to an embedded computer fitted with onboard eMMC storage. The installation completes successfully but the system does not boot. After reset, the boot menu is displayed showing the kernel versions but the boot process goes no further. A few articles mention that Centos/anaconda does not include the proper drivers for accessing eMMC devices in the newly created
Which says you need to add some additional drivers to the I tried that by switching to a different console after a normal installation completed but
This Red Hat article supposedly explains how to get around that problem and update the Anyone know how I can get the correct drivers into the initramfs during the kickstart installation? |
How to change a column name in multiple files? Posted: 07 Sep 2021 07:55 AM PDT I am wanting to change the name of column number 5 in each file to the file name itself for all files in a given directory. I have 250 files in the directory and the column names are tab-delimited. At the moment, all files have identical column names. Example of file FID IID PHENO CNT SCORESUM 3999347013_R01C01 1 -9 21 -0.217178 3999347013_R01C02 1 -9 21 -0.054835 3999347013_R02C01 1 -9 21 -0.130287 3999347013_R02C02 1 -9 21 0.0062288 3999347013_R03C01 1 -9 21 -0.0933029 3999347013_R03C02 1 -9 21 0.0434727 I want to change the name of column 5 to the file name. e.g. the output for the example file named FID IID PHENO CNT met-d-Glucose.txt 3999347013_R01C01 1 -9 21 -0.217178 3999347013_R01C02 1 -9 21 -0.054835 3999347013_R02C01 1 -9 21 -0.130287 3999347013_R02C02 1 -9 21 0.0062288 3999347013_R03C01 1 -9 21 -0.0933029 3999347013_R03C02 1 -9 21 0.0434727 The original column name is always SCORESUM. The header line is always the first line. There are never columns after the 5th column. SCORESUM does not appear anywhere else. |
Can not execute hello world c program with user other than root Posted: 07 Sep 2021 10:10 AM PDT I have hello world c file I compile the program: however if I copy Also, I can execute when I compile c file with root user and execute it, I can execute it. Is it something related NOEXEC flag? My |
Find all files in directory that have over 130 English characters or 43 asian characters Posted: 07 Sep 2021 09:05 AM PDT I'm trying to transfer files on my NAS, but I will get this error "The name of a file or a folder within an encrypted shared folder cannot exceed 143 English characters or 47 Asian (CJK) characters" is there a command in the shell to find every file that meets that? |
AWK: Get the line where the maximum of a column value occurs Posted: 07 Sep 2021 10:22 AM PDT I am interested in the maximum value of the 5th column. But, I also want to be able to capture the 6th and the 9th values of that row into an array. How do I do this? The command below tries to get only the 5th column value. Edit: print $5 is printing the maximum of the 5th column. Thanks. |
How can I get xeyes to work? - XQuartz Display Error on Local System Posted: 07 Sep 2021 08:06 AM PDT I installed XQuartz on my Mac (Big Sur, v. 11.5.2) using the download available on https://www.xquartz.org/ (XQuartz-2.8.1.dmg), but I have been unable to use it. I've been failing to fix this issue for the past couple of weeks, and I'm really hoping someone can help point me in the right direction. I've been using xeyes to test the installation and get the following response: One of the ways in which I have tried fixing it is to set my Someone in another thread recommended changing the default options in the It's still not working, and I suspect the previous solution was to fix the case where you can get XQuartz to work locally but not through ssh. I can't even get it to work locally, and at this point, I have no idea what to try next. Any ideas would be really helpful! Don't know if this is helpful, but I copied this from my console: More info for comments:
|
Current date in cal is not highlighted in recent Debian Posted: 07 Sep 2021 08:02 AM PDT As answered in Highlight the current date in cal
That's what I had always been getting. However, with my current Debian GNU/Linux, it is not the case any more, and I'm wondering what the fix is. |
Command to DD Write Only if Different? Posted: 07 Sep 2021 10:05 AM PDT I usually keep image based backups of certain computer drives that I generally create with a dd command piped into gzip (or similar). To restore a backup I simply reverse the process. Works great for spinning drives, however, with SSDs I hate wasting writes to restore data that is already present on the drive. I might write 1TB to an SSD and shorten it's life by a percent or two when technically only a few gigabytes of data differed between what's already on the drive and what's in the image backup. So I was wondering, is there a way to restore a dd image but only write data to the drive if the data differs? It doesn't have to be a byte by byte check, even if it compares blocks of data and then writes that block only if any data in that block differed that would be very helpful. |
htop / top with specifying process name filter on the command line - at program startup? Posted: 07 Sep 2021 11:04 AM PDT I'm on Ubuntu 18.04. I'm already aware that I can start Now, I would like to start ... and get the exact same behavior as if hitting F4 and typing in the terminal UI. This would be useful if integrating the command into, say, a I browsed through
So, is there a way to set up process name filtering on the command line at startup, such that it takes account for newly killed or spawned processes (as if hitting F4 in |
Send command to USB device (FingerPrint Scanner) with no driver for Linux Posted: 07 Sep 2021 08:35 AM PDT I am trying to create an application with remote controlling a Fingerprint sensor (Guide included on link) for enrolling and identifying fingerprints on are Raspberry PI 3 Model. There is a SDK_DEMO for this particular functionality on Windows only, which you can find in the Guile I mentioned above.
From the SDK_DEMO source code I figured out which command I need to send to execute tasks. The Commands SKD_DEMO recognised the FingerPrint sensor as Mass Storage and somehow was running the commands like that. In Ubuntu though when I plug in the usb device I don't get any Mass storage mounting and on I have be searching about this and tried to But I got a write error for invalid argument. Here are the terminal commands for the echo attempt: Is there a way I can send raw commands with this format and executing actions without needing to write a driver for this USB device on Linux? |
Debian + USB3 HDD + UAS: I/O errors Posted: 07 Sep 2021 08:59 AM PDT I'm running rsync to backup a remote machine to a USB hard drive on an ARM SBC and sometimes rsync just stops with "read error from input device (I/O error)". I believe the issue is related to UAS + USB 3.0 + rsync causing high I/O load, because of This SBC doesn't have a USB 3 port, however it still loads the hard drive with UAS. According to this, UAS is broken on some HD enclosure chips. The solution provided is to disable UAS, however: 1- If I blacklist UAS completely with Looking at 2- If I just try to disable UAS for a specific USB device, like the post recommended, it still loads with UAS: What am I doing wrong? Is it possible to disable UAS and make the system still use the HD any other way? Why does Thank you. Some notes:
|
Posted: 07 Sep 2021 09:32 AM PDT I have server script that automatically pulls down and installs a github repository. As part of the script, I'm running I have successfully used this same script in a local vagrant instance, as well as on several servers. However, on one of the servers this doesn't work, because Where would be a good place to start in troubleshooting this? I've tried searching StackExchange for issues related to 'ssh-keyscan', but I haven't yet found anything that fits this particular problem. |
Not able to run Cisco Packet Tracer 7.0 even if installation is successful Posted: 07 Sep 2021 08:06 AM PDT I use Kali Linux and I am having a problem in running the I have downloaded the PacketTracer70_64bit_linux.tar.gz file from www.netacad.com/group/offerings/packet-tracer/. And then I extracted the tar.gz file by writing the command Then I got into the folder PacketTracer70 which got created automatically after extraction. The folder contents were as follows: Then I ran the Then I accepted the terms and conditions as usual... Then I was asked to install the package in then I got to the folder But nothing happened after that. It just gave me the message "Starting Packet Tracer 7.0" and nothing happened. I am trying this second time and getting the same problem. How can I fix this problem? |
realm command doesn't work correctly when used in script (CentOS 7) Posted: 07 Sep 2021 10:01 AM PDT I try to automate the authentication on CentOS 7 Hosts over my AD with the realm commands. It totally works when I execute the following commands by myself. In addition to that I replace the following lines in /etc/sssd/sssd.conf and restart sssd service. After those steps I can log in on that specific CentOS Host with any permitted user of my Active Directory Now the Problem: If I run the following script on a CentOS Host as root it seems like everything has worked. If I try to log in as a permitted AD user it says permission denied I checked /etc/sssd/sssd.conf for any possible sed-caused problems, but that seems fine. Also running the command realm list seems like there is no problem. The output of this command is exactly the same when I run it after manually executing the commands. Anybody any idea how to handle that? |
How to deal with tearing in Gentoo on NVIDIA? Posted: 07 Sep 2021 09:02 AM PDT See Why is video tearing such a problem in Linux? for the reasons behind why tearing is a problem in the first place, and why the usual "tricks" usually suggested (like "disable compositing", GLXVBlank true) simply don't work in general. This question is more specific but still general enough for many users: How do you deal with tearing on Gentoo, using an NVIDIA based graphics card? By "dealing with" I mean how do you either remove it, using some very specific setup arrived at by sheer brute force, or how do you at least minimize the effects? I have tried both the proprietary and free drivers, different versions, different kernels, different X configurations and driver options. I have yet to try different window managers, because I simply don't have time to fiddle with that as well. Instead of reinventing the wheel, maybe someone already knows of a good setup that will minimize these adverse effects while we wait for Wayland to get more traction. As kirill-a suggests in the other question: "So screen tearing issue may be solved by trying different drivers and configuring them." What combination of window manager, drivers, kernel (please mention specific kernel options that are crucial), X configuration and media player will give me the best results? |
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