Categories
Hardware Solutions Ubuntu

Ubuntu Check Disk for BadBlocks & Errors

Toshiba HDD2189 2.5" hard disk drive plat...
Toshiba HDD2189 2.5″ hard disk drive platters, head and actuator arm. near 1:1 macro. (Photo credit: Wikipedia)

If your system regularly does ubuntu check disk or scan disks on boot up and if it often finds errors during the check, its highly possible that you have bad sectors on your hard disk.  In such cases its highly recommended to do a disk check to detect if you have bad sectors on the disk.

Categories
Linux Solutions

Kate: Not allowing to Edit Specific Files – Solution



Recently I encountered an interesting problem with Kate. When ever I opened certain files it opened them in read only mode. The files had the necessary permissions to let me write and I could open them in nano or vim and edit them successfully.

There can be multiple reasons for this happening:

  • File is in use in some program (known to cause problems with Kate)
  • File is a PHP file and being accessed somewhere
  • File has more than 1024 characters in a line. (The limit might vary but after a point the files are opened as read only)
Categories
Linux Open Source Solutions Web

Using Static IP Address On Ubuntu



By default most unix boxes now come with dynamic IP enabled for all its networking needs. This is a very useful configuration but at times it helps to know that a system’s IP will remain the same no matter what changes occur around it. A classic example of this case can be a server.

In any case if you want to change your unix box to use static IP the following simple steps will get your task done:

Categories
Linux Open Source Solutions Web

Fixing WiFi regulatory rule in Unix

Wifi routers usually specify the regulatory rules for all devices connected to their network. In rare cases a router may go rouge and specify the wrong regulatory domain, which might effect the quality of the connection and at times may make the network unreachable even if the network says that its connected.

Below are the debug messages from the command “dmesg” in one such case:

Categories
Device Hardware Laptop Linux Solutions Ubuntu

Getting the Latest Ubuntu Graphics Drivers on Samsung NC20

Official Ubuntu circle with wordmark. Replace ...
Image via Wikipedia

To get the best graphics performance out of your Samsung NC20, you will need to install the latest graphics drivers.  These drivers unfortunatey are not easy to find on the web, so here is a step-by-step installation instructions for driver installation on Ubuntu 10.10.  Special thanks to the wonderful folks at Ubuntu Forums(Wonderful source, thumbs up to the contributors).
{adinserter 2}
The steps explained below were taken from post #542 from this Ubuntu Forums page.

  1. Download this zip file via_chrome9_drv_u1010_v2.zip and unzip it
  2. Open a terminal window and change into that directory (“cd ~” for home dir)
  3. Install the “dkms” package from Ubuntu package repository
    $ sudo apt-get install dkms
  4. Install the kernel driver:
    $ sudo dpkg -i chrome9-drm_87a.55689-maverick1_all.deb
  5. Install the X.org driver:
    $ sudo dpkg -i --force-confmiss --force-confnew xserver-xorg-video-chrome9_87a.55729-maverick1_i386.deb
  6. Update /etc/X11/xorg.conf file
  7. Copy the provided xorg.conf.nc20 file to xorg.conf
    $ sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
    $ sudo cp /etc/X11/xorg.conf.nc20 /etc/X11/xorg.conf
  8. Reboot Ubuntu
  9. Check if it’s working: Open /var/log/Xorg.0.log in a text editor. If you see several lines containing “VIA(0)”, then the new driver is being used.

Also note:

  • The sample xorg.conf.nc20 is only installed if you add the “–force-confmiss –force-confnew” options to dpkg.
  • Although VIA marks the source code this hacked driver is based on as stable, I cannot guarantee it to be bug-free. Use with caution.
Enhanced by Zemanta