i have a problem with start service freeradius. When i try to start service freeradius with command /etc/init.d/freeradius stars,it status fail
"/usr/sbin/freeradius: error while loading shared libraries: libfreeradius-radius -2.1.8.so: cannot open shared object file: No such file or directory"
You have to give root permissions to freeradius
Use
$ sudo freeradius -X
or
$ start service freeradius
Related
I created a service file named pointless.service but when I run
sudo systemctl start pointless it returned
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
when I also tried sudo service pointless start
but it returned pointless: unrecognized service.
i am using wsl ubuntu 20.04
the above commands work for installed software like Nginx, Redis e.t.c. but it isn't working for any of my files
I've used the snap package manager to install packages and I'm always
getting the same error, even with the simple hello world example:
$ sudo snap install hello
$ hello
cannot create user data directory: /home/aaa/snap/hello/20: Bad file descriptor
Running with sudo solves the problem for the hello program, but why do I even need to do sudo?
BTW, for the other packages (Meshlab, CloudCompare) it doesn't work also with sudo and gives different errors. For example:
~$ sudo cloudcompare.ccViewer
mkdir: cannot create directory '/run/user/0': Permission denied
No protocol specified
QXcbConnection: Could not connect to display :0
The snap version and Ubuntu distro are:
$ snap version
snap 2.22.7
snapd 2.22.7
series 16
ubuntu 14.04
kernel 4.4.0-64-generic
Any chance your home directory is an nfs share with no-write-by-root enabled? If so, try logging in as another user that has a local home.
Also, see: https://bugs.launchpad.net/snappy/+bug/1625279
I am trying to install beanstalkd (http://kr.github.io/beanstalkd/download.html) via the Linux Terminal on a shared hosting account at Godaddy.
The previous link gives commands that should install beanstalkd on the server. I use SSH (with PuTTy) to access the Linux Terminal. I have practically tried all the commands in the previous link and am consistently obtaining errors like:
sudo apt-get install beanstalkd
error message: -bash: sudo: command not found
brew install beanstalkd
error message: -bash: brew: command not found
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'
su -c 'yum install beanstalkd --enablerepo=epel-testing'
error message: -bash: su: command not found
yaourt -S beanstalkd
error message: -bash: yaourt: command not found
I am not even sure what bash is exactly and if it is causing the problem, or if its because I'm using an SSH connection, or if it's really because the commands don't actually exist on the server (which would be strange because when I do man sudo or man su I do in fact get the complete manual of both commands in the terminal).
QUESTION: Why am I unable to run the previous commands to install beanstalkd on the linux server? Does it have to do with me using PuTTy (ssh connection)? What could I possibly do to get beanstalkd installed? Could it be because its shared hosting with Godaddy, and I might not have full power over the linux terminal?
SERVER INFO: When running cat /proc/version I obtain my linux distribution: Red Hat 4.4.7-16. I have a shared hosting account with Godaddy with a linux server hosting my site.
You have a RedHat distro, and they use rpm+yum for package management.
I see from yum search beanstalkd on my box that I can find it, but only on EPEL.
However, you have a really old version of RedHat, so can't just install the epel-release rpm, also, there doesn't seem to be a built version for RedHat 4.
If you had at least RedHat 5 you could do:
$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm
$ sudo yum install beanstalkd
You may in fact have a restricted instance of batch...
You must go to your provider's interface and do the necessary to have root access. Have you tried something like explained here?
https://uk.godaddy.com/help/enable-adminroot-access-managed-or-fully-managed-12270
If it doesn't work for you, you may also try asking https://serverfault.com/ that seems more relevant for your case.
This is the path.
/home/neeraj/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
And this is the command
sudo ln -s ~/Downloads/mongodb-linux-x86_64-amazon-3.2.1/bin/mongod /usr/local/sbin/mongod
But then it says this:
ln: failed to create symbolic link ‘/usr/local/sbin/mongod’: File exists
And when I try to run this command
mongod --version
It says:
mongod: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
Can anyone point out what I am doing wrong?
I am using the Unified Installer for Plone 5.0 on CentOS server.
./install.sh zeo --target="${HOME}/plone" --static-lxml --build-python
CentOS has an older version of lxml2 library so I have to build static lxml & Python. Error is as follows:
lxml: Static build requested.
Installing lxml.
lxml: CMMI libxml2 ...
lxml: Using libxml2 download url ftp://xmlsoft.org/libxml2/libxml2-2.9.2.tar.gz
libxml2: Downloading ftp://xmlsoft.org/libxml2/libxml2-2.9.2.tar.gz
libxml2: Unpacking and configuring
sh: ./configure: Permission denied
libxml2: cmmi failed: /tmp/tmpAyLWxdbuildout-libxml2
While:
Installing lxml.
Error says "Permission denied", so I tried installing with sudo and logging in as root. Also changed permissions of /tmp to 777. Any suggestions are appreciated.
You are trying to reach read/write permission for root user. You can simply change your user to root.
$ su -
Or if your user is in sudoers group you can use;
$ sudo ./install.sh ....
You can check if your user is in sudoers group or not with
root$ cat /etc/sudoers
Figured it out. The installer was running a script in /tmp which was set to non-executable. Remount /tmp as executable and it works fine.