Ubuntu Ports, Process Commands

sudo netstat -peanut : Lists all the processes with ports sudo netstat -peant | grep “:9300 ” user@user-HP-Compaq-8100-Elite-SFF-PC:/opt/logstash/bin$ sudo netstat -lanpt | grep LIST | grep java tcp        0      0 127.0.0.1:63342         0.0.0.0:*               LISTEN      6493/java tcp        0      0 0.0.0.0:39953           0.0.0.0:*               LISTEN      6493/java tcp        0      0 127.0.0.1:6942          0.0.0.0:*               LISTEN      6493/java tcp        0      0 127.0.0.1:35040         0.0.0.0:*               LISTEN      6493/java…

Ubuntu not showing eclipse menu

Open your eclipse.desktop file: sudo -H gedit /usr/share/applications/eclipse.desktop (If you can’t find it in this path, try in ~/.local/share/applications/eclipse.desktop. Otherwise, you could have to find yours using locate command). Replace the Exec= line with this: Exec=env UBUNTU_MENUPROXY= eclipse Where “eclipse” is the path to your eclipse executable. In this case it’s just “eclipse” since there’s…

Setting up Play Development Environment on Ubuntu

# Configure apt for java # http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html apt-get update apt-get install -y python-software-properties add-apt-repository -y ppa:webupd8team/java echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections # Update apt sources apt-get update apt-get install -y unzip wget git vim oracle-java8-installer oracle-java8-set-default # Install scala cd /opt wget http://www.scala-lang.org/files/archive/scala-2.12.0.tgz tar -zxvf scala-2.12.0.tgz # end scala #Installing playframework on ubuntu…

How to Install MySQL – Ubuntu

  apt-get install –print-uris mysql-server > desktop http://in.archive.ubuntu.com/ubuntu/pool/main/libe/libevent/libevent-core-2.0-5_2.0.21-stable-2_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-common_5.7.16-0ubuntu0.16.04.1_all.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/liba/libaio/libaio1_0.3.110-2_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-client-core-5.7_5.7.16-0ubuntu0.16.04.1_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-client-5.7_5.7.16-0ubuntu0.16.04.1_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-server-core-5.7_5.7.16-0ubuntu0.16.04.1_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-server-5.7_5.7.16-0ubuntu0.16.04.1_amd64.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/libh/libhtml-template-perl/libhtml-template-perl_2.95-2_all.debhttp://in.archive.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/mysql-server_5.7.16-0ubuntu0.16.04.1_all.deb This will print out a bunch of URLs. You can download these from another computer, and transfer them to your Ubuntu machine, putting the .deb files into /var/cache/apt/archives. sudo apt-get install mysql-server And apt will find the package files you’ve downloaded, and install mysql.

Package Management

APT: Advanced Package Tool. Works with ‘deb‘ archive from the location specified in the “/etc/apt/sources.list” file. Commands: dpkg -l : List all packages dpkg -i <pkgname>: Install a package dpkg -r <pkgname>: Remove a package dpkg -s <pkgname>: Whether an deb package installed or not. APT – ADVANCED PACKAGING TOOL When you install packages from…