Friday, April 24, 2015

Google search and translate selected text with shortcut

Install xclip

sudo apt-get install xclip

opensuse -here

Create a script like so:
#! /bin/sh
sh -c 'firefox "$(xclip -o)"'

Save it as

For translating:
#! /bin/sh
'sh -c 'firefox "$(xclip -o)"'

Adapt for custom languages, save as

Add shortkey for `sh path_to_our_script`

Tuesday, March 24, 2015

See devices connected to your network

sudo apt-get install nmap

Get IP range of the network with ifconfig command. Look for wlan0 if you are using wifi or eth0 if you are using Ethernet.

    user@user-notebook:~$ ifconfig

    wlan0 Link encap:Ethernet HWaddr 70:f1:a1:c2:f2:e9
    inet addr: Bcast: Mask:
    inet6 addr: fe80::73f1:a1ef:fec2:f2e8/64 Scope:Link
    RX packets:2135051 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2013773 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1434994913 (1.4 GB) TX bytes:636207445 (636.2 MB)

The important things are highlighted in bold. Here IP is and the subnet mask is which means that the ip address range on the network varies from to

It is advisable to use root privileges while scanning the network for more accurate information. Use the nmap command in following way:

sudo nmap -sP

    Starting Nmap 5.21 ( ) at 2012-09-01 21:59 CEST

    Nmap scan report for neufbox (
    Host is up (0.012s latency).
    MAC Address: E0:A1:D5:72:5A:5C (Unknown)
    Nmap scan report for takshak-bambi (
    Host is up.
    Nmap scan report for android-95b23f67te05e1c8 (
    Host is up (0.36s latency).
Here there are three devices connected to a network.


A GUI free program: WifiGuard

Friday, March 20, 2015

Create shortcuts with xbindkeys

Install xbindkeys 

sudo apt-get install xbindkeys

Create the default config file for xbindkeys 

xbindkeys --defaults > /home/your-user-name/.xbindkeysrc

When thats done, install xbindkeys-config, the GUI for xbindkeys

sudo apt-get install xbindkeys-config

Now the utility that actually does the "typing"

sudo apt-get install xvkbd

Once each is installed, start both applications by bringing up "Run Application"
 with ALT -F2.


The above is to start the GUI settings.
Ensure that <xbindings> is added to startup applications.

To have the GUI in applications, create a /usr/share/applications/xbindings_config.desktop

paste this there:

[Desktop Entry]
Name=Xbindkeys Setting
Comment=Set keys

Make it executable.

To install in Opensuse:

Here and here.

Thursday, March 19, 2015

OpenSuse - First steps

It has a lot of one-click installation sources and many programs have links for Opensuse..

Search for themes, icons and programsm including Deadbeef.

Xfce sources:

Multimedia codecs:

or directly this link that will be opened in the installer:


For Deadbeef:

sudo zypper install deadbeef-restricted-plugins


Also, rpm packages can be installed with default program.

Search for such packages here:

Friday, March 13, 2015

Create desktop file to see freespace

You need gnome terminal to create editable profile.

Open terminal and run

df -h

to see free space and identify the name of your system partition.

Let's say your system partition is /devsda5.

Then, create a desktop file with the content:

[Desktop Entry]
Name=Show free spacce
Comment=Show free space
Exec=gnome-terminal --window-with-profile=new1 -e "df -h /dev/sda5"

Save it to usr/share/applications and make it executable. Now you can run it from search.

To see space on all partitions, just use this line:

 Exec=gnome-terminal --window-with-profile=new1 -e "df -h"

Build and install packages in Arch, Manjaro, KaOS, Netrunner rolling etc

These systems use Pacman (CLI) to install programs.

To install in terminal:

first refresh repos:

sudo pacman -Syu

The generic install command is

sudo pacman -S packagename

Octopi is the Qt GUI for Pacman and is normally the software manager in the Arch-based-or-related systems that use KDE. Those that use Xfce or other GTK desktops will probably have Pamac, which  is a GTK GUI for Pacman. It is similar to Synaptic.

Octopi is able to install from already built packages (.pkg.tar.xz) but not tarball archives (.tar.xz).

Before searching for a program in Octopi be sure to refresh repos.

When the package is absent in repos, it can be built as follows:

Download the tarball package from AUR to (e.g.) ~/Build folder and extract it there, then go in terminal do

cd build/package_name

  • in order to build without installing

makepkg -s
(that will create an archive package .pkg.tar.xz in the package_name folder that can be installed with Octopi)

  • in order to build and install directly

makepkg -si