|
Home | Switchboard | Unix Administration | Red Hat | TCP/IP Networks | Neoliberalism | Toxic Managers |
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and bastardization of classic Unix |
|
There are multiple ways to install and run Linux. Each distribution contain documentation that covers this process. This page contains mostly tips, that are important enough to be more widely known. There are separate guidelines that cover installation in more details:
|
There are two versions of Linux 32 bit and 64 bit. 64-bit version requires CPUs with extended instruction set (AMD64 and Intel 64 CPU). For servers 64-bit version is better as it allow to access more then 16G of RAM and on configurations from 4G to 16G works faster.
The only exception is virtual machine environment: 32-bit kernel is better for VMware environment.
Availability of Linux for 64-bit Intel and AMD hardware platforms does not necessarily mean that all the applications included have already been ported to 64-bit platforms. Often this is not true and a lot of application even commercial one are distributed only for 32-bit mode.
To be executed correctly, every application requires a range of libraries. Unfortunately, the names for the 32-bit and 64-bit versions of these libraries are identical. They must be differentiated from each other by placement:
Subdirectories of 32-bit /lib directories whose data content does not depend on the word size are not moved.
The installed 32-bit and 64-bit libraries must have an API (application programming interface) that matches the installed header files. The normal Linux environment is designed according to this principle.In the case of manually updated libraries, you need to resolve these issues yourself.
The Linux boot process consists of several stages each represented by another component. The following list briefly summarizes the boot process and features all the major components involved.
The main purpose of init on initramfs is to prepare the mounting of and access to the real root file system. Depending on your system configuration, init is responsible for the following tasks.
When init is called during the initial boot as part of the installation process, its tasks differ from those mentioned earlier:
CD/DVD are default installation medium for YAST. Local CD/DVD installations are very much the same for Solaris and Linux. The installation program prompts for information when it is required. A menu of options is presented in some parts so that you can select the appropriate choice or choices. As with a Solaris installation, Linux will perform the following operations.
Modern Linux usually recognizes most devices and installs without major hardware problems on standard desktop and laptop.
Note: In Solaris, the installation program will use the current console as an I/O device, and if you are using a serial interface, it will use that same serial interface. In Linux for IA32 , the default console device used for installation is the graphics card. If you need to install the system using a serial interface, you need to specifically tell the installation program to do so by adding the nofb console=ttyS0 kernel boot options.
In Solaris, you can install using the local graphic display or the serial interface. In Linux, you can install using the local graphic display, serial interface, and a few other remote modes.
In RHEL, you have the following options:
Add a display=IP_OF_REMOTE_X:0 argument to the kernel boot line for using a remote X Server for displaying the installation GUI. |
Add a vnc vncpassword=MIN_6_CHAR_PASS argument to the kernel boot line for using a VNC client from another machine to connect to the installation GUI. |
In SLES, you have the following options:
Add a usessh=1 sshpassword=MIN_1_CHAR_PASS argument to the kernel boot line for starting a ssh installation. If you connect with ssh -X, you can have graphical GUI. |
Add a vnc=1 vncpassword=MIN_5_CHAR_PASS argument to the kernel boot line for using a vnclient from another machine to connect to the installation GUI. |
The two minimum partitions are the root partition, signified with a forward slash (/), and a swap partition, which Linux uses as virtual memory. You also would benefit form a separate /home partitions for the reasons explained above. Traditionally, the size of the swap partition is equivalent to (or a multiple of) the amount of hardware RAM you have installed.
If you have only these two partitions, YaST will put all standard directories on the same partition as /. These are
Instead of a single file linux configuration files are often spitted into chunks which are stored then into directories. The main file just assembles the chunks. As in other areas of life this quest to more flexibility actually sometimes backfire and turns into its opposite.
Some of those "hacked" files include /etc/profile (with chunks stored at /etc/profile.d), crontab (crontab.d), syslog (actually Suse uses syslog-ng instead of regular syslog), etc. RC files are structures similarly to Solaris with links to each run level.
Some of the more important system-related configuration files in this directory are
Suse uses different default shell. But it is a better interactive shell then Korn shell.
Also the default ksh in linux is broken and ksh93 should be installed. It is also more reliable for complex scripts.
|
Switchboard | ||||
Latest | |||||
Past week | |||||
Past month |
One of the things I quickly found to be bothering me is the fact that there was an apparently long and unexplicable delay for all new network connections which resembled to a dns resolving. No reason for lengthy dns resolving though. So I did a strace:socket(PF_FILE, SOCK_STREAM, 0) = 4 fcntl64(4, F_GETFD) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 connect(4, {sa_family=AF_FILE, path="/var/run/avahi-daemon/socket"}, 110) = 0 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) fstat64(4, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f35000_ llseek(4, 0, 0xbfa7d918, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(4, "RESOLVE-ADDRESS 10.0.0.6\n", 25) = 25read(4, <unfinished ...>the results shows a connection to a avahi-daemon which I have no ideea what is good for so I should not need it. I disabled it in /etc/default/avahi-daemon
cat /etc/default/avahi-daemon # 0 = don't start, 1 = start AVAHI_DAEMON_START=0Hope it helps.
############################################################################# # # This Kickstart file is used to install the minimum RHEL server for use with # Oracle database. It also removes unneeded services. # # The default root password is: password # # Values to change before using are: # - Set the network - The hostname & Network configuration (DHCP/Static) # - Partitioning & Swap size # - Set a different timezone if not located in Israel # - If going to use rawdevices comment the "chkconfig rawdevices off" line # - Set the shmmax kernel parameter to the correct value # - If you are not going to install Oracle RAC, you can comment the hangcheck line in this file # # This is OEL/RHEL 3/4. For OEL/RHEL 5, comment indicated lines!!! # # Things to do after the server is installed: # Change the root and oracle accounts password # Create the needed filesystem and set the owner to oracle # Change the ORACLE_BASE, ORACLE_SID environment variables in # ~oracle/.bash_profile to the correct values # Set the server default run level to 3 or 4 (if using NFS/CIFS) ############################################################################# # Uncomment the next line to enable interactive installation #interactive # Comment the next line to use GUI installation text install # reboot after installation reboot # From where to get the installation disks cdrom #url --url http://myserver/redhat/ lang en_US.UTF-8 #OEL5: langsupport deprecated langsupport --default=en_US.UTF-8 en_US.UTF-8 keyboard us xconfig --resolution 800x600 --depth 16 --defaultdesktop gnome # Change the hostname and adjust the eth configuration for your environment # hostname_$$ adds random number to hostname to try and avoid name conflicts (tested on OEL 5.2+) network --device eth0 --noipv6 --bootproto dhcp --hostname srvoracle01_$$ #network --device eth0 --bootproto static --ip x.y.z.v --netmask 255.255.255.0 --gateway x.y.z.v --nameserver x.y.z.t,x.y.z.v --hostname srvoracle01_$$ rootpw --iscrypted $1$uKWECPhN$Im66UG8MpWd2/kpcHoyuy/ firewall --disabled selinux --disabled authconfig --enableshadow --enablemd5 # Set a different timezone if not located in israel timezone Asia/Jerusalem bootloader --location=mbr --append="rhgb quiet" # OEL5: for multipath systems #bootloader --location=mbr --driveorder=sda,mapper/mpathX --append="verbose" # OEL5: for boot from SAN, match driveorder to BIOS boot disk order #bootloader --location=mbr --driveorder=mapper/mpathY,sda --append="nousbstorage verbose" # OEL5: any options to zerombr deprecated #zerombr zerombr yes # initlabel clears the label present on most used disks; helps LVM/Oracle ASM to see disks as new clearpart --all --initlabel --drives=sda # for multipath systems #clearpart --all --initlabel --drives=sda,mapper/mpath0,mapper/mpath1,mapper/mpath2,mapper/mpath3 # for boot from SAN, use your boot LUN. E.g. --ondisk=mapper/mpath4 or mapper/mpath2 part /boot --asprimary --fstype ext3 --size=100 --ondisk=sda # Setup LVM part pv.3 --size=1 --grow --ondisk=sda volgroup vgsystem --pesize=32768 pv.3 # Create the file systems and logical volumes; assigning useful names to LVs logvol / --fstype ext3 --name=lvroot --vgname=vgsystem --size=2048 logvol /tmp --fstype ext3 --name=lvtmp --vgname=vgsystem --size=2048 logvol /usr --fstype ext3 --name=lvusr --vgname=vgsystem --size=3072 logvol /usr/local --fstype ext3 --name=lvusrlocal --vgname=vgsystem --size=1024 logvol /var --fstype ext3 --name=lvvar --vgname=vgsystem --size=1024 logvol /var/log --fstype ext3 --name=lvvarlog --vgname=vgsystem --size=1024 logvol /opt --fstype ext3 --name=lvopt --vgname=vgsystem --size=1024 logvol /home --fstype ext3 --name=lvhome --vgname=vgsystem --size=512 --grow # Edit the swap space to be twice the size of the machine RAM, # if you have 8GB of RAM or more set the swap to the same size as the RAM logvol swap --fstype swap --name=lvswap --vgname=vgsystem --size=2048 # All packages needed by Oracle installation include Gnome desktop # NOTE: despite explicitly removing a pkg, dependencies may add them later on. # Always clean up RPMs/packages after reboot and before an up2date/yum update #OEL5: up2date deprecated! use yum %packages @ system-tools @ gnome-desktop @ dialup # OEL5: comment out next line @ compat-arch-support -openldap-clients -ckermit -wireshark -bluez-pin -OpenIPMI-tools -samba-client e2fsprogs -screen -xdelta -zsh -nmap lvm2 -open # OEL5: comment out next line kernel-smp grub binutils compat-db control-center gcc gcc-c++ glibc glibc-common # OEL5: comment out next line gnome-libs libstdc++ libstdc++-devel make # OEL5: comment out next line pdksh sysstat # OEL5: comment out next line xscreensaver # SNMP makes monitoring server much easier, if configured right #net-snmp-utils # add Oracle package at install time to solve many dependencies # NOTE: package is not on CD! Only yum/up2date. DVD untested #oracle-validated # This post script modify all the Oracle database prerequisites, includes oracle user and dba,oinstall groups %post # create user and groups /usr/sbin/groupadd oinstall /usr/sbin/groupadd dba /usr/sbin/useradd -m -g oinstall -G dba oracle # Change kernel parameters cat >> /etc/sysctl.conf << EOF ############################## # Oracle Database requirements ############################## # The max value for shmmax on a 32bit machine is 4294967295 #kernel.shmmax = 536870912 kernel.shmall = 2097152 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 658576 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 262144 net.core.wmem_default = 262144 net.core.rmem_max = 1048536 net.core.wmem_max = 1048536 EOF # Change ulimits for user oracle cat >> /etc/security/limits.conf << EOF oracle soft nproc 16384 oracle hard nproc 16384 oracle soft nofile 65536 oracle hard nofile 65536 EOF # Add hangcheck-timer module for RAC; comment if you don't need RAC echo "options hangcheck-timer hangcheck_tick=30 hangcheck_margin=180" >> /etc/modprobe.conf echo "modprobe hangcheck-timer" >> /etc/rc.modules # Set oracle account environment variables cat >> /home/oracle/.bash_profile << EOF # Oracle environment variables export ORACLE_BASE=/software/oracle #export ORACLE_HOME=\$ORACLE_BASE/10g #export TNS_ADMIN=\$ORACLE_HOME/network/admin export ORACLE_SID=orcl1 export LD_LIBRARY_PATH=\$ORACLE_HOME/lib export PATH=\$PATH:\$ORACLE_HOME/bin if [ "`ls -ld \$ORACLE_HOME | awk '{print \$3" "\$4}'`" != "oracle oinstall" ] then echo "The ORACLE_HOME (\$ORACLE_HOME) is not owned by oracle:oinstall" fi EOF ############################# # Remove unneeded services!!! ############################# # Comment this line if you are using Oracle Clusterware chkconfig rawdevices off # Enable Network filesystems support for run level 4 only chkconfig --level 12356 portmap off chkconfig --level 12356 nfslock off chkconfig --level 12356 rpcgssd off chkconfig --level 12356 rpcidmapd off chkconfig --level 12356 autofs off chkconfig --level 4 portmap on chkconfig --level 4 nfslock on chkconfig --level 4 rpcgssd on chkconfig --level 4 rpcidmapd on chkconfig --level 4 autofs on # Enable xfs support for run level 5 only chkconfig --level 12346 xfs off chkconfig --level 5 xfs on chkconfig sendmail off chkconfig cups off chkconfig hplip off chkconfig anacron off chkconfig apmd off chkconfig arptables_jf off chkconfig atd off chkconfig bluetooth off chkconfig canna off chkconfig cups-config-daemon off chkconfig gpm off chkconfig hidd off chkconfig hpoj off chkconfig iiim off chkconfig isdn off #OEL5: comment line below; pkg not longer exists chkconfig pcmcia off #if using SNMP, uncomment line below #chkconfig snmpd on chkconfig rhnsd off chkconfig auth off # OEL/RHEL 5 only services #chkconfig yum-updatesd off #chkconfig setroubleshoot off #chkconfig restorecond off #chkconfig pcscd off #chkconfig mcstrans off #chkconfig avahi-dnsconfd off #chkconfig avahi-daemon off
Google matched content |
Society
Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers : Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism : The Iron Law of Oligarchy : Libertarian Philosophy
Quotes
War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda : SE quotes : Language Design and Programming Quotes : Random IT-related quotes : Somerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose Bierce : Bernard Shaw : Mark Twain Quotes
Bulletin:
Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 : Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law
History:
Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds : Larry Wall : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOS : Programming Languages History : PL/1 : Simula 67 : C : History of GCC development : Scripting Languages : Perl history : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history
Classic books:
The Peter Principle : Parkinson Law : 1984 : The Mythical Man-Month : How to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater’s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite
Most popular humor pages:
Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor
The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D
Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.
This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...
|
You can use PayPal to to buy a cup of coffee for authors of this site |
Disclaimer:
The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.
Last modified: October 06, 2019