How to Install GNOME Desktop And XRDP with Audio Redirection in CentOS 7. If anyone has knowledge about this than help. Thank you in advance.
How to Install GNOME Desktop And XRDP
Collapse
Unconfigured Ad Widget
Collapse
X
-
Consider following steps to install GNOME Desktop and XRDP with audio redirection in CentOS 7.
1. Access the CentOS 7 server by logging in.
2. Install the GNOME Desktop Environment:
Use the following command to install the GNOME Desktop package group, which will install all the necessary packages for the GUI installation:
yum groupinstall "GNOME DESKTOP" -y
3. Install XRDP on CentOS 7:
3.1 Update the package index:
yum update -y
3.2 Install XRDP and start the XRDP service:
yum install xrdp -y
systemctl enable xrdp
systemctl start xrdp
3.3 Open TCP port 3389 for RDP on the firewall:
firewall-cmd --add-port=3389/tcp --permanent
firewall-cmd --reload
4. Test the XRDP connection:
4.1 Press "win+R" on the keyboard and type "mstsc" to launch the Remote Desktop Connection application. Then, enter your hostname or IP.
4.2 Input the username "root" and the server password, then click "OK" to connect to the server.
4.3 Congratulations! You have successfully connected to your CentOS 7 server via xRDP using GNOME.
5. Install audio redirection:
5.1 Install build tools and package development tools:
yum groupinstall "Development Tools" -y
yum install rpmdevtools yum-utils -y
rpmdev-setuptree
5.2 Install pulseaudio and the required packages to build pulseaudio:
yum install pulseaudio pulseaudio-libs pulseaudio-libs-devel -y
yum-builddep pulseaudio -y
5.3 Fetch the pulseaudio source and extract it:
Fetch the pulseaudio source and extract it. You will see "~/rpmbuild/BUILD/" directory.
yumdownloader --source pulseaudio
useradd mockbuild
usermod -G mockbuild mockbuild
rpm --install pulseaudio*.src.rpm
5.4 Build the pulseaudio source:
rpmbuild -bb --noclean ~/rpmbuild/SPECS/pulseaudio.spec
5.5 Build the xrdp source/sink modules:
You will have two .so files: module-xrdp-sink.so and module-xrdp-source.so.
git clone https://github.com/neutrinolabs/puls...odule-xrdp.git
cd pulseaudio-module-xrdp
./bootstrap && ./configure PULSE_DIR=~/rpmbuild/BUILD/pulseaudio-10.0
6. Done.
-
Comment