LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-07-2005, 03:09 PM   #1
Rivitir
Member
 
Registered: Feb 2003
Location: /home
Distribution: Gentoo, Slackware, Debian, & CentOS
Posts: 69

Rep: Reputation: 15
Questions about displays, shells, and a little more


Question 1:
I have my X running and it's working rather well until I try and launch a program from my shell window:

# kate
kate: ERROR: KUniqueApplication: Can't determine DISPLAY. Aborting.

How do I correct my "determine DISPLAY" problem? Is this in the xorg.conf file? Please note I'm doing this in a GUI shell, in KDE.



Question 2:
When I'm not running KDE my shell resolution is very low, making it very hard to work in, how do I change this resolution? My boot loader is lilo if this makes a differance.



Question 3:
How do you keep your slackware system up-to-date with packages? I've tried swaret, but I'm having problems with getting through my proxy, and I don't have ftp access. Are their any other, or better package updater/management programs available?


Thanks for all your help.
 
Old 11-07-2005, 03:47 PM   #2
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Rep: Reputation: 31
Try Gentoo

Just Joking

Quote:
Question 1:
I have my X running and it's working rather well until I try and launch a program from my shell window:

# kate
kate: ERROR: KUniqueApplication: Can't determine DISPLAY. Aborting.

How do I correct my "determine DISPLAY" problem? Is this in the xorg.conf file? Please note I'm doing this in a GUI shell, in KDE.
Did you open up a regular user console and then do an 'su -' to become root?

If so, you won't get the original user's environment, such as the DISPLAY variable.

You also won't have permissions to write to that user's display, even as root, so that's another thing.

Quote:
Question 2:
When I'm not running KDE my shell resolution is very low, making it very hard to work in, how do I change this resolution? My boot loader is lilo if this makes a differance.
Resolution can be changed by editing the config file

/etc/X11/xorg.conf

It's pretty self explanatory. If all else fails try http://www.google.com/linux


Quote:
Question 3:
How do you keep your slackware system up-to-date with packages? I've tried swaret, but I'm having problems with getting through my proxy, and I don't have ftp access. Are their any other, or better package updater/management programs available?
1. View the changelog [notice the http, since you have ftp problems?

http://carroll.cac.psu.edu/pub/linux.../ChangeLog.txt

2. Look at the list of Slackware mirrors [find the ones that are http?]

http://www.slackware.com/getslack/list.php?country=USA

3. Download the updates to your hard drive in a new folder.

4. In a shell as root, run the command

upgradepkg *.tgz


Simple as pie, that's the Slackware way
 
Old 11-07-2005, 04:04 PM   #3
username17
Member
 
Registered: Aug 2004
Location: Norfolk VA
Distribution: Slackware 11
Posts: 230

Rep: Reputation: 30
In regards, definatly read UPGRADE.TXT before upgrading. Follow that to the "t" and you're fine.

About the display errors, being root could be the problem. I've seen sometimes my "DISPLAY" variable gets hosed. Just restart X and it usually fixes it.

-Jason
 
Old 11-07-2005, 05:28 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
kate: ERROR: KUniqueApplication: Can't determine DISPLAY. Aborting.
Sounds like you're trying to run Kate as root from within Konsole. As explained above, you can't do that---at least, not easily.

I'm a GUI user too although I've been around computers for more than two decades. I detest every 'nix console-based text editor I've investigated and I enjoy Kate. I solved my problem of wanting to use Kate as root by placing a Kate icon in my system tray that calls kdesu kate. You can do the same from the KDE Menu Run option or press Alt-F2 and then type kdesu kate. To see how I configured my Kicker task bar to include a system tray icon dedicated to using Kate as root, see this page:

Stop services from starting at boot

Quote:
When I'm not running KDE my shell resolution is very low, making it very hard to work in, how do I change this resolution?
Sounds like you're describing your console text before you start X/KDE, either through the startx script or the KDM login manager. If so, then in my boot loader options I added the boot option vga=3 to provide cleaner text during boot. I use GRUB so I can't help you with LILO, but I think all you need do is edit the LILO config file in a similar manner, and then run LILO to recompile the boot file.

Quote:
How do you keep your slackware system up-to-date with packages?
There are oodles of threads here at LQ addressing that issue. I prefer to do things somewhat manually. However, I use a nice KDE utility called kslackcheck. That tool does not perform automatic updates, but does help inform you of what packages installed on your box need updating based upon changelog notices. The tool also will help you download those files, but be careful with that latter option if you are on dial-up. Using kslackcheck means I still need to run upgradepkg, but kslackcheck only notifies me of those packages installed on my box and no others. Very nice.

I hope this helps.
 
Old 11-07-2005, 05:50 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I am making an assumption that you su'ed to root in a terminal, so that you could edit a configuration file. If you are using KDE, you might want to launch kate from the application launcher instead by entering "kdesu kate". Then you can load and edit the file as root. Another thing that you can do in KDE is to drag the icon from the menu, onto the task bar. Then right click on the Kate icon and select properties. Get into Advanced Properties and check the run as different user checkbox, and enter root as that user in the text entry line just below. I did this for "Konsole", and put it on the left-side of the taskbar, to segregate it from the normal user icons. You will be asked to enter the root password to run it.

On SuSE, there is a program called "sux" which allows you to su to root and start X11 programs from the shell. It is a wrapper for the "su" program that takes care of the xauth cookie transfers in the background. I mention this because other distro's also include it, so if you have it then you can enter "sux" instead of "su". If you don't have it, I don't think you could use the "sux" command from another distro. It needs to take your distro's authentication system into account. For example, in SuSE Linux, it will involve PAM, which your system doesn't use.

On the text size issue, I use "vga=791" as a boot option. You need to have frame buffer support to be able to use this resolution. There is a more general "vga=extended" but I don't care for the looks of the fonts on my card at this resolution. Since there are differnt versions of lilo, you might want to read up on the documentation for yours. Or, simply enter it manually as a boot option the next time boot up. If it is the resolution you want, then edit your /etc/lilo.conf file to use it and rerun /sbin/lilo.

Last edited by jschiwal; 11-07-2005 at 05:58 PM.
 
  


Reply



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
Questions about su, su -, shells and terminal colours Nylex Linux - General 4 08-13-2005 02:59 AM
help on the different shells... JoannesX Programming 2 02-06-2005 11:07 AM
Why so many shells? linuxzouk Linux - Newbie 5 06-10-2004 07:36 AM
Shells, editing and grep -- questions re: howto Jiawen Linux - Software 3 09-17-2003 03:00 PM
Shells andrewtc Linux - Newbie 3 05-01-2003 03:52 PM

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

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