Having problems running Atom text editor on Debian Linux 9.0 - python-3.x

I'm trying to install Atom to write Python scripts on Debian Linux 9.0. After following the installation procedure, which displayed no errors, when I start Atom all I see is a black window with the title Welcome - /home/Python - Atom, but nothing else happens. If I click around it takes me to their web site https://atom.io.
So I deleted and re-installed again, this time using the debian package atom-amd64.deb. After installing it (dpkg -i atom-amd64.deb) not a single error is displayed, but when I run it I get the same problem, a black screen and nothing else. I also tried to install atom in Lubuntu 17.04 zesty but I got same problem.
Any help to get this editor running would be appreciated.

Try this, I hope it will help you as it has helped me
wget https://atom.io/download/deb -O atom.deb
sudo dpkg -i atom.deb
sudo apt-get -f install

Related

vs code not installing on Chromebook

I was trying to install vs code on Chromebook with Linux but i get it off the website and go into the file and it says "apt is not install able" and things like it for about five rows of text I hope someone knows the answer.
Try beginning with sudo apt install as opposed to apt install. Linux can be wishy washy when it comes to installs in the terminal.

How would you properly install MATLAB in ubuntu that is running on WSL2?

I want to install matlab in ubuntu 20.04, but I'm running ubuntu in WSL2 and it doesn't want to work.
I keep getting the error: terminate called after throwing an instance of 'framework::window::DisplayError what(): No. Display Avaliable.
I have the linux version of matlab unzipped in a folwer and I'm trying to instal it into the user files. Things I've tried to install it that were suggested for people having the same issue on other distros:
sudo ./install
./install
bash install
install
bash ./install
sudo bash ./install
sudo su and then doing ./install
export DISPLAY=:0.0 and then sudo ./install
bash ./install -v -inputFile installer_input.txt
It gives the same error for every one that I've tried.
Let me know if anyone has any solutions. Thanks.
Posting this to help out others in the future. It actually involved a few things to get this fully working properly:
1)Had to get a X Server
2)Had to change display settings in ubuntu to get it to recognize the X server and turn off some firewall features for Windows.
3)Had to when installing matlab install using the legacy install file instead of the normal install file

Puppeteer - Chromium | Unable to open X display | Ubuntu 20.04

Puppeteer preinstalled chromium wasn't working at all so I installed ubuntu one by apt install chromium-browser and changed executable path to usr/bin/chromium-browser
Now, puppeteer doesn't throw any errors but I'm getting this one:
[935270:935270:1222/220755.094434:ERROR:browser_main_loop.cc(1434)] Unable to open X display.
I tried everything I red on forums but didn't work.
I am just assuming that you are executing this on a terminal only Ubuntu? In my case it was the Ubuntu Windows subsystem for Linux.
As usual when you have a solution the problem is mostly what the error says. There is no display.
Unable to open X display.
There is a solution for this called X virtual framebuffer or xvfb. https://en.wikipedia.org/wiki/Xvfb
The way I understand it it is aiming at acting as a display for all the intents of the client but is not visible to the user.
So one solution for the problem I had was to install xvfb and then run the command that requires a display with this tool. In my case it was protractor but the pupeteer command should look similar:
sudo apt-get install xvfb
xvfb-run --auto-servernum npm run protractor
PS. I got inspired by this blog entry https://remarkablemark.org/blog/2020/12/12/headless-test-in-github-actions-workflow/

Haskell-platform throws a ton of errors when I try to install it on WSL

I'm trying to install haskell-platform on my Windows 10 linux subsystem, but just installing it throws a ton of errors. I tried this, according to the haskell site:
$ sudo apt-get install haskell-platform
And it threw more than my terminal saved, and this at the end.
Errors were encountered while processing:
ghc
libghc-text-dev
libghc-attoparsec-dev
libghc-hunit-dev
ghc-haddock
libghc-stm-dev
libghc-async-dev
libghc-hashable-dev
libghc-case-insensitive-dev
libghc-extensible-exceptions-dev
libghc-transformers-dev
libghc-mtl-dev
libghc-monadcatchio-mtl-dev
libghc-parsec3-dev
libghc-network-dev
libghc-xhtml-dev
libghc-cgi-dev
libghc-fgl-dev
libghc-openglraw-dev
libghc-gluraw-dev
libghc-opengl-dev
libghc-glut-dev
libghc-syb-dev
libghc-haskell-src-dev
libghc-html-dev
libghc-http-dev
libghc-parallel-dev
libghc-primitive-dev
libghc-random-dev
libghc-quickcheck2-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to apt-get remove, but it threw errors and didn't complete that, either. Is there a safe way to start over and try again? Has anyone else encountered this kind of problem?
The issue is that timer_create is not implemented on your current build of the Windows Linux subsystem, aka WSL. If you have a recent OS, you can uninstall your current WSL and reinstall it. This will only work if your Windows version is 64-bit and build 1607 or later. You can find the build number from Start menu Settings, then select System -> About
Use the following commands from a command shell (not bash shell) to uninstall and reinstall. IMPORTANT: Back up your Linux files before running these commands as this deletes all of them.
lxrun /uninstall /full /y
lxrun /install /y
Once the install is complete you can open a Windows command prompt and update WSL with:
lxrun /update
Once you've re-installed and updated, you can sudo apt-get update and sudo apt-get upgrade from the within bash shell.
This worked on one of my computers, but not the other. Not sure why. If it does not work, you can get the latest WSL distro by joining the Insiders Build; instructions here.
Useful Links
Windows help on lxrun.
Instructions on WSL installation.

Launching "sudo dpkg --configure -a" restarts the pc and does not solve anything

running a OpenCV-based code on Ubuntu, I incurred in the following error:
OpenCV Error: Unspecified error (The function is not implemented.
Rebuild the library with Windows, GTK+ 2.x or Carbon support.
If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then
re-run cmake or configure script) in cvNamedWindow, file /home/opennao/src/OpenCV-2.3.1/modules/highgui/src/window.cpp, line 275
terminate called after throwing an instance of 'cv::Exception'
So I tried to install this libgtk2.0-dev by typing:
sudo apt-get install libgtk2.0-dev
but it returns the following:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."
And this is what I did. But then, during the processing of the command request, the pc restarts on its own and the problem comes again when I run my code.
For the sake of clarification, I think it's worth saying that two weeks ago an update on Ubuntu corrupted my grub to choose the OS to run (there are Ubuntu 14.04 and Windows 10 on my pc), so I restored it through minimal-bash line editing.
Now, when I run "sudo dpkg --configure -a" I see that the last printed lines before restarting refer to some information about disk images or kernels that I rembember to have handled to fix the grub. I don't know if this can be a suggestion to understand the problem.
Thank you all for your support, ask me if you need further details.

Resources