Monthly Archives: August 2012

upstart vs System V init

  Most valuable reference upstart cookbook How to disable a service example: How to check running service (System-V style) initctl list, bum (GUI) (System-V style) chkconfig –list (System-V style) service –status-all (? is upstart job) Advertisements

Posted in centos, chkconfig, ubuntu, upstart | Tagged | Leave a comment

mount windows share from Ubuntu

gvfs-fuse sudo apt-get install gvfs-fuse dpkg -L gvfs-fuse gvfs-mount -l gvfs-mount smb://victor.yang@, then it will prompt for DOMAIN and password. to umount: gvfs-mount -u smb://victor.yang@ smbfs sudoapt-get installsmbfs smbclient //$ -U id -Wdomain sudo mount -t cifs //remote_windows/share $ $HOME/windows -o user=uid,dom=office

Posted in smb, ubuntu | Leave a comment

connect to MS SQL server and Sybase from linux freetds sqsh freebcp

sudo apt-get install freetds-dev sqsh freetds-bin  cat /etc/freetds/freetds.conf  [tds1] host = port = 1433 tds version = 7.0  sqsh -S tds1 -U id -P password -i foo.sql -o foo.out freebcp (from freetds-bin package) freebcp mydb.dbo.table out table.csv -U id … Continue reading

Posted in mssql, sqsh, sybase | Tagged | Leave a comment

browser shortcut with nginx and DNS

OS: Ubuntu DNS /etc/hosts foo Nginx in sites-enabled/default if ( $host = wiki ) { rewrite ^; }

Posted in nginx, urlrewrite | Leave a comment

Enable SQL server 2012 for TCP

Enable SQL server 2012 for TCP port 1433

Posted in mssql | Leave a comment

nmcli Network-Manager nmtool

nm-tool to display network-manager status nmcli con down id VPN_CONN_NAME nmcli con up id VPN_CONN_NAME nmcli con automation with nmcli To automatically connect “nmcli con up id VPN_CONN_NAME” in .profile (upon login) NetworkManager Restart network-manager: sudo service network-manager restart

Posted in network, ubuntu | Leave a comment


installation sudo apt-get install libevent-dev pip install gevent

Posted in gevent | Leave a comment