Skip to content

Category: Servers

EdgeOSv1.10.6 – EdgeMax (EdgeRouter) installing vnstat to record bandwidth usage

I wanted to record how much bandwidth is being used during the month. I found these instructions to install vnstat, a traffic monitor.

  • open a ssh connection to your router
    • the credentials are the same that you use in the web admin portal
  • run the following lines to add the debian repo
    • configure
      set system package repository wheezy components 'main contrib non-free'
      set system package repository wheezy distribution wheezy
      set system package repository wheezy url http://http.us.debian.org/debian
      commit; save; exit
  • update cache
    • sudo apt-get update
  • install vnstat
    • sudo apt-get install -y vnstat vnstati
      • vnstati is a tool that creates images off of the data
  • run vnstat
    • sudo vnstat -i eth0
  • run this line to allow vnstat to start after reboot
    • ln -s /etc/init.d/vnstat /config/scripts/post-config.d/vnstat

More info can be found here:

http://tate.cx/edgeos-data-usage-monitor-using-vnstat
https://community.ubnt.com/t5/EdgeMAX-Feature-Requests/vnStat-vnStati-on-ERL/idi-p/819414

 

Leave a Comment

soyoustart – arm ufw error

If you get this error:

modprobe: ERROR: could not insert 'ip_tables': Exec format error
iptables v1.6.0: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

Run this:
$ wget http://last.public.ovh.hdaas.snap.mirrors.ovh.net/ubuntu/pool/main/l/linux-modules-armada375/linux-modules-armada375_4.5.2-4_armhf.deb
$ dpkg -i linux-modules-armada375_4.5.2-4_armhf.deb

Found on: https://www.lowendtalk.com/discussion/comment/2806769/#Comment_2806769

Leave a Comment

Reset Ubuntu password in Windows 10

I forgot my password to the Ubuntu app in Windows. Here is the way I reset it.

  • close the app if you have it open
  • open a command prompt as administrator, open ubuntu has root
    • ubuntu config –default-user root
  • you’ll be logged in as root, now change the password for your user name
    • passwd username
  • exit ubuntu
  • reset ubuntu back to your username
    • ubuntu config –default-user username
  • exit ubuntu
  • re-launch ubuntu

Got the steps here: https://askubuntu.com/questions/772050/reset-the-password-in-linux-bash-in-windows

Leave a Comment

CentOS 6 – Change System Language

I recently bought a server whose language was set to something other than English. Here is the way to change the language.

Run the following commands

 nano /etc/sysconfig/i18n

and replace with the following

LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"

Log out and log back in. You should see the change.

Leave a Comment

How To Determine Your Linux Version

To determine what version of linux you are running enter the following command.

CentOS / RedHat

cat /etc/fedora-release

Debian / Ubuntu

cat /etc/issue

or

lsb_release -a

Run the following command to determine if you are running a 32-bit or 64-bit version.

# uname -a
Leave a Comment

X2Go – Hostkey for server changed.

I installed X2Go yesterday on a Ubuntu server of mine. Of course I didn’t get my configuration right the first time 🙂 but X2Go was working 😉 . Since it was a VPS I just re-installed from scratch. However, I wasn’t able to get my X2Go windows client to work after the re-install. I received something similar to the error below.

Hostkey for server changed. The host key is now xx xx xx xx
The connection is being closed now.

After doing some Google searches I finally found something that kind of helped. They recommend deleting the “.ssh” directory but that didn’t work for me. I had to delete the “known_hosts” file under the directory “C:\Users\XXXX\ssh”, XXXX of course being your username.

You can also edit the file and just delete the line that contains the IP address your trying to connect to.

I am running Windows 7 Professional.

Leave a Comment

Registering your license for VMware ESXi 5.0

I had the hardest time finding the place to enter my license.

  1. Go to the vSphere client
  2. Click on the host
  3. Click the “Configuration” tab in the window to the right
  4. Click the “Licensed Features” link underneath “Software”, 2nd box on the 5.0 client.
  5. Click on edit in the right corner of the pane
  6. Enter your license key
Leave a Comment

Playing around with VMware ESXi 5

I just started playing around with VMware ESXi 5 which appears to be free! Yey! 🙂

You can download it at the VMware website, http://www.vmware.com/products/vsphere-hypervisor/overview.html. Don’t forget to apply for the license which is free, otherwise you get a 60-day trial.

The reason I choose VMware ESXi was because I’m pretty familiar with VMware. I’ve had their workstation as long as I can remember. I actually had a license for both Linux and windows at one point. And umm… because that’s really the only one I could use on my server, hardware restraints.  🙂

There are a few other free virtualization software packages.

  • Citrix XenServer
  • Proxmox (open source)  – does KVM and OpenVZ
  • Virtuozzo
  • VMware ESXi

 

Leave a Comment