Tutorials Archives - IB Computing https://ibcomputing.com/category/tutorial/ IB Computing - Daily updates of web development Mon, 14 Feb 2022 12:09:51 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.5 https://i0.wp.com/ibcomputing.com/wp-content/uploads/2018/01/cropped-ibwelcome.png?fit=32%2C32&ssl=1 Tutorials Archives - IB Computing https://ibcomputing.com/category/tutorial/ 32 32 141546849 Setting up WhatsApp Telegram Bridge Using Matterbridge 2020 https://ibcomputing.com/setting-up-whatsapp-telegram-bridge-using-matterbridge-2020/ https://ibcomputing.com/setting-up-whatsapp-telegram-bridge-using-matterbridge-2020/#comments Fri, 11 Sep 2020 14:12:49 +0000 https://ibcomputing.com/?p=1633 Two years ago I wrote an article about bridging WhatsApp and Telegram groups together. But that solution isn’t working anymore. So I figured out another …

The post Setting up WhatsApp Telegram Bridge Using Matterbridge 2020 appeared first on IB Computing.

]]>
Two years ago I wrote an article about bridging WhatsApp and Telegram groups together. But that solution isn’t working anymore. So I figured out another method using WhatsApp web. The brdiging software we are going to use for this is called matterbridge. the software we use is matterbrige. This bridge is not only for Whatsapp and Telegram but for So many messaging protocols.

Natively supported apps

  • Discord
  • Gitter
  • IRC
  • Keybase
  • Matrix
  • Mattermost 4.x, 5.x
  • Microsoft Teams
  • Nextcloud Talk
  • Rocket.chat
  • Slack
  • Ssh-chat
  • Steam
  • Telegram
  • Twitch
  • WhatsApp
  • XMPP
  • Zulip

The whatsapp linking part is based on go-whatsapp which is a Go version of  whatsapp-web-reveng.

I think that’s enough for the intro, let’s get back to the main point 🙂

Install and Run

Download the latest version from here
select the required package. im using linux for this tutorial so i select matterbridge-1.18.3-linux-64bit (this version will change)
then move to the Configuration part

Step 1

Create an empty matterbridge.toml file inside a folder contains downloaded matterbridge binary file.

Step 2

Copy the following contents to the newly created matterbridge.toml file:

[telegram.mytelegram]
#See https://core.telegram.org/bots#6-botfather 
#and https://www.linkedin.com/pulse/telegram-bots-beginners-marco-frau
Token="Yourtokenhere"
RemoteNickFormat="({PROTOCOL}) <{NICK}> "
MessageFormat="HTMLNick"

[whatsapp.mywhatsapp]
# Number you will use as a relay bot. Tip: Get some disposable sim card, don't rely on 
# your own number.
Number="+48111222333"

# First time that you login you will need to scan QR code, then credentials will be saved in 
# a session file. 
# If you won't set SessionFile then you will need to scan QR code on every restart.
# optional (by default the session is stored only in memory, till restarting matterbridge)
SessionFile="session-48111222333.gob"

# If your terminal is white we need to invert QR code in order for it to be scanned properly
# optional (default false)
QrOnWhiteTerminal=false

# Messages will be seen by other WhatsApp contacts as coming from the bridge. 
# Original nick will be part of the message.
RemoteNickFormat="[{PROTOCOL}] @{NICK}: "
Step 3

Change the Token and Server keys above to yours. For more details you may watch this video.

In Telegram, go to botfather and create a bot and paste the token as Token="Yourtokenhere"
Enter your whatsapp number as Number="+48111222333"

Step 4

Add the gateway configuration to your config file.

[[gateway]]
name="gateway1"
enable=true

[[gateway.inout]]
account="whatsapp.mywhatsapp"
channel="[email protected]"

[[gateway.inout]]
account="telegram.mytelegram"
channel="-xxxxx"
Step 5

Now your configuration file should look like this:

[telegram.mytelegram]
#See https://core.telegram.org/bots#6-botfather 
#and https://www.linkedin.com/pulse/telegram-bots-beginners-marco-frau
Token="1279548291:AAFg3s7F-JQlQQlucSBf3PGwyOss2Vog0J4"
RemoteNickFormat="({PROTOCOL}) <{NICK}> "
MessageFormat="HTMLNick"

[whatsapp.mywhatsapp]
# Number you will use as a relay bot. Tip: Get some disposable sim card, don't rely on 
# your own number.
Number="+48111222333"

# First time that you login you will need to scan QR code, then credentials will be saved in 
# a session file. 
# If you won't set SessionFile then you will need to scan QR code on every restart.
# optional (by default the session is stored only in memory, till restarting matterbridge)
SessionFile="session-48111222333.gob"

# If your terminal is white we need to invert QR code in order for it to be scanned properly
# optional (default false)
QrOnWhiteTerminal=false

# Messages will be seen by other WhatsApp contacts as coming from the bridge. 
# Original nick will be part of the message.
RemoteNickFormat="[{PROTOCOL}] @{NICK}: "

[[gateway]]
name="gateway1"
enable=true

[[gateway.inout]]
account="whatsapp.mywhatsapp"
channel="[email protected]"

[[gateway.inout]]
account="telegram.mytelegram"
channel="-xxxx"
Step 6

Find channel ID for Telegram and WhatsApp. Finding Telegram group ID is relatively easy.  You can use the Telegram bot API to get the group ID. But I’m taking a simple shortcut here.  Adding another bot to retrieve group ID, which is @tchncs_bot. This is a bot that bridges Matrix and Telegram groups. Just add the bot and sending the message /id (including the forward slash, which makes the message a command) will return the group ID.

Unlike in Telegram’s case, finding channel name in WhatsApp isn’t that easy. I couldn’t find any easier method from matterbridge documentation as well. So enter your WhatsApp group name there and run the bridge (Warning: you will definitely get an error!)

Step 7

Run it with the following command (change the version number if you are using later version)
./matterbridge-1.18.3-linux-64bit -conf matterbridge.toml

Now you can see a QR code in terminal. If it is too big that you weren’t able to scan it, then zoom in the terminal and try again. Then scan the QR code with WhatsApp web option from your mobile phone. Now your WhatsApp web is connected with the matterbridge. Next step is to identify the channel name for WhatsApp. By checking the terminal output you can see your group name and a number that ends with @g.us. Copy that and paste it in the channel part of WhatsApp and run again. Now your bridge is ready and it will start working. You can also share image, files and audios using this bridge. If you want to bridge multiple groups the gateway part can be changed to

[[gateway]]
name="gateway1"
enable=true

[[gateway.inout]]
account="whatsapp.mywhatsapp"
channel="[email protected]"

[[gateway.inout]]
account="telegram.mytelegram"
channel="-xxxx"

[[gateway]]
name="gateway2"
enable=true

[[gateway.inout]]
account="whatsapp.mywhatsapp"
channel="[email protected]"

[[gateway.inout]]
account="telegram.mytelegram"
channel="-xxxx"

 

Drawbacks

This brdige reies on WhatsApp web. So if you have to make this solution work, you should be online on both mobile as well as on WhatsApp web all the time. Other solution you could try is to run any emulator on server. Also, the matterbridge should be running all the time. So you have to choose a server for that. Cloudcone provides low cost servers with good quality. You can use this link to using cloudcone.

The post Setting up WhatsApp Telegram Bridge Using Matterbridge 2020 appeared first on IB Computing.

]]>
https://ibcomputing.com/setting-up-whatsapp-telegram-bridge-using-matterbridge-2020/feed/ 6 1633
How to change font in telegram desktop in Linux and Windows https://ibcomputing.com/change-font-in-telegram-desktop/ https://ibcomputing.com/change-font-in-telegram-desktop/#comments Tue, 10 Mar 2020 08:59:38 +0000 https://ibcomputing.com/?p=1618 Telegram Desktop is a wonderful application to access Telegram in computer. This applications is available for Gnulinux, Windows and Mac. But the main problem of …

The post How to change font in telegram desktop in Linux and Windows appeared first on IB Computing.

]]>
Telegram Desktop is a wonderful application to access Telegram in computer. This applications is available for Gnulinux, Windows and Mac. But the main problem of Telegram Desktop is that, we cant change default font from the settings. this makes lot of readability issues in so many languages other than Latin based.  Let see how we can Change font in Telegram desktop application using some quick change in the system.

We have to change the font globally because Telegram doesn’t have the option to change font.

Telegram Desktop
changed font in Telegram Desktop

Change font in Telegram desktop application in Gnu-Linux OS

Create a file at the location ~/.config/fontconfig/fonts.conf

and add the following content to it. It sets default sans-serif font to Meera and serif font to Rachana. change the font name as your wish

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!— —>
<fontconfig>
<!— Generic name aliasing —>
<alias>
<family>sans-serif</family>
<prefer>
<family>Meera</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Rachana</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Liberation Mono</family>
</prefer>
</alias>
</fontconfig>

then run

 fc-cache -v.

and restart Telgram Desktop application. this will also change your fonts in all applications like browser.

In – Windows Operating System

Open Registy editor

press Win+R and type regedit

go to the location given below

HKEY_LOCAL_MACHINE
SOFTWARE
Microsoft
Windows NT
CurrentVersion
FontSubstitutes

Change Value of “MS Shell Dlg 2” to the font name

I don’t have a Mac system, if anyone of you know about it add it in comments. This will change the fonts in Telegram Desktop application.

 

The post How to change font in telegram desktop in Linux and Windows appeared first on IB Computing.

]]>
https://ibcomputing.com/change-font-in-telegram-desktop/feed/ 3 1618
Create A Simple Presentation using Reveal js and Markdown https://ibcomputing.com/build-presentations-with-reveal-js-and-markdown/ https://ibcomputing.com/build-presentations-with-reveal-js-and-markdown/#respond Sat, 22 Feb 2020 06:13:44 +0000 https://ibcomputing.com/?p=1609 Presentations are important to share something to others. we have Office software such as Libre office impress, Microsoft Office PowerPoint, google Slides to do this …

The post Create A Simple Presentation using Reveal js and Markdown appeared first on IB Computing.

]]>
Presentations are important to share something to others. we have Office software such as Libre office impress, Microsoft Office PowerPoint, google Slides to do this task. Today I am going to tell you how you can Build Presentations with Reveal.js and markdown file.

Reveal js is a JavaScript package to create web slides.  official website itself a presentation demo.  it also provides a free online editor to create slides . but it needs an account to start. just go to slide.com for making one.  lets see how we can create a web slide using a markdown file.

Build Presentations with Reveal.js and markdown

Build Presentations with Reveal.js and markdown

Before we start we have to install the following packages into the system.

execute these commands to install the packages in Ubuntu. Other operating systems have there own package manager commands.

git : sudo apt-get install git
pandoc : sudo apt-get install pandoc

step 1 : Create a Markdown File with headings and list items. an example here

django-intro.md

% Django Introduction
% Mujeeb Rahman K
% February 09, 2020

# Django

## Why Django
* Django is a Web framework written in Python
* Don't reinvent the wheel.
* 216 K packages in python package index

step 2 : clone or download Revealjs into the same folder which contains the above markdown file

git clone https://github.com/hakimel/reveal.js.git

Step 3 : convert markdown (.md) file to html file using pandoc utility

pandoc -t revealjs -s -o djangoslide.html django-intro.md -V revealjs-url=./reveal.js

This will convert md file to html and use reveal js from our current folder. if you don’t cloned reveal js you can use direct url like below.

pandoc -t revealjs -s -o djangoslide.html django-intro.md -V revealjs-url=https://revealjs.com

now we have got a djangoslide.html file. just open that file in any browser and see the magic..!! your web slide is ready.  remember that, if you didn’t download or clone reveal js in same folder the html wont render correctly.

The is a very quick and simple way to create a presentation because it only need very simple utilities like git, pandoc and a simple markdown file. Markdown can be created using a very simple text editor. We have very nice presentation with all the effects. It is html so simply works everywhere.

The post Create A Simple Presentation using Reveal js and Markdown appeared first on IB Computing.

]]>
https://ibcomputing.com/build-presentations-with-reveal-js-and-markdown/feed/ 0 1609
How to Install WiFi driver for Broadcom BCM43142 WiFi device in GNU/Linux Distros https://ibcomputing.com/install-wifi-driver-broadcom-bcm43142-linux/ https://ibcomputing.com/install-wifi-driver-broadcom-bcm43142-linux/#comments Mon, 15 Oct 2018 20:11:35 +0000 https://ibcomputing.com/?p=1576 Getting proprietary WiFi drivers to work in GNU/Linux distros can be a pain sometimes. This time we’re going to deal with such a proprietary driver …

The post How to Install WiFi driver for Broadcom BCM43142 WiFi device in GNU/Linux Distros appeared first on IB Computing.

]]>
Getting proprietary WiFi drivers to work in GNU/Linux distros can be a pain sometimes. This time we’re going to deal with such a proprietary driver for the Broadcom BCM43142 WiFi device. Let’s take a look at how to install WiFi driver for Broadcom BCM43142 WiFi device in popular GNU/Linux distros such as Debian, Ubuntu, Fedora and Arch Linux. First of all let’s make sure we’re having the Broadcom BCM43142 WiFi device. For that let’s make use of the lspci command as follows:

lspci -nn | grep -i network

If you are having the Broadcom BCM43142 WiFi device then you will get an output somewhat like follows:

0d:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)

If you get the above output then we are good to continue.

How to Install WiFi driver for Broadcom BCM43142 WiFi device in GNU/Linux Distros

How to install WiFi driver for Broadcom BCM43142 in Debian and Debian-based distros like Ubuntu

sudo apt-get update
sudo apt-get install broadcom-sta-dkms

The advantage of using a dkms driver is that you don’t need to manually update the driver everytime you upgrade your kernel!

Dynamic Kernel Module Support (DKMS) is a program/framework that enables generating Linux kernel modules whose sources generally reside outside the kernel source tree. The concept is to have DKMS modules automatically rebuilt when a new kernel is installed.
Wikipedia

How to install WiFi driver for Broadcom BCM43142 WiFi device in Fedora

sudo dnf update
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf update && sudo dnf install kmod-wl

How to install WiFi driver for Broadcom BCM43142 WiFi device in Arch Linux

sudo pacman -S broadcom-wl-dkms

The post How to Install WiFi driver for Broadcom BCM43142 WiFi device in GNU/Linux Distros appeared first on IB Computing.

]]>
https://ibcomputing.com/install-wifi-driver-broadcom-bcm43142-linux/feed/ 23 1576
Top 5 Themes on Ubuntu 18.04 https://ibcomputing.com/ubuntu-18-04-themes/ https://ibcomputing.com/ubuntu-18-04-themes/#respond Fri, 04 May 2018 17:27:58 +0000 https://ibcomputing.com/?p=1427 As you may already know, Ubuntu 18.04 LTS released last week. As Ubuntu ditches Unity and adopted GNOME 3 as the default graphical interface, all …

The post Top 5 Themes on Ubuntu 18.04 appeared first on IB Computing.

]]>
As you may already know, Ubuntu 18.04 LTS released last week. As Ubuntu ditches Unity and adopted GNOME 3 as the default graphical interface, all GNOME themes can be installed in Ubuntu 18.04 now. First of all, you need an additional software to install Ubuntu 18.04 themes. This is known as GNOME Tweak Tool. You can install this by just entering the following in the terminal (Press Ctrl+Alt+T to open terminal or launch it from applications menu):

sudo apt install gnome-tweak-tool

After successfully installing GNOME Tweak Tool, you can select which icon theme to be loaded from the tweak tool. So here is my list of some best themes available for Ubuntu 18.04.

 

Suru – Ubuntu 18.04 Themes
Ubuntu 18.04 Themes

You can install the Suru theme from the following repository. Here we use a mesa package to install the theme. Also, take care to install meson and git if you haven’t installed them already.

#install suru theme git clone https://github.com/snwh/suru-icon-theme.git cd suru-icon-theme.git meson builddir --prefix=/usr sudo ninja -C builddir install

Paper – Ubuntu 18.04 Themes
Ubuntu 18.04 Themes

Paper is a modern theme with a mostly flat look and make use of shadows and highlights for icons. The colourful headers are increasing its overall appearance. It is perfect for those of you who love flat material theme.

#install paper theme sudo add-apt-repository ppa:snwh/pulp sudo apt-get update
#install icon theme sudo apt-get install paper-icon-theme
#install cursor theme sudo apt-get install paper-cursor-theme
#install gtk theme sudo apt-get install paper-gtk-theme

Adapta – Ubuntu 18.04 ThemesUbuntu 18.04 Themes

Adapta is a Beautiful Theme for ubuntu. it consist of two themes packed together. Adapta and Adapta-Nokto. it is one of the best theme, because this package is well maintained and getting constant updates.

#install adapta theme sudo add-apt-repository ppa:tista/adapta sudo apt-get update sudo apt-get install adapta-gtk-theme sudo apt-get install adapta-backgrounds

Numix – Ubuntu 18.04 ThemesUbuntu 18.04 Themes

Numix is a beautiful icon theme for GNU/Linux systems. You can install Numix using the following command.

#install numix theme 
sudo apt install numix-gtk-theme 

Arc – Ubuntu 18.04 theme

Arc theme contains arc, arc dark and arc darker variants. theme package doesnt contain icons with it.

#install Arc theme

sudo apt-get install arc-theme

The post Top 5 Themes on Ubuntu 18.04 appeared first on IB Computing.

]]>
https://ibcomputing.com/ubuntu-18-04-themes/feed/ 0 1427
Install RTL8723de aka RealTek d723 WiFi driver in Ubuntu 18.04 https://ibcomputing.com/install-rtl8723de-realtek-d723-ubuntu-18-04/ https://ibcomputing.com/install-rtl8723de-realtek-d723-ubuntu-18-04/#comments Tue, 01 May 2018 16:38:50 +0000 https://ibcomputing.com/?p=1431 Previously I had written a post about the same driver RTL8723de which you can find here. It works perfectly on systems with Linux kernel versions …

The post Install RTL8723de aka RealTek d723 WiFi driver in Ubuntu 18.04 appeared first on IB Computing.

]]>
Previously I had written a post about the same driver RTL8723de which you can find here. It works perfectly on systems with Linux kernel versions upto 4.14. But unfortunately for kernel versions later than 4.14 that solution won’t work. For example if your wifi device is RTL8723de aka RealtTek d723 then after the upgrade of Ubuntu from 16.04 LTS to the latest Ubuntu 18.04 LTS wifi will stop working. Now that I have found another working solution for kernel versions later than 4.14, I shall share that with you now. Please note that this tutorial uses another repository than the one mentioned in the previous post. Also, it uses the extended branch and this driver is not available in the master branch of that repository. I have tested it personally and ensured that it is working fine in kernel v4.15.

How to Install WiFi Driver for RTL8723DE
How to Install WiFi Driver for RTL8723DE in GNU/Linux Distributions

So here are the steps to install wifi driver for RTL8723de in Ubuntu 18.04

 

Clone the repository

git clone https://github.com/lwfinger/rtlwifi_new.git

 

Enter to the cloned folder

cd rtlwifi_new

 

Checkout to the extended branch

git checkout extended

 

Start installation

sudo make install
sudo modprobe -r rtl8723de
sudo modprobe rtl8723de

That’s it! You have now successfully installed RTL8723de wifi driver on your Ubuntu 18.04. This repo also contains driver for RTL8723be and much more RealTek devices.

The post Install RTL8723de aka RealTek d723 WiFi driver in Ubuntu 18.04 appeared first on IB Computing.

]]>
https://ibcomputing.com/install-rtl8723de-realtek-d723-ubuntu-18-04/feed/ 35 1431
Convert your WordPress Website into a Progressive Web App https://ibcomputing.com/convert-your-wordpress-website-into-a-progressive-web-app/ https://ibcomputing.com/convert-your-wordpress-website-into-a-progressive-web-app/#comments Mon, 05 Feb 2018 09:14:49 +0000 https://ibcomputing.com/?p=1091 Progressive Web Apps are modern websites that give you the same user experience advantages of native apps. Popular websites like Telegram, Flipkart, etc. are examples for …

The post Convert your WordPress Website into a Progressive Web App appeared first on IB Computing.

]]>
Progressive Web Apps are modern websites that give you the same user experience advantages of native apps. Popular websites like Telegram, Flipkart, etc. are examples for Progressive Web Apps. Fortunately, it is easy to convert your WordPress website into a Progressive Web App now. With Super Progressive Web Apps plugin you can convert your WordPress website into a Progressive Web App.

Convert your WordPress website into a Progressive Web App with WordPress plugin
Super Progressive Web Apps – WordPress Plugin

 

What is PWA?

Progressive Web App is a middle ground technology between Mobile App and Website. This new application model attempts to combine features offered by most modern browsers with the benefits of mobile  application experience. i.e. it can behave more like an app downloaded from the App Store/Play Store. When a user opens a Progress Web App enabled webpage from a browser they get an option saying  “Add to Home Screen”. Adding this will create a shortcut in your mobile homescreen with the website’s icon. One of the main features of a Progressive Web App is that the visited pages will remain accessible even when you go offline.

How to convert your WordPress website into a Progressive Web App

Making your website a Progressive Web App is a tedious task if you are going to do it all manually. You can find the documentation for the same here. But I am going to talk about a WordPress plugin that makes the job simple for us.

Super Progressive Web Apps

“Super Progressive Web Apps” is an open source WordPress plugin with the following features:

  • Generate a manifest for your website and add it to the of the page
  • Set the application icon for your Progressive Web App
  • Set the background color for the splash screen of your Progressive Web App
  • Your website will show the “Add to home screen” notice when accessed in a supported browser
  • Aggressive caching of pages using CacheStorage API
  • Pages once cached are served even if the user is offline
  • Set custom offline page: Select the page you want the user to see when a page that isn’t in the cache is accessed and the user is offline

Minimum Requirements for a Progressive Web App

  • WordPress website should be served from a secure origin, i.e. your website should be HTTPS and not HTTP.
  • Requires WordPress Version:3.5.0
  • Requires PHP Version:5.3
  • Google Chrome (version 57+), Chrome for Android (62), Mozilla Firefox (57), Firefox for Android (58) in client side.

Install Super Progressive Web App

  • Visit WordPress Admin > Plugins > Add New
  • Search for ‘Super Progressive Web Apps’
  • Click “Install Now” and  “Activate” Super Progressive Web Apps
Convert your WordPress website into a Progressive Web App with WordPress plugin
Super Progressive Web Apps Plugin Configuration

Configure Super Progressive Web App

After installation we need to configure the plugin as mentioned below in order to make WordPress website a Progressive Web App

  • Go to WordPress Admin > Settings > SuperPWA
  • Set a Background Color for the splash screen to be shown when your PWA is opened on a mobile device.
  • Set the Application Icon. This will be the icon of your PWA when it is added to the homescreen in a mobile device. The icon must be a PNG image and exactly 192 x 192 pixels in size.
  • Set the Offline Page. This page will be displayed if the user is offline and the page he requested is not cached already. Ideally you should create a dedicated WordPress page and set it here. Within the page you create, you could add a note that reads, “It looks like you are offline and the page you requested is not available right now. Please check back again once you are online.”.
  • Click “Save Settings”.

Configure these settings will convert your WordPress website into a Progressive Web App.

 

 

 

The post Convert your WordPress Website into a Progressive Web App appeared first on IB Computing.

]]>
https://ibcomputing.com/convert-your-wordpress-website-into-a-progressive-web-app/feed/ 5 1091
Install Adobe Creative Cloud in Linux Systems https://ibcomputing.com/install-adobe-creative-cloud-in-linux/ https://ibcomputing.com/install-adobe-creative-cloud-in-linux/#comments Sun, 21 Jan 2018 13:42:50 +0000 https://ibcomputing.com/?p=602 Adobe Creative Cloud (CC) is a dominating application service in the graphics field. The Adobe Creative alternatives available for Linux systems are not yet able …

The post Install Adobe Creative Cloud in Linux Systems appeared first on IB Computing.

]]>
Adobe Creative Cloud (CC) is a dominating application service in the graphics field. The Adobe Creative alternatives available for Linux systems are not yet able to overcome the power and features of Adobe CC. Also, Adobe is not building apps for Linux systems. So the question is, is it somehow possible to install Adobe Creative Cloud in Linux systems? Using wine we can install some old packages, but not Adobe Creative Cloud. Here I am going to describe a new way to install Adobe Creative Cloud on Linux systems.

Install Adobe Creative Cloud in Linux Systems Using PlayonLinux

PlayonLinux is a front-end application of Wine. You can install numerous Windows applications using PlayOnLinux. But to install Adobe Creative Cloud on Linux systems you need the help of an additional shell script.

Let’s take a step-by-step look at the whole installation procedure

  1. Install PlayOnLinux in your Linux system
  2. Download the additional script from here
  3. Open PlayOnLinux. Then go to Tools > Run a local script and select the install script you downloaded above.

Below are the screenshots of the installation process:

 

Install Adobe Creative Cloud in Linux Systems
Screenshot of “Run a local script” option

 

Install Adobe Creative Cloud in Linux Systems
Warning message is shown after selecting the local script

Now the script will start to download the required files. Please wait till the download completes. About 300+ MB of files have to be downloaded

Install Adobe Creative Cloud in Linux Systems
Screenshot of download process

4. After automatically installing these and some fonts from Microsoft, the Adobe Creative Cloud installer will get installed. When it is finished you can select and install the Adobe CC setup files. Here I am installing Adobe Photoshop CC 2015.

Install Adobe Creative Cloud in Linux Systems
Screenshot after the installation process has finished

Now it’s time to run the newly installed Adobe Photoshop CC on our Linux system

Adobe Photoshop CC succesfully running in Linux Systems
Adobe Photoshop CC successfully running on Linux

As you know Adobe Creative Cloud isn’t free. So you need to have an Adobe ID to install Adobe Creative Cloud in Linux systems. Otherwise, you must turn off the internet to continue. The installed product will stop working after the trial period is over if you don’t purchase it from Adobe.

Which Applications Will Work?

Officially the script author tested Application Manager, Photoshop CC 2015, and Lightroom 5. Also, I tried to install Indesign and it wasn’t much of a success. Currently, only 2015 versions of Adobe Creative Cloud will work with this script. Even then it is very helpful for Adobe lovers since they can work without leaving from Linux. You may also do this without the script, but it needs a lot of time to configure and install the required packages. This script will simply work for those who want to get the job done soon.

The post Install Adobe Creative Cloud in Linux Systems appeared first on IB Computing.

]]>
https://ibcomputing.com/install-adobe-creative-cloud-in-linux/feed/ 4 602
How to Install Wine 3 in Your Favourite Linux Distros https://ibcomputing.com/how-to-install-wine-3-linux/ https://ibcomputing.com/how-to-install-wine-3-linux/#comments Sat, 20 Jan 2018 08:44:12 +0000 http://ibcomputing.com/?p=532 Wine, the compatibility layer capable of running Windows applications on any Linux distro,  can be installed from official repos of almost all Linux distributions like …

The post How to Install Wine 3 in Your Favourite Linux Distros appeared first on IB Computing.

]]>
Wine, the compatibility layer capable of running Windows applications on any Linux distro,  can be installed from official repos of almost all Linux distributions like Ubuntu, Fedora, Debian, Arch etc.  But most of them are outdated, lacking latest features. Now the latest Wine 3.0 is released, you might want to try the latest Wine to in order to run your favorite games and applications in Linux. In this tutorial, we will show you how to install Wine 3 in your favorite Linux distros.

Install Wine 3 in Ubuntu 18.04 or Earlier

  • Remove all Wine-related applications (wine-mono, wine-gecko, winetricks) if they are already installed in your system
  • Enable 32-bit support if you have a 64-bit system
sudo dpkg --add-architecture i386
  • Add official repository of Wine
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
  • If you are from Linux Mint 17.X, change the last line to the following:
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ trusty main'
  • If you are from Linux Mint 18.X, change the last line to the following;
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
  • Update packages
sudo apt update
  • Install from the preferred branch using any one of the commands below
sudo apt install --install-recommends winehq-stable #Stable Branch
sudo apt install --install-recommends winehq-devel #Development Branch
sudo apt install --install-recommends winehq-staging #Staging Branch
  • If above steps show any dependency errors then just update and install again
Install Wine 3.0 in your Linux Systems
Image Source: WineHQ AppDB

Install Wine 3 in Debian

  • Follow the first two steps from Ubuntu
  • Get keys using which packages are signed
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key

Note: If you get an error saying user, not in sudoers list then run the command as root instead

  • Edit sources.list
sudo nano /etc/apt/sources.list
  • Append the following text to it as is
deb https://dl.winehq.org/wine-builds/debian/ DISTRO main
  • Update packages
sudo apt update
  • Install from preferred branch
sudo apt install --install-recommends winehq-stable #Stable Branch
sudo apt install --install-recommends winehq-devel #Development Branch
sudo apt install --install-recommends winehq-staging #Staging Branch
  • If above steps give a dependancy error, update and install again.

Install Wine 3 in Fedora

  • Fedora 24
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/24/winehq.repo
  • Fedora 25
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/25/winehq.repo
  • Fedora 26
sudo dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/26/winehq.repo
  • Install from preferred branch
sudo dnf install winehq-stable #Stable Branch
sudo dnf install winehq-devel #Development Branch
sudo dnf install winehq-staging #Staging Branch

Unfortunately, you will have to wait to install Wine 3 in Fedora 27 as the official build has not been released yet. But it is expected to come soon, so stay tuned.

If you have any problems or doubts about installation, just comment below. Know more about the latest Wine 3.

The post How to Install Wine 3 in Your Favourite Linux Distros appeared first on IB Computing.

]]>
https://ibcomputing.com/how-to-install-wine-3-linux/feed/ 1 532
Setting up WhatsApp Telegram Bridge Using wat-bridge bot https://ibcomputing.com/whatsapp-telegram-bridge/ https://ibcomputing.com/whatsapp-telegram-bridge/#comments Thu, 11 Jan 2018 09:03:05 +0000 http://ibcomputing.com/?p=205 This Solution is not working Anymore. please read the new solution here Telegram is a popular Instant Messenger application. Also, it is very feature-rich than …

The post Setting up WhatsApp Telegram Bridge Using wat-bridge bot appeared first on IB Computing.

]]>
This Solution is not working Anymore. please read the new solution here

Telegram is a popular Instant Messenger application. Also, it is very feature-rich than WhatsApp. But the most popular chat application is still WhatsApp. WhatsApp is fully closed-source and it does not allow any user-modifications. On the other hand, Telegram client is open-source and Telegram Bot APIs are a powerful tool to build our own applications on top of Telegram. Mirroring the conversations between WhatsApp and telegram is possible by setting up WhatsApp Telegram Bridge Using wat-bridge bot.

Are you a Telegram fan? Want to detach yourself from WhatsApp? Or do you want to read WhatsApp group messages in Telegram group? Then you are at the right place.

 

Setting up WhatsApp Telegram Bridge using wat-bridge bot

WhatsApp as of now is not allowing user-bots at all. But a CLI library called Yowsup can do the tricks. It actually acts as a WhatsApp API. A user could register a mobile number with WhatsApp and chat using that number with Yowsup. We could also automate some messaging tasks this way and thus it becomes to act like a user-bot.

Rafael Medina (rmed) created a Telegram WhatsApp bridge using Yowsup and Telegram bot. You can find the wat-bridge repo here. This bot basically interacts with WhatsApp accounts and it could be used to bridge groups too.

Cons of wat-bridge

  • Can’t send media messages
  • Will not receive reply messages from Whatsapp
  • No username along with the WhatsApp message (You have to identify the user using mobile number instead, see the below section for more details)

Don’t worry, solution is here

A fork of wat-bridge is capable of solving the above-mentioned cons. This fork can overcome all the issues that the original bot has. The modified bot is available in the repository here. But getting media files from WhatsApp is in pre-alpha stage and you will need some additional works to do with the server.

How to Setup a Whatsapp Telegram bridge

if you are not capable of running your own bot I will suggest a working bot for you. follow this post in telegram channel 

WhatsApp number, Telegrambot, Now go to this part of the tutorial to connect groups.

Let’s continue to build the bot

As the fork having more features but media file transfer isn’t in a good condition to test. So I am using the official repo here. You can also test the forked one if you are interested, it’s just that the cloning step is different.

  1. First, create a Telegram bot by using @botfather. i.e. send /newsbot command to @botfather and then the botfather bot will give you a token number

    Botfather in Telegram
    Botfather
  2. Clone the wat-bridge repository at https://github.com/rmed/wat-bridge.git
    git clone https://github.com/rmed/wat-bridge.git
  3. Enter the cloned directory
    cd wat-bridge
  4. Setup python virtual environment
    virtualenv -p python3 venv
    . venv/bin/activate
  5. Install the required packages from requirements.txt
    pip install -r requirements.txt
  6. Install latest yowsup
    git clone https://github.com/tgalal/yowsup.git
    cd yowsup
    # Install dependencies to build yowsup
    sudo apt-get install ncurses-dev python3-dev
    python setup.py install

Registering a number with yowsup

Now that we have installed yowsup, let’s register a phone number using yowsup.

NB: This number may get banned by WhatsApp, so use at your own risk! Also, don’t use your primary WhatsApp number for this, use a number which isn’t registered with WhatsApp yet.

Register a number

  • yowsup-cli registration --request sms --phone 49XXXXXXXX --cc 49 --mcc 123 --mnc 456

    Provide phone number, CC, MCC & MCN. CC is the Country pre, you can know more about MCC and MNC from here. Now you will get an OTP to your number. Use that OTP in the next step for registration.

  • yowsup-cli registration --register 123456 --phone 49XXXXXXXX --cc 49

    Now you will receive a password. Store this password anywhere securely.

  • Now let’s go to wat-bridge directory. Copy development.conf into another file
    cp development.conf config.conf
  • Open config.conf in any text editor and change the parameters
    [tg]
    owner = ONWER_ID - this is the bot creator ID
    token = TOKEN - Token got from @botfather
    
    [wa]
    phone = PHONE_NUMBER - registred phone number
    password = PASSWORD - password obtained from yowsup registration
    
    [db]
    path = PATH_TO_DB - create a .db file in wat-bridge folder and give its path
  • Save and exit
  • Now run the bot
    WAT_CONF=config.conf python watbridge.py

Yes, you are done! The bridge will be running now.

Bridge WhatsApp and Telegram groups

  1. Add the Whatsapp number to required WhatsApp group and send any message
  2. Add telegram bot in required telegram group  send /me and copy the message get from bot
  3. Go to your bot now you will get a message from the added Whatsapp group with a number in it (that number is WhatsApp group id)
/add  <group name> <that number from  step3>

/bind <group name> <number get from 2 step>

Now both groups are linked.

Binding groups
Binding groups

Bridge WhatsApp and Telegram groups using forked bot

  • Add the WhatsApp number to required WhatsApp group and send /getID
  • Now you will receive a message with random numbers starting with /link, copy that entire message
  • Add Telegram bot in respective Telegram group
  • Send the message received from WhatsApp group to Telegram group
  • Now both the groups should be linked and you are all done!

Cons of wat-bridge forked bot

  • Receiving messages from Telegram to large WhatsApp groups having more than 200 people will crash the bot
  • Latest pre contains media support which needs to be documented, for developers I suggest to checkout to previous commits for better results.

Bonus: You can also bridge Telegram with Riot (A popular Matrix client) as mentioned here!

The post Setting up WhatsApp Telegram Bridge Using wat-bridge bot appeared first on IB Computing.

]]>
https://ibcomputing.com/whatsapp-telegram-bridge/feed/ 15 205