When I start matlab on my linux machine, I get the notice, "MATLAB is selecting SOFTWARE OPENGL rendering." Once it starts up, if I try opengl hardware I get the message that I can't switch at runtime. How do I enable hardware rendering as simply as possible?
The first answers that turn up when searching for an answer to this question lead me to try and solve non-existent problems with the opengl libraries on my system. Other solutions proposed setting the option in the startup.m or matlabrc.m files, which didn't work for me.
It took way too long to find what seems like should be the first answer to pop up: Start matlab from the terminal with matlab -nosoftwareopengl.
Once it starts, running opengl info in matlab shows that hardware rendering is indeed selected.
In my Ubuntu 20.04 I solved it with:
export MESA_LOADER_DRIVER_OVERRIDE=i965
This line can also be added to the /etc/environment file so that you don't have to do it again and again.
Try these code:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo apt-get upgrade libstdc++6
This will resolve the issue.
Related
I have an issue in flutter installation on MacBook Air M1 chip. It drives me crazy. I get the error :
zsh: command not found: vim
screenshot
I enabled rosetta terminal and re-run it again, but same issue.
I tried almost all installation videos online but nothing helped.
You don't have vim. To install it, run the command below :
sudo apt-get install vim
You can also use nano. Also, it's vim ~/.zshrc (where ~/ refers to the home directory of the current user) and you also misspelled zshrc.
I suggest you follow the official docs for the correct installation steps.
I have also created a detailed blogpost about the installation steps and the possible issues that one might encounter. It is written extensively for MacBook Air with M1 chip running BigSur (which I work on).
When I launch VS Code after installation, I get black screen. I tried to reinstall it, but without a result and I also tried to start it with «--disable-gpu» argument, no result too. Is there any possible solution for this?
Screenshot.
Also «--status» argument.
I use Raspberry Pi 3 on Raspbian and code-oss 1.32.0 ARM (by headmelted)
you've probably figured it out so far, but I'll answer in case anyone else visits this thread.
All you need to do is downgrade code-oss.
sudo apt-get install code-oss=1.29.0-1539702286
I've installed lm-sensors, but when I run pwmconfig command as root, it throws an error:
/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed
My laptop is an MSI Gs63VR Stealth Pro core Intel i7 CPU
Thank you!
A simple search for the error message yielded several hits on Google. All of the top hits are from before this question was posted.
This guide on AskUbuntu may be helpful, or this one.
Likely the issue you're having can be solved with a linux kernel option. Add this to your Grub command-line: acpi_enforce_resources=lax
sudo sed -E -i 's/(GRUB_CMDLINE_LINUX_DEFAULT=.+)"$/\1 acpi_enforce_resources=lax"/' /etc/default/grub
sudo update-grub
then reboot.
I did a yum remove fontconfig not knowing that it removes all packages that depend on it as well. That's 300 packages that have been removed.
I have tried to reverse the process by running yum remove fontconfig again on another similarly-configured CentOS 5.5 machine and reinstalling those packages in the output of the command.
The Gnome logon screen is stuck at loading cursor.
My Gnome is still broken and I have switched to KDE for the time being. I can use a weird hybrid of Gnome Desktop and KDE window manager where the UI is Gnome but the desktop is not clickable and there's KDE apps instead of the Gnome ones.
/etc/sysconfig/desktop
DESKTOP="GNOME"
DISPLAYMANAGER="KDE"
Using the KDE login to choose Gnome also gives me this weird KDE/Gnome hybrid.
I have reinstalled the Gnome-related packages several times and it doesn't fix the issue.
yum should have given you an indication of the volume of packages that it was going to remove and should have given you the chance to abort the attempt (unless you used -y which, I imagine you now realize, you shouldn't).
There's no need to attempt to "reproduce" the problem to find the list of packages. The yum log file /var/log/yum.log will tell you everything that yum installed and removed.
On CentOS 6 and newer yum has a history command that can also display this (and other) information.
I wants to make my Pi a network security tool, so I downloaded the source code from Raspberry Pwn's github source [https://github.com/pwnieexpress/Raspberry-Pwn].
I found my network rather slow when installing, so I interrupted the progress. I used its uninstall script to make sure that all changes would be recovered.
The uninstall successfully ended, but since then I cannot proceed on to the GUI after I typed startx. Are there any way for me to proceed a clean install of all GUI components?
Thanks
You could try the following:
sudo apt-get remove --purge xserver-xorg
sudo apt-get install xserver-xorg
sudo dpkg-reconfigure xserver-xorg