2016年4月28日星期四

Linux, linux box (NAS), cannot be login by win98

use the steps below to fix it.


1.Add these three lines to the [globals] section of your smb.conf:

lanman auth = Yes
client lanman auth = Yes
client plaintext auth = Yes

2.Restart the Samba server

3.Re-input passwords for every Win9x user:
smbpasswd -a username

4.Have every Win9x user log out and then log in again.

If you want to know why then you can visit the link below:

http://www.troubleshooters.com/linux/win9x_samba.htm


2016年4月5日星期二

Reset all USB Device in Linux

You can try the script below:

reference from

http://billauer.co.il/blog/2013/02/usb-reset-ehci-uhci-linux/

#!/bin/bash

# USB drivers
rmmod xhci_pci
rmmod ehci_pci

# uncomment if you have firewire
#rmmod ohci_pci

modprobe xhci_pci
modprobe ehci_pci

# uncomment if you have firewire
#modprobe ohci_pci

------------------------------------------------------------------------------------

I used the one on SME Linux Server

#!/bin/bash

# Stop USB Drivers
rmmod uhci_hcd
rmmod ehci_hcd

# Start USB Drivers
modprobe xhci_hcd
modprobe ehci_hcd