Recent Questions - Unix & Linux Stack Exchange |
- Linux mint 20 Crash caused my multiple GPU?
- Trying to mount a samba share over a dedicated peer-to-peer ethernet connection
- init unable to find root device on computer in restoration
- Locate scheduled task on Ubuntu VPS
- "sudo apt update" fails to download packages
- Auto input text to interactive "Dialog prompt"
- How to copy an entire line which matches the string and paste right after it with prefix?
- ldconfig does not include libs in /usr/lib/x86_64-linux-gnu
- How to get my guest to keep the correct time and date?
- dc and standard input or heredoc with string command?
- Power suspend not working in Void Linux
- Is it possible to have two sources for a mount?
- ;ls bash: syntax error near unexpected token `;'
- Triple Boot Debian 10, Fedora 33 and Windows 10 with GPT and (U)EFI
- How can I print output of ps command with its column name?
- Manipulate linux workspaces with scripts
- Only first slot password is valid during decryption of boot device while all others are valid while testing to open a device
- How to resize partition with "raid" flag
- Turn off GNOME themeing/layouts in programs
- thread profiling and monitoring
- Use GNU Parallel when file has a single (long) line
- Command line for editing a configuration file value without an interactive editor
- sane, can't find my scanner (permission problem) even if I added udev rules unless i use sudo
- failed to start postfix.service: Unit not found
- Disk io stat “averaged” over a period of time
- Visualizing dependencies coded up in makefiles as a graph
- Can't get RealVNC to work with LightDM
- The name > org.freedesktop.PolicyKit1 was not provided by any .service files
- How to configure swap space after system installation?
Linux mint 20 Crash caused my multiple GPU? Posted: 06 Apr 2021 10:39 AM PDT I need help diagnosing a system crash. I have had 2 crashes since I installed my new GPU on 3/18/2021. I installed a GT710 along side my GTX 1070. Neither of the crash reports indicated anything about it being the GPU. Any help diagnosing the problem is greatly appreciated. I have been training machine learning models non-stop for a couple of weeks now and it is very frustrating to lose days worth of computations. This is the Output of journalctl: When my system crashed the screen was stuck at 11:53 am, but the last log is the DNS failure from 11:50am Here is the output of my car/log/sys.log.1 when I grep for "error": I am going to try and update my NVIDIA drivers and see if that helps. If I have another crash I will update here. Thank you for any help |
Trying to mount a samba share over a dedicated peer-to-peer ethernet connection Posted: 06 Apr 2021 10:21 AM PDT So, I have a NAS running windows server (a bunch of drivepool drives form the share), and a content management server which handles plex and a few other services. The content server runs arch. I have an SMB share which I want to be able to access from the entire network, but I also have an ethernet cable forming a peer-to-peer link on the second network port of each server. I want to use those second interfaces to form a peer-to-peer link so I can mount a share (either the same SMB share, or an NFS share) over a dedicated link, without cluttering my switch or other links. I've manually allocated both ends of the link with 172.31.254.1/30 and .2/30 IPs (yes, I know that's a waste of address space, but I don't really care for this use case), but I can't get the share to mount from the x.1 IP, just the router-facing IP. I've tried to set up a manual route on linux, but it doesn't seem to fix the problem, so I'm thinking there's something I'm missing (likely my knowledge of Windows is insufficient) Any ideas how I could accomplish this? |
init unable to find root device on computer in restoration Posted: 06 Apr 2021 10:01 AM PDT I'm a bit out of solution on this one : I am restoring an old computer (15 years old...), which was running archlinux. I have inadvertently erased the pacman package database (and all /var ...), and I am trying to make it boot again without reinstalling (there are some /etc other stuff I would like to keep...). I has no support for EFI, grub is installed on the disk mbr, with its configuration on a dedicated /boot partition. I have used a Manjaro live cd to chroot into it and upgrade the base, linux, and all the fundamental packages (I would like the system to boot so that I continue reinstalling the other packages from the running system). However, I can't get a working initramfs. I have tried multiple times to do the whole I've tried to edit the command line from grub, but neither the What could I have missed ? Is there some files (not tracked by pacman) from outpackage that could interfer ? Which package should I force reinstall to get a working initramfs ? (EDIT) initrd doesn't give much (only the traditional The grub installation is simple The grub command line is : EDIT2 I was able to plug PS/2 keyboard, and I can use the emergency shell now... In /dev, there is no hard drive listed. I guess this is why it can't find the root fs... |
Locate scheduled task on Ubuntu VPS Posted: 06 Apr 2021 08:45 AM PDT I had a python scraper running on my VULTR Ubuntu VPS. It is supposed to run non-stop. It stopped for some reason, so I rebooted the machine, However it still doesn't run. I cannot find the python file, all I see is a |
"sudo apt update" fails to download packages Posted: 06 Apr 2021 09:58 AM PDT When trying to do Version of debian: What I've tried so far:
I have read lots of articles but none of the mentioned solutions worked for me. Any help would be appreciated |
Auto input text to interactive "Dialog prompt" Posted: 06 Apr 2021 08:30 AM PDT I want to autoinput passphrase in gpg prompt for password. Its a Dialog box based prompt. Hence, I dont want to use expect. If any solution available plese answer |
How to copy an entire line which matches the string and paste right after it with prefix? Posted: 06 Apr 2021 10:14 AM PDT I am trying to search for a particular line in a file using Now I want to copy the entire line to a new line right after the original line. In other words, the original line should be followed by the new line with same content with some prefix. For example: Original data : Say if I want the new data to look like Note: I have multiple patterns with I tried to Thanks |
ldconfig does not include libs in /usr/lib/x86_64-linux-gnu Posted: 06 Apr 2021 08:01 AM PDT I need to use Here my My
Here a little part of As you can see I don't get any libs from I already tried to delete (Here why I need |
How to get my guest to keep the correct time and date? Posted: 06 Apr 2021 09:39 AM PDT I'm running windows 10 inside gnome boxes (on fedora) which, while kinda slow, works well enough. However, after closing and reopening boxes, it appears that windows just continues where I left off. Now, of course that's what it should do, but it also keeps the time and date from where I left it and when I'm not connected to the internet, it can't grab the correct time from network. Now, I can either set the correct time by hand, or always "correctly" shutdown and boot windows to fix it, but I was wondering if there's a way to provide a time server for windows/boxes guests inside the virtual network that boxes is running. Reason I'm asking: I need windows for some software to read data from meteorological stations, so I'm in the sticks, not connected to the internet and this software apparently depends on correct system time to be able to download data. If my windows thinks it's one week ago, I can only download data from one week ago. |
dc and standard input or heredoc with string command? Posted: 06 Apr 2021 08:59 AM PDT
Now, if I try with a I get the same with standard input : The command ? get the |
Power suspend not working in Void Linux Posted: 06 Apr 2021 08:56 AM PDT I am working on Void Linux with XFCE4 which is updated and otherwise working very well. Earlier, when I pressed "suspend" button from XFCE4 log-out menu, the computer would suspend properly - screen goes blank, no disk activity and power button used change from ON to blinking state. Then on pressing spacebar, it would wake up, power button would become ON again and desktop would be restored on screen. Recently, however, there is a problem. On pressing "suspend" button, the screen goes blank but disk activity continues and power button remains ON (not change to blinking). Moreover, on pressing spacebar, desktop is not restored and I have press to the restart button or switch off the computer and then switch on again. Memory and swap status on my desktop can be seen from output of I tried to search the internet but found mainly pages which describe solutions involving Since the computer goes off, I can check output of command: Where could be the problem and how can it be solved? Thanks for your help. Edit: As suggested by @JiriB in comments, I tried
|
Is it possible to have two sources for a mount? Posted: 06 Apr 2021 10:27 AM PDT I have NAS which is accessible via both SMB and FTP. I currently have the share mounted on my Fedora 33 laptop using curlftpfs, but I'd like to know if it's possible to configure it to first try mounting the share using SMB and fall back to curlftpfs if that fails. This way it would mount using the much faster SMB protocol when I'm at home and only fall back to the slower FTP protocol when I'm not connected to my home network. EDIT: I'm using SystemD Automount to manage the mount. This is how my mounts are specified in |
;ls bash: syntax error near unexpected token `;' Posted: 06 Apr 2021 10:33 AM PDT after typing I got this return - how do I fix this? |
Triple Boot Debian 10, Fedora 33 and Windows 10 with GPT and (U)EFI Posted: 06 Apr 2021 10:30 AM PDT Situation: Hardware is Lenovo Laptop with: -1 physical 1TB SSD disk -UEFI BIOS (version H3ET65WW 1.02) -BIOS Startup tab settings: UEFI/Legacy Boot- UEFI Only & CSM Support set to Yes -Boot Priority order- 1.debian 2.fedora 3.Windows Boot Manager 4. ATA HDD0 Samsung SSD 1TB Operating systems installed by chronological order: Problem: Debian's Grub does not recognize Fedora'a boot partition (although it is there). I understand why- It has not have access to it. Result-> can't boot Fedora Desirable situation: Debian's or Fedora's Grub menu with Debian, Fedora and Windows entries I can boot Debian 10 and Windows 10. As mentioned earlier, I can not boot into Fedora 33. So, to summarize:
I understand why debian's grub doesn't "see" fedora's boot partition (permissions, right?). Is it fedora's btrfs format that causes debian's grub not to see fedora kernel (if so, should I reinstall fedora's root and home partion as ext4 filesystem?) Could I add fedora in debian's /etc/grub.d/40_custom file and will the debian/fedora update wipe out these entries (if so, what to add? Fedora's kernel file path?) I'm new to UEFI&GPT setup and to btrfs. I've searched the web and arch's wiki on partitioning is very informative, but not applicable to this situation. Any help or link to manual/tutorial is appreciated... If I have to, I can and will reinstall all 3 systems all over again, since there are do data on that laptop. EDIT after these steps being done (see comments below post): From Debian 10 did: sudo apt install lvm2 then: #grub-install --target=x86_64-efi --efi-directory=/boot/efi/EFI/fedora --bootloader-id=fedora --recheck output: Found background image: /usr/share/images/desktop-base/desktop-grub.png Found linux image: /boot/vmlinuz-4.19.0-16-amd64 Found initrd image: /boot/initrd.img-4.19.0-16-amd64 Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi Adding boot menu entry for EFI firmware configuration done So now grub (grub2) offers me only Fedora 33 and Windows 10 which I can both boot. But now I'CANT boot Debian. So booted into Fedora. I then did: #os-prober and it finds Windows and Debian. Then I did: sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg and it stated it has created entries for windows and debian. After reboot, same situation- only Fedora and Windows. But, in /boot/efi/EFI/grub.cfg , under BEGIN /etc/grub.d/30_os-prober section there is only Windows boot entry. menu_auto_hide variable (auto unhide) is set to 2. |
How can I print output of ps command with its column name? Posted: 06 Apr 2021 10:18 AM PDT In the CLI of RHEL 7.6, ps command shows many columns of output. I can guess meanings of some of them but do know all of them. Can I show the results of ps command with its column name? |
Manipulate linux workspaces with scripts Posted: 06 Apr 2021 09:18 AM PDT I want to write a script(s) that lets me manipulate Linux workspaces on my computers. I'm looking for compatibility with EWMH/NetWM compatible X Window Managers. I currently use Now I would like to be able to get a list of current workspaces, so I can compare to my desired workspaces and be able to move to, add, or delete workspaces as necessary -- and do it all with scripts and not GUI tools or keyboard commands. I've tried various search terms, but the best I can seem to find apply to Mac OS and that is using an unmaintained program. |
Posted: 06 Apr 2021 09:50 AM PDT I made a full encryption setup of Ubuntu 20.04 LTS according to this article. Due to it is highly recommended to add further passphrases to avoid loosing all data due to unavailability of the initial passphrase, I did so, by adding several passphrases using The problem is that while booting and trying to unlock the master key (GPT) I can use only the first entered passphrase. Others are not working, while they are OK if checking it after system load by using Are there any known issues regarding this have been ever heard before or maybe there are some things that were our of my scope? UPDATE:
But for some reason this doesn't work. |
How to resize partition with "raid" flag Posted: 06 Apr 2021 09:10 AM PDT Keep in mind that this question is not about how to resize/grow a RAID array or RAID partition. I have a 4 TB partition ( I want to resize that partition to use the full 8TB HDD without loosing the data in the partition. If this would be a usual filesystem (e.g. Of course a "simple" Background info: The RAID1 currently has no second device/partition - it is missing. In the last consequence I want to grow the "higher-level" RAID1 partition ( |
Turn off GNOME themeing/layouts in programs Posted: 06 Apr 2021 09:51 AM PDT I have a few applications that involve tabs to organize their content. Cockatrice and ReText seem to use gnome theming for themselves even though I am using MATE as my DE. This wouldn't be a problem except the tabs in GNOME I don't like at all. I know some applications such as Lutris is built for GNOME and their isn't a way to turn this off but in these cases I have looked up images and it isn't built into these apps. Is their some way to turn the GNOME styling off? |
thread profiling and monitoring Posted: 06 Apr 2021 08:18 AM PDT how can I get lock time values specifically of the threads of any process? in linux.. I was using the command /proc/pid/stat but I am unable to determine which values are of lock time. |
Use GNU Parallel when file has a single (long) line Posted: 06 Apr 2021 10:16 AM PDT I have a file which is an HTML document, containing a This file has I managed to extract the data into a csv by using My attempts below have not increased processing speed nor improved memory usage: Or I'm guessing the problem is because the file has a single line. If so, what strategies could I used to process the file more efficiently? |
Command line for editing a configuration file value without an interactive editor Posted: 06 Apr 2021 10:27 AM PDT Many configuration files are based on the format I'm wondering if there is a tool that allows to change that kind of files without the need to open an interactive editor and more high level than That would be something as simple as : It would find the key in the file, remove the comment sign(s) if any, change the value and save the result. |
sane, can't find my scanner (permission problem) even if I added udev rules unless i use sudo Posted: 06 Apr 2021 09:37 AM PDT My AIO Printer/Scanner is Canon E400 but I can't find my scanner as a normal user, only with sudo & scan is also work with sudo I also added this to /lib/udev/rules.d/60-libsane.rules but it still doesn't work |
failed to start postfix.service: Unit not found Posted: 06 Apr 2021 09:02 AM PDT I just got my own VPS with CentOS 7, and I'm trying to install GitLab on it. I'm following the instructions listed here. My problem is the command Then when I run the start command, I get the following error:
I've tried to Google the error, but all the results I've found were other issues. I'm new to this. Am I missing something really silly? |
Disk io stat “averaged” over a period of time Posted: 06 Apr 2021 08:08 AM PDT I am using the iostat utility on my RedHat Linux server to monitor the performance of a disk. When I use "iostat -xd sdh 1", I get the perf result printed every one second. When I use "iostat -xd sdh 5", I get the perf result printed every five second. My feeling is the latter command is printing a snapshot of the perf every five second, rather than averaging over the past 5 seconds. Am I correct in my understanding? If so, is there a way I can make iostat print the perf. number averaged over n seconds, or is there some other utility that will do that. Currently, the perf number is fluctuating within a range, and I want to get a somewhat "stable" number. I am hoping that averaging over a period of time will give me such a number. Thank you, Ahmed. |
Visualizing dependencies coded up in makefiles as a graph Posted: 06 Apr 2021 10:28 AM PDT Closely related to How to display dependencies given in a makefile as a tree? But the answers given there is not satisfactory (i.e. do not work). Is there a tool to visualize the Directed Acylic Graphs (DAGs) coded up in standard Makefiles? eg, a shell-script for post-processing through Unix pipes can be an acceptable solution as well (maybe there is a pandoc filter to convert MakeFiles to graphviz or LaTeX). I don't strictly need a tool that directly typesets this graphical visualisation? Just a common file-format translation of the makefile to a graph-viz file or something similar would suffice. |
Can't get RealVNC to work with LightDM Posted: 06 Apr 2021 10:06 AM PDT As far as I can tell GDM3 is incompatible with RealVNC so I uninstalled it and I installed LightDM. However now I can't get anywhere when I try to connect to RealVNC. What I did before was run: ... and it opened up a VNC server on port 5901 to which I could connect. I still can, but now it displays the message: I'm guessing I need to make changes to my Any ideas what I need to change to get my RealVNC session to connect to LightDM? |
The name > org.freedesktop.PolicyKit1 was not provided by any .service files Posted: 06 Apr 2021 10:27 AM PDT When attempting to launch
yum list polkit* What is missing from my system to cause this error? |
How to configure swap space after system installation? Posted: 06 Apr 2021 09:52 AM PDT I've installed Debian Wheezy; after installation completed, I realized that I forgot to set the swap memory. So now, how can I configure the swap space? |
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