• Benvenuto su Altrove Consulting Forum.
 

News:

www.altrove.info ICT a 360 gradi - Contattaci per mettere in buone mani la tua infrastruttura

Menu principale

Messaggi recenti

#41
Notizie e Link Interessanti / ricostruire il database Launch...
Ultimo messaggio di Max Brezzi - Mercoledì, 07 Ottobre 2015, 05:17:10 AM
Tips: ricostruire il database LaunchServices per eliminare i duplicati nel menu "apri con"

La riga da digitare, o incollare vista la sua complessità, è la seguente:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -domain local -domain system -domain user

L'effetto non sarà tuttavia visibile finché non si riavvierà il Finder:

killall Finder


-----

http://www.saggiamente.com/2013/02/01/tips-ricostruire-il-database-launchservices-per-eliminare-i-duplicati-nel-menu-apri-con/
#42
Notizie e Link Interessanti / Come installare client OpenVpn...
Ultimo messaggio di Max Brezzi - Martedì, 23 Giugno 2015, 11:52:06 AM
https://openvpn.net/index.php/access-server/docs/admin-guides/183-how-to-connect-to-access-server-from-a-mac.html

Documentation

To connect to Access Server from a MacOSX client computer, you need to follow these steps:

Download and install an OpenVPN client for MacOSX
Login to the Access Server's Client Web Server and download the appropriate client configuration file (typically called "client.ovpn")
Run the OpenVPN client with the downloaded client config file

A popular OpenVPN client for MacOSX is Tunnelblick. It can be obtained for free from https://tunnelblick.net. Follow these basic steps to use Tunnelblick with OpenVPN:

Download the Tunnelblick disk image file (a ".dmg" file) from https://tunnelblick.net
Open the downloaded disk image file (which mounts the disk image).
Double-click the Tunnelblick icon (it may be labelled "Tunnelblick.app") and you will be guided through the installation of the program.

Once you have installed Tunnelblick, you can  install the configuration file. Decompress certificate ZIP and find xxxx.ovpn file and double-click it. This will launch Tunnelblick if necessary, and Tunnelblick will install and secure the configuration.

Run Tunnelblick by double-clicking its icon in the Applications folder. If left running when you logout or shut down your computer, Tunnelblick will be launched automatically when you next log in or start your computer.

The first time Tunnelblick is run on a given Mac, it will ask the user for the an system administrator's username and password. This is necessary because Tunnelblick must have root privileges to run, as it modifies network settings as part of connecting to the VPN.


For more information on using Tunnelblick, see the Using Tunnelblick at https://tunnelblick.net/czUsing.html.
#43
Notizie e Link Interessanti / Re: Come convertire immagine ....
Ultimo messaggio di Max Brezzi - Giovedì, 29 Gennaio 2015, 02:53:40 AM
Instructions for Linux (and OSX)

You can simply use dd on unix like systems. First download the iso image, the plug in the USB stick (you need to find out what device name gets assigned to the usb stick: diskutil list).

sudo dd if=pve-cd.iso of=/dev/XYZ bs=1m    (poi mettere psw)

Be sure to replace /dev/XYZ with the correct device name (be careful, and do not overwrite your hard disk!)

prima smontare disco: diskutil unmountDisk /dev/disk3

per trovarlo: diskutil list
#44
Notizie e Link Interessanti / Re: Link url per video di yout...
Ultimo messaggio di Max Brezzi - Mercoledì, 17 Dicembre 2014, 18:10:12 PM
Useful YouTube URL Tricks
BRIAN YANG / AUGUST 21, 2010 / 141 COMMENTS
YouTubeEver wanted to share a YouTube video with someone but want to share just a certain part of it without having them start from the beginning? Need to have a video automatically loop?

YouTube URLs can be modified with various query string parameters to change certain features and how to video player works. In most cases, parameters follow the video URL with an ampersand (&). The most commonly seen parameter is probably &feature=related which shows that the video was found through clicking on a Related Video. This parameter basically does absolutely nothing for the actual user though.

This guide is outdated. Check out my updated version of this guide, including an easy to use URL and embed code generator, at the following link:
Useful YouTube Player Parameters
There are many URL parameters you can add to YouTube video URLs as well as the embed codes. Let's start with the video URL.

Click here to jump to the Embedded Video URL Parameters.

Video URL Parameters

There are parameters to add to the URL of a YouTube video. Video ID is a placeholder for the YouTube video ID which is the string of alphanumeric characters after the watch?v=.

High Quality Videos

YouTube supports up to HD quality videos, but some videos might not have an HD format available. Some might just have a High Quality option available. To create a link that automatically loads the video in HQ or HD, simply add &fmt=6 (480p HQ FLV), &fmt=18 (480p MP4) or &fmt=22 (720p HD) to the end of the video URL.

Update: YouTube has made many changes recently and the fmt parameter does not seem to work anymore. For HD, add &hd=1 instead. The fmt parameter no longer does anything.

This example video link will start automatically in 720p HD (&hd=1).

http://www.youtube.com/watch?v=Video ID&hd=1
Skip to Specific Time

Suppose you're trying to share a video clip with someone, but you don't really think its necessary for them to watch the whole thing from the beginning. You can specify where the video should start as well as easily jump to a specific point by adding #t=7m30s. The number in front of the 'm' is the minute and in front of the 's' would be seconds. In this example, I'm skipping to 7:30.

This example video link will automatically skip to 1:32 (#t=1m32s).

http://www.youtube.com/watch?v=Video ID#t=1m32s
Browser Window Full Size Player

This will load a large player that fills your entire browser window.

Simply replace the '?' and '?=' in the URL to '/' and remove 'watch'.

http://www.youtube.com/embed/Video ID
This example video will start in a full size player.

Prevent Video from Autoplaying

Same procedure as using the large player. This player does not start playing automatically. If you are using this full size player and want it to autoplay, then simply add ?autoplay=1 to the end of the URL. Use an ampersand (&autoplay=1) if this is not the only parameter.

http://www.youtube.com/embed/Video ID?autoplay=1
Loop Video

There are many online websites offering this functionality (often involving just changing the domain name), but there is no need to use an external service because YouTube actually has this built in.

Same procedure as using the large player, but add ?loop=1. Use an ampersand (&loop=1) if this is not the only parameter. This is very useful for looping music.

http://www.youtube.com/v/Video ID?loop=1
Embedding Videos URL Tricks

The video URL in the source code for embedded YouTube videos also allows for various query string parameters in addition to the ones provided by YouTube in the embed video options.

Video-ID is a placeholder for the YouTube video ID which is the string of alphanumeric characters after the watch?v=.

Start the parameter string using a ? question mark. Then, use an ampersand & to connect additional parameters. An example parameter would be http://www.youtube.com/embed/VIDEO-ID?modestbranding=1&rel=0.

Since this is HTML, all ampersands must be replaced with & or it won't be validated markup.

For these examples, replace PARAMETER with the provided parameters (excluding the ampersands). Highlighted lines show where changes are needed.

1
2
3
4
5
6
<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/VIDEO-ID?fs=1&amp;hl=en_US"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/VIDEO-ID?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>
</object>
Then the modified code would be:

1
2
3
4
5
6
<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/VIDEO-ID?fs=1&amp;hl=en_US&amp;PARAMETER"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/VIDEO-ID?fs=1&amp;hl=en_US&amp;PARAMETER" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>
</object>
For the new iframe embed method, its easier since there is only one URL.

<iframe width="560" height="349" src="http://www.youtube.com/embed/VIDEOID?PARAMETER&amp;PARAMETER2" frameborder="0" allowfullscreen></iframe>
Embed High Quality Videos

Add the following parameters to embed a higher quality video:

&vq=small – 240p
&vq=medium – 360p
&vq=large – 480p
&vq=hd720 – 720p

Of course, if the quality is not available, this parameter won't do anything.

Autoplay

By default, embedded videos do not autoplay. If you want the videos to autoplay, simply add &autoplay=1 to the URL.

Auto Loop

If you want your videos to automatically loop, simply add &loop=1.

Hide Search Box

Want to prevent users from searching for other videos on your embedded video? Simply add &showsearch=0 to the end of the URLs, which currently appear twice in the standard embed code.

Disable Related Videos

By default, YouTube videos show links to several related videos at the end. However, this might be videos of your competitors and you certainly don't want that. To turn off related videos, add &rel=0.

No Related Videos
This embedded video does not show any related videos thanks to a parameter.
Remove YouTube Branding

You can now remove the YouTube branding from the video. This can make videos look more professional. Add the parameter ?modestbranding=1.

So your code will look like this:

<iframe width="560" height="349" src="http://www.youtube.com/embed/VIDEOID?modestbranding=1&amp;rel=0" frameborder="0" allowfullscreen></iframe>
For removing the branding, this parameter should be first or it might not work properly.

Here is a video using the embed URL with the YouTube logo removed and related videos disabled.

Remove Title

When a user hovers over an embedded video, the title of the video shows. This also serves as a link back to the video page on YouTube. If you want to hide it, use the parameter ?showinfo=0.

Note that this does NOT work with removing the YouTube branding. Adding this parameter causes the modestbranding parameter to break.

Disable Backlink

To disable any backlinks to YouTube, add a a parameter allownetworking to the Flash object and set it to internal. This only works on the old embed code. See this comment for more details.

Please note that disabling the backlink may be a violation of Section 4F of the YouTube Terms of Service. Since YouTube is a free service, you should provide this backlink.

Start Video from Specific Point

If you want the embedded video to start from a specific point rather than the beginning, simply add &start=60. The number is in seconds.

Disable Fullscreen

Do you want to prevent your viewers from watching the video in full screen? Configuring this is slightly different from the other options.

In the video URL, toggle both fs=1 to fs=0. Then toggle both AllowFullScreen options to false. This is a total of 4 changes. Your code should look like this.

1
2
3
4
5
6
<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/VIDEO-ID?fs=0&amp;hl=en_US&amp;PARAMETER"></param>
<param name="allowFullScreen" value="false"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/VIDEO-ID?fs=0&amp;hl=en_US&amp;PARAMETER" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="false" width="480" height="385"></embed>
</object>
#45
Notizie e Link Interessanti / Re: errore dopo download Itune...
Ultimo messaggio di Max Brezzi - Lunedì, 15 Settembre 2014, 13:30:31 PM
This fixes it.

You are basically removing ( or renaming as I did) the old kext and then rerunning the iTunes installer which will then properly install the kext.

http://blog.iphoting.com/blog/2012/09/04/fixing-broken-iphone-usb-tethering-on-os-x

To fix the faulty AppleUSBEthernetHost.kext, it needs to be reinstalled from the iTunes package. Follow the steps below:
Unplug your iPhone from the computer.
Download the iTunes installer (http://www.apple.com/itunes/download/).
Remove the old kernel extension:

$ sudo rm -Rf /System/Library/Extensions/AppleUSBEthernetHost.kext

Run the iTunes installer and let it finish.

Load the updated kernel extension:

$ sudo kextload /System/Library/Extensions/AppleUSBEthernetHost.kext
#46
Notizie e Link Interessanti / errore dopo download Itunes /s...
Ultimo messaggio di Max Brezzi - Lunedì, 15 Settembre 2014, 13:20:24 PM
e' una "svista" di Apple nell'estensione "AppleUSBEthernetHost.kext" installata con l'aggiornamento di iTunes.

O la sostituisci con la versione vecchia presa da un backup, o la correggi.

Personalmente, sono entrato in /System/Library/Extensions/AppleUSBEthernetHost.kext/Contents e ho eliminato tre link simbolici "farlocchi":
CodeDirectory
CodeRequirements
CodeSignature

L'istruzione da terminale è:

sudo rm /System/Library/Extensions/AppleUSBEthernetHost.kext/Contents/Code*

Oppure puoi divertirti a farlo dal Finder.
#48
Notizie e Link Interessanti / Procedura di Attivazione Windo...
Ultimo messaggio di Max Brezzi - Lunedì, 28 Luglio 2014, 18:22:01 PM
x attivare windows (in particolare macchine virtuali che non danno altri sistemi di attivazione) seguire questa procedura:


Apri il prompt dei comandi con diritti amministrativi

slmgr -upk   (questo rimuove il vecchio codice)

slmgr -ipk xxxx-xxxx-xxxx-xxxx-xxxx  (questo inserisce il nuovo codice)

a questo punto si riesce ad attivare windows.
#49
Notizie e Link Interessanti / Come rimuovere adware e malewa...
Ultimo messaggio di Max Brezzi - Lunedì, 14 Luglio 2014, 13:20:56 PM
http://www.adwaremedic.com/index.php

per scaricarlo: https://it.malwarebytes.com/antimalware/mac/




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

Per rimuovere manualmente....


esempio:

You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
 
Back up all data.
Triple-click anywhere in the line below on this page to select it:
/Library/Application Support/VSearch
Right-click or control-click the line and select
Services ▹ Reveal in Finder (or just Reveal)
from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
Repeat with each of these lines:
/Library/LaunchAgents/com.vsearch.agent.plist
/Library/LaunchDaemons/com.vsearch.daemon.plist
/Library/LaunchDaemons/com.vsearch.helper.plist
/Library/LaunchDaemons/Jack.plist
/Library/PrivilegedHelperTools/Jack
/System/Library/Frameworks/VSearch.framework
Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
Restart and empty the Trash. Don't try to empty the Trash until you have restarted.
From the Safari menu bar, select
Safari ▹ Preferences... ▹ Extensions
Uninstall any extensions you don't know you need, including any that have the word "Spigot" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. It must be said that this failure of oversight is inexcusable and has seriously compromised the value of Gatekeeper and the Developer ID program. You cannot rely on Gatekeeper alone to protect you from harmful software.
*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
Go ▹ Go to Folder...
from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
#50
Notizie e Link Interessanti / Come convertire immagine .ISO ...
Ultimo messaggio di Max Brezzi - Lunedì, 12 Maggio 2014, 00:15:12 AM
http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx

------


How to create a bootable USB stick on OS X


We would encourage Mac users to download Ubuntu Desktop Edition by burning a CD. But if you prefer to use a USB stick, please follow the instructions below.

Note: this procedure requires that you create an .img file from the .iso file you download. It will also change the filesystem that is on the USB stick to make it bootable, so backup all data before continuing.

Tip: Drag and drop a file from Finder to Terminal to 'paste' the full path without risking typing errors.

1
Download Ubuntu Desktop

2
Open the Terminal (in /Applications/Utilities/ or query Terminal in Spotlight).

3
Convert the .iso file to .img using the convert option of hdiutil (e.g.,hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso)

Note: OS X tends to put the .dmg ending on the output file automatically.

4
Run diskutil list to get the current list of devices.

5
Insert your flash media.

6
Run diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2).

7
Run diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command; in the previous example, N would be 2).

8
Execute sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.imgor ./ubuntu.dmg).

Using /dev/rdisk instead of /dev/disk may be faster
If you see the error dd: Invalid number '1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M
If you see the error dd: /dev/diskN: Resource busy, make sure the disk is not in use. Start the 'Disk Utility.app' and unmount (don't eject) the drive

9
Run diskutil eject /dev/diskN and remove your flash media when the command completes.

10
Restart your Mac and press alt/option key while the Mac is restarting to choose the USB stick.