You are Here:
Download Linux Lite 5.4 RC1 today - See Release Announcements



Lite Software - Suggestions welcomed

Author (Read 30479 times)

0 Members and 1 Guest are viewing this topic.

Lite Software - Suggestions welcomed
« on: August 24, 2014, 04:34:17 PM »
 

misko_2083

  • Gold Level Poster
  • *******
  • 687
    Posts
  • Reputation: 191
  • Linux Lite Member

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
This script should be named lite-software-gui
saved in /usr/scripts, and marked as executable.
Once a selected app is installed or an installation has been canceled it will be launced again.
Here is the screenshot:

The script:

Code: [Select]
#! /bin/bash
#-----------------------------------------------------------------------------
#Name: Linux Lite Additional Software Install (GUI version)
# Description: A GUI tool to easily install additional software in Linux Lite.
# Author: Misko_2083 2014
#-----------------------------------------------------------------------------
ic="/usr/share/icons/zenity-llcc.png"
selection=$(zenity --window-icon="$ic" --list --width=890 --height=640 --column="#" --column="Name" \
 --column="Description" --text="Select the software to install" --title="Install Additional Software" --ok-label="Install" --cancel-label="Quit" \
"1" "Apple Trailers Plugin" "Watch Apple trailers in your web browser (Firefox only)" \
"2" "Chrome Web Browser" "Install the Google Chrome web browser" \
"3" "Chromium Web Browser" "Install the open-source alternative to the Google Chrome web browser" \
"4" "Dropbox" "A popular cloud storage application" \
"5" "File & Folder Search" "Easily locate files and folders in your computer" \
"6" "Games Pack" "Comes with Solitaire, Chess, Mahjongg, Mines and Hearts" \
"7" "Google Talk Browser Plugin" "Install this plugin to use Google Hangouts video chat" \
"8" "iDevices Manager" "Manage your iDevices with Gtkpod" \
"9" "Instant Messenger" "This will install Pidgin, a multi-protocol Instant Messenging client" \
"10" "Java Web Applet Plugin" "To allow you to view java applets in your web browser" \
"11" "Netflix" "A popular streaming tv and movie service (account required)" \
"12" "Password Manager" "Installs KeePassX, an excellent password manager" \
"13" "PlayOnLinux" "Easily install and use numerous games and apps designed to run with Windows" \
"14" "Remote Desktop Software" "Installs the Remmina Remote Desktop Client for Windows (RDP) and VNC Servers" \
"15" "Restricted Extras" "Installs additional codecs and useful file formats that are not shipped by default" \
"16" "Skype" "A popular audio and video chat application" \
"17" "Teamviewer" "Installs Teamviewer Remote Desktop Support software" \
"18" "Torrent Software" "Installs the Deluge Torrent client software" \
"19" "Video Editing Software" "Installs Openshot, a simple to use yet powerful video editor for linux" \
"20" "VirtualBox" "Virtualbox allows you to install other operating systems like Windows from within Linux Lite" \
"21" "Weather Monitor" "This will install a Weather Monitor Plugin for your tray" \
"22" "Webcam Software" "Guvcview, webcam software for your computer" \
"23" "Wine" "Wine allows you to install and run some Windows programs and games on Linux Lite" \
"24" "XBMC" "This will install the XBMC Media Center" \
"25" "Updates" "Install system and software updates" )

case "$selection" in
"1")/usr/scripts/trailers 2>/dev/null && /usr/scripts/lite-software-gui ;;
"2")/usr/scripts/chrome 2>/dev/null && /usr/scripts/lite-software-gui ;;
"3")/usr/scripts/chromium 2>/dev/null && /usr/scripts/lite-software-gui ;;
"4")/usr/scripts/dropbox 2>/dev/null && /usr/scripts/lite-software-gui ;;
"5")/usr/scripts/search 2>/dev/null && /usr/scripts/lite-software-gui ;;
"6")/usr/scripts/games 2>/dev/null && /usr/scripts/lite-software-gui ;;
"7")/usr/scripts/googletalk 2>/dev/null && /usr/scripts/lite-software-gui ;;
"8")/usr/scripts/idev 2>/dev/null && /usr/scripts/lite-software-gui ;;
"9")/usr/scripts/im 2>/dev/null && /usr/scripts/lite-software-gui ;;
"10")/usr/scripts/javaplugin 2>/dev/null && /usr/scripts/lite-software-gui ;;
"11")/usr/scripts/netflix 2>/dev/null && /usr/scripts/lite-software-gui ;;
"12")/usr/scripts/keepassx 2>/dev/null && /usr/scripts/lite-software-gui ;;
"13")/usr/scripts/playonlinux 2>/dev/null && /usr/scripts/lite-software-gui ;;
"14")/usr/scripts/remote 2>/dev/null && /usr/scripts/lite-software-gui ;;
"15")/usr/scripts/re 2>/dev/null && /usr/scripts/lite-software-gui ;;
"16")/usr/scripts/skype 2>/dev/null && /usr/scripts/lite-software-gui ;;
"17")/usr/scripts/teamviewer 2>/dev/null && /usr/scripts/lite-software-gui ;;
"18")/usr/scripts/deluge 2>/dev/null && /usr/scripts/lite-software-gui ;;
"19")/usr/scripts/openshot 2>/dev/null && /usr/scripts/lite-software-gui ;;
"20")/usr/scripts/virtualbox 2>/dev/null && /usr/scripts/lite-software-gui ;;
"21")/usr/scripts/weather 2>/dev/null && /usr/scripts/lite-software-gui ;;
"22")/usr/scripts/guvcview 2>/dev/null && /usr/scripts/lite-software-gui ;;
"23")/usr/scripts/wine 2>/dev/null && /usr/scripts/lite-software-gui ;;
"24")/usr/scripts/xbmc 2>/dev/null && /usr/scripts/lite-software-gui ;;
"25")x-terminal-emulator --geometry=95x25 -t "Linux Lite Updates" -e /usr/scripts/updates  2>/dev/null && /usr/scripts/lite-software-gui ;;
esac
Last Edit: September 23, 2014, 04:21:24 AM by Valtam
 


Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #1 on: August 24, 2014, 04:57:57 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7907
    Posts
  • Country: nz
  • Reputation: 744
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.2 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
This is incredible misko! I will seriously look at replacing the current install system with this. If you can get the download and install bar to show a percentage and download rate we will replace the current install method with yours. Up for the challenge? :)
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #2 on: August 25, 2014, 12:04:16 PM »
 

misko_2083

  • Gold Level Poster
  • *******
  • 687
    Posts
  • Reputation: 191
  • Linux Lite Member

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
I wish I could help with that. I'm fairly new to bash scripting. I've found this http://www.webupd8.org/2010/12/yad-zenity-on-steroids-display.html
Maybe yad can help. It's more advanced than zenity.
I've updated the Install script, 'updates' now works and I've changed the OK button to Install and cancel to Quit.
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #3 on: August 25, 2014, 12:33:05 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7907
    Posts
  • Country: nz
  • Reputation: 744
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.2 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
I like your new version. The good thing about this kind of software is that it can evolve as your knowledge evolves.
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #4 on: August 26, 2014, 11:13:42 AM »
 

misko_2083

  • Gold Level Poster
  • *******
  • 687
    Posts
  • Reputation: 191
  • Linux Lite Member

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
Valtam, this will improve the install scripts a bit.
I've found this:
http://unix.stackexchange.com/questions/120252/how-to-apply-pipe-zenity-yad-progress-bar
It can be applied like this in the scripts:
Code: [Select]
stdbuf -oL sudo apt-get install -y google-chrome-stable  |
 stdbuf -oL sed -n '/\.\.\.$/ s/^/# /p' |
 zenity --progress --title="Installing Google Chrome" --pulsate \
 --width=450 --auto-close
It still doesn't show the download progress and rates.
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #5 on: August 26, 2014, 12:57:10 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7907
    Posts
  • Country: nz
  • Reputation: 744
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.2 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Thank you to misko_2083 for his fine work on this code. I have now included this new code in Install Additional Software. This is now available in the updates. I'm currently working on the Remove Additional Software GUI and hope to have this finished soon.

 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #6 on: August 26, 2014, 01:27:41 PM »
 

sonic

  • Guest
Next target: Install Updates with GUI interface! :P +1 misko_2083
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #7 on: August 26, 2014, 02:52:39 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7907
    Posts
  • Country: nz
  • Reputation: 744
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.2 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Next target: Install Updates with GUI interface! :P +1 misko_2083

That would be nice :)

Remove Additional Software has been gui'd to now, enjoy :)

 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #8 on: August 26, 2014, 03:15:30 PM »
 

tompa

  • New to Forums
  • *
  • 17
    Posts
  • Country: se
  • Reputation: 2
  • Linux Lite Member

  • MEMORY: 4Gb
got it!!  :)

Thanks misko!
/tompa
Last Edit: August 26, 2014, 04:16:34 PM by tompa
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #9 on: August 26, 2014, 03:36:48 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7907
    Posts
  • Country: nz
  • Reputation: 744
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.2 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Announcements have been posted to social media sites, full credit to misko :)
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #10 on: August 26, 2014, 06:31:53 PM »
 

misko_2083

  • Gold Level Poster
  • *******
  • 687
    Posts
  • Reputation: 191
  • Linux Lite Member

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
Great news Jerry! I've just seen you made a Remove Additional Software as well. That was fast. :)
I like that new category column you added.
Thank you for the credits.  ;D
One more usefull thing the --text supports bold, italic and unerline and the combination of those three.

Code: [Select]
--text="<b>Click</b> on the <i>program</i> you wish to <u>install</u>, then <i><b>click</b></i> the <u><b>Install button</b></u>. Sort Categories by clicking on the column."
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #11 on: August 26, 2014, 06:56:22 PM »
 

Scott

  • Global Moderator
  • Gold Level Poster
  • *****
  • 857
    Posts
  • Country: 00
  • Reputation: 186
  • Linux Lite Member

  • Linux Lite: 3.4 64bit

  • CPU: Dual core Intel Core i3 M 330

  • MEMORY: 6Gb

  • VIDEO CARD: Intel Integrated Graphics
Probably not exactly what you want but you can get a progress bar for install updates in this manner:



Source:
http://askubuntu.com/questions/445245/how-do-i-enable-fancy-apt-colours-and-progress-bars
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #12 on: August 26, 2014, 08:17:47 PM »
 

misko_2083

  • Gold Level Poster
  • *******
  • 687
    Posts
  • Reputation: 191
  • Linux Lite Member

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
Maybe something like this?
I can't make it better, maybe someone will figure it out.
Code: [Select]
#!/bin/bash

# Linux lite update script


x=$( gksudo -g --message 'To update package lists your password is required. Enter your password, or press Cancel.' "stdbuf -oL sudo apt-get update"   |
 stdbuf -oL sed -n -e '/\[*$/ s/^/# /p' -e '/\*$/ s/^/# /p'|
 zenity --progress --title="Updating" --pulsate \
 --width=600 --auto-close )
Code: [Select]
#!/bin/bash

# Linux lite upgrade script

y=$( gksudo -g --message 'To install updates your password is required. Enter your password, or press Cancel.' "stdbuf -oL sudo apt-get -y upgrade" |
 stdbuf -oL sed -n -e '/\[*$/ s/^/# /p' -e '/\.\.\.$/ s/^/# /p' -e '/\*$/ s/^/# /p' |
 zenity --progress --title="Upgrading" --pulsate \
 --width=600  )
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #13 on: August 26, 2014, 08:24:27 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7907
    Posts
  • Country: nz
  • Reputation: 744
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.2 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
That's a good start :)
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #14 on: August 26, 2014, 11:11:28 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7907
    Posts
  • Country: nz
  • Reputation: 744
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.2 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Updates Beta is available to test. Make 2 files, betaupdates and updates.

In betaupdates place the following code, then save and close:

Code: [Select]
#!/bin/bash
#-----------------------------------------------------------------------------------------
# Name: Linux Lite Updates
# Description: A GUI tool to easily install Updates in Linux Lite.
# Authors: Misko_2083, Jerry Bezencon
# Date: Aug 27th, 2014
# Website: https://www.linuxliteos.com
#-----------------------------------------------------------------------------------------

# Main window dialogue.
 INSTALLER_TITLE="Linux Lite Updates
-----------------------------------------------------------------------------------------------------------
We will now check for updates for Linux Lite.

Please make sure all software installation programs like
Synaptic Package Manager and Gdebi are closed before proceeding.

When you click on Yes, this window will close and the updates will begin.

-----------------------------------------------------------------------------------------------------------
Click on Yes to continue or No to cancel the updates process."

# Call the zenity window icon location.
 INSTALL_ICON="/usr/share/icons/zenity-llcc.png"
 APPNAME="Linux Lite"
       
        zenity --question --title="$APPNAME Updates" --window-icon="${INSTALL_ICON}" --text="${INSTALLER_TITLE}"

                if [ "$?" -eq "0" ]; then

x=$( gksudo -g --message 'To update package lists your password is required. Enter your password, or press Cancel.' "stdbuf -oL sh /home/jerry/updates" |
 stdbuf -oL sed -n -e '/\[*$/ s/^/# /p' -e '/\*$/ s/^/# /p' |
 zenity --progress --title="Updating..." --window-icon="${INSTALL_ICON}" --pulsate \
 --width=600 --auto-close )

                                if [ "${PIPESTATUS[0]}" -ne "0" ]; then
                       
                                        zenity --error \
                                        --title="Error" --text="$APPNAME Updates have failed."
                                        exit 0
                                fi

                else

                                        exit 0
                fi

PROCEED=$(zenity --question --title="$APPNAME Updates" --window-icon=/usr/share/icons/zenity-llcc.png --text="Updates have finished installing.\n\nWould you like to view the $APPNAME Update logs?"; echo $?)
if [ ${PROCEED} -eq 1 ]; then
zenity --info --title="$APPNAME Updates Complete" --window-icon="${INSTALL_ICON}" --text="$APPNAME Updates Complete."
exit;
else
leafpad /var/log/liteupdates.log | leafpad /var/log/liteupgrades.log
fi

exit 0

Don't forget to change /home/jerry/updates to /home/youruser/updates.

In updates place the following code, then save and close:

Code: [Select]
#!/bin/bash
sudo rm -rf /var/log/liteupdates.log && sudo rm -rf /var/log/liteupgrades.log
sudo apt-get update 2>&1 | tee /var/log/liteupdates.log && sudo apt-get upgrade -y 2>&1 | tee /var/log/liteupgrades.log

Make both files executable.

Open a terminal and do:
Code: [Select]
./betaupdates
and let me know how you get on. Thank you for testing :)
Last Edit: August 27, 2014, 02:35:28 PM by Valtam
 


Tags:
 


Download Linux Lite 5.4 RC1 today - See Release Announcements