Archive for the ‘ vps ’ Category

Sometimes it’s necessary to limit traffic bandwidth from and to a container. You can do it using ordinary tc tool.

Contents

Read the rest of this entry

PPP in container

Our goal is to start the pppd daemon in a virtual machine. Then it is possible, for example, to connect to your DSL provider in a VM.

Caveat

This feature is experimental. It currently requires a version of vzctl patched with this patch.

It is also necessary to run one of these 2 kernels :

  • 2.6.27 briullov.1 or later
  • rhel5 064.4 or later

Read the rest of this entry

Use the /proc/net/dev inside a container, dump stats into a round robin database (rrd)
Read the rest of this entry

Got a problem when you install mplayer:
Checking for yasm …
Error: yasm not found, use –yasm=” if you really want to compile without
Check “config.log” if you do not understand why it failed.
Read the rest of this entry

Problem is I can’t upload directory including sub-directories and files using command-line ftp. I searched for similar problem and looks like you can’t do this using command line ftp, unless you create a script. One solution I found is the use of “lftp“.

# lftp ftp_host
user ftp_user ftp_pass
mirror source target
(download entire directory tree)
mirror -R source target
(reverse mirror; upload entire directory tree)

Usefull when transferring files between servers where you only have ftp access.