วันพุธที่ 25 กันยายน พ.ศ. 2556

วันพฤหัสบดีที่ 25 กรกฎาคม พ.ศ. 2556

การใช้งาน lighttpd บน DNS320L FFP0.07

1. Copy Config
cp /ffp/etc/examples/lighttpd/lighttpd.conf /ffp/etc
2. Make Folder
mkdir -p /mnt/HD/HD_a2/www/pages
mkdir -p /mnt/HD/HD_a2/www/logs
mkdir -p /mnt/HD/HD_a2/www/tmp
3. ใช้ WinSCP ไป แก้ไข lighttpd.conf ที่ /ffp/etc
บรรทัดที่แก้มี
server.document-root         = "/mnt/HD/HD_a2/www/pages/"
server.upload-dirs              = ( "/mnt/HD/HD_a2/www/tmp" )
server.errorlog                    = "/mnt/HD/HD_a2/www/logs/error.log"
accesslog.filename            = "/mnt/HD/HD_a2/www/logs/access.log"
server.port                           = 88
4. Restart Lighttpd
/ffp/start/lighttpd.sh restart
5.ทดสอบการใช้งาน
นำไฟล์ index.html ไปไว้ที่ /mnt/HD/HD_a2/www/pages
เรียกใช้งาน IP:88

****** จากที่ทำการทดสอบพบว่า Lighttpd มัน Run เองแต่ไม่สามารถเข้าได้ให้ทำการเพิ่ม
 kickwebs_start()
{
    /ffp/start/lighttpd.sh stop
    echo "Kicking webs ..."
    killall webs
}
ตัวสีแดง ใน /ffp/start/kickwebs.sh

****** ต้องผ่านการลง FFP และเปิดใช้งาน SSH แล้ว ถ้ามีการลง Tranmission ให้เลือก Port ให้แตกต่างจากที่ใช้

อ้างอิง
http://www.internetearnings.com/how-to-install-lighttpd-php-on-dlink-dns-320/
http://wolf-u.li/4695/konfiguration-von-mysql-und-lighttpd-mit-php-unter-ffp-0-7/

วันจันทร์ที่ 15 กรกฎาคม พ.ศ. 2556

การสำรอง Driver

Driver ที่ Windows Update Download มาเก็บไว้อยู่ที่
C:\Windows\System32\DriverStore\FileRepository
สามารถเอาไปลงเครื่องอื่นๆได้ด้วย

วันจันทร์ที่ 8 กรกฎาคม พ.ศ. 2556

Install Transmission บน DNS320L

 อ้างอิง
*** http://klseet.com/index.php/d-link-dns-320-nas/173
*** http://nas-tweaks.net/371/hdd-installation-of-the-fun_plug-0-7-on-nas-devices/#Download
http://kylek.is-a-geek.org:31337/files/ffp/0.7-arm/
http://nas-tweaks.net/82/installing-and-uninstalling-packages-and-activation-and-deactivation-of-daemons-in-fonz-fun_plug/
http://forum.dsmg600.info/t2719-%5BREL%5D-Transmission.html
โปรแกรมที่ต้องใช้
1.Putty
2.WINSCP
3.Editplus
----------------
step 1
----------------
0. Install Plugin
โหลด
fun_plug =>> http://wolf-u.li/u/433
fun_plug.tgz =>> http://inreto.de/dns323/fun-plug/0.7/arm/fun_plug.tgz
จากนั้นนำไปวางที่ NAS
1. Change Device Root
usermod -s /ffp/bin/sh root
mkdir -p /ffp/home/root/
sed -ie 's#:/home/root:#:/ffp/home/root:#g' /etc/passwd
pwconv
### ถ้า  pwconv ขึ้น Error
pwconv: failed to change the mode of /etc/passwd- to 0600
#Before you run pwconv
cd etc
cp passwd passwd-
cd /
pwconv

2. Change Password
passwd
3. store password
wget http://wolf-u.li/u/172/ -O /ffp/sbin/store-passwd.sh
store-passwd.sh
4. Activate & enable SSH login
chmod a+x /ffp/start/sshd.sh
sh /ffp/start/sshd.sh start
จากนั้นใช้ Winscp ไปเพิ่ม 2 บรรทัดนี้
chmod 700 /ffp/var/lib/sshd/
chmod 700 /ffp/etc/ssh/ssh_*
ใน ffp/start/sshd.sh
ก่อนบรรทัด “proc_start $command”
5.หลังจากเปิด ssh แล้วจะ Dis Telnet แล้ว Reboot
chmod -x /ffp/start/telnetd.sh
reboot
6.หลังจาก Reboot มาแล้ว ถ้า ssh ยังไม่เปิด ให้ไปแก้ ##นำไปรวมกับข้อ 4 แล้ว
เพิ่ม
chmod 700 /ffp/var/lib/sshd/
chmod 700 /ffp/etc/ssh/ssh_*
ใน ffp/start/sshd.sh
ก่อนบรรทัด “proc_start $command”
จากนั้น Reboot และทดสอบ ssh
7. โหลด Transmission โดยใช้คำสั่ง
wget http://inreto.de/ffp/0.7/arm/packages/curl-7.21.4-arm-1.txz
wget http://kylek.is-a-geek.org:31337/files/ffp/0.7-arm/Transmission-2.76-arm-1.txz
8. ลง โดยใช้คำสั่ง
funpkg -i curl-7.21.4-arm-1.txz
funpkg -i Transmission-2.76-arm-1.txz
9.ติดตั้ง User และ Pass และ ที่เก็บไฟล์ โดยใช้คำสั่ง
su nobody -c "transmission-daemon -f -g /mnt/HD/HD_a2/.transmission-daemon -w ##Path## -t -u ##User## -v ##Pass## -a 127.0.0.1,192.168.*.*"
ตัวอย่าง
su nobody -c "transmission-daemon -f -g /mnt/HD/HD_a2/.transmission-daemon -w /mnt/HD_a2/Downloads -t -u Transmission -v 99999 -a 127.0.0.1,192.168.*.*"
มันจะรันไม่สำเร็จ จะค้างอยู่ที่หน้า Port ซักอย่าง ให้กด Ctrl+C
และใช้คำสั่ง Start มันใหม่
/ffp/start/transmission start
10.จากนั้นทดสอบเข้า Web UI โดย
IPADDRESS:9091
11.ตรวจสอบ CPU ใน NAS ถ้ามัน 100% ตอนโหลดBitให้ SSH ไปแก้ **แนะนำให้ทำเลยหลังจาก start transmission
rm /dev/random
rm /dev/urandom
และ
mknod -m 666 /dev/random c 1 8
mknod -m 666 /dev/urandom c 1 9
12.แก้ไขค่า Config Transmission




เกือบลืมอย่าลืมสร้าง Folder ที่เก็บไว้นะครับ จากนั้นค่อยนำไปใส่ใน Config

***************************จบครับ****************************


ปล.ผมไม่ได้เป็นคนต้นคิดนะครับ แต่เกิดจากอยากลองทำอะไรแปลกๆกับของที่ซื้อมาเลยหาข้อมูลและรวบรวมมาให้เท่านั้น (กันลืมส่วนตัวด้วย)

วันอังคารที่ 25 มิถุนายน พ.ศ. 2556

Error Message: Unable to open this internet site. The requested site is either unavailable or cannot be found. Please try again later......

วิธีแก้ปัญหา Internet Explorer Download แล้วขึ้น Error
เอาง่ายๆ เปิด Regedit แล้ว ลบ HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings ไปซะ จากนั้นรัน IE มาใหม่

อ้างอิง http://answers.microsoft.com/en-us/ie/forum/ie8-windows_other/error-message-unable-to-open-this-internet-site/758f7a64-b081-4981-814f-9a7a53434fb8
 
Support Engineer
Hi ThiaClark2010,

What is the version of Internet Explorer that you’re currently running?

This happens if theContent Type registry setting for .xml file types is incorrect. To resolve the problem, use one of the following methods:

Method 1: Register msxml3.dll file
a.    Click Start, click  All Programs, click Accessories, right-click  Command Prompt, and then click Run as administrator.
b.    Type the following command and press Enter.
regsvr32 msxml3.dll

Now check if you’re able to download files from Internet Explorer.


Method 2: Try the following registry fix
Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows


a.    Start Registry Editor.
b.    For a per-user setting, locate the following registry key:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
For a per-computer setting, locate the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings
c.    On the Edit menu, click  Add Value.
d.    To override the directive for HTTPS connections, add the following registry value:
"BypassSSLNoCacheCheck"=Dword:00000001
To override the directive for HTTP connections, add the following registry value:
"BypassHTTPNoCacheCheck"=Dword:00000001
e.    Quit Registry Editor.

Now check if you’re able to download files from Internet Explorer.

Method 3: Reset Internet Explorer settings
If the issue still persists, then try resetting Internet Explorer settings.
http://support.microsoft.com/kb/923737

Hope this information is helpful and let me know if you need any further assistance.
Mouneshwar R – Microsoft Support

 

วันพุธที่ 15 พฤษภาคม พ.ศ. 2556

เปืดเมลล์ฟ้องหา Box ไม่เจอแล้วโปรแกรมปิดไปเลย Outlook 2003 2007 2010

ลบ Regข้างในนี้
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles].
แล้วเปิดโปรแกรมใหม่อีกรอบ

อ้างอิง http://www.itexperience.net/2011/05/04/outlook-2010-error-cannot-open-your-default-email-folders-the-information-store-could-not-be-opened/


Outlook 2010 error “Cannot open your default email folders. The information store could not be opened”
Today I couldn’t start my Outlook 2010 client anymore. When launching Outlook, the following error message came up:
Cannot open your default email folders. The information store could not be opened.
I always start with some basic steps, that helped me most of the times when I had a problem with an Outlook profile. Those standard steps are listed at the bottom of this article. However, the problem involved with this information store thing could not be solved with my standard steps.
To solve the “Information store could not be opened” –error, I disabled the Compatibility mode on Outlook.exe (who actually did turn this on?! It just suddenly was enabled!)
To disable the Compatibility mode on the Outlook.exe application, do the following:
  1. Open Windows Explorer and navigate to your Office directory (default is “C:\Program Files\Microsoft Office\Office14” for Office 2010, but your Office may also be installed in Program Files (x86) )
  2. Right click the Outlook.exe and choose Properties
  3. Click the Compatibility tab and UNCHECK the “Run this program in compatibility mode for” option image thumb Outlook 2010 error “Cannot open your default email folders. The information store could not be opened”
  4. Click OK and try to launch Outlook again
If the Compatibility mode was not enabled, then your problem is caused by something else :)
Try my default steps to see if it solves your particular problem:
  • Try to Run outlook in safe mode from the Run As window. To do so, press WIN+R (Windows key+R), type “Outlook.exe /safe“ in the text field and click OK.
  • Recreate your outlook profile. To do so, click Start –> Control Panel –> Mail. Click Show Profiles. Remove your existing profile. Then click Add… to add a new profile. Try to start Outlook again.
  • Remove the Windows Messaging Subsystem keys in your registry. To do so, press WIN+R (Windows key+R), type “regedit“ in the text field and click OK. Navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles]. Delete the key that corresponds to the profile name that causes Outlook not to start. Try to start Outlook again.

วันจันทร์ที่ 22 เมษายน พ.ศ. 2556

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2203

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2203

Error:
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2203
Error Message:

Solution 1:
Log on to your computer with the administrator rights.
Solution 2:
Permission problems for the %windir%\installer folder – If the Windows Installer service does not have sufficient permissions to read and write to this folder, the installation will fail.
  • Click Start > Run > type %windir%\installer
  • Right click any blank area installer folder and select Properties
  • Under Security tab click Edit
  • Add a new User by clicking add
  • Search for Everyone
  • Give everyone full permission by Check the full permission block
  • Click Ok
Solution 3:
Disable real-time virus scanning during installation.
If you have a real-time virus scanner enabled, and it happens to be scanning the file in %windir%\installer at the same time as setup is trying to open the file and install from it, you will get this type of error.
Solution 4:
  • Click Start > Run > Type Services.msc
  • Stop windows Installer service
  • Start Windows Installer service
Solution 5:
  • Click Start > Run %temp%
  • Right click any blank area in the temp folder and select Properties
  • Under Security tab click Edit
  • Add a new User by clicking add
  • Search for Everyone
  • Give everyone full permission by Check the full permission block
  • Click Ok
  • Run Installer Again.

Ref. http://relyonsoft.com/techsupport/?p=995

วันจันทร์ที่ 8 เมษายน พ.ศ. 2556

MTP USB Device Driver Problem in Windows 7 X64 Iphone Samsung

I had the same iss - it's a known issue whereby Windows attempts to use the wrong driver to access the phone.


BACK UP YOUR REGISTRY!!! Editing the registry can be (read: IS) dangerous and can cause no end of pain if done incorrectly.

- To Back Up your Registry: Click Start menu and click "Run". Type "regedit". Click File, then choose export and type "iphone driver fix registry backup".
- Click Export and let it export the the registry to a file.

- To fix the issue: Follow the folder tree on the left to: hkeylocalmachine > system > current control set > control > class
- Find “{EEC5AD98-8080-425F-922A-DABF3DE3F69A}” down the LEFT hand side and click on it.
- Under the list on the RIGHT hand side find "UpperFilters"
- Right-Click UpperFilters and click delete
- Close the registry editor and restart your PC (without the iphone attached).
- Once restarted and logged back in, plug in your iphone and voila!  Windows will actually choose the correct driver and you'll be in like flynn.


แก้ปัญหา Iphone Ipod ไม่พบไดร์เวอร์  ลบ Key Registry UpperFilters