Ubuntu Remove Package
#apt-get remove [package]
#apt-get --purge remove [package] (will remove package and config files)
#dpkg --list (show package list)
#dpkg --list | less
#dpkg --list | grep -i '[package]'
Ubuntu Hosts File
127.0.0.1 localhost
192.168.1.110 linux
Samba Configuration
Sample /etc/samba/smb.conf
[global]
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = MATRIX
# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
# wins support = no
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no
…
[webserver]
comment = Linux Web Server
path = /var/www
browsable = yes
guest ok = yes
read only = no
create mask = 0755
Debian System Info
# head /proc/cpuinfo
# head /proc/version
# head /proc/meminfo
# head /proc/swap
# head /proc/partitions
# cat /etc/issue
Network Interface
/etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.110
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.1
Install PHP CURL Extension on Ubuntu
apt-get install php5-curl
Add to php.ini:
extension=curl.so
