Telegram on linux container from Windows/Mac host.
929
x-telegram it is a telegram desktop app running inside Linux container,docker should be host by Windows and once docker image started it will be displayed in Windows screen using and Screen Server.
First need to install chocolatey.
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install vcxsrv
VcXServ can get started by UI or with the following command
cd %ProgramFiles%
cd VcXsrv
vcxsrv -multiwindow -ac
Create a docker container so you can start and stop and it will keep the configuration made.
docker create --name=telegram -e TZ=<your_timezone> -e DISPLAY=<your-ip>:0.0 pkos/x-telegram
<your-ip> should be your docker host IP.<timezone> your timezone, e.g. Europe/London. This is optionalIt will pull the pkos/x-whatspp image and will create with telegram name
if you don't know it run ipconfig find the Ethernet adapter vEthernet (DockerNAT) and grab the IP
Or you can run:
netsh interface ip show config name="vEthernet (DockerNAT)" | findstr "IP Address"
and you will receive the IP information as following:
IP Address: 10.0.75.1
docker start telegram
docker stop telegram
In the case you have the scripts for install and run.
.\install.ps1 -timezone "America/La_Paz"
Where -timezone is optional, it should be your timezone e.g. Europe/London
Add the permissions (only the first time)
chmod a+x install.sh
Then run
./install.sh
Run in powershell the script start.ps1 with the following parameter
.\start.ps1
You can create a shortcut and on the target field add the following:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "[Path\To\start.ps1]"
Add the permissions (only the first time)
chmod a+x start.sh
Then run
./start.sh
First you have to install xquartz, try installing from brew
brew install xquartz
if you can't find the package try with
cd ~/Downloads
wget https://dl.bintray.com/xquartz/downloads/XQuartz-2.7.11.dmg
hdiutil attach XQuartz-2.7.11.dmg
cd /Volumes/XQuartz-2.7.11/
sudo installer -pkg XQuartz.pkg -target /
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" &
Find your ip using ifconfig or you can run the command below to grab it and save into $ip variable
ip="$(ifconfig | grep inet | grep -v inet6 | grep -v 127.0.0.1 | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | grep -v 255)"
docker create --rm --name=telegram -e DISPLAY="$ip:0.0" pkos/x-telegram
$ip is your IP got from previous command.run xquartz
open -a Xquartz
It will start a white console, if you are running for the first time please check Allow connections from network clients going to Preferences > Security
docker start telegram
docker stop telegram
Content type
Image
Digest
Size
175.7 MB
Last updated
over 7 years ago
docker pull pkos/x-telegram