Recent Questions - Unix & Linux Stack Exchange |
- File Manager - attach a file
- Printing to Impact Printer from Command Line
- How to redirect the local audio from FreeBSD 13 to Ubuntu 21.04 emulated with vm-bhyve
- accidently deleted boot folder. Can't boot Linux now
- How do I find a file in an environment variable?
- Regular expression pattern matching with sed
- How to perform a make install without any apt confirmation
- Partition table on nother device
- Partitions or virtual mapping on device, not making file system
- Trouble using VSFTPD service for ftp server on AWS S3
- How to display stdout command in less with as few keystrokes as possible?
- Launch GUI app from udev rule
- bengali fonts displaying very late in Libreoffice writer
- Read Linux Shell Script
- setup sftp server with special permissions
- /etc/passwd on Kali Linux shows the password encryption type to be $y$
- Fix/Repair Can't find a SQUASHFS superblock
- Ubuntu routing problem between two physical ports
- Would it be best for PowerShell scripts to also have a shebang?
- Setting up squid transparent proxy with SSL bumping on Debian 10
- What's the shortcut to delete a word "forward" in a unix terminal?
- start-stop-daemon no pid file was written
- How can I enable multiple systemd unit files with the same instance specifier?
- When a Linux (Ubuntu) system shuts down, which processes get sent a SIGTERM?
- How to avoid /usr/bin/env being marked in systemd logs as the executable
- Change Apache httpd "Server:" HTTP header
- slow Matlab on Ubuntu LTS and ZERO Swap
- How can I find out what keys gpg-agent has cached? (like how ssh-add -l shows you cached ssh keys)
- How to scroll the screen using the middle click?
Posted: 11 Aug 2021 11:16 AM PDT I am running Debian 10 Cinnamon (among others) and am wondering if there is a way to change the order in the dialog for attaching a file to an email. Currently it is strictly alphabetic and I would prefer to have folders on top (alphabetically) then files (alphabetically). My Mint Cinnamon dialog behaves this way. Knowing how versatile Linux is I presume there must be a way to accomplish this. Thanks. |
Printing to Impact Printer from Command Line Posted: 11 Aug 2021 11:06 AM PDT I have a Raspberry Pi running Raspbian and I bought an impact printer (Epson LX-350) that I plan on hooking up to the computer via USB cable once it arrives. My goal is to be able to have a script periodically output lines of ASCII text to the printer as certain events happen. I don't care about it being pretty, in fancy fonts, large font sizes, worrying about files, or worrying about spooling print jobs from multiple users over multiple printers. It seems like I can plug in the printer, not install any specific drivers, and then use commands like I don't have the printer right now to try it out on, but am I missing anything I should research while I'm waiting for the printer to arrive? |
How to redirect the local audio from FreeBSD 13 to Ubuntu 21.04 emulated with vm-bhyve Posted: 11 Aug 2021 11:24 AM PDT I don't hear any sound within my Ubuntu 21.04 VM,emulated with vm-bhyve on FreeBSD 13. On Ubuntu I have installed xrdp and as u can see below,it's working great : and on FreeBSD I'm trying to make work xfreerdp and remmina. I run xrdp with the following command : xfreerdp /v:192.168.1.3:3389 /relax-order-checks but it is not working. The error is : In the remmina client should I fill the value for "redirect the local audio ouput" ? because I don't know which value should I put there. If I keep it empty,inside the linux vm I see the message : establishing connection to pulseaudio but nothing happens. On FreeBSD pulseaudio works great for me : But Inside Ubuntu 21.04,when I try to hear some music from youtube,I don't hear anything,but I see that from the dummy output the sound level is moving : In addition to remmina and xrdp I've installed anydesk on FreeBSD and on Ubuntu / vm-bhyve. On the anydesk that run on FreeBSD I've configured the audio like this : But I'm not sure what device is correct for transmissions and playback. I'm not able to understand how to detect what are the correct devices. Instead on the remmina client I tried to fill the value for "redirect the local audio ouput" but I don't know which value should I put there. I tried with /dev/dsp0 but it does not work because this error that comes from the log of remmina that run on FreeBSD : I tried with dev:dsp0,but I've got this inside the remmina log : If I use remmina,inside the Ubuntu VM I see : |
accidently deleted boot folder. Can't boot Linux now Posted: 11 Aug 2021 10:29 AM PDT I was doing something in my windows 10 system. Then I accidently deleted all of the files from boot folder. Including the grub folder and all of the vmlinuz stuff. Nothing is left there. So now whenever I try to boot from a pendrive I get the grub command line. I didn't see grub rescue. I tried booting with both kali Linux and parrot OS pendrive. None of it worked. It still shows grub command line. But I can still boot into my windows 10 system. When I type ls command in the grub command line I can see all of the partitions including the pendrive.
I can see the files inside my pendrive. I can also see the system partition where the boot and EFI and also startup.nsh file resides. There are two folders in the EFI folder. /boot and /microsoft. Please help me fix my grub. My system configurations -
|
How do I find a file in an environment variable? Posted: 11 Aug 2021 11:23 AM PDT I am trying to find a file that might be located in one of the folders in the However the above command fails because of multiple entries in the variable and separated my a How to accomplish this? |
Regular expression pattern matching with sed Posted: 11 Aug 2021 10:13 AM PDT My file and I'd like to replace them with possible strings, e.g.: I know I could do it with one string like this: However I am not sure how to do it with multiple strings (apple, orange, pear), in one line sed script. This is to later run an awk program in a file containing list of fruits and not fruits, to see if apple, orange, pear is part of a fruit. Could I possibly just use || (or operator)? like ```$sed 's//apple||orange||pear/' abc Thank you so much! |
How to perform a make install without any apt confirmation Posted: 11 Aug 2021 10:04 AM PDT When installing packages with How can I speficy to the I can't find a equivalent |
Partition table on nother device Posted: 11 Aug 2021 09:54 AM PDT I'm curious if it's possible to store disk partition tables on different device and load it from grub |
Partitions or virtual mapping on device, not making file system Posted: 11 Aug 2021 09:33 AM PDT I am running raspbian on raspberry pi 3 and using pi-power-tools to create a img. When I try to make an image I get the error mkfs.vfat: Partitions or virtual mappings on device '/dev/loop0', not making filesystem I have no idea what this is or how to fix it. Does anyone have a clue |
Trouble using VSFTPD service for ftp server on AWS S3 Posted: 11 Aug 2021 09:39 AM PDT First post on here so I apologize if its in the wrong place or format. So currently I have a working ftp server on aws linux EC2 and S3 with users that can connect via ftp/ftps/sftp . However the way I got it to work adds a few seemingly unnecessary steps for the client. Directory setup: The user's home directory is configured to be at the Issue I am having is when a user logs in, they are sent to the Unfortunately any other home directory I have tried ends up sending me various errors. Any ideas? Thanks, Tyler |
How to display stdout command in less with as few keystrokes as possible? Posted: 11 Aug 2021 11:17 AM PDT I often find myself piping a command's output into While I can always append One option would be to alias Is there a smarter way? Like binding I use |
Posted: 11 Aug 2021 08:48 AM PDT I am trying to launch a GUI app upon plugging in a certain USB device. The udev rule gets triggered, but the app does appear on my screen. Running the script from another TTY makes the app open in my graphical environment. I can also confirm that the rule is getting triggered by appending a date to a file from the rule. /etc/udev/rules.d/99-betaflight.rules: /home/daniel/bin/betaflight-configurator: The way I understand it is that the GUI app has difficulties starting, since it's not starting in the context of the X server. Still, running the code from another tty opens the app perfectly fine. What can I improve to make the app run upon plugging in my USB device? |
bengali fonts displaying very late in Libreoffice writer Posted: 11 Aug 2021 11:25 AM PDT I have installed a flatpack version of LibreOffice 7 in my MX Linux 19.4 KDE version since the apt version was having problems in my system. In this version of LibreOffice, Bengali words do display but with a problem. The text does not appear instantly by letter; instead, it appears as a word after pressing the spacebar. For example, suppose I am writing some text in Bengali. The words began to display after I hit the spacebar, but they don't appear before that. Here is the link to demonstrate the problem: If you do not understand the language of the text written in the video, please don't stress yourself. Just notice that the letters do not appear instantly. |
Posted: 11 Aug 2021 10:42 AM PDT how to read this? |
setup sftp server with special permissions Posted: 11 Aug 2021 10:01 AM PDT I want to setup SFTP server with special permissions, and most importantly, how to set up the idea My idea: You access Via secure FTP protocol using Winscp, and you have your own folder, can upload files, download files, read, write, overwrite, delete; and can't go out from your folder another thing, one user can't create a folder too! |
/etc/passwd on Kali Linux shows the password encryption type to be $y$ Posted: 11 Aug 2021 10:09 AM PDT I know the typical encryption types for Linux are $1$, $2a$, $2y$, $5$, and $6$, but I haven't found any answers for what $y$ is. I'm using the latest version of Kali Linux. The two accounts are dummy accounts made for an exercise. |
Fix/Repair Can't find a SQUASHFS superblock Posted: 11 Aug 2021 08:57 AM PDT I have an old filesystem backup that I made and compressed into a squashfs. It was stored on an ext4 filesystem, and I suspect it suffered from some bitrot. I don't have a backup of the file. Is there any way I might be able to rescue this squashfs archive? Edit: Adding Info |
Ubuntu routing problem between two physical ports Posted: 11 Aug 2021 10:10 AM PDT Looking to solve a problem on:
I have two physical ports (enp1s0 & enp2s0), a router connected to enp1s0 and a camera on enp2s0.
I would like to be able to access the internet from the camera. (for example: ping -I enp2s0 1.1.1.1). I have tried the following rules:
I'm still not able to make the two interfaces talk - looking to ping enp1s0 from enp2s0, then access the internet from enp2s0. They have to be on different subnets. Can anyone help me understand the routing problem here to help these two subnets talk to each other? |
Would it be best for PowerShell scripts to also have a shebang? Posted: 11 Aug 2021 10:37 AM PDT Shell scripts are better when having a shebang like so: PowerShell scripts are also shell scripts. So it should be okay to do like so: It seems to does not make sense if the script was intended for Windows machines but for Linux and Mac machines they seem to make sense. Do you think it would be best for PowerShell scripts to also have a shebang? |
Setting up squid transparent proxy with SSL bumping on Debian 10 Posted: 11 Aug 2021 11:09 AM PDT Debian 10 with squid working as a transparent proxy. Now want to add SSL. Question 1: Now what I read says that next I need to however I cannot find Question 2: If I now proceed anyway to add in then squid fails to start: I notice that Update All of the guides on the Internet at the time of writing are obsolete because https://wiki.squid-cache.org/Features/SslBump I was hoping this might work that I got from https://serverfault.com/questions/743483/transparent-http-https-domain-filtering-proxy : but no: Update: compiling squid with SSL In ...and build... ...and install... However, still no Has it been renamed to Update: compiled squid Got squid compiled and running for HTTP but don't know what to do for HTTPS -- and nor apparently does anyone else. Is it impossible? It seems to be something to do with certificates and |
What's the shortcut to delete a word "forward" in a unix terminal? Posted: 11 Aug 2021 10:07 AM PDT I do How do I do the opposite - deletes from where the cursor is to the end of the word? |
start-stop-daemon no pid file was written Posted: 11 Aug 2021 10:03 AM PDT Have already --make-pidfile in start-stop-daemon, but still couldn't see pid file being created. Anybody can help why? |
How can I enable multiple systemd unit files with the same instance specifier? Posted: 11 Aug 2021 09:01 AM PDT Whenever I enable a certain instanced systemd service, I want two timers with the same instance specifier to be enabled as well. This is what my unit file foo@.service looks like: Running If I remove the instance specifiers from the [Install] section and replace them with specific instance names (so it looks like the following), then it works just fine. The man page systemd.unit(5) says that the %i specifier is interpreted in the install section, so what gives? |
When a Linux (Ubuntu) system shuts down, which processes get sent a SIGTERM? Posted: 11 Aug 2021 08:54 AM PDT If I start an ongoing background process A which starts a child process B, and I ask the OS to shut down, which processes get sent a SIGTERM? Is it both A and B or is it just A (assuming that A should be responsible for shutting down B)? |
How to avoid /usr/bin/env being marked in systemd logs as the executable Posted: 11 Aug 2021 11:09 AM PDT I've created a systemd service to run a tomcat application based on the information found in this article. The short version of the article recommends avoiding the shell script wrappers, and executing java directly, with the appropriate environment and command line. Here is the entirety of the systemd service (with the app name replaced): This works quite well as far as I know. The service starts, stops, and reports status correctly. The problem I'm having is with the logs as reported by See here that Can I report the executable as For extra points, I would love some hints and tips about what my service file might be missing. This is the first time I've written a systemd service, and am keen to learn more about best practises. |
Change Apache httpd "Server:" HTTP header Posted: 11 Aug 2021 10:11 AM PDT One of the HTTP headers that the Apache I have After stopping and starting I see that something called "mod_security" claims to do this, but I don't want all the rest of the baggage that mod_security carries with it. UPDATE: Once you get That's for |
slow Matlab on Ubuntu LTS and ZERO Swap Posted: 11 Aug 2021 11:05 AM PDT I was using Matlab2012 under Win7 and my algorithm was consuming a huge amount of memory though it was fast (80 seconds for one iteration). Now I am using Matlab2013 under Ubuntu 12.04 LTS and though the usage of the RAM is very small, but the time is extremely higher than it was on windows (30 minutes for the iteration and not finished untill now). As I said the RAM is showing a usage of 1G out of 8G ...while the swap is showing 0% of 8G. I checked the default value and it is 60, but not used by anyhow!! What might be the problem, and how to speed up Matlab the way it was before? |
How can I find out what keys gpg-agent has cached? (like how ssh-add -l shows you cached ssh keys) Posted: 11 Aug 2021 09:00 AM PDT
|
How to scroll the screen using the middle click? Posted: 11 Aug 2021 10:12 AM PDT On Windows, most programs with large, scrollable text containers (e.g. all browsers, most word processors and IDEs) let you press the middle mouse button and then move the mouse to scroll. This scrolling is smooth and allows you to scroll very quickly using just the mouse. When I've used Linux on laptops, two-finger scrolling performs roughly the same function; it's easy to scroll down a page quickly (much more quickly than one can by scrolling a mouse wheel) but the scrolling remains smooth enough to allow precise positioning. I am unsure how to achieve the same thing when running Linux on a Desktop with a mouse. As far as I can tell after a whole bunch of Googling, there are neither application-specific settings to swap to Windows-style middle mouse button behaviour, nor any system-wide settings to achieve the same effect. Just to make this concrete, let's say - if it's relevant - that I'm asking in the context of Firefox, Google Chrome, Gedit and Eclipse on a recent version of either Mint (what I use at home) or Ubuntu (what I use at work). I suspect this is a fairly distro-agnostic and application-agnostic question, though. As far as I can tell, my options for scrolling are:
None of these satisfy me! This UI issue is the single thing that poisons my enjoyment of Linux on desktops and almost makes me wish I was using a laptop touchpad instead of a mouse. It irritates me enough that I've concluded that either I'm missing some basic Linux UI feature that solves this problem, or I'm just an oversensitive freak and it doesn't even bother anyone else - but I'm not sure which. So my questions are:
|
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