home
manual & docs drivers & updates software GNU/Linux Introduction Read this What you need to know about the aero Partitioning the harddisk Choosing the installation method Preparing the Aero for a Red Hat 6.1 harddisk install The Red Hat 6.1 Installation Process RAM-problems The Floppy Access to DOS-Partitions The Linux-BootLoader Configuring X-Windows Patching and compiling a new kernel Solving the RAM problem Installing PCMCIA and configuring it for Bad RAM Finished - What comes next? Advanced Power Management Getting WebDAV to work with XP Conclusion GNU Free Documentation License FreeDOS internal speaker the press the people (& their mails) the aeros wildest dream... links about |
Finished |
|
What comes next ?
|
||
Linux should be installed on the aero now and running without errors. So now you can start configuring the OS to your wishes - to set up your network, get a new filesystem, set up a webserver, a database and all that stuff you like. I for instance have successfully installed on this aero that you are currently surfing: Ext3 as filesystem, Apache as webserver, Samba as fileserver, MySQL as databaseserver, PHP and SSH. So everything that is necessary for a professional root-server works great on the aero (of course not everything is light-speed-fast). A complete description of how to install and setup these things would mean to write another 50 pages. Also I am not the right man to give such advises - I have already mentioned that I started as complete linux-newbie, did I? ;-) The internet and the usenet is full of information how to install and configure those things. Personally I can recommend Mr. Mouranis "Securing and Optimizing Linux" handbook as it is well understable also for new users of this great OS. In this chapter I will anyway describe some commands that were quite useful for someone who came from dos and windows. Some errors I ran into will be also mentioned and some solutions I found out. So: This chapter contains information about: Additional Patches The Journaling Filesystem Ext3 Putting the harddisk to sleep Changing the language of linux Installing additional software German extra characters and Debian Linux Show disk space and memory To format a 1,44"-floppy User Configuration Start script from current directory Error message "home... not found Error message " Suspiciously high nelem..." Error message " Stopping service... failed." Displaying banner in a ssh-connection Changing the time the harddisk is checked Repair the little penguin at boot-time Tips for Samba Error message "kernel panic NO init found. try passing int=option to kernel" Backups |
||
Additional Patches:
As I mentioned previously I installed in the meantime a RedHat 7.1 system on the aero (by plugging it's harddrive into my desktop). On this system I installed a new 2.2.19-kernel fresh from tarball, as I found it at:
The Journaling Filesystem Ext3
In contrary to the standard linux-filesystem ext2, ext3 is a journaling filesystem. The main feature is the fast recovery of not clearly unmounted filesystems - that means if you didn't perform a clean shutdown of the pc for whatever reasons. Converting ext2 to ext3
You have to create a journal on the partition. The easiest way to do it is to type: tune2fs -j /dev/hdaX
This can be done on an unmounted or on a mounted filesystem. If you create the journal on a mounted filesystem you will see a .journal file. Don't try to delete this and don't back this up or restore it from backup! If you run tune2fs -j on an unmounted partition an unvisible journal file will be created. mount -t ext3 /dev/hdaX /mnt/somewhere
Dont forget to edit the /etc/fstab file. Change the format ext2 to ext3 for every partition you have converted. Converting ext3 back to ext2
However, if for any reason you do have an ext3 filesystem which you want
to convert permanently back to ext2, whether it was cleanly unmounted or
not, you can use "debugfs" from e2fsprogs-1.17 or later to do it. [/root]# debugfs debugfs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09 debugfs: open -f -w /dev/sdb1
Now, use "features" to see which feature bits are set on the filesystem: debugfs: features Filesystem features: has_journal filetype sparse_super We want to clear the journal bits, then we can quit: debugfs: features -has_journal -needs_recovery Filesystem features: filetype sparse_super debugfs: quit
Now you have to change the lines in /etc/fstab from ext3 into ext2. Then reboot, let linux remove all unnecessary ext3-information and you have successfully reinstalled the ext2-filesystem. Putting the harddisk to sleep
If you use the aero as server like me, it's nice to run it as quiet as possible. You will be happy with the aero, as it needs neither a fan for the power supply nor one for the processor. The only thing that produces still noise is the harddisk. So my intention was to put the harddisk to sleep as much as possible. hdparm -S 12 /dev/hda
That spins the disk down after 5 seconds of inactivity. To enable this feature right from the start, I added this command as last line to my "/etc/rc.d/rc.local". EXTRA_PARAMS=-S12
Now, you will remark, that after a certain time, the disk will start spinning again, write something, and stop then again. Some people suggested to avoid this by stopping the syslogd-daemon, which protocols all activities into the log-files. I don't agree: First, on any secure system you should have logfiles and READ them to know what is going on on the harddisk. Stop logging may have the advantage of a quiet system, but it seems to me you loose one of the most important security-features of linux and to make your system running more quiet may turn out that it is quiet forever... insmod rd rd_size=200 mke2fs /dev/ram0 mke2fs /dev/ram1 mount /dev/ram0 /var/log/samba mount /dev/ram1 /var/lock/samba mkdir /var/log/samba/locks
to the file /etc/rc.d/rc.local, so two ramdisks of the size of 200kb each are mounted with every boot-up of linux. So I loose 400kb for this feature, but in the end I considered it worth it. Changing the language of linux
RED HAT ----------snip---------------- There's no easy way yet to install additional languages after installation. Right now it would involve re-installing all %lang-ified packages similar to this rpm -Uvh somepackage.rpm \ --define '_install_langs de,en' --replacepkgs (which would install languages German and English only) and updating /etc/sysconfig/i18n. -----------snap---------------- But how to switch to the languages that you have installed? First I tried with the "Features"-option in linuxconf. It didn't work for me. Then I found the file /etc/sysconfig/i18n ---------------------------------- LANG="de_DE@euro" SUPPORTED="en_US:en:de_DE@euro:de_DE:de" SYSFONT="lat0-sun16" SYSFONTACM="iso15 -----------------------------------
which defines the language used in linux. But the Line SUPPORTED only showed english and german - so switching to french or spanish seemed not to be possible. Seemed, for it was not true! /usr/lib/localeEvery language installed is listed here and the various directories are named with the appropriate keys that you may fill in the "i18n"-file. So if you want (like I did before I took the screenshot above) switch to french, you change the lines in /etc/sysconfig/i18n: /etc/sysconfig/i18n ---------------------------------- LANG="fr_FR@euro" SUPPORTED="en_US:en:fr_FR@euro:fr_FR:fr" SYSFONT="lat0-sun16" SYSFONTACM="iso15 -----------------------------------
SUPPORTED seems only to tell linux-prgrams to either use the defined language or take one of the supported ones. If this is true, it would be wise not mention all included in the "/usr/lib/locale" because it would lead to a waste of memory and maybe unexpected languages of the software (but I don't know that). dpkg-reconfigure locales
Hope this helps.
I had some problems configuring samba (2.2.3a-13 from debian woody) to work properly with a windows 98 share.
Especially to mount Win98-smb-share from linux with smbmount made some difficulties with the umlauts in filenames. client code page = 850 character set = ISO8859-1 valid chars = [...]
(Yes, the points have to be written like that...) |
||
Command for mounting the sharesmbmount //win98-pc/share /mnt/mountpoint -o iocharset=iso8859-1,codepage=cp850 (Don't leave a space between the comma and "codepage". Write it all in one row.) |
||
Change of local Linux-settings I also had to change the local settings of Linux itself with the above mentioned command: dpkg-reconfigure locales to "de_De ISO-8859-1". That worked for me.
Hope this helps.
There is a good description of the red hat packet management in "rpm -e kernel-pcmcia-cs"
WITHOUT all extensions - otherwise you get the message "package is not installed". This was quite confusing first... Show disk space and memory
Disk-space df -l
Show the used disk-space in a special directory: du
Memory free To show the memory used by all current processes: top Another way to show this memory: cat /proc/meminfo And of course with "dmesg | grep Memory" you will see all of the physical memory detected at boot-time. To format a 1,44"-floppymkfs -t ext2 -c /dev/fd0H1440 User Configuration
A great tool is the program "userconf" which gives you a GUI to manage users.
Start script from current directory
to start a script that lays in the current directory you have to give in "./" before the scripts name, f.i.: cd /etc/rc.d/init.d ./smb start
That was nice to find out... Error message "home... not found"
If you get this message after login as user "uli" home/uli! not found
you probably installed some .tar or .rpm files and inadvertently changed
the permissions of the root directory ("/") itself. It has to
be mode 755 , otherwise no non-root user will be able to access
his home directory. chmod 755 / Error message " Suspiciously high nelem..."
If you get the message rpmdb: Suspiciously high nelem of 4294967292 on page 0 error: db3 error(-30985) from db->verify: DB_VERIFY_BAD: \ Database verification failed you have to rebuild your rpm database with the command rpm --rebuilddb Error message " Stopping service... failed."
If you get this message, for instance with mysql, check if it still runs: ps -ax |grep mysqld If yes then killall mysqld
afterwards delete the appropriate pid-file in /var/lock. Displaying banner in a ssh-connection
If you like to have a banner (for instance with the software linux_logo) at the console as well as with ssh-connections you have to copy it to different files.
So if you use your file /etc/init.d/rc.local to copy the banner automatically to issue.net copy that line to also change the file motd. PrintMotd yes Changing the time the harddisk is checked
You can change the maximum mount count by using tune2fs -c You can also use tune2fs -l /dev/hdd1
to inspect the current maximum mount count. Repair the little penguin at boot-time
If you have installed kernel-2.2.19 you will see that the little penguin at boot time is broken (the penguin, that appears, if you have enabled framebuffer support in the kernel-configuration/menu "console drivers"). /usr/src/linux/include/linux".
For repairing download the correct file "linux_logo.h" from my site at Tips for Samba
These two webpages helped me a lot: Error message "kernel panic NO init found. try passing int=option to kernel"
These were three of the ugliest hours in the last months. After unplugging the aeros harddisk, plugging it into my desktop and copying 133MB of files with win98 onto the dos-partition, and then plug it back into the aero, lilo didn't boot any more. loadlin vmlinuz root=/dev/hda5
brought the above mentioned error message. loadlin vmlinuz root=30d
brought relief! Everything started as it should. Thanks, "veenurs" in GoogleGroups, whereever you live, may god bless you! Your solution saved me much work! Backups
Go to: |
||
Comments
Suggestions for this page? Ideas? Please drop a note! |
||
|
||