AirV's Blog

Just another blog

Add User on MacOs

From osxdaily.com :

Adding a user is something easily accomplished using the built in GUI tools that ship with OS X, however any power user can appreciate the possible efficiency gained from using the command line. So in the spirit of efficiency here are the steps necessary to add a user to your Mac OS X system all with our good friend, Terminal.app.

These commands need to be run as either the root user or with the “sudo” command. For more information on the sudo command see the sudo man page.

Create a new entry in the local (/) domain under the category /users.
dscl / -create /Users/toddharris

Create and set the shell property to bash.
dscl / -create /Users/toddharris UserShell /bin/bash

Create and set the user’s full name.
dscl / -create /Users/toddharris RealName « Dr. Todd Harris »

Create and set the user’s ID.
dscl / -create /Users/toddharris UniqueID 503

Create and set the user’s group ID property.
dscl / -create /Users/toddharris PrimaryGroupID 1000

Create and set the user home directory.
dscl / -create /Users/toddharris NFSHomeDirectory /Local/Users/toddharris

Set the password.
dscl / -passwd /Users/toddharris PASSWORD

or

passwd toddharris

If you would like Dr. Harris to be able to perform administrative functions:
dscl / -append /Groups/admin GroupMembership toddharris

Cumul mensuel novembre 2010

Type d’activité Séances Distance Temps Vitesse
Course 16 221.04 20:09:11 10.97
Cyclisme 10 154.32 06:16:54 24.57
Natation 01 001.00 00:25:00  
Récapitulatif 27 375.36 26:51:05  

cumul mensuel  novembre 2010

Installation d’un DMG sur MacOs

Pour installer un DMG en ligne de commandes :
cd ~/Desktop
curl -O http://darwinports.opendarwin.org/downloads/DarwinPorts-1.2-10.4.dmg
hdiutil attach DarwinPorts-1.2-10.4.dmg
cd /Volumes/DarwinPorts-1.2/
sudo installer -pkg DarwinPorts-1.2.pkg -target « / »
hdiutil detach /Volumes/DarwinPorts-1.2/

En clair…

  1. goes to your Desktop folder
  2. grabs DarwinPorts from the opendarwin site
  3. mounts the dmg
  4. goes to the newly mounted DarwinPorts volume
  5. installs the package, targeted to the root, as the root user
  6. ejects the mounted disc image.

you then can use Automator to do this…

code taken from this page

Apple Remote Desktop

Apple Remote Desktop : outil de prise de main à distance sur MacOs

  • Activation de l’accès ARD pour n’importe quel compte autorisé à se loguer sur cette machine (les utilisateurs locaux et réseau).

$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -restart -agent -privs -all

  • N’autoriser que les utilisateurs possédant des droits d’administration :

$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users admin -privs -all -restart -agent -menu

  • Désactivation de l’ ARD et son démarrage automatique :

$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -stop

NB : Apple Remote Desktop est accessible depuis windows (UltraVNC) ou Linux (Terminal Server Client) via le protocole VNC

Bitlocker

From labo-microsoft.org :

« …Bitlocker est une technique de chiffrement de lecteur qui est utilisée pour sécuriser vos données par mot de passe. Les données sont cryptées à l’aide d’un algorithme de chiffrement fort ce qui vous confère une sécurité maximale. Bitlocker Drive Encryption encrypte vos données de sorte que même si votre système d’exploitation n’est pas démarré les données sont cryptées, c’est-à-dire que si vous vous faites voler votre DD les données contenues par celui-ci sont illisibles ou inaccessibles. Il est possible de crypter plusieurs supports tels qu’un disque dur interne, un disque dur externe ou une clé USB grâce à Bitlocker to Go. Cette nouveauté est arrivée avec Windows… »

Backup Ubuntu

From Freshmeat.net :

« …Arkeia Network Backup Enterprise Edition for Ubuntu is a completely free version of the Arkeia Network Backup software specifically for Ubuntu servers. It allows an administrator to backup and restore files via a powerful easy to use Web UI. This edition has the option to backup to a 250 GB VTL or tape drive. All Arkeia products support any tape drive that is compatible with the Linux st driver. This edition allows you to backup Windows desktops, Mac desktops, Linux servers, FreeBSD servers, and more… »

Site officiel

A tester.

Data recovery for MacOs

From Freshmeat.net :

« …Disk Drill data recovery software designed natively for Mac OS. It can easily recover deleted files from external or internal hard drives, memory cards, etc. It also protects data by introducing Recovery Vault to ensure guaranteed Mac data recovery from HFS/HFS+/FAT file systems. It handles Mac data recovery from any, even formatted or raw, media. It finds any data (if it wasn’t overwritten), and supports any file system by offering Deep & Quick Scan data recovery methods. If you don’t want someone to undelete what you deleted, but it is still protected by Recovery Vault, you can specify a Master Password to protect your configuration… »

A tester.