Archivo del Autor: carlosap

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 »

dosbox win311 network

Installing Windows 3.1 in DOSBox is pretty simple. If you use Megabuild, you can also browse the Internet by loading a ne2000 packet driver and installing Trumpet WinSock in Windows install first winpcap for windows in dosbox run: realnic 4 ne2000.com 0x65 3 0x300 winpkt 0x65 Before starting Windows. Don’t install MS TCP/32, that won’t… 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 »

How to Setup and Configure an OpenVPN Server on CentOS 6 – 7

How to Setup and Configure an OpenVPN Server on CentOS 6 (update centos 7) http://www.unixmen.com/setup-openvpn-server-client-centos-6-5/ Tagged In: CentOS, Miscellaneous, VPN Introduction This article will guide you through the setup and configuration of OpenVPN server on your CentOS 6 cloud server. We will also cover how to configure your Windows, OS X, or Linux client to… Leer más »