LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   issues in the terminal (https://www.linuxquestions.org/questions/linux-software-2/issues-in-the-terminal-282203/)

nixerwannab 01-25-2005 05:06 PM

issues in the terminal
 
there seem to be several cases i have run into recently where ill type in somthing for example ~/.xinitrc and it says that permission denied.

is there someway i can make it so i DONT get these errors, cuz its annoying, cuz i dont know how to get around them, and there are some things that i need to do such as what i just typed above that i need to do.

hw-tph 01-25-2005 05:15 PM

Well, understanding what the error message means is probably a start. If you just type ~/.xinitrc that means you try to execute the file /home/username/.xinitrc, and if it's not executable bash will complain with that error message. To make the file executable you would type chmod +x ~/.xinitrc. chmod is a command that changes permissions, in this case it adds execute permission (to every) on that file.


Håkan

mjrich 01-25-2005 05:16 PM

What are you trying to achieve ? Typing
Code:

~/.xinitrc
into a shell won't do a great deal, as Bash (or whichever shell you're running) is attempting to a) execute a non-executable file, that b) is in your home directory -- neither of which will normally work...

If you want to view your .xinitrc file, then use less .xinitrc. To edit, use gedit .xinitrc and so on.

Cheers,

mj

mjrich 01-25-2005 05:17 PM

Oh bugger, beaten to the post again :)

mj

nixerwannab 01-25-2005 05:18 PM

thanks, yea im just trying to configure my screen saver, i didnt know it was this dificult...

nixerwannab 01-25-2005 05:23 PM

Quote:

Originally posted by mjrich
What are you trying to achieve ? Typing
Code:

~/.xinitrc
into a shell won't do a great deal, as Bash (or whichever shell you're running) is attempting to a) execute a non-executable file, that b) is in your home directory -- neither of which will normally work...

If you want to view your .xinitrc file, then use less .xinitrc. To edit, use gedit .xinitrc and so on.

Cheers,

mj

i just tried the gedit .xinitrc and it didnt like that, so i tryed less .xinitrc and i think it liked that all too much, cuz this big list came down, and i dont know what to do with it...

mjrich 01-25-2005 05:25 PM

Quote:

Originally posted by nixerwannab
i didnt know it was this dificult...
Not so much difficult ( - when you get the hang of it), just different, is all :)

Cheers,

mj

mjrich 01-25-2005 05:27 PM

Depends on which editors you have installed. Try any of:
Code:

kate .xinitrc
nedit .xinitrc
xedit .xinitrc
emacs .xinitrc

Or if you have some time, print out a cheat sheet for the venerable Vim, and:

vim .xinitrc

Cheers,

mj

nixerwannab 01-25-2005 05:28 PM

Quote:

Originally posted by hw-tph
Well, understanding what the error message means is probably a start. If you just type ~/.xinitrc that means you try to execute the file /home/username/.xinitrc, and if it's not executable bash will complain with that error message. To make the file executable you would type chmod +x ~/.xinitrc. chmod is a command that changes permissions, in this case it adds execute permission (to every) on that file.


Håkan

ok so i did the chmod +x ~/.xinitrc, and it am up with an error saying

Quote:

Originally Posted by error
Warning: Failed to open catalog, using default messages
BaseDisplay::BaseDisplay: connection to X server failed.
FLuxbox: Unkown error

help plz

nixerwannab 01-25-2005 05:31 PM

Quote:

Originally posted by mjrich
Depends on which editors you have installed. Try any of:
Code:

kate .xinitrc
nedit .xinitrc
xedit .xinitrc
emacs .xinitrc

Or if you have some time, print out a cheat sheet for the venerable Vim, and:

vim .xinitrc

Cheers,

mj

and now i did the emacs one and it came up with a screen...and i dont know what to do...again

mjrich 01-25-2005 05:38 PM

Go to http://en.wikipedia.org/wiki/Emacs#Using_Emacs, and print out a cheat sheet...

Cheers,

mj


All times are GMT -5. The time now is 05:05 PM.