What is difference between arm64 and armhf?

armhf stands for “arm hard float”, and is the name given to a debian port for arm processors (armv7+) that have hardware floating point support. On the beaglebone black, for example: Although other commands (such as uname -a or arch) will just show armv7l The vfpv3 listed under Features is what refers to the floating point support. Incidentally, armhf, if your processor supports it, basically supersedes Raspbian, which … Read more

How to open some ports on Ubuntu?

I know little about Linux.Today I create a VPN server on My ubuntu according to https://github.com/philplckthun/setup-simple-ipsec-l2tp-vpn But when I finish the installation. I use my iphone to connect the ipsect vpn,bur it shows the VPN Server has no response. The github document shows Ports 1701, 500 and 4500 must be opened for the VPN to work! So … Read more

How to cat <> a file containing code?

You only need a minimal change; single-quote the here-document delimiter after <<. or equivalently backslash-escape it: Without quoting, the here document will undergo variable substitution, backticks will be evaluated, etc, like you discovered. If you need to expand some, but not all, values, you need to individually escape the ones you want to prevent. will produce … Read more

Creating a new directory in C

Look at stat for checking if the directory exists, And mkdir, to create a directory. You can see the manual of these functions with the man 2 stat and man 2 mkdir commands.

Install tkinter for Python

It is not very easy to install Tkinter locally to use with system-provided Python. You may build it from sources, but this is usually not the best idea with a binary package-based distro you’re apparently running. It’s safer to apt-get install python-tk on your machine(s). (Works on Debian-derived distributions like for Ubuntu; refer to your package manager … Read more

Python subprocess.Popen “OSError: [Errno 12] Cannot allocate memory”

As a general rule (i.e. in vanilla kernels), fork/clone failures with ENOMEM occur specifically because of either an honest to God out-of-memory condition (dup_mm, dup_task_struct, alloc_pid, mpol_dup, mm_init etc. croak), or because security_vm_enough_memory_mm failed you while enforcing the overcommit policy. Start by checking the vmsize of the process that failed to fork, at the time of the fork attempt, and then compare to the amount of free memory (physical and swap) as it … Read more

WSL – GEDIT Unable to init server: Could not connect: Connection refused

You need an X server to run graphical applications like gedit. I use VcXsrv or Xming on my Windows desktops, both are very small and easy to install, but there exist other servers like Cygwin/X. Short instructions for VcXsrv/Xming: download and install the Windows package start XLaunch or Xming export the DISPLAY variable in your WSL terminal and start geditexport DISPLAY=0:0 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)