SunQuest
           BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 12th, 2003, 11:40 PM
kubicon's Avatar
kubicon kubicon is offline
pogremar
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: At Work
Posts: 945 kubicon User rank is Corporal (100 - 500 Reputation Level)kubicon User rank is Corporal (100 - 500 Reputation Level)kubicon User rank is Corporal (100 - 500 Reputation Level)kubicon User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 14 h 50 m 47 sec
Reputation Power: 7
x gnome su

two questions:
1) I just intalled and used freebsd for the first time in my life. At the shell, when i start the x server it defaults to twm. I want to startx with gnome instead? BTW, it is intalled. what option do I pass to startx and/or what file do I edit.

2) when I type su to become root I get:
su: sorry!
How do I become root without having to re-loging
__________________
Some day I'll create a smart quote to put here.

Reply With Quote
  #2  
Old September 13th, 2003, 07:53 AM
Kung Foo Master Kung Foo Master is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 68 Kung Foo Master User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
>what option do I pass to startx and/or what file do I edit.
startx is a script that does sanity checks and then runs a file called .xinitrc. Now, you can create an .xinitrc file in your home directory for startx to read, they look something like this:
Code:
#!/bin/sh
xclock -bg grey20 -fg gold -hd aliceblue -hl orange -geometry \
=200x200-0+0 -update 1 &
xeyes +shape -g =+1240+0 &
xpenguins -b &
xscreensaver &
twm &
xsetroot -solid black
xterm -ls -fn 10x20 -bg navy -fg gold -title "Editor" -g =80x52+416-39 &
xterm -ls -fn 10x20 -bg brown -fg ivory -title "Shell" -g =80x24+0+52 &
xterm -ls -fn 10x20 -bg brown -fg yellow -ms green -cr black -bd red \
-C -n console -title "`/bin/hostname` Console" -g =80x4+0+0 -iconic

Or you could do it the easy way. As root, load up sysinstall and configure the desktop however you like that way. Just starting out, I recommend doing it the easy way even if I'm not a fan of fancy desktops like KDE or GNOME.

>How do I become root without having to re-loging
Make sure your account is a member of the user group 'wheel', this allows you to become a superuser with the su command. As root, open /etc/passwd in your favorite editor. You'll see a bunch of entries that look like this:
Code:
user:*:1001:0:User &:/home/user:/bin/csh

The fields are separated by colons and are as follows:

Login name:Password:User ID:Group ID:Name:Home Directory:Default Shell

Change the Group ID to 0 if it isn't already, then you should be able to use the su command to gain root access.

Reply With Quote
  #3  
Old September 13th, 2003, 05:49 PM
kubicon's Avatar
kubicon kubicon is offline
pogremar
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Location: At Work
Posts: 945 kubicon User rank is Corporal (100 - 500 Reputation Level)kubicon User rank is Corporal (100 - 500 Reputation Level)kubicon User rank is Corporal (100 - 500 Reputation Level)kubicon User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 14 h 50 m 47 sec
Reputation Power: 7
> load up sysinstall and configure the desktop..
???

Reply With Quote
  #4  
Old September 14th, 2003, 02:40 PM
Kung Foo Master Kung Foo Master is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 68 Kung Foo Master User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
>> load up sysinstall and configure the desktop..
>???
Log in as root, then type

# /stand/sysinstall

Follow the instructions, it's a nice[1] graphical interface.

[1] Okay, maybe not *that* nice, but it's still a graphical interface.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > x gnome su


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway