LinuxQuestions.org
Help answer threads with 0 replies.
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 01-25-2005, 05:06 PM   #1
nixerwannab
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora 28
Posts: 27

Rep: Reputation: 15
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.
 
Old 01-25-2005, 05:15 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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
 
Old 01-25-2005, 05:16 PM   #3
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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
 
Old 01-25-2005, 05:17 PM   #4
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Oh bugger, beaten to the post again

mj
 
Old 01-25-2005, 05:18 PM   #5
nixerwannab
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora 28
Posts: 27

Original Poster
Rep: Reputation: 15
thanks, yea im just trying to configure my screen saver, i didnt know it was this dificult...
 
Old 01-25-2005, 05:23 PM   #6
nixerwannab
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora 28
Posts: 27

Original Poster
Rep: Reputation: 15
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...
 
Old 01-25-2005, 05:25 PM   #7
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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
 
Old 01-25-2005, 05:27 PM   #8
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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
 
Old 01-25-2005, 05:28 PM   #9
nixerwannab
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora 28
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
Old 01-25-2005, 05:31 PM   #10
nixerwannab
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora 28
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
Old 01-25-2005, 05:38 PM   #11
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

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

Cheers,

mj
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
i cant run any terminal strings and sound card issues boxerboy Fedora 2 08-01-2005 05:22 AM
Suse 8.2 terminal issues Twiggy794 Linux - Distributions 4 10-09-2003 09:23 PM
Gnome-Terminal non root issues natto34 Linux - Software 6 07-15-2002 10:08 PM

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

All times are GMT -5. The time now is 06:27 AM.

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