lunedì 23 novembre 2009

Change Ubuntu Server from DHCP to a Static IP Address

If the Ubuntu Server installer has set your server to use DHCP, you will want to change it to a static IP address so that people can actually use it.

Changing this setting without a GUI will require some text editing, but that’s classic linux, right?

Let’s open up the /etc/network/interfaces file. I’m going to use vi, but you can choose a different editor

sudo vi /etc/network/interfaces

For the primary interface, which is usually eth0, you will see these lines:

auto eth0
iface eth0 inet dhcp

As you can see, it’s using DHCP right now. We are going to change dhcp to static, and then there are a number of options that should be added below it. Obviously you’d customize this to your network.

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

Now we’ll need to add in the DNS settings by editing the resolv.conf file:

sudo vi /etc/resolv.conf

On the line ‘name server xxx.xxx.xxx.xxx’ replace the x with the IP of your name server. (You can do ifconfig /all to find out what they are)

You need to also remove the dhcp client for this to stick (thanks to Peter for noticing). You might need to remove dhcp-client3 instead.

sudo apt-get remove dhcp-client

Now we’ll just need to restart the networking components:

sudo /etc/init.d/networking restart

Ping www.google.com. If you get a response, name resolution is working(unless of course if google is in your hosts file).

Really pretty simple.

sabato 7 novembre 2009

Mandare Link ED2k verso un amule su un altro computer.

Windows

Make sure aMule is installed with the aMuleCMD option checked.

We need a batch script to handle the ed2k links from the browser, and we need to add some keys to the registry to make the browser recognize the ed2k links.

Create a file named ed2k_remote.bat containing the following code:

@echo off
set link=%1
for /f "useback tokens=*" %%a in ('%link%') do set link=%%~a
"c:\Program Files\aMule\amulecmd.exe" /h server /P pass /c "add %link%"

Don't forget to replace server and pass with your data and save the file in your aMule directory C:\Program Files\aMule.

Create a file named ed2k_remote.reg containing the following code:

REGEDIT4

[HKEY_CLASSES_ROOT\ed2k]
@="URL: ed2k Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\ed2k\DefaultIcon]
@="C:\\Program Files\\aMule\\amulegui.exe"

[HKEY_CLASSES_ROOT\ed2k\shell]
@="open"

[HKEY_CLASSES_ROOT\ed2k\shell\open]

[HKEY_CLASSES_ROOT\ed2k\shell\open\command]
@="\"C:\\Program Files\\aMule\\ed2k_remote.bat\" \"%1\""

Save the file and run it (double click) to add these keys to the registry.

Internet Explorer

You should be OK with just the changes to the registry and the batch script in your aMule directory.

Firefox

The first time you click an ed2k link in Firefox you will get the following dialog:


Tick the Remember box and click OK.

Opera

Open the preferences window and click the Programs tab

Click the Add... button

Make Opera aware of the ed2k link protocol with these settings:


mercoledì 21 gennaio 2009

Mass Storage.

.....cosi metto tutto in un posto GIGANTE! eppure cosi piccolo.....
Tutto cio' e' poetico.....lui e' li che sfrulla con la sua ventola.......e CONTIENE TUTTO.........ogni tanto grugnisce silenziosamente....accende le sue lucine al ritmo mitralico del bit....
e finche ce' corrente LUI E' LI!!!! (ma anche se gliela togli e gliela ridai....alle volte E' LI!)

LCD Panel Technology Explained

There are many different panel technologies used in the production of LCD monitors. They range from budget TN panels to expensive, professional quality S-IPS and S-PVA panels. The average consumer usually has no idea what panel technology is used in their LCD. In fact, many power users are also unaware, simply because the panel type is rarely listed by the manufacturer in the monitor specifications. Many users buy monitors based on price and size. Price should be a factor, but you should still know the advantages and disadvantages of the different LCD panel types and be able to identify them before you decide which LCD to purchase.

IPS Panel Technology
S-IPS/H-IPS (In Plane Switching) panels are generally considered the best overall LCD technology for image quality, color accuracy and viewing angles, but this comes at a price. They are well suited for graphics design and other applications which require accurate and consistent color reproduction. S-IPS panels offer the best viewing angles of any current LCD technology, with wide viewing angles up to 178 degress. The response time of S-IPS is adequate, ranging from 6ms to 16ms with current panels. This is only slightly slower than TN panels. However, gamers should take this into consideration. Fast paced games may suffer from motion blur or ghosting with S-IPS panels that have a response time higher than 8ms. S-IPS panels can be identified buy a slight purple hue on blacks when viewed from a wide angle. There are currently few manufacturers using S-IPS panels in comparison to the other panels types making choices limited and they often carry a premium price tag. H-IPS is a newer variation of S-IPS with a different pixel structure that improves contrast ratios and lowers pixel pitch to provide better picture quality.

Two of the most popular widescreen S-IPS monitors are the NEC 20WMGX2 and Dell 2007WFP. The NEC 20WMGX2 monitor uses an AS-IPS panel (basically a custom S-IPS panel made specifically for NEC), has a 6ms response time, glossy coating and includes a TV tuner and speaker bar. The price of the 20WMGX2 ranges from $500-$600. The Dell 2007WFP is much more affordable at around $350, but you are not guranteed an S-IPS panel and it has less features. Unfortunately Dell uses two panel types in this monitor. S-IPS and S-PVA. It is a completely random process so there is no way to know which panel you will receive. However, due to the much lower price of the 2007WFP many are willing to take the risk for a cheap widescreen S-IPS panel. To find more S-IPS panels see our Comprehensive List of S-IPS Based LCD Monitors.

VA Panel Technology
VA (Vertical Alignment) technology such as S-PVA/MVA are middle of the road LCD panels. They offer better color reproduction and wider viewing angles than TN panels, but have slower response times. They are very similar to S-IPS on paper. They also offer large viewing angles and good color reproduction, though not as good as S-IPS. The response times are generally worse than TN or S-IPS panels and there have been reports of a few panels that suffer from input lag, so VA technology may not be the best choice for fast paced gaming. VA panels have the advantage of higher contrast ratios compared to other panel types, which leads to better black levels. The biggest disadvantage of VA based panels is color shifting. Color shifting is when the image viewed from one angle changes or "shifts" when viewed from a slightly different angle, making various uneven brightness levels across the display. This bothers many users to the point they will not even consider buying a VA based panel, while other users don't notice/aren't bothered by the color shifting. Color shifts also cause a loss of shadow detail in dark scenes when viewed directly from the center. VA panels are much easier to find compared to IPS because so many manufacturers use them. They offer better image quality than TN at lower price than IPS based panels.

TN Panel Technology
TN (Twisted Nematic) panels are the most widely used panel type as they are cheap and offer excellent response times, making them perfect for fast paced gaming. The response times of current TN panels range from 2ms to 5ms. However, color reproduction, viewing angles and contrast ratios of TN panels are the worst of any LCD panel technology. Unlike most 8-bit S-IPS/S-PVA/MVA panels, TN panels are only 6-bit and unable to display the full 16.7 million colors available in 24-bit true color. They can mimick the 16.7 million colors of 8-bit panels using a technique called dithering, but the results are unimpressive. TN panels have become popular with the average user because they are very inexpensive. They are also the only panels currently being used in 22" widescreen monitors, a very popular size. Many of these 22" TN panels are around the same price or cheaper than other 20" monitors with different panel types, so it is easy to see how how they gained popularity. Afterall, the average user buys a monitor based on price and size.

Update: Other panel types are now starting to be used in 22" displays, though the majority are still TN.

Summary of LCD Panel Technology
* S-IPS/H-IPS panels are generally considered the best all around panel type, but they are more expensive and very few are made. High end, expensive.
* S-PVA/MVA panels offer better color reproduction and viewing angles than TN panels, have slightly worse response times than TN or S-IPS, offer the best contrast ratios, may suffer from color shifting or input lag and have higher availability than S-IPS panels. Mid range, fair price.
* TN panels are very cheap and have the fastest response times, but suffer from inferior color reproduction, contrast ratios and viewing angles. Low end, inexpensive.

UH!

CaraMella, mortaDella....mandaRino