Archiv des Autors: jbox-admin

iTunes 11 downgrade

itunes 10.7 ist die letzte Version mit Coverflow. Die neue Version hat ein überarbeitetes Interface, das Einarbeitungszeit benötigt.

Es wird Pacifist benötigt.
Die iTunes 10.7 Installationsdatei wird über Pacifist gestartet. Wichtig ist das die Installation als Admin ausgeführt wird. Dazu vor der Installation das Schloss in Pacifist mit den Admin-Daten freischalten. Das Installations-DMG wird durch Drag & Drop auf das Pacifist Interface gestartet. Dabei wieder Admin-Rechte auswählen.
Bei der anschliessenden Installation die Abfragen mit Überschreiben bestätigen.

Quelle
https://www.emacconsulting.com/apple/itunes/downgrade-itunes-11-to-itunes-10-7/

OSX: Iso aus Installations-DMG erstellen

[Lion]

Erst das DMG aus dem AppStore mounten, dann


$ hdiutil makehybrid -iso -hfs Install\ OS\ X\ Mountain\ Lion.app/Contents/SharedSupport/InstallESD.dmg -o OSX-10.8.iso

Quelle
https://j4zzcat.wordpress.com/2012/08/24/create-a-bootable-iso-image-for-mountain-lion/

[Sierra +] alternativ:
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
https://gist.github.com/julianxhokaxhiu/6ed6853f3223d0dd5fdffc4799b3a877

HowTo Fix Mosh on OSX

Wenn keine Verbindung zum Ziel-Rechner aufgebaut wird bzw. die Fehlermeldung erscheint das „mosh-server“ wohl nicht installiert ist, hier ist die Lösung:

eine .bashrc im $home erstellen
folgendes eintragen:


export PATH=/usr/local/bin/:$PATH

Rsync Backup erstellen

rsync -v -r --delete /Volumes/quelle/3d/ /Volumes/ziel/3d/

Löscht alles in ziel/3d was nicht auf der Quell-Festplatte ist. (Um Platz zu schaffen)
Anschliessend werden die Daten die nicht auf der Zielplatte sind kopiert.

Die Option
--dry-run
zum testen der Ausführung sollte immer verwendet werden

Am Ende sollte eine 1:1 Kopie des Verzeichnisses erstellt worden sein.

Raspberry PI Image erstellen

Um ein Backup zu erstellen:

diskutil list

Die entpsrechende Geräte-ID merken z.B. /dev/disk2

diskutil umountDisk /dev/disk2

sudo dd if=/dev/disk2 of=~/Desktop/raspberrypi.dmg

Es wird ein Image auf dem Desktop erstellt, mit dem Namen raspberrypi.dmg

Zurücksichern:

diskutil umountDisk /dev/disk2
sudo dd of=/dev/disk2 oif=~/Desktop/raspberrypi.dmg

Fortschritt anzeigen:
In einem zweiten Terminal

sudo kill -INFO $(pgrep ^dd)

eingeben. Im Fenster in dem der dd-Prozess läuft wird der Fortschritt eingeblendet, ohne den Prozess zu beenden.

OSX Mails aus der Kommandozeile versenden

Quelle:
https://apple.stackexchange.com/questions/12387/how-to-send-an-email-from-command-line

Configure Postfix for Gmail SMTP Edit file /etc/postfix/main.cf

sudo vim /etc/postfix/main.cf
and add in the following below the commented out relayhosts :-

relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes
Generate sasl_password if not already exists

sudo vim /etc/postfix/sasl_passwd
and enter in the following:-

[smtp.gmail.com]:587 username@gmail.com:password
Run the following commands

sudo chmod 600 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
sudo launchctl stop org.postfix.master
sudo launchctl start org.postfix.master
And you are done….
Now, you should be able to send emails from within the command line e.g. to send the contents of a directory as a tree to an email address

tree /var/www/somefolder | mail -s „contents“ your@yourdomain.com

Linux: Laufende Prozesse in den Hintergrund bewegen

(method 2 – my favorite)
ALREADY RUNNING PROCESS INTO NOHUP
Pro: Puts running process into background, and if you quit out of the shell it still runs
Con: Costs a pinch of more memory (a negligiable amount) – I couldnt think of any cons so I had to mention this 🙂

Reference: http://stackoverflow.com/questions/625409/how-do-i-put-an-already-running-process-under-nohup

Using the Job Control of bash to send the process into the background:

0. Run some SOMECOMMAND
1. ctrl+z to stop (pause) the program and get back to the shell
2. bg to run it in the background
3. disown -h so that the process isn’t killed when the terminal closes
4. Type exit to get out of the shell because now your good to go as the operation will run in the background in it own process so its not tied to a shell

This process is the equivalent of running nohup SOMECOMMAND

Quelle:https://sites.google.com/a/kossboss.com/main/linux—move-running-to-process-nohup