Archivo de la categoría: Nix

Install Apache, PHP And MySQL On CentOS 7 (LAMP)

url: http://www.howtoforge.com/apache_php_mysql_on_centos_7_lamp   1 Preliminary Note In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate. I will add EPEL-7 repo here to install latest phpMyAdmin as follows: rpm -ivh http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm

Find sum of file sizes listed in ls -l using awk

March 1, 2010 at 9:17 pm · Filed under Technology ·Tagged add, awk, linux, list, sum, unix 1 ls -l | awk ‘{ TOTAL += $5} END { print TOTAL/1024/1024 }’ With this, awk will pull field number 5 from ls -l, which is the size in bytes in most of the *nix platforms. Then… Leer más »

HP ProLiant DL980 G7 Configure-to-order Server AM451A Supports up to eight 10-Core Intel® Xeon® E7-4800 sequence processors PC3-10600R Fully Buffered DIMMs (DDR3) with 32 memory slots Support for up to 8 hot plug SFF SAS drives HP Smart Array P410i with optional Fast Backed Write Cache (FBWC) HP NC375i Integrated Quad Port Multifunction Gigabit Server… Leer más »

Solaris 11 IPS hand-on LAB – Boot environments beadm

Boot Environments Boot environments in solaris 11 are multiple images with different kernel, software applications and packages. Only one boot environment can be active at a time. We can boot into different boot environments according to our need. The command to manage boot environments in solaris is beadm. BEs are extremely useful in case of… Leer más »

Add sshd port macsox mavericks

Edit: #vi /System/Library/LaunchDaemons/ssh.plist Add:                  <key>Alternate Listeners</key>             <dict>                     <key>SockServiceName</key>                     <string>2222</string>             </dict> To: <key>Sockets</key>         <dict>                 <key>Listeners</key>                 <dict>                         <key>SockServiceName</key>                         <string>ssh</string>                         <key>Bonjour</key>                         <array>                                 <string>ssh</string>                                 <string>sftp-ssh</string>                         </array>                 </dict>                  <key>Alternate Listeners</key>             <dict>                     <key>SockServiceName</key>                     <string>2222</string>             </dict>         </dict> Unload and load… Leer más »

Linux List All Large Files

Linux List All Large Files To finds all files over 50,000KB (50MB+) in size and display their names, along with size, use following syntax: Syntax for RedHat / CentOS / Fedora Linux find {/path/to/directory/} -type f -size +{size-in-kb}k -exec ls -lh {} \; | awk ‘{ print $9 «: » $5 }’ Search or find… Leer más »

Configure VNCServer on Oracle Solaris 11

Configure VNCServer on Oracle Solaris 11 Posted on February 10, 2012 by oracletempspace   1 Vote   Now that I have a freshly-installed Oracle Solaris 11 server, I need to be able to remotely run and access installation media/menus that have graphical elements (GUI). One of the best ways to do this is via a VNC… Leer más »

openvpn username password auth

edit /etc/openvpn/server.conf CENTOS X64 # Username and Password authentication. client-cert-not-required plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so login RASPBERRY # Username and Password authentication. client-cert-not-required plugin /usr/lib/openvpn/openvpn-auth-pam.so login Also script for firewall cat firewall-openvpn-rules.sh #!/bin/sh iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j SNAT –to-source 11.22.33.44 11.22.33.44 you RPI address Add pre-up /etc/firewall-openvpn-rules.sh We want to add a… Leer más »

install ftp solaris 11

#pkg install pkg://solaris/service/network/ftp #pkg install pkg://solaris/network/ftp #svcadm enable ftp

Solaris 11 network install without DHCP SPARC

1st create install service (running solaris 11 sparc ) installadm create-service -a sparc -n s11-sparc *********************************** Image path: /export/auto_install/s11-sparc Service discovery fallback mechanism set up Creating SPARC configuration file Refreshing install services Warning: mDNS registry of service s11-sparc could not be verified. Creating default-sparc alias Service discovery fallback mechanism set up Creating SPARC configuration file… Leer más »