Close Batch Window After Execution

Posted on Tuesday, March 9, 2010 in MS OS

Example will start exe file and close window, good for batch files
ECHO off
ECHO.
ECHO Starting file.exe
ECHO.
start "" "C:\dir\file.exe"
ECHO.
ECHO Done
ECHO.

Also can use /MIN to start app window minimized like:
start /MIN "" "C:\dir\file.exe"

Empty Log File

Posted on Tuesday, March 9, 2010 in Linux

#> /var/www/domain/log/error_log

XP Schedule Defrag

Posted on Friday, March 5, 2010 in MS OS

Schedule XP defrag

Windows 7 SENDTO Directory

Posted on Tuesday, March 2, 2010 in MS OS

Shortcut, address bar: shell:sendto

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