LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-19-2015, 03:00 PM   #1
R1g1L
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, 04:15 PM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,249
Blog Entries: 11

Rep: Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289
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, 03:55 PM   #3
R1g1L
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


#!/bin/bash
FIXING REPOS {

echo "FIXING REPO'S"
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 http://repo.kali.org/kali kali-bleeding-edge main' >> /etc/apt/sources.list
echo 'deb-src http://http.kali.org/kali kali main non-free contrib > /etc/apt/sources.list
echo 'deb-src http://security.kali.org/kali-security kali/updates main contrib non-free > /etc/apt/sources.list
apt-get update
apt-get -y upgrade
}
#INSTALLING HEADER
{
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"
}
#BACKGROUNDS
{
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.
 
  


Reply


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 06:22 AM
bash script in background - awk and send email noir911 Programming 4 03-22-2009 09:46 PM
Bash script hangs upon starting another script in the background masea2 Linux - Software 4 11-13-2006 05:18 AM
bash script to accept input ONLY until background process completes andrewstr Linux - Software 2 03-17-2004 12:02 PM
How to run a bash command in the background from perl script professorfrink Programming 3 11-13-2003 03:02 PM


All times are GMT -5. The time now is 10:54 AM.

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