LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to change login screen and login box....?? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-login-screen-and-login-box-888911/)

xjonquilx 07-03-2011 08:26 AM

Quote:

jonquil@Jonquil:~$ su
Password:
[root@Jonquil jonquil]# cp /home/jonquil/Pictures/David/IMAG0004_1.JPG /usr/share/backgrounds/IMAG0004_1.JPG
[root@Jonquil jonquil]#
This is a real life example of what I'm talking about. Note that the filenames I use don't have any spaces in them and I type out the full path on the second item which includes the file name I want it to have when I copy it over. Also note I'm doing this as root. Capitalization in the right spots is very important as well. I hope this helps... I've had your situation happen to me a few times but it was always due to something like what I pointed out not being done.

dEnDrOn 07-03-2011 08:49 AM

Quote:

Originally Posted by xjonquilx (Post 4403289)
This is a real life example of what I'm talking about. Note that the filenames I use don't have any spaces in them and I type out the full path on the second item which includes the file name I want it to have when I copy it over. Also note I'm doing this as root. Capitalization in the right spots is very important as well. I hope this helps... I've had your situation happen to me a few times but it was always due to something like what I pointed out not being done.

this is what i was entering:
Code:

cp /home/neuron/pICS/wallpapers/Horror Gothic Scary/Horror HQ Wallpapers 47.jpg /usr/share/backgrounds/images/image.jpg
this is what i'm entering now:
Code:

cp /home/neuron/pICS/wallpapers/Horror Gothic Scary/Horror_HQ_Wallpapers_47.jpg /usr/share/backgrounds/images/image.jpg
this is the output:
Code:

cp: target `/usr/share/backgrounds/images/image.jpg' is not a directory
do i need to fill the space in directory name too...??
thank you very much for your patience.....:hattip:

dEnDrOn 07-03-2011 09:05 AM

finally i moved the path of my original image and renamed it....
Code:

/home/neuron/pICS/wallpapers/image.jpg
so i put the new string:
Code:

cp /home/neuron/pICS/wallpapers/image.jpg /usr/share/backgrounds/images/image.jpg
and it worked.....:D
why was it not working when my image was in
Code:

/home/neuron/pICS/wallpapers/Horror Gothic Scary/Horror HQ Wallpapers47.JPG
what did i miss in my previous commands...?
Code:

cp /home/neuron/pICS/wallpapers/Horror Gothic Scary/Horror HQ Wallpapers47.JPG /usr/share/backgrounds/images/image.JPG

xjonquilx 07-03-2011 10:04 AM

Because there were spaces in your file names....

mightymouse2045 07-03-2011 10:10 AM

Quote:

Originally Posted by dEnDrOn (Post 4403316)
finally i moved the path of my original image and renamed it....
Code:

/home/neuron/pICS/wallpapers/image.jpg
so i put the new string:
Code:

cp /home/neuron/pICS/wallpapers/image.jpg /usr/share/backgrounds/images/image.jpg
and it worked.....:D
why was it not working when my image was in
Code:

/home/neuron/pICS/wallpapers/Horror Gothic Scary/Horror HQ Wallpapers47.JPG
what did i miss in my previous commands...?
Code:

cp /home/neuron/pICS/wallpapers/Horror Gothic Scary/Horror HQ Wallpapers47.JPG /usr/share/backgrounds/images/image.JPG

Yeah as the previous poster said you have spaces in your path - which is fine if you enclose the path with ""

or an easy way to do it is to type the path in the terminal and press the tab key to auto fill the path

or you put \ before each space eg Horror\ Gothic\ Scary/Horror\ HQ\ Wallpapers47.JPG

dEnDrOn 07-03-2011 08:09 PM

Quote:

Originally Posted by mightymouse2045 (Post 4403369)
Yeah as the previous poster said you have spaces in your path - which is fine if you enclose the path with ""

or an easy way to do it is to type the path in the terminal and press the tab key to auto fill the path

or you put \ before each space eg Horror\ Gothic\ Scary/Horror\ HQ\ Wallpapers47.JPG

yeah.....i figured it out lately....
thanks..

dEnDrOn 07-03-2011 08:27 PM

anyone on login box issue...??

dEnDrOn 07-04-2011 07:07 AM

Quote:

Originally Posted by xjonquilx (Post 4403119)
Seems like the only solution to this is to install an alternate display manager...

http://slim.berlios.de/

It's designed to take on any DE and there are 3rd party themes available for it, albeit not many. But you might be able to do something with it...

---------- Post added 07-03-11 at 04:48 AM ----------


can i install those login box themes on GNOME 3
everytime i try,i get this error:
Quote:

No running instance of xfce4-panel was found

dEnDrOn 07-04-2011 07:09 AM

this fedora15 login box is so ugly & ancient.....i just can't take it :doh::doh:
please suggest something...

dEnDrOn 07-08-2011 01:38 AM

how do i change login box position ?
I'll keep the same ugly looking login box but need to change its position.
Any ideas ?

b0uncer 07-08-2011 02:15 AM

Quote:

Originally Posted by dEnDrOn (Post 4403069)
a) log in as root
b) type xhost + (command xhost, argument +)
c) then type the command

This is not a good idea: "xhost +" will turn off acccess control, which means that any remote host may have access to your X server. In a sense, doing that lowers your security by allowing more freedom to outsiders, who might want to misuse that freedom. If you absolutely must resort to that, remember to reverse it after you're done by

Code:

xhost -
Quote:

Originally Posted by dEnDrOn (Post 4404311)
this fedora15 login box is so ugly & ancient.....i just can't take it :doh::doh:
please suggest something...

In addition to the wallpaper, you can apparently change the GTK theme of the login screen. See this for a reference. That's still not modifying the login screen too much, but depending on the theme (which might be customized by you) it does make a change. More complex changes would probably require one to get more involved with how GDM (in Gnome 3) actually works, but I hope the theme+wallpaper change helps you out a little. It seems it is becoming a (nasty) habit that whatever they make these days for desktop Linux systems, it is bound to be candy-looking, complex and impossibly difficult to customize beyond pre-defined changes. Gone are the days when one could simply fire up a text editor, change some plaintext things in a config file and possibly restart a program or service to get what was wanted (well, thankfully some things, like certain "lightweight" window managers, still allow this).

To add to the talk about filenames and copying to directories under /usr and such:
- when a program needs to access a file somewhere in the filesystem, the program can do it only if it has permissions to do so (they are set separately for owner of the file, group, and other users); files under a user's home directory are typically writable only by that user (sometimes may be readable by others!), and files under /usr (as an example) only writable by root. Login manager is typically run as a user and/or group that is created for that purpose. That user/group may not have access to regular user(s) home directory(/ies), and so any (theme/wallpaper/config) files that the program needs to have access to cannot reside in such directories. On the other hand, if they are placed inside /usr and given such permissions that the login-screen process user can access them, all is good. However regular users cannot write to that directory (if they could, any user could trash the system severely), so in order to place the files there, "higher" user account must be used: the user should temporarily become either the user who owns the directory, belong in a group that has access to it, or simply become root who has access to every file (could be the directory owner!). Another way is to ask the owner-user to do the changes somehow, but typically the owner is a "system account" that does not actually have any connections to humans :) Two main ways exist to do this: using the "su" to temporarily change the user you are, or "sudo" (if configured) to simply run a command with another user's privileges. I prefer the latter, because it's faster if configured properly, and allows for more security and flexibility (no need to give out root account password, for example, to run a specific command that requires root privileges)
- filenames on Unix systems are case-sensitive, so "a" and "A" are two different things (except if a program is written explicitly to treat them the same way)
- arguments to programs are typically separated by whitespaces, so /Dirname with spaces/ as an argument to a command (such as cp) does not stand for a single directory name (as you might expect), but actually three separate pieces, /Dirname, with and spaces/. In addition to spaces there are a few other characters that the shells typically treat in a special way (dollar sign $, backslash \, semicolon ;, and so on). Because of their special meaning, one must explicitly tell when they should not be interpreted as anything special, if that is wanted. There are two main ways for this: first is to precede the special character with a backslash (e.g., \\ means backslash that is not to be interpreted as anything special, but the character backslash, whereas single \ might be interpreted for example as a linebreak). For long filenames with lots of spaces and such this might be tedious, so another way is to enclose the string into quotes, inside which the characters are not treated in a special way: "two words" is one piece consisting of two strings and a space-character in between, whereas two words (without quotes) is two separate pieces, each of which consists of a string. Got it? In addition it may make difference what sort of quoting marks you use: backticks ``, double quotes "" and single quotes '' can all have a different meaning (for example, in the same order, output of a command, string where variables are extended, and string where that is not done). If you want to check this, try these in a bash shell (default in many places):
Code:

date=thisday # set variable called "date" to value "thisday"
echo date
echo $date
echo "$date"
echo '$date'
echo `date`
echo `$date`

- TAB completion works in some shells such as bash, and is a handy way to get past the special mark escaping: write a few letters from the beginning of (for example) a filename, press TAB (or whatever the completion key is set to be), and the shell completes that filename as far as it can, escaping any special letters
- pay attention to the error messages you get. If you try a command and the shell says "... is not a directory", then the argument you gave in the last command is not a directory: it could be a regular file, for example. Or if you get "no such directory", it means that the path you wrote does not exist and needs to be created first. If you don't get any message at all, it is usually a sign that everything went smoothly.

dEnDrOn 07-08-2011 02:28 AM

Quote:

Originally Posted by b0uncer (Post 4408569)
This is not a good idea: "xhost +" will turn off acccess control, which means that any remote host may have access to your X server. In a sense, doing that lowers your security by allowing more freedom to outsiders, who might want to misuse that freedom. If you absolutely must resort to that, remember to reverse it after you're done by xhost -

thanks for that !
i myself was wondering that this command disables access control,so how do i enable it again !
But then i thought whenever i restart my system next time,it will automatically be enabled.

b0uncer 07-08-2011 02:37 AM

Quote:

Originally Posted by dEnDrOn (Post 4408575)
But then i thought whenever i restart my system next time,it will automatically be enabled.

Yes, unless you configure it otherwise, it works that way. But because you would not want to "let it be" for any longer that is needed, you should work it out manually right away. Some people (including me) run their systems for weeks or months without a single restart, so in those cases the change would be effective for quite a long time.

dEnDrOn 07-08-2011 02:41 AM

Quote:

Originally Posted by b0uncer (Post 4408578)
Some people (including me) run their systems for weeks or months without a single restart, so in those cases the change would be effective for quite a long time.

i also don't restart my system for weeks but i today co-incidentally did that and it actually solved one of my three problem.

dEnDrOn 07-08-2011 03:42 AM

Quote:

Originally Posted by b0uncer (Post 4408569)
In addition to the wallpaper, you can apparently change the GTK theme of the login screen. See this for a reference. That's still not modifying the login screen too much, but depending on the theme (which might be customized by you) it does make a change. More complex changes would probably require one to get more involved with how GDM (in Gnome 3) actually works, but I hope the theme+wallpaper change helps you out a little.

i've already changed GTK theme and wallpaper of my login screen but i want to change my login box or atleast change its position...


All times are GMT -5. The time now is 10:43 PM.