Latest Entries »

精神
修改hgfs的shell script, 讓他在kernel 3.10.x的linux中啟用完整功能

方法(節錄自https://communities.vmware.com/message/2408919#2408919)
# cd <..>/vmware-tools-distrib/lib/modules/source
# tar xf vmhgfs.tar
# cd vmhgfs-only/shared
apply change to compat_dcache.h (line 54 change version from 3, 11 to 3, 10)
then tar up the new directory into vmhgfs.tar, and run the install.

DVD-R 適合燒錄給DVD播放機撥放的DVD

## Download Files ##

A.USB DRIVER
http://developer.android.com/sdk/win-usb.html

B.Android SDK
http://developer.android.com/sdk/download.html

C.Firmware
https://developers.google.com/android/nexus/images

## Flashing… ##

1.Create folder “D:\fastboot"
2.Unzip “razor-krt16s-factory-7235eb0d.tar" to “D:\fastboot"
3.Copy all files in “%Android SDK%\platform-tools\" to “D:\fastboot"
4.Install Nexus 7 ADB/USB Driver
5.Enable Nexus7 usb debug mode (Settings > About > touch 5 times on [Version] item)
6.Turn-off Nexus 7, put “-" button and “On/Off" button to enter fastboot mode
7.Pluging Nexus 7 by usb cable
8.Open “Command Line" and type the following command:
d:\fastboot
cd d:
fastboot devices
(you can see some word like “{device id} fastboot", and this mean pc connected to nexus 7)
fastboot oem unlock
(unlock Bootloader)
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader-flo-flo-04.01.img
fastboot reboot-bootloader
fastboot -w update image-razor-krt16s.zip
(Done!)
fastboot devices
(Check connect)
fastboot oem lock
(Lock Bootloader)

Reference by: http://my-net.cc/weblog/post/300/

TOOLS -> Extensions and Updates… -> Online, select NuGet Package Manager, and click Download

家用電腦的磁碟配置

SSDx2 RAID0 with trim

HDDx2 動態磁碟鏡像模式

換成最初期的解決方案, 切換中英文輸入法用Ctrl+Shift
沒事不要用IE氣自己, Chrome Only~

備份redmine的資料庫到backup.sql
$ ./use_redmine
$ mysqldump -u root -p -S <installdir>/mysql/tmp/mysql.sock 資料庫名稱 > backup.sql
( bitnami的資料庫名稱,預設為bitnami_redmine)

還原redmine
C:\安裝路徑\BitNami Redmine Stack projects> mysql -u root -p 資料庫名稱 < “放置路徑\backup.sql "

備份附件檔
備份 C:\Program Files\BitNami Redmine Stack\apps\redmine\files 裡的檔案

apt-get install update

apt-get install samba

停用samba服務
/etc/init.d/smdb stop
/etc/init.d/nmdb stop

設定檔
sudo vi /etc/samba/smb.conf
在文末加上要的分享資料夾
[SHARE]
path = /var/lib/share ;分享路徑
browseable = yes ;是否可瀏覽
read only = no ;是否唯讀
create mask = 0644 ;檔案遮罩
directory mask = 0755 ;資料夾遮罩

打開分享路徑的權限 chmod 777 /var/lib/share
或設定user以及group…再改成chmod 770 /var/lib/share

編輯完後,存檔並重新啟動samba
/etc/init.d/samba start

如果需要設定帳號密碼才能使用,
除了在smn.conf把security設定成user外
亦需新增使用者:
sudo smbpasswd -a 帳號

編輯完smb.conf後用testparm檢查
testparm

啟用samba服務
/etc/init.d/smdb start
/etc/init.d/nmdb start

在家目錄建立 .vimrc 檔案,然後加入以下內容:

set nocompatible
set backspace=2

儲存檔案後離開

請先更新…
$ sudo apt-get update