Saturday, September 5, 2009

Nice Bash Prompts

http://maketecheasier.com/8-useful-and-interesting-bash-prompts/2009/09/04

Saw this on HackADay.com. This post has a bunch of nice bash prompts.

Friday, July 31, 2009

Here is just a quick one liner I use to mount my Linksys Nslu2 from Ubuntu when I need to....

sudo mount -t cifs -0 username=scott,uid=scott "//192.168.1.77/DISK 1" /media/nslu

or you can add the following line to /etc/fstab to mount it upon boot...

//192.168.1.77/DISK\0401 /media/nslu cifs username\scott,password=scott,uid=scott 0 0




I hope someone finds it useful.

Thursday, July 30, 2009

List of SMS email gateways

    The following was taken directly from http://www.livejournal.com/tools/textmessage.bml?mode=details, and was just included here to give more info as to why I might want to send a gmail from the command line.


    Aliant (NBTel, MTT, NewTel, and Island Tel) (from: 11, msg: 140, total: 140)
    Enter your phone number. Message is sent to number@chat.wirefree.ca

    Alltel (from: 50, msg: 116, total: 116)
    Enter your phone number. Goes to number@message.alltel.com.

    Ameritech (ACSWireless) (from: 120, msg: 120, total: 120)
    Enter your phone number. Goes to number@paging.acswireless.com

    Arch Wireless (from: 15, msg: 240, total: 240)
    Enter your phone number. Sent via http://www.arch.com/message/ (assumes blank PIN)

    AT&T (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to number@txt.att.net

    AU by KDDI (from: 20, msg: 10000, total: 10000)
    Enter your phone number. Goes to username@ezweb.ne.jp

    BeeLine GSM (from: 50, msg: 255, total: 255)
    Enter your phone number. Goes to number@sms.beemail.ru

    Bell Mobility Canada (from: 20, msg: 120, total: 120)
    Enter your phone number, including the 1 prefix. Goes to number@txt.bellmobility.ca

    Bellsouth (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to number@bellsouth.cl

    BellSouth Mobility (from: 15, msg: 160, total: 160)
    Enter your phone number. Goes to number@blsdcs.net

    Blue Sky Frog (from: 30, msg: 120, total: 120)
    Enter your phone number. Goes to number@blueskyfrog.com

    Boost (from: 30, msg: 120, total: 120)
    Enter your phone number. Goes to number@myboostmobile.com

    Cellular South (from: 50, msg: 155, total: 155)
    Enter your phone number. Messages are sent to number@csouth1.com

    CellularOne (Dobson) (from: 20, msg: 120, total: 120)
    Enter your phone number. Goes to number@mobile.celloneusa.com

    CellularOne West (from: 20, msg: 120, total: 120)
    Enter your phone number. Goes to number@mycellone.com

    Centennial Wireless (from: 10, msg: 110, total: 110)
    Enter your phone number. Sent via http://www.centennialwireless.com

    Cincinnati Bell (from: 20, msg: 50, total: 50)
    Enter your phone number. Goes to number@gocbw.com

    Claro (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to number@clarotorpedo.com.br

    Comviq (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to number@sms.comviq.se

    Dutchtone/Orange-NL (from: 15, msg: 150, total: 150)
    Enter your phone number. Messages are sent to number@sms.orange.nl

    Edge Wireless (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@sms.edgewireless.com

    EinsteinPCS / Airadigm Communications (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@einsteinsms.com

    EPlus (from: 20, msg: 480, total: 480)
    Enter your phone number. Goes to number@smsmail.eplus.de.

    Estonia Mobile Telefon (from: 20, msg: 160, total: 160)
    Enter your phone number. Sent via webform.

    Fido Canada (from: 15, msg: 140, total: 140)
    Enter your phone number. Goes to number@fido.ca.

    Golden Telecom (from: 20, msg: 160, total: 160)
    Enter your phone number or nickname. Messages are sent to number@sms.goldentele.com

    Idea Cellular (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@ideacellular.net

    Kyivstar (from: 30, msg: 160, total: 160)
    Sent by addressing the message to number@sms.kyivstar.net

    LMT (from: 30, msg: 120, total: 120)
    Enter your username. Goes to username@sms.lmt.lv

    Manitoba Telecom Systems (from: 20, msg: 120, total: 120)
    10-digit phone number. Goes to @text.mtsmobility.com

    Meteor (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to number@sms.mymeteor.ie

    Metro PCS (from: 20, msg: 120, total: 120)
    10-digit phone number. Goes to number@mymetropcs.com

    Metrocall Pager (from: 120, msg: 120, total: 120)
    10-digit phone number. Goes to number@page.metrocall.com

    MobileOne (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to number@m1.com.sg

    Mobilfone (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to number@page.mobilfone.com

    Mobility Bermuda (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to number@ml.bm

    MTS Primtel (from: 20, msg: 160, total: 160)
    Enter your phone number. Sent via web gateway.

    Netcom (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to number@sms.netcom.no

    Nextel (from: 50, msg: 126, total: 126)
    10-digit phone number. Goes to 10digits@messaging.nextel.com. Note: do not use dashes in your phone number.

    NPI Wireless (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to number@npiwireless.com.

    NTC (from: 20, msg: 160, total: 160)
    Enter your phone number. Sent via web gateway.

    O2 (formerly BTCellnet) (from: 20, msg: 120, total: 120)
    Enter O2 username - must be enabled first at http://www.o2.co.uk. Goes to username@o2.co.uk.

    O2 M-mail (formerly BTCellnet) (from: 20, msg: 120, total: 120)
    Enter phone number, omitting initial zero - must be enabled first by sending an SMS saying "ON" to phone number "212". Goes to +44[number]@mmail.co.uk.

    Optus (from: 20, msg: 114, total: 114)
    Enter your phone number. Goes to @optusmobile.com.au

    Orange (UK) (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to @orange.net. You will need to create a user account at orange.net first.

    Oskar (from: 20, msg: 320, total: 320)
    Enter your phone number. Goes to @mujoskar.cz

    Other (from: 15, msg: 100, total: 100)
    If your provider isn't supported directly, enter the email address that sends you a text message in phone number field. To be safe, the entire message is sent in the body of the message, and the length limit is really short. We'd prefer you give us information about your provider so we can support it directly.

    Pagenet (from: 20, msg: 220, total: 240)
    10-digit phone number (or gateway and pager number separated by a period). Goes to number@pagenet.net.

    PCS Rogers (from: 20, msg: 125, total: 125)
    10-digit phone number. Goes to number@pcs.rogers.com. Requires prior registration with PCS Rogers.

    Personal Communication (Sonet) (from: 20, msg: 150, total: 150)
    Enter your phone number. Goes to sms@pcom.ru with your number in the subject line.

    Plus GSM Poland (from: 20, msg: 620, total: 620)
    10-digit phone number. Goes to number@text.plusgsm.pl.

    Powertel (from: 20, msg: 120, total: 120)
    10-digit phone number. Goes to number@ptel.net

    Primtel (from: 20, msg: 150, total: 150)
    Enter your phone number. Goes to number@sms.primtel.ru

    PSC Wireless (from: 20, msg: 150, total: 150)
    Enter your phone number. Goes to number@sms.pscel.com

    Qualcomm (from: 20, msg: 120, total: 120)
    Enter your username. Goes to username@pager.qualcomm.com

    Qwest (from: 14, msg: 100, total: 100)
    10-digit phone number. Goes to @qwestmp.com

    Safaricom (from: 15, msg: 160, total: 160)
    Goes to @safaricomsms.com

    Satelindo GSM (from: 15, msg: 160, total: 160)
    Goes to @satelindogsm.com

    SCS-900 (from: 15, msg: 160, total: 160)
    Goes to @scs-900.ru

    Simple Freedom (from: 15, msg: 160, total: 160)
    Goes to @text.simplefreedom.net

    Skytel - Alphanumeric (from: 15, msg: 240, total: 240)
    Enter your 7-digit pin number as your number and your message will be mailed to pin@skytel.com

    Smart Telecom (from: 15, msg: 160, total: 160)
    Enter your phone number. Goes to @mysmart.mymobile.ph

    Smarts GSM (from: 11, msg: 70, total: 70)
    Enter your phone number. Sent via http://www.samara-gsm.ru/scripts/smsgate.exe

    Southern Linc (from: 15, msg: 160, total: 160)
    Enter your 10-digit phone number. Goes to @page.southernlinc.com

    Sprint PCS (from: 15, msg: 160, total: 160)
    Enter your 10-digit phone number. Goes to @messaging.sprintpcs.com

    Sprint PCS - Short Mail (from: 15, msg: 1000, total: 1000)
    Enter your phone number. Goes to @sprintpcs.com

    SunCom (from: 18, msg: 110, total: 110)
    Enter your number. Email will be sent to number@tms.suncom.com.

    SureWest Communications (from: 20, msg: 200, total: 200)
    Enter your phone number. Message will be sent to number@mobile.surewest.com

    SwissCom Mobile (from: 20, msg: 10000, total: 10000)
    Enter your phone number. Message will be sent to number@bluewin.ch

    T-Mobile Germany (from: 15, msg: 160, total: 160)
    Enter your number. Email will be sent to number@T-D1-SMS.de

    T-Mobile Netherlands (from: 15, msg: 160, total: 160)
    Send "EMAIL ON" to 555 from your phone, then enter your number starting with 316. Email will be sent to number@gin.nl

    T-Mobile UK (from: 30, msg: 160, total: 160)
    Messages are sent to number@t-mobile.uk.net

    T-Mobile USA (from: 30, msg: 160, total: 160)
    Messages are sent to number@tmomail.net

    T-Mobile USA (Sidekick) (from: 30, msg: 10000, total: 10000)
    Messages are sent to username@tmail.com

    Tele2 Latvia (from: 20, msg: 160, total: 160)
    10-digit phone number. Goes to number@sms.tele2.lv.

    Telefonica Movistar (from: 20, msg: 120, total: 120)
    10-digit phone number. Goes to number@movistar.net

    Telenor (from: 20, msg: 160, total: 160)
    10-digit phone number. Goes to number@mobilpost.no.

    Telia Denmark (from: 20, msg: 160, total: 160)
    8-digit phone number. Goes to number@gsm1800.telia.dk.

    Telus Mobility (from: 30, msg: 120, total: 120)
    10-digit phone number. Goes to 10digits@msg.telus.com.

    The Phone House (from: 20, msg: 160, total: 160)
    10-digit phone number. Goes to number@sms.phonehouse.de.

    TIM (from: 30, msg: 350, total: 350)
    10-digit phone number. Goes to number@timnet.com.

    UMC (from: 10, msg: 120, total: 120)
    Sent by addressing the message to number@sms.umc.com.ua

    Unicel (from: 10, msg: 120, total: 120)
    Sent by addressing the message to number@utext.com

    US Cellular (from: , msg: 150, total: 150)
    Enter a 10 digit USCC Phone Number. Messages are sent to number@email.uscc.net

    Verizon Wireless (from: 34, msg: 140, total: 140)
    Enter your 10-digit phone number. Messages are sent via email to number@vtext.com.

    Verizon Wireless (formerly Airtouch) (from: 20, msg: 120, total: 120)
    Enter your phone number. Messages are sent to number@airtouchpaging.com. This is ONLY for former AirTouch customers. Verizon Wireless customers should use Verizon Wireless instead.

    Verizon Wireless (myairmail.com) (from: 34, msg: 140, total: 140)
    Enter your phone number. Messages are sent via to number@myairmail.com.

    Vessotel (from: 20, msg: 800, total: 800)
    Enter your phone number. Messages are sent to roumer@pager.irkutsk.ru.

    Virgin Mobile Canada (from: 20, msg: 140, total: 140)
    Enter your phone number. Messages are sent to number@vmobile.ca.

    Virgin Mobile USA (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@vmobl.com.

    Vodafone Italy (from: 20, msg: 132, total: 132)
    Enter your phone number. Messages are sent to number@sms.vodafone.it

    Vodafone Japan (Chuugoku/Western) (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@n.vodafone.ne.jp

    Vodafone Japan (Hokkaido) (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@d.vodafone.ne.jp

    Vodafone Japan (Hokuriko/Central North) (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@r.vodafone.ne.jp

    Vodafone Japan (Kansai/West -- including Osaka) (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@k.vodafone.ne.jp

    Vodafone Japan (Kanto/Koushin/East -- including Tokyo) (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@t.vodafone.ne.jp

    Vodafone Japan (Kyuushu/Okinawa) (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@q.vodafone.ne.jp

    Vodafone Japan (Shikoku) (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@s.vodafone.ne.jp

    Vodafone Japan (Touhoku/Niigata/North) (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@h.vodafone.ne.jp

    Vodafone Japan (Toukai/Central) (from: 20, msg: 160, total: 160)
    Enter your phone number. Messages are sent to number@c.vodafone.ne.jp

    Vodafone Spain (from: 20, msg: 90, total: 90)
    Enter your username. Messages are sent to username@vodafone.es

    Vodafone UK (from: 20, msg: 70, total: 90)
    Enter your username. Messages are sent to username@vodafone.net

    Voicestream (from: 15, msg: 140, total: 140)
    Enter your 10-digit phone number. Message is sent via the email gateway, since they changed their web gateway and we have not gotten it working with the new one yet.

    Weblink Wireless (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to @airmessage.net

    WellCom (from: 20, msg: 160, total: 160)
    Enter your phone number. Goes to @sms.welcome2well.com

    WyndTell (from: 20, msg: 480, total: 500)
    Enter username/phone number. Goes to @wyndtell.com

Sending a gmail from the command line (ubuntu)

I found out about this on the net and thought you might find it useful. I use it to have one of my boxes email my phone whenever it needs to.
apt-get install sendemail

Now to send a message using your gmail account ( this is entered on one line)

sendEmail -f my.account@gmail.com -t myself@domain.tld -u this is the test tile -m “this is a test message” -s smtp.gmail.com -o tls=yes -xu usernameonly -xp mypasswd


*note that the above is all on one line and that the -xu username only is just the username, not the username@gmail.com

The stuff for this post was taken from http://www.debianadmin.com/how-to-sendemail-from-the-command-line-using-a-gmail-account-and-others.html and they have many more examples, I just made it more newbie friendly

Tuesday, June 2, 2009

Once again from Boing Boing.. LHC Explanation

Khaan! -From boing boing

I just thought my family might like this... It is a clip from a 15 minute movie featuring this bit of the movie.