Archives For jimingkui

Modern GTK3 eBook reader Foliate 2.2.0 was released today with many great new features. Here’s how to install it via PPA in Ubuntu 18.04, Ubuntu 19.10, and Ubuntu 20.04.

Foliate 2.2.0 is a new major release that features:

  • New library tab:
    • showing recent books and reading progress.
    • Search books by metadata
    • E-book discovery with OPDS
  • New eBook format support:
    • FictionBook (.fb2, .fb2.zip)
    • Comic book archive (.cbr, .cbz, .cbt, .cb7)
    • Plain text (.txt)
    • Unpacked EPUB files
  • Improved layout, text-to-speech, image viewer, annotations.
  • Important security fix. Recommend to “Allow Unsafe Content” for old version.
  • Support for StarDict dictionaries.
  • And many other features, see release note for more details.

How to Install Foliate 2.2.0 in Ubuntu:

The software is available to install either via Snap package (in Ubuntu Software) or Flatpak package, both run in sandbox.

For those prefer Ubuntu .deb package, run following commands one by one to install it via the PPA repository.

1.) Open terminal (Ctrl+Alt+T) and run command to add the PPA:

sudo add-apt-repository ppa:apandada1/foliate

Type user password (no asterisk feedback) when it prompts and hit Enter to continue.

2.) Then refresh package cache and install the eBook reader:

sudo apt update

sudo apt install foliate

NOTE if you’ve installed an old version via the .deb package downloaded from github release page, remove it first due to different package name by running command:

sudo apt remove com.github.johnfactotum.foliate

Uninstall:

To remove the PPA repository, open Software & Updates utility and navigate to Other Software tab.

To remove Foliate ebook reader, simply run command:

sudo apt remove --autoremove foliate

The default nautilus file browser allows to compress files into Zip, Tar.xz, 7z archive with no other options.

What if you want to compress your data into other formats (e.g., rar, epub, jar, and more) with password protection, and change the compress level?

1.) Open file roller archive manager from ‘Show Applications’ menu.

2.) Go to menu > New Archive, then you can:

  • create with 24 supported arhive formats.
  • type a filename, select location.
  • and set password under Other Options (click expend) for epub, rar, zip, and more.
  • finally click on Create button.

NOTE: you need to run sudo apt install rar unrar command in terminal (Ctrl+Alt+T) and follow by nautilus -q to enable rar support.

3.) Next click on top left ‘+‘ icon and add your files to the archive, finally close the window and done.

4.) If you want to enable maximum compression level, install dconf editor from Ubuntu Software and launch it.

Navigate to org/gnome/file-roller/general/compression-level, toggle off ‘Use default value’ and set ‘Custom value’ to ‘maximum’.

Android Studio 4.0 was released a day ago. Here’s how to install it in Ubuntu 18.04, Ubuntu 19.10, Ubuntu 20.04.

Android Studio 4.0 features a new Motion Editor, improved Layout Inspector, Clangd support for C++, smart editor features, enhancements to the CPU Profiler, Java 8 language library desugaring in D8 and R8, and much more other changes. See the release note for more.

How to Install Android Studio 4.0 in Ubuntu:

The containerized Snap package is available to install in Ubuntu Software for Ubuntu 18.04 and higher:

Don’t like Snap application? You can also install Android Studio 4.0 easily via Ubuntu Make.

1.) Install the latest Ubuntu Make:

  • Open terminal (Ctrl+Alt+T) and run command to add the PPA which contains the latest Ubuntu Make packages for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 19.10, and Ubuntu 20.04.
    sudo add-apt-repository ppa:lyzardking/ubuntu-make

  • Then install or upgrade Ubuntu Make via command:
    sudo apt update && sudo apt install ubuntu-make

  • 2.) Install Android Studio via command:

    umake android --accept-license

    It automatically downloads the software package and dependencies from Google and installs on your system for single use by default.

    3.) Once installed, launch the IDE from ‘Show Applications’ menu. Restart you machine if you don’t see the icon, or run sh ~/.local/share/umake/android/android-studio/bin/studio.sh command to launch it from terminal.

    Uninstall:

    You may remove Ubuntu Make PPA by running command:

    sudo add-apt-repository --remove ppa:lyzardking/ubuntu-make

    And remove Android Studio via command:

    umake android --remove

    How to Enable SSH Service in Ubuntu 20.04

    Last updated: May 28, 2020

    This quick tip shows how to enable Secure Shell (SSH) service in Ubuntu 20.04 LTS, both desktop and server, to allow secure remote login and other network communications.

    Ubuntu includes OpenSSH, a suite of secure networking utilities based on the Secure Shell protocol, in its main repositories. While OpenSSH client is installed out-of-the-box, you can do following steps to install and setup OpenSSH server in Ubuntu 20.04.

    1. First open terminal and run command to install the packages:

    sudo apt install ssh

    Type user password (no asterisk feedback) for sudo prompt and hit Enter.

    2. Once installed, SSH services start in background silently. You can check its status by running command:

    systemctl status ssh.service

    You may replace status in the code with stop, reload, restart to stop, reload, or restart the service.

    3. The SSH service should be working good now for basic use! If you want to change the listening port, root login permission, or other authentications, run command to edit the configuration file:

    sudo nano /etc/ssh/sshd_config

    replace nano with gedit if you’re on Ubuntu Desktop.

    Save changes by pressing Ctrl+X, then Y, and finally hit Enter. And remember to restart the SSH service via sudo systemctl restart ssh.service command.

    Folder Color is a file browser extension allows to change the color and add emblem for selected folder.

    Folder Color is available in Ubuntu universe repositories. However, it does not work very well in Ubuntu 20.04 with the default Yaru icon theme, since changing the color of folders will also change the icons.

    The original developer has made the Yaru theme integration with Folder Color for Ubuntu 20.04, which can be installed via this PPA repository.

    1.) Open terminal by pressing Ctrl+Alt+T on keyboard, then run command to add the PPA:

    sudo add-apt-repository ppa:costales/yaru-colors-folder-color

    Type user password (no asterisk feedback) and hit Enter to continue.

    2.) Then install the extension as well as Yaru theme integration:

    sudo apt install folder-color yaru-colors-folder-color

    3.) Finally restart Nautilus file browser via nautilus -q command. Restore previously folders’ color if changed.

    And change the colors from folders’ context menu and enjoy!

    (Optional) To remove the PPA repository, either go to Software & Updates -> Other Software or run command in terminal:

    sudo add-apt-repository --remove ppa:costales/yaru-colors-folder-color

    Small and highly customizable twin-panel Sunflower file manager released version 0.4 after many years of development.

    Sunflower 0.4 brings new interface based on GTK3. The code is ported to Python3. As a result of this rewrite performance has gone up as well.

    There are still many issues in the new release. Emblems are completely missing, drag and drop is broken and keyboard shortcuts are broken due to some upstream problems. And these will be fixed in upcoming weeks.

    How to Install Sunflower 0.4 in Ubuntu:

    The file manager offers official .deb package that works on Ubuntu 18.04, Ubuntu 19.10, and Ubuntu 20.04.

    Grab the Ubuntu package and click install either via Software Install or Gdebi package installer.

    Once installed, search for and launch Sunflower from ‘Show Applications’ menu and enjoy!

    There are quite a few ways to transfer files over home network. One of the easiest ways is to run a single python command in terminal.

    Python contains a script that sets up simple http server. No need to install anything, and even no internet connection required.

    1. Simply right-click on the folder that contains the files you want to transfer, then select ‘Open in Terminal

    2. When terminal opens, run the single command:

    python3 -m http.server

    UPDATE: You can specify the listening port (e.g., 9900) if you get “Address already in use” error, by running command:

    python3 -m http.server 9900

    That’s it!

    Now any device in the same network can access the http file server by going to (change 8000 if you specified another listening port): http://server_ip:8000

    In addition, you may run python3 -m http.server & instead to start the http server in background, so the terminal window can be closed.

    To check your IP address, go to Settings > Wi-Fi (or Network), click on the gear button after your connected network and check the IPv4 Address.

    Need to do some work in the black & white command line console? You can press Ctrl+Alt+F3 on keyboard to switch from the current session to tty3 text console, and switch back via Ctrl+Alt+F2.

    From the startup grub boot-loader menu entry, you may select the Advanced Options > recovery mode > Drop to root shell prompt to get into text mode. However you need to run command mount -o rw,remount / to get file system write permission.

    If you want to make Ubuntu automatically boot into the text mode, configure grub settings by doing following steps one by one:

    1. Open terminal and run command to backup the configuration file:

    sudo cp -n /etc/default/grub /etc/default/grub.backup

    2. Edit the configuration file via command:

    sudo gedit /etc/default/grub

    When the file opens, do:

    • disable GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" by adding # at the beginning.
    • set GRUB_CMDLINE_LINUX="" to GRUB_CMDLINE_LINUX="text"
    • remove # from the line GRUB_TERMINAL="console" to disable graphical terminal.

    3. Save the file and apply changes by running command:

    sudo update-grub

    4. One more command is required as Ubuntu now uses systemd:

    sudo systemctl set-default multi-user.target

    How to Restore:

    To restore changes, simply move back the backup file via command:

    sudo mv /etc/default/grub.backup /etc/default/grub

    And run sudo update-grub to apply change.

    Also change the setting back in systemd via command:

    sudo systemctl set-default graphical.target

    Transmission, Ubuntu’s default BitTorrent Client, released new major 3.00 version a days ago. Here’s how to install it in Ubuntu 20.04, Ubuntu 19.10, Ubuntu 18.04.

    Transmission 3.00 features:

    • Allow RPC server to listen on IPv6.
    • Limit incorrect authentication attempts to prevent brute-force attacks.
    • Add Peer ID for Xfplay, PicoTorrent, Free Download Manager, Folx, Baidu Netdisk torrent clients
    • Make transmission slightly faster by adding TCP_FASTOPEN support
    • Add support for mbedtls and wolfssl, LibreSSL
    • Add queue up/down hotkeys
    • Improve Qt UI look on hi-dpi displays
    • And much more other changes.

    How to Install Transmission 3.00 in Ubuntu:

    The official Transmission PPA has built the packages for Ubuntu 20.04, Ubuntu 19.10, Ubuntu 18.04.

    1. Open terminal either by pressing Ctrl+Alt+T on keyboard or by searching for ‘terminal’ from your system application menu. When it opens, run command to add the PPA:

    sudo add-apt-repository ppa:transmissionbt/ppa

    Type user password (no asterisk feedback) and hit Enter to continue.

    2. Then launch Software Updater (update manager) and upgrade the torrent client:

    How to Restore:

    For any reason, you can restore the BitTorrent client to the stock version by running command in terminal:

    sudo apt install ppa-purge && sudo ppa-purge ppa:transmissionbt/ppa

    Audacity audio editor 2.4.0 was released a few days ago. The release was paused due to a critical bug. Now version 2.4.1 arrived with quick fixes.

    What’s new in Audacity 2.4.1:

    • Works on Mac Catalina.
    • New Time Toolbar.
    • Presets for more effects can be imported and exported.
    • New Multi-View mode for tracks.
    • Export audio to Opus in Windows, Linux.
    • Easier to convert labels between point labels and range labels.
    • New Loudness Normalization effect.
    • New RMS measurement analyzer.
    • New Noise Gate effect.
    • New Spectral Delete effect.
    • Tons of bug-fixes.

    How to Install Audacity 2.4.1 in Ubuntu:

    The unofficial PPA has built the new release packages for Ubuntu 20.04, Ubuntu 19.10, Ubuntu 18.04, and Ubuntu 16.04.

    1. Open terminal either via Ctrl+Alt+T keyboard shortcut or by searching for ‘terminal’ from application menu. When it opens, run command to add the PPA:

    sudo add-apt-repository ppa:ubuntuhandbook1/audacity

    Type user password (no asterisk feedback due to security reason) when it prompts and hit Enter to continue.

    2. If you have a previous version installed, you can upgrade Audacity via Software Updater after adding the PPA.

    or run following commands one by one to check updates and install (or upgrade) audacity 2.4.1:

    sudo apt update
    
    sudo apt install audacity

    Uninstall:

    To remove the PPA repository, launch Software & Updates utility and navigate to ‘Other Software’ tab.

    To remove Audacity audio software, either use system package manager or run command in terminal:

    sudo apt-get remove --autoremove audacity audacity-data