Posts mit dem Label Ubuntu werden angezeigt. Alle Posts anzeigen
Posts mit dem Label Ubuntu werden angezeigt. Alle Posts anzeigen

Mittwoch, 29. Juli 2015

Fotos / Daten retten SD-Card, USB-Stick

 quelle: https://forum.ubuntuusers.de/topic/geloeschte-bilder-von-sd-card-wiederherstelle/


Zuerst solltest du dir von deiner Speicherkarte ein Image machen.
An der Konsole findest du mit mount heraus wo deine Speicherkarte eingebunden ist.

z.B. /dev/sda1 /media/USB-Stick

Ein Image erzeugst du mit dd if=/dev/sda1 of=/tmp/usb_image
 
Jetzt kannst du mit dem Image testen, ohne die Daten auf der Speicherkarte zu gefährden.

Als nächstes installierst du dir das Programm foremost. http://foremost.sourceforge.net/
Es ist aber auch über Synaptics zu installieren.

Mit foremost jpg -o /tmp/bilder -i /tmp/usb_image

wird die Imagedatei nach Bildern des Typs jpg durchsucht.
Das Resultat wird in dem Ordner /tmp/bilder abgespeichert.

Wenn du den Dateityp jpg weglässt versucht das Programm alle ihm bekannten Dateitypen herzustellen.



Sonntag, 31. Mai 2015

How To Install VirtualBox 4.3. On Ubuntu 14.04

 (c) http://www.n00bsonubuntu.net/content/install-virtualbox-ubuntu-14-04/

How To Install VirtualBox 4.3. On Ubuntu 14.04

Here is a guide to install VirtualBox and the VirtualBox extension pack. I will also show you how to add your username to the vboxusers group to enable the USB support.

VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL) version 2. See “About VirtualBox” for an introduction.


To install VirtualBox follow these steps:

Press the SuperKey and type: software.
In the search results click on: Software & Updates
Click on the Other Software tab
Click on the Add… button
Copy + paste the following line to the APT line: field:
deb http://download.virtualbox.org/virtualbox/debian saucy contrib
Click on the add Add Source button
Enter your password
Click on the Authenticate button
Click on the Reload button
Close the window

Now open a terminal window (press Ctrl+Alt+T) and copy+paste the following lines:
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

sudo apt-get update && sudo apt-get install virtualbox-4.3 -y

wget http://download.virtualbox.org/virtualbox/4.3.10/Oracle_VM_VirtualBox_Extension_Pack-4.3.10-93012.vbox-extpack

sudo adduser yourusername vboxusers
When done you can close the terminal window, you need to logout and back in to enable USB support.

To Install the extension pack open your Home folder and double click on the Oracle_VM_VirtualBox_Extension_Pack-4.3.10-93012.vbox-extpack file and install it with VirtualBox.

To start VirtualBox press the SuperKey and type: virtualbox followed by Enter.

Samstag, 3. Januar 2015

USB Soundkarte in Linux deaktivieren

http://www.hecticgeek.com/2012/10/how-to-disable-your-webcam-in-ubuntu/
http://weprovoke.co.uk/blog/digital/technology/disable-onboard-sound-
 
Problem: 
  • Ubuntu krallt sich die Karte und "zerstärt" das im Gerät abgelegte  Routing für SPDIF in (kein Internetradio mehr, nachdem Ubuntu einmal gestartet wurde)

Lösung: 
  • Ubuntu daran hindern Triber zu laden

Schritte:
  1. Herausfinden, wie Soundkarte identifiziert wird
  2. Auf Blacklist setzten


lsmod | grep snd-*

    snd_usb_audio --> muss Scarlett sein


sudo gedit /etc/modprobe.d/blacklist.conf

    In blacklist.conf am Ende einfügen:

    # Scarlett 6i6 deaktivierern
    #http://www.hecticgeek.com/2012/10/how-to-disable-your-webcam-in-ubuntu/
    #http://weprovoke.co.uk/blog/digital/technology/disable-onboard-sound-enable-usb-soundcard-ubuntu-hardy/
    #Enabling temporarily: --> sudo modprobe snd_usb_audio
    blacklist snd_usb_audio





-------------------------------------------------------------------

Beispiel für:

lsmod | grep snd-*

This returns this result for me

snd_hda_intel         440408  2
snd_usb_audio         100384  1
snd_pcm_oss            47648  0
snd_mixer_oss          20224  1 snd_pcm_oss
snd_pcm                92168  4 snd_hda_intel,snd_usb_audio,snd_pcm_oss
snd_page_alloc         13200  2 snd_hda_intel,snd_pcm
snd_usb_lib            21120  1 snd_usb_audio
snd_hwdep              12552  2 snd_hda_intel,snd_usb_audio
snd_seq_dummy           5764  0
snd_seq_oss            38912  0
snd_seq_midi           10688  0
snd_rawmidi            29856  2 snd_usb_lib,snd_seq_midi
snd_seq_midi_event     10112  2 snd_seq_oss,snd_seq_midi
snd_seq                63232  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              27912  2 snd_pcm,snd_seq
snd_seq_device         10644  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_se

Freitag, 11. Januar 2013

LCD4Linux + serial VFD


 LCD4Linux + serielles VFD




Display hängt an /dev/ttyS0
 


obwohl   20x2 muss als 40x1 angesteuert werden!!!

Zum Testen als root:

sudo gedit/etc/lcd4linux.conf
lcd4linux -Fvvq
STRG+C zum beenden
 ############### lcd4linux.conf #######################################


Display myVFD {
   Driver   'SimpleLCD'
   Model    'generic'             #vt100 generic
   Port     '/dev/ttyS0'         #Com
                        #Port     '/dev/ttyACM0'  # Arduino
                        #Port     '/dev/ttyUSB0'  # USB Adapter
   Speed     9600
                        #Size     '20x2'
   Size     '40x1'
   #obwohl   20x2 muss als 40x1 angesteuert werden!!!

                       #Activate parity and set it to odd
                       #Options 0001400
                       #From the BA63 doc, decimal 219 look like a big full block.
  # BarCharValue 219
  
}

#----------------------------------------------------------------------------------

Widget Time {
    class 'Text'
    expression strftime('%a. %d/%m  %H:%M:%S',time())
    width 20
    align 'L'
    update 1000
}



Widget FreeRAM {
    class  'Text'
    expression meminfo('MemFree')/1024
    postfix ' MB RAM'  
    width  10
    precision 1
    align  'R'
    update tick
}



Widget Eth0 {
    class 'Text'
    expression (netdev('eth0', 'Rx_bytes', 500)+netdev('eth0', 'Tx_bytes', 500))/1024/1024
    prefix 'eth0'
    postfix ' MB/s'
    width 20
    precision 3
    align 'R'
    update tick
}


Widget Eth0UL{
    class 'Text'
    expression netdev('eth1', 'Tx_bytes', 500)/1024/1024
    prefix 'U '
    #postfix ' MB/s'
    width 8
    precision 3 #Nachkommastellen
    align 'L'
    update tick
}


Widget Eth0DL{
    class 'Text'
    expression netdev('eth1', 'Rx_bytes', 500)/1024/1024
    prefix 'D'
    postfix ' MB/s'
    width 12
    precision 3
    align 'R'
    update tick
}

#----------------------------------------------------------------------------------

Variables {
   tick 500
   tack 100
   minute 60000
}

Layout L40x1 {
    Row1 {
        Col1  'Time'
        #Col11 'Load'
        Col21 'Eth0UL'
        Col29 'Eth0DL'
    }
}

Display 'myVFD'
Layout  'L40x1'

Dienstag, 8. Januar 2013

serial VFD Display + Arduino Uno = Rhythmbox Titelanzeige

 seriel VFD Display an TX-Output vom Arduino Uno.


Status: Funktioniert nur bei getsratetem Seriellen Monitor!

falls abgestürzt in der Konsole unter root Port freigeben

sudo bash
rm /var/lock/LCK..ttyACM1


To Do: Interpret, Song trennen auf zwei zeilen ausgeben ggf. scrollen




 Arduino Sketch:


/*
Sketch um Rhythmbox Infos auf VFD auzusgeben.

 rb-lcd.py Skript starten!!
 
*/


const int numCols = 20;
const int numRows = 2;
int i;
int empty;


////////////


void setup()
{
  Serial.begin(9600);
  Serial.write(0x04); //DIM
  //Serial.write(0x09); //HT
  //Serial.write(0x11); //DC1

}

void loop()
{

  if (Serial.available()) {
    delay(100);
    Serial.write(0x1B); //ESC
    Serial.write((byte)0x00); //Cursor 0,0


      while (Serial.available() > 0) {  
      Serial.write(Serial.read());
      delay(100);
      i++;

      if (i == (numCols * numRows)) {
        i = 0;
        // this to clear the rest of the serial I/O
        while (Serial.available() > 0) {
          empty = Serial.read();
        }
      
      }
    }
  }
}









Phyton Skript:

#!/usr/bin/python
#Created By Patrick van der Leer a.k.a. Junke
#
#

### CONFIG ###
dev = "/dev/ttyACM0"    # path to the arduino
rows = 2                # number of rows of your LCD
cols = 20               # number of cols of your LCD

###
import os, time
#from subprocess import Popen, PIPE

message = " "
song = "  "

def display():
  error = os.system('echo "%s" >> %s' %(message,dev,))
  if error == 0:
    print "Song '%s'" %(message,)
  else:
    print "Failed to display '%s'" %(message,)


### loop ###
while True:
  p = os.popen('rhythmbox-client --print-playing')
  song = p.readline()
  p.close()
  song = song[:-1]
  while len(song) < (rows * cols): # to make sure the arduino doesnt
    song += " "                    # fill the rest up with black
  if song != message:
     message = song
     display()
  time.sleep(5)









Sonntag, 21. Oktober 2012

Ubuntu: VLC Webcam aufnehmen

Funktioniert mehr oder weniger (EXPERIMENTEL)



vlc -vvv v4l2:///dev/video0 --sout file/raw:/home/cs/Arbeitsfläche/records/test
##########################################
working:

vlc -vvv v4l2:///dev/video0 --sout file/avi:/home/cs/Arbeitsfläche/records/test.avi  //ohne sound
vlc -vvv v4l2:///dev/video0:input-slave=alsa://:v4l2-standard=0 -sout file/avi:/home/cs/Arbeitsfläche/records/test.avi



vlc -vvv v4l2:///dev/video0 --sout '#transcode{venc=x264{subme=7, ref=3, bframes=16, b-adapt=1, bpyramid=none, weightp=0}, vcodec=h264, vb=1300, width=1280, height=720, threads=4}:std{access=file, mux=asf, dst=/home/cs/Arbeitsfläche/records/test.asf}'


vlc -vvv v4l2:///dev/video0 :v4l2-aspect-ratio=16\\:9 :v4l2-width=1280 :v4l2-height=720 :v4l2-fps=30.0 :v4l2-set-ctrls={video_bitrate_mode=1,video_bitrate=4000000,video_peak_bitrate=4000000} --sout '#transcode{venc=x264{subme=7, ref=3, bframes=16, b-adapt=1, bpyramid=none, weightp=0}, vcodec=h264, vb=1300, width=1280, height=720, threads=4}:std{access=file, mux=asf, dst=/home/cs/Arbeitsfläche/records/test.asf}'


vlc -vvv v4l2:///dev/video0 :v4l2-aspect-ratio=16\\:9 :v4l2-width=1280 :v4l2-height=720 :v4l2-fps=30.0 :v4l2-set-ctrls={video_bitrate_mode=1,video_bitrate=4000000,video_peak_bitrate=4000000} :input-slave=alsa://default --sout '#transcode{venc=x264{subme=7, ref=3, bframes=16, b-adapt=1, bpyramid=none, weightp=0}, vcodec=h264, vb=1300, width=1280, height=720, threads=4}:std{access=file, mux=asf, dst=/home/cs/Arbeitsfläche/records/test.asf}'


##############################################



Hi,

after fiddeling around for a while I succeeded to get VLC+JTVLC working under Ubuntu/Mint with audio working and synced for 16:9 video, including a logo. The magic command line is:

vlc -I dummy v4l2:///dev/video1 :v4l2-aspect-ratio=16\\:9 :v4l2-standard=2 :input-slave=alsa://hw:1,0 --logo-file=/home/georg/Downloads/mvlogo.png --logo-x=800 --sout='#transcode{vfilter=canvas{width=320,height=1 80,aspect=16:9},venc=x264{keyint=60,idrint=2},vcod ec=h264,vb=100,acodec=mp4a,ab=32,channels=1,sample rate=22050,sfilter=logo,audio-sync}:duplicate{dst=standard{access=file,mux=mp4,d st=/home/georg/kumma.mpg}, dst=rtp{dst=127.0.0.1,port=1234,caching=2000,rtcp-mux,sdp=file:///home/georg/vlc.sdp}}'

Explanation:

- The stream is not shown (dummy interface). Instead it is dubbed into /home/georg/kumma.mpg.

- The sdp file and jtvlc work as described in the jtvlc-wiki.

- It is important to remove or disable the pulseaudio server in order to have a working alsa interface.

- The v4l2-standard=2 above is PAL, change it at your convenience. The video camera (over a Dazzle USB converter) must be 16:9 as well.

- It is well possible to increase the canvas size and the video bandwidth.

- Important parameters (not in the jtvlc-wiki) are rtcp-mux and caching=2000 in the rtp section. The rtcp-mux prevents the client from complaining about too many reference frames and/or too old video data. The caching=2000 is necessary to have synced audio and video. Without it, video will lag behind in the rtp stream (but not in the saved mpg file).

- Extra hint: When embedding the video in other websites, change the size of the object to 640x360 which is 16:9. So there will be no black bars.

Ubuntu: Virtual box error NS_ERROR_FAILURE (0x80004005)

Nach Migration der VirtualBox von Win7 zu Ubuntu


Virtual box error NS_ERROR_FAILURE (0x80004005)


sudo /etc/init.d/vboxdrv setup


oder besser

I found a solution for this.
In your home folder /home/xxxx/.VirtualBox the file VirtualBox.xml became corrupted so delete it (when you restart virtualbox you will have to re-register).
After that go to virtualbox menu for Virtual Media Manager and add the xxxx.vmdk image to it.
Next step add a new OS for virtualbox and select the first (for me xp) then select for Boot Hard Disk use existing hard disk and select the one you added for media manager.
There your done vbox is now working with your virtual hard disk before the crash and you don't loose anything.

My next step was back in my .Virtualbox folder i copied the 3 files (compreg.dat, VirtualBox.xml and xpti.dat) to .xxxx (copy) in the same folder (just in case this happens again).
The last step was to make another virtualbox snapshot.

Ubuntu: Skype video aufnehmen

video aufnehmen

ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg

Ubuntu: PST in Thunderbird importieren

Öffnen Sie Pst im Thunderbird

Ich habe eine pst Datei, die alle meine Aussichtunterstützungen enthält. Ich möchte jene Post in meinen Thunderbird in Ubuntu 10,10 importieren. Obwohl ich ihn unter Verwendung des Entwicklungspostkunden importieren kann. Aber ich mag an Thunderbird festhalten. Irgendwelche Ideen, suggestios?
Abdul Kader

Tags - ubuntu-10.10 thunderbird

    Deutsch Übersetzung
    Originaltext (englisch)

Atlast I importierte meine Sicherungsdateien der Aussicht 2007 in Thunderbird unter Verwendung des readpst. Keine anderen Lösungen bearbeitet für mich.

1.sudo apt-get install readpst

2.readpst -r pstfilename

Ändert das Ausgabeformat zu rekursivem. Dieses stellt Ordner her, wie in der PST-Datei genannt und setzt alle E-Mail in eine Datei ein, die „mbox“ innerhalb jedes Ordners genannt wird. Diese Dateien sind dann mit allen mbox-kompatiblen E-Mail-Kunden kompatibel. Dann importierte gerade die mbox Datei in Thunderbird und ich erhielt meine Post hinter

Ich verwende Ubuntu 10,10 Thunderbird 3.1.8
Abdul Kader

    Deutsch Übersetzung
    Originaltext (englisch)

Gut bin ich mit zwei Seiten herausgekommen:

Eine Weise, pst Dateien manuell zu importieren: http://kb.mozillazine.org/Import_.pst_files#Linux

Oder ein addon im Thunderbird verwendend:

http://obm.org/doku.php?id=projects:pst_import

Ubuntu: Install *.run Datei

How to Install a .run File:

1. Open a terminal. In Gnome the terminal is found in Applications>Accessories>Terminal.
2. Navigate to the directory of the .run file. For this example, I have mine on the desktop so I would type in "cd ~/Desktop" and press enter.
3. Type "chmod +x example.run" (press enter).
4. Now type "./example.run", press enter, and the installer will run.

Ubuntu: VirtualBox USB-Geräte

 virtual box keine usb geräte

In "/etc/udev/rules.d/10-vboxdrv.rules" ändere "Mode="0600"" in "MODE="0666"". Das dürfte das Problem lösen. ;)


---------------------------------------------------------------------------------------------------------------------------

USB-Geräte funktionieren nicht?

groups
-> in gruppe vboxusers? wenn nein ->


sudo adduser BENUTERZNAME vboxusers
sudo adduser $USERS vboxusers

Ubuntu: Flash falsche Farben


 Problem: Flashvideos bsp. Youtube Farben verkehrt (Hautfarbe = blau)

-> terminal

-> locate libflashplayer.so

     nehme sich den pfad(ohne den Dateinamen und setze ihn hier ein:

-> cd <hier muss der pfad hin>

    und nun nur noch

-> sudo perl -pi.bak -e 's/libvdpau/lixvdpau/g' libflashplayer.so

    machen, ggf. den browser neustarten und sich freuen.