SSD/Linux
FAQ
Contents
-
I want to compile and install a single program only, not the whole SSD/Linux distribution.We explain at the example of the program autoconf how to compile only a part of SSD/Linux.
First, retrieve the source files and unpack them.# cd /usr/src/mkdist/autoconf # bmake
Download the source files to /usr/src/dist/distfiles, and expand them into the directory /usr/src/dist/autoconf.
Check was is listed under DEPENDENT in /usr/src/mkdist/autoconf/Makefile.DEPENDENT= usr.bin/autoconf
Here, the relative path under /usr/src is written. Change to the directory, compile and install.# cd /usr/src/usr.bin/autoconf # bmake clean # bmake # bmake install
With these steps, the compilation and installation of autoconf is completed.
If there are multiple directories listed under DEPENDENT, change to the directories, compile and install them in that order.
Be careful. During the installation, system files can be overwritten. For example, if you run `bmake install' in /usr/src/etc, the files in the directory /etc are overwritten.
If you run it with the `-n' option as `bmake -n install', the program checks where it installs files, and makes backups if necessary.
In the above autoconf example, the commands would be as follows.# cd /usr/src/usr.bin/autoconf # bmake -n install cd /usr/src/usr.bin/autoconf/build && make DESTDIR= install-strip # cd build # make -n DESTDIR= install-strip
400Back to top -
I want to manually edit the OpenMicroServer / OpenBlockS network settings, without using the Web setup tool or serial setup tool. How do I do this practically? (I did not select "Contributions" when installing SSD/Linux with an installer (cfinst/sysinst) on a CF card / HDD.)Login over the serial port.
Add the following lines to /etc/rc.conf. Note that in this guide, the values for the settings are examples, please use values appropriate for your network.- Hostname
hostname="foo.example.com"
- Interface
ifconfig_eth0="inet 192.168.253.254 netmask 255.255.255.0 broadcast 192.168.253.255"
same for eth1 (eth2,...)
If you want to use the DHCP for dynamic IP address assignment, read the explanation below. - default route
defaultroute="192.168.253.1"
- DHCP Client
To let the DHCP server dynamically assign an IP to the port eth0, use the following setting.dhclient=YES dhclient_flags="eth0"
For both eth0 and eth1, use the following insteaddhclient=YES dhclient_flags="eth0 eth1"
search example.com nameserver 192.168.253.10 nameserver 192.168.253.11
- See also:
SSD Linux: /etc
395Back to top - Hostname
-
As a normal user, I can't execute commands as root with the su command.The normal user needs to be part of the group "wheel" to use the su command to assume root privileges. Add the user name to the line of the group "wheel" in the file /etc/group.
In the example below,wheel:*:0:root,user1
the user with the login name user1 can use the su command.394Back to top -
When I use the ftp program on the Windows command prompt to download files for OpenMicroServer / OpenBlockS / SSD/Linux from the ftp server, the files are broken.When using the Windows command prompt ftp program to upload / download files (that are not text files), be careful to use the right file transfer type. When downloading binary files like firmware, you need to set the transfer mode to binary.
Since the default mode is ascii, always use the following command on the ftp prompt to switch to binary mode before downloading program files.ftp> binary 200 Type set to I.
393Back to top -
I can't connect via ssh anymore since I updated the ssh server to OpenSSH version 4.7p1OpenSSH version 4.7p1 disables ssh protocol version 1 at installation. Please switch to a ssh client that can handle ssh protocol version 2.381Back to top
-
Can I backup the OS environment to a CF card or (on OMS) a USB storage device?Yes, that is possible. You can make a complete backup of the OS environment to play it back in case of trouble.
The easiest way is to create an ext2 or ext3 partition on the medium and just copy all data.375Back to top -
I forgot the SSD/Linux root password of the PC I use for cross compiling for OpenMicroServer / OpenBlockS266. What can I do?Get the FD/CD-ROM you used to install SSD/Linux. If you don't have it anymore create a new one. To reset the root password, do the following:
- Boot from FDD/CD-ROM
- Mount the HDD
- Copy the files passwd and shadow from the HDD to the ramdisk
- Change the root password
- Update the files passwd and shadow on the HDD
- Unmount the HDD
- Eject the FD/CD-ROM and reboot
# mount -t ext3 /dev/hda1 /mnt
# cp /mnt/etc/passwd /etc/passwd # cp /mnt/etc/shadow /etc/shadow
# passwd Enter new UNIX password: ********[Return] Retype new UNIX password: ********[Return] passwd: password updated successfully
# cp /etc/passwd /mnt/etc/passwd # cp /etc/shadow /mnt/etc/shadow
# umount /mnt
# reboot
363Back to top