1. Home
  2. Linux

How to install Tweet Tray on Linux

Are you tired of dealing with Twitter’s website or unofficial Twitter clients on Linux? You may be interested in trying Tweet Tray, a new type of client that gives users the ability to share on the social media service directly from the system tray.

Ubuntu/Debian instructions

Are you interested in using Tweet Tray? Lucky for you, the developer of the app has a nice, easy to install Deb package on their website that can be used to get the latest program up and running.

To get the app working on Ubuntu or Debian, you’ll need to start by downloading it with the wget downloading tool.

Note: Don’t have wget? Learn how to install it by clicking here.

wget https://github.com/jonathontoon/tweet-tray/releases/download/v1.1.3/tweet-tray-1.1.3.deb

With the app download complete, use the Dpkg program installer to load up the Tweet Tray Deb on your system.

sudo dpkg -i tweet-tray-1.1.3.deb

Finish up the installation process by running the Apt/Apt-get install command with the “f” command-line switch to mitigate any missing dependencies that may have failed to install.

sudo apt install -f

Or, for Debian:

sudo apt-get install -f

Fedora/OpenSUSE instructions

On the Tweet Tray’s website, there’s information all about the app’s Linux support. Though, if you read through, you’ll notice that they only have Deb packages and AppImages available.

It’s understandable that the developers don’t feel like messing around with RPM files, as the AppImage will do fine. However, if you’re on Fedora or OpenSUSE and would prefer a native, installable package just like on Ubuntu and Debian, you won’t find one.

Thankfully, the source code for Tweet Tray is up on Github. Best of all, it’s built with NodeJS and Yarn, meaning that it’s effortless to modify the source code to get a compatible RPM package for use on Redhat-based Linux distributions like Fedora or OpenSUSE. Here’s how to do it.

To start, you’ll need to download the source code for Tweet Tray from Github, using the git clone command.

Note: to clone code via git, you must install the Git package. Find more info here.

git clone https://github.com/jonathontoon/tweet-tray.git

With the code downloaded, use the CD command and move your terminal session into the code folder.

cd tweet-tray

From here, you’ll need to get the latest version of Yarn up and running. Without it, the code won’t build or install. To install Yarn, run the following commands in your terminal window.

Fedora

curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo

sudo dnf install yarn

OpenSUSE

 curl -o- -L https://yarnpkg.com/install.sh | bash

Next, install the NPM (NodeJS) package.

Fedora

curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -

OpenSUSE

sudo zypper install npm

With NodeJS and Yarn ready, it’s time to prep the code so that it can build RPM files. In the terminal, launch package.json in Nano.

nano -w package.json

Scroll through the file and look for "linux": { in the file.  Under it, you should see "target": [ followed by "deb" and "AppImage".

Above the "deb" line, press Enter on the keyboard to create a new line. Then, add the code below to the new line.

"rpm",

Make sure that your changes match the following screenshot.

If your changes match the screenshot, it’s safe to save and close Nano by pressing Ctrl + O and Ctrl + X.

Finally, finish up by building the RPM and installing it on either Fedora Linux or OpenSUSE Linux by entering the string of commands below.

yarn install
yarn package

Fedora

sudo dnf install libappindicator

cd ~/tweet-tray/release

sudo dnf install tweet-tray-*.x86_64.rpm

OpenSUSE

sudo zypper install http://download-ib01.fedoraproject.org/pub/fedora/linux/releases/27/Everything/x86_64/os/Packages/l/libappindicator-12.10.0-16.fc27.x86_64.rpm

cd ~/tweet-tray/release

sudo zypper install tweet-tray-*.x86_64.rpm

AppImage instructions

On the website, in addition to linking to a DEB package, the developers of Tweet Tray make an AppImage file available for download. This AppImage file runs self-contained and doesn’t require a lot of work to get going.

To start the installation launch a terminal window by pressing Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, using the Wget download app, grab the latest AppImage file of Tweet Tray from the internet.

wget https://github.com/jonathontoon/tweet-tray/releases/download/v1.1.3/tweet-tray-1.1.3.AppImage

With the Tweet Tray AppImage file done downloading on your computer, use the mkdir command and create a new “AppImages” folder.

mkdir -p ~/AppImages

Using the mv command, place the Tweet Tray AppImage file in the new “AppImages” directory. Putting the file here will allow you to keep it out of the way and avoid accidental deletion.

mv tweet-tray-1.1.3.AppImage ~/AppImages/

Update the permissions of Tweet Tray using the chmod command. Updating these permissions is critical because if you don’t, it will not run correctly.

cd ~/AppImages

chmod +x  tweet-tray-1.1.3.AppImage

Permissions for Tweet Tray are up to date. Now, it’s time to run the app for the first time.

./tweet-tray-1.1.3.AppImage

When you run the Tweet Tray AppImage file for the first time, you’ll see a message that says “Would you like to integrate tweet-tray-1.1.3.AppImage with your system?”

Select “Yes.” Then, return to the terminal and press Ctrl + C to close the app from the terminal.

Once the terminal session ends, Tweet Tray will be fully installed on your Linux PC. You’ll be able to find the app’s shortcut in the application menu under “Internet.”

Leave a comment