このようなときは, 以下の手順でグラフィカルログインできるようにする.
$ sudo dnf install lightdm lightdm-gdk $ sudo systemctl enable lightdm.service $ sudo systemctl start lightdm.serviceパッケージ lightdm をインストールするだけでは, グラフィカルログインが有効にならない. systemctl で lightdm.service を有効にする設定をする.
$ sudo dnf install lightdm lightdm-gdk $ sudo systemctl enable lightdm.service $ sudo systemctl start lightdm.serviceパッケージ lightdm をインストールするだけでは, グラフィカルログインが有効にならない. systemctl で lightdm.service を有効にする設定をする.
sudo rpm -Va変更されたファイルが出力される. フラグの「S」はサイズ違い, 「5」はMD5違い.
rpm -qf /path/to/file sudo yum reinstall package_name
prelinkというツールがインストールされていると,
バイナリファイルに共有オブジェクトをリンクしてしまう. rpm -Vaではprelinkの変更を戻してからmd5をチェックするらしい.
何らかの理由で同じパッケージの異なるバージョンがインストールされてしまった場合,
以下のコマンドでそのようなパッケージを探すことができる.
rpm -qa --qf '%{NAME}\n' | sort | uniq -c | grep -v '^ *1 '
sudo yum install tftp-server xinetd
sudoedit /etc/xinetd.d/tftp以下のように太字の2箇所を設定する. Disableをyesからnoに変更する. ログを見やすくするため, server_argsに-vを追加する.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -v -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
sudo service xinetd restart
sudoedit /etc/sysconfig/iptables以下の1行を追加する. PXEではUDPでリクエストが来るので, TCPは開放せず, UDPを開放する.
-A INPUT -p udp -m udp --dport tftp -j ACCEPT設定が済んだら, iptablesを再起動して設定を読み込む.
sudo service iptables restart
sudoedit /etc/dhcp/dhcpd.conf2個の設定 (next-serverとfilename) を追加する. Next-serverで指定するのがTFTPが動いているサーバのアドレス. Filenameで指定するのがPXEで最初に読み込むファイル. (後で取得方法を説明)
authoritative;
default-lease-time 3600;
max-lease-time 14400;
log-facility local7;
subnet 192.168.xx.0 netmask 255.255.255.0 {
range 192.168.xx.y1 192.168.xx.y2;
option domain-name-servers 8.8.4.4,8.8.8.8;
option routers 192.168.xx.1;
# for PXE boot
next-server 192.168.xx.yy;
filename "pxelinux/pxelinux.0";
}
設定が済んだら, dhcpdを再起動する.
sudo service dhcpd restart
cd /tmp wget .../syslinux-4.05-13.el7.x86_64.rpm
mkdir /tmp/syslinux rpm2cpio syslinux-4.05-13.el7.x86_64.rpm | cpio -dimv
mkdir /var/lib/tftpboot/pxelinux cp /tmp/syslinux/usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/pxelinux/ cp /tmp/syslinux/usr/share/syslinux/*.c32 /var/lib/tftpboot/pxelinux/
mkdir /var/lib/tftpboot/pxelinux/pxelinux.cfg/ vim /var/lib/tftpboot/pxelinux/pxelinux.cfg/default以下のように記載する.
default vesamenu.c32
prompt 1
timeout 600
display boot.msg
label Scientific Linux 7.3 nouveau=0
menu label Install SL 7.3 without ^Nouveau
menu default
kernel ../sl73/images/pxeboot/vmlinuz
append initrd=../sl73/images/pxeboot/initrd.img nouveau.modeset=0 inst.repo=ftp://.../scientific/7.3/x86_64/os
label local
menu label Boot from ^local drive
localboot 0xffff
label memtest86
menu label ^Memory test
kernel memtest
append -
Kernelとinitrdは次の手順で準備する.mkdir -p /var/lib/tftpboot/sl73/images/pxeboot
cd /var/lib/tftpboot/sl73/images/pxeboot wget ftp://.../scientific/7.3/x86_64/os/images/pxeboot/vmlinuz wget ftp://.../scientific/7.3/x86_64/os/images/pxeboot/initrd.img
label Scientific Linux Rolling nouveau=0
menu label Install SL ^Rolling without Nouveau
menu default
kernel ../sl7-rolling/images/pxeboot/vmlinuz
append initrd=../sl7-rolling/images/pxeboot/initrd.img nouveau.modeset=0 inst.repo=ftp://ftp.jaist.ac.jp/pub/Linux/scientific/7rolling/x86_64/os/
Kernelとinitrdを準備
$ mkdir sl7-rolling/ $ cd sl7-rolling/ $ wget -r -l 1 ftp://ftp.jaist.ac.jp/pub/Linux/scientific/7rolling/x86_64/os/images/ $ wget -r -l 1 ftp://ftp.jaist.ac.jp/pub/Linux/scientific/7rolling/x86_64/os/images/pxeboot/ $ mv ./ftp.jaist.ac.jp/pub/Linux/scientific/7rolling/x86_64/os/images/* ./
| 銀行 | 電信/小切手 | 手数料 | 外貨受取可能か? | USDのスプレッド | USDの金利 | メモ |
|---|---|---|---|---|---|---|
| 三井住友信託銀行 | 電信のみ | 無料 | Yes | 0.41円 (?) | 0.3% 普通預金 1.55% 1年定期預金 |
|
| ソニー銀行 | 電信送金 | 無料 | Yes | 0.15円 (往復) | 0.3% 普通預金 1.4% 2年定期預金 |
JP Morgan Chase銀行または三菱東京UFJ銀行を中継銀行として指定する必要あり |
| 新生銀行 | 電信送金 | 無料 | Yes | 0.30円 (往復) | 0.01% 普通預金 1.9% 3年定期預金 |
外貨預金の残高30万円以上でスプレッド0.18円 Linux上のFirefoxからアクセスできないページあり |
| 大和ネクスト銀行 | 電信のみ | 無料 | Yes | 0.50円 | 0.25% 普通預金 1.5% 3年定期預金 |
Citi bankを中継するらしい. 50,000USD (550万円くらい) 以上受け取ると手数料をキャッシュバック. |
| SMBC信託銀行 | ||||||
| 横浜銀行 | 小切手 | 3000円/1枚 + 750円/1手続き | 円で受取 |
Old Inkscape files use 1in == 90px, CSS requires 1in == 96px. Drawings meant to match a physical size (e.g. Letter or A4) will be too small. Scaling the drawing can correct for this. Internal scaling can be handled either by setting the SVG 'viewBox' attribute to compensate or by scaling all objects in the drawing.というメッセージが出るようになった. 私の場合は, 回路図などを単位をpxにして10pxグリッドで描いていた. その設定を維持したかったので, Ignore を選べば良いことが分かった. あるいは, SVGをエディタで編集して, svgタグの属性
inkscape:versionを以下のように書き換えてもOK.
inkscape:version="0.92+devel unknown"
f にはアクセスできるようだ.
>>> with open('/tmp/x.dat', 'w') as f:
... print f
... f.write('hello\n')
...
<open file '/tmp/x.dat', mode 'w' at 0x7f9eaf982c00>
>>> print f
<closed file '/tmp/x.dat', mode 'w' at 0x7f9eaf982c00>
上記は, Python 2.6.6 で試した.