Skip to main content

Posts

Showing posts from August, 2013

Staring at the Sun... what process is using a port

I found a nifty script out there that would pound through the /proc files and figure out what process(es) had a particular port without the use of lsof. I, unfortunately, do not know who to credit for this piece of work but I will gladly update this if someone knows the creator. #!/bin/ksh line='---------------------------------------------' pids=$(/usr/bin/ps -ef | sed 1d | awk '{print $2}') if [ $# -eq 0 ]; then    read ans?"Enter port you would like to know pid for: " else    ans=$1 fi for f in $pids do    /usr/proc/bin/pfiles $f 2>/dev/null | /usr/xpg4/bin/grep -q "port: $ans"    if [ $? -eq 0 ]; then       echo $line       echo "Port: $ans is being used by PID:\c"       /usr/bin/ps -ef -o pid -o args | egrep -v "grep|pfiles" | grep $f    fi done exit 0

VMware Workstation 9 and Fedora 19

I still find numerous things quirky with VMware Workstation on Fedora. Issue 1:  Workstation does not run You will likely see something like the following in the modconfig output: $ cat /tmp/vmware-jradtke/vmware-modconfig-15048.log ... /lib/modules/3.10.4-300.fc19.x86_64/build/include/linux/version.h .... So -- do the following (works on 2013-08-09) cd /var/tmp curl -O http://pkgbuild.com/git/aur-mirror.git/plain/vmware-patch/vmblock-9.0.2-5.0.2-3.10.patch curl -O http://pkgbuild.com/git/aur-mirror.git/plain/vmware-patch/vmnet-9.0.2-5.0.2-3.10.patch cd /usr/lib/vmware/modules/source tar -xvf vmblock.tar tar -xvf vmnet.tar patch -p0 -i /var/tmp/vmblock-9.0.2-5.0.2-3.10.patch patch -p0 -i /var/tmp/vmnet-9.0.2-5.0.2-3.10.patch tar -cf vmblock.tar vmblock-only tar -cf vmnet.tar vmnet-only rm -r vmblock-only rm -r vmnet-only vmware-modconfig --console --install-all Issue 2:  You cannot apply the license via the GUI Run the following command: /usr/lib/v...