[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

.-file copying

Posted on 1997-03-26
11
Medium Priority
?
269 Views
Last Modified: 2013-12-15
I'm a Linux newbe.  I've installed Redhat 4.1 on my Pentium 100 Mhz clone.

My problem is configuring X.  The documentation is scattered, outdated and/or missing.  *Very* confusing for a newcomer.
When I type "startx" as root, I get a screen configuration I can live with, but still would like to modify.  (In particular, I don't need to be thanked for "installing Red Hat Linux" anymore).  If I'm not logged in as root, I get a screen I like much less (and Arena rather than Red Baron!)

The book "Running Linux" told me to look for an ".initrc" file.  I found /var/X11R6/lib/xinit/xinitrc (no "." on the filename).  When I looked at this file I found the line

"if [ -f $HOME/.Xclients]; then exec $HOME/.Xclients .....

and said "Aha!" that's why I get a different screen logged in as root.

Sure enough, I found a .Xclients file in the root directory.

As root I entered the command

  cp .Xclients /home/kk

and got the error message

cp: cannot create regular file '/home/kk/.Xclients': Invalid argument.

The directory /home/kk was created when I first installed linux and used the control panel to add the user kk.

I find that I cannot write any file whose name begins with a period to /home/kk.  I opened (as root) .Xclients with PICO.
and tried writing (^O) to /home/kk/.Xclients.  I got the error message: [No room for file:  Invalid argument].  I then tried ^O and gave it the name /home/kk/foo and it saved it.

I did ls -l from /home.  The line for kk was

drwxr-xr-x 3 root root 32768 Mar 26 19:17 kk

Help will be greatly appreciated.

Kenneth Kellum
0
Comment
Question by:kellum
  • 7
  • 4
11 Comments
 

Expert Comment

by:crbild
ID: 1627005
for better answer, i need to know your exactly line
of command you used for copy the .Xclients.
cause it's seems problem about line of command or about the cp.
can you try to create with "vi" or other editor a file named
.Xclients ?
and can you check the permissions of this directory,where you tried to copy?
(anyway you can comment the line about if [....etc
and write directly :

exec mine_window_manager
where you can use : fvwm,twm,olwm and so on.

0
 

Author Comment

by:kellum
ID: 1627006
Edited text of question
0
 

Expert Comment

by:crbild
ID: 1627007
what kind of filesystem are you using ?

can you do the :

mount

it seems a filesystem that not support this kind  of names

check the kernel you have about the filesystems known
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:kellum
ID: 1627008
crbild's comments seem to have been garbled.

I'm a newbe.  I don't know what kind of file system I'm using.  Does RedHat 4.1 support more than one kind of file
system?  How do I check the kernel?

Yes, I can do a mount.  I've mounted my cdrom.


0
 

Expert Comment

by:crbild
ID: 1627009
excuse me but when i told "can you do a mount"
i meant "please,can you do the command mount and after tell me
the result (cause i can now the kind of filesystem you have)"

and do (please) this command and report me the result :

cat /proc/filesystems
------------------------
it wasn't my intention to undervalue anything .
ok... i have 1 hour now to follow ,so i wait your result as soon
as possible for you :)
0
 

Author Comment

by:kellum
ID: 1627010
The output from mount was:

/dev/hda3 on / type ext2 (rw)
/dev/hda1 on /home type msdos (rw)
nome on /proc type proc (rw)

and to cat /proc/filesystems:

        ext2
        minix
        msdos
nodev   proc
nodev   nfs
        iso9660

Thanks
0
 

Expert Comment

by:crbild
ID: 1627011
Ok.
The problem is about the kind of filesystem for /home

DOS filesystem that doesn't permit the kinf of name :

name with .
only 8 chars plus a dot and 3 chars.
You need to change the kind of installation,unfortunately.
In this case usually when you do an installation of Linux
it's better to prepare a Linux native partition or
a Umsdos partition.

I can explain you better all ,but it go over the question you did.
So if you want you can e-mail me ,but this is out the rules
of this site so ,please,put an other question about
the setup of first installation for Linux.

So your problem is due to a not right filesystem,in this case
DOS filesystem.
And you can't change the kind of filesystem,you need "only"
a new partition for Linux.
0
 

Expert Comment

by:crbild
ID: 1627012
If you have enough space on /dev/hda3
(and you can check this with :
df

it's possible to change the mount point of /home in / (/dev/hda3)
0
 

Author Comment

by:kellum
ID: 1627013

Yep!  That was it.  The RedHat 4.1 installation lays a trap for the newcomer.  At one point you're asked if you want to mount other disk partitions such as MSDOS.  You're prompted to give a mount point (when, of course, a newbe doesn't know what a mount point is.)  Not knowing any better, I gave it /home as a mount point.  The problem was that this made /home an MSDOS directory!

Following Cribld's advice, I re-installed Linux.  I'm pleased with the solution I found.  The installation allows you to escape and issue shell commands.  I escaped, created a directory "c", and mounded MSDOS there.  It worked.

Now, for reasons that aren't clear, I get the same X-window logged as root or not.

Now to configure X.  Any hints will be appreciated.


0
 

Expert Comment

by:crbild
ID: 1627014
did you tried to copy the .Xclients
or to create one in the home directory for your user
and inside .Xclients
did you put a line so :
fvwm
or twm
or ... the window manager you want.
?
if yes.
try :
xinit
then try:
fvwm

for exit this you can press control alt backspace

0
 

Accepted Solution

by:
crbild earned 200 total points
ID: 1627015
Maybe i did answer to your question ?(before)
if so i'd like to know .
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month19 days, 19 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question