Find the Procs
After upgrading an important package in Linux -or other Unix variant- that provides a library used by many other processes. Instead of restarting the server for the new lib to take effect, the procs can be restarted -or HUPed- individually.
Before we begin, lsof needs to be installed.
# RHEL / CentOS
~$ yum install lsof
# Debian / Ubuntu
~$ apt-get install lsof
In the following example, we list what processes are using the libcrypto library in Raspbian.
~$ lsof /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sshd 551 root mem REG 179,2 1418532 10074 /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
ntpd 2321 ntp mem REG 179,2 1418532 10074 /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
sshd 6643 root mem REG 179,2 1418532 10074 /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
sshd 6649 meow mem REG 179,2 1418532 10074 /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
openvpn 30044 nobody mem REG 179,2 1418532 10074 /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
Next, the affected processes can be restarted:
~$ service [SERVICENAME] restart
~$ systemctl restart [SERVICENAME]
~$ kill -HUP 31337
This is going to be a update to a post I did a few days ago, “Run ffmpeg On Mac Without Compiling Anything”. I did get some good and skeptic response. They solution I posted does indeed work, but it’s a very old binary and you don’t get ffplay, ffserver etc. And a nice fella posted a comment telling me just that, and I appreciate that :) Continue reading UPDATE: Run ffmpeg On Mac Without Compiling Anything
There are several reasons you might want to use OpenDNS, the biggest two I use it is for speed and security, here I will show you how you can set it up on your Mac:
- Open system preferences and click “Network”
- Select your network interface and then click on “Advanced”. If you don’t know what network interface you are using, then it’s the one with a green circle next to it, in my case “AirPort”
- Once in advanced click the “DNS” tab
- Finally, add the following IP,s: 184.108.40.206, 220.127.116.11
I noticed something a while ago when I was just about to steam some media content with VLC, a window pops up in my face about some update, and i said, ok, nothing special, updates come all the time. So i downloaded it and installed it as i always do, but then i got curious, does it run on 64-bit? The last version didn’t, so i checked the Mac process manager, and guess what, it’s 64-bit. FINALLY!!
What’s peppoj’s take on Linux? Well, i have to say that i don’t use Linux very much these days, but i used to be a full time Linux user. These days i use either Mac 10.6 for work and Windows XP for games and rarely boot up Linux, however i find the Linux community quite interesting and funny, like this quote here:
Microsoft gives you windows, Linux gives you the whole house.
There always seem to be a solution to any problem when working in Linux, just a quick google search and you have nearly one hundred forum posts about the problem and how to solve it, problem solving made easy indeed! I have thought of installing the latest Ubuntu Linux distro here on my Mac, I’ve heard that it can be done but i don’t want to break anything. But i still sometimes miss the look and feel of Ubuntu and the Linux command line.
What do you think?