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
- grub2 configuration file: /etc/default/grub
- sudo update-grub # to update modified grub2 configuration file
- sudo grub-install /dev/sda # re-install grub to MBA of /dev/sda
- grub2: hold SHIFT to select kernel to boot (GRUB_HIDDEN_TIMEOUT=0)
- Clean Up the New Ubuntu Grub2 Boot Menu
- Change timezone of ubuntu machine from command line:
dpkg-reconfigure tzdata
HP LaserJet setup: hp-setup (hp-setup, hplip-cups)
- Find which Debian or ubuntu Linux Version you are running
cat /etc/issue Show the List of Installed Packages on Ubuntu or Debian
dpkg --get-selections
dpkg -Lsearch for a filename from installed packages.
dpkg-query -S /etc/bash_completion
bash-completion: /etc/bash_completion
沒有留言:
張貼留言