Tag Archives: bash

Git: How to remove submodule

Quick tip on how to remove Git submodule.

  1. Remove the relevant line from the .gitmodules file
  2. Delete the relevant section from .git/config (if any)
  3. Run
    git rm --cached path_to_submodule

    (without trailing slash)

  4. Commit and delete the now untracked submodule files.

Git checkouts fail on Windows with “Filename too long error: unable to create file”

Cause

According to the msysgit wiki on GitHub and the related fix this error, Filename too long, comes from a Windows API limitation of file paths having 260 characters or fewer.

Resolution

To resolve this issue, run the following command from GitBash or the Git CMD prompt (as administrator):

git config --system core.longpaths true

This will allow file paths of 4096 characters.

Enabel super user log in on Ubuntu 14.04 LTS

In order to maintain higher security level and keep the user from accidental breakage of the system the root user log in is disabled by default. To enable it, open a terminal window and type:

sudo passwd root

you will be prompted to enter the root user password. When done press enter.

That’s it. Now you can work from the command line like super user.

Screenshot-root@home: -home-vpaskov

Installing JD-GUI on OpenSUSE

JD-GUI is a standalone graphical utility that displays Java source codes of “.class” files. You can browse the reconstructed source code with the JD-GUI for instant access to methods and fields.

jd-gui
This java decompiler has GNU/Linux version available for download, but the site don’t mention anything about the dependencies of the package. It’s up to the user to find and install the required libraries in order to run JD-GUI.

For the x64 version of OpenSUSE install the following packages:

  • libgtk-2_0-0-32bit
  • libgthread-2_0-0-32bit
  • libXxf86vm1-32bit
zypper in libgtk-2_0-0-32bit libgthread-2_0-0-32bit libXxf86vm1-32bit

For the x86 version install:

  • libgtk-2_0-0
  • libgthread-2_0-0
  • libXxf86vm1
zypper in libgtk-2_0-0 libgthread-2_0-0 libXxf86vm1