Posted by: admin (Jan 28) In if there is nothing that prevents a Linux box equipped with the standard viewing video on the site www.ilsole24ore.com. Unfortunately, furboni webmasters of the site did not care about the Penguins and so is usually shown a message asking you to install the plug-in for Windows Media Player.
To work around this annoying problem simply install the add "User Agent Switcher" and choose an operating system such as Microsoft Windows Vista + IE7. Magically, after this small correction even though they have the same Firefox with the same Linux box (in my case Ubuntu 8.10) we can see the movie that we were denied ... until you remedy this error (I do not want to think worse) trivial but discriminating.
Posted by: admin (Jan 17) Often having to play around a body of configuration files where we can arrange with a handful of parameters. In these cases we can remove all unnecessary fuffa simply using the command below:
# Grep-v "^ #" / etc / my.conf | sed-e'/^$/ d '> / etc / my_new.conf
or you can use this alternative:
# Cat / etc / my.conf | sed '/ * # / d, / ^ * $ / d'> / etc / my_new.conf
Remember my_new.conf to overwrite the original file after checking the contents.
Published in: linux, shell, tips Posted by: admin (Jan 11) If we want to change the maximum number of mount between a check and the other (mount count), we can the-c option in combination numero_max_di_mount program tune2fs (position to make things interesting), as:
# Tune2fs-c 90 / dev/sda5
In this way, if our sda5 partition contains the root "/" or "/ home", the system will force a check at least every 90 bootsdel system.
Alternatively, we can set the maximum time between two verifications (maximum mount count). The-i intervallo_max_tra_verifiche is what makes the job. If adding as a parameter that is taken as N days, if followed by the suffix w is understood as a number of weeks, if sseguito suffix m is understood as a number of months, in some examples:
# Tune2fs-i 10 / dev/sda1 'every 10 days'
# Tune2fs-i 2w / dev/sda1 'every 2 weeks'
# Tune2fs-i 2m / dev/sda1 'every 2 months'
We can naturally combine the two options, example:
# Tune2fs-c 60-i 1m / dev/sda5 'every 60 boot the system or after 1 months'
To see the current mount count and maximum count set to mount a partition, you use the-l, as:
# Tune2fs-l / dev/hda1 | grep-i "mount count"
Published in: linux, tips