Search

Just Another Tech Blog

A mind is like a parachute. It doesn't work if it is not open.

Category

Ubuntu

Shutter Plugin for Simple Border


Shutter is a feature-rich screenshot program for Linux based operating systems such as Ubuntu. You can take a screenshot of a specific area, window, your whole screen, or even of a website – apply different effects to it, draw on it to highlight points, and then upload to an image hosting site, all within one window. Shutter is free, open-source, and licensed under GPL v3.

Official website: http://shutter-project.org/

I have made a simple plugin using shell scripting for Shutter to add a simple 1 pixel black border on the image.

Install shutter

Open terminal and run the following command one by one.

sudo apt-get update
sudo apt-get install shutter

It should install shutter in your ubuntu.

Now from Dashboard search “shutter” and confirm that it has installed.

Configure Shutter

Open shutter and press Alt+P or go to Preferences from menu.

Now click Action tab from left and make the following changes:

  • Check Open wiht Built-in Editor
  • Check Border and make it 1 pixels and color black.

Selection_047
Now click on Behaviour tab and confirm the settings are same as the bellow image:

Selection_048

Now Close the Preferences.

Keyboard Short-cut Settings for Shutter

In Ubuntu dashboard type keyboard and press enter or go to Keyboard settings manually.

After opening Keyboard settings window click “Shortcuts” tab then click “+” icon bellow.

Selection_049

A pop-up will appear type “Shutter” in the Name field and “shutter -s” in Command field then click Apply.

Selection_050

A warning pop-up will appear click Reassign.

Selection_051

Now add another short-cut by clicking “+” icon.

Here the Name should “Shutter full” and Command should “shutter -f”.

Now Apply and click Reassign.

Selection_052

Now close the Keyboard setting.

Now Pressing the Print Screen button on keyboard will appear the screen capture window
with selection area option.

And Cltr+Print Screen button will capture the full screen.

Adding border after editing

If after editing any image the pre-selected border got cut off you can add another using Simple Border Plugin. Simple Border plugin Download.

Please see the Readme.txt file for detail instruction.

Now Quit shutter and run it again.

Now open any image in shutter, press Cltr+Shift+P or right click on the image and click “Run a Plugin”,

select ”Plain Border” and Run.

It will add a border on the image.

Selection_057

Advertisements

How to Create Lan/Samba sharing from Ubuntu


  1. install Samba
    sudo apt-get update
    sudo apt-get install samba
  2. Set a password for your user in Samba
    • sudo smbpasswd -a <user_name>
      • Note: Samba uses a separate set of passwords than the standard Linux system accounts (stored in /etc/samba/smbpasswd), so you'll need to create a Samba password for yourself. This tutorial implies that you will use your own user and it does not cover situations involving other users passwords, groups, etc...

         

        Tip1: Use the password for your own user to facilitate.

         

        Tip2: Remember that your user must have permission to write and edit the folder you want to share.
        Eg.:
        sudo chown <user_name> /var/opt/blah/blahblah
        sudo chown :<user_name> /var/opt/blah/blahblah

         

        Tip3: If you're using another user than your own, it needs to exist in your system beforehand, you can create it without a shell access using the following command :
        sudo useradd USERNAME --shell /bin/false
        
        You can also hide the user on the login screen by adjusting lightdm's configuration, in /etc/lightdm/users.conf add the newly created user to the line :
        hidden-users=

         

  3. Create a directory to be shared [optional]
    mkdir /home/<user_name>/<folder_name>
  4. Make a safe backup copy of the original smb.conf file to your home folder, in case you make an error
    sudo cp /etc/samba/smb.conf ~
  5. Edit the file “/etc/samba/smb.conf”
    sudo nano /etc/samba/smb.conf
    • Once "smb.conf" has loaded, add this to the very end of the file:
      
      [<folder_name>]
      path = /home/<user_name>/<folder_name>
      available = yes
      valid users = <user_name>
      read only = no
      browseable = yes
      public = yes
      writable = yes

       

      Tip: There Should be in the spaces between the lines, and note que also there should be a single space both before and after each of the equal signs.

       

  6. Restart the samba:
    sudo service smbd restart
  7. Once Samba has restarted, use this command to check your smb.conf for any syntax errors
    testparm
  8. To access your network share

    To access your network share use your username (<user_name>) and password through the path “smb://<HOST_IP_OR_NAME>/<folder_name>/” (Linux users) or “\\<HOST_IP_OR_NAME>\<folder_name>\” (Windows users). Note that “<folder_name>” value is passed in “[<folder_name>]”, in other words, the share name you entered in “/etc/samba/smb.conf”.

    • Note: The default user group of samba is "WORKGROUP".
  9. Now from GUI go to any directory.
  10. Right click on it > go to Properties.
  11. Click “Local Network Share” > Click “Share this folder” > click “Create share” at the right bottom.
  12. Now it is done.
  13. Go from any network PC and hit the ip address.
  14. Use user/pass (samba) and happy Browsing!! 🙂

Source

Blog at WordPress.com.

Up ↑