Linux/Unix Notes

Subject Description
To capture installation proce
use script, as tee does not catch the inputs.
Execute script before you kick off the installer i.e.

$ script
Script started, file is typescript

$ time ./install.sh -i console
..
..
$ exit
exit
Script done, file is typescript

$ mv typescript install_output.log
install winbind patch cp authpam.so.1 to every server replacing
/opt/ibm/tivoli/netcool/omnibus/platform/linux2x86/module/authentication/authpam.so.1
  1. sudo su
  2. /etc/init.d/winbind restart
  3. exit
  4. sudo /etc/init.d/nco restart
Then ensure warn_pwd_expire = 14
(the default value) is in /etc/security/pam_winbind.conf
To Enable Coredumps in linux/unix run
ulimit -c unlimited You may need to be the root user to do this.
To Capture Stdout from several unix/linux commands Use script command
e.g.
  • script
    Script started, file is typescript
  • ps -wef
  • ls -ril
  • exit
    exit
    Script done, file is typescript
The output of the commands appears in the text file called "typescript"
To Encrypt and Decrypt a file in linux Use gpg
To Encrypt a file e.g.
gpg -c typescript
Enter passphrase
Created typescript.gpg an encrypted version of typescript. To decrypt the typescrypt.gpg e.g.
gpg typescript.gpg
gpg: CAST5 encrypted data
gpg: gpg-agent is not available in this session
gpg: encrypted with 1 passphrase
File `typescript' exists. Overwrite? (y/N) y
gpg: WARNING: message was not integrity protected
xvsion xterm /usr/openwin/bin/xterm -sb -sl 5000 -display xxx.xxx.xxx.xxx
To look up ip address's in solaris unix use /usr/sbin/nslookup
Test Connectivity between Servers How to test network connectivity

By Jeff Guo 20/10/2011

1. Needed package: http://nmap.org/nping/
2. Needed privilege: Must run as root.
3. Install package: rpm –ivh nping-0.5.59BETA1-1.x86_64.rpm
4. Syntax: “,” as multi-ports delimiter, “ ”(space) as multi-server delimiter.
nping --tcp -p 443,8443,1099,4457 192.168.7.7 192.168.7.9 192.168.5.7
5. Example Result:
[root@svass0000026np]# nping --tcp -p 443,8443,1099,4457 192.168.7.7 192.168.7.9 192.168.5.7

Starting Nping 0.5.59BETA1 ( http://nmap.org/nping ) at 2011-10-20 14:42 EST
SENT (0.0948s) TCP 192.168.108.165:51957 > 192.168.7.7:443 S ttl=64 id=8213 iplen=40 seq=2747543468 win=1480
------not ready
SENT (9.1053s) TCP 192.168.108.165:51957 > 192.168.7.7:8443 S ttl=64 id=8213 iplen=40 seq=2747543468 win=1480
RCVD (9.1201s) TCP 192.168.7.7:8443 > 192.168.108.165:51957 SA ttl=56 id=59593 iplen=44 seq=3586218702 win=49312 <mss 1380>

-------ready

Comment:
If a “RCVD” followed by a “SENT” means connectivity is ok;
Only a “SENT” not followed by a “RCVD” means connectivity is not ready.
Ubuntu 10.10 Error Recognising i915 symbols won't load on boot Re: failed to get i915 symbols, graphics turbo disabled error on boot
Quote:
Originally Posted by UprightMan View Post
I find myself getting exactly the same error as wujastyk; adding intel_agp before i915 doesn't seem to be fixing the problem as well.

As of yet, I haven't had any epiphanies...but I'm still fairly new to all this so I'm still relying heavily on you guys for help.
My guess is that your laptop is one of those with dual-GPU support, and BIOS sets default GPU to be the non-Intel one, which caused intel_agp and i915 failed to load.
After spending some time with modprobe man pages, I believe the following fix should work for all systems, with single or dual GPU. But again, I don't have a dual-GPU laptop, so please feedback if it works on such a system or not.

If you've updated your initramfs with i915 module, undo those changes by removing i915 from /etc/initramfs-tools/modules, and rerun 'update-initramfs -k all -u'.

Run following command,

Code:

sudo echo "softdep intel_ips pre: i915" > /etc/modprobe.d/intel-ips-dep-i915.conf

Then reboot.

The 'softdep' option tells modprobe that intel_ips module has a soft dependency on i915, meaning intel_ips can be loaded without i915, but will only provide limited functionality. With this option, modprobe will always try to load i915 before inserting intel_ips.
Last edited by x_lk; February 27th, 2011 at 05:25 PM..

Email me here simon@simonsaysbiz.com

Note: Please fill out the fields marked with an asterisk.