disable GUI boot
update-rc.d -f gdm3 remove
gdm3 alternativen: kdm, xdm, …
start GUI after bootup:
startx
enable GUI:
update-rc.d -f gdm3 defaults
disable GUI boot
update-rc.d -f gdm3 remove
gdm3 alternativen: kdm, xdm, …
start GUI after bootup:
startx
enable GUI:
update-rc.d -f gdm3 defaults
convert the .VDI into a raw image
VBoxManage clonehd --format RAW VirtualMachine.vdi VirtualMachine.img
mount and copy data
mount -t ext3 -o loop,r VirtualMachine.img /mnt/
Abhängigkeiten
build-essentials cmake
VLC Compilen
(make auf 2kernen laufen lassen: make -j 2 ) (make auf 3kernen laufen lassen: make -j 3 ) (make auf 4kernen laufen lassen: make -j 4 )
cd /usr/local/src/ wget http://download.videolan.org/pub/videolan/vlc/2.0.3/vlc-2.0.3.tar.xz tar xvJf vlc-2.0.3.tar.xz
cd /usr/local/src/vlc-2.0.3/contrib/src/ ../bootstrap make
cd /usr/local/src/vlc-2.0.3/
./configure --enable-run-as-root --enable-x264 \ --enable-merge-ffmpeg --enable-live555 \ --enable-dvbpsi \ --with-contrib=/usr/local/src/vlc-2.0.3/contrib/x86_64-linux-gnu
make make install
SAT Empfang und per HTTP bereitstellen auf Port 8000
/usr/local/bin/cvlc -vvvv dvb-s:// --dvb-frequency $FREQUENZ --dvb-srate 27500000 --dvb-satno 1 --dvb-polarization=H --dvb-adapter 2 --dvb-caching=20000 --ttl 100 --program=$PROGRAMM --sout #transcode{}:std{access=http,mux=ts,dst=:8000}
Per HTTP Holen, nach h264 konvertieren und wieder per HTTP auf Port
8001 bereitstellen
cvlc -vvv http://127.0.0.1:8000 --http-reconnect --sout #transcode{venc=x264{keyint=60,profile=main},vcodec=x264,vb=1500,acodec=mp4a,ab=96,channels=2,samplerate=48000}:std{access=http,mux=ts,dst=:8001}
Geht auch in einem Schritt
/usr/local/bin/cvlc -vvvv dvb-s:// --dvb-frequency $FREQUENZ --dvb-srate 27500000 --dvb-satno 1 --dvb-polarization=H --dvb-adapter 2 --dvb-caching=20000 --ttl 100 --program=$PROGRAMM --sout #transcode{venc=x264{keyint=60,profile=main},vcodec=x264,vb=1500,acodec=mp4a,ab=96,channels=2,samplerate=48000}:std{access=http,mux=ts,dst=:8000}
Einfach folgende Pakete installieren:
aptitude install qemu-kvm libvirt-bin virtinst libvirt-clients virt-manager virsh
aptitude install qemu-kvm libvirt-bin virt-manager virsh virtinst
Den/Die Benutzer der Gruppe libvirt hinzufügen, welche qemu-kvm verwenden dürfen sollen
adduser <Benutzername> libvirt
in der Gui virt-manager starten oder in der Konsole (z.B. über SSH) virsh/virtinst verwenden
default Ordner für ISO images:
/var/lib/libvirt/images/
System erstellen auf der Console
virt-install --hvm --name VirtualMachineName --ram 512 --nodisks --livecd --vnc --cdrom /path/to/iso/debian-7.0.0-kfreebsd-amd64-netinst.iso --network network:default
dd if=/dev/zero of=/mnt/myloopfile.img bs=1G count=40 # 40 GB File losetup /dev/loop0 /mnt/myloopfile.img mkfs.ext4 /dev/loop0 mount /dev/loop0 /mnt/loopverzeichnis
mkdir -p /mnt/ram sudo mount -t tmpfs -o size=1024M tmpfs /mnt/ram
Split:
split -b1m file
Merge:
cat x* >file
Used:
Connect Sensor-Pin1 to +5V
Connect Sensor-Pin2 to Digital In 2
Connect Sensor-Pin4 to GND
Connect Sensor-Pin1 with a 10K resistor to Sensor-Pin2
Programm Used (Combination of WebServer and DHT Example):
/*
Web Server
A simple web server that shows the value of the analog input pins.
using an Arduino Wiznet Ethernet shield.
Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13
* Analog inputs attached to pins A0 through A5 (optional)
created 18 Dec 2009
by David A. Mellis
modified 4 Sep 2010
by Tom Igoe
*/
#include
#include
// Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
#include "DHT.h"
#define DHTPIN 2 // what pin we're connected to
// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302)
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
// Connect pin 1 (on the left) of the sensor to +5V
// Connect pin 2 of the sensor to whatever your DHTPIN is
// Connect pin 4 (on the right) of the sensor to GROUND
// Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor
DHT dht(DHTPIN, DHTTYPE);
// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,1, 177);
// Initialize the Ethernet server library
// with the IP address and port you want to use
// (port 80 is default for HTTP):
EthernetServer server(80);
// Request
int Request; // any function will see this variable
void setup() {
// start the Ethernet connection and the server:
Ethernet.begin(mac, ip);
server.begin();
// Serial.begin(9600);
// Serial.println("DHTxx test!");
// Request
Request = 0;
// DHT
dht.begin();
}
void WEBloop()
{
// listen for incoming clients
EthernetClient client = server.available();
if (client) {
// an http request ends with a blank line
boolean currentLineIsBlank = true;
while (client.connected()) {
if (client.available()) {
char c = client.read();
// if you've gotten to the end of the line (received a newline
// character) and the line is blank, the http request has ended,
// so you can send a reply
if (c == '\n' && currentLineIsBlank) {
// send a standard http response header
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();
// output the value of each analog input pin
//for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
//client.print("analog input ");
//client.print(analogChannel);
//client.print(" is ");
//client.print(analogRead(analogChannel));
//client.println("
");
//}
// Reading temperature or humidity takes about 250 milliseconds!
// Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
float h = dht.readHumidity();
float t = dht.readTemperature();
// check if returns are valid, if they are NaN (not a number) then something went wrong!
if (isnan(t) || isnan(h)) {
// Serial.println("Failed to read from DHT");
//
client.print("Failed to read from DHT");
client.println("
");
} else {
// Serial.print("Humidity: ");
// Serial.print(h);
// Serial.print(" %\t");
// Serial.print("Temperature: ");
// Serial.print(t);
// Serial.println(" *C");
//
client.print("Request: ");
//client.println(random(1000));
Request = Request + 1;
client.println(Request);
//
client.print("Humidity: ");
client.print(h);
client.print(" %\t");
client.print("Temperature: ");
client.print(t);
client.println(" *C");
client.println("
");
}
break;
}
if (c == '\n') {
// you're starting a new line
currentLineIsBlank = true;
}
else if (c != '\r') {
// you've gotten a character on the current line
currentLineIsBlank = false;
}
}
}
// give the web browser time to receive the data
delay(1);
// close the connection:
client.stop();
}
}
void loop() {
//DHTloop();
WEBloop();
}
void DHTloop() {
// Reading temperature or humidity takes about 250 milliseconds!
// Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
float h = dht.readHumidity();
float t = dht.readTemperature();
// check if returns are valid, if they are NaN (not a number) then something went wrong!
if (isnan(t) || isnan(h)) {
Serial.println("Failed to read from DHT");
} else {
Serial.print("Humidity: ");
Serial.print(h);
Serial.print(" %\t");
Serial.print("Temperature: ");
Serial.print(t);
Serial.println(" *C");
}
}
Debian:
aptitude install make automake gcc g++ kernel-package fakeroot libncurses-dev kernel-source-`uname -r` linux-headers-`uname -r`
or:
aptitude install build-essential
Fedora:
su - yum install make automake gcc gcc-c++ kernel-devel
of:
su - yum groupinstall "Development Tools" "Development Libraries"
– download and install Java Runtime Environment (JRE)
– download and install the C/C++ Compiler CygWin (FULL install)
– download and extract Eclipse IDE
– add “C:\cygwin\bin” to your PATH environment variable
– start Eclipse and create HelloWorld Test Project and compile 😀