How To Set Up A uTorrent Server On Linux

If you love uTorrent, but don’t feel like dealing with Wine just to get it working on Linux, there’s another way to enjoy the software. As it turns out, uTorrent does have support for Linux, in the form of “uTorrent server” which means you can set up a uTorrent server on Linux and avoid using Wine altogether.

uTorrent server works like a lot of other torrent server tools on Linux and allows users to add torrents from any machine on the network via a web browser.

Install uTorrent Server

The uTorrent server app does have Linux support, though it only has downloads available for Debian/Ubuntu systems. If you plan to run a uTorrent server on Linux, it’s best to install Ubuntu Server, or to set up a Debian server, as there appear to be no plans for Redhat based systems like CentOS/Suse Enterprise, Fedora Server, Rhel, etc.

Note: if you absolutely have to have uTorrent server on your Redhat Linux server system, try running the software anyway. Though the website says it supports “Debian,” it’s just a Tar archive.

Getting uTorrent server starts out by using the wget download tool. Open up a terminal and grab the most recent version of the server software.

Ubuntu

wget http://download-hr.utorrent.com/track/beta/endpoint/utserver/os/linux-x64-ubuntu-13-04 -O utserver-ubuntu-64bit.tar.gz

or

wget http://download-hr.utorrent.com/track/beta/endpoint/utserver/os/linux-i386-ubuntu-13-04 -O utserver-ubuntu-32bit.tar.gz

Debian

wget http://download-hr.utorrent.com/track/beta/endpoint/utserver/os/linux-x64-debian-7-0 -O utserver-debian-64bit.tar.gz

or

wget http://download-hr.utorrent.com/track/beta/endpoint/utserver/os/linux-i386-debian-7-0 -O utserver-debian-32bit.tar.gz

Extract the server software into the /opt/ folder on the server’s file system.

sudo mkdir -p /opt/utorrent-server/
sudo tar -zxvf utserver-ubuntu-*.tar.gz -C /opt/utorrent-server/ --strip=1

or

sudo tar -zxvf utserver-debian-*.tar.gz -C /opt/utorrent-server/ --strip=1

This version of uTorrent server is for Ubuntu 13.04, and Debian 7. However, it will run on newer versions like Ubuntu server 18.04, and Debian 9. To do this, you’ll need to install a few things. Specifically, LibSSL 1.0. In a terminal, enter the following commands to get it going.

sudo apt install libssl1.0.0 libssl-dev

or, for Debian users:

sudo apt-get install libssl1.0.0 libssl-dev

Set up uTorrent

Downloading uTorrent server for Linux contains a few things. Mainly, the core server software, which is important to run the app. In addition to the server binary, there’s a web UI component that needs setting up. Luckily, to set up the web UI, you’ll only need to extract some files to a directory. In a terminal, use the cd command and move the terminal to the new /opt/utorrent-server/ folder on your server. Then gain root access to start the extraction process.

cd /opt/utorrent-server/
sudo -s

The uTorrent software package has another archive inside of it, that needs extracting. To extract it, run unzip.

unzip webui.zip

Start tuTorrent Server

With the uTorrent Server application set up correctly, it’s time to launch it. Open up a terminal and use the CD command to move to the uTorrent server directory.

cd /opt/utorrent-server/

In the uTorrent server directory, use the chmod command to update the server app’s permissions and set it to “executable”. It’s important to update the permissions of this file, otherwise, the server will not start up.

sudo chmod +x utserver

Now that the permissions are set up correctly, uTorrent server is ready to start up. In the terminal, execute the utserver file.

sudo ./utserver

Run uTorrent Server In Background

The uTorrent server is running, though it doesn’t have a script to automatically start it up. As a result, the admin will need to manually run the utserver command and keep a terminal open.

Luckily, it’s possible to set up uTorrent server to run in the background, with the help of a simple script. To set up the script, open up a terminal and follow the instructions below.

First, add the Shebang to the autostart program. Adding a Shebang allows Bash and the terminal to understand what to do with the script when run.

sudo touch /opt/utorrent-server/utorrent-start

sudo -s 
echo '#!/bin/bash' >> /opt/utorrent-server/utorrent-start
echo '' >> /opt/utorrent-server/utorrent-start

Use the echo command to add the automatic start command to the startup script.

sudo -s 

echo 'cd /opt/utorrent-server/' >> /opt/utorrent-server/utorrent-start
echo '' >> /opt/utorrent-server/utorrent-start
echo './utserver &>/dev/null &' >> /opt/utorrent-server/utorrent-start

Update the permissions of the script and move it into place.

sudo chmod +x /opt/utorrent-server/utorrent-start

sudo mv /opt/utorrent-server/utorrent-start /usr/bin

To run uTorrent server, enter the following command.

sudo utorrent-start

Accessing uTorrent Server

Installation is complete! Now it’s time to access the server! Open up a new browser tab on your Linux PC, and visit the following website URL.

Note: enter “admin” in the username section, and leave “password” blank to log in.

http://ip-address-of-server-pc:8080/gui/web/index.html

Running uTorrent server on your Ubuntu/Debian desktop? Open a web browser and visit this URL instead.

http://localhost:8080/gui/web/index.html

Read How To Set Up A uTorrent Server On Linux by Derrik Diener on AddictiveTips – Tech tips to make you smarter

How To Edit Subtitles In Movies On Linux With Aegisub

Many video players support loading subtitle files alongside video files, even on Linux. However, it’s much better to add subtitles directly to the video file. Going this route ensures that no matter what program plays your video file, the subtitles will always be present. When it comes to importing subtitles into video files on Linux, there’s no better choice than Aegisub. It can work with a multitude of different video file codecs and subtitle formats. Better yet, it comes with a graphical editor that allows users to edit subtitles in movies in real time.

Note: downloading subtitle files online is illegal. Please obtain subtitles by extracting them from personal movie backups made legally, and do not share them with anyone!

Install Aegisub

Looking to install the Aegisub app on your Linux PC? You’re in luck; many Linux distributions have packages of it directly in their software sources, so the process is quite easy. To install it, open up a terminal window and follow the instructions below for your respective operating system.

Ubuntu

Ubuntu Linux usually has Aegisub readily available in the software sources. However, for the latest version of the OS (Ubuntu 18.04,) there’s a bug that prevents it from installing. Luckily, if you’re on 18.04, there’s a third-party PPA available. To install it, open up a terminal and use the add-apt-repository command.

sudo add-apt-repository ppa:alex-p/aegisub

Next, run the update and upgrade commands to refresh and install any updates available on Ubuntu.

sudo apt update

sudo apt upgrade -y

Install Aegisub with:

sudo apt install aegisub

Debian

sudo apt-get install aegisub

Arch Linux

sudo pacman -S aegisub

Fedora

It’s possible to use Aegisub on Fedora Linux, though users will not be able to install it through the traditional software sources. Instead, RPM Fusion needs setting up.

Note: replace X with the release number of Fedora Linux you’re using.

sudo dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-X.noarch.rpm -y

sudo dnf install aegisub -y

OpenSUSE

OpenSUSE users looking to get Aegisub will need to first enable a third-party software source.

Leap 15.0

sudo zypper addrepo http://ftp.gwdg.de/pub/opensuse/repositories/multimedia:/apps/openSUSE_Leap_15.0/ opensuse-multimedia-apps

Leap 42.3

sudo zypper addrepo http://packman.inode.at/suse/openSUSE_Leap_42.3/ packman

Tumbleweed

sudo zypper addrepo http://ftp.gwdg.de/pub/opensuse/repositories/multimedia:/apps/openSUSE_Tumbleweed/ opensuse-multimedia-apps

Install Aegisub with the Zypper package tool:

sudo zypper install aegisub

Generic Linux

Need the Aegisub app on an obscure Linux distribution? Grab the source code and compile it yourself!

Add Subtitles To movies

Adding subtitles to video files with Aegisub is surprisingly simple. It starts out by importing the movie file. Import your movie file to the app by clicking the “Video” menu button, then selecting the “open video” option.

Browse for your video file in the “open file” window to load it up in Aegisub.

After importing the movie file into Aegisub, the app will scan the video file quickly, so that it can play it back in real-time, during the subtitle editing process. When the scanning process is complete, click the “play” button in the player and let the video file playback for a bit. Watch the video and ensure that Aegisub is handling the file correctly.

Aegisub has your movie file and can play it back without errors. This means that the subtitling process can begin. The first step in this process is to obtain a subtitle file for your movie. Head over to our MKVToolNix tutorial and learn how to extract subtitle files from the legal backup of your movie.

Once the subtitle file is extracted to your Linux PC’s hard drive, go back to Aegisub, select “File,” then “Open Subtitles”.

Browse for the subtitle file on your hard drive, and allow it to load into the Aegisub app.

When the subtitle file loads up, Aegisub will automatically set out a timeline with the text and overlay it with the video. To view the subtitles, click “play” in the video window.

Edit Subtitles

Now that Aegisub has the subtitle file in sync with the video file, you’ll be able to edit subtitles in movies and make as many changes to the subtitles as possible. Best of all, since you’re working with an existing subtitle set, there’s no need to tinker with the timing of the lines or anything like that.

The on-screen subs appear in a list, chronologically. Use the scroll-bar and look for a line to edit. When you’ve found the line you’d like to change, double-click on it.

Double-clicking on a line in the list will automatically skip to it in the Aegisub video player. From here, click on the text-area next to the video player and write in whatever changes you’d like to make.

Done editing the subtitles in Aegisub? Click “file” then “Save subtitles as” to save the changes.

Read How To Edit Subtitles In Movies On Linux With Aegisub by Derrik Diener on AddictiveTips – Tech tips to make you smarter

How To Install The Sigil eBook Editor On Linux

If you’re planning to create a new eBook on the Linux platform, you’ll need a solid editor. On Linux, there are a few choices, but one that consistently gets tons of use is the Sigil eBook editor.

Install Libraries

Building Sigil on Linux is possible, though before attempting to do it, you’ll need to install the necessary libraries and various dependency files. Open up a terminal and follow the instructions below. Keep in mind that dependencies are going to differ on each version of Linux, so it’s best to refer to the official documentation for building software on your Linux distribution.

Note: some Linux distributions have Sigil in their software sources. However, building the software from source gives you a more up to date version.

Ubuntu/Debian

sudo apt install git python3-tk python3-pyqt5 python3-html5lib python3-regex python3-pillow python3-cssselect python3-cssutils python3-chardet python3-dev python3-pip python3-lxml python3-six build-essential libhunspell-dev libpcre3-dev libminizip-dev git cmake qtbase5-dev qttools5-dev qttools5-dev-tools libqt5webkit5-dev libqt5svg5-dev libqt5xmlpatterns5-dev

or

sudo apt-get git python3-tk python3-pyqt5 python3-html5lib python3-regex python3-pillow python3-cssselect python3-cssutils python3-chardet install python3-dev python3-pip python3-lxml python3-six libhunspell-dev libpcre3-dev libminizip-dev build-essential git cmake qtbase5-dev qttools5-dev qttools5-dev-tools libqt5webkit5-dev libqt5svg5-dev libqt5xmlpatterns5-dev

Arch Linux

For Arch Linux user there’s a convenient AUR package available that will automatically install all dependencies, and build Sigil. Point your favorite AUR helper at this package here. Alternatively, install the libraries manually:

sudo pacman -S base-devel git
git clone https://aur.archlinux.org/sigil-git.git
cd sigil-git
makepkg -si

Fedora

sudo dnf install git python3-tkinter cmake qt5-qtbase-devel qt5-qtwebkit-devel qt5-qtsvg-devel qt5-qttools-devel qt5-qtxmlpatterns-devel zlib-devel hunspell-devel pcre-devel minizip-devel pkgconfig python3-devel desktop-file-utils libappstream-glib python3-pillow python3-cssselect python3-cssutils python3-html5lib python3-lxml python3-qt5 python3-regex python3-chardet python3-six hicolor-icon-theme

OpenSUSE

sudo zypper install git boost-devel pkgconfig cmake dos2unix fdupes make hunspell-devel libqt5-qtbase-devel gcc-c++ libqt5-qtlocation-devel libstdc++-devel libxerces-c-devel libxml2-devel libxslt-devel make pcre-devel python3-devel unzip python3-html5lib python3-lxml python3-six python3-tk python3-Pillow python3-cssselect python3-cssutils

Generic Linux

The Sigil Github page outlines in detail the dependencies a user needs to get the software built. Unfortunately, it only goes over what to install on Ubuntu and Debian. Thankfully, it’s possible to take the Ubuntu package names, input them into Pkgs.org and find equivalents on many different distributions.

Build Sigil

The first step in building the Sigil eBook editor is to pull the latest version of the source code from it’s Github page. In a terminal, use the git clone command.

git clone https://github.com/Sigil-Ebook/Sigil.git

Next, use the mkdir command and create a new, separate build directory. Creating a build directory is important because it’s not a good idea to compile the code directly in the source code folder.

mkdir ~/sigil-build

Move the terminal into the new Sigil build folder with CD.

cd ~/sigil-build

Call cmake and set up the development environment.

cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ~/Sigil

The above command will generate all of the necessary tools to get Sigil working. If cmake finishes without errors, move on to the compiling process. In the terminal, run the make command.

make

If you have a high-end Linux PC with cores to spare, try this command instead.

make -j4

Compiling programs from scratch takes a long time. When it comes to Sigil, there is no exception; you will be waiting a long time for the build to finish (especially if your Linux PC doesn’t have many cores). When the compiler is done building the code, you’ll be able to install Sigil on your computer with the following command:

sudo make install

Uninstalling Sigil

Built Sigil, used it and realize you don’t want it on your Linux PC anymore? Sadly, since the program was built by hand, there’s no easy “uninstall” button to click.

No worries! Follow the steps below to learn how to clean it from the system.

First, open up a terminal and delete all the traces of the source code and built binaries.

sudo rm -rf ~/Sigil

sudo rm -rf ~/sigil-build

Next, delete the application shortcut so that it no longer appears in menus.

sudo rm /usr/local/share/applications/sigil.desktop

Lastly, purge the rest of the files from your Linux PC:

sudo rm -rf /usr/local/lib/sigil/
sudo rm /usr/local/bin/sigil
sudo rm /usr/local/share/pixmaps/sigil.png
sudo rm -rf /usr/local/share/sigil/

Deleting all of these files should instantly make Sigil unavailable on your operating system. If the Sigil app icon remains accessible in the application menu on your desktop environment, reboot your Linux PC. Resetting your PC will refresh the desktop. After logging back in, the icon will be gone.

Read How To Install The Sigil eBook Editor On Linux by Derrik Diener on AddictiveTips – Tech tips to make you smarter

How To Install Darktable On Linux

Darktable is an open source, image workstation application for photographers on Linux. It has dozens of uses, including the ability to manage digital photo negatives in a user searchable database, a “zoomable” Lightroom and the ability to develop raw photos. Better yet, it’s entirely free of charge and compatible with even the most obscure of Linux distributions.

The app has a lot to offer and is competitive with a lot of paid offerings in the digital photography space. It is designed and made by photographers, so if you’re looking for a solid app to edit and manage photos on Linux, this is probably one of the best options to go with.

Ubuntu

The Darktable application is available to Linux users via the Ubuntu Software Center, and the OS regularly distributes a fairly recent version of it in its software sources. However, if you’re a photographer who needs the latest features, you’re better off with using the official Darktable PPA to install Darkable. Going the PPA route is a good idea, as it gives you fresh updates as soon as they’re available.

To add the Darktable PPA, open up a terminal and use the add-apt-repository command in the terminal.

sudo add-apt-repository ppa:pmjdebruijn/darktable-release

The PPA is now a part of Ubuntu, but it’s not accessible yet. To ensure that it is accessible, you’ll need to run the update command.

sudo apt update

With everything up to date, be sure to install any software upgrades that show up.

sudo apt upgrade -y

Finally, when all software updates are installed on Ubuntu, it is safe to install Darktable:

sudo apt install darktable

Debian

Debian users will have no issue getting Darktable working. In fact, it’s available right from the official software sources.  However, the version of Darktable that is available is severely out of date. To get the latest version of Darktable, we recommend enabling Debian Backports.

For those that don’t know: Debian Backports is a project that compiles newer Debian packages against older libraries in the Stable release branch. Using Backports on Debian allows users of the Stable branch (and Old Stable) to use new software. To enable Backports, follow our guide here. Once enabled, follow the instructions below to install the Debian Backport version of Darktable.

sudo apt-get -t stretch-backports install darktable

Arch Linux

Arch Linux is what’s known as a “bleeding edge” Linux distribution. Bleeding edge means that it always has the absolute latest versions of software (bugs and all). Naturally, the OS has a very recent version of Darktable ready to install.

Getting the Darktable application on Arch doesn’t require any special repositories, thankfully. Just open up a terminal and use the Pacman package management tool to install it.

sudo pacman -S darktable

Fedora

Fedora Linux has a fairly recent version of the Darktable photography software. Still, it’s not as recent as it could be. As a result, the Darktable website points to a third-party software repository that is available for the Fedora operating system.

As of now, there is a Darktable software repository for Fedora 27, 28 and Rawhide. To add it, open up a terminal and use paste the command that matches your version.

Fedora Rawhide

sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/graphics:darktable/Fedora_Rawhide/graphics:darktable.repo

Fedora 28

sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/graphics:darktable/Fedora_28/graphics:darktable.repo
Fedora 27

sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/graphics:darktable/Fedora_27/graphics:darktable.repo

Run an update to be safe, then install Darktable.

sudo dnf update -y
sudo dnf install darktable

OpenSUSE

OpenSUSE is a mixed bag when it comes to Darktable. Tumbleweed users have a fairly recent version. However, Leap users will only have access to an out of date version. Luckily, thanks to the OpenSUSE build service, getting a more up to date version of the app is simple.

OpenSUSE Leap

Leap is a solid OS, but due to its focus on stability, Darktable is sort of out of date. To fix this, you’ll need to add the following software repository in a terminal:

sudo zypper addrepo https://download.opensuse.org/repositories/graphics:darktable/openSUSE_Leap_15.0/graphics:darktable.repo

or

sudo zypper addrepo https://download.opensuse.org/repositories/graphics:darktable/openSUSE_Leap_42.3/graphics:darktable.repo

With the new repo working, run an update and then install Darktable.

sudo zypper update

sudo zypper install darktable

OpenSUSE Tumbleweed

sudo zypper install darktable

Generic Linux Instructions

Need a current version of the Darktable app but can’t find it on your Linux distribution? Consider building it from the source code!

Building Darktable from source starts out by installing all of the necessary dependencies. Open up a terminal and search for the items on the list below with your package manager.

  • libsqlite3
  • libjpeg
  • libpng
  • libpugixml
  • rawspeed
  • gtk+-3
  • cairo
  • lcms2
  • exiv2
  • tiff
  • curl
  • gphoto2
  • dbus-glib
  • fop
  • openexr
  • libsoup2.4
  • wget

Once all dependencies are installed, grab the Darktable code and build it with the commands below:

wget https://github.com/darktable-org/darktable/releases/download/release-2.4.4/darktable-2.4.4.tar.xz
tar xvf darktable-2.4.4.tar.xz && cd darktable-2.4.4

./build

Read How To Install Darktable On Linux by Derrik Diener on AddictiveTips – Tech tips to make you smarter

How To Create Application Menu Shortcuts On Linux

Users start programs on Linux with “launchers”. These files contain specific instructions for how the Linux operating system should run the program and how the icon should look, among other things. On Linux, if you want to create application menu shortcuts, you’ll find that it’s a bit more difficult, compared to Mac or Windows, as users can’t just right-click on a program and select the “create shortcut” option. Instead, if you’d like to create application menu shortcuts on the Linux desktop, it’s an involved process that takes a bit of know-how.

Application Menu Shortcuts – Terminal

Perhaps the quickest way to create application menu shortcuts on the Linux desktop is to create one in the terminal. Going the terminal route is less user-friendly, as there’ isn’t a nice GUI editor to assign app categories, and no icon chooser, etc.

The first step to creating a new application shortcut in Linux is to create an empty Desktop file. In the terminal, use the touch command to create a new shortcut.

touch ~/Desktop/example.desktop
chmod +x ~/Desktop/example.desktop

The new shortcut icon is on the desktop, but it has no program instructions. Let’s fix this by editing the new file in the Nano text editor.

nano ~/Desktop/example.desktop

The first line for any application shortcut is “Name”. This line will give the application shortcut its name in the menus. In Nano text editor, give your shortcut a name.

Name=Example Shortcut

Following “Name,” the next line in the shortcut to add is “Comment.” This line is optional but very useful as it allows the menu to display some information about the shortcut.

Comment=This is an example launcher

With “Name” and “Comment” out of the way, we can get to the real meat of the launcher. In the Nano text editor, add the “Exec” line.

The “Exec” line tells your Linux OS where the program is, and how it should start.

Exec=command arguments

Exec is very versatile and can launch Python, Bash, and just about anything else you can think of. For example, to run a shell or bash script via the shortcut, do:

Exec= sh /path/to/sh/script.sh

Alternatively, set your app shortcut to run a Python program with:

Exec=python /path/to/python/app

Once the “Exec” line is set to your liking, add the “Type” line.

Type=Application

Need to set your custom shortcut up with an icon? Use the “Icon” line.

Icon=/path/to/custom/icon

Now that Name, Comment, Exec, and Icon are set, it’s safe to save the custom shortcut. Using the Ctrl + O keyboard combination, save the app shortcut. Then, exit Nano with Ctrl + X.

Install your custom app shortcut system-wide with:

sudo mv ~/Desktop/example.desktop /usr/share/applications

Application Menu Shortcuts – Alacarte

There are many menu editors on Linux. For the most part, they all work similarly and do the same thing. For best results, we recommend using the Alacarte app. It’s easy to use, works on everything and can be installed on even the most obscure Linux distributions (due to it’s relationship to the Gnome project).

Alacarte may already be installed on your Linux PC. Check and see by pressing Alt + F2, typing “alacarte” and clicking enter. If the app launches, you’ve already got it installed. If nothing happens, you’ll need to install it. Follow the instructions below to get it working.

Ubuntu

sudo apt install alacarte

Debian

sudo apt-get install alacarte

Arch Linux

sudo pacman -S alacarte

Fedora

sudo dnf install alacarte -y

OpenSUSE

sudo zypper install alacarte

Generic Linux

Not able to find the Alacarte menu editor app on your Linux distribution? Visit the souce code site and build it yourself!

Make Shortcuts

Making shortcuts with the Alacarte menu editor is refreshingly simple. To start off, click on a category. In this example, we’ll make a new shortcut in the “Internet” category.

In the “Internet” category, click the “New Item” button. Selecting the “New Item” option will open up “Launcher Properties”.

In the “Launcher Properties” windows, there are a few things to fill out. The first thing to fill out is “Name”. Write in the name of the launcher in the “Name” section. Then, move on to “Command.”

The “Command” section is where the user specifies what the shortcut will do. Click the “browse” button to search for a shell script, binary, python app, etc and load it in. Alternatively, write in a command, like one of the following:

python /path/to/python/app.py

or

sh /path/to/shell/script/app.sh

or

wine /path/to/wine/app.exe

When the launcher’s “Command” section is set, write a comment in the “Comment” section and then select “OK” to finish. After clicking the “OK” button, Alacarte will instantly save and enable your new app shortcut on the Linux desktop!

Read How To Create Application Menu Shortcuts On Linux by Derrik Diener on AddictiveTips – Tech tips to make you smarter