Gnypahalan - SuSE 9.1

From miki
Jump to navigation Jump to search
SUSE 9.1 - Installation Log - AMD 1000
--------------------------------------

Configuration:

	AMD 1000
	MTB Soltek
	Display NVidia TNT2
	Monitor Dell P790
		--> Initial resolution: 1600x1200, 89.9kHz, 72Hz !!!
	
	Unex: connected to ADSL Ethernet Switch Billion BIPAC-741



20040531 - SUSE 9.1 New Installation
	First tried update of SuSE 7.2, without success. Had among other problem with lilo (duplicate label 'linux')
	Almost standard configuration
	Network: Stand-Alone-Machine
	User: root, baddreams
	Online Update: Security / Recommended / NVidia + MS Fonts
	
20040531
	Kpanel - set size to small
	Virtual Desktop - set to 4
	Kate - Schemas - Font set to Bitstream Vera Sans Mono 8
	Control Center
		Appearance & Theme
			Background        : TBC
			Colors            : Thin Keramik II
			Icons             : Desktop=32, Toolbars=16, Main Toolbar=16, Fonts=Suse Sans 8 / BitStream Vera Sans 8
			Screen Saver      : TheMatrix (with Trace program)
			Style             : Thin Keramik 3.0.6, GUI Effect=Menu translucent + shadow
			Window Decoration : Thin Keramik
		Desktop
			Panel		  : Hide animation fastest
			Window Behavior   : Focus Follow Mouse, Traverse windows on all desktops, Active desktop borders always active (100ms)
		Peripherals
			Mouse		  : Double-click to open files, acceleration 3x.
		Regional & Accessibility
			Keyboard Shortcuts: KDE Default for 4 modifier Keys
	Hardware - Video - Resolution - Set to 1280x1024x85Hz
	Konsole - Fonts - BitStream Vera Sans Mono 8
	Desktop - created link to ~/Documents
	KPanel - Added Applet - System Monitor
	Hosts - Added new host name - as root, edit /etc/hosts, add:
		127.0.0.1       localhost
		192.168.1.69    cerber.hell-on-earth    cerber
		192.168.1.100	phoenix.hell-on-earth	phoenix
		192.168.1.100   gryphon.hell-on-earth   gryphon
		192.168.1.102   unicorn.hell-on-earth   unicorn
		192.168.1.254   router.hell-on-earth    router
	Mount NFS share - as root, mkdir /mnt/gryphon, Edit /etc/fstab, add line (don't forget CR at end of line!):
		gryphon:/            /mnt/gryphon         nfs        wsize=8192,rsize=8192,timeo=14,intr 0 0
	Created NFS share - as root, edit /etc/exports, add:
		/home   *(rw,sync)
		/windows/C      *(ro,sync)
		/windows/D      *(ro,sync)
		
	Network - ETHO - Unex Card
		Host = cerber
		Domain = hell-on-earth
		Manual IP Address = 192.168.1.69
		Resolv = see DHCP - edit /etc/resolv.conf as follow
			nameserver = 195.238.2.21
			nameserver = 195.238.2.22
		Gateway = router IP (ie 192.168.1.254)
	Konqueror - Don't underline filename - No confirmation for trash -
	Users
		Create the following account (as root)
			useradd -m -p -c "Roch Peeters" rochpeet
			passwd rochpeet
			useradd -m -p -c "Isa Very Beautiful" isabelle
			passwd isabelle
			useradd -m -p -c "Insomnia" insomnia
			passwd insomnia
			useradd -m -p -c "MP Mail List 1" maillst1
			passwd maillst1
	QMail
		(install information from Mail-HOWTO on SuSE 6.3 CD 1)
		(Package installation from qmail site http://mirrors.kangaroot.net/qmail/rpms/var-qmail/)
		
		Installed shadow-utils-20000902-12.8.i386.rpm (thru YaST) (download from internet)
		Installed make (from SUSE 9.1 CD)
		Install inetd-2.0 (from SUSE 9.1 CD)
		Un-Installed postfix (thru YaST) (first did /etc/init.d/postfix stop)
		
		rpm -Uvh var-qmail-create-1.03-110patch_14_15.i386.rpm
		cd /usr/src/packages/SPECS
		rpmbuild -ba var-qmail_14_15.spec
		cd /usr/src/packages/RPMS/i586
		rpm -Uvh qmail-1.03-110patch_14_15.i586.rpm
		
		(afterwards, do some cleaning in ../packages/SPECS, ../packages/BUILD, ../redhad/SOURCES, etc. do a 'find' to show all files)

		Copy config files qmail/alias to /usr/qmail/alias (files must be chmod 644). Files also listed here:
			# cat .qmail-default
				insomnia
			# cat .qmail-fa487703
				rochpeet
				isabelle
			# cat .qmail-isabelle\:roch
				isabelle
			# cat .qmail-mailer-daemon
				insomnia
			# cat .qmail-peetersmichael
				baddreams
			# cat .qmail-peeters-ml1
				maillst1
			# cat .qmail-postmaster
				insomnia
			# cat .qmail-roch\:peeters
				rochpeet
				isabelle
			# cat .qmail-root
				insomnia
		Copy config files qmail/control to /usr/qmail/control (files must be chmod 644). Files also listed here:
			# cat defaultdomain
				cerber.hell-on-earth
			# cat locals
				cerber.hell-on-earth
			# cat me
				cerber.hell-on-earth	
			# cat plusdomain
				cerber.hell-on-earth
			# cat rcpthosts
				cerber.hell-on-earth
				skynet.be
			# cat virtualdomains
				roch.peeters@skynet.be:alias
				peetersmichael@skynet.be:alias
				isabelle.roch@skynet.be:alias
				peeters-ml1@skynet.be:alias
				fa487703@skynet.be:alias
		Testing qmail
			sh -cf '/var/qmail/rc &'
			echo to: mylogin | /var/qmail/bin/qmail-inject

			--> should receive a mail in the format selected in /var/qmail/boot

		Set up qmail-smtpd in /etc/inetd.conf (all on one line):
			smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail-smtpd
		  
		Add this script to /etc/init.d/ and set START & KILL alias in the right runlevel dir (rc3.d, rc5.d):
			
			(see file config/etc_init.d/qmail)
			
			cp config/etc_init.d/qmail /etc/init.d/qmail
			cd /etc/init.d/rc3.d
			ln -s "../qmail" S10qmail
			ln -s "../qmail" K14qmail
			cd /etc/init.d/rc5.d
			ln -s "../qmail" S10qmail
			ln -s "../qmail" K14qmail

			(vale of Sxx and Kxx must be adapted if necessary - typically take same as for sendmail)
			      
		killall -HUP inetd      to reset inetd configuration
  		/etc/rc.d/qmail start   to launch qmail  

	QPopper 
		update inetd.conf, add or uncomment the line
  
		pop3 stream tcp nowait root /usr/sbin/popper qpopper -s
  
		(don't know if this is mandatory)
		in /var/mail, add a symlink for each USER to its ~USER/Mailbox file. eg:
  
    			cd /var/mail
    			ln -s ~insomnia/Mailbox insomnia
    			ln -s ~isabelle/Mailbox isabelle
    			...
			(also for root)
			
			Then creates new file ~USER/Mailbox for each USER (Mailbox must be chmod 600)
			OR if a file /var/mail/USER existed, copy it first to ~USER/Mailbox before doing the symlink
  
		killall -HUP inetd    to reset inetd configuration
20040606	
	Keyboard shortcuts - Konqueror Home <-- Win-K, Win-E 
	YAST - SysConfig - Allow REMOTE Config	
        CC - Login Manager - ThinKeramik SUSE pos=100x100 - Background = crystal-rose - select previous account, focus password
20040608
	Script to mount phoenix (W2K) filesystem with Samba
	
	As root:
	
	1) Setuid root /usr/bin/smbmnt (chmod 4755 /usr/bin/smbmnt)
	
	2) Create phoenix mount point (mkdir /mnt/phoenix)
	
	3) Create both files below
	
	4) Use mntphoenix to mount, umntphoenix to unmount
	
	( example for phoenix / same files for unicorn but adapt smbshares )

	---- File /usr/local/bin/mntphoenix (own=root/grp=root/chmod 4755 - setuid root):

	#!/bin/sh
	#
	# Author: Baddreams
	#
	# Hell-on-earth local script - SH / BASH
	#
	# Mount samba file System
	
	smbhost="phoenix"
	smbuser="baddreams"
	mntpoint="/mnt"
	
	echo "Connection to $smbhost..."
	echo "login: $smbuser"
	read -s -p "password: " smbpwd
	echo ""
	
	for smbshare in "c" "d" "e" "f" "j" "k" "public"; do
  	echo -n "mounting //$smbhost/$smbshare... "
  	mkdir -p $mntpoint/$smbhost/$smbshare
  		smbmount //$smbhost/$smbshare $mntpoint/$smbhost/$smbshare -o username=$smbuser,password=$smbpwd>/dev/null && echo "Success!" || echo "Failed"
	done
	------------------ end of file ----------------------------------

	---- File /usr/local/bin/umntphoenix (own=root/grp=root/chmod 4755 - setuid root):
	#!/bin/csh
	#
	# Author: Baddreams
	#
	# Hell-on-earth local script - CSH
	#
	# Unmount samba file system
	
	
	set smbhost=phoenix
	set mntpoint=/mnt"
	
	foreach smbshare (`ls $mntpoint/$smbhost`)
  	echo "Unmounting $mntpoint/$smbhost/$smbshare"
  	smbumount $mntpoint/$smbhost/$smbshare >& /dev/null
  	rmdir $mntpoint/$smbhost/$smbshare
	end
	------------------ end of file ----------------------------------
	
20040711 rm /dev/cdrom	
         ln -s /dev/hdc /dev/cdrom
	 
20040711 YaST - Change Installation Source (dvd)
20040711 YaST - Installed Telnet service (on xinetd)

20040818 Fetchmail - updated /etc/fetchmailrc to improve handling of BCC mails
20040818 Samba - setuid smbmnt (to allow mounting of phoenix file system in mntphoenix script 

20050101-Install-FireFox 1.0 (in ~Baddreams\Documents\Linux\Downloads\FireFox\...) + Added link on Desktop

	
	
		
ToDo:
	Add Opera 7.2.29
	IS IT A PROBLEM TO SETUID ROOT SMBMNT ?