Recent Questions - Unix & Linux Stack Exchange |
- How to distribute files per directories based on names of these files?
- Add commas in place of number with sed?
- Given Size in Terminal Row and Column units, how to calculate equivalent number pixels
- Debian 11 - How can i lower the load on my server?
- Deleted Kali identifier but still it shows in bios
- Different Plugins for Different Filetypes Neovim
- PPP0 Client Routing
- is it possible to use wireshark to capture https request that send from localhost node server
- How to view OpenVPN connections?
- split file by awk
- Why bash histroy rewrite IP and User data
- XMP and GPU Crash
- Terminal Specific Aliases
- Which is more reliable, $DESKTOP_SESSION or $XDG_CURRENT_DESKTOP
- NixOS: Ensure root-level folder exists
- Btrfs and lack of free disk space
- Keyboard not working during Debian Install on LG Ultra laptop
- initramfs got corrupted/ misconfigured, how to boot properly?
- Joining hosts to freeIPA without changing hostname
- How do I add a command to zsh history?
- strace write calls to stdout
- how can I set a right click and open terminal in context menu
- Unable to install Mongodb on linux mint
- How to use existing partitioning when re-installing Debian?
- Should isohybrid work on all iso media, for example Windows 7?
- Configuring device's wifi settings through SSH
- Yum Corrupted on RHEL 6
- Equivalent of update-grub for RHEL/Fedora/CentOS systems?
- How to view the output of a running process in another bash session?
How to distribute files per directories based on names of these files? Posted: 23 Jul 2022 11:11 AM PDT I have camera pictures stored in files with names I want to move each file into separate directory per date I found that command prints tuples of filenames and desired target directory Can I pipe output of this command to command like somehow? May be with |
Add commas in place of number with sed? Posted: 23 Jul 2022 11:16 AM PDT Trying to write a simple script to fetch ethereum price and format the response. Here is what I've tried: Although it doesn't add the commas. |
Given Size in Terminal Row and Column units, how to calculate equivalent number pixels Posted: 23 Jul 2022 10:14 AM PDT I have a program which makes available 2 shell variables How would I go about converting these $height and $width values from row/column units to pixel units? I also noticed my terminal emulator ( |
Debian 11 - How can i lower the load on my server? Posted: 23 Jul 2022 11:06 AM PDT I'm currently running a Debian 11 with a load average of 4. I want to lower this load - But i don't really know where to start, like a first step on at least the analisis part... It's a Docker Server, with MySQL, Below a few commands and its outputs, to give some overview of the server. Processes: Memory: IO Stat: VM Stat: Perf top: MP Stat: Please, can someone help me? Thanks in advance... Any light is appreciate it. |
Deleted Kali identifier but still it shows in bios Posted: 23 Jul 2022 10:13 AM PDT Previously I had installed Kali Linux but few days later I deleted it. The way I did it (1) was to first delete the partition then using diskpart and rd. Still it was showing on my BIOS. So (2) I deleted the identifier. But recently it popped up again on my BIOS. In firmware except the windows boot manager there are 5 other firmwares. Their descriptions are: windows boot manager, Debian, EFI USB, EFI DVD/CDROM, EFI Network. No matter how many times I delete Kali identifier it still shows in the BIOS. But it doesn't show in the firmware list. |
Different Plugins for Different Filetypes Neovim Posted: 23 Jul 2022 09:37 AM PDT I've used Neovim in the past for writing LaTex documents and have found that experience pretty great. I'm considering expanding my usage so that it becomes my daily driver for software development. However, I have no idea how I'd make it so that I could use different plugins for different filetypes which, I'd assume, would be necessary. Am I overcomplicating this? What would the usual workflow look like? I'll be working with:
Please note, I'm not asking for how to set it up for each of these languages, that would be far too much for one question, just how to have different configs for each language without having to manually swap config files in and out. |
Posted: 23 Jul 2022 09:32 AM PDT Firstly, my knowledge of routing and network architecture is basic. I apologise if this is extremely low level. I have a raspberry pi with two interfaces - eth0 and ppp0 . The pi is also hosting dnsmasq, running dhcp and dns server. My "main" network is running on eth0 - my gateway address is 192.168.0.1 and pi is 192.168.0.2, with other devices connecting on 192.168.0.1xx. I have also now successfully been able to connect external devices via ppp interfaces (xl2tpd and IPsec). The IP address of the pi on this interface is 192.168.20.1, and peers connect on 192.168.20.2. However when I connect I cannot see anything behind the 192.168.20.1 server. I would like to route to my internal network and ultimately through the default gateway (192.168.0.1). I am not 100% whether this should be a routing solution of forwarding. However my gut is saying that routing is probably the best solution! I apologise if this is a little bit muddled, if you require any further clarification please let me know. I am just fried trying to solve this, and have tried to create static routes with no success! Any help would be greatly appreciated! |
is it possible to use wireshark to capture https request that send from localhost node server Posted: 23 Jul 2022 08:59 AM PDT I am trying to use wireshark to decrypt the https request. I have tried to write the tls key to local folder by setting: it works fine when I using google chrome to access the https website. But I could not capture the http request that send from localhost Node server. is it possible to capture the https that send from localhost Node server? what should I do to make it capture success? The full http workflow look like this: |
How to view OpenVPN connections? Posted: 23 Jul 2022 09:13 AM PDT I want to view the open connections between my OpenVPN client and server via the server. Not sure how to do this as tcpdump does not show anything, yet OpenVPN is working and running. Again, when SSHing into my OpenVPN servers, all I can see are my SSH packets being sent over and nothing for OpenVPN. Why? Thanks! |
Posted: 23 Jul 2022 08:41 AM PDT Here is my file which contains three columns and separate by "\t", and the delimiter of the second column is a space I want to get the first file which the second column contains multiple elements and then I want to get the second file like this Actually, i have tried that but it looks like didn't work. Can you give me some advice? thanks. |
Why bash histroy rewrite IP and User data Posted: 23 Jul 2022 10:41 AM PDT I'm use HISTTIMEFORMAT like this: and in .ssh/authorized_keys And when I'm login by 1 rsa, I got in history: When I'm loggin by 2 rsa: How you can see $USER_FIO from .bash_profile rewriting at any connection with different keys and env. I expect no rewrite user logins: |
Posted: 23 Jul 2022 08:04 AM PDT I have a question mostly related to hardware, if by any chance someone have an idea I might try. I was experiencing random crash lately, 2/3 times a day, and logs pointed out GPU errors. Never really the same, mostly: So after going down the rabbit hole, updating mesa, amd drivers and co. I figured out the problem started when I changed my RAM... And enabled XMP. Previously my RAM were 2400 MHz and I upgraded to 3600 MHz (supported by my MOBO). Some specs:
So everything worked great with my previous 2400 MHz and not with my 3600 MHz with XMP. Now I run without XMP at 2133 MHz, but no freeze. So I guess it must be a XMP parameter of some sort, some kind of under voltage. Well, I know nothing about that, just used my BIOS to do it automatically. |
Posted: 23 Jul 2022 08:01 AM PDT Is there a way to have a terminal specific alias? For example: I want to use "vim" and "nvim" to refer to vanilla vim on terminal.app but I want "vim" and "nvim" to refer to NeoVim on Iterm2. |
Which is more reliable, $DESKTOP_SESSION or $XDG_CURRENT_DESKTOP Posted: 23 Jul 2022 07:42 AM PDT Which environment variable has better support. I know that desktops like GNOME or Plasma will definitely support both, but for other sessions (like i3wm, LXDE or enlightenment), which one would have better support / standardisation? |
NixOS: Ensure root-level folder exists Posted: 23 Jul 2022 07:56 AM PDT At work we tend to keep our large code workspaces under a /scratch folder. Is there a NixOS option to declare such a folder/file should exist? I know about environment.etc which will setup symlink from /etc into the nix store. Otherwise I'd have to resort to declare some systemd boot-up script, doing mkdir -p and so on - which feels ugly. |
Btrfs and lack of free disk space Posted: 23 Jul 2022 08:00 AM PDT Good afternoon! I was in the process of writing files via Can you please tell me how to make the system work again? Judging by the output of the du utility, I should still have about 150 GB. Additional info: Update: Update 07/17/22: How do I know what the 511.92GiB is made up of? EDIT 7/23/22: I deleted some timeshift snapshots, the used disk space decreased, now it shows the following data: In general, deleting some of the snapshots helped, after that the timeshift showed a display of busy disk space. A screenshot is attached: Unfortunately, btdu did not answer the question of what makes up the 388 Gb of occupied disk space, as in the conclusion attached above: Maybe the problem is that btdu gives approximate results? I didn't wait for the program to finish it ran for a few minutes. |
Keyboard not working during Debian Install on LG Ultra laptop Posted: 23 Jul 2022 11:13 AM PDT During install of an LG ultra laptop ( 17U70P ), the mouse work correctly, but the keyboard stop reacting after booting into "Graphical Install". I was looking in the bios configuration, and found not specific option that could enable or restore this situation. The keyboard is required to connect to the wifi (I have an additional USB with the firmware). I have no external keyboard to test. How to get the laptop keyboard working during install? Related question, which did not solved my case: USB keyboard doesn't work with Debian installer Did not worked, the first freeze, while the second keeps the keyboard not working. |
initramfs got corrupted/ misconfigured, how to boot properly? Posted: 23 Jul 2022 07:32 AM PDT How to boot properly, fix the boot loader? Why my initramfs-fallback have higher size than newly created? (use mkinitcpio instead update-initramfs on arch) The initramfs is always missing for 8 month i just do via recovery fallback initramfs. What I notice is, even i do kernel update, it still missing. I assume it will be fixed when the newer kernels do post-transaction things. I do use dual boot, both arch and on a different drive (HDD and SDD). |
Joining hosts to freeIPA without changing hostname Posted: 23 Jul 2022 08:45 AM PDT I've been asked to join linux hosts in my company to I am wondering if there is any idea to implement such a thing (like alias name for hostname or something)? |
How do I add a command to zsh history? Posted: 23 Jul 2022 07:02 AM PDT I'd like to use a zsh script to append a command to the command history so that it appears when I hit the up arrow. I've been appending a line to ${HISTFILE}, and it shows up there as the last line, but the up arrow action appears to ignore it. I see that zsh maintains a session history in parallel to the history file, but I haven't yet seen a way to add to it, or to otherwise accomplish what I'm setting out to do. Is there a way to do it? |
Posted: 23 Jul 2022 08:30 AM PDT Is there a way to use strace to just show a process's stdout? I know I can do
but that shows calls to write(2) to multiple file descriptors. When reading the man page I also saw the
Basically, I want the output of the first command ( |
how can I set a right click and open terminal in context menu Posted: 23 Jul 2022 11:00 AM PDT I am using Debian 10.1 See the following screenshot. I am used to a Ubuntu environment where I do a right click and terminal opens. Is this kind of a thing possible for Debian environment. If it is possible please let me know how can I enable it? If the same can be added to context menu like in the screenshot I see following three options edit based on discussion below package gnome-tweak-tool and nautilus-extension-gnome-terminal were installed. Then when required setting were not found as in videos here Still the desired results have not been achieved. What I want is I do a right click on any area on my desktop and in the context menu I want to see an option to open terminal. |
Unable to install Mongodb on linux mint Posted: 23 Jul 2022 08:06 AM PDT I cannot install Mongodb on my linux mint. Operating System: Linux Mint 19.1 Kernel: Linux 4.15.0-50-generic Architecture: x86-64 I followed official documentation. Import the public key used by the package management system Create a list file for MongoDB Ubuntu 18.04 (Bionic) Reload local package Install the MongoDB package $sudo apt-get install -y mongodb-org While installing got these errors: Tried to start the DB The code below gives the same error: Unable to remove mongodb-server-core: |
How to use existing partitioning when re-installing Debian? Posted: 23 Jul 2022 07:02 AM PDT I have Debian/Windows dual-boot laptop, and I want to re-install Debian on it, leaving the Windows partition untouched. Basically, I want to leave the specification for all the partitions the same. I just want the new Debian installation to completely overwrite the old one. When I get to this dialog in the installation sequence, I am not sure how to proceed to achieve the goal above: The settings above are already the way I want them, but if I select and click Continue, the installer complains with
If I select #5 or #6, the installer requires me to re-specify all the configurations for each partition, without telling me what their current settings are. Since I don't know how these partitions are currently configured, I cannot replicate these configurations from memory. What steps should I follow to retain the partition specs as they are, and just overwrite the current Debian partition(s) (#5 and #6 in the listing above) with the new Debian installation? |
Should isohybrid work on all iso media, for example Windows 7? Posted: 23 Jul 2022 09:54 AM PDT I have a an original Windows 7 Professional x86 iso file, straight from Microsoft. I want to make a bootable USB from this ISO. Some sources suggest that I simply dd the iso to the USB, but I don't see how that should work. The ISO's first 32768 bytes (reserved as System Area on ISO 9660 media, to be used fx for MBR) are all zeroes, so there is no MBR or anything for the BIOS to read. So as far as I can understand, one way is to add a MBR in this System Area, so that the ISO can be both dd'ed to a USB or written to an optical media, and be bootable from both. I think the tool isohybrid should do that trick. I don't know how it works, so I can't figure out if it should just work for all bootable (ie bootable if written to optical media) ISO 9660 files. Or does it only work for some specific/familiar iso files? At least I can't make it work with my Windows 7 iso. I get the following error: |
Configuring device's wifi settings through SSH Posted: 23 Jul 2022 09:01 AM PDT I just unpackaged a NVIDIA Jetson TX2 running Ubuntu 16.04 today and I am connecting to it with SSH while it's plugged in to my router via ethernet. I'd like to configure the TX2 to automatically connect to my wifi network so the physical connection is not necessary. I was hoping that copying my wifi config file located at Is there a way I can, through an SSH connection alone, setup the TX2 to automatically connect to my wifi on boot? Edit: I'm seeing posts like this one and this one which seem like they might lead me down the right path (modifying |
Posted: 23 Jul 2022 10:03 AM PDT . I am encountering the issue with my yum command. It seems to be exactly the same as the issue described on this site, Yum corrupted on CentOS 6.2, Problem importing one the python modules This will be the error produced whenever I execute the yum command. However I am able to run # python2 , which is located in These are the modules yum import:
|
Equivalent of update-grub for RHEL/Fedora/CentOS systems? Posted: 23 Jul 2022 09:07 AM PDT In Ubuntu (and I guess in Debian too) there is a system script named Is there any similar command for Red Hat based distributions? If not, how do the system knows where is the grub configuration file to update when a new kernel version is installed? |
How to view the output of a running process in another bash session? Posted: 23 Jul 2022 08:37 AM PDT I have left a script running on a remote machine from when I was locally working at it. I can connect over SSH to the machine as the same user and see the script running in It is simply outputting to stdout on a local session (I ran Is there anyway from an SSH session I can view the output of this running command (without stopping it)? So far the best I have found is to use Can anyone improve on this? The obvious answer is to restart the script with redirection or in a |
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 |
Inbox too full? Subscribe to the feed version of Recent Questions - Unix & Linux Stack Exchange in a feed reader. | |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment