Reinstall Ubuntu automatically
There is a very simple command that reinstalls all the distribution packages and reconfigures them automatically. This is particularly helpful when you have done a partial upgrade and eventually have broken the system dependencies tree.
sudo dpkg-reconfigure -phigh -a
since this command would take a lot of time to process (~1 hour) depending on your hardware in case you have a minor dependency problem you can fix it via
sudo apt-get install -f
sudo dpkg-reconfigure -phigh -a
As I watched, every single package was stopped, reconfigured, and restarted. This process took the better part of an hour and a half, since it was effectively the same as re-installing but using packages that already existed. It finally completed and dumped my back to a command line. I rebooted into recovery mode, selected “try to fix X”, rebooted, and, to my untter amazement, Ubuntu had repaired itself! I was restored to a completely functioning desktop with the upgrade installed!
My point, is, if something gets broken during an upgrade, it looks like there is not too much that this command cannot fix. So, before you give up and reinstall (like I was about to do), give it a shot! It might work for you, too.
“bash: ./configure: /bin/sh: bad interpreter: Permission denied”
“bash: ./configure: /bin/sh: bad interpreter: Permission denied” error commonly occurs when you have wrong options set in /etc/fstab and are trying to compile some code.
Read the rest of ““bash: ./configure: /bin/sh: bad interpreter: Permission denied”” »
Tags: fix
xset
xset is an X.org command line utility. A bunch of interesting things can be done with it:
Tweak the mouse sensitivity or accelleration on the fly
xset m (accelleration value)
Turn the system bell off temorarly
xset b off
Manually switch off the display / Force the display to go on standby now
xset dpms force standby (or suspend or off)
Manually activate the screen-saver
xset s activate
Intel WiMax 5350 and HP Pavilion laptops
There are controversial statements concerning the compatibility of Intel WiMax 5350 Pci-Express card with HP Pavilion laptops.
I haven’t tested it myself yet, however if you had the chance to please drop a note!
Apparently the main reason why most of the cards out there are not compatible with HP and Dell computers is due to an explicit restriction emerging from an agreement between Intel and these manufacturers to allow the installation of Centrino qualified WiFi card only. I managed to find clues about those two manufacturers, however I cannot say whether it also applies to others.
It would also be interesting to figure out since when HP started putting such burden on users ability to customize their computers. Sounds like Trusted Computing / TrustedCore in action, isn’t it?
Read the rest of “Intel WiMax 5350 and HP Pavilion laptops” »
Personalize folder icons in Windows
To personalize folder icons in windows create a file named desktop.ini in the target folder, then open it and paste these strings:
[.shellclassinfo] iconfile="file.ico" infotip="infotip"
where file.ico is the path and filename of the folder icon and infotip is a caption you could add to be seen when the mouse hovers the folder.
Open Source CMS (Content management system) with Joomla!
Open Source CMS (Content management system) creation with Joomla!
The system includes features such as page caching to improve performance, RSS feeds, printable versions of pages, news flashes, blogs, polls, website searching, and language internationalization.
It is written in the PHP programming language and uses the MySQL database system to store information.
plugins for Joomla!:
Tweak GNOME gconf-editor from the command line
Here is how to tweak GNOME gconf-editor parameters from the command line
Use the model (this should be all on the same line!):
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type Boolean --set /apps/path/to/key True
Get rid of your “battery may be broken” notification
Some HP Pavilion standard 6 cells batteries apparently use the same ID of 12 cells batteries. This would lead GNOME to display the following notification at every login:
Battery may be broken Your battery has a very low capacity 48% which means that it may be old or broken.
Read the rest of “Get rid of your “battery may be broken” notification” »
Tags: fix
Cannot connect to DSL Provider
With the Network-Manager shipped along with Ubuntu Karmic 9.10 is impossible to connect to any DSL Provider that has been manually set. To get back this feature you have to upgrade to the latest Network-Manager provided by the maintainers PPA:
Read the rest of “Cannot connect to DSL Provider” »
Tags: fix