Archive for Ubuntu Server

Installing Node.js via Package Manager 15.06.12

  • Ubuntu Server
  • Comments Off on Installing Node.js via Package Manager
  • 0
  • sudo apt-get install python-software-properties
    sudo apt-add-repository ppa:chris-lea/node.js
    sudo apt-get update
    sudo apt-get install nodejs npm 

    It installs current stable Node on the current stable ubuntu.

    If you want to compile Node C++ modules:

    sudo apt-get install nodejs-dev 

    Or configure shell script for install node.js usingĀ http://apptob.org

    Restore Iptables Rules in Ubuntu 22.04.12

  • Ubuntu Server
  • Comments Off on Restore Iptables Rules in Ubuntu
  • 0

  • $ iptables-restore < /home/user/working.iptables.rules

    Save Iptables Rules in Ubuntu 22.04.12

  • Ubuntu Server
  • Comments Off on Save Iptables Rules in Ubuntu
  • 0

  • $ iptables-save > /home/user/working.iptables.rules

    Backup crontab 15.04.12

  • Ubuntu Server
  • Comments Off on Backup crontab
  • 0
  • How to copy or backup the crontab file?

    crontab -l > $(date +%Y%m%d).crontab

    Start, Stop & Restart OpenSSH Server 04.03.12

  • Ubuntu Server
  • Comments Off on Start, Stop & Restart OpenSSH Server
  • 0
  • $ sudo /etc/init.d/ssh start
    $ sudo /etc/init.d/ssh stop
    $ sudo /etc/init.d/ssh restart

    $ sudo service ssh start
    $ sudo service ssh stop
    $ sudo service ssh restart