Skip to content

TelegramFromContainer

Adam Boardman edited this page Feb 13, 2018 · 5 revisions

Interesting thought the below diversion was, debian backports is probably a much more sensible way to get this package.

Add backports to your /etc/apt/sources.list

deb http://ftp.debian.org/debian stretch-backports main

Then you can just install:

sudo apt-get install telegram-desktop

Telegram shortcuts

  • Ctrl-q - quit

  • Ctrl-w - close

  • Ctrl-m - minimise

  • Ctrl-f - search

  • Esc - exit search mode

  • Alt-down/Ctrl-tab - next chat

  • Alt-up/Ctrl-shift-tab - previous chat


Telegram in a container - pointless see above

Create a lxc container (this version assumes prior lxc container network setup as per UseOtherRepositorys):

sudo lxc-create -n buster -t download

Select:

  • Distribution: debian
  • Release: buster
  • Architecture: arm64

Start the container:

sudo lxc-start -n buster

Attach as root and setup some basics:

sudo lxc-attach -n buster  
apt-get install nano dbus-x11 openssh-server sudo
adduser [USER]
adduser [USER] sudo
exit

Stop the container:

sudo lxc-stop -n buster

Configure X11 for use within this container.
Add these lines to /var/lib/lxc/buster/config (replace [USER] with your username):

lxc.mount.entry =/tmp/.X11-unix/X0 tmp/.X11-unix/X0 none rw,bind,create=file 0 0
lxc.mount.entry =/home/[USER]/.Xauthority home/[USER]/.Xauthority none rw,bind,create=file 0 0

Start the container:

sudo lxc-start -n buster

Attach to find the ip its been assigned:

sudo lxc-attach -n buster  
ifconfig
exit

Ssh into it:

ssh 10.0.3.xxx

Now you can install telegram-desktop:

sudo apt-get install telegram-desktop

Export your display:

export DISPLAY=:0

Run telegram:

telegram-desktop
Clone this wiki locally