Ubuntu Remove Package

Posted on Thursday, February 25, 2010 in Linux

#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 Hostname

Posted on Thursday, February 25, 2010 in Linux

/etc/hostname
ubuntu

Ubuntu Hosts File

Posted on Thursday, February 25, 2010 in Linux

127.0.0.1 localhost
192.168.1.110 linux

Samba Configuration

Posted on Thursday, February 25, 2010 in Linux

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

Posted on Thursday, February 25, 2010 in Linux


# head /proc/cpuinfo
# head /proc/version
# head /proc/meminfo
# head /proc/swap
# head /proc/partitions
# cat /etc/issue

Restart Network

Posted on Thursday, February 25, 2010 in Linux

/etc/init.d/networking restart

Network Interface

Posted on Thursday, February 25, 2010 in Linux

/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

ipconfig

Posted on Wednesday, February 24, 2010 in Linux

ifconfig

Ubuntu Enable Root Account

Posted on Wednesday, February 24, 2010 in Linux

sudo passwd root

Install PHP CURL Extension on Ubuntu

Posted on Wednesday, February 24, 2010 in Linux

apt-get install php5-curl

Add to php.ini:
extension=curl.so