Add a cronjob without deleting all the others
cat <(crontab -l) <(echo "* * * * * command") | crontab -
Add a cronjob without deleting all the others
cat <(crontab -l) <(echo "* * * * * command") | crontab -
I’m preforming some benchmark tests on avconv in two different machines..
One is a cloud hosting plan, with a SSD disk and 512Mb of RAM, running Ubuntu 13.
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
Amount of memory limited to 256MB – Strike F1 Key to continue / F2 to run the setup utility
WTF?
I was getting somehow alarmed with that error…. but I’v realized that it started to appear after I had enable OS Install Mode on bios… so, went there and disabled it.
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?
All files
$countfiles=count(glob($path.'/*'));
just .jpg files
$countfiles=count(glob($path.'/*.jpg'));
A TCS 2013 Global Trend Study
How are companies investing in Big Data and deriving returns from it? We surveyed 1,217 companies in nine countries across the globe. Of these companies, a little more than half (643) said they had undertaken Big Data initiatives in 2012.

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
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
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
Got this…. while trying to run at with www-data user.
$ at
You do not have permission to use at.
Opened /etc/at.deny and I saw www-data user on it.
Removed it and voilá!
root@digitalwhores:/home/webroot/domain.com# su www-data $ at Garbled time