發表文章

目前顯示的是 5月, 2014的文章

Linux 不用超級使用者的掛載(mount)方式(The non-superuser mounts.)

Linux 不用超級使用者的掛載(mount)方式(The non-superuser mounts.) 正常再 LINUX 內只有超級使用者可以掛載檔案系統,如果要讓一般使用者掛載某個檔案,只需要再 fstab 的參數加入 user 這個選項一般使用者就可以使用一般使用者的權限掛載檔案系統。 mtchang@mtchang-BM6660-BM6360:~$ cat /etc/fstab # /etc/fstab: static file system information. # that works even if disks are added and removed. See fstab(5). # <file system> <mount point>   <type>  <options>        <dump>  <pass> UUID=9c55a017-2ecc-46f2-853c-c43215884821 /home/mtchang/3gbhd        ext4    defaults ,user     0    0 詳細請見 man 5 fstab       The fourth field (fs_mntops).               This field describes the mount options associated with the filesystem.               It  is  formatted as a co...

linux 文字命令列的 youtube-dl

WALALA.....為何有這個指令被收錄在 ubuntu 和 rhel EPEL 的套件內勒!!! 安裝 youtube-dl 工具 mtchang@ ~$ sudo apt-get install youtube-dl [sudo] password for mtchang: Reading package lists... Done Building dependency tree       Reading state information... Done The following extra packages will be installed:   libav-tools libavdevice53 libavfilter3 libbs2b0 libgif4 libquvi-scripts libquvi7 libvdpau1   mplayer2 rtmpdump Suggested packages:   frei0r-plugins nvidia-vdpau-driver vdpau-driver ffmpeg mplayer The following NEW packages will be installed:   libav-tools libavdevice53 libavfilter3 libbs2b0 libgif4 libquvi-scripts libquvi7 libvdpau1   mplayer2 rtmpdump youtube-dl 0 upgraded, 11 newly installed, 0 to remove and 36 not upgraded. Need to get 4,766 kB of archives. After this operation, 14.3 MB of additional disk space will be used. Do you want to continue? [Y/n] y 執行擷取某個影音檔 mtchang@~/Videos$ youtube-dl http://www.youtube.com/watch?v=iV8JDbtXZm4 [...

某個 54 運動 ?? 的所佔面積

圖片
今天某個 54 運動 ?? 的所佔面積計算,剛剛用 google map 和 autocad 小算了一下,看起來照片中的區塊為 3751 平方公尺,至於每平方公尺要乘以多少人.,請大家參考底下的圖片心算一下巴。 圖片參考: http://www.ptt.cc/bbs/Gossiping/M.1399200500.A.C40.html   延伸閱讀: http://newtalk.tw/news/2014/05/04/46931.html  凱道「新五四運動」 警方估有萬人參與