Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Screen extension, still messing around with it....< Next Oldest | Next Newest >
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Jan. 08 2005,05:26 QUOTE

I wonder if that is a leftover from the symlink to /KNOPPIX/dev..

I mean, it HAD no choice but to be read only at one time..
When it was a liveCD, there was only a symlink from /dev/tty1
to /KNOPPIX/dev/tty1, which HAD TO BE read only on the cd.

I know that when using the serial port, /dev/ttyS0, with one of my
ham radio devices ( a TNC ) , I had to change permissions on the device,
after making that portion of the filesystem writable thru mkwritable.
( installing a .dsl extension, like dsl-dpkg.dsl, easily does it. )

Installing to Hard Drive may not, by default, be changing the
device to be writable to ANY users .. your SuSE wouldn't have that issue,
having never been in a read-only format during its operational lifetime.

And there have been many posts of late where the serial devices are not
communicating either..

It appears that DSL uses tty0 for its main terminal, not tty1
This is some output of ls -al tty* > /home/dsl/tty.txt

crw-rw-rw-    1 root     root       5,   0 Jan  7 23:00 tty
lrwxrwxrwx    1 root     root            7 May 17  2004 tty0 -> console
crw-------    1 root     root       4,   1 Jan  7 22:17 tty1
crw-------    1 root     root       4,  10 Sep 11  1998 tty10
crw-------    1 root     root       4,  11 Sep 11  1998 tty11
crw-------    1 root     root       4,  12 Sep 11  1998 tty12

Does this change when installed to HD?
What is your output ?

73
ke4nt
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 08 2005,06:15 QUOTE

but....I don't have a harddrive install.  I'm trying to build this to be completely useable in a liveCD without mkwriteable.

One thing I noticed yesterday that never even began to think about the possibility of considering coming to my attention before is that there are more writeable directories in a DSL livecd than I had thought.  /etc is writeable to a point...you apparently can't overwrite the symlinks without first deleting them, but you can add files.  In /dev many of the devices can be edited, which is why I was able to change permissions on /dev/tty1.  All this time I thought /opt, /var(/tmp?) and /home were the only writeable directories without running /etc/init.d/mkwriteable.  So /var and /etc aren't symlinks, but actual directories in ramspace.  It's kinda confusing since the others are located in /ramdisk....makes my brain hurt.

Another odd thing is /dev/tty2 (and one or two others...can't remember which ones) is owned by dsl.staff.  I understand tty2 is where X is run in debian systems, and in suse it's tty7 (owned by mik.users.../dev/tty1 is owned by mik.tty).  /dev/tty8 is owned by another regular user, which i tend to use occasionally in a sub-shell.  What I don't understand is WHY and HOW the ownership is changed...is it done when the user logs in, or is it maybe something that should not have happened?  When I log in as root with root environment, it still shows the same ownerships, so maybe it's a first-come-first-served ownership thing....i dunno....some things about Linux make my head spin.

Quote
It appears that DSL uses tty0 for its main terminal, not tty1

When I exit X and type 'tty' it shows /dev/tty1


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 09 2005,01:14 QUOTE

STILL no luck getting it to run as user dsl without manually changing ownership of tty1.  I think this is either DSL being stubborn or the setuid bit not working.  

I zipped it up anyway...seems like there's nothing more I can do.  It can be run in an X terminal without problem.  Running from console requires either 1) running it as root, or 2) executing 'sudo chown dsl.staff /dev/tty1' before running it as dsl. Chmod'ing is probably a bad idea since it opens the session to reading from anyone.

Another thing is the utf8 encodings....I don't know how necessary they are.  Screen works without them in a vanilla DSL, but I wonder about custom systems.  I'm leaning toward leaving them out...the compressed archive is 153k without them, opposed to 390k.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Jan. 10 2005,04:32 QUOTE

Be carefull with adding stuff to the other writable areas of a DSL livecd bootup.

If the directory is not symlinked into /ramdisk, then it is part of the root "/" filesystem and there is a very limited amount of free space in this filesystem.

For example, type:

df

and see what the available space is.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 10 2005,04:42 QUOTE

not sure what you mean by "adding stuff".  I don't think chown adds anything to the file size.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
11 replies since Jan. 07 2005,23:07 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: Screen extension

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code