I'm writing a bunch of scripts to automatically configure Ubuntu and I want to run the code below to remove the white dots from the login screen:
Code:
sudo xhost +SI:localuser:lightdm
sudo su lightdm -s /bin/bash
gsettings set com.canonical.unity-greeter draw-grid false
The problem is that as soon as this code is executed, it stays logged in as lightdm and the rest of the script doesn't run. I've tried to change the last command to this:
Code:
echo "exit" | gsettings set com.canonical.unity-greeter draw-grid false
but this doesn't seem to work and my script still stops running.
Is any one able to let me know where I'm going wrong?
My scripts can be found here:
github.com/maerlyngb/UbuntuCinnamonSetupScripts
Hello friends,
Kindly help me in developing a script that asks user to enter a value and will wait for 5 seconds for the feedback. If there is no answer from the user the script will perform exit or it will continue doing something else
Ex: If yu have a multi OS system i believe while... (3 Replies)
Folks,
Below is a basic synopsis of the problem. I have a script that I need to check for some env vars and fail (exit the script) if they are not there. At the same time I need to set some default env vars. To do this I must run the script from the parent shell or source the script. Doing... (3 Replies)
Solved Stupidly I didn't put brackets around the , thanks for all the help guys
if ps ax | grep Cluster__check.bash | grep -v grep > /dev/null -- fails
(if ps ax | grep Cluster__check.bash | grep -v grep > /dev/null) --works (3 Replies)
Here is my daily stupid question:
How can I tell a script to only execute if the other scripts exits successfully?
So "script A" executes and it executes successfully (0),then "script B" will run
or else
"script A "executes and it exits unsucessfully (1) then "script B" will read return... (6 Replies)
Hi, I want to write a script to check whether an user ID is used in my server and then create that user.
If the user ID is not used, I will echo something like "OK, continue" and then continue to execute the script. Else, I will echo something like "Used, exit" and then exit the script.
As... (4 Replies)
Hi, I have written a script that allows me to repetitively play a music file $N times, which is specified through user input. However, if I want to exit the script before it has finished looping $N times, if I use CTRL+c, I have to CTRL+c however many times are left in order to complete the loop.... (9 Replies)
Heyas,
Since this question (similar) occur every now and then, and given the fact i was thinking about it just recently (1-2 weeks) anyway, i started to write something :p
The last point for motivation was... (17 Replies)
Hello all..
so i have a problem i need to solve ..
#! /bin/bash
$SHELL
dtterm -title my_prog -e su -user -c 'export DISPLAY=:0.0 ; /path/to/my/prog' & 2> /dev/null
$SHELL
intr
exit
This script will work on solaris 10 system in right clikt menu - in a secure system so i need to... (0 Replies)
Hi everyone, I'm new here and just a beginner in linux scripting.
Just want to ask for help on this one.
I am trying to create a script that will accept user input (year-month and user/s).
I wanted to have the script to continue running, until the user inputs a DATE and name/s of user/s. ... (2 Replies)
Discussion started by: Helskadi
2 Replies
LEARN ABOUT LINUX
byobu-enable
byobu-enable(1) byobu byobu-enable(1)NAME
byobu-enable, byobu-disable - wrapper script for enabling/disabling automatic startup of byobu after login into text console
SYNOPSIS
byobu-enable
byobu-disable
DESCRIPTION
byobu-enable will do two things:
1) run byobu-launcher-install(1) to configure byobu(1) to launch automatically on login
2) then launch byobu(1)
byobu-disable will simply run byobu-launcher-uninstall(1).
BUGS
None found, yet.
SEE ALSO screen(1), byobu-config(1), byobu-export(1), byobu-status(1), byobu-status-detail(1)
http://launchpad.net/byobu
AUTHOR
This manpage was written by Jan Klepek <jan.klepek at gmail.com> and the utility was written by Dustin Kirkland <kirkland@ubuntu.com> for
Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the
GNU General Public License, Version 3 published by the Free Software Foundation.
The complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL on Debian/Ubuntu systems, or in
/usr/share/doc/fedora-release-*/GPL on Fedora systems, or on the web at http://www.gnu.org/licenses/gpl.txt.
byobu 6 January 2011 byobu-enable(1)