Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Community Discussions > Other OS Talk > Distributions > Gentoo
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read


The Ubuntu Forums have grown tremendously over the years. While we regret that we are discontinuing our Other OS Talk category, this gives us an opportunity to help other Linux distributions grow by directing traffic to the websites of these distributions.

Here is a list of the official websites for the operating systems that used to have individual forums here. We hope you are able to find further assistance from there. And finally, if you haven't yet found what you are looking for, we suggest you look for information on the DistroWatch website or you might try the multi-distribution LinuxQuestions forum.

Gentoo
Discussions on Gentoo Linux.

 
 
Thread Tools Display Modes
Old February 22nd, 2007   #1
Cloudy
Gee! These Aren't Roasted!
 
Cloudy's Avatar
 
Join Date: Nov 2005
Location: Arkansas
Beans: 189
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to Cloudy
Configuring a static IP address in Gentoo?

How would I go about doing this from a terminal prompt? I'm assigned a static IP, DNS server, default gateway etc. and I just thought I'd learn how to configure it all from a terminal prompt in Gentoo just.. well, because I wanted to know how.

Would something like entering "ip address 192.0.0.0" in the terminal prompt work?
Cloudy is offline  
Old February 22nd, 2007   #2
mips
new Other OS Talk fora, C signature
 
mips's Avatar
 
Join Date: Feb 2005
Location: South Africa
Beans: 5,704
Send a message via Skype™ to mips
Re: Configuring a static IP address in Gentoo?

From the terminal you can run:

Code:
net-setup
or manually edit the config file

Code:
kdesu kate /etc/conf.d/net
or you could maybe use ifconfig (never tried it so I dont really know)

Check the gentoo wiki and official documentation.
__________________
So Long, and Thanks for All the Fish
How To Ask Questions The Smart Way
new Other OS Talk forum

Last edited by mips; February 22nd, 2007 at 05:24 PM..
mips is offline  
Old February 22nd, 2007   #3
zaratustra
A Carafe of Ubuntu
 
zaratustra's Avatar
 
Join Date: Jul 2006
Location: Zagreb, Croatia
Beans: 98
Send a message via ICQ to zaratustra Send a message via MSN to zaratustra
Re: Configuring a static IP address in Gentoo?

cleanest method is this
Code:
ifconfig eth0 192.168.1.101
where eth0 can be arbitrary interface
zaratustra is offline  
Old February 22nd, 2007   #4
Cloudy
Gee! These Aren't Roasted!
 
Cloudy's Avatar
 
Join Date: Nov 2005
Location: Arkansas
Beans: 189
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to Cloudy
Re: Configuring a static IP address in Gentoo?

Ahhh, cheers guys, I'm just dumb though. I just noticed that there's documentation provided within Gentoo that tells you how to do exactly what I'm wanting to do. It's

Code:
net-setup eth0
Do you think dualbooting XP and Gentoo on a 20gb laptop hdd would be a stretch?
Cloudy is offline  
Old February 23rd, 2007   #5
zaratustra
A Carafe of Ubuntu
 
zaratustra's Avatar
 
Join Date: Jul 2006
Location: Zagreb, Croatia
Beans: 98
Send a message via ICQ to zaratustra Send a message via MSN to zaratustra
Re: Configuring a static IP address in Gentoo?

Depends what do you have or need installed inside. If you don't clean disfiles and using buildpkg option, gentoo can't grow to 10 GB, but if you maintain it (see documentation) properly, it should stay in about 5 GB. You must know that you need some empty space for compiling. For example, huge thing like openoffice won't start compiling if you don't have at least 5 GB of empty space, so maybe you will have to use binary packages for something like that. This space is temporarily used. On the other side, do not count that you will have full Visual Studio (or something big like that) installed in Windows. I would buy a bigger disk, but in case I had no money, I would make an 6-7 GB ext (or reiser) and all other would be NTFS, used for Windows and for data (music, pics) readed by ntfs-3g from Gentoo. In that way, you will get some flexibility on Windows (delete some data if you need big program. No flexibility with ext because it is not readable from Windows(AFAIK).
zaratustra is offline  
Old February 23rd, 2007   #6
Cloudy
Gee! These Aren't Roasted!
 
Cloudy's Avatar
 
Join Date: Nov 2005
Location: Arkansas
Beans: 189
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to Cloudy
Re: Configuring a static IP address in Gentoo?

Quote:
Originally Posted by zaratustra View Post
Depends what do you have or need installed inside. If you don't clean disfiles and using buildpkg option, gentoo can't grow to 10 GB, but if you maintain it (see documentation) properly, it should stay in about 5 GB. You must know that you need some empty space for compiling. For example, huge thing like openoffice won't start compiling if you don't have at least 5 GB of empty space, so maybe you will have to use binary packages for something like that. This space is temporarily used. On the other side, do not count that you will have full Visual Studio (or something big like that) installed in Windows. I would buy a bigger disk, but in case I had no money, I would make an 6-7 GB ext (or reiser) and all other would be NTFS, used for Windows and for data (music, pics) readed by ntfs-3g from Gentoo. In that way, you will get some flexibility on Windows (delete some data if you need big program. No flexibility with ext because it is not readable from Windows(AFAIK).
Thanks for the opinion, zaratustra. I'm seriously considering replacing my current HDD with a $70, 60GB Hitachi drive but I have no idea how reliable Hitachi is. I may just go with a larger Fujitsu ATA hdd since the drive I have in right now is a 20gb ATA hdd.

What I wound up doing is resizing my Windows partition with QTParted to about 11gb and using about 6.5gb for Gentoo.

However, I am either dumb or have done something wrong.. I can't get xdm to start on my Gentoo partition.

When I do startx I get a clock and 3 terminal windows. Is that normal?
Cloudy is offline  
Old February 24th, 2007   #7
zaratustra
A Carafe of Ubuntu
 
zaratustra's Avatar
 
Join Date: Jul 2006
Location: Zagreb, Croatia
Beans: 98
Send a message via ICQ to zaratustra Send a message via MSN to zaratustra
Re: Configuring a static IP address in Gentoo?

maybe you should install gdm (exapmle), append/edit this line
Code:
DISPLAYMANAGER="gdm"
to /etc/rc.conf file, and execute this
Code:
rc-update add xdm default
to add xdm(this will add gdm, or whichever you have) to runlevel, or maybe you want to do it in gentoo way
Code:
eselect rc add xdm
.
If you don't want X to start at boot time, ignore what I have wrote above and read this. Don't "startx", maybe you could try "gdm" or whichever display manager you have. (slim, kdm...)

Last edited by zaratustra; February 24th, 2007 at 07:42 AM..
zaratustra is offline  
Old February 24th, 2007   #8
mips
new Other OS Talk fora, C signature
 
mips's Avatar
 
Join Date: Feb 2005
Location: South Africa
Beans: 5,704
Send a message via Skype™ to mips
Re: Configuring a static IP address in Gentoo?

Quote:
Originally Posted by Cloudy View Post
Thanks for the opinion, zaratustra. I'm seriously considering replacing my current HDD with a $70, 60GB Hitachi drive but I have no idea how reliable Hitachi is. I may just go with a larger Fujitsu ATA hdd since the drive I have in right now is a 20gb ATA hdd.

What I wound up doing is resizing my Windows partition with QTParted to about 11gb and using about 6.5gb for Gentoo.

However, I am either dumb or have done something wrong.. I can't get xdm to start on my Gentoo partition.

When I do startx I get a clock and 3 terminal windows. Is that normal?
I would take hitachi over fujitsu anyday. My first choice would be Seagate/WD for desktops & for laptops Hitachi only.
__________________
So Long, and Thanks for All the Fish
How To Ask Questions The Smart Way
new Other OS Talk forum
mips is offline  
Old February 24th, 2007   #9
Cloudy
Gee! These Aren't Roasted!
 
Cloudy's Avatar
 
Join Date: Nov 2005
Location: Arkansas
Beans: 189
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to Cloudy
Re: Configuring a static IP address in Gentoo?

Quote:
Originally Posted by zaratustra View Post
maybe you should install gdm (exapmle), append/edit this line
Code:
DISPLAYMANAGER="gdm"
to /etc/rc.conf file, and execute this
Code:
rc-update add xdm default
to add xdm(this will add gdm, or whichever you have) to runlevel, or maybe you want to do it in gentoo way
Code:
eselect rc add xdm
.
If you don't want X to start at boot time, ignore what I have wrote above and read this. Don't "startx", maybe you could try "gdm" or whichever display manager you have. (slim, kdm...)
"gdm" worked. However, I am still having some problems.

First off, I have duplicate entries in GRUB: Gentoo and Windows are both listed twice. When I check the bootloader options, both are listed twice -- is it alright to delete the second Windows & Gentoo entries? I just want to make sure before I do anything. >_>

Second, and most importantly:

Whenever I try to login as my user I get this:

Code:
User's $HOME/.dmrc file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permissions. User's $HOME directory must be owned by user and not writable by other users.
What's that all about?

And thanks for the opinion, mips.
Cloudy is offline  
Old February 24th, 2007   #10
mips
new Other OS Talk fora, C signature
 
mips's Avatar
 
Join Date: Feb 2005
Location: South Africa
Beans: 5,704
Send a message via Skype™ to mips
Re: Configuring a static IP address in Gentoo?

Quote:
Originally Posted by Cloudy View Post
"gdm" worked. However, I am still having some problems.

First off, I have duplicate entries in GRUB: Gentoo and Windows are both listed twice. When I check the bootloader options, both are listed twice -- is it alright to delete the second Windows & Gentoo entries? I just want to make sure before I do anything. >_>

Just backup the file first before you delete anything. Should be ok though.



Quote:
Originally Posted by Cloudy View Post
Second, and most importantly:

Whenever I try to login as my user I get this:

Code:
User's $HOME/.dmrc file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permissions. User's $HOME directory must be owned by user and not writable by other users.
What's that all about?
Some sort of problem with permissions. You should be able to use chown & chmod to correct it.
__________________
So Long, and Thanks for All the Fish
How To Ask Questions The Smart Way
new Other OS Talk forum
mips is offline  
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:26 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry