..::capture of life::..

...my thoughts, learnings & captured images...

SSH Allowing remote hosts to connect to local forwarded ports

Sometimes some ISP dont allow user to use port 22 to ssh other server then user could not connect his desired server.
To solve this problem in server which user wants to connect, another port should be forwarded to 22 port. Then user can connect to that port.

In server side, someone should forward that port. Thats the problem... :(

server side: ssh -gL 8022:localhost:22 localhost

& user should use -p switch to connect that server.

user side: ssh -p 8022 user@server_name

Installingfirefox-3.5.5.tar.bz2 on Ubuntu 9.10 Karmic

This article will share how to install firefox-3.5.5.tar.bz2 on Linux Ubuntu 9.10.

Install firefox-3.5.5.tar.bz2 on Linux Ubuntu (Tested on Ubuntu 9.10)

  • Download the new version of firefox then save in /home

  • We must remove the old version of firefox,
    if You don't know the command of your firefox, We can check throught terminal:

    • Open terminal,
      type : fire then press tab to get suggestion from terminal.
      e.q.:

      firefox-3.5

    • remove firefox

      sudo apt-get remove firefox-3.5

  • Rename plugins folder to make room for the real plugin

    sudo su
    cd /home

    extract firefox to /opt

    tar -jxvf firefox-3.5.5.tar.gz2 -C /opt
    cd /opt
    mv /opt/firefox/plugins/ /opt/firefox/plugins.backup

  • Create a symbolic link plugins for firefox

    ln -s /usr/lib/xulrunner-addons/plugins/ /opt/firefox/plugins

  • Create a new command of firefox, you can still run firefox via old shortcut of firefox

    dpkg-divert --divert /usr/bin/firefox.ubuntu --rename /usr/bin/firefox

  • Make a symbolic link to the firefox, so the launcher will launch the new version of firefox

    ln -s /opt/firefox/firefox /usr/bin/firefox

  • Run firefox

    firefox

    or You can run on Applications >> Internet >> Firefox Web Browser, if firefox shortcut there is no, you can create the new shortcut
    Right click >> Create Launcher
    Name : Firefox
    Command : firefox
    Comment : Web Browser of Mozilla Inc.
  • add2any