2013年6月6日 星期四

Use command to send mail with Gmail

// install pkg
# sudo apt-get install mutt

// setup configure
# sudo gvim /etc/Muttrc


set from = "yourmailaccount@gmail.com"
set realname = "yourname"
set imap_user = "yourmailaccount@gmail.com"
set imap_pass = "yourmailpassword"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed ="+[Gmail]/Drafts"
set header_cache =~/.mutt/cache/headers
set message_cachedir =~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates
set smtp_url = "smtp://yourmailaccount@smtp.gmail.com:587/"
set smtp_pass = "yourmailpassword"
set move = no
set imap_keepalive = 900

//create cache folder
mkdir -r .mutt/
mkdir -r .mutt/cache/


Synergy in Ubuntu

// install synergy
# sudo apt-get install quicksynergy

// setup configure
# gvim .quicksynergy/synergy.conf

section: screens
    terry-desktop:
    TWTPEN1107043:
end
section: links
    terry-desktop:
        left = TWTPEN1107043
    TWTPEN1107043:
        right = terry-desktop
end


// run command
# /usr/bin/synergys -f --config .quicksynergy/synergy.conf