Skip to content

Instantly share code, notes, and snippets.

@RyosukeKamei
Last active July 29, 2017 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyosukeKamei/09c6d6c42dca3e2c9d8f50c3c85a10f3 to your computer and use it in GitHub Desktop.
Save RyosukeKamei/09c6d6c42dca3e2c9d8f50c3c85a10f3 to your computer and use it in GitHub Desktop.
Raspberry Pi 3インストール→無線LAN→日本語入出力→Macから操作(SSH・VNCサーバ・AFP) ref: http://qiita.com/RyosukeKamei/items/5ecf2aa5d5cda848fe51
$ sudo apt-get install netatalk
#! /bin/sh
# /etc/init.d/vncboot
### BEGIN INIT INFO
# Provides: vncboot
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VNC Server at boot time
# Description: Start VNC Server at boot time.
### END INIT INFO
USER=pi
HOME=/home/pi
export USER HOME
case "$1" in
start)
echo "Starting VNC Server"
#Insert your favoured settings for a VNC session
su $USER -c '/usr/bin/vncserver :1 -geometry 1440x900 -depth 24'
;;
stop)
echo "Stopping VNC Server"
su $USER -c '/usr/bin/vncserver -kill :1'
;;
*)
echo "Usage: /etc/init.d/vncboot {start|stop}"
exit 1
;;
esac
exit 0
$ sudo apt-get install tightvncserver
$ sudo vi /etc/init.d/vncboot
$ sudo reboot
$ sudo apt-get install fonts-takao ibus-mozc
$ sudo update-rc.d vncboot defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment