aboutsummaryrefslogtreecommitdiff
path: root/StrapCentOS.wiki
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-03-01 15:32:35 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-03-01 15:32:35 +0100
commit04351cc41f96ddb845e1575786023b81069dabf9 (patch)
treeff67183492fccb1cea97262f8464fa7b8c9508df /StrapCentOS.wiki
parentSat, 13 Feb 2021 19:07:28 +0100 (diff)
downloadwiki-public-04351cc41f96ddb845e1575786023b81069dabf9.tar.gz
wiki-public-04351cc41f96ddb845e1575786023b81069dabf9.tar.xz
Mon, 01 Mar 2021 15:32:34 +0100
Diffstat (limited to 'StrapCentOS.wiki')
-rw-r--r--StrapCentOS.wiki99
1 files changed, 99 insertions, 0 deletions
diff --git a/StrapCentOS.wiki b/StrapCentOS.wiki
new file mode 100644
index 0000000..bcb7169
--- /dev/null
+++ b/StrapCentOS.wiki
@@ -0,0 +1,99 @@
+https://www.sidorenko.io/post/2016/07/creating-container-base-image-of-centos/
+
+=== packages ===
+
+- iproute :: ip
+- iputils :: ping
+
+from host
+{{{bash
+docker pull centos:latest
+docker run --mount type=bind,source=/,destination=/mnt -it centos:latest bash
+
+# this location doesn't seem to work
+# but /run/systemd/nspawn/teams.nspawn does
+cat - > /var/lib/machines/teams.nspawn << EOF
+[Exec]
+ResolvConf=copy-hist
+
+[Network]
+Private=0
+
+[Files]
+Bind=/tmp/.X11-unix:/tmp/.X11-unix
+
+EOF
+}}}
+
+
+from docker
+{{{bash
+dest=/mnt/var/lib/machines/teams
+
+cd /tmp
+yum reinstall --downloadonly --downloaddir . centos-relesae
+rpm --root $dest -ivh --nodeps centos*.rpm
+
+cp -arv /etc/yum.repos.d $dest/etc
+yum -y --installroot=$dest --setopt=override_install_langs=en_US.utf8 install $pkg
+}}}
+
+host
+{{{bash
+cat - > /var/lib/machines/teams/etc/yum.repos.d/teams.repo << EOF
+[teams]
+name=teams
+baseurl=https://packages.microsoft.com/yumrepos/ms-teams
+enabled=1
+gpgcheck=1
+gpgkey=https://packages.microsoft.com/keys/microsoft.asc
+EOF
+
+# clear cache, since local root isn't global root
+rm -r /var/lib/machines/teams/var/cache/*
+
+[root@gandalf lib]# chown -R 1344143360:1344143360 .build-id/
+}}}
+
+https://docs.microsoft.com/en-us/microsoftteams/get-clients
+{{{
+sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
+
+sudo dnf check-update
+sudo dnf install teams
+
+yum install
+libX11-xcb
+libXcursor
+libXdamage
+libXi
+nspr
+
+libproxy
+fribidi
+avahi # avahi-libs
+libdatrie
+graphite2
+}}}
+
+libasound2 libatk-bridge2.0-0 libcairo2 libcups2 libgdk-pixbuf2.0-0 \
+libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 \
+libsecret-1-0 libx11-xcb1 libxcomposite1 libxcomposite1 \
+libxss1 apt-transport-https libxkbfile1
+
+libproxy.so.1: cannot open shared object file: No such file or directory
+Failed to load module: /usr/lib64/gio/modules/libgiolibproxy.so
+g_module_open() failed for /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tiff.so: libtiff.so.5: cannot open shared object file: No such file or directory
+
+
+yum install xterm libpng libxcb
+
+X permissions
+https://stackoverflow.com/questions/25281992/alternatives-to-ssh-x11-forwarding-for-docker-containers
+`xhost +` allows everything from everyone
+
+
+https://techcommunity.microsoft.com/t5/microsoft-teams/how-to-install-msteam-in-docker/m-p/1849168
+https://gist.github.com/demaniak/c56531c8d673a6f58ee54b5621796548
+
+yum group install workstation