Browsed by
Category: Uncategorized

scp “command not found” CentOS 6 / Ubuntu 12

scp “command not found” CentOS 6 / Ubuntu 12

I run Ubuntu 12.04 64-bit as my local Desktop OS. I’ve run the “SCP” command multiple times to multiple machines from my own PC when I’m moving files around, but for some reason when I tried to SCP, I got the following error: dream@dream-C32A-H9:~/Downloads$ scp myfile.zip root@myserver.viviotech.net:/root root@myserver.viviotech.net’s password: bash: scp: command not found lost connection Okay… so that doesn’t make any sense. I use SCP all the time. What is *really* going on here? To find out, I ran…

Read More Read More

yum “Couldn’t resolve host ‘mirrorlist.centos.org'” in CentOS

yum “Couldn’t resolve host ‘mirrorlist.centos.org'” in CentOS

I ran into an issue recently where I could ping URL’s just fine, but when I ran the “yum update” command yum could not resolve anything. I would get error messages like the following: [root@viviotech ~]# yum -y update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was 14: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org'” Error: Cannot find a valid baseurl for repo: base After a bit of digging, and absolutely…

Read More Read More

How To Fix Windows Java Error 1723

How To Fix Windows Java Error 1723

Just recently I experienced a problem with both installing or uninstalling Java (the JRE) on a Windows 2003 system. I had to research this quite a bit and there were no clear answers anywhere, so I though I’d post here on how I was able to fix it. In my case, I was using Windows Server 2003 64-bit, but this should apply to other Windows versions as well. The error I was getting was as follows: “Error 1723. There is…

Read More Read More

BASH – Generate a Random String

BASH – Generate a Random String

In a recent project, I needed a function that would generate a random string for me. In my case, I was creating a random file name to store some data, but there are other uses as well, so I am posting the BASH code here in the hope that it will help others out ther eon the net writing BASH scripts and need a good random string function: #!/bin/bash function randomString { # if a param was passed, it’s the…

Read More Read More