Tuesday, December 04, 2012

vsftpd 500 OOPS: cannot change directory: /users/ftp

One simple cause of this error is that THERE IS NO /users/ftp DIRECTORY ! :)

Saturday, December 01, 2012

Windows 8 Memorex exPressit and Victorian LET font

My wife had been using Memorex exPressit Label Design Studio 4.3.0206 on Windows XP for almost 10 years.  She had made about 5000 different disk labels with it.  The Window XP machine just got slower and slower and slower over the years so we decided to buy a brand new Windows 8 HP laptop.  I hate the windows 8 UI BTW but that is besides the point.  I installed exPressit on the win8 laptop and low and behold there was no longer a "Victorian LET" font available on the new system.  Typical.  My wife called Microsoft support (I know that she did because she ended up crying).  Microsoft support sucks.  Once she mentioned Memorex exPressit MS support simply said it was not their problem.  So my wife got a hold of the Memorex/Surething support (http://www.memorex.com/en-us/Support/) and once she mentioned win8 the memorex support dummies said that expressit is only supported to Windows 7.  What a bunch of losers these "support" / "customer service" people are.  Really? Does anyone need these worthless waste of skin?  So she made plans to go to Staples (another bunch of worthless clods) to get them to install Windows 7 on the new laptop.  I realized (heck) I got windows 7 on my work laptop so I installed the version of exPressit the ignorant support people at Memorex said we should use and then slapped my wife's label design files on my win7 laptop.  Was the "Victorian LET" there? Of course not.  Using win7 solved nothing *BUZZARD* wrong answer losers at memorex support.

There is a happy ending to this story and the hero of this tale is this web site: http://fontzone.net
I 1) downloaded their version of  "Victorian LET" and then 2) opened up Control Panel (how to do this win8 is totally stupid and beyond the scope of this blog entry) 3) in the control panel I double clicked the Font icon and then 4) dragged the file I downloaded from fontzone.net into the Fonts dialog box.

So now when I start exPressit I can use and see the "Victorian LET" font.

a BIG thank you and $10 donation to fontzone and a middle finger to microsoft and memerox/surething customer support.

Monday, November 26, 2012

how to shutdown windows 8

Press the Stupid Window Key and the 'i' at the same time.  then click the power icon on the panel that appears.

... sorry I don't have annoying ads and didn't write a 5 page article about this subject

Sunday, November 25, 2012

windows 8 sucks. I HATE 8

the cure for the crap UI of windows 8 is the same as is it was for all the other shitty microsoft products : http://cygwin.com

Friday, November 09, 2012

undefined symbol: rb_encdb_declare when building ruby

You can do the rvm thing but a quicker approuch is to use --disable-rdoc option when you run configure

Friday, October 26, 2012

rpmbuild error : # *** ERROR: No build ID note found in

If you get this error when executing rpmbuild add this line ...

%global debug_package %{nil}

... to the first line of your spec file.

Thanks to http://mumble.knobgoblin.org.uk/faqs.cgi

Friday, October 05, 2012

There is no '/boot' directory mounted on the source machine. It is required to create a bootable virtual machine. Mount the '/boot' directory on the source machine


Found an inserting link on theat VM converter error:

There is no '/boot' directory mounted on the source machine. It is required to create a bootable virtual machine. Mount the '/boot' directory on the source machine

Friday, September 07, 2012

install dbi / sqlite for ruby with gem


[root@learn ruby_tut]# yum provides */gem
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: ftp.cse.buffalo.edu
 * extras: mirror.cogentco.com
rubygems-1.3.1-1.el5.noarch : The Ruby standard for packaging ruby libraries
Repo        : epel
Matched from:
Filename    : /usr/bin/gem



pe-rubygems-1.3.7-4.pe.el5.noarch : The Ruby standard for packaging ruby libraries
Repo        : installed
Matched from:
Filename    : /opt/puppet/bin/gem


[root@learn ruby_tut]# /opt/puppet/bin/gem install --remote sqlite-ruby
Building native extensions.  This could take a while...

ERROR:  Error installing sqlite-ruby:
        ERROR: Failed to build gem native extension.

/opt/puppet/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /opt/puppet/lib/ruby/ruby.h


Gem files will remain installed in /opt/puppet/lib/ruby/gems/1.8/gems/sqlite-ruby-2.2.3 for inspection.
Results logged to /opt/puppet/lib/ruby/gems/1.8/gems/sqlite-ruby-2.2.3/ext/gem_make.out


DANG IT!

OK lets try this ...

[root@learn ruby_tut]# yum install rubygems
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: ftp.cse.buffalo.edu
 * extras: mirror.cogentco.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rubygems.noarch 0:1.3.1-1.el5 set to be updated
--> Processing Dependency: ruby-rdoc for package: rubygems
--> Finished Dependency Resolution
rubygems-1.3.1-1.el5.noarch from epel has depsolving problems
  --> Missing Dependency: ruby-rdoc is needed by package rubygems-1.3.1-1.el5.noarch (epel)
Error: Missing Dependency: ruby-rdoc is needed by package rubygems-1.3.1-1.el5.noarch (epel)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

POO!
[root@learn ruby_tut]# yum --skip-broken install rubygems
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: ftp.cse.buffalo.edu
 * extras: mirror.cogentco.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rubygems.noarch 0:1.3.1-1.el5 set to be updated
--> Processing Dependency: ruby-rdoc for package: rubygems
--> Finished Dependency Resolution
rubygems-1.3.1-1.el5.noarch from epel has depsolving problems
  --> Missing Dependency: ruby-rdoc is needed by package rubygems-1.3.1-1.el5.noarch (epel)

Packages skipped because of dependency problems:
    rubygems-1.3.1-1.el5.noarch from epel
[root@learn ruby_tut]# yum install ruby-rdoc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: ftp.cse.buffalo.edu
 * extras: mirror.cogentco.com
Setting up Install Process
No package ruby-rdoc available.
Nothing to do

 F*%$@#!ING S^#(#$Y !!!

Ok let's try what ... says to do

[root@learn ruby_tut]# mkdir install
[root@learn ruby_tut]# cd install/
[root@learn install]# wget http://rubyforge.org/frs/download.php/63601/dbi-0.4.3.tar.gz
--2012-08-01 15:44:32--  http://rubyforge.org/frs/download.php/63601/dbi-0.4.3.tar.gz
Resolving rubyforge.org... 50.56.192.79
Connecting to rubyforge.org|50.56.192.79|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://files.rubyforge.vm.bytemark.co.uk/ruby-dbi/dbi-0.4.3.tar.gz [following]
--2012-08-01 15:44:32--  http://files.rubyforge.vm.bytemark.co.uk/ruby-dbi/dbi-0.4.3.tar.gz
Resolving files.rubyforge.vm.bytemark.co.uk... 80.68.94.54
Connecting to files.rubyforge.vm.bytemark.co.uk|80.68.94.54|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 81851 (80K) [application/x-gzip]
Saving to: `dbi-0.4.3.tar.gz'

100%[==========================================================================>] 81,851      78.1K/s   in 1.0s    

2012-08-01 15:44:35 (78.1 KB/s) - `dbi-0.4.3.tar.gz' saved [81851/81851]
[root@learn install]# tar !*
tar -xzf dbi-0.4.3.tar.gz
[root@learn install]# cd dbi-0.4.3
[root@learn dbi-0.4.3]# ruby setup.rb config --with=dbi,dbd_sqlite
config: unknown option --with=dbi,dbd_sqlite
Try 'ruby setup.rb --help' for detailed usage.
[root@learn dbi-0.4.3]# ruby setup.rb config
---> bin
<--- bin
---> lib
---> lib/dbi
---> lib/dbi/handles
<--- lib/dbi/handles
---> lib/dbi/sql
<--- lib/dbi/sql
---> lib/dbi/base_classes
<--- lib/dbi/base_classes
---> lib/dbi/utils
<--- lib/dbi/utils
<--- lib/dbi
<--- lib
[root@learn dbi-0.4.3]# ruby setup.rb setup
---> bin
updating shebang: dbi
updating shebang: test_broken_dbi
<--- bin
---> lib
---> lib/dbi
---> lib/dbi/handles
<--- lib/dbi/handles
---> lib/dbi/sql
<--- lib/dbi/sql
---> lib/dbi/base_classes
<--- lib/dbi/base_classes
---> lib/dbi/utils
<--- lib/dbi/utils
<--- lib/dbi
<--- lib
[root@learn dbi-0.4.3]# ruby setup.rb install
rm -f InstalledFiles
---> bin
mkdir -p /usr/bin
install dbi /usr/bin/
install test_broken_dbi /usr/bin/
<--- bin
---> lib
mkdir -p /usr/lib/ruby/site_ruby/1.8
install dbi.rb /usr/lib/ruby/site_ruby/1.8/
---> lib/dbi
mkdir -p /usr/lib/ruby/site_ruby/1.8/dbi
install utils.rb /usr/lib/ruby/site_ruby/1.8/dbi
install columninfo.rb /usr/lib/ruby/site_ruby/1.8/dbi
install base_classes.rb /usr/lib/ruby/site_ruby/1.8/dbi
install handles.rb /usr/lib/ruby/site_ruby/1.8/dbi
install row.rb /usr/lib/ruby/site_ruby/1.8/dbi
install trace.rb /usr/lib/ruby/site_ruby/1.8/dbi
install binary.rb /usr/lib/ruby/site_ruby/1.8/dbi
install typeutil.rb /usr/lib/ruby/site_ruby/1.8/dbi
install types.rb /usr/lib/ruby/site_ruby/1.8/dbi
install sql.rb /usr/lib/ruby/site_ruby/1.8/dbi
install exceptions.rb /usr/lib/ruby/site_ruby/1.8/dbi
install sql_type_constants.rb /usr/lib/ruby/site_ruby/1.8/dbi
---> lib/dbi/handles
mkdir -p /usr/lib/ruby/site_ruby/1.8/dbi/handles
install statement.rb /usr/lib/ruby/site_ruby/1.8/dbi/handles
install driver.rb /usr/lib/ruby/site_ruby/1.8/dbi/handles
install database.rb /usr/lib/ruby/site_ruby/1.8/dbi/handles
<--- lib/dbi/handles
---> lib/dbi/sql
mkdir -p /usr/lib/ruby/site_ruby/1.8/dbi/sql
install preparedstatement.rb /usr/lib/ruby/site_ruby/1.8/dbi/sql
<--- lib/dbi/sql
---> lib/dbi/base_classes
mkdir -p /usr/lib/ruby/site_ruby/1.8/dbi/base_classes
install statement.rb /usr/lib/ruby/site_ruby/1.8/dbi/base_classes
install driver.rb /usr/lib/ruby/site_ruby/1.8/dbi/base_classes
install database.rb /usr/lib/ruby/site_ruby/1.8/dbi/base_classes
<--- lib/dbi/base_classes
---> lib/dbi/utils
mkdir -p /usr/lib/ruby/site_ruby/1.8/dbi/utils
install date.rb /usr/lib/ruby/site_ruby/1.8/dbi/utils
install xmlformatter.rb /usr/lib/ruby/site_ruby/1.8/dbi/utils
install time.rb /usr/lib/ruby/site_ruby/1.8/dbi/utils
install tableformatter.rb /usr/lib/ruby/site_ruby/1.8/dbi/utils
install timestamp.rb /usr/lib/ruby/site_ruby/1.8/dbi/utils
<--- lib/dbi/utils
<--- lib/dbi
<--- lib
[root@learn dbi-0.4.3]# 
[root@learn dbi-0.4.3]# cd ..
[root@learn install]# wget http://rubyforge.org/frs/download.php/60205/dbd-sqlite3-1.2.5.tar.gz
--2012-08-01 15:51:26--  http://rubyforge.org/frs/download.php/60205/dbd-sqlite3-1.2.5.tar.gz
Resolving rubyforge.org... 50.56.192.79
Connecting to rubyforge.org|50.56.192.79|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://files.rubyforge.vm.bytemark.co.uk/ruby-dbi/dbd-sqlite3-1.2.5.tar.gz [following]
--2012-08-01 15:51:26--  http://files.rubyforge.vm.bytemark.co.uk/ruby-dbi/dbd-sqlite3-1.2.5.tar.gz
Resolving files.rubyforge.vm.bytemark.co.uk... 80.68.94.54
Connecting to files.rubyforge.vm.bytemark.co.uk|80.68.94.54|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52156 (51K) [application/x-gzip]
Saving to: `dbd-sqlite3-1.2.5.tar.gz'

100%[==========================================================================>] 52,156      55.3K/s   in 0.9s    

2012-08-01 15:51:28 (55.3 KB/s) - `dbd-sqlite3-1.2.5.tar.gz' saved [52156/52156]
[root@learn install]# tar -xzf dbd-sqlite3-1.2.5.tar.gz 
[root@learn install]# cd dbd-sqlite3-1.2.5
[root@learn dbd-sqlite3-1.2.5]# ls
build  ChangeLog  lib  LICENSE  Rakefile  README  setup.rb  test
[root@learn dbd-sqlite3-1.2.5]# ruby setup.rb config
---> lib
---> lib/dbd
---> lib/dbd/sqlite3
<--- lib/dbd/sqlite3
<--- lib/dbd
<--- lib
[root@learn dbd-sqlite3-1.2.5]# ruby setup.rb setup
---> lib
---> lib/dbd
---> lib/dbd/sqlite3
<--- lib/dbd/sqlite3
<--- lib/dbd
<--- lib
[root@learn dbd-sqlite3-1.2.5]# ruby setup.rb install
rm -f InstalledFiles
---> lib
mkdir -p /usr/lib/ruby/site_ruby/1.8
---> lib/dbd
mkdir -p /usr/lib/ruby/site_ruby/1.8/dbd
install SQLite3.rb /usr/lib/ruby/site_ruby/1.8/dbd
---> lib/dbd/sqlite3
mkdir -p /usr/lib/ruby/site_ruby/1.8/dbd/sqlite3
install statement.rb /usr/lib/ruby/site_ruby/1.8/dbd/sqlite3
install database.rb /usr/lib/ruby/site_ruby/1.8/dbd/sqlite3
<--- lib/dbd/sqlite3
<--- lib/dbd
<--- lib
[root@learn dbd-sqlite3-1.2.5]# 




learning ruby ... good websites

Wednesday, August 22, 2012

patch diff rpm

http://bradthemad.org/tech/notes/patching_rpms.php

Summary:


% diff -uNr package-1.0/ package-1.0p/ > ../SOURCES/package-1.0-my.patch



  • Adding the patch to the package


Next, add the patch to the specfile, so it will be applied when building the package. There may be other patches already, and they are applied in order of their number in the specfile, so number yours appropriately. Add to %_topdir/SPECS/package.spec, in the top section where the name, version, and source lines are:

Patch0: package-1.0-my.patch

Farther down, there will be a section that deals with preparing for the build. Add a patch command that corresponds with the patch line above, typically right after %setup:

%prep
%setup ...
%patch0 -p1



Friday, August 17, 2012

puppet mirror

write software that integrates visible systems and generates puppet manifest for them as best as can be done. 

Saturday, August 11, 2012

Missing Info from Android Building Your First App Tutorial

The android tutorial for "Build Your First App" (http://developer.android.com/training/basics/firstapp/index.html) is excellent, but they leave a couple of things out that I had to figure out for myself.  I am developing on ubuntu linux and following the command line version of the tut.  When I got to this part of the tut:

http://developer.android.com/training/basics/firstapp/running-app.html

I ran into the error "could not find javac" when I ran "ant debug".
I had to install javac like so ...

$ sudo apt-get install openjdk-6-jdk

The next problem was that I kept getting ...


error: device not found
- waiting for device -

... when I executed:



red@ubuntu:~/android/workspace/MyFirstApp$ adb install bin/MyFirstApp-debug.apk


... I found out that I need to start the "server" like so ....


red@ubuntu:~/android/workspace/MyFirstApp$ adb kill-server
red@ubuntu:~/android/workspace/MyFirstApp$ adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
red@ubuntu:~/android/workspace/MyFirstApp$ adb install bin/MyFirstApp-debug.apk
100 KB/s (37439 bytes in 0.363s)
pkg: /data/local/tmp/MyFirstApp-debug.apk
Success



Friday, August 10, 2012

nsupdate increments the zone's serial number for you


redcricket@rpz-tx1-1-l:~$ dig +short rpz.red-cricket-blog.com soa @localhost
rpz-tx1-1-l.red-cricket-blog.com. csirt.red-cricket-blog.com. 1344659785 3600 900 2592000 7200
redcricket@rpz-tx1-1-l:~$ sudo /usr/bin/nsupdate
> server localhost
> update del rbc.red-cricket-blog.com.rpz.red-cricket-blog.com 300 CNAME redcricket-lnx.red-cricket-blog.com
> send
>
> quit
redcricket@rpz-tx1-1-l:~$ dig +short rpz.red-cricket-blog.com soa @localhost
rpz-tx1-1-l.red-cricket-blog.com. csirt.red-cricket-blog.com. 1344659786 3600 900 2592000 7200

non-alphanumeric javascript

Wednesday, April 25, 2012

Rugged OS


Rugged OS is being used in a wide range of applications, including
  traffic control, power generation, and even U.S. Navy bases.  The
  backdoor was first found over a year ago, and RuggedCom have so
  far refused to patch out the exploit."

  The exploit is trivial: each device has a permanent "factory" user, and
  an automatically generated password derived from the MAC.

edos-systems-infrastructure-military-systems-vulnerable

Thursday, March 08, 2012

When building RPM for Perl module XML::SAX, make install for XML::SAX fails with Can't locate XML/SAX/ParserFactory.pm error message


Given this %install section in the spec file:

        ...
        %prep
        %global
        %setup
        %build
        /usr/bin/perl/bin/perl Makefile.PL INSTALLDIRS=vendor
        make
        make test
        %install
        rm -rf $RPM_BUILD_ROOT
        make install DESTDIR=$RPM_BUILD_ROOT > %{_topdir}/%{name}.install.out
        ...

if you get this error:

        Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.7597
        + umask 022
        + cd /users/red/tasks/perl-5.14-for-cel5.03/platform/vendor_perl/perl-XML-SAX/BUILD
        + cd perl-XML-SAX-0.99
        + rm -rf /users/red/tasks/perl-5.14-for-cel5.03/platform/vendor_perl/perl-XML-SAX/BUILDROOT/perl-XML-SAX-0.99-1.i386
        + make install DESTDIR=/users/red/tasks/perl-5.14-for-cel5.03/platform/vendor_perl/perl-XML-SAX/BUILDROOT/perl-XML-SAX-0.99-1.i386
        Can't locate XML/SAX/ParserFactory.pm in @INC (@INC contains: /usr/bin/perl-5.14.1/lib/eman_perl/i686-linux-thread-multi /usr/bin/perl-5.14.1/lib/eman_perl /usr/bin/perl-5.14.1/lib/vendor_perl/5.14.1/i686-linux-thread-multi /usr/bin/perl-5.14.1/lib/vendor_perl/5.14.1 /usr/bin/perl-5.14.1/lib/5.14.1/i686-linux-thread-multi /usr/bin/perl-5.14.1/lib/5.14.1 /usr/bin/perl-5.14.1/lib/site_perl .) at /usr/bin/perl-5.14.1/lib/vendor_perl/5.14.1/XML/SAX.pm line 18.
        BEGIN failed--compilation aborted at /usr/bin/perl-5.14.1/lib/vendor_perl/5.14.1/XML/SAX.pm line 18.
        Compilation failed in require.
        BEGIN failed--compilation aborted.
        make[1]: *** [install_sax_pureperl] Error 2
        error: Bad exit status from /var/tmp/rpm-tmp.7597 (%install)


        RPM build errors:
            Macro % has illegal name (%define)
            Bad exit status from /var/tmp/rpm-tmp.7597 (%install)
        make: *** [perl-XML-SAX-0.99-1.i386.rpm] Error 1

You need to add the line ...

        export PERL5LIB=${RPM_BUILD_ROOT}/usr/bin/perl-5.14.1/lib/vendor_perl/5.14.1

... so your spec looks like this ...

        %prep
        %global
        %setup
        %build
        /usr/bin/perl/bin/perl Makefile.PL INSTALLDIRS=vendor
        make
        make test
        %install
        rm -rf $RPM_BUILD_ROOT
        export PERL5LIB=${RPM_BUILD_ROOT}/usr/bin/perl-5.14.1/lib/vendor_perl/5.14.1
        make install DESTDIR=$RPM_BUILD_ROOT > %{_topdir}/%{name}.install.out

Sunday, March 04, 2012

How To Make Ubuntu Apache2 Listen on another port


red@ubuntu:/etc/apache2$ sudo cp ports.conf ports.conf_old
red@ubuntu:/etc/apache2$ vim ports.conf
red@ubuntu:/etc/apache2$ sudo vim ports.conf
red@ubuntu:/etc/apache2$ diff ports.conf ports.conf_old
8c8
< NameVirtualHost *:*
---
> NameVirtualHost *:80
10d9
< Listen 81

Friday, March 02, 2012

dealing with spaces in shell script for loops


SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for policy in `/usr/SD/bin/nrcmd -r -N doofus -P 1234 policy listnames`
do
        echo "$policy"
done
IFS=$SAVEIFS

Thursday, March 01, 2012

Perl cpan module GD make fails with t/GD.t ........ Not a CODE reference ... DynaLoader.pm line 213.

If you are getting these errors when trying to install the CPAN Perl module GD (http://search.cpan.org/~lds/GD-2.46/) ...


make test
PERL_DL_NONLAZY=1 ... "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
Not a CODE reference at ... DynaLoader.pm line 213.
END failed--call queue aborted at blib/lib/GD.pm line 213.
Compilation failed in require at t/GD.t line 14.
BEGIN failed--compilation aborted at t/GD.t line 14.
t/GD.t ........
Dubious, test returned 2 (wstat 512, 0x200)
Failed 12/12 subtests
Not a CODE reference at ... DynaLoader.pm line 213.
END failed--call queue aborted at ... perl-GD-2.46/blib/lib/GD.pm line 213.
Compilation failed in require at ... perl-GD-2.46/blib/lib/GD/Polyline.pm line 45.
BEGIN failed--compilation aborted at ... perl-GD-2.46/blib/lib/GD/Polyline.pm line 45.
Compilation failed in require at t/Polyline.t line 10.
BEGIN failed--compilation aborted at t/Polyline.t line 10.
t/Polyline.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/1 subtests

Test Summary Report
-------------------
t/GD.t      (Wstat: 512 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 12 tests but ran 1.
t/Polyline.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 1 tests but ran 0.
Files=2, Tests=1,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.04 cusr  0.01 csys =  0.07 CPU)
Result: FAIL
Failed 2/2 test programs. 1/1 subtests failed.
make[1]: *** [test_dynamic] Error 2

... you need run make like so ...

make CCFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"


Monday, February 13, 2012

How To Determine What Process is Listening on Which Port

From : http://www.cyberciti.biz/faq/what-process-has-open-linux-port/

# netstat -tulpn


# ls -l /proc/1138/exe



# netstat -tulpn | grep :80
Sample outputs:
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1607/apache2

fuser command

Find out the processes PID that opened tcp port 7000, enter:
# fuser 7000/tcp
Sample outputs:
7000/tcp:             3813
Finally, find out process name associated with PID # 3813, enter:
# ls -l /proc/3813/exe
Sample outputs:
lrwxrwxrwx 1 vivek vivek 0 2010-10-29 11:00 /proc/3813/exe -> /usr/bin/transmission
/usr/bin/transmission is a bittorrent client, enter:
# man transmission
OR
# whatis transmission
Sample outputs:
transmission (1)     - a bittorrent client

Task: Find Out Current Working Directory Of a Process

To find out current working directory of a process called bittorrent or pid 3813, enter:
# ls -l /proc/3813/cwd


Wednesday, January 25, 2012

Gaining root shell via mempodipper

http://www.h-online.com/open/news/item/Linux-root-exploit-due-to-memory-access-Update-2-1419834.html

Wednesday, January 18, 2012

DNSSEC clients for chrome and firefox!

Dan York york@isoc.org via dnssec-deployment.org 
6:19 AM (8 hours ago)

to Ondřej, dnssec-deploym.
Ondřej,

That's awesome!  Thanks for passing along the news and I've added a page about the extension to our Deploy360 site at:

http://www.internetsociety.org/deploy360/resources/how-to-add-dnssec-support-to-google-chrome/

Previously I had added a page on the Firefox extension:


Although after I had posted that page there was an ensuing discussion in multiple different channels about what the best user experience for DNSSEC really is.  I tried to capture those discussion points in this blog post:


Again, as a Chrome user I have to say THANKS for creating the extension and I look forward to seeing how it evolves. (and hopefully Chrome will add the missing API at some point).

Regards,
Dan