Skip to content

How to Install & Run Wechaty in Linux Server #48

@lijiarui

Description

@lijiarui

Steps:

1.install nvm:

curl https://raw.githubusercontent.com/creationix/nvm/v0.11.1/install.sh | bash

2.install node

nvm install 6
nvm alias default 6

3.install git and clone repo

sudo apt-get install git
git clone https://github.com/wechaty/wechaty.git

4.install google chrome for debian

sudo apt-get update
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
sudo apt-get install -f

5.wechaty operation:

cd wechaty
npm install
cd script
bash xvfb.sh
export DISPLAY=':99.0'

6.run wechaty:

go back wechaty directory

cd example
npm run ts-node example/ding-dong-bot.ts

then run wechaty successfuly:

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions