All posts by PF

Some interesting readings for this weekend

 

Best Practice: vCPUs per physical core 

http://serverfault.com/questions/504626/best-practice-vcpus-per-physical-core

Compile FFmpeg on Ubuntu, Debian, or Mint

http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide

FFmpeg Installation for Ubuntu

http://wiki.razuna.com/display/ecp/FFmpeg+Installation+for+Ubuntu

How to install all existing media codecs?

http://askubuntu.com/questions/171026/how-to-install-all-existing-media-codecs

OpenVZ on Ubuntu 12.04 (experimental)

http://www.janoszen.com/2013/06/04/openvz-on-ubuntu-12-04-experimental/

 

Fresh installation of Ubuntu 12.04.3 LTS – fail to login

I was having some troubles trying to make the first login on my Ubuntu Server…

No root, no root password… even the username that i’v created while setting it up wasn’t working… eventually after some 20 times trying it worked….. funny!

Root Password for Ubuntu Fresh Installation? There isn’t.

sudo

is the solution.

Read more at
https://help.ubuntu.com/community/RootSudo
https://help.ubuntu.com/lts/serverguide/user-management.html

 

Does your cpu supports virtualization?

This is how you check it

egrep '(vmx|svm)' --color=always /proc/cpuinfo

If you get vmx (intel) or svm – (amd) it does.

root@digitalwhores:/home# grep --color vmx /proc/cpuinfo
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl pni vmx cx16 popcnt hypervisor lahf_lm

XEN kernel? try

cat /sys/hypervisor/properties/capabilities

 

My PowerEdge doesn’t?! f*ck!

 

INTEL:

VT-x, shows in /proc/cpuinfo as the vmx flag. (grep vmx /proc/cpuinfo)

AKA Vanderpool

See Wikipedia’s article on x86 virtualization, for a list of processors that include it.

http://en.wikipedia.org/wiki/X86_virtualization#Intel_Virtualization_Technology_for_x86_.28Intel_VT-x.29 Continue reading Does your cpu supports virtualization?

ffmpeg 2.0

I’m having problems with avconv, especially exporting the video properties to json

“Failed to set value ‘json’ for option”

I was able to create json files with ffmpeg, but since ubuntu uses avconv and ffmpeg is an aliase of avconv… i’m not able to create json files…. be struggling with it for 4 days.

This is how I’v installed FFMPEG 2.0 on my Ubuntu 13.

$ wget -c www.ffmpeg.org/releases/ffmpeg-2.0.tar.gz
$ tar -xzvf ffmpeg-2.0.tar.gz
$ cd ffmpeg-2.0
$ ./configure
$ make
$ sudo make install

If you start to have problems while trying to run ./configure…

apt-get install gcc

You will probably also need to install make

root@digitalwhores:/home/ffmpeg/ffmpeg-2.0# make
The program 'make' is currently not installed. You can install it by typing:
apt-get install make
root@digitalwhores:/home/ffmpeg/ffmpeg-2.0# apt-get install make

An them go to  ./configure from the initial instructions…

sudo ./configure --disable-yasm
make

FFMPEG 2.0

root@digitalwhores:/home/ffmpeg/ffmpeg-2.0# ./ffmpeg
ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
 built on Sep 22 2013 10:23:36 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)

And now! remove the old ffmpeg/avconv!
Hasta la vista!

sudo apt-get remove ffmpeg
sudo apt-get autoremove

 

ffmpeg-2.0/tests/ref/fate/ffprobe_json

sudo: add-apt-repository: command not found

 My Ubuntu was missing apt-add-repositoy.
This is was I solved if…

Has a newbie I’v started to run apt-get install software-properties-common, but has you can see I got some erros

root@digitalwhores:/home/# apt-get install software-properties-common
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following packages were automatically installed and are no longer required:
 libdirac-encoder0 libmp3lame0 libopencore-amrnb0 libopencore-amrwb0 libopenjpeg2 libvo-aacenc0 libvo-amrwbenc0 libx264-123 libxvidcore4
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
 python3-software-properties unattended-upgrades
Suggested packages:
 bsd-mailx
The following NEW packages will be installed:
 python3-software-properties software-properties-common unattended-upgrades
0 upgraded, 3 newly installed, 0 to remove and 27 not upgraded.
Need to get 28.5 kB/55.0 kB of archives.
After this operation, 549 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://archive.ubuntu.com/ubuntu/ raring-updates/main python3-software-properties all 0.92.17.1
 404 Not Found [IP: 91.189.91.14 80]
Err http://archive.ubuntu.com/ubuntu/ raring-updates/main software-properties-common all 0.92.17.1
 404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/python3-software-properties_0.92.17.1_all.deb 404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-common_0.92.17.1_all.deb 404 Not Found [IP: 91.189.91.14 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Always run the update, before any install!!

apt-get update

And then install the package.

apt-get install software-properties-common

It worked!

root@digitalwhores:/home# apt-add-repository
 Error: need a repository as argument