User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » New to Linux - Can't Run Anything from Shell Page [1]  
Pi Master
All American
18151 Posts
user info
edit post

I installed Enemy Territory using a shell script.

That was fine. When I try and run it, I get an error:

Xlib: connection to ":0.0" refused by server
Klib: No protocol specified

At first I thought this was OpenGL related, because the only other thing I tried to run from a shell prompt was an OpenGL program. So as I got about trying to update my nVidia drivers, I realize that I can't even open any editors from a root prompt (which I was trying to do since I couldn't modify my /etc/apt/sources.list file from the editor I opened in KDE.

So two questions:

1) Why can't I run anything from a shell prompt?

2) (less important) How can I run programs I open from KDE shortcuts as root?


I know it's probably something extremely simple, but someone give me some help cause I'm a severe linux noob.

I'm running Debian with a 2.6.11 kernel.

[Edited on January 15, 2006 at 2:00 PM. Reason : This will probably end up in that "Tales of the Technically Inept" thread ]

1/15/2006 1:58:56 PM

MaximaDrvr

10401 Posts
user info
edit post



[Edited on January 15, 2006 at 2:37 PM. Reason : wrong section]

1/15/2006 2:37:17 PM

jimb0
All American
4667 Posts
user info
edit post

as far as running editors, try running non-gtk editors (ie kate, emacs) from the command line if you're running KDE (im guessing you probably are). if you dont have emacs, apt-get it.

i dont know about your enemy territory issues. im new to linux as well.

1/15/2006 3:19:54 PM

Pi Master
All American
18151 Posts
user info
edit post

Well, I can't run it directly from Konqueror, and the problme is indicative of a driver problem. So now gotta try and update my drivers, and the site I was reading recommended I add a line to my sources file, which is why I was editing it.

emacs throws the same error about not establishing a connection to the X server.

[Edited on January 15, 2006 at 3:27 PM. Reason : asdf]

1/15/2006 3:25:57 PM

Pi Master
All American
18151 Posts
user info
edit post

I've tried with Konsole, xterm and rxvt.

1/15/2006 3:31:03 PM

Pi Master
All American
18151 Posts
user info
edit post

Ok, I found a 'root terminal' link. This should do it.

1/15/2006 3:47:24 PM

1CYPHER
Suspended
1513 Posts
user info
edit post

More evidence on why linux is clearly superior to Windoze.

1/15/2006 4:10:13 PM

Pi Master
All American
18151 Posts
user info
edit post

Quote :
"root@Pi:/home/jcovil/Desktop# apt-get -t testing install nvidia-kernel-source nvidia-kernel-common
Reading Package Lists... Done
Building Dependency Tree... Done
Recommended packages:
nvidia-glx
The following NEW packages will be installed:
nvidia-kernel-common nvidia-kernel-source
0 upgraded, 2 newly installed, 0 to remove and 847 not upgraded.
Need to get 0B/1399kB of archives.
After unpacking 1491kB of additional disk space will be used.
(Reading database ... dpkg: error processing /var/cache/apt/archives/nvidia-kernel-common_20051028+1_all.deb (--unpack):
unable to open files list file for package `dlint': Permission denied

Errors were encountered while processing:
/var/cache/apt/archives/nvidia-kernel-common_20051028+1_all.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
"


Ok, it looks like I'm getting what I need, but it's not working because of a permission error. I've gone to the folder and checked on the permissions in file properties, and it says no one can execute them. But I can't change them there because I'm not root there. So how do I give execution permission to, at the very least, root?

[Edited on January 15, 2006 at 4:33 PM. Reason : sdfa]

1/15/2006 4:32:35 PM

Pi Master
All American
18151 Posts
user info
edit post

Ok, I've changed the permissions to the files (I think), but I can't install them directly, I don't think. So when I do apt-get -t testing install nvidia-kernel-source nvidia-kernel-common, it re-downloads those files, and therefore they don't have the right permissions again. Which would seem weird for the files to be downloaded in the fashion if they're supposed to be executed in the very next step.

1/15/2006 4:41:16 PM

moron
All American
34142 Posts
user info
edit post

apt-get generally has to be run as root/super-user (sudo apt-get works if you are an admin user). When you change the permissions, it probably makes apt think the files are bad, and it wants to redownload them.

[Edited on January 15, 2006 at 5:07 PM. Reason : ]

1/15/2006 5:07:13 PM

Pi Master
All American
18151 Posts
user info
edit post

I'm running it as root.

That's why I'm confused.

1/15/2006 5:08:28 PM

moron
All American
34142 Posts
user info
edit post

Oh...

That's weird.

Try changing the server your apt gets its files from. Perhaps that file is somehow corrupt.

1/15/2006 5:16:06 PM

Pi Master
All American
18151 Posts
user info
edit post

Trying to find a server for testing files

Any suggestions?

1/15/2006 5:25:37 PM

Pi Master
All American
18151 Posts
user info
edit post

I tried using mirrors.kernel.org/debian/

Same exact problem

[Edited on January 15, 2006 at 5:32 PM. Reason : asdf]

1/15/2006 5:32:31 PM

darkmage
Veteran
496 Posts
user info
edit post

I know its convenient to use package management and all but couldn't you just download the binary release from Nvidia's site?

1/15/2006 8:12:34 PM

jimb0
All American
4667 Posts
user info
edit post

and if they have an .rpm for the drivers, just use alien to convert to .deb and use dpkg to install.

1/15/2006 9:18:49 PM

Pi Master
All American
18151 Posts
user info
edit post

Oh, I tried that a long time ago.

I tried running it from a root terminal and it said it couldn't run while an X server was running.

How do I go to just a console without the actual gui running?

Like I said, I'm a Linux n00b.

1/16/2006 1:00:06 AM

moron
All American
34142 Posts
user info
edit post

^ you can just kill the xserver (type "top", find the process number, then do "kill <process number>")

You can do control-option-f<#> to switch to virtual terminals.

1/16/2006 1:03:02 AM

Pi Master
All American
18151 Posts
user info
edit post

I tried that, and it just kicked me back to the Login screen.

1/16/2006 1:09:35 AM

moron
All American
34142 Posts
user info
edit post

On the login screen, there's not an option for text login or anything like that?

Also, if you switch to one of the virtual terminals, log in, kill the xserver, does it still kick you back to the login screen?

1/16/2006 1:59:03 AM

philihp
All American
8349 Posts
user info
edit post

1/16/2006 2:58:51 AM

Pi Master
All American
18151 Posts
user info
edit post

Yeah, I did a console login and got the install program to run, but it failed when trying to build the kernel.

1/16/2006 11:10:22 AM

YOMAMA
Suspended
6218 Posts
user info
edit post

install FC4

1/16/2006 9:45:32 PM

Protostar
All American
3495 Posts
user info
edit post

Quote :
"Yeah, I did a console login and got the install program to run, but it failed when trying to build the kernel."


What was the error it gave? I'm using Suse Linux (I tried Debian, but the installation failed for some reason), and it was a cinch to install the ATI drivers. Here's a wiki on it, maybe you will find it useful:

http://wiki.debian.org/NvidiaHowTo?highlight=%28nVidia%29

Don't give up!! Even if help cannot be had here, other forums exist whose members would gladly lend a helping hand.

[Edited on January 18, 2006 at 12:59 AM. Reason : .]

1/18/2006 12:59:06 AM

Protostar
All American
3495 Posts
user info
edit post

If you do switch distros, I suggest Suse. So much better package management than under any other distro I have tried.

1/18/2006 1:00:25 AM

 Message Boards » Tech Talk » New to Linux - Can't Run Anything from Shell Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.