Posted in October 5, 2009 ¬ 15:23h.nioakeim
Many of you probably tried to install sshfs on a centos operating system but had no luck with yum or build from source cause of strange message saying that
checking for SSHFS… configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config.
The simple and quick method is the following. Please chech the versions for future releases. Run everything as root
# cd ~
# wget http://downloads.sourceforge.net/project/fuse/fuse-2.X/2.8.1/fuse-2.8.1.tar.gz?use_mirror=garr
# wget http://downloads.sourceforge.net/project/fuse/sshfs-fuse/2.2/sshfs-fuse-2.2.tar.gz?use_mirror=garr
# yum install gcc glib2-devel
# tar zxf fuse-2.8.1.tar.gz && cd fuse-2.8.1
#./configure && make && make install
# tar zxf sshfs-fuse-2.2.tar.gz && cd sshfs-fuse-2.2
#./configure && make && make install
One more step to be able to use fuse
# echo “/usr/local/lib” >> /etc/ld.so.conf
# ldconfig
and you are done!
Enjoy!
Biznet Infoservices Ltd
Posted in September 17, 2009 ¬ 08:38h.nioakeim
There is something in leopard and all operating systems that bothered me since i started playing around with ip’s and generaly started being a system admin. How do i flush quick and dirty my machines dns query cache without restarting my network connections? Well in other systems dont know yet, but in leopard i found this great terminal command/application:
DSCACHEUTIL
Take a look at the first rows in man
dscacheutil(1) BSD General Commands Manual dscacheutil(1)
NAME
dscacheutil — gather information, statistics and initiate queries to the Directory Service
cache.
SYNOPSIS
dscacheutil -h
dscacheutil -q category [-a key value]
dscacheutil -cachedump [-buckets] [-entries [category]]
dscacheutil -configuration
dscacheutil -flushcache
dscacheutil -statistics
DESCRIPTION
dscacheutil does various operations against the Directory Service cache including gathering
statistics, initiating lookups, inspection, cache flush, etc. This tool replaces most of the
functionality of the lookupd tool previously available in the OS.
Well if you ever need to flash you dns queries just do:
$ sudo dscacheutil -flushcache
Biznet Infoservices Ltd