發表文章

RHEL 7 yum repository 安裝 Apache + PHP 網站服務

圖片
自從 RHEL 7 Release 之後,要測試及安裝軟體都變得很麻煩,剛剛就自己重製了一份 yum 的儲存庫來使用,至少在 CENTOS 7 正式版 出來前先這樣撐著用巴。 建立方式可以參考 之前的 RHEL5 的作法 ,到 7 版方式雷同。 請到你的 /etc/yum.repos.d/ 目錄下,建立一個 local.repo 檔案。 [root@localhost yum.repos.d]# pwd /etc/yum.repos.d  [root@localhost yum.repos.d]# nano local.repo [rhel7-server] name = rhel7 server DVD 64bit baseurl = http://mt.jangmt.com/rhel7/RHEL-7.0Server.x86_64/ enabled = 1 gpgcheck = 0  [rhel7-support] name = rhel7 support DVD 64bit baseurl = http://mt.jangmt.com/rhel7/Supp-7.0RHEL-7Server.x86_64/ enabled = 1 gpgcheck = 0 裝好後安裝個 apache + PHP 服務在 RHEL7 上面巴。 因為 CENTOS7 已經正式出現了,所以可以直接使用 CENTOS7 的 REPO 當作系統的軟體來源: 目前系統 CentOS 7 的主要 REPO 檔案如下: [root@mtchang yum.repos.d]# cat /etc/yum.repos.d/CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client.  You should use thi...

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  凱道「新五四運動」 警方估有萬人參與

自己的國寶自己救,地方的石虎需要大家的關心

圖片
因為工作的關係,常常需要把繪製的管路轉接圖面用紙張轉換檢查是否有繪製錯誤,就有想到是否可以用這樣一系列的紙張,做出有趣的東西。 用 paper models 或 紙模型 可以找到很多免費的資訊,但是一個好的紙模型,需要花時間設計及尋找...尤其要給小孩子練習的紙模型。 底下是從網路上找到的石虎紙模型,同時也要告訴大家地方的石虎需要大家的關心。 https://www.facebook.com/pepasweet/posts/319561984863110?stream_ref=10 https://www.facebook.com/pepasweet/posts/319561984863110?stream_ref=10 原始檔案下載: 紙漫糖

高雄市可以免費領取苗木的地方:楠梓苗圃及深水苗圃

圖片
楠梓苗圃是高雄市政府養工處的在楠梓少年地方法院後面,離高雄市區很近是很方便的地方。及深水苗圃是高雄市農業局的,剛好在高師大燕巢校區的後方,看起來有點小遠。 楠梓苗圃可以個人身份證領三株苗木,每三個月可以領用一次。底下為其說明: 高雄市政府工務局養護工程處 楠梓苗圃苗木申領作業需知 一. 領苗流程: (一)一般民眾申請(限高雄市民): 憑身份證正本申請,現場填寫申請書,每張身份證可提領3株苗木,每次提領不限1張身份證,3個月限領1次。 (二)單位機關申請正式函文申請: 1.函文內容請述明:申請單位、發文日期、聯絡電話、地址、苗木種類、數量、申領苗木用途等其他事項。 2.本處審核並函覆核撥數量。 3.持函提領苗木。 二. 提領時間:上午8:30~11:30 下午2:00~5:00 例假日(星期六、日)及國定假日休息不開放。 三. 聯絡電話:07-3550524 陳秀麗班長 四. 提領地點:楠梓苗圃(楠梓區興楠路左轉)常德路與常興街交叉路口 楠梓苗圃的地點沒有明顯的指標(位於高雄市楠梓區常德路與常興街交叉路口),詳細請參考底下地圖: 顯示詳細地圖 門口的領用須知 門口的規定 領用登記區,剛好遇到幼稚園整團帶來戶外交學兼拿樹苗。 如果要到深水苗圃領苗木請見他的網站說明,兩個地點其實有順路.... http://agri2.kcg.gov.tw/deepwater/indexa4c1.html?pn=tview&id=v644yyh454gl 個人憑身份證,每人以5株以內為限(每年限申請一次) ... 在較大的地圖上查看 深水苗圃

將Windows 8 安裝傳統選單工具列(Classic Shell)

圖片
名稱:Classic Shell 用途:可以讓 windows 8 及 windows 8.1 擁有傳統的選單 下載: http://www.classicshell.net/downloads/ 心得:他有 opensource 並放在 sf.net 所以我才推薦。且用起來還不錯,品質可以接受。 Classic Start