date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,492,630,278,000
I'm using a graphics card on some machine to which I don't have physical access. With lspci I can tell its: 84:00.0 VGA compatible controller: NVIDIA Corporation GM200 [GeForce GTX TITAN X] (rev a1) but which vendor/manufacturer's card is it (e.g. ASUS, EVGA, etc.)? How can I find that out (either as a root or non-ro...
As root or non-root, run lspci -v -s 84:00.0 and look at the "Subsystem" line, that will usually give you the name of the manufacturer. That uses the bus identifier you found already; for a more generic form, lspci -v | grep -A1 VGA will show the relevant information for any graphics adapter installed in your system....
How can I tell who manufactured my graphics card (as opposed to the GPU)?
1,492,630,278,000
My system has a GPU and a shared video memory. I'm using Fedora 27. Some important lines from lspci output is as follows. 00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b) 0a:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun LE [Radeon HD 8550M /...
There are a number of issues here. First, applications can support a variety of rendering methods, e.g. OpenGL and software rendering. If an application renders in software, then no hardware acceleration will be used at all (or minimally, e.g. for blitting operations etc.); this is usually what happens when you select...
How to check an application is using hardware or software based display rendering?
1,492,630,278,000
Looking Glass is an open source application that allows the use of a KVM configured with a passthrough GPU without an attached physical monitor, keyboard or mouse. In Looking Glass terminology, the host software is the term for the piece of Looking Glass that runs in the VM guest (the VM where the GPU is used). The cl...
I am the Author of Looking Glass. The project already has Linux guest support as the host application is agnostic and can be built for both. Please note though that the support for the Linux guest is currently lacking features such as cursor support, etc.
An equivalent of Looking Glass where VM side runs Linux?
1,492,630,278,000
Is there general purpose GPU support in the Linux kernel? Let me explain in more details since it's too broad of a topic. By the word "capable" I mean native support. That crosses out OpenGL AND OpenCL as those are just APIs to help code applications in user mode. Some common misconceptions are that since super compu...
Just a note, the idea of the kernel having to virtualize and context-switch hundreds of GPU registers is horrifying and the kernel is doing nothing that could benefit from using them itself. There is code in the kernel to manage sharing GPU resources among processes (more of that code is migrating into the kernel ste...
Is mainline Linux kernel capable of GPGPU programming?
1,492,630,278,000
I have been experiencing random system crashes on your Linux PC, accompanied by a small white light flashing on my graphics card. This issue occurs regularly, but not consistently, and tends to happen within the first 20 minutes of use. I noticed this issue started occurring after I installed a secondary OS (Linux) on...
A "small white light" on a modern high-performance GPU is most likely related to power input, although you'd want to check the GPU vendor's documentation to be sure. Which power supply are you using, and how old is it? Maybe adding a secondary HDD put your power supply right at the limit of its capability. At times of...
Troubleshooting Intermittent System Crashes on a Linux PC with Flashing Graphics Card Lights
1,608,140,233,000
When I go to the "About" window of elementaryOS I see this: Why doesn't it display the actual consumer-facing name of the GPU (Intel® Iris® Plus Graphics 640)?
This happens when your system’s PCI id database doesn’t have a description for your graphics device. The current upstream database does know about the Iris Plus Graphics 640, so updating the database should fix things: sudo update-pciids
Can I see an actual model of my Intel GPU in my distro's About screen?
1,608,140,233,000
I'm Ubuntu user and i'd like to install windows and get directly access to gpu (NVidia 1060 6 Gb) to unity 3D and gaming, i've read a lot of information about this possibility on internet but i didn't find something usefull. I've tried to use virtualbox - in virtualbox it's impossible to to something like that, i've i...
You can do this in VirtualBox with the Guest Additions installed. It requires a processor with virtualization instructions and the instructions enabled in BIOS. In the VirtualBox manager, adjust the settings of your VM by going to Settings → Display → Screen and ticking the following checkboxes: ☑ Enable 3D Acceler...
Is it possible to use gpu directly from virtual machine on ubuntu?
1,608,140,233,000
My /proc/meminfo shows about 500 MB is allocated as Shmem. I want to get more specific figures. I found an explanation here: https://lists.kernelnewbies.org/pipermail/kernelnewbies/2013-July/008628.html It includes tmpfs memory, SysV shared memory (from ipc/shm.c), POSIX shared memory (under /dev/shm [which is a...
Edit: there is an interface for kernel debugging purposes only. It is only accessible by root and is not stable. It might be rewritten, renamed, and/or misleading if you are not a kernel developer. (It might even be buggy, for all I know). But if you have a problem, it might be useful to know it's there. My i915 d...
Can I see the amount of memory which is allocated as GEM buffers?
1,608,140,233,000
I have an Apple MacBook that is running a Linux From Scratch system that I have built. It is a minimal system, just booting into a bash prompt, with no X Window System installed. The graphics chip is an Intel GMA 950, which uses the i915 driver. Previously, I had it booting up into the framebuffer console; however, I ...
To post an answer to my own question: The reason it wasn't working was because the fbcon module wasn't being loaded during boot, even though it had been built and installed. Running modprobe fbcon to load the module immediately made the console appear on my screen. I have added fbcon to /etc/sysconfig/modules and it's...
How can I get my framebuffer console working?
1,608,140,233,000
I have "radeon" and "amdgpu" drivers installed. I want to switch to amdgpu from radeon but I don't know how can I do that. lspci -v | grep driver: Kernel driver in use: radeon lspci -v | grep modules: Kernel modules: radeon, amdgpu How can I switch to amdgpu? Thanks.
The recommend method will depend on what Linux distribution you are running. But one thing that should work is to blacklist the radeon module from running. In /etc/modprobe.d, create a new .conf file, and give it the following contents: blacklist radeon
How to change in use driver linux
1,608,140,233,000
I'm doing some research that has to do with GPGPU resilience with NVIDIA graphics cards and I've been looking for a way to, as accurately as possible, simulate hardware failure. I know about cudaDeviceReset() and using intentionally failing asserts() within the kernel; correct me if I'm wrong but I don't think these a...
You can manipulate some of the pci bus registers of the device fairly easily with setpci. Note: this is dangerous and may crash your system! For example, find the pci bus and slot for your graphics board: $ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integ...
How to simulate GPU hardware failure?
1,608,140,233,000
I am working with an embedded board which includes an Intel Atom N2600 processor and a GPU GMA 3600 series based on the PowerVR SGX 545 graphics core (developed by Imagination) [Link1]. As far as I know, Intel just offers Windows 7 support for its GPU through a driver in Link2. In my case, I am working under Linux, so...
Videocards of this series always have troubles with Linux support. I know that Fedora 17 supports CedarView chipset (with gma500 driver). Ubuntu 13.04 with community driver supports too. Or Ubuntu 12.04.1 with proprietary driver. I found some useful information about Arch support. But if you want 3D-video decoding...
Intel GMA 3600 Linux support
1,608,140,233,000
On my system I'm unable to install the recommended graphics driver, so something must be wrong with my installation. The GPU chipset is ATI ES1000, but the recommended driver is NVIDIA NVS300 downloaded from the server vendor's site. The maximum graphics resolution of the onboard graphics controller ATI ES1000 wit...
The ES1000 is built-in to your motherboard, the NVS300 is an optional extra. Which is why are you getting an error message saying NVRM: No NVIDIA graphics adapter found! The text you quoted says that if you want higher resolution than what the ATI ES1000 supports, then you can install an Nvidia NVS300, which is a com...
Unable to load the kernel module 'nvidia.ko'
1,608,140,233,000
On a server with Tesla Nvidia Card we decide to Restrict user access to GPU. In our server 2 GPU. # ls -las /dev/nvidia* 0 crw-rw-rw-. 1 root root 195, 0 Dec 2 22:02 /dev/nvidia0 0 crw-rw-rw-. 1 root root 195, 1 Dec 2 22:02 /dev/nvidia1 I found this solve Defining User Restrictions for GPUs I create local group...
nvidia provides the way to set the group ID of its special device files without needing to resort to whatever extra somber script : Whether a user-space NVIDIA driver component does so itself, or invokes nvidia-modprobe, it will default to creating the device files with the following attributes: UID: 0 - 'root...
Restricting user access to nvidia GPU?
1,608,140,233,000
I've been trying to get my nvidia gpu (960m) to work on my arch install, but for now it doesn't. I use the nvidia drivers. I ran nvidia-config, which modified my xorg.conf, as Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "Unknown" Option "DPMS" EndSection...
I also have a 960m in my laptop and when first installing arch this was a massive pain to find all the resources i needed to fix it. A good place to start is https://wiki.archlinux.org/index.php/NVIDIA_Optimus My personal /etc/X11/xorg.conf looks like this: Section "Module" Load "modesetting" Endsection Section "...
Nvidia GPU not used
1,608,140,233,000
I've just installed the mint 19 cinnamon on my acer aspire 5830TG as a second OS alongside with win7 and immediately have a very high temp readings: $ sensors coretemp-isa-0000 Adapter: ISA adapter Package id 0: +87.0°C (high = +86.0°C, crit = +100.0°C) Core 0: +76.0°C (high = +86.0°C, crit = +100.0°C) Core ...
Check your CPU heatsink ! ! Mine has disengaged from the mounting brackets, same symptoms ! Replace by a good model, select from the cpu type.
linux mint 19 cinnamon cpu temerature goes crazy!
1,608,140,233,000
So I'll describe the set-up, then the exact requirements and then the list of options I have tried and then I'll ask if their's a better approach or the best option among the ones mentioned. So we are a group of Machine Learning researchers, We have one very powerful workstation machine, and other decently powerful ma...
The best and simplest workaround was : Jupyter Notebook( to run the code on other machine) + SSH(access + using data transfer protocol) + using TF to assign GPUs.
Best way to share the resources of a powerful workstation across multiple users?
1,608,140,233,000
My graphic card is not recognized on my laptop with Debian Jessie installed and a Nvidia Geforce GTX 850M. glewinfo tells me it uses Mesa DRI with Intel (OpenGL 3.0) instead of Nouveau with the actual GPU (OpenGL 4.4+). nvidia-detect can't find my graphic card. lspci identifies my graphic card as a 3d controller wh...
The poster has a Nvidia Optimus laptop. It turns out, per the Bumblebee page on the Debian Wiki, that you need to do: apt-get install bumblebee-nvidia primus and remove any existing xorg.conf and prevent debconf from creating a xorg.conf during the installation of the packages above. @Spiralwise confirmed that this w...
My graphic card is not recognized on laptop/debian
1,608,140,233,000
My GPU is NVIDIA - GeForce RTX 3090 Ti, and the OS is Ubuntu 18.04. As my code didn’t work, I checked the versions of python, pytorch, cuda, and cudnn. Python: 3.6 torch. version : 1.4.0 torch.version.cuda : 10.1 (nvidia-smi shows CUDA version 11.3) cudnn: 7.6.3 These are not compatible with 3090 Ti, I successfully ...
Current driver seems to be causing black screen and freezing machine on boot. +-----------------------------------------------------------------------------+ | NVIDIA-SMI 520.61.05 Driver Version: 520.61.05 CUDA Version: 11.8 | |-------------------------------+----------------------+----------------------+ ...
Stuck at booting after upgrading
1,371,138,478,000
Recently I installed Mint Linux 15 (Olivia) 32 bit on my friends netbook. I am copy pasting the output of sudo lspci -vk 00:00.0 Host bridge: Intel Corporation Atom Processor D2xxx/N2xxx DRAM Controller (rev 03) Subsystem: Acer Incorporated [ALI] Device 061f Flags: bus master, fast devsel, latency 0 00:02.0 VGA compa...
A fellow owner of a Dell 3000 / Intel-865G provided me with the following solution. Create / edit / save this file ('vi', notepad, et al), /usr/share/X11/xorg.conf.d/00-xorg.conf that contains the following content: Section "Screen" Identifier "Default Screen" DefaultDepth 24 EndSection
Video acceleration disabled in Mint Linux 15 (Olivia) on an Intel Atom processor
1,371,138,478,000
The time has come for me to upgrade my aging gpu (9800 gt). The AMD 7950 has caught my attention because of the attractive price with pleasing benchmarks. But it is common knowledge that AMD GPUs have poor support on Linux. What sort of performance can I expect, with say, the latest version of Ubuntu? Will I have issu...
A generally good experience. I did have KDE problems (some minor crashes, really rarely) with my Radeon 7870, but this never happened on Ubuntu with Unity. Installing the driver is pretty straightforward. I used the AMD installer to generate the .deb files and installed them by hand. Then I generated the config file...
How well will the AMD Radeon HD 7950 gpu perform on Linux?
1,371,138,478,000
I am working in RHEL 7 and I need to install the Nvidia driver for my GPU. I know I have downloaded the right driver from the Nvidia website. I have also installed the linux kernel packages and those are located in /usr as in /usr/include/linux/kernel.h It's become clear to me that the Nvidia driver is taking a path a...
/usr/include is the path for include files for user-space programs. The place where RHEL kernel-devel RPMs place the headers for compiling kernel modules is actually /usr/src/kernels/$(uname -r). The Nvidia installer should actually be able to auto-detect this, because there should be a symbolic link at /lib/modules/$...
Help with Nvidia driver install and --kernel-source-path
1,371,138,478,000
My system heats up when running Ubuntu, with no major processing tasks. I also run Windows 10, on the same machine, and it never heats up when on Windows, so we can rule out hardware issues. My best guess is a driver issue, since this problem started after I fiddled with my system in order to emulate a Nvidia GPU on A...
Nvidia drivers are causing problems with Ubuntu 18.04+. Uninstall Nvidia drivers and everything related to it. This solved my problem: sudo apt-get purge nvidia-*
My system is constantly processing something, heating up my laptop
1,371,138,478,000
I'm trying to create a shell script that installs a series of things for me. One such thing is iMod. I've located self-installing shell script for iMod and have run the following commands on my bash console: export IMOD_VERSION=4.11.12 export CUDA_VERSION=10.1 wget https://bio3d.colorado.edu/imod/AMD64-RHEL5/imod_${IM...
I had some time to try and reproduce your problem. Stock CentOS 7.9 minimal. Then: export IMOD_VERSION=4.11.12 export CUDA_VERSION=10.1 wget https://bio3d.colorado.edu/imod/AMD64-RHEL5/imod_${IMOD_VERSION}_RHEL7-64_CUDA${CUDA_VERSION}.sh sudo sh imod_${IMOD_VERSION}_RHEL7-64_CUDA${CUDA_VERSION}.sh Output: This script...
Installation of iMod on CentOS 7
1,371,138,478,000
I accidentally ended up using the Nouveau driver (as opposed to the proprietary NVIDIA driver) for my GPU today and was surprised by how well it worked. I am aware of the reclocking issue (that is, that the clock speeds are stuck low). Regardless, I'm considering switching to primarily using it, but I have one signifi...
ERROR: type should be string, got "\nhttps://wiki.archlinux.org/index.php/nouveau#Fan_control\nAs for the fan curve, man fancontrol :\nhttps://wiki.archlinux.org/index.php/fan_speed_control#Fancontrol_(lm-sensors)\n"
How do I set my GPU's fan curve when using Nouveau?
1,371,138,478,000
I'm trying to monitor AMD gpus in a system running AMDGPU-PRO 18.10 and linux kernel 4.4.0. I am reading values from: /sys/kernel/debug/dri/$X/amdgpu_pm_info where $X is a card index. I am also reading the pp_dpm_cclk values from another directory, found under /sys/class/drm/card$X/ I have 2 questions about this. Does...
First question the answer is Yes. /sys/kernel/debug/dri/0 is for card /sys/class/drm/card0 and so on.. Will this be true every boot/if I add or remove cards? Considering my personal case: I have 3 pcie x16 on my motherboard. This is order as they are physicaly on my board. PCIEx16 [================] bus 0000:65:00...
AMDGPU-PRO How to associate GPU stats found in /sys/kernel/debug/dri and /sys/class/drm/?
1,371,138,478,000
Is it possible do have basic (even just console) graphics on Linux, but without using the GPU (which, in this case, is fried and not replaceable)? Or would such a computer be limited to non-graphical uses only? EDIT: The computer I'm talking about is an iMac with a broken graphics card/GPU, but everything else workin...
Yes it is possible. The software you need is vnc (server and client). After the software is installed, you can remotely connect to a virtual desktop. Also you can use Xvfb.
Use Linux without a GPU [closed]
1,371,138,478,000
I am trying to get the Intel integrated GPU working with my Parabola (Arch variant) desktop PC. According to lspci, the GPU is: 00:02.0 Display controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09) I have reconfigured my xorg.conf files to point to it; however, when I run s...
Run sudo pacman -Fy to refresh your package file databases. i965_dri.so is in the mesa-amber package: ↪ pacman -F i965_dri.so multilib/lib32-mesa-amber 21.3.9-2 usr/lib32/dri/i965_dri.so extra/mesa-amber 21.3.9-2 usr/lib/dri/i965_dri.so
Problem using Intel integrated graphics GPU (Xorg)
1,371,138,478,000
In the Linux source code, specifically in linux/drivers/video/console/vgacon.c, there is a switch case block for cursor shapes. Each of these shapes are rectangles of the same width and varying heights. Clearly, Linux handles the height of the cursor, but does it handle the width? Does Linux choose the width, or does ...
In vgacon, the hardware chooses the width, and it’s always the full width of a character cell — that’s all that VGA supports. mdacon is similar, for the same reason. Other console implementations with cursor size handling can be found by looking for CUR_UNDERLINE. Some of them, such as fbcon, could theoretically suppo...
What handles virtual console cursor specifics?
1,371,138,478,000
nvidia-smi is showing as +-----------------------------------------------------------------------------+ | NVIDIA-SMI 440.33.01 Driver Version: 440.33.01 CUDA Version: 10.2 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp....
GPU-Util is the percentage of time, over the last sample period, during which at least one kernel was running on the GPU. 98% means that your GPU is being used nearly all the time, probably by gmx, so there might not be any spare capacity to run another compute task.
Can I load more process into GPU if RAM is free but GPU Util is showing almost full?
1,371,138,478,000
From What I've searched, my openGL renderer should show my discrete GPU but strangely, it shows my integrated GPU. Here is my lspci | grep -E "VGA|Display" 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02) 01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R...
You need to set DRI_PRIME value before running the programs. Example DRI_PRIME=1 glxinfo | grep OpenGL This is assumming you already set the proper provider related article : PRIME
Why is my OpenGL renderer shows my CPU?
1,371,138,478,000
I have a bunch of Centos workstations with different Nvidia cards. In the nvidia-settings interface, I need to enable this option: Force Full Composition Pipeline. This is then saved to /etc/X11/xorg.conf. It appears like this in the file: Option "metamodes" "DVI-D-0: nvidia-auto-select +0+0 {ForceComposi...
You can run this script at startup: nvidia-settings --assign CurrentMetaMode="$(nvidia-settings -q CurrentMetaMode -t|tr '\n' ' '|sed -e 's/.*:: \(.*\)/\1\n/g' -e 's/}/, ForceCompositionPipeline = On, ForceFullCompositionPipeline=On}/g')" > /dev/null If you want it to be executed on startup, you can drop those lines ...
/etc/X11/xorg.conf reset at each boot
1,371,138,478,000
Suddenly one of three monitors (DELL U2414H) stopped working. In nvidia-settings I can see 4 lanes instead of 2. It is the only visible difference between working and not working monitor configuration. Working: Not working: Sometimes, I have a similar issue with the wrong number of lanes, but 1 lane instead of 2. I...
Solved by buying a DisplayPort cable (not mini). Maybe the interface on the monitor was damaged.
Wrong number of lanes via DisplayPort, probably Nvidia GTX 1080 driver issue [closed]
1,371,138,478,000
I am working with (one of) my workstation(s) working under Scientific Linux 6, so, basically a quite old version of Red Hat Enterprise Linux. I would need to use 2 screens, but only have 2 DisplayPort and one VGA as outputs from my Intel IGP. I am unable to make the DisplayPort ports working, I guess because the driv...
It is the lack of support for the GPU in kernel (and likely also in X.Org video driver) which you need to somehow solve. Proper support for Sky Lake based GPUs in i915 kernel driver should be available from kernel 4.4 on. Then again, myself I still couldn't get a Intel GPU with device code 1912 working in Debian Jessi...
How to use the proper video driver on Scientific Linux 6 for Display Port screens?
1,371,138,478,000
I'm trying to help debug an issue with Mesa and the llvm r600 shader compiler, and would prefer not to install the test compiles of these packages system wide. My question therefore is: How can I install these two packages to my home folder and make applications use them from there? I've tried to compile llvm with --...
Debian's X Strike Force has a comprehensive guide to building MESA from source and running it without installing it (which effectively allows using it without installing it to a system path).
Install Mesa to home folder and make applications use it from there
1,371,138,478,000
GPU Passthrough Virtualization with KVM or VirtualBox For a research project I need to passthrough a PCI GPU from a Ubuntu Host to a Windows 8.1 guest. We need to test a certain setup, where the guest performs GPU intensive tasks. I tried to follow this tutorial with KVM and also VirtualBox. Now before we invest in ex...
The "DMAR: Disabling IOMMU for graphics on this chipset" message comes from the kernel, specifically http://lxr.free-electrons.com/source/drivers/iommu/intel-iommu.c?v=3.19#L4634. This quirk was introduced in https://lkml.org/lkml/2013/2/1/327 (the bugs linked from there give useful background information); apparently...
Linux GPU Pass-through Virtualization - Verify wich component causes trouble
1,371,138,478,000
I've installed Bumblebee with Ryan McQuen's crazybee.sh script, described here, and I'm actually able to startx successfully now (because Bumblebee uses the on-board Intel graphics by default), but when I invoke optirun to run a program with the Nvidia card, I get: [ERROR]Cannot access secondary GPU Failed to initial...
The issue was that the nvidia-kernel package of Bumblebee did not install, due to my lacking libvdpau.
[ERROR]Cannot access secondary GPU…Failed to initialize the NVIDIA kernel module [closed]
1,371,138,478,000
So, I did what a tutorial said and I set coolbits to 8. As expected, GreenWithEnvy's overclocking menu became available. However, when I tried to make a custom overclock setting, the overclock profile box popped up without the overclocking sliders I'm using a NVIDIA Tesla P4 graphics card and my system is Linux Mint...
It turns out, that my specific GPU has no overclocking feature, thus no sliders appeared. For anybody else who had a similar problem with their headless/workstation GPU in Linux, you can see which clocks are supported by your GPU with the nvidia-smi -i 0 --query-supported-clocks=mem,gr --format=csv bash command.
GreenWithEnvy's overclocking menu has no overclocking sliders
1,371,138,478,000
I have a new Lenovo Yoga Slim 7 with an AMD Ryzen 5 6600HS processor. This processor has a Radeon 660M integrated graphics controller, and I don't have a dedicated GPU. I have several issues which I think are all or in part related to driver issues: High CPU usage when watching a YouTube video. http://webglsamples.or...
It turns out I still had nomodeset as a kernel parameter. Removing it fixed the issues. The WebGL aquarium sample now runs at 60FPS with 10,000 fish (was 20FPS with 500). The LCD backlight works out of the box; no acpi_backlight parameter needed. xrandr now recognizes different modes and does not complain about gamma...
Integrated AMD Radeon 660M does not seem to be used on Debian Bookworm
1,623,528,470,000
I just purchased a new PC with Windows 10 installed on it. The PC has two SSD cards, one for the Windows and one empty which I want to install Manjaro-Linux on. And load it all with the Dual Boot. To install Manjaro I'm using a USB. I used Rufus to do so. I guess the error is due to the GPU. I'm using the RTX 3060ti a...
I tried a couple of weeks later, It worked. I believe it has to do with the version I installed and the GPU at the time, it didn't have the graphical support. Now it works.
Manjaro installation stuck on "Reached target graphical interface"
1,623,528,470,000
I have recently installed a nVidia Tesla K80 graphics accelerator into an existing dual-socket workstation running Ubuntu 20.04 with a low-energy consumption nVidia Quadro NVS315. After updating the nVidia drivers (from legacy 390 that were needed for the Quadro to 450 in order to support CUDA on the K80), the now uns...
I came across two possible solutions that both worked for me Increase the GRUB frame buffer resolution: For me the resolution in this case was limited to 1024×768 - with higher resolutions it would start lagging. Buy a newer generation low-power graphics card (I ended up with a Nvidia Quadro P620 to accompany my Nvi...
Stuck at 640x480 - Run Nouveau and nVidia graphic drivers side-by-side?
1,623,528,470,000
This is my first question so if I missed anything please let me know. My knowledge of linux is quite weak at this point. I am running ubuntu 18.04 with 1080ti gpus (x2). This is with a threadripper 2990wx and 128gigs of compatible ram (if that is somehow related and I am wrong). For the last few weeks now, I have bee...
1) Before downgrading, please make sure you have the latest NVIDIA driver, version 440.82, direct from NVIDIA, not from a PPA. 2) If upgrading to the very latest stable driver direct from NVIDIA does not help, uninstall with sudo sh NVIDIA-Linux-x86_64-440.82.run --uninstall 3) If you installed nvidia-current or nv...
Properly downgrading from cuda 10.1 and driver 440
1,623,528,470,000
I'd like to try Linux Mint 18.3 after experiencing trouble with ubuntu16.04 on a razr stealth rz09 with gtx1060 gpu . I made a live install usb , boot it and go thru the install screens, and invariably hit a freeze after defining timezones and starting the actual install ('copying files...'). I tried: disabling U...
Ok the guide here involving adding the params nomodeset xforcevesa to the grub boot script (at the end of the line starting with 'linux' ) did the trick. The install finally occurs, hallelujah and i reboot, once again put those params into the grub, and mint then boots from disk and not usb. Then install the vide...
Linux Mint install freeze
1,623,528,470,000
I've recently built a Linux From Scratch system on my Apple Macbook laptop; however, I've been struggling to understand the graphics hardware and what kernel driver options I need to enable. The LFS system is (currently) a fairly minimal system that boots up into Bash, but doesn't have the X Window system or any DE. T...
I've been doing some research into this myself, and the short answer seems to be: yes - I need a framebuffer to enable the console. According to the Wikipedia article on the Linux Console, the console has two modes: text mode and framebuffer. From the description, it seems that the text mode is quite basic and may not...
Do I need a framebuffer driver for a minimal CLI system without X?
1,623,528,470,000
I have a ATI Radeon 2400 XT, and a Nvidia GTX 580 in my debian computer. The 580 has 3 ports, but only 2 of them could be used at the same time. I bought the refurbished Radeon so that I could use another screen, but it was being ignored. I reconfigured my bios so that the Radeon was the primary display, and the ttys ...
I have fixed this by using nouveau, then setting the Radeon to be the output
Nvidia and ATI gpu system for three monitors
1,623,528,470,000
I have OpenSUSE 42.1 kde 5. How to get the new AMDGPU driver (in the website its only released for ubuntu with .deb files)?
AMDGPU consists of a device driver which is part of Linux since 4.3 and a XOrg driver, which you're both currently missing. If you want to use AMDGPU, you'll need to upgrade your kernel (use this repository) and your XOrg using this repository. Afterwards do a vendor change for all packages in the repositories. You ca...
How to get new AMDGPU driver in Opensuse?
1,458,970,997,000
I'll be installing the cuda toolkit 7.5 on debian stretch, currently without an nvidia card. I only intend to do remote development (sync projects to create remote builds on targets) on an nvidia server with two titan blacks. The getting started guide says I need a cuda-capable gpu, but I'm wondering if it's really n...
I found some newer information here that says a gpu is not required for either cross compilation mode or remote synchronized project mode. I've installed cuda toolkit 7.5 on linux mint 17.3 using the ubuntu 14.04 local deb file. The installer complained of the missing gpu but went through to completion otherwise. In ...
Do I need an NVidia GPU locally if I only sync projects to create remote builds on targets?
1,458,970,997,000
I need GPU with CUDA support and open-source community support for FFT computation with Matlab R2015b. I think I need to reject nVidia GPUs because of bad open-source support, here Torvalds about nVidia's open-source development. So I am thinking some AMD GPU's which has a development plan for open-source support of ...
Use Otoy's reversed-engineered solution, discussed here. Some limitations can exist as discussed in some threads about the topic.
Is AMD GPU FirePro support enough for Linux's Matlab and CUDA?
1,458,970,997,000
I'm using Debian 7.7 with the proprietary NVidia driver 319.82 and a GeForce 560Ti. This drives 2 portrait (rotated) monitors over DVI with no problem and I'm happy with the result. I'd now like to add a 3rd portrait monitor. It seems like one can't mix NVidia and HD3000 GPUs, so presumably I'll have to buy another NV...
I threw caution to the wind and spent £26 on a Geforce GT610. The driver recognises it and it can drive a 3rd monitor. Best results, to my eyes, came after using nvidia-settings to configure each screen (including the two driven by the same GPU) as its own X display, then ticking the Xinerama box. One general problem ...
What combinations of NVidia GPUs are well supported with with driver 319.82?
1,458,970,997,000
How do I add a parameter to system-d on Pop!_OS? I want to pass-through a GPU. Please also give a a good guide of how to GPU pass-through on Pop!_OS 21.10. Thanks in advance.
Welcome to Unix & Linux StackExchange! Please edit your question to add a link to the specific tutorial you're following, so that other people will be able to get an idea of the steps you are trying to follow. My guess is, your tutorial is probably telling you to add some kernel boot parameters, which would typically ...
I need help (both with GRUB and GPU pass-through)
1,458,970,997,000
I'm using Xorg with the FBDEV driver, configuration: Section "Device" Identifier "Device0" Driver "fbdev" Option "fbdev" "/dev/fb0" Option "ShadowFB" "false" EndSection I got a new framebuffer device to my system, it's /dev/fb1. I adjusted the config: Section "Device" Identifier "Device0" Driv...
Xorg's FBDEV driver requires a BusID option to be passed in Config, not only a path to the framebuffer's char-device. I don't know why is that, but here is how to configure it: First is to figure out the "bus id" of the framebuffer device. Assuming that the wanted framebuffer device is fb1: ls /sys/class/graphics/fb1/...
Xorg FBDEV refuses to use the specified framebuffer
1,458,970,997,000
I got a new Nvidia GPU and I read that I had to purge all of the current drivers to avoid collisions. I removed everything, replaced the GPU with the new one, turned the PC on. It worked, I was able to load the OS, but the GPU wasn't recognized using nvidia-smi. When used lspci | grep ' VGA ' | cut -d" " -f 1 | xargs ...
Ubuntu already has Nvidia drivers properly packaged in its official repository. There's NEVER a need to install them using the Nvidia's binaries. As a matter of fact that's strongly discouraged. And whenever the new card is supported by the same driver version branch already installed there's no need to uninstall anyt...
Updated Nvidia drivers, Ubuntu OS won't start, can access BIOS and safe-mode
1,458,970,997,000
I am on Debian 11 I have a program that works by overriding tty1. So when starting my computer, the program runs right away. This works fine, but I use Gnome as my GUI to develop and test the program. When running the program while in Gnome I get: WARNING: lavapipe is not a conformant vulkan implementation, testing us...
So to answer my own question: I ran lspci -k to check if Gnome recognized my GPU and I saw my GPU there and its kernel driver. So I realized the problem might be from Vulkan itself so then I ran ls /usr/share/vulkan/icd.d/ which gave me the output intel_icd.x86_64.json lvp_icd.x86_64.json radeon_icd.x86_64.json rad...
Vulcan detecting GPU on TTY but not on gnome
1,458,970,997,000
I'm using Fedora 36, KDE on a Framework laptop with core i7-1185G7. I use Google meet on Chrome, but it uses too much CPU (about 35%, when CPU is in full speed), warms up the CPU, and could trigger thermal throttling where clock falls to 400Mhz or even 200Mhz for a minute. I've improved that with a cooling pad for the...
These are good questions and there are no answers. For Intel GPUs there's a intel_gpu_top utility (found in the intel-gpu-tools package) which shows GPU load (without showing individual apps), so you can at least understand whether your system is currently using CPU or GPU, but that's it. For NVIDIA GPUs, there's nvi...
How to setup and confirm hardware acceleration in Linux
1,458,970,997,000
I have installed Debian 11 (bullseye) on a new Lenovo LEGION 5i Pro with Nvidia RTX 3050. After installing the Nvidia drivers: sudo apt-get install nvidia-driver firmware-misc-nonfree I connected an external monitor using the HDMI port, but it was not recognized, it does not show up in the Displays settings. I tried ...
Notebooks with separate dedicated and integrated graphics cards will try to balance which is used to improve battery life. Check nvidia-settings and bios settings to see if there is an option to specify which you would like to use.
How to configure multiple displays on Lenovo LEGION 5 Pro (Nvidia RTX 3050)
1,458,970,997,000
Since I use microsoft teams on my Debian buster machine, I get a GUI freeze sometimes: The mouse pointer can still be moved on the screen, but no visible feedback on clicks or keyboard presses. Also no switching to a console with ctrlaltF1 I could not help myself other then sshing to the machine to restart Xorg. The d...
nouveau is known for being quite unstable and crash-prone, so I'd recommend installing NVIDIA proprietary drivers instead. The error you're getting indicates exactly that. Alternatively try installing a fresh kernel, 4.19 is quite dated and may not contain all the fixes the nouveau driver has seen.
MS teams makes the whole GUI stall: GpuWatchdog segfault
1,458,970,997,000
I installed Windows on a virtual machine which runs through KVM/QEMU. The virtual machine is hosted on a Debian server which has just a basic GPU on the motherboard. Applications which rely on GPU, such as Adobe Premiere Pro, don't run fast enough on this virtual machine. The Wiki on the subject explains the technique...
Automatically - no, not at all. Manually via PCI(e) passthrough in case your system supports IOMMU and AMD-Vi/Intel VT-d: https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Plain_QEMU_without_libvirt https://wiki.gentoo.org/wiki/GPU_passthrough_with_libvirt_qemu_kvm
Would a GPU make the applications in the virtual machine faster?
1,458,970,997,000
Running Pop OS on an Intel Hades Canyon. Just installed Steam and it looks like this: Restarting the computer or reinstalling Steam from different sources did not solve the issue. Wierd enough, if I go full screen with Steam it looks okay, but if I resize the window it looks messed up again. Drivers seem fine, what e...
Your issue sounds similar to https://github.com/ValveSoftware/steam-for-linux/issues/6593 - steam view becomes corrupted when resizing in a tiling window manager The title is a bit misleading: further down the bug report they say it happens if Steam hardware acceleration is enabled, even if you're not using a tiling w...
Steam looks messed up
1,458,970,997,000
I'm not sure how to troubleshoot these, but at least once a week, the amdgpu driver crashes and I either have to hard power down or try to ssh in from my laptop and reboot. 0c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XL/XT [Radeon RX Vega 56/64] (rev c1) (prog-if 00 [VGA controlle...
There's little you can do to solve this issue on your own, so do please file a bug report here: https://bugzilla.kernel.org/enter_bug.cgi?product=Drivers (choose Video(Other) as a component). What info you could provide (attach it as files): Full sudo dmesg output Full sudo lspci -vvv output Full sudo lshw output An...
amdgpu driver crashes
1,458,970,997,000
I am using Arch Linux on a Chromebook C201 (ARM). Since I recently upgraded the system, the desktop environment seems to be crashing shortly after I login (before the upgrade it was working fine). I have both LXDE and MATE installed and I am seeing similar crashes on both. The two DEs are using different Window Manage...
As posted in comments above: The Xorg log file indicates that glamoregl is crashing, pointing to an issue with hardware acceleration. Temporary workaround: start X while disabling GLX based on this post ie: startx -- :2 vt2 -extension GLX One thing I was wondering is whether you have a specific proprietary/open sour...
X11 crashing on login (Arch ARM)
1,458,970,997,000
I recently encountered some difficulties, that I want to write a script to automatically log in to nested servers to collect some info on each of them:(specifically, use nvidia-smi to collect the GPU usage info on each machine) the nested server structure is like: user@boss(user@machine1, user@machine2, user@machine3,...
Don't use password authentication. Use public-key authentication only, and have good, strong passphrases for your ssh keys. See Why is using an SSH key more secure than using passwords? and the Linked and Related posts for interesting discussions about keys vs passwords. You can configure ssh to always connect to a ...
ssh to nested server and collect some information
1,458,970,997,000
Many of my programs are not running, with this error: get chip id failed: -1 [13] param: 4, val: 0 [intel_init_bufmgr:1189] Error initializing buffer manager. Segmentation fault When I try running glxinfo this is what I get: Xlib: extension "GLX" missing on display ":0". Error: couldn't find RGB GLX visual or fbconf...
As the log shows, you have installed the GLX module for NVIDIA cards, (II) LoadModule: "glx" (II) Loading /usr/lib/xorg/modules/linux/libglx.so (II) Module glx: vendor="NVIDIA Corporation" compiled for 4.0.2, module version = 1.0.0 Module class: X.Org Server Extension (II) NVIDIA GLX Module 375.26 Thu Dec ...
GLX problem, many programs not running
1,458,970,997,000
I was having some problems with my laptop (asked a related question yesterday: http://elementaryos.org/answers/after-locking-the-computer-screens-look-all-messed-up) regarding some dual-screen issues. This morning my laptop fan was working at full speed. Looking for some help I found a Q&A that made some sense (I thou...
Finally I got to fix one of my problems. I can see my desktop now the same way I had it before installing the ATI drivers. Did it by: sudo apt-get update sudo apt-get upgrade sudo apt-get remove --purge fglrx Found this solution here. Apparently, having elementary os drivers and ATI drivers gave me some conflict so I...
elementary os will not start after installing GPU drivers
1,718,580,146,000
I have a Asus gaming laptop and I want to format and use it with Linux (I'm new user) but there is some problem: The main one is Asus doesn't have Armoury Crate and without some kinda of controller (for fan speed, disabling nvidia gpu, keyboard light and...) it's not a pleasant experience, the only thing that I found ...
I'm sorry to disappoint, but I highly doubt that there is an all-in-one app to control everything. You will most likely have to cobble together a bunch of different programs for different pieces of hardware. For the keyboard RGB, OpenRGB is available on Linux and seems to have decent support for asus hardware. For fan...
Hardware controller for Laptop in Linux
1,718,580,146,000
This week I returned to my job after 2 week break and I discovered one important error. Any of my 3 monitors is not responding. All monitors keep displaying only "No signal". I have tried multiple solutions, f.e. keep connected only one monitor (I have tried both DP and HDMI), which did not help, after that I have tri...
yesterday I've solved it by first stopping gdm3 service with command $ sudo systemctl stop gdm3 After that, I again turned gdm3 service on with $ sudo systemctl restart gdm3.service All three monitors are now working.
DP/HDMI monitors show "no signal" - Debian 11
1,718,580,146,000
I recently bought a new Lenovo Ideapad Slim 3 laptop and I am having problems getting the amdgpu driver working properly in Arch Linux. The GPU seems to work fine straight away with a Mint live USB (glxgears plays, etc.); however, in the Arch system I am trying to install to the SSD, I get this error with glxinfo -B: ...
I have managed to resolve the issue myself. The Arch system was copied over from a previous machine that had an NVidia GPU, and there were some graphics packages still installed relating to NVidia. I removed those and now the 3D acceleration seems to be working properly (both glxinfo and glxgears work). The old NVidia...
Problem with AMD integrated gpu on new Lenovo laptop
1,718,580,146,000
I've been search a lot about this, but seems that no one knows how Hive OS guys do this trick. A lot of places and articles says that nvidia linux driver don't support core voltage controls, which seems true, however, Hive OS can do it, and its based on Ubuntu 16.04 LTS. Any ideas how to undervolting nvidia GPUs in ub...
Voltage adjustment is not available for discrete NVIDIA GPUs under Linux. It is available only for AMD GPUs. https://hiveos.farm/getting_started-start_oc/#overclocking-nvidia-gpus
Ubuntu vs HiveOS NVIDIA GPU Undervolting, how?
1,718,580,146,000
I am using Unity3D on Arch Linux: https://wiki.archlinux.org/title/Unity3D for game development. I have a Nvidia GTX 1650. All my nvidia packages are up to date (tensorflow-gpu for example works fine). But when I run a game within unity3D it does not use the GPU at all. How can I instruct unity3D to use the GPU when d...
I have found that the issue was due to my laptop's hybrid Intel/Nvidia setup defaulting to the Intel graphics over the dedicated graphics card. This can be fixed by using Nvidia-Optimus to instruct the machine to use the dedicated GPU for rendering particular applications using PRIME: sudo pacman -S nvidia nvidia-prim...
Use Nvidia GPU with Unity3D for game development
1,718,580,146,000
Until version v87.0.4280.141 smooth scrolling worked without issues on my Arch Linux system. After updating to newer versions smooth scrolling is not working at all, but when I resize the window to half of the screen then smooth scrolling seems to be fine. I am using Nvidia GPU and my monitor resolution is 3840x2160....
this fixed for me $ pkill picom but I'm still not sure why it's worked by killing picom composite manager.
Choppy smooth scrolling after google chrome update
1,718,580,146,000
I am trying to revive an old Asus eeepc 1215N (as donation for a student in the time of online classes), at first trying with Ubuntu 20.04. The computer "features" nvidia optimus (dual GPU) and is normally functional when booting (I can run BIOS setup and the boot manager). The moment the Linux kernel takes over (kern...
For the posterity, the issue was in the bootloader setting the video mode for the linux kernel; in that moment was the freeze with garbage screen happening. The trick to boot the machine is to: have the bootloader use plain text mode (GRUB_TERMINAL="console" in /etc/default/grub for grub2); and not change the video m...
Asus eeepc 1215N: console garbage after kernel boot
1,380,615,765,000
I would like to compress a text file using gzip command line tool while keeping the original file. By default running the following command gzip file.txt results in modifying this file and renaming it file.txt.gz. instead of this behavior I would like to have this new compressed file in addition to the existing one f...
For GNU gzip 1.6 or above, FreeBSD and derivatives or recent versions of NetBSD, see don_cristi's answer. With any version, you can use shell redirections as in: gzip < file.txt > file.txt.gz When not given any argument, gzip reads its standard input, compresses it and writes the compressed version to its standard ou...
How to tell gzip to keep original file?
1,380,615,765,000
I have a file file.gz, when I try to unzip this file by using gunzip file.gz, it unzipped the file but only contains extracted and removes the file.gz file. How can I unzip by keeping both unzipped file and zipped file?
Here are several alternatives: Give gunzip the --keep option (version 1.6 or later) -k   --keep         Keep (don't delete) input files during compression or decompression. gunzip -k file.gz Pass the file to gunzip as stdin gunzip < file.gz > file Use zcat (or, on older systems, gzcat) zcat file.gz > file
Unzipping a .gz file without removing the gzipped file [duplicate]
1,380,615,765,000
More and more tar archives use the xz format based on LZMA2 for compression instead of the traditional bzip2(bz2) compression. In fact kernel.org made a late "Good-bye bzip2" announcement, 27th Dec. 2013, indicating kernel sources would from this point on be released in both tar.gz and tar.xz format - and on the main ...
For distributing archives over the Internet, the following things are generally a priority: Compression ratio (i.e., how small the compressor makes the data); Decompression time (CPU requirements); Decompression memory requirements; and Compatibility (how wide-spread the decompression program is) Compression memory ...
Why are tar archive formats switching to xz compression to replace bzip2 and what about gzip?
1,380,615,765,000
root@server # tar fcz bkup.tar.gz /home/foo/ tar: Removing leading `/' from member names How can I solve this problem and keep the / on file names ?
Use the --absolute-names or -P option to disable this feature. tar fczP bkup.tar.gz /home/foo tar fcz bkup.tar.gz --absolute-names /home/foo
tar: Removing leading `/' from member names
1,380,615,765,000
I am using this command on a 5GB archive tar -zxvf archive.tar.gz /folder/in/archive is this the correct way to do this? It seems to be taking forever with no command line output...
tar stores relative paths by default. GNU tar even says so if you try to store an absolute path: tar -cf foo.tar /home/foo tar: Removing leading `/' from member names If you need to extract a particular folder, have a look at what's in the tar file: tar -tvf foo.tar And note the exact filename. In the case of my foo...
How do you extract a single folder from a large tar.gz archive?
1,380,615,765,000
I have created zlib-compressed data in Python, like this: import zlib s = '...' z = zlib.compress(s) with open('/tmp/data', 'w') as f: f.write(z) (or one-liner in shell: echo -n '...' | python2 -c 'import sys,zlib; sys.stdout.write(zlib.compress(sys.stdin.read()))' > /tmp/data) Now, I want to uncompress the data ...
It is also possible to decompress it using standard shell-script + gzip, if you don't have, or want to use openssl or other tools.The trick is to prepend the gzip magic number and compress method to the actual data from zlib.compress: printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" |cat - /tmp/data |gzip -dc >/tmp/out Edit...
How to uncompress zlib data in UNIX?
1,380,615,765,000
Is there a way to add/update a file in a tar.gz archive? Basically, I have an archive which contains a file at /data/data/com.myapp.backup/./files/settings.txt and I'd like to pull that file from the archive (already done) and push it back into the archive once the edit has been done. How can I accomplish this? Is it ...
The tar file format is just a series of files concatenated together with a few headers. It's not a very complicated job to rip it apart, put your contents in, and put it back together. That being said, Jander described how tar as a program does not have the utility functions to do this and there are additional complic...
How to add/update a file to an existing tar.gz archive?
1,380,615,765,000
When handling log files, some end up as gzipped files thanks to logrotate and others not. So when you try something like this: $ zcat * you end up with a command line like zcat xyz.log xyz.log.1 xyz.log.2.gz xyz.log.3.gz and then with: gzip: xyz.log: not in gzip format Is there a tool that will take the magic bytes,...
Try it with -f or --force: zcat -f -- * Since zcat is just a simple script that runs exec gzip -cd "$@" with long options that would translate to exec gzip --stdout --decompress "$@" and, as per the man gzip (emphasize mine): -f --force Force compression or decompression even if the file has multiple links ...
Is there a tool that combines zcat and cat transparently?
1,380,615,765,000
I often download tarballs with wget from sourceforge.net. The downloaded files then are named, e.g SQliteManager-1.2.4.tar.gz?r=http:%2F%2Fsourceforge.net%2Fprojects%2Fsqlitemanager%2Ffiles%2F&ts=1305711521&use_mirror=switch When I try to tar xzf SQliteManager-1.2.4.tar.gz\?r\=http\:%2F%2Fsourceforge.net%2Fprojects%2F...
The reason for the error you are seeing can be found in the GNU tar documentation: If the archive file name includes a colon (‘:’), then it is assumed to be a file on another machine[...] That is, it is interpretting SQliteManager-1.2.4.tar.gz?r=http as a host name and trying to resolve it to an IP address, henc...
tar extraction depends on filename?
1,380,615,765,000
I have a directory with plenty of .txt.gz files (where the names do not follow a specific pattern.) What is the simplest way to gunzip them? I want to preserve their original names, so that they go from whatevz.txt.gz to whatevz.txt
How about just this? $ gunzip *.txt.gz gunzip will create a gunzipped file without the .gz suffix and remove the original file by default (see below for details). *.txt.gz will be expanded by your shell to all the files matching. This last bit can get you into trouble if it expands to a very long list of files. In th...
gunzip all .gz files in directory
1,380,615,765,000
I need to create a tarball of a given directory. However, I need to make sure hidden files are included too (such as those beginning with .). Will the following command automatically take the hidden files into account? tar -cvzf packed.tar.gz mydir If not, how can I make sure I include hidden files?
Yes, it will. Files starting with . are not "hidden" in all contexts. They aren't expanded by *, and ls doesn't list them by default, but tar doesn't care about the leading .. (find doesn't care either.) (Of course, this is one of those things that's easy to find out by experiment.)
Will tar -cvzf packed.tar.gz mydir take hidden files into account?
1,380,615,765,000
I have a few thousand files that are individually GZip compressed (passing of course the -n flag so the output is deterministic). They then go into a Git repository. I just discovered that for 3 of these files, Gzip doesn't produce the same output on macOS vs Linux. Here's an example: macOS $ cat Engine/Extras/ThirdPa...
Note that the compression algorithm (Deflate) in GZip is not strictly bijective. To elaborate: For some data, there's more than one possible compressed output depending on the algorithmic implementation and used parameters. So there's no guarantee at all that Apple GZip and gzip 1.6 will return the same compressed out...
GZip doesn't produce the same compressed result on macOS vs Linux
1,380,615,765,000
I have four files that I created using an svndump test.svn test2.svn test.svn.gz test2.svn.gz now when I run this md5sum test2.svn test.svn test.svn.gz test2.svn.gz Here is the output 89fc1d097345b0255825286d9b4d64c3 test2.svn 89fc1d097345b0255825286d9b4d64c3 test.svn 8284ebb8b4f860fbb3e03e63168b9c9e test.svn...
gzip stores some of the original file's metadata in record header, including the file modification time and filename, if available. See GZIP file format specification. So it's expected that your two gzip files aren't identical. You can work around this by passing gzip the -n flag, which stops it from including the ori...
Why does the gzip version of files produce a different md5 checksum
1,380,615,765,000
I have a huge log file compressed in .gz format and I want to just read the first line of it without uncompressing it to just check the date of the oldest log in the file. The logs are of the form: YYYY-MM-DD Log content asnsenfvwen eaifnesinrng YYYY-MM-DD Log content asnsenfvwen eaifnesinrng YYYY-MM-DD Log content as...
Piping zcat’s output to head -n 1 will decompress a small amount of data, guaranteed to be enough to show the first line, but typically no more than a few buffer-fulls (96 KiB in my experiments): zcat logfile.gz | head -n 1 Once head has finished reading one line, it closes its input, which closes the pipe, and zcat ...
read first line from .gz compressed file without decompressing entire file
1,380,615,765,000
I have 200 GB free disk space, 16 GB of RAM (of which ~1 GB is occupied by the desktop and kernel) and 6 GB of swap. I have a 240 GB external SSD, with 70 GB used1 and the rest free, which I need to back up to my disk. Normally, I would dd if=/dev/sdb of=Desktop/disk.img the disk first, and then compress it, but maki...
Technically you don't even need dd: gzip < /dev/drive > drive.img.gz If you do use dd, you should always go with larger than default blocksize like dd bs=1M or suffer the syscall hell (dd's default blocksize is 512 bytes, since it read()s and write()s that's 4096 syscalls per MiB, too much overhead). gzip -9 uses a L...
On-the-fly stream compression that doesn't spill over into hardware resources?
1,380,615,765,000
Is it possible to speed up the gzip process? I'm using mysqldump "$database_name" | gzip > $BACKUP_DIR/$database_name.sql.gz to backup a database into a directory, $BACKUP_DIR. the manpage says: -# --fast --best Regulate the speed of compression using the specified digit #, where -1 or -...
If you have a multi-core machine using pigz is much faster than traditional gzip. pigz, which stands for parallel implementation of gzip, is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data. pigz was written by Mark Adler, and uses the zlib...
speed up gzip compression
1,380,615,765,000
I usually create a tgz file for my_files with the command tar -czvf my_files.tgz my_files, and extract them with tar -zxvf my_files.tgz. Now I have a tar file created with the command tar -cvf my_files.tar my_files. I'm wondering how I can turn the my_files.tar into my_files.tgz so that later I can extract it with the...
A plain .tar archive created with cf (with or without v) is uncompressed; to get a .tar.gz or .tgz archive, compress it: gzip < my_files.tar > my_files.tgz You might want to add -9 for better compression: gzip -9 < my_files.tar > my_files.tgz Both variants will leave both archives around; you can use gzip -9 my_file...
How to turn a tar file to a tgz file?
1,380,615,765,000
Why is this not possible? pv ${dest_file} | gzip -1 pv is a progress bar error gzip: compressed data not written to a terminal. Use -f to force compression. For help, type: gzip -h 0 B 0:00:00 [ 0 B/s] [> ] 0% This works pv ${file_in} | tar -Jxf - -C /outdir
What are you trying to achieve is to see the progress bar of the compression process. But it is not possible using pv. It shows only transfer progress, which you can achieve by something like this (anyway, it is the first link in the google): pv input_file | gzip > compressed_file The progress bar will run fast, and ...
pv (progress bar) and gzip
1,380,615,765,000
I have a directory of logs that I would like to set up a job to compress using gzip. The issue is I don't want to recompress the logs I've already compressed. I tried using ls | grep -v gz | gzip, but that doesn't seem to work. Is there a way to do this? Basically I want to gzip every file in the directory that does n...
You can just do: gzip * gzip will tell you it skips the files that already have a .gz ending. If that message gets in the way you can use: gzip -q * What you tried did not work, because gzip doesn't read the filenames of the files to compress from stdin, for that to work you would have to use: ls | grep -v gz | xa...
Use gzip to compress the files in a directory except for already existing .gz files
1,380,615,765,000
The problem is I have some database dumps which are either compressed or in plain text. There is no difference in file extension etc. Using zcat on uncompressed files produces an error instead of the output. Is there maybe another cat sort of tool that is smart enough to detect what type of input it gets?
Just add the -f option. $ echo foo | tee file | gzip > file.gz $ zcat file file.gz gzip: file: not in gzip format foo $ zcat -f file file.gz foo foo (use gzip -dcf instead of zcat -f if your zcat is not the GNU (or GNU-emulated like in modern BSDs) one and only knows about .Z files).
Is it possible to make zcat output text even if it's uncompressed? [duplicate]
1,380,615,765,000
Is it possible to compress a very large file (~30 GB) using gzip? If so, what commands, switches, and options should I use? Or is there another program (preferably one commonly available on Ubuntu distributions) that I can use to compress/zip very large files? Do you have any experience with this?
AFAIK there is no limit of size for gzip - at least not 30GB. Of course, you need the space for the zipped file on your disc, both versions will be there simultanously while compressing. bzip2 compresses files (not only big ones :-) better, but it is (sometimes a lot) slower.
Is it possible to compress a very large file (~30 GB) using gzip?
1,380,615,765,000
I have to create an archive with the command gzip (not tar - it's necessary) and the archive should contain files from another directory - for example, /etc. I tried to use command gzip myetc.gz /etc But it didn't work.
Gzip works only with a single file, or a stream - data piped to gzip. So you first need to generate one file, like with tar, and then you could gzip that. The other option is to gzip all individual files, and then tar that into one file. Both these solutions are stupid and should not be used. You should use tar with ...
Create an archive with command "gzip"
1,380,615,765,000
Assume i have an gzip compressed tar-ball compressedArchive.tgz (+100 files, totaling +5gb). What would be the fastest way to remove all entries matching a given filename pattern for example prefix*.jpg and then store the remains in a gzip:ed tar-ball again? Replacing the old archive or creating a new one is not impo...
With GNU tar, you can do: pigz -d < file.tgz | tar --delete --wildcards -f - '*/prefix*.jpg' | pigz > newfile.tgz With bsdtar: pigz -d < file.tgz | bsdtar -cf - --exclude='*/prefix*.jpg' @- | pigz > newfile.tgz (pigz being the multi-threaded version of gzip). You could overwrite the file over itself like: { ...
Efficiently remove file(s) from large .tgz
1,380,615,765,000
Is it possible to use gzip to decompress a gzipped file, without the gz extension, and without moving the file?
You can pass the -S option to use a suffix other than .gz. gunzip -S .compressed file.compressed If you want the uncompressed file to have some other name, run gzip -dc <compressed-file >uncompressed-file gunzip <compressed-file >uncompressed-file (these commands are equivalent). Normally unzipping restores the name...
Gzip decompress on file with other extension?
1,380,615,765,000
I am trying to save space while doing a "dumb" backup by simply dumping data into a text file. My backup script is executed daily and looks like this: Create a directory named after the backup date. Dump some data into a text file "$name". If the file is valid, gzip it: gzip "$name". Otherwise, rm "$name". Now I wan...
@deroberts answer is great, though I want to share some other information that I have found. gzip -l -v gzip-compressed files contain already a hash (not secure though, see this SO post): $ echo something > foo $ gzip foo $ gzip -v -l foo.gz method crc date time compressed uncompressed ratio u...
How can I check if two gzipped files are equal?
1,380,615,765,000
I run commands: tar -cf myArchive.tar myDirectory/ gzip myArchive.tar then I copy the file over a lot of unreliable mediums, and later I unpack it using: tar -xzf myArchive.tar.gz The fact that I compressed the tar-ball, will that in any way guarantee the integrity, or at least a CRC of the unpacked content?
tar itself does not write down a checksum for later comparsion. If you gzip the tar archive you can have that functionality. tar uses compress. If you use the -Z flag while creating the archive tar will use the compress program when reading or writing the archive. From the gzip manpage: The standard compress format w...
Does gzip add integrity/crc check to a .tar?
1,380,615,765,000
A problem with .tar.gz archives is that, when I try to just list an archive's content, the computer actually decompresses it, which would take a very long time if the file is large. Other file formats like .7z, .rar,.zip don't have this problem. Listing their contents takes just an instant. In my naive opinion, this i...
It's important to understand there's a trade-off here. tar means tape archiver. On a tape, you do mostly sequential reading and writing. Tapes are rarely used nowadays, but tar is still used for its ability to read and write its data as a stream. You can do: tar cf - files | gzip | ssh host 'cd dest && gunzip | tar xf...
Print archive file list instantly (without decompressing entire archive)
1,380,615,765,000
I have a job on a batch system that runs extremely long and produces tons of output. So much actually that I have to pipe the standard output through gzip to keep the batch node from filling its work area and subsequently crashing. longscript | gzip -9 > log.gz Now, I would like to investigate the output of the job w...
Apart from the very end of the file, you will be able to see the uncompressed data with zcat (or gzip -dc, or gunzip -c): zcat log.gz | tail or zcat log.gz | less or zless log.gz gzip will do buffering for obvious reasons (it needs to compress the data in chunks), so even though the program may have outputted some ...
gzip: unexpected end of file with - how to read file anyway
1,380,615,765,000
To backup a snapshot of my work, I run a command like tar -czf work.tgz work to create a gzipped tar file, which I can then drop in cloud storage. However, I have just noticed that gzip has a 4 GB size limit, and my work.tgz file is more than 4 GB. Despite that, if I create a gzip tar file on my current computer (runn...
I have just noticed that gzip has a 4 GB size limit More accurately, the gzip format can’t correctly store uncompressed file sizes over 4GiB; it stores the lower 32 bits of the uncompressed size, and gzip -l misleadingly presents that as the size of the original data. The result is that, up to gzip 1.11 included, gz...
How portable is a gzip file over 4 GB in size?
1,380,615,765,000
When I run gunzip -dc /path_to_tar.gz_file/zip1.tar.gz | tar xf - in the directory where the tar.gz file is located, it extracts just fine. How do I tell it to place the contents from the tar.gz file into a specific directory? I tried this gunzip -dc /path_to_tar.gz_file/zip1.tar.gz | tar xf /target_directory with a t...
You can do a single tar command to extract the contents where you want: tar -zxvf path_to_file -C output_directory As explained in the tar manpages: -C directory, --cd directory, --directory directory In c and r mode, this changes the directory before adding the following files. In x mode, change directories afte...
How do I use gunzip and tar to extract my tar.gz file to the specific directory I want?