error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' -- Missing /var/run/mysqld/mysqld.sock
2023-02-14
Question My problem started off with me not being able to log in as root any more on my mysql install. I was attempting to run mysql without passwords turned on... but whenever I ran the command # mysqld_safe --skip-grant-tables & I would never get the prompt back. I was trying to follow these instructions to recover the password. The screen just looks like this: root@jj-SFF-PC:/usr/bin# mysqld_safe --skip-grant-tables 120816 11:40:53 mysqld_safe Logging to syslog.…
Getting permission denied (public key) on gitlab
2023-02-14
Question My problem is that I can't push or fetch from GitLab. However, I can clone (via HTTP or via SSH). I get this error when I try to push : Permission denied (publickey) fatal : Could not read from remote repository From all the threads I've looked, here is what I have done : Set up an SSH key on my computer and added the public key to GitLab Done the config --global for username and email Cloned via SSH and via HTTP to check if it would resolve the issue Done the ssh -T git@gitlab.…
How can I stop redis-server?
2023-02-14
Question I apparently have a redis-server instance running because when I try to start a new server by entering redis-server, I'm greeted with the following: Opening port: bind: Address already in use I can't figure out how to stop this server and start a new one. Is there any command I can append to redis-server when I'm typing in the CLI? My OS is Ubuntu 10.04. Answer Either connect to node instance and use shutdown command or if you are on ubuntu you can try to restart redis server through init.…
How do I escape spaces in path for scp copy in Linux?
2023-02-14
Question I want to copy a file from remote to local system. Now I'm using scp command in linux system. I have some folders or files names are with spaces, when I try to copy that file, it shows the error message: "No such file or directory". I tried: scp ael5105@192.168.0.200:'/home/5105/test/gg/Untitled Folder/a/qy.jpg' /var/www/try/ I saw the some reference online but I don't understand perfectly, can any one help on this?…
How do I install the OpenSSL libraries on Ubuntu?
2023-02-14
Question I'm trying to build some code on Ubuntu 10.04 LTS that uses OpenSSL 1.0.0. When I run make, it invokes g++ with the "-lssl" option. The source includes: #include <openssl/bio.h> #include <openssl/buffer.h> #include <openssl/des.h> #include <openssl/evp.h> #include <openssl/pem.h> #include <openssl/rsa.h> I ran: $ sudo apt-get install openssl Reading package lists... Done Building dependency tree Reading state information... Done openssl is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.…
How do I SET the GOPATH environment variable on Ubuntu? What file must I edit?
2023-02-14
Question I am trying to do a go get: go get github.com/go-sql-driver/mysql and it fails with the following error: package github.com/go-sql-driver/mysql: cannot download, $GOPATH not set. For more details see: go help gopath when I do a go env , a list of Go values is shown as below: ubuntu@ip-xxx-x-xx-x:~$ go env GOARCH="amd64" GOBIN="" GOCHAR="6" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="" GORACE="" GOROOT="/usr/lib/go" GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64" CC="gcc" GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread" CGO_ENABLED="1" clearly the GOPATH is not set, how and where do I set it?…
How to add users to Docker container?
2023-02-14
Question I have a docker container with some processes (uwsgi and celery) running inside. I want to create a celery user and a uwsgi user for these processes as well as a worker group that they will both belong to, in order to assign permissions. I tried adding RUN adduser uwsgi and RUN adduser celery to my Dockerfile, but this is causing problems, since these commands prompt for input (I've posted the responses from the build below).…