Results 1 to 1 of 1

Thread: Bodhi easier updates script

  1. #1
    Join Date
    May 2012
    Location
    UK
    Beans
    614

    Bodhi Linux easier updates script

    if you want to keep the system light by doing software updates through the terminal, but want to make it easier, you could do the following.

    create a script

    open a text editor, paste this in

    Code:
    #!/bin/bash
    
    sudo apt-get update && sudo apt-get upgrade (or dist-upgrade)
    edit the command to your liking.

    save with the extension .sh, for example updates.sh

    right-click the file, and make it executable.

    put the file in /home/username/.local/share/applications


    create a launcher

    this will act like any other application menu entry, which you can create shortcuts and launchers from.

    open your text editor again, paste this in

    Code:
    [Desktop Entry]
    Name=Software Updates
    Type=Application
    Exec=xterm -hold -e /path/to/script.sh
    Icon=/path/to/icon
    StartupNotify=false
    Terminal=false
    Categories=System;
    edit the lines starting Exec and Icon to the correct paths, you may also want to change Name and Categories.

    save with the extension .desktop, for example Software Updates.desktop

    put the file in /home/username/.local/share/applications


    now you can create a launcher, with a specified icon, it will open the terminal, ask for your password, and then run those commands. system icons are located at /usr/share/icons
    Last edited by black veils; June 20th, 2012 at 02:46 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •