2015年12月2日 星期三

How to install and start to SSH Server on Fedora Linux

SSH server may not be installed by default on your Fedora Linux box. Therefore, any attempt to connect to your box via ssh my result in:
ssh: connect to host HOST/IP port 22: Connection refused
Error message. In order to be able to connect to our FEDORA linux box using ssh we first need to install it usingyum command.
# yum install openssh-server

Once we have our SSH server installed we need to start it up:
# systemctl start sshd

Reference: http://linuxconfig.org/how-to-install-start-and-connect-to-ssh-server-on-fedora-linux












2015年10月29日 星期四

Headphone jack not working?(CentOS 7-1503)


There was no sound when I plugged in my headphones.

The workaround was to edit /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf.
=======================================================
#cd /usr/share/pulseaudio/alsa-mixer/paths/ 
#cp analog-output-headphones.conf analog-output-headphones.bak
#vim analog-output-headphones.conf

=======================================================


Look for the section called [Element Speaker] and change it so that it looks like this:
=======================================================
[Element Speaker]
switch = on
volume = ignore

=======================================================

reboot

2015年10月15日 星期四

How to access to both the free and the nonfree repository use the following command(Fedora 14)

http://rpmfusion.org/Configuration/

Fedora 14 to the most current:
su -c 'yum install --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'

2015年10月2日 星期五

How to install firmware package for wireless and bluetooth card (Debian)

Question: Sometime not find  Wireless and Bluetooth firmware, error message following:
firmware: failed to load rtlwifi/rtl8821aefw.bin (-2) => wireless issue
firmware: failed to load ar3k/AthrBT_0x11020000.dfu (-2) => bluetooth issue


1) Add "non-free" to /etc/apt/sources.list
deb http://ftp.debian.org/debian/ jessie main non-free
deb-src http://ftp.debian.org/debian/ jessie main non-free

deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free


2) update
# apt-get update

3) search keyword "firmware-" package
# apt-cache search firmware-

dns323-firmware-tools - build and manipulate firmware images for a range of NAS devices
expeyes-firmware-dev - hardware & software framework for developing science experiments
firmware-linux-free - Binary firmware for various drivers in the Linux kernel
grub-firmware-qemu - GRUB firmware image for QEMU
linux-wlan-ng - utilities for wireless prism2 cards
sigrok-firmware-fx2lafw - Firmware for Cypress FX2(LP) based logic analyzers
dahdi-firmware-nonfree - DAHDI non-free firmware
firmware-crystalhd - Crystal HD Video Decoder (firmware)
firmware-adi - Binary firmware for Analog Devices Inc. DSL modem chips
firmware-atheros - Binary firmware for Atheros wireless cards
firmware-bnx2 - Binary firmware for Broadcom NetXtremeII
firmware-bnx2x - Binary firmware for Broadcom NetXtreme II 10Gb
firmware-brcm80211 - Binary firmware for Broadcom 802.11 wireless cards
firmware-intelwimax - Binary firmware for Intel WiMAX Connection
firmware-ipw2x00 - Binary firmware for Intel Pro Wireless 2100, 2200 and 2915
firmware-ivtv - Binary firmware for iTVC15-family MPEG codecs (ivtv and pvrusb2 drivers)
firmware-iwlwifi - Binary firmware for Intel Wireless cards
firmware-libertas - Binary firmware for Marvell Libertas 8xxx wireless cards
firmware-linux - Binary firmware for various drivers in the Linux kernel (meta-package)
firmware-linux-nonfree - Binary firmware for various drivers in the Linux kernel
firmware-myricom - Binary firmware for Myri-10G Ethernet adapters
firmware-netxen - Binary firmware for QLogic Intelligent Ethernet (3000 and 3100 Series)
firmware-qlogic - Binary firmware for QLogic IBA7220, QLA1xxx, ISP2xxx and SP2x2
firmware-ralink - Binary firmware for Ralink wireless cards
firmware-realtek - Binary firmware for Realtek wired and wireless network adapters
firmware-samsung - Binary firmware for Samsung MFC video codecs
firmware-ti-connectivity - Binary firmware for TI Connectivity wireless network adapters
libertas-firmware - Firmware for Marvell's libertas wireless chip series (dummy package)
firmware-zd1211 - binary firmware for the zd1211rw wireless driver
zd1211-firmware - transitional dummy package for firmware-zd1211

4) install firmware package
# apt-get install firmware-realtek firmware-atheros

5) reboot



2015年10月1日 星期四

How to Bluetooth Headset to work on Debian (A2DP)

1) Install the following packages
apt-get install gnome-bluetooth pulseaudio pulseaudio-module-bluetooth pavucontrol blueman bluetooth bluez 

2) Create the file ~/.asoundrc
pcm.!default plug:pulse 
pcm.pulse { 
type pulse 


3) Edit /etc/default/bluetooth to enable the following 
#HID2HCI_ENABLED=0
#HID2HCI_UNDO=0
HID2HCI_ENABLED=1 
HID2HCI_UNDO=1 

4) Reboot

5) You can check audio setting it created Headset device.

2015年3月20日 星期五

關閉 Adobe Flash 沙盒,避免Chrome & FireFox 瀏覽器, Shockware Flash Crash

關閉 Adobe Flash 沙盒,避免 Shockware Flash Crash

 
一、先找到mms.cfg文件

Windows 32位系統:C:\windows\system32\macromed\flash\mms.cfg
Windows 64位系統:C:\windows\syswow64\macromed\flash\mms.cfg


二、用 notepad++ 之類文書軟體打開它:

在最後面加入紅色字這一行:
SilentAutoUpdateEnable=1
AutoUpdateDisable=0
ProtectedMode=0

然後重新啟動即可

2015年1月5日 星期一

HTC M7/M8 官方解鎖 Unlock 及 Root

****注意: 成功unlock, 會失去保固, 重啟會資料清除, 回復原廠預設, 請先備份資料***

成功Unlock及Root的版本及電腦環境如下:
M7 Android  Version: 4.4.3
M8 Android  Version: 4.4.4
Windows 8.1

A. 首先手機必須官方 unlock
  1. 下載 HTC Sync Manager 並安裝
      官方載點: http://www.htc.com/tw/support/software/htc-sync-manager.aspx

  2. 註冊htcDev會員(http://www.htcdev.com/)並登入

  3. 選擇右下角"Unlock Bootloader"圖示, 接著 "Get Started"


 
  4. 選擇"手機型號", 接著 "Begin Unlock Bootloader"
選擇 "Yes"
 二個選項打勾"V", "Proceed to Unlock Instructions"
  
   5. 將手機"重新啟動", 當重啟畫面關閉時, 馬上按住"音量-", 就會進入Bootloader模式
   手機進入bootloader模式,並將手機和電腦連結, 按電源鍵選擇FASTBOOT, 如果連接     電腦成功, 手機FASTBOOT狀態會變成FASTBOOT USB狀態


   
   6. 下載 fastboot tools, 點選 "Proceed To Step 5"


   
   官方只有fastboot.exe, 其他要自行下載安裝, 這邊提供完整的tool
   https://www.asuswebstorage.com/navigate/s/AFC4352D62F04C0687680FC329379266Y
      這邊將fastboot tools解壓縮到 C:\Temp

  7. 開啟電腦下的"命令提示字元",
   指令部份:
   cd \Temp\fastboot
   fastboot oem get_identifier_token
    
   將下面反白的地方複製下來

   貼到 htcDev 網頁, 點選 "Submit", HTC 會寄 Unlock_code.bin到註冊的信箱

   將 Unlock_code.bin 放到 fastboot 資料夾裡, 並執行下面指令
   指令部份:
   fastboot flash unlocktoken Unlock_code.bin 

   成功訊息如下:

   進入Bootloader, 原本*** LOCKED ***, 變成 *** UNLOCKED ***

B. root權限: 原廠 recovery 無法root, 必須刷第三方 recovery, 這邊使用twrp recovery
   軟體載點如下:
   M8 twrp recovery:
https://www.asuswebstorage.com/navigate/s/AD6FFD62828D4A1883ED064D8616DD28Y
   M7 twrp recovery: 
https://www.asuswebstorage.com/navigate/s/99F4501165A747F2BC5051DDCDEB3864Y
   BETA-SuperSU-v2.42.zip 超級使用者程式(M7和M8都適用):
https://www.asuswebstorage.com/navigate/s/2E941293CC2444C19EC2DC8BFA78782FY   


   1. unlock後, 重啟手機會回覆成原廠預設, 請
   BETA-SuperSU-v2.42.zip, 放入手機內存(不要放到SD卡)
   M7: openrecovery-twrp-2.7.1.1-m7.img, 放到fastboot tool資料夾
   M8: openrecovery-twrp-2.8.3.0-m8.img, 放到fastboot tool資料夾

   2. 進入Bootloader, 手機連結電腦, FASTBOOT USB狀態,執行下面指令
   fastboot erase cache
   fastboot flash recovery openrecovery-twrp-2.7.1.1-m7.img


   3. 拔掉傳輸線, 進入bootloader -> 選擇 recovery, 就會進入twrp recovery畫面

   4. 點選 "Install", 選擇  BETA-SuperSU-v2.42.zip 位置, 點選
    "Swipe to Confirm Flash",開始安裝 Successful 後, 按下 "Reboot System" 重啟
    就能在桌面上看到SuperSU




Unlock 教學參考: http://walker-a.com/archives/2063
Root 教學參考: http://www.tshopping.com.tw/thread-237120-1-1.html