LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-10-2004, 01:12 AM   #1
nny0000
Member
 
Registered: Aug 2003
Distribution: Slackware, Ubuntu
Posts: 158

Rep: Reputation: 30
mmmm cookie


I loaded up a xterm and tried to type in a program and it gave me an error
xlib :: no protocol specified
invalid MIT-MAGIC-COOKIE-1

what the hell is a mit magic cookie and how do i configure them (or it or whatever)?

also it seems that my prompt is not uniform throught the shells (one shell gives bash-2.05 and the other gives out root@localhost) how can i make them all root@localhost?

Thanks
 
Old 01-10-2004, 11:40 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Re: mmmm cookie

Quote:
Originally posted by nny0000
also it seems that my prompt is not uniform throught the shells (one shell gives bash-2.05 and the other gives out root@localhost) how can i make them all root@localhost?
This is setup in your .bashrc file or /etc/profile. If your a regular user that gets the bash-2.05 prompt and only get root@localhost when your logged in as root, you need to create a .bashrc file for your user in their home directory.

Simple way of doing it is this:

cat /etc/profile > /home/<username>/.bashrc

This will copy profile and create the file .bashrc. Then you can go edit it accordingly to your desire, etc.
 
Old 01-10-2004, 03:19 PM   #3
nny0000
Member
 
Registered: Aug 2003
Distribution: Slackware, Ubuntu
Posts: 158

Original Poster
Rep: Reputation: 30
thanks trickykid for the help. Can anyone tell me what a Mit Magic Cookie is though?
 
Old 01-11-2004, 03:17 AM   #4
PbO
Member
 
Registered: Nov 2003
Location: BC, Canada
Distribution: Slackware 11.0
Posts: 30

Rep: Reputation: 15
I think it is the authentication token used by the display manager. This error probably indicates something like "you tried to start a program from a terminal as root (or some other user other than the logged in one) when logged into X", no?

It is created when you run "startx" under slackware. See /usr/X11R6/bin/startx where it states:

authdisplay=${display:-:0}
mcookie=`mcookie`

From my reading, you can then set it up to have this cookie filed in the Xauthority file and then be accessible to other users if needed. Or something like that...

Hope this is correct...
 
  


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
mplayer (mmmm:)) skoot Linux - Software 2 11-13-2005 11:22 AM
fortune cookie :) Tinkster General 16 05-24-2005 08:26 AM
Javascript Cookie help master splinter Programming 2 05-12-2005 05:37 AM
LQ cookie not used this time??? itsjustme LQ Suggestions & Feedback 3 11-19-2004 10:29 AM
Open Office Sorting by HH:MM:SS DD MMMM YYYY toddydog Linux - Software 2 08-10-2003 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:55 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