Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-19-2015, 04:00 PM   #1
LQ Newbie
Registered: Mar 2015
Posts: 2

Rep: Reputation: Disabled
Bash background changing script

Hey internet people i have been trying to create a bash script that will change my desktop background, boot splash image, and the gdm3 login background. If one of you could write it for me or atleast point me in the right direction i would greatly appreciate it. Im currently running tango studio (based on debian)
Old 03-19-2015, 05:15 PM   #2
LQ 5k Club
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,573
Blog Entries: 15

Rep: Reputation: Disabled
Welcome to LQ!
While we love to help, you need to tell us, or rather show us some work that you've attempted so far.
What have you read about doing this task?
Where did you read about doing this task?
Old 03-21-2015, 04:55 PM   #3
LQ Newbie
Registered: Mar 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
sorry it took so long to reply i was out of town. This is what i have so far


echo -e "\033[31m====== Adding Bleeding Edge repo and updating ======\033[m"
echo "" >> /etc/apt/sources.list
echo '# Bleeding Edge ' >> /etc/apt/sources.list
echo 'deb kali-bleeding-edge main' >> /etc/apt/sources.list
echo 'deb-src kali main non-free contrib > /etc/apt/sources.list
echo 'deb-src kali/updates main contrib non-free > /etc/apt/sources.list
apt-get update
apt-get -y upgrade
echo && echo -e " ${r}INSTALLING HEADER${endc}"
apt-get install -y linux-headers-$(uname -r) && update db
echo -e " ${b}${r}DONE"

######## Install Flash
echo -e "\e[31m[+] Installing Flash now!\e[0m"
apt-get -y install flashplugin-nonfree
update-flashplugin-nonfree --install
echo -e "\e[32m[-] Done Installing Flash!\e[0m"


######## Install VPNS
echo -e "\e[31m[+] INSTALLING VPNS\e[0m"
apt-get -y aptitude -r -y install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome
echo -e "\e[32m[-] Done Installing vpns!\e[0m"


# Installing virtualbox
echo && echo -e " ${r}INSTALLING VIRTUALBOX${endc}"
aptitude -y install virtualbox
echo -e " ${b}VIRTUALBOX READY "
# apt-get autoclean
echo && echo -e " ${r}CLEANING THE SYSTEM${endc}"
apt-get clean && apt-get autoclean
echo -e " ${b}${r}SYSTEM IS CLEAN"
echo && echo -e " ${r}CHANGING BACKGROUNDS${endc}"
rm /usr/share/images/desktop-base/desktop-grub.jpg
cp /media/"Kali Live"/Rboot/desktop-grub.jpg /usr/share/images/desktop-base/
rm /usr/share/images/desktop-base/login-background.png
cp /media/"Kali Live"/Rboot/login-background.png /usr/share/images/desktop-base
rm /usr/share/images/desktop-base/desktop-grub.png
cp /media/"Kali Live"/Rboot/desktop-grub.png /usr/share/images/desktop-base/
rm /usr/share/images/desktop-base/kali-grub.png
cp /media/"Kali Live"/Rboot/kali-grub.png /usr/share/images/desktop-base/
echo && echo -en " ${r}ALL DONE PRESS ENTER TO EXIT${endc}"
read input
restart now

For some reason everytime i run it the terminal opens up and then disappears without performing anything,
Thanks in advance for your help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
BASH script: can't get a {cat > /dev/...} to work in background 2lunious Programming 16 10-03-2009 07:22 AM
bash script in background - awk and send email noir911 Programming 4 03-22-2009 10:46 PM
Bash script hangs upon starting another script in the background masea2 Linux - Software 4 11-13-2006 06:18 AM
bash script to accept input ONLY until background process completes andrewstr Linux - Software 2 03-17-2004 01:02 PM
How to run a bash command in the background from perl script professorfrink Programming 3 11-13-2003 04:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration