Skip to content

Instantly share code, notes, and snippets.

@puilp0502
Created May 13, 2019 18:49
Show Gist options
  • Save puilp0502/92c7134b8a023ab7664a871406e9bbf2 to your computer and use it in GitHub Desktop.
Save puilp0502/92c7134b8a023ab7664a871406e9bbf2 to your computer and use it in GitHub Desktop.
우분투에서 Wine과 Winetricks 사용해서 카카오톡 설치
#!/bin/bash
# install_kakaotalk.sh: Installs KakaoTalk using wine and winetricks
# Created at 2019-05-14 by Frank Yang (puilp0502@gmail.com)
# Tested on Ubuntu 18.04 (bionic beaver)
# Ubuntu older than 16.04, or any other distribution is not supported
export WINEPREFIX=~/.kakao_a
export WINEARCH=win32
source /etc/os-release
if [[ $ID != "ubuntu" ]]; then
echo "This script only supports ubuntu; your distribution is $ID. Aborting..."
exit -1
fi
cd "$(mktemp -d)"
echo "[ Adding winehq key ]"
wget -nc -q https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
echo "[ Adding repository ]"
REPOSITORY="deb https://dl.winehq.org/wine-builds/ubuntu/ $UBUNTU_CODENAME main"
sudo add-apt-repository "$REPOSITORY"
# sudo apt update
echo "[ Installing wine & winetricks ]"
sudo apt install --install-recommends winehq-staging
sudo apt install winetricks
echo "[ Configuring wine prefix ]"
echo " using wine prefix: $WINEPREFIX"
winetricks wmp9 msxml6 riched30 corefonts cjkfonts win7
echo "[ Installing KakaoTalk ]"
echo "! Warning: Do not launch KakaoTalk after installation !"
wget http://app.pc.kakao.com/talk/win32/KakaoTalk_Setup.exe
wine KakaoTalk_Setup.exe
echo "Installation complete!"
echo "You can find your KakaoTalk installation in $WINEPREFIX."
echo "If you created desktop shortcut while installing, you will find KakaoTalk in your launcher."
echo "To launch KakaoTalk manually, use the following command:"
echo "WINEPREFIX=$WINEPREFIX wine $WINEPREFIX/drive_c/Program\ Files/Kakao/KakaoTalk/KakaoTalk.exe"
echo "(Use the installation directory of KakaoTalk)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment