Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.