banner
moeyy

moeyy

一条有远大理想的咸鱼。
github
mastodon
email

Install Wine-CoolQ using Docker and run CoolQ Air/Pro (QQ bot).

Note: CoolQ is probably the most widely used QQ bot software, and it is also very powerful. We can use it to achieve various functions such as QQ group management, friend chat, and daily convenience. Most of them are run on the Win system. Due to the official Docker image and the use of Wine to run CoolQ, we can also run it on the Linux system. Here's how.

Screenshots#

image

image

image

Installation#

Github Link: https://github.com/CoolQ/docker-wine-coolq

1. Install Docker

#CentOS 6
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update -y
yum -y install docker-io
service docker start
chkconfig docker on

#CentOS 7, Debian, Ubuntu
curl -sSL https://get.docker.com/  sh
systemctl start docker
systemctl enable docker

2. Install wine-coolq

docker run --restart=always --name wine-coolq -d \
-p 9000:9000 \
-v /coolq:/home/user/coolq \
-e VNC_PASSWD=moerats \
-e COOLQ_ACCOUNT=1234567 \
coolq/wine-coolq

Parameter explanation:

-p Map the internal web running port 9000 to the external 9000, you can modify the port yourself.
-v Map the internal CoolQ and its data folder /home/user/coolq to the external /coolq folder, you can modify the path yourself.
-e Environment variables, roughly there are 3 variables, the third one is not used, roughly as follows:
1. VNC_PASSWD is the VNC password. Note that the password cannot exceed 8 characters, default MAX8char.
2. COOLQ_ACCOUNT is the account to log in to CoolQ. After manually logging in for the first time, you can check the "Quick Login" function to enable automatic login. After that, when the docker container starts or CoolQ exits abnormally, it will automatically log in to your account.
3. COOLQ_URL is the address to download CoolQ, default is http://dlsec.cqp.me/cqa-tuling, which is CoolQ Air Turing version. Please make sure that the downloaded file can be extracted to CoolQ Air/CQA.exe or CoolQ Pro/CQP.exe.

After installation, access http://IP:9000, you can open a VNC page, enter the password, the default in the text is moerats, and you can see that a CoolQ Air has been started.

For CentOS systems, you also need to open port 9000, as follows:

#CentOS 6
iptables -I INPUT -p tcp --dport 9000 -j ACCEPT
service iptables save
service iptables restart

#CentOS 7
firewall-cmd --zone=public --add-port=9000/tcp --permanent
firewall-cmd --reload

Related commands:

#Start the image
docker start wine-coolq
#Restart the image
docker restart wine-coolq

Finally, if you want to install applications, first download the applications from the application community → Link, then transfer them to the folder mapped externally, such as /coolq/app, and then access VNC to enter the settings for installation. The rest is up to you to explore.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.