Bash shell script for update your ubuntu debian box.
I make a little shell script that will update your ubuntu by command line [ cli ], easier..
you are welocome to ad some ideas to that script and post it on my blog...
#!/bin/bash
clear
echo ""
echo " Script will update Operating System"
echo ""
echo " Welcome, $USER! "
echo " .. now apt-get will run update "
echo ""
sleep 5s;
sudo apt-get update &&
clear &&
echo ""
echo " .. now apt-get will upgrade "
echo ""
sleep 5s;
sudo apt-get upgrade -y &&
clear &&
echo ""
echo " .. now apt-get will remove and clean "
echo ""
sleep 5s;
sudo apt-get autoremove -y &&
clear &&
echo ""
read -p " Updating GRUB $foo? [y/n] " answer
echo ""
# run 'yes' command
if [[ $answer = y ]] ; then
sudo update-grub ;
# run 'no' command
fi
clear
echo ""
echo " Your box is up to date.."
echo ""
sleep 5s;
echo ""
read -p "Reboot your system $foo? [y/n] " answer
echo ""
# run 'yes' command
if [[ $answer = y ]] ; then
sudo init 6 ;
echo ""
echo " ... rebooting... "
echo ""
sleep 5s;
fi
clear
echo ""
echo " bye..., $USER! "
echo ""
Unfortunately, no one can be told what the Matrix is. You have to see it for yourself. by MORPHUS.DK
Showing posts with label update. Show all posts
Showing posts with label update. Show all posts
22 April, 2016
30 August, 2010
3G Iphone froze at Apple Screen, no way to restart it or sync it
issue about hung up at the apple screen while updating and when I reboot it just goes back to the apple and never boots up. I've connected my computer and Itunes doesn't find the iphone.
Possible solution I've tried was , hold power button and then the home button for 5 seconds, then you will power down your Iphone, then power you iphone up again, and connect to itunes software and you will be asking for restoring your Iphone to factory settings, say Yes, and restoring progress will begin, then you can try to update your iphone again. it should complete the updates without problem.
Possible solution I've tried was , hold power button and then the home button for 5 seconds, then you will power down your Iphone, then power you iphone up again, and connect to itunes software and you will be asking for restoring your Iphone to factory settings, say Yes, and restoring progress will begin, then you can try to update your iphone again. it should complete the updates without problem.
Labels:
apple screen,
froze,
iphone,
no restart,
no sync,
power button,
update
Subscribe to:
Posts (Atom)