2009-11-05

ubuntu tips

Ubuntu Server Settings
  • pppoe: sudo pppoeconf
  • Network Time Protocol: sudo apt-get install ntp
  • How-To: Manage services with "update-rc.d"
    sudo update-rc.d _service_name_ defaults 99
  • Internet Connection Sharing: dnsmasq(dns+dhcpd) + Firewall(ufw)
    sudo ufw allow 22
    sudo ufw allow 80
    sudo ufw allow from 10.1.1.0/24

    # to enable DHCPD on eth0:
    sudo ufw allow in on eth0 from any port 68 to any port 67 proto udp
    check also "ufw Masquerading"
  • Firewall (ufw) setting for vsftpd:
    sudo ufw allow ftp
    sudo ufw allow 20/tcp
  • DynDNS
  • gitosis: step to restore git repositories
    • restore ssh keys to /etc/ssh
    • restore git directory to /home/git
    • chown -Rf git:git git


沒有留言: