QEMU: /bin/sh: can’t access tty; job control turned off

From Linux From Scratch Chapter 6.8. Populating /dev 6.8.1. Creating Initial Device Nodes When the kernel boots the system, it requires the presence of a few device nodes, in particular the console and null devices. Create these by running the following commands: You should then continue with the steps in “6.8.2. Mounting tmpfs and Populating /dev”. … Read more

Linux error while loading shared libraries: cannot open shared object file: No such file or directory

UpdateWhile what I write below is true as a general answer about shared libraries, I think the most frequent cause of these sorts of message is because you’ve installed a package, but not installed the -dev version of that package. Well, it’s not lying – there is no libpthread_rt.so.1 in that listing. You probably need to re-configure and re-build … Read more

How to exclude a directory in find . command

Use the -prune primary. For example, if you want to exclude ./misc: To exclude multiple directories, OR them between parentheses. And, to exclude directories with a specific name at any level, use the -name primary instead of -path.

gcc: error: unrecognized command line option

A more deterministic way of pointing to the exact toolchain you want to use is to provide its full prefix when setting CROSS_COMPILE. This will avoid possible path-related errors, and the information on which exact toolchain was used for building will be embedded in your build script. Full example – installing official Arm gcc toolchain and … Read more

How to restart Postgresql

Try this as root (maybe you can use sudo or su): Without any argument the script also gives you a hint on how to restart a specific version Similarly, in case you have it, you can also use the service tool: Please, pay attention to the optional [version …] trailing argument. That’s meant to allow you, the user, to act on a specific … Read more

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