Thursday, March 4, 2021

pidgin complie and plugin discord & skype (For wsl ubuntu)

rm -r mydir     #remove all 
 
sudo apt-get install -y make libpurple-dev libjson-glib-dev gcc

 

Plugin  DISCORD

sudo apt-get install -y imagemagick gettext
git clone git://github.com/EionRobb/purple-discord.git
cd
purple-discord make sudo make install
//////////////////////////////////////////////// 
Plugin  Skype 
sudo apt-get install libpurple-dev libjson-glib-dev cmake gcc
git clone git://github.com/EionRobb/skype4pidgin.git
cd skype4pidgin/skypeweb
mkdir build
cd build
cmake ..
cpack

To install do:

sudo dpkg -i skypeweb-1.x.x-Linux.deb
 
///////////////////////////////////////// 
Prepare for build pidgin
sudo apt-get build-dep pidgin 

E: You must put some 'deb-src' URIs in your sources.list
sudo nano /etc/apt/source.list
remove # on deb-scr

sudo apt-get update
 
//////////////////////////////////////// 
Prepare source pidgin for Mercurial
sudo apt install -y mercurial
sudo nano ~/.hgrc
[ui]
username = Prapop Puapermpoonsiri <prapopp@hotmail.com> verbose = True
merge = meld [diff] git = True

[defaults]
log = -v


hg clone https://keep.imfreedom.org/pidgin/pidgin/ pidgin
cd pidgin
hg up release-2.x.y
./autogen.sh && make && sudo make install
 

WSL for window10 and remote desktop

WSL commands: 
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2

Download ubuntu wsl from microsoft store


Ubuntu commands:

sudo apt update && sudo apt -y upgrade

sudo apt-get install -y xrdp xfce4 xfce4-goodies

configure :
sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini
sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini
echo xfce4-session > ~/.xsession

sudo nano /etc/xrdp/startwm.sh
comment these lines to:
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession

add these lines:
# xfce
startxfce4

sudo /etc/init.d/xrdp start

Now in Windows, use Remote Desktop Connection
localhost:3390
then login with Xorg, fill in your username and password.

Youtube easy

 ssyoutube.com --> MP4

youtubex2.com --->MP3