/ - rtt - IT Resource

  • css how to format code in the code tag


    code {     background: #f4f4f4;     border: 1px solid #ddd;     border-left: 3px solid #f36d33;     color: #666;     page-break-inside: avoid;     font-family: monospace;     font-size: 15px;     line-height: 1.6;     margin-bottom: 1.6em;     max-width: 100%; &nb........
  • css br with extra blank line


    The problem I was having is that a css template I was using was causing br's to have an empty line in between which is very undesirable especially when displaying code. br {    display:none;    margin: 0px;    height: 0px; } Using CSS code like above will fix it.   You technically shouldn't need the margin or height either.........
  • Proxmox understanding the directory structure and why an NFS datastore appears to be missing files/isos


    Proxmox at the root of your storage creates and "images" and "templates/iso" folder for VM images and iso's respectively.  It ignores files in any other location.........
  • VMWare 6.7 VCSA VSphere ESXi Management SSO Install Guide on Linux using the CLI


    #mount the VCSA DVD mount /dev/sr0 /mnt/cd #alternatively you could mount the iso directly mount -o loop vcsa.iso /your/mount/path #for this purpose we are using the CLI installer on Linux cd /mnt/cd/vcsa-cli-installer/lin64 #no it's not going to be that easy you can't just run vcsa-deploy like that you need to use a template or configured .json file ./vcsa-deploy Usage: vcsa-deploy [-h] [--version] [--supported-deploymen........
  • vbulletin 4.2.5 after upgrading from 3.6 white screen fatal php errors


    The code may lead you to believe you have an incompatible template but if you are not trying to use an old template currently that is not the issue.  I actually deleted all 3.x style templates to make sure. What the issue is, is old plugins that are not compatible but Vbulletin does not seem to account for this except that you'll see a fatal PHP error.  You should disable all plugins and then enable one by one until you find the one that is causing the issue. &........
  • Linux how to reformat html file code solution


    The solution is simply "tidy"/Tidy-HTML.  It will take your poorly formatted HTML code (and I mean files that span just a few lines that are unreadable) and fix it up. Note the command below does everything in place.  *Make sure you take a backup of all .html files* It also seems to break html5 code/templates so beware. tidy -im yourfile.html An automated way in bash:........
  • grubby fatal error: unable to find a suitable template solution Centos


    vzkernel-2.6.32-042stab116.2.x86_64.rpm                                                                           &n........
  • Ubuntu/Debian OpenVZ Template Problems No Networking and SSH not starting


    It all comes down to a bug essentially where you are running an older kernel that doesn't support the newer Debian templates.  The solution is to update your OpenVZ kernel. Here are some symptoms of the problem/lack of kernel support:   Ubuntu Template 12.04 requires a manual network start: service networking start sshd will not start: /usr/sbin/sshd PRNG is not seeded mknod /dev/random c 1 8........
  • bash script linux how to do a wildcard string comparison


    if [[ "$templatesource" == *windows* ]]; then  partition=/dev/sda2 fi   The * before and after * windows will match this "Ihavelotsofwindowshere" Of we could have used "windows*" and anything that starts with "windows" will be matched etc...........
  • kvm how to add secondary cdrom drive


    This is useful if you are installing Windows and need virtio but of course Windows needs the virtio driver which is on a second iso. This is the line of code you would add to your kvm startup script and then you get this iso as  second cdrom you can browse to for your Windows install of virtio driver's or whatever other use you need it for. -drive file=/kvmtemplates/virtio-win-0.1-94.iso,media=cdrom........
  • Openvz 2014-08-12T19:05:55-0400 vzctl : CT 391801 : Unable to start init, probably incorrect template 2014-08-12T19:05:55-0400 vzctl : CT 391801 : Container start failed


    2014-08-12T19:05:55-0400 vzctl : CT 391801 : Unable to start init, probably incorrect template 2014-08-12T19:05:55-0400 vzctl : CT 391801 : Container start failed This was caused by trying to run a 64-bit template on a 32-bit kernel hostnode which is obviously impossible. The solution is to use a 32-bit template or upgrade the hostnode to 64-bit.........
  • 2CO/2Checkout how to create recurring payment subscription button dynamically


    It was hard to find this as I find most online payment processors don't just put the basic information in plain view. Remember to set your sid (your seller id).  The below can easily be turned into a scripted PHP template to integrate into your own custom or existing payment solution. http://help.2checkout.com/articles/How_to/How-to-Sell-Recurring-Products-with-2Checkout/........
  • cPanel Find/Set Main DNS Servers for Template Howto


    Go to: "Server Configuration" -> Basic cPanel & WHM Setup Scroll to: "Nameservers" (at the bottom) From there you can set the names of the nameserver and their IPs. It's very weird and confusing that nothing under IP Functions/DNS has or links to this.........
  • bash heredoc howto example


    template=$(cat <<SETVAR stuff here stuff there it could be a template for a config file SETVAR )    ........
  • bash script howto use heredocand assign to a variable and write to a file


    <p><code>zonetemplate=$(cat &lt;&lt;</code></p> <p><code>info here<br /> </code></p> <p><code>other things here<br /> </code></p> <p><code>SETVAR)</code><br /> &nbsp;</p> <p>The above is all you need, note that if you have variables you need to escape the $ with a so you then have $ otherwise the variables will be substituted which is probably often not what........
  • KVM/QEMU Base/Template Images and the power they provide


     qemu-img create -b centos.5-8.x86.20120308.qcow2 -f qcow2 ../kvmguests/25000-centos5.8x86.qcow2 Formatting '../kvmguests/25000-centos5.8x86.qcow2', fmt=qcow2, backing_file=centos.5-8.x86.20120308.qcow2, size=10485760 kB -b the source/base image -f format is qcow2 and the location of the destination image What is so special about this?  It's even quicker than creating a template with OpenVZ but this is an actual OS. It saves time a........
  • xen how to resize an image properly


    The best way I could figure out is to use another guest of some sort to do this, while assigning the disk that needs to be resized to the same guest. So say we have /dev/xvda as the guests drive and we've booted it up. We also have /dev/xvdb (this is going to be the image/disk to be resized). In this case it's based on an ext3/4 image. Run e2fsck on it to ensure there are no filesystem errors. e2fsck /dev/xvdb........
  • Joomla Error - JFolder::create: Could not create directory


    JFolder::create: Could not create directory Plugin Install: Failed to create directory:   This can occur when trying to upload content or when installing themes/templates. It's usually not a permissions issue per say but doing a 777 (which is very insecure) will fix it.  But the real problem solution is that the owner of the files is different than the owner of the Apache process/server. Eg. if your Apache is running as user "apache........
  • Ubuntu 10 Nvidia Drivers Not Updated After Kernel Update Solution/How-To Manually Rebuild nvidia kernel modules for Ubuntu


    I dread updating the kernel and rebooting to find the Ubuntu graphics aren't working and you have to manually intervene.   This is usually because Ubuntu for whatever reason didn't update the drivers you need (eg. the manually compiled Nvidia Kernel driver that MUST be recompiled for each and every kernel update unfortunately). The most common reason may be that "linux-source" hasn't been installed automatically on my system.  I tried to manually reinstall the........
  • Virtualbox How To Clone VM/Container VDI file


    You can't just do a straight copy of the VDI image of your virtual machine because there is a unique UUID, well I believe you can and then you can create a new UUID manually (at least you could with VMWARE) but to keep it clean just use this method: VBoxManage clonevdi /path/to/your.vdi outputname.vdi 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% That's all there is to it, just wait for it copy and you can th........
  • PayPal Solution - Error Detected Error Message We were unable to decrypt the certificate id. We were unable to decrypt the certificate id.


    Error Detected........
  • Yahoo Mail (email) DNS Server Out Of Date Problems


    I don't expect this to be solved soon but some of Yahoo's DNS servers are out of whack.  I changed the IPs of some nameservers of some domains and now most Yahoo users can't e-mail to those domains! As you can see below by the "No MX or A records for mychangedomain.com", now Yahoo's DNS/mailserver DNS cache is wrong.  You would think they would at least have cached the old incorrect records, but instead for some reason their DNS cache has no entry and doesn't seem........
  • yum in Centos 5/Xen halts and exits suddenly


    yum exits in the middle The problem is this VPS seems to be an OpenVZ template from HyperVM.  The only way to make it work was to disable i386 packages since this was an x64 kernel.  That shouldn't be necessary but it was the only way to make yum stop quitting after the first package or two.  I couldn't find any issue by checking the logs either. echo y|yum install vim-minimal telnet expect jwhois net-tools slocate iptables elinks gawk L........
  • Windows XP How To Edit/Find Recent Documents and "File -> New" Templates to create New Word Document, Text/Notepad, Excel etc...


    All you have to do is browse to:   C:Documents & SettingsYourUserName and you'll see the following:   Inside "My Recent Documents" are of course shortcuts to the most recent documents you opened Inside "SendTo" is your sendto, you could edit that to Send a file to a network destination, your Flash Drive........
  • Latest Articles

  • How Does Cisco CUCM (Cisco Unified Communication Manager) Work?
  • What DNS Options Does Active Directory Offer in Windows Server 2008,2012,2016 ?
  • syntax error, unexpected T_SL in PHP Solution
  • grep regular expression match number range between specific numbers
  • bash how to print out lines of text within a range from the first occurrence
  • bash script how to to check LAN computers for open ports
  • MySQL Using mytop Debug Source of High IO and Slow Performance
  • How To Mathematically Convert and Calculate Binary Value To Decimal Value
  • systemd management using systemctl and journalctl to check systemd logs
  • css how to format code in the code tag
  • css br with extra blank line
  • What is /dev/pts and why do we need it in Linux?
  • Linux What is umask (user mask) for file and directory creation permissions and how to calculate umask and change the defaults
  • Linux Permissions and Groups Real Usecase for Group Access
  • Centos 7 python34 how to install the gi library
  • Centos 7 - Convert Minimal to Graphical GUI GNOME or KDE Desktop
  • AMD Set Fan Speed and Other Powerplay Memory/CPU Timings with a Linux script
  • Ethereum Mining Claymore Nanopool Error
  • genisoimage errors with long filenames and deep directory structures
  • Linux Kernel USB Export Errors