LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-02-2005, 01:13 PM   #31
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31

Your script looks like it should open 4 xterms, first 1 then 3.

First I'd expect one xterm where it does the mount, maybe asking for the password. After the mount completes (sucessfully or not), that xterm should disappear, the three others should open, and the script should return. In each xterm, one of the scrips should run. Of course these scripts might contain commands to spawn further xterms. I'm not sure what's going on here.

To change the foreground color to green, xterm -fg green is probably the simplest. (There are 752 other color names -- see/usr/lib/X11/rgb.txt . Have fun!)

I just showed you my ~/.Xdefaults as an example. I bet it doesn't do anything for you, so you may wish to delete it.
 
Old 11-02-2005, 01:19 PM   #32
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
P.S.: xrdb(1) indicates that using .Xdefaults might be a bit old-fashioned. Not sure what's considered best practice these days.

When I wrote "xterm(1)" I meant type man xterm into a shell, after which you'll know much more about xterm than I do. (The number (1) means it's in section 1, User Commands.)
 
Old 11-02-2005, 01:55 PM   #33
Kalyani1
Member
 
Registered: Oct 2005
Posts: 43

Original Poster
Rep: Reputation: 15
Thank you somuch.

I found the in web like this.

xterm -bg black -fg green -cr blue -e /root/parameters/param.sh &

This works fine. I think this is the simpleast way.

1. I want to create .Xdefaults file. I have to create this file in the Home DIr or Root DIr. I login as a Root.

I created .X defaults file in the Home Dir , but nothing happend.

XTerm*background: black
XTerm*cursorColor: lightgrey
XTerm*foreground: white
XTerm*saveLines: 1024
XTerm*scrollBar: true

2. I want make Scroll bar for my xterm. Scroll bar options also I have put into the .Xdefaults.
 
Old 11-02-2005, 02:16 PM   #34
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Usually, ~root is /root, where you'd create .Xdefaults (I usually don't log in as root because I feel safer).

To try out what you described, I put XTerm*foreground: pluminto ~/.Xdefaults. I read it into the X resource data base with xrdb ~/.Xdefaults And now every xterm I start uses "plum" as the foreground color. (Of course a file with any name would work. In the olden days, ~/.Xdefaults was automagically read when you started X, but I'm no longer sure this happens. You could put the xrdb command in your ~/.xinitrc, if you're sure that that is executed.)

I have no clue why it doesn't work for you. Can you tell us in more detail about your setup?

You could start xterm -sb to get a scroll bar, but your resource should do the same.

Last edited by Quigi; 11-02-2005 at 03:08 PM.
 
Old 11-03-2005, 03:16 PM   #35
Kalyani1
Member
 
Registered: Oct 2005
Posts: 43

Original Poster
Rep: Reputation: 15
Hi Quizi,

It's wrking fine. Thank you so much. Appreciated your help.

Kal
 
  


Reply



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
Automatic mount steelneck Linux - Software 2 11-26-2005 11:39 AM
automatic mounting and write acces oldforce Ubuntu 2 04-19-2005 04:51 PM
Can't WRITE to USB stick, Mount OK NO WRITE! ClericPreston Linux - Newbie 4 12-04-2004 10:43 AM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 12:20 AM
HELP! Error from mount: drive is write-protected... won't mount writeable. system Linux - General 2 12-27-2001 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:22 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
Open Source Consulting | Domain Registration