Showing posts with label Fedora. Show all posts
Showing posts with label Fedora. Show all posts

June 22, 2018

ThinkPad P50

仕事用に新しいノートPCが届いたので、Fedora Atomic Workstation(Fedora Silverblue)をインストールした。
いろいろ躓いたのでメモ。

一番大きなプチフリ問題から。
とにかく一瞬固まる。しかも頻繁に。
問題はこれらしい

Bug 1509294 - Random freezes with nouveau driver on Lenovo Thinkpad P50

対策としてnouveauをblacklist送りにしてintel driverを使った。
今の所平気ぽい。

これ絡みでgrub.cfgを変更しようとしたら/etc/default/grubは見ないらしい。ここをいじっても反映されない。
変えるにはrpm-ostree ex kargsコマンドを使うらしい。

https://github.com/projectatomic/rpm-ostree/pull/1013

最後にSELinux絡み。
ホストになんでもぶっこんで使おうとするといちいちrebootしないといけなくてめんどくさいのでcontainer環境を用意しないといけない。でもhomeをマウントして使いまわそうとするとSELinuxで躓く。permissiveで使うのがよさそう。

December 1, 2017

i18n FAD Pune 2017

I've joined i18n FAD, Fedora Activity Day in Pune last week, 20th to 22nd November. let me share you all my experience during FAD.

First day, In the morning, I had some presentation for Fonts and Rendering in Fedora, particularly spoke about what we can propose for f28, what we are facing issues around them to share and then try to address in this event as much as possible.
After me, listened on others' talks, Pango contribution experience from Peng Wu, IBus 1.6 plans and emoji demo from Takao Fujiwara-san, ibus-typing-booster and emoji-picker demo from Mike Fabian. also glibc locale stuff from Mike and Rafal Luzynski. nominative vs genitive talk was quite interesting.
After some lunch break, Transtats update from Sundeep Anand and CLI tool demo from Parag Nemade, and Automated Testing and demo from Pravin Satpute and Pooja Yadav. the automated testing for fonts what Pravin proposed is to use hb-shape and compare the result of the analysis. I guess this testing method may works for some purpose but not for some. on the other hand, what Pooja proposed is to compare the result of the actual rendering with OpenCV which is quite opposed approach to that. well, that is to test the input method actually but could be used for rendering too.
Also f27 i18n test day report from Satyabrata Maitra, Bhushan Barve and Sandeep Shedmake. and then Web testing from Vishal.

Second day, I've taken a look at Font SIG stuff and picked up font packages missing the font information at wiki and posted it at the list. I got a lot of feedbacks on it. thanks all.
Aside from that, I've joined discussions about automated testing for fonts and langpacks. even though those topics were discussed in third day too, we didn't have any conclusion yet or still ongoing. so we need to keep working on it.

Third day, I have helped Parag who submitted a PR to improve the spec file template for font packages. reviewed and had a comment on it. thanks Parag for his effort. the templates has been up-to-date and improved a lot.
Also proposed an update against it to FPC and updated wiki too.

For my impression, I think we had more detailed discussions than where we had last time and that was also the purpose of this event. in that sense, we could say the event got an success and should helped a lot for our next step.

Thank you Parag and Sundeep esspecially for organizing this event! I had very nice experience during visiting Pune because of their helps.

November 24, 2012

How to build with MinGW

いつも忘れるのでメモ

$ mingw64-env
$ ./configure --host=x86_64-mingw32

May 20, 2010

Fedora yum repository for Mozc available

I've just created yum repository metadata for Mozc on my fedorapeople space. you can install the latest package after installing mozc.repo file under /etc/yum.repo.d on your system.


Currently it contains the binary rpms for i686 and x86_64 only on Fedora 12 and 13. but not for ppc nor ppc64 because unfortunately the build failed.

For another news,  started to include mozc-config in the package. though I pondered to make another package for that, it was difficult to do so because it requires the build environment of Mozc for header files and static libraries and objects.

Enjoy,

[Update: 2010/05/28]: fixed a fail on i386 box to fetch the metadata via yum; sorry for inconvenience.
[Update: 2010/06/22]: fixed the repo file and URL because it has been changed due to the restructure of the package.

January 18, 2010

How to resolve the proprietary NVIDIA driver installation

メモ。SOLVED Fedora 12 + Nvidia installation problems

自分の環境だとこれだけでは不十分で、/etc/modprobe.d/blacklist.confに

blacklist nouveau

を追加で動くようになった。

November 24, 2009

Keyboard layout is being messed up on Fedora 12

以前よりいろいろ問題の多かったキーボードまわりの設定だけれど、Fedora 12にアップグレードしたら案の定おかしくなってた。症状は\や_が入力できない、など。実際にはもっと広範囲にわたってキーレイアウトがぐちゃぐちゃに入れ替えられてる。カーソルキーが別の割り当てになってたりとか。
原因は以前EmulateWheelの件で設定した


Section "ServerFlags"
Option "AutoAddDevices" "false"
EndSection

の行が悪さをしていた模様。が、これを外すと前回と同じくEmulateWheelの設定が有効にならない。いろいろ試した末半ズボン先生のありがたいアドバイスによって解決。


Section "InputDevice"
Identifier "Keyboard0"
Driver "evdev"
Option "CoreKeyboard"
Option "XkbLayout" "jp"
Option "Device" "/dev/input/by-path/platform-i8042-serio-0-event-kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "evdev"
Option "CorePointer"
Option "Protocol" "ExplorerPS/2"
Option "EmulateWheel" "true"
Option "EmulateWheelTimeOut" "200"
Option "EmulateWheelButton" "2"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/input/by-path/platform-i8042-serio-1-event-mouse"
EndSection

こんな感じで手元のX61ではAutoAddDevicesなしでもキーボードもEmulateWheelも期待通りの動作をするようになった。

October 9, 2009

paps on Git

I'm starting to share our changes in paps at fedora branch on Git repo, hosted by fedorapeople.org. just FYI if you are interested in.

June 30, 2009

How to enable fingerprint reader on Fedora 11


Although you could do use the fingerprint reader with thinkfinger package if it supports your device, this is a new feature available since Fedora 11, which is well integrated to the desktop and more convenient.



It's available without taking any actions if you install Fedora 11 freshly. otherwise you just need to install some packages like:

  • fprintd
  • fprintd-pam
  • gdm-plugin-fingerprint
After that, enable the feature with system-config-authentication. go to the Authentication tab and turn on the "Enable Fingerprint Reader Support".




To register your fingerprint, run gnome-about-me or "About Me" from System->Settings at the panel. and click a "Enable Fingerprint Login..." button. follow the wizard to complete the fingerprint registration. you need to place your finger on the reader 3 times to ensure if it reads correctly.



Once the registration is successfully finished, authentications for, such as login, sudo, screensaver and so on will be done through your fingerprint reader device then. pretty easy :)



Enjoy!

June 23, 2009

How to get flyspell-mode back to work

After upgrading to Fedora 11, flyspell-mode on emacs stopped working. it seems that this is a known bug. a workaround to get this back to work would be to install aspell again and write the following emacs lisp into your .emacs:

(setq inhibit-default-init t)
(setq ispell-program-name "aspell")

May 7, 2009

How to install Fedora 11 with btrfs

Fedora 11's installer is capable to install with btrfs now, however disabled by default. you can enable it by booting the installer with "linux icantbelieveitsnotbtr", otherwise it won't appears at partitioning and the installer will rejects regardless you use the existing btrfs partitions.

January 7, 2009

Unable to locate the application's 'main' class...

I've just got a error message from java application on Fedora 10 like:

Unable to locate the application's 'main' class. The class 'blahblahblah' must be public and have a 'public static void main(Stri
ng[])' method. (LAX)

with openjdk.
As a result, I have to install libXp.i386 package on my x86_64 box. it's not easy to imagine what's wrong... bah.

December 18, 2008

How to setup your Linux box to access HTC Touch Pro through USB

No particular hacks against that, but just to keep it in mind.

Basically I've followed steps explained at SynCE site. and have tried on Fedora 10. there are some attentions on the installation process:

  1. Inputs will be messed up after installing synce-usb-rndis-lite-dkms package until you reboot your machine.
  2. As mentioned on wiki, you have to add ipaq kernel module to the blacklist.
  3. may be better disabling SELinux until AVC messages goes away with any updates.
Anyway, try to run odccm -f directly before starting odccm service, and make sure if you see debug logs like device_info like described in wiki. then SynCE works for you then.

Enjoy,

July 18, 2008

Google bookmark feature on Google Toolbar doesn't work

I'm facing this issue since Firefox 3 and Google Toolbar for that has been released. when logging in with my Google account or clicking a star on the toolbar, I see an error message on the error console. that says,

Cc['@google.com/toolbar/bookmark-wrapper;1'] is undefined
I don't know what happened, What I can tell is this feature worked on Firefox 2. so trying to google it and amazingly there are so many people who is facing the same problem and there are a lot of false alarm about its solution, at least with Firefox 3 or on Fedora 9.

  • installing libstdc++.so.5 would helps.
Apparently it's not. the latest Google Toolbar doesn't even require libstdc++.so.5. but surely libstdc++.so.6.

% readelf -d extensions/\{3112ca9c-de6d-4884-a869-9855de68056c\}/components/libgoogletoolbar.so | grep libstdc
0x00000001 (NEEDED) Shared library: [libstdc++.so.6]
So this wouldn't help at all.
  • that works fine after creating new profile.
That didn't even help me, unfortunately.

So I have given up to investigate this issue and just installed GBookmarks add-on. I'm happy with it now.

[Update: 2008-07-22] Google toolbar 3.1.20080605L works fine on Debian sid, but Iceweasel 3.0.1. I'm missing something or something went wrong. I'd believe Firefox and Iceweasel doesn't make so much difference. anyway Google toolbar doesn't work yet on Fedora 9.
[Update: 2009-09-24] I have to update to not let people get confused... Once updating to Google toolbar 5.0.20090823L (I'm not sure which version exactly fix this since but anyway), this feature works fine again on even Firefox 3.5.

June 9, 2008

EmulateWheelが動かない

Xの設定で

Section "InputDevice"
Driver "mouse"
Option "EmulateWheel" "true"
...
EndSection

という設定がある。ThinkPadとかでトラックポイントを使ってスクロールさせるための設定なんだけど、Fedora 9で動かなくなった。というのもFedora 9で本来予定されていたxorg.confに何もかかなくても動くように自動でデバイスを認識して〜という機能の副作用みたいなもので、evdevが有効にされてしまうため。他にもキーボードのレイアウトがとか問題も多く、Fedora 10まで延期にされたfeature。

ともあれ、この問題を解決するために以下の行を追加すると動くようになる(参考)。

Section "ServerFlags"
Option "AutoAddDevices" "false"
EndSection

May 2, 2008

chkconfig <service> resetpriorities

まあ見ての通り。以下使用前、使用後。

# ls /etc/rc0.d
K00httpd K10wine K73ypbind K88nasd
K00sendmail K15gpm K74acpid K88pcscd
K00smartd K20nfs K74kerneloops K88rsyslog
K00snmpd K24irda K74lm_sensors K89dund
K00snmptrapd K25sshd K74nscd K89netplugd
K00xendomains K50bluetooth K75fuse K89pand
K01blktapctrl K50netconsole K75netfs K89rdisc
K01dnsmasq K60crond K75ntpdate K90network
K01NetworkManager K65kadmin K75udev-post K91capi
K01smolt K65kprop K84btseed K91isdn
K01xenconsoled K65krb524 K84bttrack K92ip6tables
K01xend K69krb5kdc K84wpa_supplicant K92iptables
K01xenstored K72rpcsvcgssd K85mdmonitor K95firstboot
K02avahi-daemon K72autofs K85rpcgssd K98qemu
K02haldaemon K72iscsi K85rpcidmapd K99cpuspeed
K03libvirtd K72iscsid K86nfslock K99microcode_ctl
K05anacron K72ldap K87irqbalance S00killall
K05atd K72ntpd K87multipathd S01halt
K05saslauthd K73setroubleshoot K87restorecond
K10cups K73messagebus K87rpcbind
K10psacct K73winbind K88auditd


# ls /etc/rc0.d
K00xendomains K24irda K73ypbind K88auditd
K01blktapctrl K25sshd K74acpid K88nasd
K01dnsmasq K30sendmail K74kerneloops K88pcscd
K01smartd K50bluetooth K74lm_sensors K88rsyslog
K01smolt K50netconsole K74nscd K89dund
K01xenconsoled K50snmpd K75fuse K89netplugd
K01xend K50snmptrapd K75netfs K89pand
K01xenstored K60crond K75ntpdate K89rdisc
K02avahi-daemon K65kadmin K75udev-post K90network
K02haldaemon K65kprop K84btseed K91capi
K03libvirtd K65krb524 K84bttrack K91isdn
K05anacron K65krb5kdc K84wpa_supplicant K92ip6tables
K05atd K69rpcsvcgssd K85mdmonitor K92iptables
K05saslauthd K72autofs K85messagebus K95firstboot
K10cups K72iscsi K85rpcgssd K98qemu
K10psacct K72iscsid K85rpcidmapd K99cpuspeed
K10wine K72ldap K86nfslock K99microcode_ctl
K13hsqldb K72ntpd K87irqbalance S00killall
K15gpm K72setroubleshoot K87multipathd S01halt
K15httpd K73NetworkManager K87restorecond
K20nfs K73winbind K87rpcbind


scriptletではやってくれないらしくて定期的に実行した方がよさそう。

November 30, 2007

Delete key introduces a tilde

デフォルトの設定ではgnome-terminalでDeleteキーを押すと^[[3~が送られる。Fedora 8のzshはこれをうまく処理してくれない。エスケープシーケンス部分をそのままスルーして結果~(tilde)のみが出力される。次のようにbindkeyして対処しといた。

bindkey '^[[3~' delete-char

October 3, 2007

mount: could not find filesystem '/dev/root'

野暮用でRawhideというかFedora developmentをインストール。インストールそのものには問題はないのだけれど、rebootした後なぜかrootパーティションを見つけられずにkernel panic。boot時のログを見る限りvgscanは問題なさそう。なので、grubでroot=LABEL=/となっているところで直接デバイスを指定してみた。標準的な構成だとroot=/dev/VolGroup00/LogVol00とかになるはず。

これでrootが見つからない問題は回避できたけど、/etc/fstabにはLABEL=/が/だと記述しているので、そのままだとまだ途中でこけるので、メンテナンスモードでログイン。e2labelで確認してみるも、何もラベルは設定されておらず、原因を特定。後はラベルを設定して解決。
# e2label /dev/VolGroup00/LogVol00 /

October 1, 2007

IPAフォント

単体配布できるようになったらしい。英語のライセンスがないので問い合わせ。
とりあえずテスト用のrpmパッケージを作ってみたけど、ふと思い出してwikiをチェックしてみたら…

Bad Licenses

This is a list of Font licenses which are NOT OKAY for Fedora. Nothing in Fedora should be using these licenses. They're either non-free, deprecated, or have usage/distribution restrictions.

Full Name

FSF Free?

...

Notes

Literat Font License

NO

...


Cannot modify


という記述が…。修正不可はFedoraではだめ、というかnon-freeをそもそも受け付けていないので、FedoraにIPAフォントが入ることはなさそう。一応英語のライセンスの返事待ちはするけど、たぶんここにリストアップされるためだけに使われそうな予感。