Updates from June, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • Tomás Augusto Müller 2:57 pm on June 12, 2011 Permalink | Reply  

    Apple’s i* mount error on Linux 

    dbus error org.freedesktop.dbus.error.noreply:
    Message did not receive a reply (timeout by message bus)

    If you are getting the message above when trying to mount your iPod, iPad, etc.,  maybe you can solve with this lines:

    $ sudo add-apt-repository ppa:pmcenery/ppa
    $ sudo apt-get update
    $ sudo apt-get dist-upgrade

    #worksforme : )

     
  • Tomás Augusto Müller 2:19 pm on June 9, 2011 Permalink | Reply
    Tags: , ,   

    Close process by port number with one line 

    Recently I encountered myself executing so many times the following unix commands:

    1: $ netstat -anp | grep :port_number
    2: (search manually the output for the PID that is using the given :port_number)
    3: $ kill -9 :pid

    Bored, I challenged my friend Alisson to build a command to perform those three steps, in one single line.

    He came up with the following solution:

    kill -9 $(sudo netstat -anp | grep :[port_number] | awk '{print $7}' | cut -d '/' -f 1)

    Congratulations man! You deserve a very cold Heineken!

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: