[したいこと・しりたいこと・目標]
王冠マーク付きAnthyを使用する
Anthyでキー割り当てを変更する画面を出す
[環境]
Ubuntu Karmic Koala 9.10 on VMWare Fusion 3
#!/usr/bin/perl -w use IO::Socket; use strict; my $ip = "192.168.0.x"; my $mac = "\x00\x01\x02\x03\x04\x05"; my $sock = IO::Socket::INET->new( Proto => 'udp', PeerPort => 7, PeerAddr => $ip, ) or die "Could not create socket: $!\n"; my $secretPacket = "\xFF\xFF\xFF\xFF\xFF\xFF"; for (my $i =0; $i < 16; ++$i ) { $secretPacket = $secretPacket.$mac; } $sock->send($secretPacket) or die "Send error: $!\n";
#!/usr/bin/env python import socket s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) s.sendto('\xff'*6+'\x00\x01\x02\x03\x04\x05'*16, ('192.168.0.x', 7))
#!/bin/bash ethtool -s eth0 wol g exit
#!/bin/sh # Uncomment the following two lines for normal desktop: #unset SESSION_MANAGER #exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & twm &
#!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources #xsetroot -solid grey #vncconfig -iconic & #xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #twm &
$ vncserver :1
$ vncserver :1 -geometry 1024x768 -depth 16
$ vncserver :1 -geometry 1280x1024 -depth 24
$ vncserver xxx.xxx.xxx.xxx:1 -geometry 1280x1024 -depth 24
$ vmrun start /home/user_name/vmware/Ubuntu/Ubuntu.vmx nogui
$ vmrun start ~/vmware/Ubuntu/Ubuntu.vmx nogui
$ vmrun start vmware/Ubuntu/Ubuntu.vmx nogui