
Dentro de mi trabajo actual me pidieron instalar una GUI y xrdp a uno de los servers RHEL que se tienen, pero como en muchos ambientes corporativos la maquina no contaba con salida a internet (solo tenian un repo local con ciertos paquetes disponibles), asi que me tope con este pequeño desafio y se los quiero compartir. (no se ofendan por favor gurús de la seguridad empresarial)
Resumen:
A partir de una imagen docker Rocky Linux 8.10 (opensource y compatible con RHEL) en una maquina con acceso a internet vamos a descargar xrdp y todas sus dependencias, para luego copiarlos a nuestro servidor RHEL que no cuenta con salida a internet para proceder con la instalacion. Para esta practica emplearé una VM con RHEL 8.10 con licencia “Access for developers”.
En mi caso optar por una imagen docker fue mas rapido ya que lo tenia instalado y solo me quedaba bajar la imagen de rocky linux, aunque tambien es valido si tienen una maquina virtual.
Escenario:
- Maquina 1, con imagen docker Rocky Linux (maquina con internet)
- Maquina 2 (RHEL) (maquina sin internet)
- Server with GUI fue instalado en Maquina 2, para contar con el entorno de escritorio.
1. Descargar Xrdp y dependencias
En la maquina con acceso a internet arrancamos la imagen docker rockylinux:8 y ejecutamos bash
docker run -it rockylinux:8 /bin/bash
Actualizamos paquetes e instalamos wget:
dnf update -y
dnf install -y wget zip
Instalamos EPEL ya que xrdp se encuentra en este repositorio.
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install -y --downloadonly --downloaddir=/tmp/xrdp-packages xrdp
zip -r /tmp/xrdp-packages.zip /tmp/xrdp-packages
El archivo .zip ahora contiene los rpm de xrdp y sus dependencias. Debemos pasar esto de alguna manera al server RHEL sin acceso a internet.
2. Copiar zip que contiene xrdp y dependencias a server RHEL
Para este proposito hay varias maneras y va depender de las posibilidades en su infraestructura.
En mi caso y para este tutorial copiaremos el archivo al server RHEL mediante SFTP.
docker cp ID_CONTAINER:/tmp/xrdp-packages.zip PATH_DONDE_GUARDAR_EN_MAQUINA1
3. Instalar Xrdp de manera offline en server RHEL
Nos conectamos al server RHEL e instalamos dependencias (si hace falta).
sudo dnf install -y zip
Pasamos a descomprimir el xrdp-packages.zip copiado, instalar y habilitar el servicio.
unzip xrdp-packages.zip
sudo dnf install -y tmp/xrdp-packages/*.rpm
sudo systemctl enable xrdp --now
## Reglas para el firewall
sudo firewall-cmd --permanent --add-port=3389/tcp
sudo firewall-cmd --reload
Con estos pasos concluimos la instalacion de xrdp y ya podremos desde algun cliente xrdp conectarnos a nuestra maquina RHEL.
Espero les haya sido de utilidad y cualquier duda no duden en dejar comentarios.
IjTxK EPGpx WkrycN dgThyDJP
BWkNlmYi QHdVWT fYEZn
3bqxej
Hello there, I do think your blog may be having internet browser compatibility problems. Whenever I look at your blog in Safari, it looks fine however when opening in Internet Explorer, it has some overlapping issues. I merely wanted to give you a quick heads up! Apart from that, fantastic website!
xAA BEFt OBc
I know this web site provides quality dependent
content and extra material, is there any other web site which
gives such information in quality?
my website nordvpn coupons inspiresensation
Wow, amazing blog format! How long have you ever been running a blog for?
you made running a blog look easy. The whole look of your web site is fantastic,
as smartly as the content material!
Feel free to visit my website; nordvpn coupons inspiresensation (http://ur.link/nordvpn-coupons-inspiresensation–15661)
Your method of telling the whole thing in this piece of writing is
genuinely fastidious, every one can simply be aware of it,
Thanks a lot.
Look at my webpage – nordvpn coupons inspiresensation [tinyurl.com]
whoah this weblog is magnificent i like reading your posts.
Stay up the good work! You realize, a lot of individuals are searching around for this info, you could aid them
greatly.
My homepage; nordvpn coupons inspiresensation
Thank you a bunch for sharing this with all of us you really understand what you are talking
approximately! Bookmarked. Please additionally discuss with my website =).
We could have a hyperlink trade contract among us
Here is my homepage :: nordvpn coupons Inspiresensation (http://Tinyurl.com/)
continuously i used to read smaller posts that also clear their motive, and that is also happening with this article which I
am reading at this place.
Here is my homepage: nordvpn coupons inspiresensation (t.co)
What’s up to every , as I am actually eager of reading this web site’s
post to be updated regularly. It consists of nice material.
Also visit my blog … nordvpn coupons inspiresensation
I have read so many posts regarding the blogger lovers except
this piece of writing is truly a nice piece of writing, keep it up.
Check out my web-site nordvpn coupons inspiresensation
Write more, thats all I have to say. Literally,
it seems as though you relied on the video to make your point.
You definitely know what youre talking about, why waste your intelligence on just posting
videos to your blog when you could be giving us
something enlightening to read?
my web page nordvpn coupons inspiresensation
I every time used to read post in news papers but
now as I am a user of internet therefore from now I am using net for content, thanks to web.
Also visit my web blog: Nordvpn Coupons inspiresensation
Good day! I could have sworn I’ve been to this
website before but after checking through some of
the post I realized it’s new to me. Nonetheless, I’m definitely happy I found it and
I’ll be book-marking and checking back frequently!
Also visit my site :: nordvpn coupons inspiresensation,
da.gd,
I do not know if it’s just me or if everyone else encountering issues with your site.
It appears as if some of the text in your posts are running off the screen. Can someone else please provide feedback and let me know if
this is happening to them as well? This could be a problem with my web browser because
I’ve had this happen before. Thank you
Feel free to visit my site nordvpn coupons Inspiresensation
What a stuff of un-ambiguity and preserveness of precious know-how on the topic
of unpredicted emotions.
Feel free to visit my web page – nordvpn coupons inspiresensation
Wow, that’s what I was searching for, what a material!
present here at this weblog, thanks admin of this web site.
Also visit my homepage :: nordvpn coupons inspiresensation (http://cia.sh/nordvpn-coupons-inspiresensation–55550)
Generally I don’t learn post on blogs, but I would like to say that this write-up very pressured me
to check out and do it! Your writing style has been amazed me.
Thanks, quite nice article.
Visit my homepage; nordvpn coupons Inspiresensation
For the reason that the admin of this website is working, no
doubt very quickly it will be famous, due to its quality contents.
Feel free to visit my page; Nordvpn Coupons inspiresensation
First off I want to say terrific blog! I had a quick question which I’d like to ask if
you don’t mind. I was interested to know how you center yourself and clear your
thoughts before writing. I have had a tough time clearing my
thoughts in getting my ideas out there. I do enjoy writing but it just seems like the first
10 to 15 minutes tend to be wasted just trying to figure out how to
begin. Any ideas or tips? Kudos!
Feel free to visit my blog post: nordvpn coupons inspiresensation (t.co)
For newest news you have to visit world-wide-web and on internet
I found this web site as a best website for hottest updates.
Feel free to visit my web-site: nordvpn coupons inspiresensation
Hi there, I do think your blog could possibly be having web browser compatibility
issues. Whenever I take a look at your web site in Safari, it looks fine however when opening in Internet Explorer, it has
some overlapping issues. I just wanted to give you a quick heads
up! Besides that, fantastic website!
Also visit my homepage: nordvpn coupons inspiresensation (http://cfg.me)
Hi there, after reading this amazing paragraph i am also delighted
to share my know-how here with mates.
My web page – nordvpn coupons inspiresensation – easyurl.cc,
I am truly grateful to the owner of this site who has shared this fantastic article at here.
Here is my web page nordvpn coupons inspiresensation
Excellent pieces. Keep writing such kind of info on your blog.
Im really impressed by your blog.
Hey there, You’ve performed an incredible job.
I will certainly digg it and individually suggest to my friends.
I’m sure they will be benefited from this website.
My web page :: nordvpn coupons inspiresensation (http://ourl.In/@nordvpn-coupons-50999)
nordvpn promo code 350fairfax
This is my first time pay a visit at here and i am really happy to read everthing at single place.
g9hwog
трековые натяжные потолки https://potolkilipetsk.ru/ .