Posts

Showing posts from September, 2016

Error message when I run sudo: unable to resolve host (none)

Problem ubuntu@(none):~$ sudo true sudo: unable to resolve host (none) Two things to check (assuming your machine is called  my-machine , you can change this as appropriate): That the  /etc/hostname  file contains just the name of the machine. That  /etc/hosts  has an entry for  localhost . It should have something like: 127.0.0.1 localhost.localdomain localhost 127.0.1.1 my-machine If either of these files aren't correct (since you can't sudo), you may have to reboot the machine into recovery mode and make the modifications, then reboot to your usual environment. Example Your hostname ( dave00-G31M-ES2L ) is not represented in  /etc/hosts . Add an  L  to this line: 127.0.1.1 dave00-G31M-ES2 So it becomes: 127.0.1.1 dave00-G31M-ES2L In order to accomplish this, open a console (press  Ctrl + Alt + T ) and type: sudo gedit /etc/hosts Add the letter  L  as mentioned, save and exit.

PyCharm by JetBrains installation [Ubuntu]

The official installation instructions for the archive you downloaded are  on their site : Installation Instructions Copy the  pycharm-*.tar.gz  to an empty directory (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 But there is already a version of PyCharm Community Edition available through the unofficial GetDeb repository. This does not only provide easier installation, but also automatic package updates. You can simply add this repository to your configuration and install PyCharm from the terminal ( Ctrl + Alt + T ) by executing the following four commands: Configure the repository (your correct Ubuntu release name get...

Make default python symbolic link to link to python3 (Change the Default Version in Ubuntu)

Image
A simple safety way would be to use an alias, by placing: alias python=python3 into   ~/.bashrc  or   ~/.bash_aliases file.

How to install Google Chrome?

google-chrome-stable is available on 3rd Party Repository: Google Chrome (For Stable). Follow the instruction for installation: Add Key: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -  Set repository:            sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' Install package:         sudo apt-get update         sudo apt-get install google-chrome-stable

Install IntelliJ IDEA on Ubuntu

This article shows you the way to install the latest version of IntelliJ IDEA in Ubuntu. Step 1: Download the latest version of IntelliJ IDEA from this link . Step 2: Open the Terminal (Ctrl + Alt + T) and enter the following command to change the directory [Where it can download]. Step 3: Enter the command given below to extract the IntelliJ IDEA from ~/Downloads directory. If your downloaded file is in any other directory, replace the last parameter by the actual file path. sudo tar -xvzf ~/Downloads/ideaIU-14.1.2.tar.gz Step 4: Open another Terminal (Ctrl + Alt + T) and enter the following command to create a shortcut file for intellij-idea. gedit intellij-idea.desktop Step 5: In the opened gedit, copy and paste the following text. If your IntelliJ IDEA version is different, according to your version change the Exec location the Icon path. [Desktop Entry] Name=IntelliJ IDEA Type=Application Exec=/opt/idea-IU-141.713.2/bin/idea.sh Terminal=false Icon=/opt/idea-IU-141.713.2/bin/id...