So, I uninstalled Python and now my Ubuntu GUI interface is quite messed up. I really can't seem to do anything, but I've accessed the file system from right-clicking a file I created and choosing "run-as filesystem". I need to get to the terminal, but it is not listed as a run-as application. I know I can run many programs from the /usr/bin directory. Does anyone know the name of the script in that directory that would run the terminal? I'm running Ubuntu LTS 12.04.3
I propose to switch to a different terminal (using Control-Alt-F1), log in there and then install Python again. Since apt-get is a binary it does not need any Python installed, so you should be able to install it using
apt-get install python
After this (and maybe a reboot for fixing several boot-time problems) you should be able to log in normally again.
Related
have any of you tried compile and executing SFML c++ project output on wsl?
I tried and got
Failed to open X11 display; make sure the DISPLAY environment variable is set correctly
Aborted
Is it possible at all to execute GUI applications through wsl?
(I've installed ubuntu's for wsl)
Linux distributions set up for WSL 1 will not function with Linux GUI applications, which are only supported with WSL 2.
Due to the official documentation from Microsoft regarding WSL, you might need to check these steps:
Select Start, type PowerShell, right-click Windows PowerShell, and then select Run as administrator.
after that type this command and then press enter:
wsl --update
You will need to restart WSL for the update to take effect. You can restart WSL by running the shutdown command in PowerShell.
wsl --shutdown
now, once again open powershell and type in this command:
wsl --list --verbose
You should see the number 2 for your installed distro under the heading VERSION in the response.
If everything went as planned until this point, see if your distro can open any windows by installing a GUI app like gedit and trying to open it:
sudo apt update
now install gedit:
sudo apt install gedit -y
After the installation has finished, launch gedit by typing gedit in your wsl terminal. A window from wsl inside of Windows should now open, and the issue should now be resolved.
find more information here:
https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps
If you had the same problem
first, you need to install VcXsrv and X11 for executing GUI applications through wsl
then you have to add these 2 to your environment variables:
export DISPLAY=:0
export LIBGL_ALWAYS_INDIRECT=0
On a M1 MacBook Air i installed node 14.x and 16.x by NVM (NVM was installed by homebrew)
If I run node -v on iTerm or OS terminal I always get zsh: killed node -v
But if I run the same command within the integrated terminal of either VSCode, Rubymine or Marta, node runs fine yielding version number. (And I can develop using node, too)
Can someone explain why this is happening. What are the differences between the different terminals? Don't the all use same zsh in the background?
Since I had a bunch of other problems with killed processes that where installed by homebrew (and then only run after reinstalling) I decided to completely uninstall and reinstall homebrew. Not sure if it helps, but others noted this as some solution to the problem.
another helpful post:
Why does zsh kills my process every time I enter a git command
same issue, similar solution.
The below command will help in identifying which kernel you are using.
ps -p $$
Try executing the above command and compare the kernels.
If in case you wish to change your system's default kernel, you can follow below steps: -
Change the default shell to Bash by running the following command:
chsh -s /bin/bash
You’ll have to enter your user account’s password. Finally, close the Terminal window and reopen it. You’ll be using Bash instead of Zsh.
If this doesn't resolve your issue, and if you have used brew to install node and it can be related to brew installation as mentioned in the below post:
node-gets-instantly-killed-macos
I wanted to post this because I didn't find the answer elsewhere and this might just help someone else.
I have Slack installed on my Ubuntu 18.04 Bionic Beaver via FlatPak and would like to have it launch as soon as I login.
Because it is installed via FlatPak, I cannot find it in /usr/share/applications in order to add it to startup applications
You need to install FlatPak applications via Gnome Tweaks. If you haven't already installed Gnome tweaks then run
sudo apt install gnome-tweaks
Launch Gnome Tweaks and navigate to "Startup Applications".
The flatPak applications are easily found from here.
You could add an entry to your .gnomerc, .Xinitrc etc such as
snap run (program)
I am trying to install pycharm on my linux OS.
following the instructions pycharm/dowload.
Since I run a linux machine I made sure the pychrarm files in the current directory:
ietX220:~$ ls
Desktop pycharm-community-4.0.1
Documents Music
pycharm-community- 4.0.1.tar.gz
Downloads New Folder Templates
Dropbox octave-workspace Videos
examples.desktop Pictures VirtualBox VMs
jdk1.8.0_25 Public Win7-PV2hh-6c3HY-
QJHM9-8RJJH-P86W8.iso
ietX220:~$ pycharm-*.tar.gz
pycharm-community-4.0.1.tar.gz: command not found
As you can see the pycharm file is in the current(home) directory but is not found.
Then I opened the tar file made pycharm.sh executable:
chmod +x pycharm.sh
And then ran:
~/pycharm-community-4.0.1/bin$ ./pycharm.sh
Startup Error: Application cannot start in headless mode
What am I doing wrong?
I am having the same issue. It looks like maybe you and I both have a minimal (headless) Java install on our systems. Use your system's method for finding installed packages and search for Java, and i'll bet you find only openjdk-headless
yum list installed | grep openjdk
# or on debian-based systems
# dpkg --get-selections | grep openjdk
# =>java-1.7.0-openjdk-headless
Solution then is to install the same package without the "-headless" suffix.
Here's where I am getting my information for the solution: https://bugzilla.redhat.com/show_bug.cgi?id=1177379
I had the same problem and as mentioned before the error was that openjdk was headless. What i did is i installed from the begining openjdk using the command apt-get install default-jdk (for ubuntu). I know it's not the best way to do it, however it is rather quick and simple.
If you have already all the prerequisites (such as Java) installed, try out charmy (PyCharm installer for Linux).
virtualenv charmy-env
source charmy-env/bin/activate
pip install charmy
charmy install
That will install PyCharm into your home directory. It will also simplify your feature PyCharm upgrades. To upgrade you would just have to type
charmy install
instead of downloading distribution manually, unpacking it, etc.
See https://pypi.python.org/pypi/charmy for more.
PYcharm is now available as a snap. Can be easily installed as below
sudo apt update && sudo apt install snapd
Then the community edition can be installed by
sudo snap install pycharm-community --classic
The classic escape is to get snaps that have been published with classic confinements
220:~$ pycharm-*.tar.gz
pycharm-community-4.0.1.tar.gz: command not found
gz files are not executable files. I think the current directory is not in your PATH variable. To get around that you would do "./pycharm-community-3.0.1.tar.gz" and you should see the message "Permission denied" as the gz file would not have execute permission. And if you gave it execute permission it would say "cannot execute binary file: Exec format error".
These are the instructions from the JetBrains website:
Copy the pycharm-*.tar.gz to the desired installation location
(make sure you have rw permissions for that directory)
Unpack the pycharm-*.tar.gz using the following command:
tar xfz pycharm-*.tar.gz
Remove the pycharm-*.tar.gz to save disk space (optional)
Run pycharm.sh from the bin subdirectory
NOTE: PyCharm on Linux doesn't need special installation or running
any installation script. It runs out of the pycharm-*.tar.gz
If you run the command "tar xfz pycharm-*.tar.gz" you should end up with a directory in your current directory named "pycharm-community-4.0.3".
If you cd pycharm-community-4.0.3/bin, "ls -al" should show that pycharm.sh is already executable. Run pycharm.sh and you should be done. The script will prompt for a password at the end so it can put a startup script in a system directory. You must have admin privileges for that part to work. But if you don't, you can still start PyCharm by executing "[path to pycharm directory]/bin/pycharm.sh &" at the command prompt.
I am not sure what the "NOTE:" is saying, but I would ignore it as you get a working PyCharm by doing what it says above the NOTE: .
Setup the newest stable jdk(like jdk1.7 or jdk 1.8) in your system, and set it is the default jdk.
1.download JDK8
2.SET JAVA HOME
sudo gedit /etc/environment
export JAVA_HOME=/home/username/Java/jdk1.8
export JRE_HOME=/home/username/Java/jdk1.8
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
sudo gedit /etc/profile
//before umask xxx adde
export JAVA_HOME=/home/username/Java/jdk1.8
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$JAVA_HOME/bin
3. run pycharm
./pycharm.sh
I'm using CentOS 4.8 , i386.
I would appreciate if any one can help me to install Gnome (or any other GUI) while there is no yum available.
I tried to install yum but since It's a company's server with many things installed on it,
I faced with many problems.
However I decided to find a way to install Gnome without using yum
And please take note:
I'm a neophyte!
Did you try getting the source-code and building it manually?
You can get the code from
http://www.gnome.org/getting-gnome/
GNOME also provides a build tool to make the installation easier.
But, as it has already been pointed out - Servers are best managed over command line. It will give you more power and control over what you are doing.