Solved

.-file copying

Posted on 1997-03-26
11
258 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
 

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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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 100 total points
ID: 1627015
Maybe i did answer to your question ?(before)
if so i'd like to know .
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now