Skip to main content

Home/ ProGauge SCADA/ Group items tagged file

Rss Feed Group items tagged

Kevin Mershon

ssh-keygen - Linux Command - Unix Command - 0 views

  • -e This option will read a private or public OpenSSH key file and print the key in a `SECSH Public Key File Format' to stdout. This option allows exporting keys for use by several commercial SSH implementations.
  • -e This option will read a private or public OpenSSH key file and print the key in a `SECSH Public Key File Format' to stdout. This option allows exporting keys for use by several commercial SSH implementations.
  •  
    "-e This option will read a private or public OpenSSH key file and print the key in a `SECSH Public Key File Format' to stdout. This option allows exporting keys for use by several commercial SSH implementations. "
Kevin Mershon

Marc Palmer's Blog » Excluding files from a WAR with Grails - the right way - 0 views

  • // Remove the JDBC jar before the war is bundled grails.war.resources = { stagingDir -> delete(file:"${stagingDir}/WEB-INF/lib/jdbc2_0-stdext.jar") }
  • // Remove the JDBC jar before the war is bundled eventWarStart = { warName -> if (grailsEnv == "production") { println "Removing JDBC 2 Extensions JAR" Ant.delete( file:"${stagingDir}/WEB-INF/lib/jdbc2_0-stdext.jar") } }
Kevin Mershon

Re: [monit] Monit 5.0.2 question - 0 views

  • The problem is that there is no reliable way how to get correct FQDN. There is unreliable interface getdomainname() which returns on many platforms empty string or often default domains like "localdomain", "mydomain" when no other specific domain was set during system installation. The getdomainname() takes the value on some platforms from sysctl, on other platforms from file in /etc/ and on other platforms it's completely ignored. The name service lookup is not reliable as well - it depends on how the name service was set (usually NSS switch uses local files first which often have the shortname in front of longname for the given IP address and thus return often shortname first).
  • set mailserver foo.bar.baz using hostname "my.monit.host"
Kevin Mershon

Firewall blocking NFS even though ports are open - 0 views

  • 1. Create the file "/etc/sysconfig/nfs" and add the following contents: STATD_PORT=4001 LOCKD_TCPPORT=4002 LOCKD_UDPPORT=4002 MOUNTD_PORT=4003 2. Append the following to the file "/etc/services": rquotad 4004/tcp # rpc.rquotad tcp port rquotad 4004/udp # rpc.rquotad udp port 3. Restart the nfs services:
  • Open up the following ports (tcp and udp) on the Fedora firewall. Do this either using the "Security Level" app in "System Settings" or using the command line iptables command (think it's in /sbin/): 111:tcp, 111:udp, 2049:tcp, 2049:udp, 4001:tcp, 4001:udp, 4002:tcp, 4002:udp, 4003:tcp, 4003:udp, 4004:tcp, 4004:udp
  • edit Code: /etc/sysconfig/nfs uncomment the default ports: Code: LOCKD_TCPPORT=32803 LOCKD_UDPPORT=32769 MOUNTD_PORT=892 STATD_PORT=662 Add those ports to your firewall rules: edit Code: /etc/sysconfig/iptables Code: # NFS -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 662 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 662 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 892 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 892 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 2049 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 2049 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 32803 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 32803 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 32769 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 32769 -j ACCEPT Restart the services: Code: /etc/init.d/iptables restart /etc/init.d/nfs restart /etc/init.d/nfslock restart
Kevin Mershon

Linux Static IP Configuration - Linode Library - 0 views

  • Create the following file if necessary: File: /etc/sysconfig/network/routes # Destination Gateway Netmask Device 66.246.75.0 0.0.0.0 255.255.255.0 eth0
  • 0.0.0.0 12.34.56.1 0.0.0.0 eth0
Kevin Mershon

File format - Vim Tips Wiki - 0 views

Kevin Mershon

OpenSUSE 11.4 hangs on boot when installed as XenServer guest - 0 views

  • Ok great! I think I have a solution. For me this reduces the bug from 1 in 5 times, to around 1 in 1000. I still see the bug but this helps a bunch: ======== My Almost 100% Solution!! ======== Edit /etc/inittab. Comment out all of the normal tty's (they are unused in PV mode). For example: Code: #1:2345:respawn:/sbin/mingetty --noclear tty1 #2:2345:respawn:/sbin/mingetty tty2 #3:2345:respawn:/sbin/mingetty tty3 #4:2345:respawn:/sbin/mingetty tty4 #5:2345:respawn:/sbin/mingetty tty5 #6:2345:respawn:/sbin/mingetty tty6 Near the end of the file, there (may) should be a cons entry. Comment it out as well Code: #cons:12345:respawn:/sbin/smart_agetty -L 42 console add this line to the end of inittab: Code: co:2345:respawn:/sbin/agetty xvc0 9600 vt102 From XenCenter: Right click on the VM, click Startup Options. Replace all the text in OS Boot Parameters with this: Code: xencons=xvc console=xvc0
Kevin Mershon

Installing XenServer Tools on Ubuntu 10.04 - 0 views

  • Create a VM from the Other install media template
  • Attach the Ubuntu 10.04 ISO to the DVD drive of the VM
  • Start the VM
  • ...19 more annotations...
  • At the disk partitioning stage make sure to replace Ext4 with Ext3, or create a specific boot partition with Ext3
  • Select at least the OpenSSH server package to be able to log in to the VM remotely
  • Finish installation and boot the VM
  • Connect to the VM using SSH
  • sudo cp /etc/init/tty1.conf /etc/init/hvc0.conf sudo vi /etc/init/hvc0.conf
  • Replace all occurrences of tty1 with hvc0
  • Read /boot/grub/grub.cfg
  • Copy the contents of menuentry near the bottom to a temporary text file, to be used as input for the makepv.sh script that we will use later on menuentry 'Ubuntu, with Linux 2.6.32-21-server' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,1)' search --no-floppy --fs-uuid --set 02899ea9-1876-4e7b-8ef8-2b09b598cedb linux /boot/vmlinuz-2.6.32-21-server root=UUID=02899ea9-1876-4e7b-8ef8-2b09b598cedb ro quiet initrd /boot/initrd.img-2.6.32-21-server }
  • Make special note of /boot/vmlinuz…, root=UUID=… and /boot/initrd.img…
  • Shutdown the VM
  • Connect to the XenServer host with SSH
  • Run the makepv.sh script, replacing my-vm-name with the actual name of your VM
  • Boot the VM and log in with SSH
  • In XenCenter, attach xs-tools.iso to the DVD drive of the VM
  • sudo mount /dev/cdrom1 /mnt sudo dpkg -i /mnt/Linux/xe-guest-utilities_5.5.0-466_amd64.deb sudo umount /mnt
  • In XenCenter, detach xs-tools.iso from the DVD drive of the VM (this ensures that XenServer does not complain about too many bootable devices)
  • Reboot the VM and log in with SSH
  • sudo update-rc.d -f xe-linux-distribution remove sudo update-rc.d xe-linux-distribution defaults
  • Reboot the VM for the last time
Kevin Mershon

OpenSUSE 11.4 hangs on boot when installed as XenServer guest - 0 views

  • Edit /etc/inittab. Comment out all of the normal tty's (they are unused in PV mode). For example: Code: #1:2345:respawn:/sbin/mingetty --noclear tty1 #2:2345:respawn:/sbin/mingetty tty2 #3:2345:respawn:/sbin/mingetty tty3 #4:2345:respawn:/sbin/mingetty tty4 #5:2345:respawn:/sbin/mingetty tty5 #6:2345:respawn:/sbin/mingetty tty6
  • Near the end of the file, there (may) should be a cons entry. Comment it out as well Code: #cons:12345:respawn:/sbin/smart_agetty -L 42 console
  • add this line to the end of inittab: Code: co:2345:respawn:/sbin/agetty xvc0 9600 vt102
  • ...1 more annotation...
  • From XenCenter: Right click on the VM, click Startup Options. Replace all the text in OS Boot Parameters with this: Code: xencons=xvc console=xvc0
Kevin Mershon

Gnome Shell Left-Handed Mouse Pointer - FedoraForum.org - 0 views

  • Create a directory called 'default' in ~/.icons then create a file called 'index.theme' with the following: [Index Theme] Name = Default Inherits = your-theme-name Where 'your-theme-name' is the name of the cursor theme you want to use (You'll have to change it if you change your cursor theme with gnome-tweak-tool again)
1 - 12 of 12
Showing 20 items per page