2013年12月30日月曜日

[FreeBSD/wine] iTunes on FreeBSD/i368 and Wine(update 2015/4/18: about input keyboard)

I can use iTunes-7.3.2(not latest version) on FreeBSD/i386 and Wine

  • Environment
    • FreeBSD-11-current/i386(Dec/23/2013)
    • wine-1.6.1(from ports tree)
    • iTunes-7.3.2

  • Tested senario
    • Kanji code: OK(menu and MP3 meta data) with enviroment variable LANG.
      • cf. tcsh
        • setenv LANG ja_JP.UTF-8
    • play back MP3 file: OK
    • input keyboard
      • winecfg -> Graphics -> disable Allow the window manager to control the windows

2013年12月29日日曜日

[Raspberry Pi/OpenElec]How to create SD card on FreeBSD

I created latest OpenElec SD card on FreeBSD.

1.  create empty partition

 maybe we could create partition with gpart. But this time I use below empty partition image (easy operation).

related link
http://wiki.openelec.tv/index.php?title=Installing_OpenELEC_on_Raspberry_Pi#tab=Mac_OSX

1.1 download empty image

http://openelec.thestateofme.com/empty.img.zip

1.2 write empty image

dd if=empty.img of=/dev/da0 bs=10240 conv=sync

1.3 check partition table

fdisk /dev/da0

2. write system file

this step from below Windows steps
http://wiki.openelec.tv/index.php?title=Installing_OpenELEC_on_Raspberry_Pi#tab=Windows

2.1 mount msdos partition

mount -t msdosfs /dev/da0s1 /mnt

2.2 write files


cp target/KERNEL /mnt/kernel.img
cp target/SYSTEM /mnt/
cp 3rdparty/bootloader/*.* /mnt
cp openelec.ico /mnt
cp README.md /mnt

2.3 create cmdline.txt

vi /mnt/cmdline.txt

write below line
boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 quite

----------------------------------------------------------------------
I installed OpenELEC 3.2.4 is faster than 2.99.4 and I could play back
MPEG4 H.264 Full HD movie files without problem(noise).

Thank you, OpenELEC Team.



[RaspberryPi] nice box/seed Skeleton Box for Raspberry Pi

I bought SEED STUDIO Skeleton box for Raspberry Pi.

http://www.seeedstudio.com/depot/skeleton-box-for-rasberry-pi-p-1547.html
http://www.seeedstudio.com/wiki/Skeleton_box_for_Rasberry_Pi

I bought from SeNGoKu-Denshi(In Japan/Japanese page, 1,300 Yen)
http://www.sengoku.co.jp/mod/sgk_cart/detail.php?code=EEHD-4CLB

This box is made by aluminum(side), strong than other plastic box.

Unfortunately, my Raspberry Pi is maybe first lot(256MB model). This Pi does not have mountaing holes. I mounted with rubber.

2013年12月28日土曜日

[FreeBSD/X/Radeon] could not suspend/resume on ThinkPadX31 with latest X

I updated X server system(xorg-server-1.7.7_11,1) on ThinkPad X31/FreeBSD-11-current(around 23/Dec/2013).

Latest X server requre drm2 kernel module, however drm2 kernel module(only radeon?) does not support suspend/resume(see below commit log).

http://svnweb.freebsd.org/base?view=revision&revision=255573

I could not suspend/resume on ThinkPadX31.


So I added below line to my /etc/make.conf
WITHOUT_NEW_XORG=

2013年8月17日土曜日

プレスポ(プレシジョンスポーツ)のBB(ボトムブラケットの交換)

2011年6月購入のプレスポには以下のBBが装着されていました。

VP COMPONENTS BC-73 68 BC 1.37x24T 110.5mm

ホローテック2も魅力的ですが、コスト的に高く将来ロードバイクを購入した時の
お楽しみと考えました。

そこそこ評判の良い以下のBBを手配しました。

TANGE(タンゲ) LN7922 110mm ボトムブラケット BBU01501
amazon(DOORS) 3,690円

2013年5月18日土曜日

[FreeBSD/10-current] freerdp compile error

I tried to compile net/freerdp on FreeBSD-10-current(r250697M).

However I could not compile it with below errors.

[100%] Generating xfreerdp.1
xmlto: /zdevel1/usr/ports-192.168.10.64/zdevel1/usr/ports/net/freerdp/work/FreeR
DP-FreeRDP-616aed4/client/X11/xfreerdp.1.xml does not validate (status 3)
xmlto: Fix document syntax or use --skip-validation option
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml
/4.1.2/docbookx.dtd
/zdevel1/usr/ports-192.168.10.64/zdevel1/usr/ports/net/freerdp/work/FreeRDP-Free
RDP-616aed4/client/X11/xfreerdp.1.xml:2: warning: failed to load external entity
 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
                                                                             ^
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml
/4.1.2/docbookx.dtd
warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4
.1.2/docbookx.dtd"
validity error : Could not load the external subset "http://www.oasis-open.org/d
ocbook/xml/4.1.2/docbookx.dtd"
Document /zdevel1/usr/ports-192.168.10.64/zdevel1/usr/ports/net/freerdp/work/Fre
eRDP-FreeRDP-616aed4/client/X11/xfreerdp.1.xml does not validate
*** [client/X11/xfreerdp.1] Error code 13

So I disable man page. I can compile and install it

1. remove xmlto
   pkg delete xmlto

2. change Makefile(do not use xmlto)

net/freerdp/Makefile

.if ${PORT_OPTIONS:MX11}
USE_XORG=       x11 xkbfile xcursor xextproto xv xinerama xext xcursor
CMAKE_ARGS+=    -DWITH_X11=ON
#BUILD_DEPENDS+=        xmlto:${PORTSDIR}/textproc/xmlto
#MAN1=          xfreerdp.1
PLIST_SUB+=     X11=""

[NOTES]
AT June/2013, I compiled all base system(from r251138) and ports tree.
I can compile freerdp without any changes.

2013年4月29日月曜日

[FreeBSD/10-current/clang/already fixed in ports tree]graphics/xv

compile on 10-current(clang), you need to add USE_GCC=any in Makefile(for ports/graphics/xv)
I will discuss this with maintaner.

[NOTES]
AT June/2013, I compiled all base system(from r251138) and ports tree.
I can compile freerdp without any changes.

FreeBSD 10-current ports/net/vnc with clang enviroment


current net/vnc is not compile on FreeBSD-10-current.
because latest cpp is clang cpp[NG].
I quick hacked and create patch(this chage only for FreeBSD-10-current). I will discuss this issue with cy at FreeBSD.org.

--- xc/config/imake/imakemdep.h.org        2013-04-29 22:23:46.919752081 +0
900
+++ xc/config/imake/imakemdep.h    2013-04-29 22:15:46.129671977 +0900
@@ -282,8 +282,11 @@
 #define DEFAULT_CPP "/usr/libexec/cpp"
 #endif
 #if defined(__FreeBSD__)  || defined(__NetBSD__) || defined(__OpenBSD__)
+#define DEFAULT_CPP "/usr/bin/gcpp"
+#if 0
 #define USE_CC_E
 #endif
+#endif
 #if defined(__sgi) && defined(__ANSI_CPP__)
 #define USE_CC_E
 #endif

[NOTES](June/4/2013)
sorry I mistake to create patch file. I fix file name(remove `unix/' string from diff header)

[FreeBSD mail/xpbiff] always popdown window

Currently I could not find root cause.
but I solved this issue(pop-down window) with below patch(for mail/xpbiff)


--- xpbiff.c.org        2013-04-29 20:27:48.986173288 +0900
+++ xpbiff.c  2013-04-29 22:20:43.195617811 +0900
@@ -988,8 +988,10 @@
            mail_size = file_stat.st_size;
            if (appResources.raise == True && appResources.stay_raised == False)
                XLowerWindow(XtDisplay(toplevel), XtWindow(toplevel));
+#if 0
            if (appResources.popup == True)
                BreakPopup(toplevel, (XtPointer) NULL, (XtPointer) NULL);
+#endif
        }
     } else
        /* No mail */

2013年1月19日土曜日

AndroidのテザリングだとなぜかiPhone 4(iOS6)の通信が安定しない

自宅のwifiルータだと、問題ないのですが、Android 2.2(Optimus Chat)をテザリングルータにすると、なぜかiPhone4(IOS6)の通信が安定しませんでした。
例えばSafariでブックマークを開こうとしても読み込み処理をしますが、閲覧できません。再度reloadすると見えたりしました。
自宅wifiルータ環境ではそのようなことがなくAndroid 2.2のテザリングの問題と思っていました。

その後iPhoneの電源入れ直しをしたところ、なぜか解決しました。

現状は、Androidのテザリングの調子が悪くなったらiPhoneの電源を入れなおしています。