Question

zsh won't be KDE startup shell

Asked by: kayvey

When I fire up the little terminal jobbies I was trying to get zsh for a startup. I thought my .zshrc
format was messed up but then I typed "zsh" and got my prompt.

I don't want to have to type zsh every time I start up a shell!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-05-28 at 18:45:14ID23440140
Tags

K Desktop Environment

,

terminal

,

zsh won't be startup shell

,

I edited /etc/passwd

Topics

Shell Scripting

,

Unix Systems Programming

,

FreeBSD

Participating Experts
1
Points
500
Comments
15

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. shelling a file
    How can i shell i file, then execute commands after the file has closed that i have shelled?
  2. shell
    I'm running a batch file using the "shell" command on ms-dos the problem is that a window is opened and never closed, even after the batch file has finished executing how do I close this window or don't open it at all? If there is no way detecting that the batch fil...
  3. Shell
    How Do I Run *.Bat Files With The Shell Command. I See That The Shell Command Is Working Well With the *.Exe Files.
  4. Suse Linux and KDE/shell
    Hi, I am a very new Linux user, so please excuse my ignorance in any terms I use.... I have just installed SuSE Linux 7.2 and specified a graphical login during the install. I would like to change that however, and boot to a shell prompt instead and issue a startx call wh...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: TeRReFPosted on 2008-05-29 at 09:52:18ID: 21670962

Did you use vipw to edit  /etc/passwd?

If not, the user db might not be properly updated.

Also, are you sure you used the full path to zsh?

 

by: kayveyPosted on 2008-05-29 at 13:11:31ID: 21672909

heh  {:}  You totally got these points.. but my new HD running only freebsd and I messed up
and made partitions instead of slices so the MBR comes up {:P  maybe if there is a way to
merge them back, but that wasn't really a priority I was sorta googling it..

but anyway.. so taking your advice.. umm.. The new KDE is acting different than the gnome I
had on the other HD.  Gnome sorta took over and gave me a GUI right from startup.. not so
with KDE.. I get a character based login.  KDE has taken over.. I tried to 'exec gnome-session'
but it still comes up KDE.. not a super big deal as I feel I have adequately done my Nessus junk
on the command line now.  

Anyway, though. so your advice changed the behavor.. I think I had put a line in .login or
.profile I forget

startx; startkde

and It starts up reallly slow.. When I took your advice and got my zsh on startup, I never got into
a GUI.  So I edited .zshrc and added the same startx; startkde.. so now I get a KDE after
login.. but there is a bad side effect.. When I want to open a terminal window in my KDE GUI I
get these same error messages that come in the character based as the shebang slooowly boots up..
if this is all too complex I could ask another question.  Here is  the error messages:

xauth:  creating new authority file /home/kayve/.serverauth.1219
^C
^C

Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.

^C
xinit:  unexpected signal 2.
^CKDE seems to be already running on this display.
^C
[13:00 kayve@kv_bsd~]


As you can see, I ctrl-C'ed out of it.. maybe I could have let it go.  Oh jeez.. Trying a second terminal
window.. got a couple dialog boxes that say "KDE seems to be already running on this display."

Okay. ctrl-c wasn't necessary, but this is sorta irritating behavior to deal with:

xauth:  creating new authority file /home/kayve/.serverauth.1332
xauth: (argv):1:  bad display name "kv_bsd.sfsu.edu:0" in "list" command
xauth: (stdin):1:  bad display name "kv_bsd.sfsu.edu:0" in "add" command


Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.

xauth: (argv):1:  bad display name "kv_bsd.sfsu.edu:0" in "remove" command
GOT SIGHUP
KDE seems to be already running on this display.
KDE seems to be already running on this display.
[13:10 kayve@kv_bsd~]

 

by: TeRReFPosted on 2008-05-29 at 14:07:29ID: 21673278

The startx; startkde line should be removed since it will be executed every time you start a shell.

Try this, create this file in your home dir:
.xinitrc

don't forget the dot!

Then put this line in it:
/path/to/startkde

Of course change /path/to to the real path to the startkde executable...

Reboot to see if it works....

 

by: TeRReFPosted on 2008-05-29 at 14:13:06ID: 21673321

You will still need to type startx to start an X session...

Did you install kdm and or gdm?
If so, adding a line in /etc/rc.conf would start it automatically which enables you to login to Freebsd while X is already running...

 

by: kayveyPosted on 2008-05-29 at 16:22:56ID: 21674145

I already had such a file:

[16:21 kayve@kv_bsd~]cat .xinitrc
startkde
[16:22 kayve@kv_bsd~]

is the PATH my problem.

 

by: kayveyPosted on 2008-05-29 at 16:29:34ID: 21674180

on the kdm and or gdm question, I am not exactly sure what I did, but I had my root prompt goin' on..
I got my wire up, and then I started trying stuff like "pkg_add -r kde" and "pkg_add -r gnome2" I think
I did both.. It wasn't working super kewl I might have went back into sysinstall by typing "sysinstall"
at the root prompt, and then I realized that the command 'startx' got me into that crazy older type
feel windowing stuff, and then it occured to me to run  the two pkg_add commands mentioned above
from there. KDE gave me a bunch of Uncle BIll style selection dialogs and at some point gnome put a
big leafy thing in my background but it seems like I am somehow all KDE now.. umm..

kv_bsd# pkg_info | grep gdm
gdm-2.20.1_1        GNOME 2 version of xdm display manager
kv_bsd# pkg_info | grep kdm
kv_bsd#  

hmm.. does that answer your question?  I remember feeling like gnome took over, but then all I get now
is "K" windows.

 

by: kayveyPosted on 2008-05-29 at 18:12:36ID: 21674582

heh.. {:} maybe I should ask more questions.. I'm at the school lab right now instead of home..
it seems I don't really have to mess with /etc/resolv.conf that's supposed to mess with itself or
be autgenerated or something.. we added some lines to /etc/rc.conf:

# DHCP client (e.g. SFSU)
dhclient_program="/sbin/dhclient" # PATH to DHCP client program
dhclient_flags="bge0"  # additionalflags to DHCP client
background_dhclient="NO" # start DHCP client in the background
######

I don't have to take that out when I go home.. and to make it go I have to do this
command from root now:

kv_bsd# dhclient bge0
DHCPREQUEST on bge0 to 255.255.255.255 port 67
DHCPACK from 130.212.3.254
bound to 130.212.223.19 -- renewal in 3600 seconds.
kv_bsd#

is that something I could make happen on startup too?

 

by: kayveyPosted on 2008-05-29 at 18:14:35ID: 21674588

Heh  {:}  I'm finally reading this page now:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-devices.html

maybe I can fix the mouse in the kernel better than we have it now?

http://www.monkeyview.net/id/965/fsck/fb7/kde/p5250022.vhtml

 

by: TeRReFPosted on 2008-05-30 at 01:38:39ID: 21676083

You can use gdm and still choose KDE as preferred window manager.

Have a look in this dir:
ls /usr/local/etc/rc.d

and see if there is a script called gdm.

If so, add this line to your /etc/rc.conf
gdm_enable="YES"

After a reboot, gdm should come up automatically.


Try to comment out all other DHCP lines in rc.conf, just adding this one should be enough:
ifconfig_bge0="DHCP"

Unfortunately you cannot fix your mouse problems by altering the kernel. I did give you a solution to automate the killall moused etc... in one of your other questions though... (an automated script that does it when X starts...)

 

by: kayveyPosted on 2008-05-30 at 11:29:17ID: 21680238


kv_bsd# cd /usr/local/etc/rc.d
kv_bsd# ls
001slpd.sh              gdm                     snmpd
avahi-daemon.sh         hald                    snmptrapd
avahi-dnsconfd.sh       mdnsd                   svnserve
cupsd                   nessusd                 system-tools-backends
dbus                    nessusd.sh              xfs
ffserver                polkitd
kv_bsd# cat /etc/rc.conf

# -- sysinstall generated deltas -- # Mon May 26 16:02:04 2008
# Created: Mon May 26 16:02:04 2008
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="kv_bsd.sfsu.edu"
ipv6_enable="YES"

#######
# home DSL
defaultrouter="192.168.0.1"
ifconfig_bge0="inet 192.168.0.2 netmask 255.255.255.0"
######

# DHCP client (e.g. SFSU)
dhclient_program="/sbin/dhclient" # PATH to DHCP client program
dhclient_flags="bge0"  # additionalflags to DHCP client
background_dhclient="NO" # start DHCP client in the background
######

ntpdate_flags="ntp1.mainecoon.com"
ntpdate_enable="YES"
moused_enable="YES"
# -- sysinstall generated deltas -- # Tue May 27 10:03:31 2008
ntpdate_flags="ntp.ucsd.edu"
ntpdate_enable="YES"
gdm_enable="YES"
kv_bsd#

 

by: kayveyPosted on 2008-05-30 at 11:30:16ID: 21680248

umm.. I already  had gdm_enable are you saying the DHCP stuff is messing things up?

 

by: kayveyPosted on 2008-05-30 at 11:32:41ID: 21680266

I get a character based nice looking prompt at startup.  startx needs to be ctrl -c'ed to work I think.

 

by: kayveyPosted on 2008-05-30 at 11:33:13ID: 21680278

anyway.  .. right now I can ping freebsd but I can't browse the webserver

 

by: TeRReFPosted on 2008-05-30 at 16:29:44ID: 21682081

What happens when you run the gdm script manually?

 

by: kayveyPosted on 2008-07-26 at 14:33:06ID: 22096297

Currently my boot starts with character based command line and I type startx

I'm wondering about this ichss error

http://www.monkeyview.net/id/965/fsck/fb7/kde/p5270075.vhtml

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...