Archives For Elementary OS

This is a step by step tutorial shows how to add “open as root (or administrator)” option in Pantheon file browser in Elementary OS 6 Odin.

Elementary OS now is at version 6.0 based on Ubuntu 20.04 LTS. For those looking for the “Open as Administrator” function to open system file via root user permission, or do copy & paste things outside of user’s home directory, things have changed.

The executable command for the file manager now is io.elementary.files, and the command to start text editor is io.elementary.code. Both are named in Flatpak app style. Gksu has gnone, and “pkexec” takes the place to allow an authorized user to execute program as root.

Add Open as Admin action in Elementary OS 6:

1. ) Firstly, search for and open “terminal” from the top-left corner Applications menu.

2. When terminal opens, run command to create (& edit via nano) the configuration file for option to edit file as root user privilege:

sudo nano /usr/share/contractor/io.elementary.code.open-as-root.contract

When the file opens in terminal, paste following lines and save via Ctrl+X, type y and hit Enter.

[Contractor Entry]
Name=Edit as Administrator
Icon=io.elementary.code
Description=Edit file via root user privilege
MimeType=text/plain;
Exec=pkexec io.elementary.code %U
Gettext-Domain=code

3. And create another config file for an option to open folder as root permission:

sudo nano /usr/share/contractor/io.elementary.files.open-as-root.contract

Then paste the following lines and save it (Ctrl+X, type y, and hit Enter):

[Contractor Entry]
Name=Open as Administrator
Icon=system-file-manager
Description=Open a folder via root user privilege
MimeType=inode/directory;
Exec=pkexec io.elementary.files %U
Gettext-Domain=file manager

After creating the two files, “Edit as Administrator” and “Open as Administrator” context menu option appear when right-clicking a file or folder immediately without restart.

As you see, you can create more actions by creating files with “.contract” extension under /usr/share/contractor directory. The name will be displayed as menu option, and you can find value of icon, MineType and Exec by checking the app shortcut file (.desktop) under /usr/share/applications directory.

That’s all. Enjoy!

elementaryos-logo

The best-looking Linux distro, Elementary OS, has reached the 0.4 release, code name “Loki” and base on Ubuntu 16.04 package system.

The Elementary OS team announced the stable release of Loki last night:


After a little over a year of development, elementary is proud to announce the stable release of elementary OS Loki!

Loki is the newest version of elementary OS, a design-oriented and open source Linux-based operating system for desktops and laptops. It succeeds Freya which was released in April of 2015.

Elementary OS Loki

What’s new in Elementary OS Loki:

  • Linux Kernel 4.4 and Ubuntu 16.04 base
  • redesigned indicators change to be dark or light depending on your wallpaper.
  • redesigned audio indicator with more compact set of controls and large icons
  • new network indicator and redesigned network settings, bluetooth indicator
  • A new lid close setting and related behavior
  • Notification center now caches notifications and offers Do Not Disturb toggle
  • use Epiphany as new default web browser.
  • new app store
  • various other improvements, see the release note.

Download Elementary OS Loki at: elementary.io. (pay any dollar amount, or type 0 for free)

elementaryos-logo

This tutorial shows how to upload your images to Imgur hosting service easily through files’ right-click context menu in Elementary OS Freya and share the image link with your friends.

Thanks to Stefan Ric (cybre) who wrote a plugin for Pantheon file browser to make uploading to Imgur easier in Elementary OS.

upload-to-imgur

All you need to do is right click on your image file or files and select Upload to Imgur option. After that, system notifications pop up with uploading process:

imgur uploader notifications

Once done, it prompts that the image link has been copied to your clipboard.

imgur image link

To install Imgur uploader plugin:

Just open terminal from the application launcher and run below commands one by one to install it from developer’s PPA:

sudo add-apt-repository ppa:cybre/imgurcontract

sudo apt-get update

sudo apt-get install imgur-contract

For those who don’t want to add PPA, download and install the package “imgur-contract_xxx~ubuntu14.04.x_all.deb” for Freya directly from link below:

Imgur Uploader Plugin for Pantheon

Elementary OS' noise music player

Noise, the official music player of Elementary OS, is a fast and beautiful GTK3 audio player with a focus on music and libraries. It handles external devices, CDs, and album art. Noise utilizes Granite for a consistent and slick UI.

Elementary OS Team has created a few PPAs on launchpad.net so users can easily install and test some Elementary applications on Ubuntu desktop. And here’s how to install Noise music player in Ubuntu 15.04, or Ubuntu 15.10.

Noise in Ubuntu 15.04

Noise in Ubuntu 15.04

1. Open terminal from the Dash, App Launcher, or by pressing Ctrl+Alt+T on keyboard. When it opens, run command to add the Elementary OS daily ppa:

sudo add-apt-repository -y ppa:elementary-os/daily

noise-ppa

2. After adding the PPA, refresh your system repository cache and install the music player via 2 commands:

sudo apt-get update

sudo apt-get install noise

3. Finally, you have to remove the PPA since it contains some unstable and EOS only applications. To do so, run:

sudo add-apt-repository -r ppa:elementary-os/daily && sudo apt-get update

4. (Optional) If you want to remove this music player, simply run:

sudo apt-get remove noise

Tip: Due to a bug related to the Unity overlay scrollbars, there’s a background issue which can be fixed by running below command to edit the launcher file of Noise:

gksudo gedit /usr/share/applications/noise.desktop

Install gksu from Software Center if the command doesn’t work. When the file opens, change the value of Exec to env LIBOVERLAY_SCROLLBAR=0 noise %U so it look likes:

noise-scrollbar

That’s it.

Elementary OS Freya

The default file browser in Elementary OS Freya uses single-click to open files and folders, though there’s no option to change this preference.

For those who would like to use double-click to open an item in the file browser, there’s a graphical configuration tool called Elementary Tweaks that may help.

1. Install Elementary Tweaks in Freya

The developer is maintaining a PPA with the latest packages for this tool.

Though the 14.04 build is failed at the moment of writing this tutorial, we can download an earlier version at PPA’s ftp download page:

Download Elementary Tweaks (.DEB)

Depends on your OS type, select download:

  • For 64-bit eOS Freya, download:
    • elementary-tweaks-dbg_x.x.x~ubuntu14.04.1_amd64.deb
    • elementary-tweaks_x.x.x~ubuntu14.04.1_amd64.deb
  • For 32-bit eOS Freya, download:
    • elementary-tweaks-dbg_x.x.x~ubuntu14.04.1_i386.deb
    • elementary-tweaks_x.x.x~ubuntu14.04.1_i386.deb

Then install them one by one, in below order, by opening the .deb package with Software Center:

  • elementary-tweaks_x.x.x~ubuntu14.04.1_i386/amd64.deb
  • elementary-tweaks-dbg_x.x.x~ubuntu14.04.1_i386/amd64.deb

2. Disable single-click and enable double-click

After installing Elementary Tweaks, open System Settings from the dock at the bottom of your screen and then click the Tweaks icon.

open-elementary-tweaks-580

In the next page, select Files from left pane, and finally disable Single Click by clicking the toggle.

enable-double-click-580