panelarrow

For Myself.

2015年8月21日 星期五

Raspberry Pi 安裝

學習樹莓派--Raspberry Pi

https://sites.google.com/site/raspberypishare0918/home/di-yi-ci-qi-dong/noobs-an-zhuang

安裝Linux系統

https://sites.google.com/site/raspberrypidiy/raspberry-pi/os/cht

Raspberry Pi2 與 Raspbian
http://yehnan.blogspot.tw/2015/02/raspberry-pi-2raspbian.html


2015年8月13日 星期四

2015年8月12日 星期三

20150811_Linux_RedHat_L5

磁碟分割












將USB掛進來虛擬機,使用 Terminal 進行分割動作

#fdisk -l (檢視系統所掛載的磁區)

將USB分割磁區
#fdisk /dev/sdb (USB掛載的地方)

fdisk 分割相關指令如下:
m: 顯示說明
p: 顯示分割區狀態
a: 指定啟動分割區
n: 建立分割區
-> P : Primary 主要分割區
-> E : Extended 延伸分割區

d: 刪除分割區
w: 儲存並寫入分割區配置 (在未執行此指令前,所有修改的分割區配置都還不會生效)



2015年8月11日 星期二

2015年8月6日 星期四

20150806_Linux_RedHat_L4

安裝資料庫 MariaDB
圖形化:軟體
搜尋 "MariaDB"並安裝下列軟體:
-> The MariaDB server and related files
-> The test suite distrbuted with MariaD
-> A commity developed branch of MySQL
-> MariaDB benchmark scripts and data
-> Files for development of MariaDB/MySQL applications

-----------------------------
開啟 Terminal
# systemctl enable mariadb.service
# systemctl start maiadb.service
# mysql -u root -p
-> 沒有密碼直接按Enter
-----------------------------
到網路上下載 "phpMyAdmin",下載 tar.gz 檔
-----------------------------
php
可參考這個網址:
http://www.phpini.com/linux/redhat-centos-7-setup-apache-mariadb-php
圖形化:軟體
搜尋 "php"
-> php scripting
-> command-line
-> A module for PHP
->  Standard PHP module
-> A module for PHP
-> A database ...

-----------------------------
httpd
# systemctl restart httpd.service
# cd /var/www/html
-> 把 phpAdmin.....tar.gz 放到 /var/www/html
     資料夾名稱改為 phpAdmin
-> 開啟瀏覽器搜尋“localhost/phpAdmin”
-----------------------------
php-mbstring
瀏覽器搜尋
php mbstring centos 7 rpm
網址:
http://rpm.pbone.net/index.php3/stat/4/idpl/26646085/dir/centos_7/com/php-mbstring-5.4.16-21.el7.x86_64.rpm.html
軟體下載網址:
ftp://bo.mirror.garr.it/pub/1/slc/centos/7.0.1406/os/x86_64/Packages/php-mbstring-5.4.16-21.el7.x86_64.rpm
安裝完畢重啟服務
# systemctl restart httpd.service
-----------------------------
接下來
# cd /var/www/html/phpAdmin
-> # mv config.sample.inc.php config.inc.php
-> # vim config.inc.php
    ->搜尋“blowfish-secret" -> 'blowfish-secret' = 'abcde'
    ->搜尋“AllowNoPassword" -> 'AllowPassword' = 'true'
-----------------------------
改完後到 phpAdmin網頁,並登入
ID :  root
PW:空白

登入後

修改密碼 -> 改自己的密碼 -> 執行
使用者 -> 打勾“任意”X3 -> 刪除 -> 執行
密碼為"否" -> 編輯 -> 修改密碼 (會有三個)

-----------------------------
瀏覽器搜尋"drupal"
下載 "Drupal 7.3.6" & "中文化 7.3.6" (兩個版本要一樣,皆下載7.3.6)
網址:
Drupal 7.3.6 :
  http://ftp.drupal.org/files/projects/drupal-7.38.tar.gz

中文化 7.3.6 :
  http://ftp.drupal.org/files/translations/7.x/drupal/drupal-7.38.zh-hant.po
下載完後
# cp drupal-7.38.tar.gz drupal-7.38.zh-hant.po /var/www/html
# tar avxf drupal-7.38.tar.gz
# cd drupal-7.38
# cp -r * ../
# cp ../drupal-7.38.zh-hant.po ../profiles/standard/translations/

# restorecon -R /var/www/html
-----------------------------
瀏覽器搜尋"localhost"
-> 重新整理
-> Save and Continue
-> 選擇“中文”-> Save and Continue

安裝缺乏的檔案
# yum search dom
# yum install php-theseer-fDOMDocument.noarch -y
# mkdir /var/www/html/sites/default/files
# chown apache.apache /var/www/html/sites/default/files
# cd /var/www/html/sites/default/
# cp default.settings.php settings.php
# chown apache.apache settings.php

# restorecon -R /var/www/html
# systemctl restart httpd
瀏覽器重新整理,到 phpAdmin 網頁
-> 資料庫 -> 新增 -> drupal, utf-8 -> 建立
-> 使用者 -> 新增使用者 -> drupal -> 本機, localhost -> passwd -> 執行 -> 使用者 -> drupal 編輯權限 -> 全選 -> 執行

回到 drupal 網頁
-> 名稱:drupla -> 資料庫:drupal -> passwd -> 網站名稱(自行)-> e-mail(亂取: test@gmail.com)-> 使用者:admin -> 國家:Taiwan -> Save and Continue







2015年8月5日 星期三

DB

Oracle資料庫
https://zh.wikipedia.org/wiki/Oracle%E6%95%B0%E6%8D%AE%E5%BA%93

Oracle Database 12c 特色
http://www.codedata.com.tw/database/oracle-database-12c-new-features-1/

CentOS and RHEL7 : install Linux, Apache, MariaDB, PHP(LAMP) Stack
http://www.cyberciti.biz/faq/howto-install-linux-apache-mariadb-php-lamp-stack-on-centos7-rhel7/

資料庫管理
https://zh.wikipedia.org/zh-tw/%E6%95%B0%E6%8D%AE%E5%BA%93%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F

轉貼:為什麼好的Oracle DBA 那麼難找?
https://seanhhlee.wordpress.com/2008/11/12/%E8%BD%89%E8%B2%BC%EF%BC%9A%E7%82%BA%E4%BB%80%E9%BA%BC%E5%A5%BD%E7%9A%84oracle-dba%E9%82%A3%E9%BA%BC%E9%9B%A3%E6%89%BE%EF%BC%9F/

[研究] 甲骨文 Oracle Database 11g Release 2 (11.2.0.1.0) for Windows (x64) 與 SQL Developer 安裝研究

http://shaurong.blogspot.tw/2013/11/oracle-database-11gr2-for-windows-x64.html


RedHat Openshift

Openshift 教學
網址: https://sofree.cc/openshift-teach-1/

http://www.minwt.com/free/11085.html

GHOST WITH OPENSHIFT + NODE.JS + SQLITE

網址: http://zengpx.noicehalfsugar.tw/2013/12/26/ghost-with-openshift-node-js-sqlite/

  • 轉貼:SQLite使用教學

網址:http://gisanfu.pixnet.net/blog/post/7941810-%E8%BD%89%E8%B2%BC%EF%BC%9Asqlite%E4%BD%BF%E7%94%A8%E6%95%99%E5%AD%B8

2015年8月4日 星期二

20150804_Linux_RedHat_L3

1.架設ftp server
# cd /etc/yum.repos.d/
#vi RHEL7.repo
  [RHEL70]
  name=RHEL7
  baseurl=ftp://localhost/pub
  enable=1
  gpgcheck=0

#systemctl enable vsftpd.service
#restorecon -R /var/ftp/pub
#firewall -cmd --permanent --add-service=ftp
#systemctl restart vsftpd.service <- 重新啟動服務
#systemctl status vsftpd.service  <- 檢查服務是否有啟動

另外用圖形化軟體安裝界面安裝下列檔案:
i.  system-config-firewall base components and command line tool
ii. A graphical interface for modifying the system language
iii. A graphical interface for administering users and groups


2.安裝EPEL(免費套件)
網址: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
下載完並安裝
#yum install -y epel-release-latest-7.noarch.rpm
安裝完可到下列資料夾檢查
#cd /etc/yum.repos.d/

會多出此檔案
epel.repo

檢查
#yum search xfreerdp -> 搜尋有沒有 xfreerdp (遠端登入)
#yum install xfreerdp -y

執行遠端登入:
xfreerdp -g 800X600 IP位址 <- for linux
xfreerdp -g 800X600 -u 帳號 IP位址 <- for windows


3.手動設定網路(半圖形介面)
#nmtui-edit

4.設定 rdp server
網址:http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html#axzz3hqxIgxc3

# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
(以下未完成)
# yum -y install xrdp tigervnc-server
# systemctl enable xrdp.service
# systemctl start xrdp.service

圖形化設定防火牆
防火牆 -> 永久 -> Public -> 連接土阜 -> 加入 3389 tcp

5. 格式化格式
Windows
FAT -> 2G
FAT32 -> 4g
NTFS -> 16T
Linux
ext4 -> 16T
xfs

Pages

技術提供:Blogger.

Copyright © Joshua's Linux | Powered by Blogger
Design by AnarielDesign | Blogger Theme by NewBloggerThemes.com