LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-03-2011, 09:26 AM   #31
xjonquilx
Member
 
Registered: Jul 2011
Location: FL, USA
Distribution: Linux Mint 13
Posts: 169

Rep: Reputation: Disabled

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.
 
1 members found this post helpful.
Old 07-03-2011, 09:49 AM   #32
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 510
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by xjonquilx View Post
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.....
 
Old 07-03-2011, 10:05 AM   #33
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 510
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
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.....
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
 
Old 07-03-2011, 11:04 AM   #34
xjonquilx
Member
 
Registered: Jul 2011
Location: FL, USA
Distribution: Linux Mint 13
Posts: 169

Rep: Reputation: Disabled
Because there were spaces in your file names....
 
Old 07-03-2011, 11:10 AM   #35
mightymouse2045
LQ Newbie
 
Registered: Jun 2011
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by dEnDrOn View Post
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.....
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
 
1 members found this post helpful.
Old 07-03-2011, 09:09 PM   #36
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 510
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by mightymouse2045 View Post
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..
 
Old 07-03-2011, 09:27 PM   #37
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 510
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
anyone on login box issue...??
 
Old 07-04-2011, 08:07 AM   #38
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 510
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by xjonquilx View Post
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
 
Old 07-04-2011, 08:09 AM   #39
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 510
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Unhappy

this fedora15 login box is so ugly & ancient.....i just can't take it
please suggest something...
 
Old 07-08-2011, 02:38 AM   #40
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 510
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Question

how do i change login box position ?
I'll keep the same ugly looking login box but need to change its position.
Any ideas ?
 
Old 07-08-2011, 03:15 AM   #41
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
Originally Posted by dEnDrOn View Post
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 View Post
this fedora15 login box is so ugly & ancient.....i just can't take it
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.

Last edited by b0uncer; 07-08-2011 at 03:28 AM.
 
Old 07-08-2011, 03:28 AM   #42
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 510
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by b0uncer View Post
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.
 
Old 07-08-2011, 03:37 AM   #43
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
Originally Posted by dEnDrOn View Post
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.
 
Old 07-08-2011, 03:41 AM   #44
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 510
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by b0uncer View Post
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.
 
Old 07-08-2011, 04:42 AM   #45
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 510
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by b0uncer View Post
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...
 
  


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
A grey box for my login screen dennymathews Ubuntu 1 03-02-2010 10:46 AM
how to change boot screen,splash screen,login themes while custmzing ubuntu cd project_sap Linux - Newbie 1 04-07-2008 08:12 AM
change screen resolution of xdm login screen in suse linux pseudoxiah Linux - Desktop 2 04-02-2007 10:26 AM
Change Fedora Login Screen to KDE login screen ada601 Linux - Software 2 08-15-2004 06:07 PM
how do you change the login screen bosewicht Fedora 2 12-22-2003 10:09 PM


All times are GMT -5. The time now is 09:14 PM.

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