alias histfix='history -c;rm -rf ~/.bash_history;' |
Monday, 21 November 2011
Linux : Clear bash history
Posted by
Ook
at
02:19
0
comments
Labels: Linux
Friday, 11 November 2011
Linux : zip without files names, list zip contents
zip -j - will Junk directories paths from files being added |
Posted by
Ook
at
08:24
0
comments
Labels: Linux
Friday, 8 July 2011
Linux : Larger vnc windows
Need to start the vncserver bigger - such as vncserver -geometry 1280x960 |
Posted by
Ook
at
00:53
0
comments
Labels: Linux
Linux : Get gnome in vnc
edit ~/.vnc/xstartup and change the windows manager invocation at the bottom : #twm & exec gnome-session & |
Posted by
Ook
at
00:51
0
comments
Labels: Linux
Friday, 17 June 2011
Linux : Yum - installing a specific version
To get all versions of a package in a repo * yum search --showduplicates mercurial * Then install with full name yum install mercurial-1.7.2-1.el5.rf.x86_6 |
Posted by
Ook
at
04:35
0
comments
Labels: Linux
Wednesday, 25 May 2011
Linux : Asset tag under linux
/usr/sbin/dmidecode | egrep -i 'serial|asset' |
Posted by
Ook
at
08:19
0
comments
Labels: Linux
VMWare : Getting vmplayer to stop/start by remote control
Download VMWare VIX api from http://www.vmware.com/support/developer/vix-api/ Install in linux by running bash VMware-VIX-1.10.3-368992.x86_64.bundle (needs gui) Use vmrun command eg. vmrun -T player start /local/vmware/Bangor/Bangor.vmx vmrun -T player stop /local/vmware/Bangor/Bangor.vmx |
Posted by
Ook
at
07:10
1 comments
Thursday, 5 May 2011
Oracle : Clone grid control agent
In Grid Control->Deployments->Install Agent->Clone Agent On source server in dir above the agent home zip -r agent11g_201105v1.zip agent11g Copy to target server or the OEM server Take care to pick the correct OS in the drop down, linux != linux x64! |
Posted by
Ook
at
03:19
0
comments
Thursday, 7 April 2011
Linux : Faster file transfer via ssh and tar compression
time scp ARCHIVE_01.dbf oracle@remote.server.com:/b04/volbackupnew/oradata/NEWDEV5/dataguard/test real 41m5.699s time tar cvfz - ARCHIVE_01.dbf | ssh oracle@remote.server.com "tar zxvf - --directory /b04/volbackupnew/oradata/NEWDEV5/dataguard/test " real 0m57.987s |
Posted by
Ook
at
09:23
0
comments
Wednesday, 30 March 2011
Linux : Marble Mouse Paste on Centos 5.5
Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "ExplorerPS/2" Option "Device" "/dev/input/mice" Option "Emulate3Timeout" "50" Option "Buttons" "7" Option "ZAxisMapping" "6 7" Option "Emulate3Buttons" "on" EndSection |
Posted by
Ook
at
08:31
0
comments
Labels: Linux
Tuesday, 29 March 2011
Linux : Customize Vim Colors 2
In ~/.vimrc syntax on colorscheme murphy |
Posted by
Ook
at
04:25
0
comments
Labels: Linux
Linux : Customize Vim Colors
In ~/.vimrc syntax on colorscheme ron #colorscheme desert |
Posted by
Ook
at
04:22
0
comments
Labels: Linux
Thursday, 24 March 2011
Linux : directory color in ls too dark
ls shows directories in a dark unreadable blue with a black background Change /etc/DIR_COLORS.xterm - set the DIR line to DIR 01;34 (lighter blue) |
Posted by
Ook
at
05:20
0
comments
Labels: Linux
Monday, 14 March 2011
Linux : Change runlevel
Use telinit :- |
Posted by
Ook
at
04:55
0
comments
Labels: Linux
Wednesday, 14 July 2010
Linux : Getting hardware info from the command line
dmidecode |
Posted by
Ook
at
06:30
0
comments
Labels: Linux
Friday, 30 October 2009
New squeezebox server
* Centos 5.4 * squeezeboxserver-7.4.0-1.rpm wget http://triodeplugins.googlecode.com/files/BBCiPlayer-v0.9f.zip manually install BBCiPlayer plugin - would not work auto into /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/ * vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none ONBOOT=yes TYPE=Ethernet NETMASK=255.255.255.0 IPADDR=192.168.69.240 GATEWAY=192.168.69.69 * vi /etc/resolv.conf nameserver 212.23.3.100 nameserver 212.23.6.100 * Add additional vm disk 150Gb fdisk /sdb mkfs.ext3 /sdb1 * vi /etc/fstab /dev/sdb1 /u01 ext3 defaults 0 0 * Copy all music mkdir /local/Music mkdir /local/Playlists * vi /etc/samba/smb.conf workgroup = WORKGROUP [Public] path = /local/Public writeable = yes guest ok = yes [Music] path = /local/Music writeable = no guest ok = yes [Photo] path = /local/Photos writeable = no guest ok = yes * chkconfig --level 2345 smb on * vi /etc/yum.repos.d/dag.repo [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 * vi /etc/yum.repos.d/rpmforge.repo [rpmforge] name = Red Hat Enterprise $releasever - RPMforge.net - dag mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge enabled = 1 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1 * tar xvfz VMwareTools-4.0.0-171294.tar.gz cd vmware-tools-distrib/ ./vmware-install.pl * libtorrent-0.12.0-1.el5.rf - nb. had to downgrade or no connection rtorrent-0.8.0-1.el5.rf * vi /etc/inittab id:3:initdefault: * Copy photos to /u01 * Install squid Copy squid.conf and allowed-sites * Install dnsmasq Copy dnsmasq.conf Update /etc/hosts * Install lighttpd Copy config Copy proxy.pac and link to /srv/www/lighttpd Link /u01/Photos to /srv/www/lighttpd Available at photo.steampig.co.uk/album |
Posted by
Ook
at
16:40
0
comments
Labels: Linux
Saturday, 17 October 2009
Vmware squeezecenter - now includes BBC iplayer
* Vmware workstation machine * Install Centos 5.3 dvd - Gnome desktop + server heavily cut down - dhcp, no firewall or selinux * yum install Mysql and mysql server * Setup vmware share for host resource directory * rpm install squeezecenter * Switch to static ip /etc/sysconfig/network - gateway xx.xx.xx.xx /etc/sysconfig/network-scripts/ifcfg-eth0 - BOOTPROTO=static IPADDR=xx.xx.xx.xx NETMASK=255.255.255.0 * Set up static dns /etc/resolv.conf - nameserver xx.xx.xx.xx * Setup vmware share for host music directory - ln -s from /dev/hgfs directory * Squeezecenter config - music dir, playlist dir, add iplayer and lazysearch2 plugins, disable unwanted plugins * Test with softsqueeze * Re-point squeezeboxes and customise menus - also set alarm * Increase internet radio buffer to 10 seconds Squeezecenter-Settings-Advanced-Network-Radio Station Buffer Seconds "F:\Program Files\VMware\VMware Workstation\vmware.exe" -x "G:\Iggy (Centos 5.3)\Iggy (Centos 5.3).vmx" |
Posted by
Ook
at
03:39
0
comments
Friday, 9 October 2009
Oracle : SQL Developer Data Modeller
Pros
|
Posted by
Ook
at
01:48
0
comments
Friday, 11 September 2009
Linux : add additonal disk as a logical volume
# Add new disk as a logical volume # Create partition fdisk -l fdisk /dev/sdb n-1-rtn-rtn # Create a physical volume pvcreate /dev/sdb1 pvdisplay # Create a virtual group VolGroup01 vgcreate VolGroup01 /dev/sdb1 # Get PE size from vgdisplay vgdisplay Total PE 4094 # Create a logical volume lvcreate -n vol01 -l 4094 VolGroup01 lvdisplay mkfs.ext3 /dev/VolGroup01/vol01 # Add to fstab vi /etc/fstab /dev/VolGroup01/vol01 /u01 ext3 defaults 0 0 mount /u01 |
Posted by
Ook
at
07:11
0
comments
Labels: Linux