date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,490,442,686,000
I have a tab delimited file with four columns. I would like to grep for the lines that have a specific pattern in column 1, where it says apple M of N.  I only want to extract the lines that have the first number matching the second number, or lines that have the first number one less than the second number.  In the e...
Similar thing in GNU awk: $ gawk 'match($0, /([0-9]+) of ([0-9]+)/, a) && (a[2] == a[1] || a[2] == a[1]+1)' file apple (XY_678901, apple 5 of 6) 1 12722 13220 apple (XY_234567, apple 2 of 2) 1 18437 24737 apple (XY_456789, apple 12 of 12) 1 35175 35276
How to grep a string with any two numbers that match or that have the first number one less than the second number?
1,490,442,686,000
There are two columns of numbers in a file, the first line like this: 0 0.0 I want to add the numbers in column 1 to those in column 2, and I want to keep the results floats, not integers. So the result of the first line should be 0.0, and the other lines' results should have .0 even if the sums are inte...
I can't see this mentioned in the manual for GNU awk, but e.g. man page for the printf() function in glibc mentions about %g that: Trailing zeros are removed from the fractional part of the result; a decimal point appears only if it is followed by at least one digit. Also, there's the # modifier for an "alternate fo...
When I add 0 to 0.0, how do I make sure the result is 0.0 not 0?
1,490,442,686,000
How can I check if a specific string is a floating points? This are possible floating points: 12.245 +.0009 3.11e33 43.1E11 2e-14 This is what I tried: grep "^[+\-\.0-9]" grep "^[+-]*[0-9]" grep "^[+\-\.0-9]" And other lots of related things, but none filtered anything at all. Almost every string got through. How ...
grep -xE '[-+]?[0123456789]*\.?[0123456789]+([eE][-+]?[0123456789]+)?' With -x, we're anchoring the regexp at the start and and of the line so the lines have to match that pattern as a whole as opposed to the pattern being found anywhere in the line. If you wanted to match on all the ones supported by POSIX/C strtod(...
Only allow floating points regex
1,490,442,686,000
If I run the following in bash, i will get correct answer # if [ 2.0000000000000000000000000001 > 2 ] ; then echo " True "; else echo " False " ; fi True # But if run in python IDLE >>> if 2.00000000000000001 > 2.0: print "true" else: print "false" false >>> Python can't compare the number right? I think...
You haven't successfully compared the numbers in bash, you've only tested that "bash" (the test command) has successfully tested the length of the string 2.0000000000000000000000000001 and redirected the non-existent output into a file named 2. You would want the -gt operator, except: [ 2.0000000000000000000000000001 ...
Python and Bash compare numbers
1,490,442,686,000
Input: network-snapshot-000000 time 6m 40s fid50k_full 34.9546 network-snapshot-000201 time 6m 52s fid50k_full 30.8073 network-snapshot-000403 time 6m 51s fid50k_full 33.3470 network-snapshot-000604 time 6m 51s fid50k_full 32.7172 network-snapshot-000806 time ...
$ awk 'NR == 1 { min = $NF } ($NF < min) { min = $NF; $0 = $0 "*" }; 1' file network-snapshot-000000 time 6m 40s fid50k_full 34.9546 network-snapshot-000201 time 6m 52s fid50k_full 30.8073* network-snapshot-000403 time 6m 51s fid50k_full 33.3470 network-snapshot-000604 tim...
Highlight every number that is smaller than all previous numbers in the last column
1,490,442,686,000
This question is a derivative of the https://askubuntu.com/questions/601149/is-there-a-command-to-round-decimal-numbers-in-txt-files, which was successfully solved by using: perl -i -pe 's/(\d*\.\d*)/int($1+0.5)/ge' file The problem is, the header of my CSV file is also modified by the perl's oneliner above, which is...
Perl has a special variable $. that keeps track of the current line number. So you can add a simple conditional $. > 1 to the substitution: perl -i -pe 's/(\d*\.\d*)/int($1+0.5)/ge if $. > 1' file See PerlVar: Variables related to filehandles Other tools have explicit header handling ex. with numfmt from GNU Coreuti...
Rounding numbers of a CSV file, skipping the header
1,490,442,686,000
I have a file with 4 columns. First two columns are for x and y position (in integers) and third, fourth column for an arbitrary field value. 1 1 0.5 1.2 1 2 1.7 2.3 1 3 2.0 2.2 2 1 1.4 2.5 2 2 1.6 3.0 2 3 2.35 2.9 3 1 2.0 2.9 3 2 0.7 2.5 3 3 0.2 2.1 To this input file, I want to add two columns between second and ...
What you appear to be asking for is: awk '{ y = $2; for(z=1;z<=3;z++){ value = z < $3 ? 0 : z > $4 ? 2 : 1; $2 = y OFS z OFS value; print } }' file however I can't make it produce the output shown.
add multiple rows for a range of variable and condtional column to a file
1,490,442,686,000
I want to be able to go through and access each digit individually in a shell script. How would I do this?
You can treat numbers as strings, because fundamentally that is what they are*: $ number=42 $ echo "${number:1:1}" 2 $ echo "${number:0:1}" 4 * Unless you declare the variable as an integer (for example in Bash), in which case it's converted to a decimal number before you can treat it as a string. For example an octa...
If I have a number in a shell script, how would i access just one digit of that number? [closed]
1,490,442,686,000
Could someone help me sorting numerically the IP's from a .txt file containing string with an IP associated to it. Content in txt: string_A=10.a.y.155 string_B=10.a.y.212 string_C=10.a.y.104 string_D=10.a.y.10 string_E=10.a.y.198 string_U=10.b.x.155 string_V=10.b.x.212 string_X=10.b.x.104 string_Y=10.b.x.10 string_Z=1...
Using -V ("version sort"), implemented by most sort: $ sort -t '=' -k2 -V file string_D=10.a.y.10 string_C=10.a.y.104 string_A=10.a.y.155 string_E=10.a.y.198 string_B=10.a.y.212 string_Y=10.b.x.10 string_X=10.b.x.104 string_U=10.b.x.155 string_Z=10.b.x.198 string_V=10.b.x.212 If a=15 and b=140: $ sort -t '=' -k2 -V f...
Sort IP's associated to a string in a txt file in linux
1,490,442,686,000
I have a file like this: 0.0451660231 0.0451660231 0.0527343825 0.3933106065 0.3970947862 0.0489502028 0.3592529595 0.3592529595 0.3592529595 0.3630371392 0.3630371392 0.3668213189 0.4008789659 0.1397705227 and I want to divide each line by the maximum value. I did cut -f1 -d"," CVBR1_hist | sort -n | tail -1 > maxi...
Awk give you an error because the variable "c" is set equal to an empty variable. $maximum isn't yet set. You should do: awk -v c=`cat maximum` '{print $1/c}' CVBR1_hist > CVBR1_norm Here is where your command failed. Better way: don't go through a temporary file but store the maximum value in a variable, like the Ku...
Using awk to divide the number in each line of a file by the maximum value in that file
1,490,442,686,000
Hi I've tried many solutions to similar questions and none have seemed to work for me. I have a text file where each line has an undefined length of numbers after the string " length_ ". How can I select out all the lines where that number is equal to or greater than 5000? This has been the cleanest looking code attem...
Here's one way, using awk, to print lines from a file that contain a number after the string "length_" that is less than or equal to 5000: awk '{sub("length_", "", $0); if ($0 <= 5000) { print "length_"$0 } }' input It simply tells awk to strip off the "length_" string, then compare the remaining part of the line to ...
copy every line from a text file that contains a number greater than 5000
1,490,442,686,000
What I need to do is write a shell program called avgs that would read lines from the file with data, where the title line could be at any line within the data. I must keep a total and count for each of the last 2 columns and must not include data from the first line in the totals and counts. This is the file with the...
Not sure what you mean by "and must not include data from the first line in the totals and counts.". Do you mean that the row "92876035 SMITZ S 15 26" must be excluded or just not to 'sum' "SID LNAME I T1/20 T2/30"? The ?? and ?! needs to be replaced by variable names you need. The last variable name mentioned ...
Shell program that outputs the averages
1,490,442,686,000
How to search the XML file using grep or similar for a particular tag but show only the content between opening and closing tags? Here is the exact tag I'd like to locate: <max-diskusage>1024000000</max-diskusage> But I would like to get just the 1024000000 part and not the tag. That is a storage size in bytes and con...
Using xmlstarlet to parse the XML document for any instance of the max-diskusage tag, extracting its value, and then using GNU numfmt to convert the number of bytes to SI units: xmlstarlet sel -t -v '//max-diskusage' -nl file | numfmt --to=si With the short example in the question in file, this returns the string 1.1...
How to display only the content between opening and closing tags in XML file?
1,490,442,686,000
I have a representative dataset 35.5259 327 35.526 326 35.526 325 35.5261 324 35.5262 323 35.5263 322 35.5264 321 35.5265 320 35.5266 319 35.5268 318 # Contour 4, label: 35.5269 317 35.527 316 35.5272 315 35.5274 314 35.5276 313 35.5278 312 35...
Your code works well if you change , to &&. But I think you have a logical error, too. Shouldn't $1>max1 rather be$2>line1 (and the same for max2/line2) ? awk ' 320>$2 && $2>315 && $2>line1 {max1=$1;line1=$2} 313>$2 && $2>307 && $2>line2 {max2=$1;line2=$2} END {printf " %s\t %s\t %s\t %s\n",max1,line1,max2,line2...
Find max values within Column 1 range and print column2
1,490,442,686,000
I have a file containing the following list of numbers: 0.1131492 0.1231466 0.1327564 0.1017683 5.4356130 0.1360532 5.4258129 0.1433982 0.1124752 . . . I would like to re-write this list of numbers if a line contains a value which is greater than 1.0000 then obtain previous line's number/value, such as: 0.1131492 0....
awk '$0>1 { $0=NR==1?0.1:prev }{ prev=$0; print }' file If the current line is greater 1, assign 0.1 to the current line if the line number is 1 or the previous value otherwise. Then assign the current line to the prev variable and print the current line.
re-write column's values to obtain previous line's value if exceed number 1
1,490,442,686,000
I have a file F.tsv with 13 columns, the last column (the 13th columns) looks like this: 2.1e-06 0.58 10 8.7e-22 0.0014 0.034 9.5 0.67 0.67 0.68 9.2 8.4e-22 9.7 I've tried sort -k 13 F.tsv but it didn't work since this didn't consider the scientific notation (like 2.1e-06). Is there any way to sort considering the sc...
I get the desirewd result with: LC_ALL=C sort -g -k 13 F.tsv
Sort file by row and with scientific numbers
1,490,442,686,000
The in file looks like this -17.3644 0.00000000 0.00000000 .... -17.2703 0.00000000 0.00000000 .... -17.1761 0.00000000 0.00000000 .... -16.5173 0.00000000 0.00000000 .... -16.4232 0.00000000 0.00000000 .... The desire output should be -173.644 0.00000000 0....
try awk '{$1=$1*10 ; print }' this will change first parameter, and print whole line. to keep formating to 3 digit, use awk '{$1=sprintf("%.3f",$1*10);print;}'
multiply specific column in a file which consists of thousands columns
1,490,442,686,000
How can I read, increment and replace a value in a file? foo="val" ver="1.2.0001" ... Now I would like to increment the "0001" to 0002".
Assuming that the patch level is always going to be a string of four digits: $ ver=1.2.0001 $ printf '%s\n' "$ver" | awk -F '.' '{ printf("%s.%s.%04d\n", $1, $2, $3 + 1) }' 1.2.0002 This uses awk and treats the version as three fields delimited by dots. It prints the first two fields as they are, but adds 1 to the t...
Replace and increment a line in bash
1,490,442,686,000
I'm trying to find the way to add a zero whenever there is a single digit. 750 1.75 750 50 1 32 The output should be like this 750 1.75 750 50 1.0 32
Presuming the input file is one number per line, and you want to add .0 to every single-digit integer: sed 's/^[0-9]$/&.0/' /path/to/inputfile To replace the contents of the file rather than display the changes: sed --in-place 's/^[0-9]$/&.0/' /path/to/inputfile
Add '.0' to single-digit integers
1,490,442,686,000
I want to halve the value of the numbers inside the field PERCENT="" which are above 10000. The numbers also can't have decimal places. For example PERCENT="50001" would need to be PERCENT="25001" or PERCENT="25000" (used 25001 in my example but doesn't really matter). All the data is also on one line and needs to sta...
Assuming that the XML has a proper root tag, using XMLStarlet: $ xml ed -u '//VALUE/@PERCENT[. > 10000]' -x 'floor(. * .5)' data.xml The //VALUE bit will select any VALUE node in the XML. The /@PERCENT will select their PERCENT attribute. With [. > 10000] I restrict the selection to those PERCENT attributes whose va...
halve number fields above 10000, dropping decimals
1,490,442,686,000
I have a file like this. input data 4.2394 4.4569 4.2427 4.1011 4.2879 4.1237 4.2106 4.4844 4.2373 4.1071 4.1322 4.0502 4.3103 4.4255 4.4342 4.5262 I need to multiply each element by a constant factor (in this example the factor is 8.06573) to produce an output like this: output 34.193855762 35.948152037 34.2204...
I think this does what you want; it accepts an awk variable named "factor" that is can easily be set to whatever you want: awk -v factor=8.06573 '{printf "%2.9f %2.9f\n", $1 * factor, $2 * factor}' With the given input, it outputs: 34.193855762 35.948152037 34.220472671 33.078365303 34.585043667 33.260650801 33.9615...
How to multiply two columns in a file by a constant number
1,490,442,686,000
http://0-0.latam.corp.yahoo.com/ 6656 http://0-0.latam.corp.yahoo.com/nonEtAk 6670 http://1.avatar.yahoo.com/ 6644 http://1.avatar.yahoo.com/nonEtAk 6858 Here the first ...
You don't give a specific threshhold for acceptance so why not rank them by the difference awk '{ if ($1 ~ /nonEtAk/) {ss=substr($1,1,length($1)-7); rank[ss]+=$2} else rank[$1]-=$2 } END { for (key in rank) { print key, "difference is", rank[key] } }' <(sed -e '/^$/d' file) | sort -r -k4 Output http://1...
Compare two lines using second columns
1,283,280,001,000
KDE SC 4.5.0 has some problems with some video cards including mine. Upon Release Arch recommended several workarounds. One of which was export "LIBGL_ALWAYS_INDIRECT=1" before starting KDE I decided that it was the easiest, best method. But I don't know what it does or how it impacts my system. Is it slower than the ...
Indirect rendering means that the GLX protocol will be used to transmit OpenGL commands and the X.org will do the real drawing. Direct rendering means that application can access hardware directly without communication with X.org first via mesa. The direct rendering is faster as it does not require change of context i...
What does LIBGL_ALWAYS_INDIRECT=1 actually do?
1,283,280,001,000
I want to create a dummy, virtual output on my Xorg server on current Intel iGPU (on Ubuntu 16.04.2 HWE, with Xorg server version 1.18.4). It is the similiar to Linux Mint 18.2, which one of the xrandr output shows the following: Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767 ... eDP1 connected pr...
Create a 20-intel.conf file: sudo vi /usr/share/X11/xorg.conf.d/20-intel.conf Add the following configuration information into the file: Section "Device" Identifier "intelgpu0" Driver "intel" Option "VirtualHeads" "2" EndSection This tells the Intel GPU to create 2 virtual displays. You can change the num...
Add VIRTUAL output to Xorg
1,283,280,001,000
I'm interested in forwarding an X11 session over SSH, in order to launch a remote process that utilizes OpenGL (specifically, gazebo for anyone familiar.) The problem that I seem to be running into is that gazebo crashes due to a mismatch in the graphics cards; it can't find "NV-GLX" extensions. The exact error outpu...
A few notes from the GLX Wikipedia article: GLX [is] An extension of the X protocol, which allows the client (the OpenGL application) to send 3D rendering commands to the X server (the software responsible for the display). The client and server software may run on different computers. and If client and server are ...
X11 forwarding an OpenGL application from a machine running an NVIDIA card to a machine with an AMD card
1,283,280,001,000
xvfb is supposed to let me run X programs in a headless environment. But when I run xvfb-run glxgears, I get: libGL error: failed to load driver: swrast libGL error: Try again with LIBGL_DEBUG=verbose for more details. Error: couldn't get an RGB, Double-buffered visual When I run LIBGL_DEBUG=verbose xvfb-run glxgears...
Just if anyone finds this old question, there is a solution to that mentioned in a bug report linked from another unix.stackexchange question. It was enough to change the default server parameters (-s/--server-args) from -screen 0 640x480x8 to -screen 0 640x480x24, i.e. anything with the 24 color depth.
Why does `xvfb-run glxgears` fail with an swrast error?
1,283,280,001,000
I have one weak PC (client) but with acceptable 3D performance, and one strong PC (server) which should be capable of running an application using OpenGL twice, i.e. once locally and once remotely for the client. Currently, I ssh -X into it, but the client's console output states software rendering is used and I only ...
You could check out VirtualGL together with TurboVNC should provide you with 20fps @ 1280x1024 on 100 Mbit (see wikipedia). Do note that it might not work with all applications, it depends on how they use OpenGL.
How to efficiently use 3D via a remote connection?
1,283,280,001,000
I want to try the most basic OpenGL driver, in order to find out what's the problem of my X server with OpenGL. I want then to have X use software rendering for OpenGL, like windows do with opengl.dll with no driver installed. How can I do that? Didn't find anything when searching for X OpenGL software rendering. I'll...
Duplicating my answer Force software based opengl rendering - Super User: sudo apt-get install libgl1-mesa-swx11 will remove the libgl1-mesa-glx hardware-accelerated Mesa libraries and install the software-only renderer. Alternately, you can set LIBGL_ALWAYS_SOFTWARE=1, which will only affect programs started with ...
Using software OpenGL rendering with X
1,283,280,001,000
This question is about executing /usr/bin/Xorg directly on Ubuntu 14.04. And I know there exists Xdummy, but I couldn't make the dummy driver work properly with the nvidia GPU so it's not an option. I copied the system-wide xorg.conf and /usr/lib/xorg/modules, and modified them a little bit. (Specified ModulePath in m...
To determine who is allowed to run X configure it with dpkg-reconfigure x11-common There are three options: root only, console users only, or anybody. The entry is located in /etc/X11/Xwrapper.config. Since Debian 9 and Ubuntu 16.04 this file does not exist. After installing xserver-xorg-legacy, the file reappears a...
How can I run /usr/bin/Xorg without sudo?
1,283,280,001,000
(Follow-up on How to efficiently use 3D via a remote connection?) I installed the amd64 package on the server and the i386 one on the client. Following the user's guide I run this on the client: me@client> /opt/VirtualGL/bin/vglconnect me@server me@server> /opt/VirtualGL/bin/vglrun glxgears This causes a segfault, us...
I don't know how this remote 3D works but if the client is indeed trying to run the amd64 executable, this is definitely the reason this message appears.
Segmentation fault when trying to run glxgears via virtualGL
1,283,280,001,000
How can I tell what OpenGL versions are supported on my (Arch Linux) machine?
$ sudo pacman -S mesa-demos $ glxinfo | grep "OpenGL version"
How can I tell what version of OpenGL my machine supports on Arch Linux?
1,283,280,001,000
How can I turn off Hardware Acceleration in Linux, also known as Direct Rendering. I wish to turn this off, as it messes with some applications like OBS Studio which can't handle capturing of hardware acceleration on other applications since it's enabled for the entire system. Certain apps can turn it on and off, but ...
You can configure Xorg to disable OpenGL / GLX. For a first try, you can run a second X session: switch to tty2, log in and type: startx -- :2 vt2 -extension GLX To permanently disable hardware acceleration, create a file: /etc/X11/xorg.conf.d/disable-gpu.conf with the the content: Section "Extensions" Option "G...
How to disable Hardware Acceleration in Linux?
1,283,280,001,000
I am trying to run an OpenGL 2.1+ application over SSH. [my computer] --- ssh connection --- [remote machine] (application) I use X forwarding to run this application and with that in mind I think there are a couple of ways for this application to do 3D graphics: Using LIBGL_ALWAYS_INDIRECT, the graphics hardware on ...
The choice is not necessarily between indirect rendering and software rendering, but more precisely between direct and indirect rendering. Direct rendering will be done on the X client (the remote machine), then rendering results will be transferred to X server for display. Indirect rendering will transmit GL commands...
Remote direct rendering for GLX (OpenGL)
1,283,280,001,000
I'm trying to compile a demo project, what is using OpenGL. I'm getting this error message: But I have everything: What is happening? If I have all of the dependencies, why does it not compile? I use Solus 3.
The meaning of -lglut32 (as an example) is, load the library glut32. The result of the ls you execute showed that you have the header file for glut32 In order to solve the problem of cannot find -l-library-name You need: To actually have the library in your computer Help gcc/the linker to find the library by providin...
gcc /usr/bin/ld: cannot find -lglut32, -lopengl32, -lglu32, -lfreegut, but these are installed
1,283,280,001,000
Today i did update and glx stopped working for non-root users: $ glxinfo name of display: :0 X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 24 (X_GLXCreateNewContext) Value in failed request: 0x0 S...
this one solved the problem for me: Apparently the only solution at the moment is to downgrade to the previous driver version (304.131). You can find the 304.131 drivers for Ubuntu this way: go to https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+publishinghistory look for the version you need, and...
After update GLX works only for root (nvidia)
1,283,280,001,000
I have a simple program written in Go that opens a blank window using GLFW. I'd like to automatically run tests, therefore I have been trying to get GLFW running in docker. So far I've already managed to get xvfb running. My problem is that I get an error GLX extension not found when calling glfwInit. Also, running gl...
It turns out the mesa-dri-gallium package was missing to enable the GLX extension. The finished Dockerfile looks like this: FROM alpine:edge RUN apk update # Dependencies for GLFW (not required for this example) RUN apk add \ build-base \ libx11-dev \ libxcursor-dev \ libxrandr-dev \ libxinerama...
Running GLFW in Docker
1,283,280,001,000
I have bought new PC with AMD Ryzen 7 3800X and Radeon RX 5700 XT. Can only install from UEFI USB stick otherwise installation after first dialog (the one where you select Install or Graphical Install) is just broken mess. When installed, OpenGL uses CPU rendering instead of GPU and no drivers can do anything with it....
Solved by installing firmware-linux-nonfree and then running make install in git.kernel.org/.../linux/kernel/.../linux-firmware.git/ (just download it, extract the .tar.gz and while in the directory type "make install"). This way you should be able to use all the new firmware until it is replaced by newer version from...
AMD Radeon RX 5700 XT
1,283,280,001,000
I am attempting to figure out if a problem with fonts in Wine is related to my OpenGL driver (r600g). How can I temporarily switch to the llvmpipe software renderer to perform testing, then switch back to r600g? I am using Kubuntu 16.04 with Radeon HD 3200 graphics. Thanks.
You can use the LIBGL_ALWAYS_SOFTWARE environment variable to force software rendering on a per-application basis: LIBGL_ALWAYS_SOFTWARE=1 [application] [arguments ...] It only works if you are using mesa (which you probably are).
How to temporarily switch to llvmpipe
1,283,280,001,000
I'm building an appliance/kiosk-type machine which is going to run a single fullscreen Wine application (Synthesia). I'm using Arch Linux running LXDE on an original 7-inch EeePC (well, souped up to 2Gb of RAM, but the CPU is rather slow, something like 633 Mhz). The game can use either a DirectX or OpenGL renderer an...
Well, since nobody wants to answer :) This wiki article, while not completely related, provided useful pointers: You can easily check if you have 3D rendering ... by installing mesa and running the following command: glxinfo | grep renderer If you have no 3D acceleration you'll get some output like this: [joe@arch...
How do I tell if a Wine application uses hardware or software rendering?
1,283,280,001,000
I have a rendering software, to be more specific, it's a Unity3D «game» that renders video (saving rendered frames). Unfortunately Unity3D doesn't support «headless» rendering (it can run in headless mode, but in this case it doesn't render frames), so it needs an X server to create a window. I have a Debian Bullseye...
My xorg.conf is like this Section "ServerLayout" Identifier "Default Layout" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Prot...
Best way to do rendering on Linux server with GPU but without a display?
1,283,280,001,000
On an older laptop that runs Fedora 18, and has a Intel Corporation 82852/855GM Integrated Graphics Device, I cannot get OpenGL to run on it. In fact, I have no 3D acceleration whatsoever. I have the correct drivers installed, but I can't get OpenGL to work. glxinfo reports: name of display: :0.0 X Error of failed re...
Actually, the problem sorted itself. There was an update of Mesa a couple of weeks ago, and it now works beautifully. Just thought I'd share! :3
How to enable OpenGL rendering on Fedora 18 with an Intel Corporation 82852/855GM? [closed]
1,283,280,001,000
I have an Intel graphics card, of which I can't tell whether or not it's being recognized. When I go through GUI to the System Info section, it states that my graphics card is unknown. Despite this, my lspci displays the graphics card perfectly fine. Question Is there any way to get OpenGL working correctly on Ubuntu...
Just because system settings doesn't correctly report your graphics card, doesn't mean it's operating incorrectly. I'm not sure what you mean by 'Getting OpenGL to work', but I'm guessing you mean Verifying accelerated OpenGL? The two major components of basic acceleration are Xv, and GLX Direct Rendering. Xv does H...
Getting OpenGL to work under Ubuntu
1,283,280,001,000
For many years I've been in the habit of, when away from home, VNC-ing (over ssh) back into my "home machine" and running Evolution (for email, contacts etc) in a tightvncserver environment there. This worked fine when the home machine was running Debian/Squeeze, but now it's been updated to Wheezy, attempting to star...
I see that in Debian9 ("stretch") something called tigervnc-standalone-server has appeared. This appears to include some OpenGL support (I note mesa is a dependency). I had no problems installing it on a fresh Debian9 install and firing it up got me a VNC-able (any VNC client) standalone (not "screen scraped") deskt...
How to get Evolution to run in VNC on Debian/Wheezy (or later)?
1,283,280,001,000
How can I configure Qubes OS that a VM supports opengl for my nvidia graphics on my laptop (optimus)? The laptop has a integrated intel card and a quadro K2000M. At least the quadro 2000 seems to be supported by Xen passthrough: http://wiki.xen.org/wiki/XenVGAPassthroughTestedAdapters
No, Qubes OS does not support OpenGL or any accelerated graphics of any kind in a VM. The document located at https://www.qubes-os.org/doc/user-faq/ states: Can I run applications, like games, which require 3D support? Those won’t fly. We do not provide OpenGL virtualization for Qubes. This is mostly a security decis...
Does Qubes OS support opengl on discrete graphics?
1,283,280,001,000
I need to do headless hardware accelerated server rendering using OpenGL and found out that this is possible with pbuffers and frame buffer objects (FBO). But today these approaches still need a context and can't run without a running X server. I found a (now deleted, but on web archive) presentation from Sun about ex...
Recent versions of opensource Linux OpenGL drivers (that is, drivers provided by Mesa [1]) support rendering on headless machines without a window system. The Intel Mesa team (to which I belong) uses this feature to run OpenGL tests on headless machines with no X server. A coworker and I added the support for headless...
What happened to the GLP OpenGL extension?
1,283,280,001,000
Problem After a recent system update (on Fedora 25) I have some problems with my graphics card (GeForce 1060, using the proprietary driver from RPM Fusion), so I wanted to get diagnostics information using glxinfo. However, glxinfo can't find libGL: glxinfo: error while loading shared libraries: libGL.so.1: cannot ope...
I found out what the problem was. dnf repoquery -l mesa-libGL outputs the files of all package versions. In this case, libGL.so.1 is only included in mesa-libGL-12.0.3-3.fc25.i686, which is not the version I have installed. Apparently, the package authors changed some dependencies and libGL.so.1 is now part of libglvn...
Missing libGL on Fedora, cannot install it
1,485,111,614,000
Context I recently updated my nVidia drivers to 375.26 and recompiled FFmpeg N-83180-gcf3affa and OBS 17.0.2-5-g43e4a2e (sorry if these numbers don't mean anything, I'm not quite sure what version numbers are significant) on my Debian machine. Doing a suspend to RAM will cause OBS to stop working with its only fix to ...
FFmpeg only locks up on CUDA init if an h264_nvenc stream was started (and stopped, but this is not needed) before putting the system into suspend. If OBS never records anything with the h264_nvenc encoder before suspend, it will work fine when you login again. If OBS locks up after logging in, it will become usable b...
CUDA Context for NVENC not found after system suspend
1,485,111,614,000
I recently got into OpenGL and I was researching on how opengl can either render directly or indirectly using the X window system. What I understood was that, in order to render directly it uses something known as the DRI (Direct Rendering Infrastructure). The DRI then makes use of the DRM (Direct Rendering Manager) t...
What is OpenGL and what is graphics card? OpenGL is high level 3D graphics library. Although it is used to talk with "graphics card", or rather a GPU, it abstracts many differences between the many 3D capable cards into much simpler and more coherent OpenGL "concept space". OpenGL does not care whether computer has PC...
What is OpenGL's relationship with the DRM
1,485,111,614,000
I have an AMD 5700XT gpu and I am trying to learn SYCL but I have a lot of doubts of the current state of AMD gpu driver stacks. According to what I read, there are several driver stacks for AMD gpus: mesa, amdgpu and amdgpu-pro. If I understand correctly, mesa has its own opencl implementation and there is another im...
My understanding is that there's a single kernel driver, amdgpu. Mesa lives in userland and is an OpenGL implementation. amdgpu-pro provides alternative closed-source userland libraries (OpenGL, OpenCL etc). clover is an OpenCL implementation on top of Mesa. I'm not sure what state it is in (my impression is that it w...
SYCL and OpenCL for AMD gpu
1,485,111,614,000
The problem: I ssh to two remote clusters. By running glxgears, on one cluster I can successfully visualize the rotating gears though with some warning messages (details below), but on the other one it gives Error: couldn't get an RGB, Double-buffered visual and nothing is visualized. I have very little knowledge abou...
We encountered this issue recently and solved it by running export __GLX_VENDOR_LIBRARY_NAME=mesa in the ssh session. For some reason it was loading the nvidia opengl driver despite the mac not having any nvidia hardware. There's probably some way to fix this on the mac instead, but temporary solutions are permanent.
glxgears gives Error: couldn't get an RGB, Double-buffered visual on one remote server but not on another
1,485,111,614,000
I'm trying to install mesa-common-dev on Ubuntu LTS: sudo apt-get install mesa-common-dev however, the system returns: The following packages have unmet dependencies: mesa-common-dev : Depends: libgl-dev but it is not going to be installed Depends: libglx-dev but it is not going to ...
focal-updates is missing in your /etc/apt/sources.list, to correct the problem: echo "deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse" |\ sudo tee -a /etc/apt/sources.list sudo apt update sudo apt install mesa-common-dev
mesa-common-dev: unmet dependencies
1,485,111,614,000
I'm trying to install 32 bit nVidia drivers on my 64-bit system (to get wine working with OpenGL). So I tried: root@grzes:/lib# aptitude install libgl1-nvidia-glx:i386 libxvmcnvidia1:i386 The following NEW packages will be installed: libgl1-nvidia-glx:i386 libxvmc1:i386{ab} libxvmcnvidia1:i386 0 packages upgraded, 3 n...
The info on the internet is conflicting on this topic so here are 2 leads that I found. I do not have multiarch nor Debian but am still trying to assist anyway. Area to investigate #1 - Wine I think you want to install the 32-bit NVIDIA drivers inside of Wine. I found this thread, it's on a FreeBSD forum but is still ...
Having nVidia OpenGL 32bit driver on a 64bit Debian system in multiarch
1,485,111,614,000
I run FC 24 (just upgraded from FC 23). After the upgrade there were some issues with the X server, and so I decided to change from Nvidia proprietary drivers to Nouveau. Everything seems OK, except that I can't get GLX to work. For glxinfo I get: name of display: :0.0 Xlib: extension "GLX" missing on display ":0.0"...
Poked around on Rpmfusion and found a few more steps to take, to remove garbage left behind by the NVIDIA installer. https://rpmfusion.org/Howto/nVidia#Recoverfromnvidia_installer Namely: rm -f /usr/lib{,64}/libGL.so.* /usr/lib{,64}/libEGL.so.* rm -f /usr/lib{,64}/xorg/modules/extensions/libglx.so dnf reinstall xorg-x...
Cannot get glx to work after changing from Nvidia to Nouveau drivers FC24
1,485,111,614,000
I'd like to do OpenGL rendering from an application that talks to an X11 server. The application reads the value of the DISPLAY variable. I have access to a CentOS 7 box that has a nice graphics card capable of doing 3D rendering, but I don't have a monitor plugged into it. When I run xstart, to start the X11 server, ...
I've run into this problem before. Unfortunately, the best answer I've been able to come up with is a hardware solution: trick the graphics card into thinking a monitor is installed by plugging a VGA terminator into the VGA output. You can make one at home or buy one; googling for "VGA terminator" returns plenty of ...
Start X11 server on CentOS 7 without screen but with a graphics card
1,485,111,614,000
I would like to run a remote OpenGL program through ssh tunneled with the -X option. My laptop has Optimus so anything using OpenGL has to go through optirun (bumblebee). This would explain why I can't launch the program (vmd in my case, it says can't open OpenGl GLX). Is there a way around?
Yes, there is, but it isn't really usable. OpenGL uses 3d acceleration, which is practically a chip of your actual, current video card. That means, that you can't do 3d accel on remote machines. What you can do instead: You could use the mesa version of the 3d accelerated libraries. It means software 3d rendering, wi...
optirun and ssh -X
1,485,111,614,000
I'm using ffmpeg's x11grab to do some screencasting. It works pretty well except on 3D stuff. In particular it seems like 3D draw areas flicker in and out. You can see an example of it here. The issue is present even when I capture only the screen (i.e., not adding in all the other fancy stuff and the webcam capture)....
I finally resolved it! The problem was to do with OpenGL as I suspected. To solve the issue, I downloaded VirtualGL. Specifically I grabbed the .deb file from here and installed it with dpkg. Running my applications with vglrun application and then starting the screencast now works perfectly, it even runs more smooth...
x11grab flickers in OpenGL draw areas
1,485,111,614,000
I am trying to build Cube2 Sauerbraten, But I need the OpenGL and SDL2 libraries to run the makefile. (I am using ubuntu here) I tried running sudo apt-get install --yes software-properties-common g++ make then sudo apt-get install --yes libsdl2-dev then sudo apt-get install --yes freeglut3-dev and lastly, to compile,...
Your program has many files, then a single g++ won’t be enough. A make (No arguments) command is often the right way to compile the software from the Makefile. The Makefile is in the src folder… you should enter it (cd src) before launching make. make install compile the software if not done and install it. According ...
How to install OpenGl and SDL2 libraries on ubuntu
1,485,111,614,000
As a Linux fan, I want to get into OpenGL development as a hobby of mine. I know that OpenGL is just an API that the GPU vendors must implement. Some GPU vendors' OpenGL/Vulkan implementations are proprietary, whilst some are open source (like Intel). Because I like open source, I want to make sure I don't use anythin...
TL;DR Run this in your terminal: glxinfo | grep -i mesa If you do see something in the output, then you should be using mesa. If nothing shows up, it's something else. And if it's something else, glxinfo | grep -i vendor should tell you what it is. Full explanation: So first of all, it's not really about choosing wh...
How to check whether or not your GPU is currently using Mesa for rendering OpenGL/Vulkan?
1,485,111,614,000
I'm using the following graphics settings for my KVM guests: ... <graphics type="spice"> <listen type="none"/> <image compression="off"/> <gl enable="yes" rendernode="/dev/dri/by-path/pci-0000:69:00.0-render"/> </graphics> ... <video> <model type="virtio" heads="1" primary="yes"> <acceleration accel3d="yes...
The problem is that Xfwm's built-in compositor and virgl don't play nice together. Work-around: Boot the VM with virgl=off (on the video device) or gl=off (on the display), run xfwm4-tweaks-settings in the VM, select the "Compositor" tab, and uncheck "Enable display compositing". Then shut down the VM and re-enable v...
KVM Virgl acceleration only works on some guests?
1,485,111,614,000
Some quick background, I am running Fedora 19 x86_64 on a Dell Latitude with a 2nd gen i7 and discrete nvidia graphics card. I have some rather obnoxious problems where the screen doesn't seem to render consistently. The freezes are irregular and short, but frequent. The system has behaved like that since install, and...
Welp, I answered my own question after slightly more work. I had been annoyed by this problem for some time and just never made the right connection. NVIDIA Optimus. After installing lshw and running it with the video option, I noticed two displays active. One was for the i7, the other for the NVS 4200M. Did not take ...
Diagnosing a freezing system, or renderer
1,485,111,614,000
I just read a Phoronix article, which compared the FOSS radeon drivers a 5 years old FGLRX catalyst. As you would expect FGLRX was multiple times faster, even the feature set was not completely implemented. The big question, not answered in the article, was why? I noticed FGLRX brings its own libGL, does Nvidia do...
Well, I do not have inside information about either of the open source or proprietary projects but the answer is pretty simple from my point of view. FOSS video drivers are made by people in their free time on their specific hardware. Many times these programmers does not have the motivation, the hardware resources, t...
Why FOSS 3d performs so badly, compared to proprietary
1,485,111,614,000
EDIT: The cause (or one cause) appears to be a segfault in libEGL-nvidia, which I guess causes glxtest to fail, which causes firefox to assume the drivers are faulty (which they could partially be). I have received an update to firefox 111, but it didn’t fix the problem. WebGL has suddenly stopped working in Firefox. ...
This issue appears to be fixed in version 114. I've reset the settings I used when I first got this issue to try to get Firefox to use WebGL and it still works without that. I haven't seen this get mentioned anywhere so I don't know if this was caused by another fix or if something on my end changed, but the problem i...
Firefox cannot detect GPU (libEGL segfault)
1,485,111,614,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,485,111,614,000
I need to upgrade my OpenGL version from 3.0 to 3.1. Stackexchange is full of postings that tackle specific situations, and it proved difficult for me to see the tree from the wood, not to mention to estimate the ageing of the trees, so to speak. Therefore, I have collected the following information on my situation, o...
Summarizing comments: the application probably misbehaves. OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.2.0 This means you have Mesa 11.2 installed, and the maximum supported OpenGL version is 3.3. Now, why does the application say otherwise? The most common way to query OpenGL version used to be a ...
Updating OpenGL from 3.0 to 3.1
1,373,311,224,000
I want to try out WebGL as I'm learning OpenGL currently and, well yeah, kind of interested in how WebGL looks like. I tried some demo sites like this or that. But unfortunately they don't work. I get the warning both in firefox and chromium: This page requires a browser that supports WebGL. Browsing to the official...
Well, according to the WebGL public wiki, both firefox and chrome support WebGL with Nvidia GPUs in X11/Linux. In my case the wrong graphic driver was selected. ~ # eselect opengl list Available OpenGL implementations: [1] nvidia [2] xorg-x11 * Setting it back to nvidia fixed my issues with WebGL. ~ # esele...
How to enable WebGL in Chrome or Firefox?
1,373,311,224,000
Recently, I switched from using a dedicated ATI video card and proprietary drivers to the onboard Intel video card and default/generic Intel drivers because the ATI video card was damaged and I couldn't get the proprietary driver to play nicely with my X server. Anyway, now I get core dumps whenever a program that use...
I figured it out. As I suspected, there is a conflict between the shared libraries that AMD wanted to use and the shared libraries that the Intel driver uses. The solution was to uninstall the AMD driver. I did this by running an uninstall script in /usr/share/ati. After I ran this script, I had to restore my /etc/X11...
opengl/glx core dumps - generic intel linux drivers, RHEL6
1,373,311,224,000
I am working on OpenGL shaders, and I need uint64_t types, etc... However, when I do glxinfo, this extension is not in the list. I am using Mesa 18.0.5, and this page tells that the extension is supported for radeonsi drivers from 17.1.0. My GPU is a AMD Radeon HD 8730M. I am using the radeon driver, but switching to ...
Got it. Mesa was indeed using my integrated graphic chipset. By launching all the commands with the environment variable DRI_PRIME=1, I was able to directly use my GPU, thus enabling the asked extensions. Howerver, I am not sure if setting this environment variable each time or globally is a good solution.
Unable to use OpenGL ARB_gpu_shader_int64 extension with Mesa
1,373,311,224,000
I recently got a new laptop (Thinkpad T480) which has Intel integrated "UHD Graphics 620" and an Nvidia MX150, and I installed Ubuntu 18.04. I installed the nvidia driver alright, and I believe I am using the Nvidia card successfully to run my laptop's display/external monitors. However, I have a problem displaying 3D...
I tried again on a fresh install of Ubuntu 18.04 and installed the Nvidia driver before anything else, and that worked (everything seems to be working now). I believe something else I had previously installed (not sure what) was conflicting with some of the files required by my graphics setup.
Problems displaying 3D content with Nvidia graphics card in Ubuntu 18.04
1,373,311,224,000
I'm trying to find the source package for libglut.so. I found this website that explains how to do it in ubuntu:https://askubuntu.com/questions/481/how-do-i-find-the-package-that-provides-a-file But I need to know how to do it in CentOS. My system is CentOS 6.4
Assuming you already have the package installed, rpm -q --whatprovides /usr/lib64/libglut.so.3 will show the name of the package providing the file. (Inapplicable as you don't want to use yum) : if not already installed, then yum provides /usr/lib64/libglut.so.3 or simply yum provides 'libglut*' will search the yum re...
Is there a way that I can find the source package of a file in CentOS without using yum?
1,373,311,224,000
I'm running the following code in the python console import pygame pygame.init() Here is the output from the terminal libGL error: MESA-LOADER: failed to open iris: /home/souvik/anaconda3/envs/game_env/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /...
I had the same issue with `GLIBCXX_3.4.29' not found. First you should check if you can see GLIBCXX_3.4.29 in your conda lib: strings ~/miniconda3/lib/libstdc++.so.6 | grep GLIBCXX_3.4.2 If not you should check if it exists in your systems lib: strings /lib/libstdc++.so.6 | grep GLIBCXX_3.4.2 If this shows the ve...
Trying to run pygame on my conda environment, on my fresh Manjaro install and getting libGL MESA-LOADER error
1,373,311,224,000
When I try to use plot() in octave-cli I get an empty window instead of a plot and the following error: Insufficient GL support which suggests that the glx module is missing from the X server configuration. So I added Section "Module" Load "glx" EndSection to my otherwise empty X configuration file at /usr/loc...
tl;dr The solution is pretty simple: pkg remove nvidia-driver nvidia-xconfig nvidia-settings xorg drm-next-kmod pkg autoremove pkg install xorg drm-next-kmod What happened? It turns out that nvidia-driver overwrites files previously installed by xorg and/or drm-next-kmod. As a result the X server is unable to determ...
Missing GL support on FreeBSD with Intel graphics
1,373,311,224,000
I was trying to run a C++ program which requires GLX version 1.3 to run. When I check the version of GLX after directly logging into a Fedora computer by typing glxinfo | grep "version" I get that the GLX version is 1.4. However, when I SSH into that same computer as the same user from my Windows 8 laptop with PuTTY, ...
glxinfo reports the capabilities of the X server pointed at by the DISPLAY variable. When you log in directly to your Fedora workstation, that’s your Fedora X server. When you log in using PuTTY with X forwarding, that’s Xming. That’s why you get different results. The whole point is to determine the capabilities of t...
GLX version is different when using SSH versus logging in directly?
1,373,311,224,000
I'm developing OpenGL game and I've copied portion of code with similar function code was partially modified for it's new function, but there was still some bugs. This code was calling OpenGL rendering functions with wrong data, parameters. After calling OpenGL functions with wrong data/arguments whole system freezes ...
Given the "monolithic" nautre of the Linux kernel, an error in code that runs in the highest privilege level of the CPU, usually entitled "kernel-mode", can crash the whole system. There are three reasons for this: Such code can directly access the memory space of any other code. So it is possible for such code to...
How can bad OpenGL calls cause whole system crash?
1,373,311,224,000
I am using KDE neon 5.21 with Ubuntu 20.04 LTS on a HP Elitebook. The system is running pretty smooth but there is one major inconvenience: The desktop sometimes becomes extremely laggy. The mouse is still moving smoothly but every other action (moving windows, typing text, every click) takes a delay of about one seco...
Since one of the latest updates - unfortunately I don't know which one exactly did the trick - the issue seems to be gone. My compositor is set to OpenGL and the lagging cannot be reproduced anymore.
KDE neon desktop becomes laggy after closing applications or applying settings
1,373,311,224,000
Is it possible to run an opengl application like glxgears from the command line without starting a desktop environment? It should directly go to exclusive full screen mode.
It is not possible to run an application meant for X in the command line. But like @cylgalad said, you can have any desktop environment and put that application to run exclusively. Try to install a lightweight desktop environment, like xfce or fluxbox.
Running OpenGL app without desktop
1,373,311,224,000
MY school got donated 35 computers that are 4 years old. Each computer has 32 bit architecture. I've taken one to use it for and AR Sandbox (project by Oliver Kreylos). For that I've installed Linux Mint Version 18.3 "SYLVIA" with MATE desktop for 32 bit architecture. Then I have installed all software needed by the A...
Extension GL_EXT_gpu_shader4 not supported by local OpenGL while initializing rendering windows doesn’t mean that you don’t have the appropriate OpenGL drivers, it means that the software you’re trying to run isn’t written correctly. It should either request GL_EXT_gpu_shader4 using a core profile (not a compatibili...
Need Intel Xeon E3-1200 drivers for Linux Mint 18
1,373,311,224,000
I have fedora 26, I have latest codeblocks and freeglut and freeglut-devel. In codeblocks wizard I pick glut project. It asks me to enter a location but it can't detect it. I tried /usr and /usr/include and usr/include/GL. How to get it working?
A member on codeblocks forums called Jens solved my problem Create a global variable Settings -> Global variables with the name glut and enter /usr in base and /usr/lib64 in lib And keep the default $(#glut) as location in the wizard.
Freeglut on Fedora 26 and codeblocks
1,373,311,224,000
I'm trying to build a simple application using Qt 5.7 on CentOS 7.3. But when I try to compile it, I get the following errors: cannot find -lGL collect2: error: ld returned 1 exit status The application code is irrelevant because any GUI application (Qt Widgets or QtQuick) gives the same errors. My graphics card is ...
-lGL means libGL.so. Finding the package providing libGL.so : yum provides */libGL.so Install the package(s) : # yum install mesa-libGL-devel mesa-libGLU-devel
ld cannot find -lGL on CentOS 7
1,373,311,224,000
I am trying to install OpenGL on my Fedora. But first I am confused with some concepts. I am using ATI Radeon 5470 card and I downloaded the driver from the official website. Here is the link I want to ask Q1: is this equivalent to OpenGL? Q2: How to uninstall the driver I have installed. PS: I used sh ati-driver-in...
AFAIK they provide their own OpenGL implementation with drivers, so you should already have it installed. You should've had another open source implementation before installing drivers though, likely Mesa. Tip: I've never had to install OpenGL explicitly in my life.
Installing OpenGL in fedora 14
1,373,311,224,000
asdfdsgAlthough it may seem incredible, I have the problem that GL does not open if X is open, but if X is not open it does open. And I know this because I tested it with the video game Warzone 2100, when I log out and there is only a TTY terminal, it does detect GL and open the game, and I can play as normal. I'm get...
To solve this you have to look at cat /var/log/Xorg.0.log | grep "(EE)" In this case, what was necessary was to install these three packages: llvm 11: https://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux/p10/branch/x86_64/RPMS.classic/llvm11.0-libs-11.0.1-alt6.x86_64.rpm xorg-dri-nouveau: https://distrib-coffee...
GL opens in TTY terminal, but not if X is present
1,373,311,224,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,656,029,979,000
The Debian package libreoffice-core (which is described in the Debian repositories as containing " the architecture-dependent core files of LibreOffice," and which is itself a dependency for libreoffice-writer and similar packages) has an absolute dependency (i.e., the relationship of the packages is depends, not reco...
libreoffice-core ships /usr/lib/libreoffice/program/soffice.bin, and that is linked against libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f55a8c9e000) The package build tools therefore automatically add a dependency on the package providing that library, libldap-2.4-2. It’s a strong depen...
Why does LibreOffice (at least as packaged for Debian) depend on libldap?
1,656,029,979,000
I'm using openldap-server-2.4.38_1 on FreeBSD 9.1-RELEASE-p5. 1) can I get list of active (connected) schemes without viewing slapd.conf file? 2) how can I get description of obectClasses and/or it's attributes in this schemes whiout viewing scheme file? So - it there any pre-builded utils (I mean utils like ldapsearc...
Yes to both. ldapsearch -H ldap://ldap.mydomain.com -x -s base -b "" + # the + returns operational attributes will give a list of supported features. You may want to look up the meaning of the IOD's that get returned here. More interesting stuff is in the cn=Subschema section: ldapsearch -H ldap://ldap.mydomain.com ...
How can I list active schemes, classes etc?
1,656,029,979,000
I am trying to setup backup and restore and make sure it works. Please note that database size on ldap.old is lot more then the ldap. The /var/lib/ldap.old is my existing database. I have renamed /var/lib/ldap for backup/restore testing. I am getting the following error when restoring. Because of this I am not sure I...
First of all you should be aware of slapcat's limitations: For some backend types, your slapd(8) should not be running (at least, not in read-write mode) when you do this to ensure consistency of the database. It is always safe to run slapcat with the slapd-bdb(5), slapd-hdb(5), and slapd-null(5) backends. So you...
Openldap backup restore
1,656,029,979,000
I have root access to a RHEL6 system and I want to use the corporate ldap server where I work for user authentication. I ran authconfig-tui and checked [*] Use LDAP and left [*] Use Shadow Passwords checked, then I checked [*] Use LDAP Authentication then click the Next button and left [ ] Use TLS unchecked and set ...
Take a look at these documents from Red Hat. They show how you can change your system so that it will authenticate to an LDAP server rather than use the local credentials on the system. The topic is a little much to include on this site so I'm only providing a reference here to the official docs. Chapter 11. Configur...
how do I configure my RHEL5 or RHEL6 system to use ldap for authentication?
1,656,029,979,000
I am trying to set up a Samba server to use an LDAP server for authentication only, but pull all account information (user ID etc.) from SSSD, PAM etc. Basically, the server should act as a standalone server except that the user names and passwords will be checked against LDAP. The LDAP server only provides the posixA...
The answer appears that it cannot be done, at least not without turning password hashing off and severely compromising security. The problem is basically the same that first led to the creation of the smbpasswd file and utility: the Samba server never sees the plaintext password. The password is always hashed. The has...
Samba - use LDAP for authentication only?
1,656,029,979,000
I have openldap v 2.4 running on centos7 and working but i cannot get it to log anything. I have tried adding the below line to the rsyslog.conf file but i still do not get any log file. LOCAL4.* /var/log/openldap/slapd.log When i added this line i ran the below command to reload the rsyslog conf and also stop...
To enable OpenLDAP debugs, you would want to add the following to your slapd.conf loglevel <level> (eg: stats) If you do not use slapd.conf, you may then pass that option to the slapd service. In debian/ubuntu, you would find some /etc/default/slapd file, you may update its SLAPD_OPTIONS: $ grep SLAPD_OPTIONS /etc/de...
OpenLDAP v2.4 enable logging
1,656,029,979,000
Perhaps my google kungfu is not doing great today, but I found ways to apparently do this for each user (one by one) on the client side, or even a way to do it from the ldap side with ldapmodify again one by one. What I am trying to setup is ssh based LDAP login, and its working sorta, still need to restrict to groups...
sudo nano /etc/phpldapadmin/templates/creation/posixAccount.xml The Home Directory isn't really part of the question :P, but its the only two things I modified, and I figured I'd include it! Works great now though! But for users whom have already logged into server, it didn't retroactivly fix it, even if I changed th...
Change default login shell to /bin/bash for ALL ldap users from LDAP server - not client
1,656,029,979,000
I see that liblber is a separate package BUT searching for it, what it is, why it is needed - is never answered. Only lots off questions/comments/etc on OpenLDAP. So, my two questions: is liblber contained within OpenLDAP? If yes, that may explain why it does not seem to have it's own project page. What is liblber fo...
(1) Yes, it's part of OpenLDAP. (2) It implements the LDAP version of ASN.1 Basic Encoding Rules. OpenLDAP ships with documentation for this library; possibly you need to install a -dev package to get it. For example, the lber-encode(3) manpage. Unless you are a C/C++ programmer who needs to deal with LDAP, this libra...
Is liblber part of openLDAP? What is it's purpose?
1,656,029,979,000
I am currently considering to shuffle some infrastructure around, but my question boils down to: Can I sync a list of users and passwords to Azure AD (only for Office 365) from a linux samba server? Currently there's an on premise Windows Server that doesn't do much apart from DNS and user management for different s...
I don't believe there is a tool "right now" that will allow you to synchronise accounts from a Samba DC to Azure Active Directory. You should be able to set up your spare Windows Server as a secondary Domain Controller and then synchronise from that using Azure AD Connect, though. Another option - albeit a heavyweight...
Linux and Azure AD sync possible?
1,656,029,979,000
I am able to log in to an Active Directory using the userPrincipalName attribute of a user objectClass; (e.g. [email protected]) I have also set up an OpenLDAP server instance to which I can only authenticate using the dn, e.g. "cn=somecn,cn=anothercn,ou=someou,dc=mydomain,dc=com" How is it possible to authenticate to...
OpenLDAP supports two authentication methods (simple and SASL), while SASL is the default method for ldap-utils like ldapsearch. When you are authenticating using the DN, you do a so called "simple bind". simple bind The simple method has three modes of operation: anonymous unauthenticated user/password authenticated...
OpenLDAP vs Active Directory authentication mechanisms
1,656,029,979,000
I'm trying to use the 'userCertificate' attribute to hold a 'der' file. I can happily add my certificate using the ldif: dn: cn=bob,ou=users,dc=home changetype: modify add: userCertificate;binary userCertificate;binary:< file:///home/bob/cert.der I see my certificate in base64 encoding when I do an ldapsearc...
I just get this error: ldap_modify: Undefined attribute type (17) additional info: usercertificate: requires ;binary transfer. This error message pretty clearly refers to what's mandated in RFC 4523, section 2.1. You simply always have to append ;binary to the attribute name in all LDAP operations affecting attribut...
Problems with ldap userCertificate attribute
1,656,029,979,000
I am trying to setup Kerberos MIT authentication with OpenLdap autorisation on Debian Jessie. Authentication part is working great, as I can login to SSH using my kerberos account. I even can create user home directory using pam_mkhomedir.so However, I can't use Ldap posixGroup to allow access to my SSH server : Here ...
uid=tupac,ou=people,dc=maytacapac,dc=inc looks wrong, as most (okay, all except this one) LDAP-provided group memberships I've seen do not include a LDAP DN, and instead just the username, so I would expect to instead see adminsLinux:*:3000:tupac.
getent group working, but sshd_config allowgroups does not retrieve appropriate group
1,656,029,979,000
I don't explain how to configure tls-ldap on server, on google there is a lot of stuff to configure it(create tls certs, create ldif, import ldif, try ldapsearch -ZZ, etc..). Is also easy to force the tls from server, so connection without -Z or -ZZ are refused ldapsearch -LLL -D "cn=ldapadm,dc=ldap1,dc=mydom,dc=priv"...
You can try adding an LDAP extended operation for STARTTLS onto the URI in your client LDAP configuration file (e.g. ~/.ldaprc or /etc/ldap/ldap.conf). URI ldap://<ldap-server>/????1.3.6.1.4.1.1466.20037 I seem to have had some success with that. Although I find the option TLS_REQCERT demand either stops working or I...
openldap: is possible to force the starttls from a client?
1,656,029,979,000
On a Debian Buster installation I have just installed the OpenLDAP server slapd with: ~$ sudo apt install slapd ldap-utils ~$ sudo dpkg-reconfigure slapd On its setup with default options I was prompted to give an organisation name. I used home, so I get ~$ ldapsearch -x -LLL -b dc=hoeft-online,dc=de dn: dc=hoeft-onl...
Are you certain that your LDAP directory contains the dn o=home,dc=hoeft-online,dc=de? The error suggests that it does not, but as you have not pasted the output of an appropriate ldapsearch command it's hard to tell. Is suspect that is the issue, because otherwise I am unable to reproduce your problem. I'm starting ...
Add organisational unit (ou) to organisation (o) in OpenLDAP
1,656,029,979,000
I have installed OpenLDAP with yum, but I have accidentally deleted some of the config files. I am not able to recover them. I want to uninstall it. I tried the following command but it ends with an error: --> Processing Dependency: PackageKit-glib = 0.5.8-20.el6 for package: PackageKit-gtk-module-0.5.8-20.el6.x86_64 ...
Can you make a backup of the configuration and : yum remove openldap rpm -e openldap.package_name yum install openldap And copy your configuration files back
How to uninstall OpenLDAP in RedHat?
1,656,029,979,000
I'm currently trying to set up an integrated Kerberos V/LDAP system for authentication/authorization. From what I have managed to gather, there are at least two ways to integrate Kerberos V with LDAP: Use LDAP as a backend to store Kerberos principals User Kerberos and SASL authentication via GSSAPI to authenticate t...
Since nobody answered this question and I found no existing solutions to this, I rolled my own solution in Perl. The solution is geared towards Debian specifically because this is my target environment. Feel free to fork it and adapt it to your needs. Your comments on the code/coding style would be very appreciated. F...
Integrating LDAP and Kerberos V to add users via a useradd-like interface
1,656,029,979,000
I feel like I am overlooking something obvious. My goal is to run a systemd service with an LDAP service account at system startup. THAT WAY, if I disable the account in LDAP, then the next time the service attempts to start, it will fail, because the user is not authorized. (Eventually, I need to get my Kerberos setu...
I would create a linux system user (an objectClass: posixAccount in LDAP) and simply set the systemd unit file to have User=< uid value from the LDAP record If PAM is properly configured, this should populate a uid and linux username which systemd will be able to spawn the executable process under. You'll need a servi...
Set a service to run as account in LDAP with credentials
1,656,029,979,000
I have setup ldap server successfully and everything works find. However, i cannot access the server with 'anonymous' bind, which according to every google search it should be. When I execute; # ldapsearch -x -H ldap://localhost -b dc=example,dc=com output says; # result: 50 Insufficient access Note: the only ACL ex...
Someone from ServerFault answered this question. https://serverfault.com/questions/748758/enable-anonymous-bind-in-openldap/748904#748904 Issue was the configured ACL. The line of by * none block most anonymous actions. Once get rid of that server allows to perform anonymous ldapsearch actions, proving, by default, o...
Enable anonymous bind in openldap
1,656,029,979,000
I have modified ldap.conf and slapd.conf. I'm wondering how I can restart the ldap/client service, filesystem/autofs and name-service/cache. OS: Solaris 11 but advice on linux should help too
svcadm restart ldap/client should do the trick. Depending on what you're running you might also need to restart filesystem/autofs
Restarting LDAP client service