Tag Info

New answers tagged

2

This problem is caused by Plesk 12, which does not support mysqlnd. It seems, that it works with mysqldn despite it is not officially supported. It is not recommended to modify these settings on a production environment. It is an ugly hack, but in can be done. You need to modify the .deb package and remove the conflicting dependency. Get the .deb package ...


-1

if we believe functionality of php5mysql is superseded, and system will run without the package, we can create a dummy package providing that package name. equivs is a tool generating such a package. install equivs. the documentation is brief, and the usage is straightforward. we write a configuration file. we can start with a sample template configuration ...


2

You can look up the package names along with the distribution name using your favorite search engine for details. My search yielded: https://packages.debian.org/wheezy/linux-image-3.2.0-4-amd64 [...] The Linux kernel 3.2 and modules for use on PCs with AMD64, Intel 64 or VIA Nano processors. This kernel also runs on a Xen hypervisor. It supports both ...


4

The safety of upgrading depends on who is providing the upgraded patches. With the defaults on Debian stable, there is a security team that ensures all major security fixes get backported to those versions. If you install from a third party repo, you are trusting them, rather than the Debian Security Team to provide these patches. It is a possibility you ...


1

Whoa... There are many errors here. Let's break it down one by one. error: open database /etc/postfix/sender_access.db: No such file or directory Looks like in the past you have set /etc/postfix/sender_access in main.cf and forget to run postmap /etc/postfix/sender_access. warning: do not list domain mail.myserver.space in BOTH mydestination and ...


1

You can put SHELL=/bin/bash in your crontab - you can also point to a .bashrc using BASH_ENV="/root/.bashrc". That should get you going. I actually don't know what happens if you don't have SHELL defined, but adding it to crontab makes it easy to tell what is what.


2

The crontab(5) manpage deals with your query by default it's /bin/sh Several environment variables are set up automatically by the cron(8) daemon. SHELL is set to /bin/sh, and LOGNAME and HOME are set from the /etc/passwd line of the crontab?s owner. HOME and SHELL may be over- ridden by settings in the crontab; LOGNAME ...


8

Yes. You must use kexec-tools. To make the life easier, I use kexec-reboot. $sudo apt-get install kexec-tools $wget https://raw.githubusercontent.com/vadmium/kexec-reboot/master/kexec-reboot $chmod +x kexec-reboot $sudo mv kexec-reboot /usr/local/sbin/kexec-reboot $sudo /usr/local/sbin/kexec-reboot


0

All you need to set up on the host is the bridge. When you configure virtual NICs, and attach them to the VM, the taps will get created automatically, when the VM is started. Now, without reading the actual guide, it looks like you need three interfaces on three DIFFERENT networks. If you plug all your virtual NICs into the same bridge (effectively, a ...


1

I had the same error when trying this on my Raspberry Pi 2. First I found that starting the OpenVPN with this command returns some useful information. sudo /usr/sbin/openvpn --config /etc/openvpn/mullvad_linux.conf This made it clear I needed to update the config file with the correct path for the other ca.cert, mullvad.crt, mullvad.key, crl.pem by ...


64

I use kexec-reboot on all of my production systems. It works well, allowing me to bypass the long POST time on HP ProLiant servers and reduce the boot cycle from 5 minutes to 45 seconds. https://github.com/error10/kexec-reboot


15

Yes, it is possible. kexec will allow a Linux kernel to be booted directly from Linux without going through the BIOS boot process.


0

There is a bit lack of information: would be server(nginx/apache/etc) dedicated for vpn client serving or global/vpn(server should be available globally in the internet)? topology sample of the network, your sever and clients sample I assuming that you have some set of clients which have access to vpn dedicated network with some resources inside and you ...


0

I know it's been a while, but this usually has to do with SELinux. Try setting it to permissive and it'll probably work fine.


1

Try to add proxy_set_header app_version $http_app_version; underscores_in_headers on; to the configuration. It might be that only the underscores_in_headers setting is enough here.


0

I ended up setting the timezone directly in my application (run by cron), and it works as expected. ENV['TZ'] = 'Europe/Paris'


0

Set up passenger_app_root to the correct value.


0

Based on Janne's answer above I came up with the following: #!/bin/bash #lower case the first input parameter lcParam=${1,,} # Check prerequisites ## Check the 1st input parameter against a list of dealt with ## meta-distributions declare -A legaloptions=( [stable]=stable [testing]=testing [unstable]=sid ) [[ -z "${legaloptions[$lcParam]}" ]] && \ ...


2

SMTPS means SMTP over TLS, like with HTTPS. So first a TLS connection is established (without fallback), and then STMP is started. Just as nobody expects HTTPS on the HTTP-Port 80, you should not expect that anybody who connects to your STMP-service sends TLS requests. Thus, all connections to your server on port 25 will likely fail, if you enforce TLS! ...


1

How about if you check from the official Debian FTP site? There the stable symbolic link points to actual version. So, for example, a shell script like this: #!/bin/bash PASSWD='' ftp -n ftp.debian.org <<RESOLVE_PATH quote USER anonymous quote PASS $PASSWD cd debian/dists/stable pwd quit RESOLVE_PATH And then run it like this: ...


0

This means nginx couldn't connect to 127.0.0.1 port 9000 to forward the request. That's up to you to investigate on the reason why no service was bound to that socket by monitoring relevant metrics.


-1

I faced this problem in localhost and I tried to do many things to solve this problem and I figure out that I had to uninstall server and re-install it and everything works fine now. Before you uninstall server copy all the database from here C:\server\bin\mysql\mysql5.6.12\data to save folder. Because after the new install he will remove all ...


0

Not sure about Debian, but I have successfully installed Zabbix with working agents on Ubuntu and CentOS. And @Richlv is right on the things you should check. Usually the server should be able to detect the daemon running on the same machine. From your case, it seems that this agent daemon is not detected. Try these commands in your terminal: sudo service ...


1

I can't seem to understand what it is doing in this regard. First of all, a result of 200 means that the login was successful, No, it's just the HTTP-Status Code for OK. So the server hasn't encountered any problems on protocol-layer, nor had the application running on the server any serious problems (4xx and 5xx). This only means, a page will be ...


0

You need to check up on parted. I think you need to do something like this: parted /dev/hda set <partition number> bios_grub on quit Once you have that going, grub should be able to figure out where to put stuff. Then do this - or your own variation: grub-install --modules=raid --no-floppy /dev/sda This should make grub work again. I found lots ...


13

In general it is not a bad idea. I would even consider it recommendable. Why use resources for services not needed, anyway? Only reason to have some of these services might be some kind of dependency issue. I wouldn't use update-rd.d though but sudo apt-get remove application. That way you can have a picture of the dependencies and could stop the process if ...


1

Having the install media writable enables a lot flexibility and time-savings. A plain install of Debian rarely has exactly what you want already installed. With a preseed file, you can make choices ahead of time as to how you want the system set up and what packages you want installed. A full discussion of this is at ...


0

If you're on a kernel that supports SO_REUSEPORT, then this problem shouldn't happen. The process that haproxy takes when it restarts is: 1) Try setting SO_REUSEPORT when opening the port (https://github.com/haproxy/haproxy/blob/3cd0ae963e958d5d5fb838e120f1b0e9361a92f8/src/proto_tcp.c#L792-L798) 2) Try opening the port (will succeed with SO_REUSEPORT) 3) ...


0

I've solved the problem. Only thing I needed to do is to add new_authtok_reqd=done do the LDAP line in the common-account file. So, the resulting file looks like the following and everything is working is expected: account [success=2 new_authtok_reqd=done default=ignore] pam_unix.so account [success=1 new_authtok_reqd=done default=ignore] pam_ldap.so ...


0

AFAIK, you should be able to use the local OpenVPN instance as a fallback in sniproxy. You can setup two sniproxy listen blocks and both of them can use OpenVPN as a fallback. If you do not want to use OpenVPN as a fallback, you might use sslh to multiplex OpenvPN and TLS over the same port (using a single ): iptables -> sniproxy -> HTTP servers; iptables ...


1

You are right about it being wrong I should think. Try doing apt-get -f install to clean up borked actions and then redo apt-get update && apt-get upgrade. This will likely get you going again. To explain a bit further: The -fswitch abbreviates --fix-broken - the integrated apt-get way of fixing broken dependencies. Once the fixing is done, you may ...


0

I tried to copy the user.MYD, user.MYI and user.frm as "Kondybas" answer and it worked!


3

Have you checked the contents of '/etc/ssh/sshd_config'? Your command does not rewrite this file, it appends to it. And the first line in this file (by default) is 'UsePAM yes'. And this option will be used, as it comes earlier... If you do not have a valid ssh key, the root will be asked for password in this case, because you have 'UsePAM yes' ...


-2

You have to disable PasswordAuthentication and enable PermitRootLogin like this: PasswordAuthentication no PermitRootLogin yes


0

Looks like this could be related to the Windows updates: Windows 8.1 - All fonts deleting on reboot Upon further investigation, ALL of my fonts are completely gone and any installed font (including Segoe UI) are deleted after I reboot. Try the solution from this KB article and see, if it works for you.


1

You need to make the ssh server keys only readable by root again: chmod 600 /etc/ssh/ssh_host_*_key may do the job


0

The Problem was I accidently installed the 32-bit Java version even though I have a 64-bit system. If anybody know why the 32-bit version didn`t work (cause it normally should work on a 64-bit maschine) I would appreciate to know. Anyway installing the 64-bit Version fixed the problem.


0

If you interested in TCP sockets only then lsof +c 0 -i tcp is an answer, otherwise you need extend options for lsof to include other types of sockets ps -ef | pgrep -lf `lsof +c 0 -i tcp | awk '{print $1}' | sort | uniq -c | sort -n | tail -1 | awk '{print $2}'` | cut -d' ' -f2 | uniq | sed -e 's/^.*\///' Andrey


0

I found a answer candidate that i have not tested yet and that i would like to avoid. I hope someone comes up with a /etc/network/interfaces solution instead. In /etc/dhcp*/dhclient.conf, remove the options routers, domain-name-servers, domain-name, domain-search from the global request statement. Then add this (assuming eth0 is the device where default ...


1

Keep it simple. Diff returns 1 on difference and 0 on no difference. Use an if statement. This is how you can tell the difference between two files if diff file1 file2 > /dev/null then echo "No difference" else echo "Difference" fi To fix up YOUR problem (in which you are comparing the different between two variables in the example above use ...


1

Check if all symlinks used for alternatives are ok: ls -l $(readlink -f /usr/bin/java) If a link is missing try to find it by listing recursively. E.g: ls -l /usr/bin/java ls -l /etc/alternatives/java ...


1

I fixed my issue by running the following commands: sudo apt-get remove --purge samba-common sudo apt-get remove --purge samba sudo apt-get install samba


0

I've done extensive testing on KVM and caching performance (you can read here, here and here) and many of the recommendation that you find on the Internet is obsolete of plain wrong. But let's proceed one step at a time... RAID5 needs a much smaller chunk size (in the order of 32-64K) than yours (512K, as seen from pastebin) and a BBU (for writeback ...


0

Try this: How do I build a single in-tree kernel module? Alternatively, the way I normally do this is something like the following. This is from memory and may or may not work for you. It also builds all the modules. Install current kernel source: apt-get source linux-image-$(uname -r) cd /usr/src/linux-$(uname -r) cp /boot/config-$(uname -r) . make ...


0

The problem is not a kernel panic. What you see on the console is hung process in a kernel call. You should check either the console or the /var/log/syslog or /var/log/messages and search for the full stack trace that is logged by the kernel. You will have an idea which subsystem is slow. Could be disk as mentioned by @Belmin Fernandez, could be network... ...


0

One relatively smooth path which does not require completely rebuilding your clusters all at once is to abstract your applications from your OS using Docker containers. Similarly to the way virtualization abstracts hardware, Docker containers that you set up run on any Linux OS. The solution for this specific scenario would to be install Docker on the ...


3

You can also use cmp. From the man page - cmp - compare two files byte by byte. It exits with 0 if the files match. if cmp -s "$oldfile" "$newfile" ; then echo "Nothing changed" else echo "Something changed" fi


0

I can't follow your code, but the command I typically use is cd $DIR_WITH_ONE_FILE if (cd $DIR_WITH_OTHER_FILE ; md5sum $FILE) | md5sum -c --status then echo "same" else echo "different" fi It depends on the two files having the same name but living in different directories. YMMV.


0

Could it be your first variable contains the command as string, not its return value. I think you forgot the ` around the command in variable 1.


0

Simple and efficient : # Update the repo list, execute : wget http://repo.mysql.com/mysql-apt-config_0.2.1-1debian7_all.deb dpkg -i mysql-apt-config_0.2.1-1debian7_all.deb # Install apt-get update apt-get install mysql-server-5.6



Top 50 recent answers are included