After ubuntu gnome desktop, I got comments for Debian Gnome desktop,
So here it is, as the video i uploaded with gnome desktop in ubuntu, but that works with ubuntu 18.04 as it the most stable release of ubuntu yet,
but, Ubuntu announced that ubuntu 18.04 will end at 31st may, means that we won't be able to use ubuntu 18.04 after the deadline.
So now its time to use debian with Gnome, which is the best distribution I have ever used.
So in this article, I will walk you through to setup gnome desktop with debian.
Prerequisite
Installation
So go ahead and launch termux,
now before installing anything, we will update our repositories,
pkg update
Next we need to install proot-distro,
pkg install proot-distro -y
Then execute following to install debian,
proot-distro install debian
now we will create a shortcut to log into debian,
echo "proot-distro login debian --bind /dev/null:/proc/sys/kernel/cap_last_cap" >> $PREFIX/bin/debian
Then give executable permission to it,
chmod +x $PREFIX/bin/debian
now just execute debian to launch it.
debian
now here before doing anything further we will add colors to it, so rm existing .bashrc file
rm ~/.bashrc
Copy a new one,
cp /etc/skel/.bashrc ~
Then execute following,
and What this will do is change prompt color to red,
now just exit,
exit
And login again
debian
Now we have that colors,
next update your repositories,
apt update
Then execute following to install minimal gnome desktop,
apt install gnome-shell gnome-terminal gnome-tweaks gnome-shell-extension-dashtodock dbus-x11 tigervnc-standalone-server gedit nano -y
This will take some time, so wait till it is finished,
And that we have to configure vnc, so create a vnc directory
mkdir .vnc
then open xstartup file
nano .vnc/xstartup
And paste following in it,
#!/bin/sh
export XDG_CURRENT_DESKTOP="GNOME"
service dbus start
gnome-shell --x11
Then just save it with CTRL X Y AND enter
give executeable permission to it
chmod +x .vnc/xstartup
Now execute following to start vncserver,
vncserver
Now go to vnc viewer, click a connection with localhost:1 and conect to it.
Next we need to fix sound here,
So go to termux, not in debian, and install pulseaudio,
pkg install pulseaudio -y
Then open .bashrc file,
nano .bashrc
And paste following in it,
echo "pulseaudio --start --load='module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1' --exit-idle-time=-1" >> ~/.bashrc ; bash
then save it with CTRL X Y and enter,
Now go to debian and exexute following,
echo "export PULSE_SERVER=127.0.0.1" >> ~/.bashrc ; bash
Now you will get sound working there and also if you are not getting sound in firefox,
Watch this video,
So, That's how you can install Gnome desktop with Debain in Termux.
Can any Android 13 phone work? Why does my phone always fail? My test installation phone is Fairphone 4. Please help me! Thank you! txh1122@live.com
ReplyDeleteIt doesn't work. Crash after executing vncserver command
ReplyDelete