General :: Can't Connect To Display After Switching From Bash To Tcsh After Login

Aug 11, 2010

Can't seem to use tcsh as my login shell under CentOS 5 as I used to (if I specify /bin/tcsh as my start-up shell, the windowing system doesn't come up), so am logging in under bash then switching to tcsh on top of that, but it won't allow display access from tcsh for my programs. Gives the "cannot connect to display" error that usually xhost + is the solution for, but xhost doesn't help in this case (won't even run under tcsh, says unable to open display "0.0"). $DISPLAY is set in .cshrc. Must be something simple, but can't seem to find a direction to head?

View 2 Replies


ADVERTISEMENT

General :: Run Tcsh But Bash Started Instead

Jul 23, 2010

I tried to start a tcsh on my Fedora 7 (default shell is bash)

[ss@ssvm ~]$ tcsh
[ss@ssvm ~]$ echo $SHELL
/bin/bash

As you see, another bash shell started.

I looked at the tcsh file:

[ss@ssvm ~]$ ll /bin/tcsh
-rwxr-xr-x 1 root root 345348 2007-02-26 23:58 /bin/tcsh
[ss@ssvm ~]$ ll /bin/csh
lrwxrwxrwx 1 root root 4 2010-03-07 13:13 /bin/csh -> tcsh

It is not a link (but csh is). I don't understand why this is happening.

View 3 Replies View Related

General :: Bash Will Not Allow To Enter Tcsh?

Apr 1, 2011

I'm so lost it's difficult to even pose my question. My default shell is bash; and I'd like [actually, required to] have the ability to type csh and enter the TC shell...but it's not working at all. All the changes I made to the ~/.bashrc file work great, but I can't seem to access tcsh to see if the commands in my ~/.tcshrc file work.

When I type "csh", my old PS1 [prompt] displays and I have to type "exit" to get back to the one in the bashrc file and then type "bye" to log out off the system.

I've spent the last 3 days researching this, but every article/blog/site discusses permanently changing my log in...NOT going to happen.

View 7 Replies View Related

Programming :: Send Message To Display And Get Feedback [tcsh Script]?

Jun 23, 2011

I want to write script at "tcsh" that send message to user ($DISPLAY) and let him to answer me.below command line that open xterm at any user displayQuote:setenv LESS "P'HIT q TO QUIT'"/usr/bin/xterm -display $USER_DISPLAY -geometry 60x7 +sb -rv -e less ./MESSAGE_FILEpressing "q" will close the window.there is any way to press "r" ->
new window will open ->user write a feedback ->message will send back to sender.

View 11 Replies View Related

General :: Switching Users In A Bash Script?

Mar 29, 2011

I want to execute a bash script that switches user and then executes a series of commands. None of this users have root privileges. I guess I have to edit the sudoers file to give user1 (the user executing the script) privileges to be able to log as user2 with no password prompt. I've been looking for this example but I haven't found any.

View 3 Replies View Related

General :: Switching To Root Account In A Bash Shell?

Jul 15, 2011

Today I faced a very strange issue while switching to root account in a bash shell.My OS : CentOS-5.1.4

I logged in my system with account name user1 and I open the terminal and below shell opens

[user1@localhost ]$

Now when I type su and want to switch to root account , it fails

[user1@localhost ~]$ su
Password:
su: incorrect password
[user1@localhost ~]$ exit

I know the password is 123 & I m 100% sure .

View 8 Replies View Related

Fedora :: Stuck With Bash Shell / Changing Default Shell To Tcsh?

Mar 14, 2010

I want to change my default shell to tcsh. I used

Code:
usermod -s /bin/tcsh username
command as given at url

But if I open a new shell, it is still a bash shell.

How do I make my default shell as tcsh?

View 6 Replies View Related

Red Hat :: Switching To Use External Display?

Feb 16, 2011

I have a HP laptop and I want to display using both external vga to projector and laptop screen.

View 3 Replies View Related

Ubuntu :: Switching To Old School Startup Display?

Feb 16, 2011

I just did an update on an Ubuntu 10.4 LTS machine and it wanted to reboot so I did now I can't even get to the console. I think it's hanging up somewhere on the start up but thanks to the Microsoft like tell you nothing display I don't know for sure or what exactly is hanging up. The only thing the system responds too is ctrl alt del to reboot. Can't even ping it or log in via SSH. I already installed the same updates on this machine but luckily did not reboot it yet. I'm willing to bet whatever package broke the other one will break on this one and if I can figure out where it's breaking I can figure out how to fix it. That means seeing it start up not the blank screen I'm getting. Been meaning to find out about this anyway as the graphics thing annoys me to no end. I prefer to see what services error or fail rather than find out weeks later when I thought my back up service was running and it wasn't or that snort never did run or I'm looking through the logs and discover there's a problem that's been going on for weeks that I never noticed until I went through the logs about something else.

So how do you switch to a detailed start up mode?

View 2 Replies View Related

General :: How To Refresh A Graphical Display Through Bash Script?

Jul 25, 2011

I need to display a message graphically using a messagebox or textbox through bash script. However the message should be keep changing every 4 secs . I input the message from a file and use "gxmessage" to display it .

I do not like this solution and it looks ugly too , because it is visible that the message box is getting killed and forked every time..Can't I use the same gxmessage message box for all the messages just by putting new messages and hence refreshing the same box.Any idea , anything other than gxmessage will do , if a solution is somewhere else.

View 1 Replies View Related

Hardware :: Switching From Geforce 9600GT To Onboard 6150 LE Won't Display X

Jun 20, 2010

Initially I was using my onboard 6150, but I bought the 9600 and used it for a week. The fan was too noisy, so I decided to switch back, but now when gdm is started the screen goes black, the LED on my monitor turns orange. First I tried switching to a virtual terminal, which didn't work.

I did a hard reboot and popped in a rescue disk. When I tried mounting my root file system to look at look at the log files, at least /bin and /lib became inaccessible. Finally I booted into the live cd I'm running now.

Recently I switched my kernel (to 2.6.32-5) via apt, with some irregularities, but the problem existed before I switched so I doubt that's the problem.

note: I have a working xserver now, so there shouldn't be anything wrong with the graphics chip itself.

View 4 Replies View Related

General :: TCSH - How To Disable Spelling Correction Of Command

Aug 18, 2010

Recently, when we updated our OS, we got a new tcsh feature enabled by default. Whenever I type a command that tcsh doesn't recognize, I get an annoying spelling correction like:
% cats
CORRECT>cast (y|n|e|a)?

I want to disable this feature and allow misspellings to error out like:
% cats
cats: Command not found.
Is my enter key somehow getting re-bound? What could be causing this?

View 1 Replies View Related

Hardware :: Video Display Goes Blank When Switching From X To Virtual Console / Sort It?

Nov 9, 2010

I am having a problem getting my virtual console back after starting XWindows. The display goes blank when I press Ctrl-Alt-F1. If I press Ctrl-Alt-F7 I get the X session back. I have tried setting vga=x31A on the linux boot up. Also tried rdev -v /vmlinuz -1, and rebooted. I have tried two different monitors, same problem. One is a an LCD (Philips 170S6Fb/27, the other a Samsung Sync Master 750s. Originally the Samsung worked fine. I could switch between X and VC no problem. Now that I have the LCD monitor working after changing the XF86Config, I have this problem.

My kernel is 2.2.15-5.0, Redhat 6.2. Here is the output of lspci for the video card:

00:0c.0 VGA compatible controller: ATI Technologies Inc 3D Rage II+ 215GTB [Mach64 GTB] (rev 9a) (prog-if 00 [VGA])
Subsystem: ATI Technologies Inc: Unknown device 4755
Flags: bus master, stepping, medium devsel, latency 0
Memory at e2000000 (32-bit, prefetchable)
I/O ports at b400
Memory at e0000000 (32-bit, non-prefetchable)
Expansion ROM at 000c0000 [disabled]

Hopefully there is someway to control how linux sets the video mode when switching consoles.

View 18 Replies View Related

General :: Find The TCSH Shell And Gzip Version Number?

Apr 7, 2010

I need to find TCSH shell and gzip version number by running a acript on several boxes through ssh. How can i do that? I made a script for tcsh but it is not working by ssh , it only works on my box . I dont know from where to find the gzip version info.

View 5 Replies View Related

General :: TCSH Script Works On Windows 7 Does Not Work On Fedora

Aug 5, 2011

I have written a tcsh script on a Windows 7 machine in order to perform a task on a machine running Fedora. After writing the script, I used cygwin to run it on the Windows 7 machine, and it worked exactly as intended. Then I moved it to the Fedora machine, and I got the following error:

Code:
While: badly formed number

Here is the beginning of the script:

Code:
#!/bin/tcsh -f
##
## Script to automate loading of A2 DAQ systems
##
##

[Code]....

Before the error, I see the string "This program will attempt to automate the DAQ Control process", but not "Please enter the number of the current or most recently completed run: ", so clearly the problem begins at the first "while"

View 3 Replies View Related

General :: Debian - Display A Message Before Login?

May 29, 2011

I need to display a message before any login on a Linux box, either locally and for remote login via SSH. How can I achieve this? "issue" and "Banner" are the two concepts I need to use to provide a message for every user before they log into the system.

View 2 Replies View Related

General :: Display A Legal Warning Before Login?

Oct 5, 2010

How would i force All connection oriented network services to display a legal warning in terms of banner before any fuctional operation by user?

View 10 Replies View Related

General :: Root Login Directly Into -bash-3.2#?

Mar 22, 2010

i am using fedora 10 while i login as a normal user its working fine username@hostname while i login as a root user it goes directly into -bash-3.2# if i check pwd it shows /root till now i am not facing any problem as i am using as a normal user but how can i change -bash-3.2# to root@hostname which file and where to edit

View 9 Replies View Related

General :: Remote Login To Display Framebuffer Device

Apr 16, 2010

I hope this is not a totally ridiculous question. I use putty often to remotely connect to my laptop at home. I recently learned about the Linux framebuffer, and was curious if there was a tool like putty that would let me remotely connect to my laptop but use the /dev/fb0 device for forwarding graphics. Sort of like a vnc or X11 forwarding, but instead of using X, gdm, kdm etc. we use the framebuffer.

View 2 Replies View Related

General :: Display User's Last Login Information When Connected Through FTP?

Apr 11, 2011

I want the last login information whenever I log in through FTP.

This is possible for normal console and SSH logins by configuring in /etc/login.defs file. But I am not able to view the last login information when FTP is used.

View 5 Replies View Related

General :: Bash Script Output To Console Without Login?

Dec 30, 2010

i'm looking for a way to output a bash script to the console before login.It should be executed after boot in rc.d scripts with the output on the console0. It is for a asterisk box.This is the script. It use the watch command to output the active calls on the box in realtime.Code:watch "asterisk -vvvvvrx 'show channels verbose'"Btw,

View 6 Replies View Related

General :: Online Shell / Bash Login Using SSH Port

Sep 18, 2010

Any one tell me online bash login using putty [ssh port] for practicing a linux.

View 6 Replies View Related

General :: A Script That Will Display Only The Last Login Of Each User With The Date And Year?

Apr 20, 2010

This is on an old machine that is running Solaris 7. I know that I can run the command script 'last' to get a list of who has logged in. When I do that I get a very long list of lines like:

username pts/4 100.32.11.123 Wed Dec 6 18:30 - 18:40 (00:09)

I see that the year is not posted. I have about 11 years worth of logins where users have logged in multiple times over several years.

So, here is what I need: I only need the date of the very last time a person logged in. I also need the year of that last login.

script that will do this? Something with output like

username1 pts/4 100.32.11.123 Wed Dec 6 2005 18:30 - 18:40 (00:09)
username2 pts/4 110.33.11.18 Tue Apr 20 2009 8:30 - 9:30 (01:00)
username3 pts/4 10.32.11.18 Mon Jun 12 2008 1:30 - 2:40 (01:10)
username4 pts/4 110.33.12.19 Sat Oct 10 2001 00:12 - 00:13 (00:01)
...

View 4 Replies View Related

General :: Auto Start Bash Script After Login To Desktop?

Mar 26, 2010

I am using Fedora and trying to auto run a script soon after the unit boots to desktop. I found many suggestions and finally decided to use the Sessions->Startup Programs option (under System->Preferences->Personal->Sessions menu). I added my script in the Startup Programs with the command 'sh myscript.sh'. Now I have two questions here:1. When I use the command 'gnome-terminal -e myscript.sh', I get 'There was an error creating the child process for this terminal' message after logging into the desktop. Can any one tell if I am missing something here?2. Even if I use sh instead of gnome-terminal, I still want to see the script executing. In other words, my script has certain echo statements indicating the flow of the script. But I don't see any shell opening up with these echo statements showing up, after the unit boots to desktop. But the script was still executed with no problem

View 1 Replies View Related

General :: Users Cannot Connect To The FTP Unless Their Shell Access Is /bin/bash

Oct 4, 2009

I have a CentOS dedicated server running ProFTP. I have created user accounts which are meant for FTP access only but the users cannot connect to the FTP unless their shell access is /bin/bash

Here is an example line that is outputted when I use this command:

This user can access the FTP fine, but he can also access SSH which I don't want to allow him to do. If I set his shell access to /bin/false then he can't connect to the FTP.

What can I use in instead of /bin/bash to allow FTP but don't allow SSH?

View 2 Replies View Related

Ubuntu Multimedia :: Display Shows "dirtiness" When Switching To A Text TTY And Back.

Jan 28, 2010

I want to report a bug I recently found to devs.

I found that when switching to any TTY and then back to the graphic mode a rectangle of about 5cm long x 1 and 1/2cm tall appears in the right-down corner of the screen, filled with trashed vram data.

I did a screen capture but the thing didn't appear - opposed as ghost would! xDD But the fact is I can see it, no matter I go full screen and then back to normal, no matter I switch again to any TTY and then back to TTY7, it sit's there until I reboot: closing the session and starting a new one don't work either, the box is still there.

I'm running Koala 9.10 amd64 on a QuadCore 8400 and ATI 5750HD video card with drivers provided by Ubuntu itself, not the ones that came with the graphic card CD neither the ones available to download from ATI's website.

I'm running Emerald and Compiz, too.

View 1 Replies View Related

General :: Using Command Line To Connect To A Wireless Network With An Http Login?

Apr 18, 2010

I'm trying to connect to a wifi network where it hijacks all requests and redirects you to a page where you have to agree to a terms of use before it lets you connect to the actual outside world. This is a pretty common practice, and usually doesn't pose much of a problem. However, I've got a computer running Ubuntu 9.10 server with no windowing system. How can I use the command line to agree to the terms of use? I don't have internet access on the computer to download packages via apt-get or anything like that. Sure, I can think of any number of workarounds, but I suspect there's an easy way to use wget or curl or something.

Basically, I need a command line solution for sending an HTTP POST request essentially clicking on a button. For future reference, it'd be helpful to know how to send a POST request with, say, a username and password if I ever find myself in that situation in another hotel or airport.

View 2 Replies View Related

General :: Warnings / Errors "not A Valid Identifier" At Bash Login

Jul 19, 2010

-bash: export: `/usr/java/default': not a valid identifier messages when we login as root to one of our server. This started occurring after a consultant installed software on the server. I have looked around in .bashrc, etc. for the error path so I can remove it, but can't seem to locate it. Does anyone have any tips on how to locate script line where this is being included, and/or trace the login procedure to find the culprit?

View 7 Replies View Related

Software :: Bash Script To Find Available Display Sever

Sep 16, 2010

Whenever I login to a server via ssh -X, I want that all 5 minutes a script displays a graph.The script shows the image via display (imagemagick). But what I'm not sure of is how to redirect the display output to my remote screen when this script is executed as a cron job. I can use display -display server but I don't know how to determine server via the script.

View 1 Replies View Related

Programming :: Bash Script: Order And Display On External File

Mar 12, 2010

I'd like to create a script which allows me to order its data (let's say: Name, age, department and work start date) by date. And display the result in another file.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved