2019年3月7日 星期四

Win10 1709版連不上NAS或網芳

Win10 1709版連不上NAS或網芳?

Win10為了安全性關閉 SMB v1.0 (勒索病毒wanna cry入侵的方式之一)
檔案總管->網路->看不到其他分享裝置
若印表機本機分享、NAS服務仍用SMB v1.0或網路芳鄰有需求,可重啟SMB v1.0服務

1.控制台-> "程式和功能" -> "開啟或關閉Windows 功能"
展開 SMB 1.0/CIFS 檔案共用支援
勾選"SMB 1.0/CIFS 用戶端"
如有需要勾選"SMB 1.0/CIFS 伺服器"(印表機本機分享或檔案分享)
重啟電腦即可連通網路芳鄰

2.把SMB改回1.0版還是無法開啟時,更改登錄檔「Guest access in SMB2 disabled by default」。
regedit:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters] => 修改或新增“AllowInsecureGuestAuth” = 1 (DWORD)

利用WIndows PowerShell(系統管理員)檢視是否開啟
指令:Get-SmbServerConfiguration
 
PS C:\Windows\system32> Get-SmbServerConfiguration

AnnounceComment                 :
AnnounceServer                  : False
AsynchronousCredits             : 64
AuditSmb1Access                 : False
AutoDisconnectTimeout           : 15
AutoShareServer                 : True
AutoShareWorkstation            : True
CachedOpenLimit                 : 10
DurableHandleV2TimeoutInSeconds : 180
EnableAuthenticateUserSharing   : False
EnableDownlevelTimewarp         : False
EnableForcedLogoff              : True
EnableLeasing                   : True
EnableMultiChannel              : True
EnableOplocks                   : True
EnableSecuritySignature         : False
EnableSMB1Protocol              : True
EnableSMB2Protocol              : True
EnableStrictNameChecking        : True
EncryptData                     : False
IrpStackSize                    : 15
KeepAliveTime                   : 2
MaxChannelPerSession            : 32
MaxMpxCount                     : 50
MaxSessionPerConnection         : 16384
MaxThreadsPerQueue              : 20
MaxWorkItems                    : 1
NullSessionPipes                :
NullSessionShares               :
OplockBreakWait                 : 35
PendingClientTimeoutInSeconds   : 120
RejectUnencryptedAccess         : True
RequireSecuritySignature        : False
ServerHidden                    : True
Smb2CreditsMax                  : 2048
Smb2CreditsMin                  : 128
SmbServerNameHardeningLevel     : 0
TreatHostAsStableStorage        : False
ValidateAliasNotCircular        : True
ValidateShareScope              : True
ValidateShareScopeNotAliased    : True
ValidateTargetName              : True



PS C:\Windows\system32>

2014年10月5日 星期日

Ubuntu 狀態列輸入法圖標不見

Ubuntu 狀態列輸入法圖標不見
開啟終端機
Fcitx:
pkill fcitx && fcitx -d

ibus:
killall ibus-daemon
ibus-daemon -d

2014年9月18日 星期四

把 /boot 掛載在獨立的分割區





安裝 Ubuntu 沒有把 /boot 單獨 掛載在 一個 獨立的分割區 經驗 的 網友
理解 UEFI/GPT 好像 少了一點 想像

其實 在 安裝 傳統的 Grub 2 時
Grub 2 的 研發者 就建議
把 /boot 掛載在 一個 獨立的分割區
這樣才不會 因爲 頻繁的 Linux-Kernel 升級
把 /boot 檔案系統 破壞了
影響 開機

UEFI/GPT 可以想像成 上面說法的 更進一步 實作

不同的是
1. 分割 使用 GPT 非 MBR
2. 把掛載的 /boot 目錄 改爲 /boot/efi 掛載在 EFI partition # 最好是 第一個分割區
3. 如果你 安裝 Windows 8, Ubuntu 在 同一臺 電腦
Windows 8 的開機檔案 可以放在 /boot/efi/windows/ 目錄內 # windows 的目錄名稱 可以改變
Ubuntu 的 開機檔案 可以放在 /boot/efi/ubuntu/ 目錄內 # ubuntu 的目錄名稱可以改變
4. 所以 如果你想 多重開機 在 UEFI
那麼 EFI partition 不要太小 200 MB ~ 500 MB 預留空間


對於在新的Windows 8 筆電上加灌Ubuntu(Ubuntu + Windows 8多重開機, 由Ubuntu開機)我們「目前」的SOP(standard operating procedure)如下:

1. 先開機到Windows 8,將Windows 8 的分割區的size減少到 ~100GB
2. Reboot,到set-up,把secure boot 關掉(不要enable CSM)
3. 把 「64-bit Ubuntu 12.10」 LiveUSB 插入USB槽,從USB重新開機
4. 在EUFI裝Ubuntu 12.10 (64-bit)的程序跟以前(BIOS時代)幾乎完全相同,唯一不同點就是UEFI/GPT可以有大於4個(primary)分割區,因此不必像以前一 樣,如果要做Windows + Linux(es) multiple-boot 時常常必須把第四個分割區變成logical partitions。

Grub 2 over UEFI 專題[論壇- Ubuntu安裝問題] | Ubuntu 正體中文站

硬碟多重開機與BootLoader - 餃子海盜股份有限公司 - Google Sites

 

USB格式化選擇

考量傳輸速度:選擇FAT32, 16K
傳輸限制:單檔4G以下

NTFS效能不佳
exFAT也ok,但exFAT是較新的檔案格式, Windows 7版本以上才有預設支援

寫入
$ cat xxx.iso | pv -abt -B 0 > /media/C094-CB73/test1.data

讀取
$ cat /media/teacher/C094-CB73/ISO/esteaU-1024.iso | pv -abt > ./testa.data



Dos Command
  • 隨身碟代號 R
  • Format R: /FS:FAT32 /A:8192 ( 將 R: 格式化為 FAT32, 配置單位大小為8K )
  • Format R: /FS:NTFS /A:64K ( 將 R: 格式化為 NTFS, 配置單位大小為64K )
  • Format R: /FS:exFAT /A:64K ( 將 R: 格式化為 exFAT, 配置單位大小為64K )


資料來源:

平凡: 隨身碟的檔案系統與速度比較

2014年9月17日 星期三

Ubuntu忘記管理員密碼

以Ubuntu14.0為例
1. 開機進入grub選單
2. 點選Advanced Options for Ubuntu
3. 選擇recovery mode的選項(勿按「Enter」),按鍵盤「e」進入編輯
4. 將游標移至倒數第4行...ro recovery \nomodeset...
5. 刪除 recovery \nomodeset
6. 將游標移至此行最後加入 quiet splash rw init=/bin/bash
7. 按「Ctrl+x」或「F10」啟動
8. 畫面進入終端機取得 root 權限
9. 利用passwd重設管理員密碼: passwd 管理員帳號

紅米ADB Driver

紅米的Driver
記錄一下

解決紅米adb devices出現offline,新版adb(支援Android 4.2.2)下載

http://lyhpcha.blogspot.com/2014/01/adb-devicesofflineadbandroid-422.html

調整紅米的耳機音量

韌體原為3.0已升為5.0

1. 進工程模式(撥號界面輸入 *#*#13411#*#*)
2. Hardware Testing -> Audio -> Headset Mode -> Type 選 Media


原始設定:
Level 0 --- 144
Level 1 --- 160
Level 2 --- 176
Level 3 --- 192
Level 4 --- 208
Level 5 --- 224
Level 6 --- 240

Max Vol --- 160

個人設定:
Level 0 --- 72
Level 1 --- 100
Level 2 --- 128
Level 3 --- 156
Level 4 --- 184
Level 5 --- 212
Level 6 --- 240

Max Vol --- 160
資料來源:
http://www.mobile01.com/topicdetail.php?f=634&t=3686608&r=2&last=47719408
1. 撥號界面輸入 *#*#13411#*#* 進工程模式 (或安裝"移動叔叔MTK工具箱"也可進工程模式, Play商店可找到)
2. Hardware Testing -> Audio -> Headset Mode
3. Type 選 Media, 更改各level的value, Max Vol維持160不要動

以下是小弟調整過的值; 若覺得最小音量仍太大, 可把level 0 改小一點如 80, 72..

Level 0 --- 96
Level 1 --- 136
Level 2 --- 160
Level 3 --- 184
Level 4 --- 208
Level 5 --- 224
Level 6 --- 240

紅米調音量共有14段, 段與Level的Mapping如下表

0 - 無聲
1 - Level 0
2 -
3 - Level 1
4 -
5 - Level 2
6 -
7 - Level 3
8 -
9 - Level 4
10 -
11 - Level 5
12 -
13 - Level 6

沒有map到的段數就是取內差, 例如第2段就是 Level 0 與 Level 1的平均, 了解mapping之後, 你就可以按照自己的需要調整

參考資料 http://www.miui.com/thread-1519452-1-1.html


補充1:若要更改收音機的音量, 在步驟3的Type需選FMR

補充2:韌體2.0及3.0版原始出廠值

Level 0 --- 144
Level 1 --- 160
Level 2 --- 176
Level 3 --- 192
Level 4 --- 208
Level 5 --- 224
Level 6 --- 240

補充3:韌體5.0版原始出廠值

Level 0 --- 160
Level 1 --- 176
Level 2 --- 192
Level 3 --- 208
Level 4 --- 224
Level 5 --- 240
Level 6 --- 255

Max Vol --- 112


補充4:Max Vol是何物?

Max Vol指的是Analog gain, Level指的是Digital gain; 一般在調校時, 都會先增加Analog gain, 一直增加到發生失真前為止, 之後再調整Digital gain; 韌體2.0及3.0的Analog gain是最大值(160); 韌體5.0把Analog gain降到112, 似乎暗示把Analog gain調到最大會有失真; 因此若對音質有要求的網友, 建議Max Vol維持112, 用調整level(Digital gain)的方式來調整音量

2014年5月28日 星期三

清除本機DNS Cache的方法

一、Windows:

ipconfig /flushdns

二、Mac OS X
10.5以上版本請輸入:sudo dscacheutil -flushcache
不到10.5版本請輸入:lookupd -flushcache


三、Linux
/etc/rc.d/init.d/nscd restart
sudo /etc/init.d/nscd restart

安裝nscd
sudo aptitude install nscd

立即解決DNS更新連不到網站的問題

資料來源:
http://help.url.com.tw/index.php?title=%E7%AB%8B%E5%8D%B3%E8%A7%A3%E6%B1%BADNS%E6%9B%B4%E6%96%B0%E9%80%A3%E4%B8%8D%E5%88%B0%E7%B6%B2%E7%AB%99%E7%9A%84%E5%95%8F%E9%A1%8C

清空 DNS Cache - Server (bind) & Client (windows)

http://blog.xuite.net/tolarku/blog/65644952-%E6%B8%85%E7%A9%BA+DNS+Cache+-+Server+%28bind%29+%26+Client+%28windows%29

 

2014年2月15日 星期六

紅米機 簡轉繁字體

之前一直找mtz的匯入方法

以字型為例 :
1. 進主題風格
2. 點選"我的"標籤
3. 按左下方實體功能鍵
4. 點選從sd卡匯入下載的檔案(*.mtz)
5. 再到"分類"標籤點選「混搭」
6. 點選「字體」選擇匯入的字體
7. 重新開機即可

PS.解決了 Line Andriod Weather 版簡體字的問題

資料來源:
紅米原版中文字體簡轉繁

上面連結好像失效
紅米簡轉繁.mtz


2014年1月13日 星期一

Ubuntu 更改開機順序

方法1:
sudo nano /etc/default/grub

更改開機順序(0是指選單第一項,以此類推)
GRUB_DEFAULT=0

sudo update-grub2

方法2:
Ubuntu Linux 中安裝 StartUp Manager

資料來源:

昭佑.天翔: Ubuntu 開機管理程式- StartUp Manager

2013年12月12日 星期四

Win7 PAE 設定

Win7 PAE 設定
資料來源:
www.mobile01.com/topicdetail.php?f=233&t=983983&p=3
http://www.mobile01.com/topicdetail.php?f=235&t=977163&p=9#13137645
http://www.mobile01.com/topicdetail.php?f=495&t=808222&p=13#10831957
http://www.mobile01.com/topicdetail.php?f=495&t=808222&p=13#10863616
http://windows.microsoft.com/zh-tw/windows7/windows-7-windows-server-2008-r2-service-pack-1-sp1-installation-error-0x800f0a12
http://social.technet.microsoft.com/Forums/zh-TW/27da70c5-a7aa-4538-97a3-9b03ebf9364b/bcd
http://www.mobile01.com/topicdetail.php?f=233&t=983983&p=3
http://sinerely1999.blogspot.tw/2010/08/windows7-64-ramdisk.html
http://tzoyiing.pixnet.net/blog/post/25217312
http://idaiwan.pixnet.net/blog/post/29102324-%E9%81%A9%E7%94%A8%E6%96%BC-windows-7-%E7%9A%84-superspeed-ramdisk-%E6%9C%80%E6%96%B0%E7%89%88

安全移除USB

不再强行拔出 5种妙方安全删除USB连接

Ubuntu 小技巧

Ubuntu 安裝之後的一些小Tip

Ubuntu 安裝之後的一些小Tip @ 人本自然:: 隨意窩Xuite日誌

Ubuntu 14.04的調校


Firefox 中文化套件
apt-get install firefox firefox-locale-zh-hant

編輯網路卡介面資訊及重啟

nano /etc/network/interfaces
/etc/init.d/networking restart 




Ubuntu pppoe設定

pppoeconf

凍仁的筆記: Manual PPPoE on Debian

還有一套其他 linux(red hat,suse,slackware,...) 常用的
密碼是隱碼輸入
sudo apt-get install pppoe

sudo pppoe-setup
sudo pppoe-start
sudo pppoe-stop


取消pppoe启动时自动拔号:
sudo gedit /etc/network/interfaces
auto dsl-provider 改成 #auto dsl-provider
與dsl相關的語句加#後重新啟動。

设置静态ip的方法:
Ubuntu的网络参数保存在文件 /etc/network/interfaces中,默认设置使用dhcp,内容如下:
# The primary network interface
auto eth0
iface eth0 inet dhcp
设置静态ip的方法如下:
(1)编辑 /etc/network/interfaces
1.1)将dhcp 一行屏蔽
# The primary network interface
auto eth0
#iface eth0 inet dhcp
1.2)添加和静态ip有关的参数
# The primary network interface
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
(2)编辑 /etc/resolv.conf,设置dns
nameserver 202.96.134.133
nameserver 202.106.0.20
(3)执行下面两个命令,启用新设置
$sudo ifdown eth0
$sudo ifup eth0 

 

 

 

2013年11月4日 星期一

Ubuntu 設定螢幕"更新頻率"

Ubuntu 設定螢幕"更新頻率"
xrandr 顯示器支援解析度及掃描頻率
gtf 如何寫入設定檔(/etc/X11/xorg.conf)
ex:gtf 1280 720 75 (以 75 Hz 為例)
# 1280x720 @ 75.00 Hz (GTF) hsync: 56.40 kHz; pclk: 95.65 MHz
Modeline "1280x720_75.00"  95.65  1280 1352 1488 1696  720 721 724 752  -HSync +Vsync
存檔之後重新啟動 X window
資料來源:http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=109

2013年11月3日 星期日

Ubuntu 重起 X windows的方法

Ubuntu13.04 重起 X windows的方法

★[Ctrl]+[Alt]+F1 開啟終端機1. sudo killall Xorg 回到登入畫面
2. sudo restart lightdm 直接進入 X windows
    sudo service lightdm start
    sh /etc/init.d/gdm restar

★[系統設定] →[個人] / [鍵盤配置] /〔選項〕
選取 Key sequence to kill the X server 並啟用 Control + Alt + Backspace
Control + Alt + Backspace:回到登入畫面

★登出:
1. sudo service lightdm stop [Ctrl]+[Alt]+F7:黑畫面
2. sudo dpkg-reconfigure lightdm

資料來源:
1.http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=49624
2.http://ahhafree.blogspot.tw/2011/06/unity.html

2013年10月26日 星期六

開機隨身碟

使用HPUSBFW.EXE((HP USB Disk Storage Format Tool)制作開機隨身碟
1.檔案系統選「FAT32」。
2.win98boot.zip:將「win98boot」資料夾內,除了COMMAND.COM、IO.SYS、MSDOS.SYS三個檔案以外的所有檔案複製。