2014年11月29日 星期六

去日本必裝APP

去日本必裝APP
NTT的無線上網APP. 註冊可用90天沒用會被回收帳號

https://play.google.com/store/apps/details?id=com.nttbp.jfw

NAVITIME for Japan Travel
https://play.google.com/store/apps/details?id=com.navitime.inbound.walk&referrer=utm_source%3Dfrom_ntt%26utm_medium%3Dpc

Free Wifi
http://flets.com/freewifi/tw/spot.html


地鐵轉乘APP
https://play.google.com/store/apps/details?id=jp.co.jorudan.NrKjGree

2014年11月8日 星期六

linux mount USB DISK (NTFS)

0.安裝 NTFS : sudo apt-get install ntfs-3g
1.查看所有 DEVICE 的狀況: fidks -l
2.查看所有 mount 資料: df -aTh
3.解除原本系統自動MOUNT 上來的東西
  umount /media/AABBCCDDEE
4.重新mount 自己要的東西.
mount -t ntfs-3g -o uid=pi,gid=pi /dev/sda1 /media/usbhdd
5.去 nano /etc/fstab
增加一行
/dev/sda1       /media/usbhdd   ntfs-3g  uid=pi,gid=pi     0       0


注解:
-t vfat' tells the mount command that your drive has a fat32 file system. If your drive is formatted with NTFS, you should use '-t ntfs-3g' instead. The '-o uid=pi,gid=pi' part of the command means that the disk will be owned by user pi. You can use this command to unmount the disk:

2014年11月7日 星期五

重設 owncloud 密碼

OwnCloud 密碼忘了..
1先找出 owncloud.db 的存方地.
sudo find / -name "owncloud.db"
/var/www/owncloud/data/owncloud.db
2.先產生一組新的密碼
echo -n "1234567" | sha1sum
201231asdfafwerq913132412341412341  <=等下要UPDATE 密碼用的

3.進到1 的目錄中
cd /var/www/owncloud/data
4.進sqlite
sqlite3 owncloud.db
5. 先看看 owncloud 中 oc_users table 欄位的名稱
pragma table_info(people);
回傳
uid|varchar(64)||||
displayname|varchar(64)||
password|varchar(255)|||

6. Update使用者密碼.
update oc_users set password='201231asdfafwerq913132412341412341' where uid='user id'
OK