Blog

  • enable NOPASSWD for yourself

    I have some bash scripts which I manually run a lot and they need to run with sudo. I also don’t want to be prompted for any password. Here is the solution.

    1. Edit the /etc/sudoers:

      [code language=”bash”]$ sudo vi /etc/sudoers[/code]

    2. Add a new entry at the last (USERNAME is your account name).

      [code language=”text” firstline=”18″ highlight=”26″]
      # User privilege specification
      root ALL=(ALL:ALL) ALL

      # Members of the admin group may gain root privileges
      %admin ALL=(ALL) ALL

      # Allow members of group sudo to execute any command
      %sudo ALL=(ALL:ALL) ALL
      USERNAME ALL=(ALL:ALL) NOPASSWD:ALL

      # See sudoers(5) for more information on "#include" directives:

      #includedir /etc/sudoers.d
      [/code]

    3. Restart the sudo service.

      [code language=”bash”]$ sudo service sudo restart[/code]

    4. Logout then login again. You won’t be prompted for the password anymore.
  • Trance

    中文片名:索命記憶
    IMDb: Trance (I) (2013)

    前面五十分鐘的節奏頗慢,埋一堆東西為了營造後面一一揭露時「啊!原來是這樣」的感覺…為什麼會這樣想呢?因為我推理小說和柯南都看得很少啦~

    片中有 Rosario Dawson 裸露鏡頭呢,科科…

  • 總舖師

    英文片名:Zone Pro Site
    IMDb: Zone Pro Site (2013)

    中秋颱風天,中午拜拜沒有明顯風雨,燒金紙時都快熱掛。忙完跑去板橋秀泰本想看個四點半場,最後決定看六點場。窩在誠品新生活著看著外頭風大雨大,慶幸著還好有人行天橋可以擋個雨。

    這部電影很有趣很好笑啊!坐隔壁的老爹也跟著不錯的橋段笑得很開心啊!

    板橋秀泰的影廳不大,椅子夠舒服,音響也不錯。離家裡很近,出門搭捷運到電影院售票處大約十五分鐘,而西門町要廿分鐘左右(噗)。麗寶百貨廣場今年才剛開始營運,樓層櫃位不算多,不過在賣衣服旁邊賣滷味是哪種規劃啊?半個樓層都是滷味的味道…XDDD 看完電影還在一樓順便帶了雙鞋子回家。

  • The Host

    中文片名:宿主
    IMDb: The Host (2013)

    故事背景是外星生物已經進化到可以將靈魂實體化為章魚(!?)型態,並且植入後可以替代原生物體的靈魂之類的時代。大概是這類高度進化的物種每每都是過於理性的關係,遇到人類這種低度進化還有一堆感性情愛等等運作方式的物種,故事就會開始有趣。只能說外星人殖民前沒有好好做功課啊~(茶)

  • Pee Mak

    中文片名:淒厲人妻
    IMDb: Pee Mak Phrakanong (2013)

    這麼炎熱的夏日躲在室內觀賞好笑的電影真是爽快!泰語翻譯的台詞也好好笑!完全都不恐怖的搞笑片。