Linux Lite Forums
Lite Software - Suggestions welcomed - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=7)
+--- Forum: Linux Lite Software Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=30)
+--- Thread: Lite Software - Suggestions welcomed (/showthread.php?tid=768)

Pages: 1 2 3 4 5 6 7 8 9 10


Re: A GUI tool to install additional software in Linux Lite 2.0 - anon222 - 08-26-2014

Great news Jerry! I've just seen you made a Remove Additional Software as well. That was fast. Smile
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.
[Image: hDXwCNZ.png]
Code:
--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 - Scott(0) - 08-26-2014

Probably not exactly what you want but you can get a progress bar for install updates in this manner:

[Image: yWfS25M.png]

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 - anon222 - 08-27-2014

Maybe something like this?
I can't make it better, maybe someone will figure it out.
Code:
#!/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:
#!/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 - Valtam - 08-27-2014

That's a good start Smile


Re: A GUI tool to install additional software in Linux Lite 2.0 - Valtam - 08-27-2014

Updates Beta is available to test. Make 2 files, betaupdates and updates.

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

Code:
#!/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.freecinema2022.gq
#-----------------------------------------------------------------------------------------

# 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:
#!/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:
./betaupdates

and let me know how you get on. Thank you for testing Smile


Re: A GUI tool to install additional software in Linux Lite 2.0 - Scott(0) - 08-27-2014

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 - Valtam - 08-27-2014

(08-27-2014, 04:27 AM)Scott(0) link Wrote: 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 Smile


Re: A GUI tool to install additional software in Linux Lite 2.0 - Valtam - 08-27-2014

Demo:

https://www.freecinema2022.gq/video/updatesvid.webm


Re: A GUI tool to install additional software in Linux Lite 2.0 - Valtam - 08-27-2014

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 - Scott(0) - 08-27-2014

Quote:Don't forget to change /home/jerry/updates to /home/youruser/updates in the betaupdates file.

Yep, that was my problem Smile. Working perfectly now.