Installing Gentoo GNU/Linux 2004.3 on SPARC - Part 7 - Final Configuration
There are 7 parts to this article:
Part 1 - Gentoo on SPARC - Booting the Install CD
Part 2 - Gentoo on SPARC - Creating the Filesystems
Part 3 - Gentoo on SPARC - Copying Initial System, Portage, and Distfiles
Part 4 - Gentoo on SPARC - Creating the Kernel
Part 5 - Gentoo on SPARC - Getting Silo Installed
Part 6 - Gentoo on SPARC - Initial Logon
Part 7 - Gentoo on SPARC - Final Configuration
First, let's set up the hostname and start up the network. Let's reboot to make sure ssh starts up and all looks good as well:
localhost / # nano /etc/hosts
localhost / # nano /etc/conf.d/net
127.0.0.1 localhost srv-1
gateway="eth0/10.50.100.82"
iface_eth0="10.50.100.49 broadcast 10.50.100.255 netmask 255.255.255.0"
localhost / # rc-update add net.eth0 default
* net.eth0 added to runlevel default
* Caching service dependencies... * rc-update complete.
localhost / #
localhost root # rc-update add sshd default
* sshd added to runlevel default
* Caching service dependencies... * rc-update complete.
localhost root #
localhost / # reboot
Broadcast message from root (tts/0) (Fri Dec 31 14:27:04 2004):
The system is going down for reboot NOW!
NIT: Sending processes the TERM signalt / #
INIT: Sending processes the KILL signal
Restarting system.
Resetting ...
screen not found.
Can't open input device.
Keyboard not present. Using ttya for input and output.
Sun Ultra 2 UPA/SBus (2 X UltraSPARC-II 296MHz), No Keyboard
OpenBoot 3.11, 512 MB memory installed, Serial #10151545.
Ethernet address 8:0:20:9a:e6:79, Host ID: 809ae679.
Rebooting with command: boot
Boot device: disk:a File and args:
SILO Version 1.4.8
.
.
.
This is srv-1.(none) (Linux sparc64 2.4.27-sparc) 14:29:23
srv-1 login: root
Password:
login(pam_unix)[1021]: session opened for user root by (uid=0)
Last login: Fri Dec 31 14:16:59 on tts/0
srv-1 root # ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:20:9A:E6:79
inet addr:10.50.100.49 Bcast:10.50.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:224
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
srv-1 root #
|
Network looks good, and the host name is fine. The next most important tool for us is vi (Vim):
srv-1 root # emerge vim
Calculating dependencies ...done!
>>> emerge (1 of 3) dev-util/ctags-5.5.4 to /
>>> Downloading http://gentoo.osuosl.org/distfiles/ctags-5.5.4.tar.gz
--14:30:58-- http://gentoo.osuosl.org/distfiles/ctags-5.5.4.tar.gz
=> `/usr/portage/distfiles/ctags-5.5.4.tar.gz'
Resolving gentoo.osuosl.org... 140.211.166.134
Connecting to gentoo.osuosl.org[140.211.166.134]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 260,962 [application/x-gzip]
100%[====================================>] 260,962 228.88K/s
14:30:59 (228.35 KB/s) - `/usr/portage/distfiles/ctags-5.5.4.tar.gz' saved [2609
62/260962]
>>> md5 src_uri ;-) ctags-5.5.4.tar.gz
.
.
.
make[1]: Leaving directory `/var/tmp/portage/vim-core-6.3-r2/work/vim63/src'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-editors_-_vim-core-6.3-r2-3619.log"
chmod: /dev/tts/0
--------------------------------------------------------------------------------
srv-1 root #
|
Hrmphh.... It appears that we can't compile this via the serial console. Let's try an ssh session (and investigate this more when we are really, really bored):
usr-1@mach-1 usr-1 $ ssh root@srv-1
Last login: Fri Dec 31 14:29:27 2004
srv-1 root #
srv-1 root # emerge vim
>>> /usr/bin/ex -> vim
>>> /usr/bin/view -> vim
>>> /usr/bin/rview -> vim
* Updating documentation tags in /usr/share/vim/vim63
*
* gvim has now a seperate ebuild, 'emerge gvim' will install gvim
*
* To see what's new in this release, use :help version6.txt
*
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
>>> app-editors/vim-6.3-r1 merged.
>>> Recording app-editors/vim in "world" favorites file...
>>> clean: No packages selected for removal.
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
srv-1 root #
|
That works. Now let's install system logging and cron:
srv-1 root # emerge syslog-ng
Calculating dependencies ...done!
>>> emerge (1 of 2) dev-libs/libol-0.3.14 to /
>>> md5 src_uri ;-) libol-0.3.14.tar.gz
>>> Unpacking source...
>>> Unpacking libol-0.3.14.tar.gz to /var/tmp/portage/libol-0.3.14/work
>>> Source unpacked.
./configure --prefix=/usr --host=sparc-unknown-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedi
r=/var/lib
.
.
.
--- /etc/init.d/
>>> /etc/init.d/syslog-ng
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
>>> app-admin/syslog-ng-1.6.5-r1 merged.
>>> Recording app-admin/syslog-ng in "world" favorites file...
>>> clean: No packages selected for removal.
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
srv-1 root # rc-update add syslog-ng default
* syslog-ng added to runlevel default
* Caching service dependencies...
* rc-update complete.
srv-1 root a root # emerge vixie-cron
Calculating dependencies
.
.
.
>>> /etc/init.d/vixie-cron
>>> /etc/crontab
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
>>> sys-apps/vixie-cron-3.0.1-r4 merged.
>>> Recording sys-apps/vixie-cron in "world" favorites file...
>>> clean: No packages selected for removal.
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
srv-1 root #
srv-1 root # rc-update add vixie-cron default
* vixie-cron added to runlevel default
* Caching service dependencies...
* rc-update complete.
srv-1 root #
srv-1 root # ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 13 15:20 ? 00:00:09 init [3]
root 2 1 0 15:20 ? 00:00:00 [keventd]
root 3 1 0 15:20 ? 00:00:00 [ksoftirqd_CPU0]
root 4 1 0 15:20 ? 00:00:00 [ksoftirqd_CPU1]
root 5 1 0 15:20 ? 00:00:00 [kswapd]
root 6 1 0 15:20 ? 00:00:00 [bdflush]
root 7 1 0 15:20 ? 00:00:00 [kupdated]
root 9 1 1 15:20 ? 00:00:00 [khubd]
root 10 1 0 15:20 ? 00:00:00 [kjournald]
root 147 1 0 15:20 ? 00:00:00 /sbin/devfsd /dev
root 922 1 0 15:21 ? 00:00:00 /usr/sbin/syslog-ng
root 1149 1 0 15:21 ? 00:00:00 /usr/sbin/sshd
root 1190 1 0 15:21 ? 00:00:00 /usr/sbin/cron
root 1205 1 0 15:21 tts/0 00:00:00 /sbin/agetty 9600 ttyS0 vt100
root 1206 1149 1 15:21 ? 00:00:00 sshd: root@pts/0
root 1209 1206 0 15:21 pts/0 00:00:00 -bash
root 1213 1209 0 15:21 pts/0 00:00:00 ps -ef
srv-1 root # crontab -l
no crontab for root
srv-1 root #
|
We have a complete system.
Go back to the first part of this article here.
There are 7 parts to this article:
Part 1 - Gentoo on SPARC - Booting the Install CD
Part 2 - Gentoo on SPARC - Creating the Filesystems
Part 3 - Gentoo on SPARC - Copying Initial System, Portage, and Distfiles
Part 4 - Gentoo on SPARC - Creating the Kernel
Part 5 - Gentoo on SPARC - Getting Silo Installed
Part 6 - Gentoo on SPARC - Initial Logon
Part 7 - Gentoo on SPARC - Final Configuration
|
|