You are Here:
Linux Lite 7.0 Final Released - See Release Announcement Section



Lite Software - Suggestions welcomed

Author (Read 84344 times)

0 Members and 2 Guests are viewing this topic.

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #19 on: August 27, 2014, 12:50:40 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8831
    Posts
  • Reputation: 806
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 6.x
Don't forget to change /home/jerry/updates to /home/youruser/updates in the betaupdates file.
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #18 on: August 27, 2014, 12:37:07 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8831
    Posts
  • Reputation: 806
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 6.x
Demo:

 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #17 on: August 27, 2014, 12:29:14 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8831
    Posts
  • Reputation: 806
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 6.x
The logs open empty, is that expected?

Shouldn't, they fill with data at my end, lets see if others report the same. Thanks Scott :)
 

Re: A GUI tool to install additional software in Linux Lite 2.0
« Reply #16 on: August 27, 2014, 12:27:35 AM »
 

Scott

  • Global Moderator
  • Gold Level Poster
  • *****
  • 857
    Posts
  • Reputation: 186
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Intel Core i3 M 330

  • MEMORY: 6Gb

  • VIDEO CARD: Intel Integrated Graphics
I did a test run on the betaupdates and everything seems good. The logs open empty, is that expected?
 

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

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8831
    Posts
  • Reputation: 806
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 6.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 »
 

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

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8831
    Posts
  • Reputation: 806
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

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

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

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • 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 #12 on: August 26, 2014, 06:56:22 PM »
 

Scott

  • Global Moderator
  • Gold Level Poster
  • *****
  • 857
    Posts
  • Reputation: 186
  • Linux Lite Member
    • View Profile

  • 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 #11 on: August 26, 2014, 06:31:53 PM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • 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 #10 on: August 26, 2014, 03:36:48 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8831
    Posts
  • Reputation: 806
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 6.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 #9 on: August 26, 2014, 03:15:30 PM »
 

tompa

  • New to Forums
  • *
  • 17
    Posts
  • Reputation: 2
  • Linux Lite Member
    • View Profile

  • 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 #8 on: August 26, 2014, 02:52:39 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8831
    Posts
  • Reputation: 806
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 6.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 #7 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 #6 on: August 26, 2014, 12:57:10 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8831
    Posts
  • Reputation: 806
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 6.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 #5 on: August 26, 2014, 11:13:42 AM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • 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.
 

 

-->
X Close Ad

Linux Lite 7.0 Final Released - See Release Announcement Section