вторник, 31 август 2010 г.


Ubuntu Linux: Delete directory command in Terminal


You need to use the rmdir utility / command. The rmdir utility
removes the directory entry specified by each directory argument,
provided it is empty. Arguments are processed in the order given. In
order to remove both a parent directory and a subdirectory of that
parent, the subdirectory must be specified first so the parent
directory is empty when rmdir tries to remove it.
Remove / Delete directory called /tmp/fooOpen the terminal. Type the following command:
$ rmdir /tmp/foo

понеделник, 30 август 2010 г.

 Ubuntu will not start on Thinkpad


Workaround A: Re-enable KMS
For release we made the decision to blacklist KMS for 8xx hardware. If you had found that beta1 and earlier Ubuntu had been working fine, this may be an effective workaround for you.
To turn KMS back on, run this command in a Terminal window and reboot:

echo options i915 modeset=1 | sudo tee /etc/modprobe.d/i915-kms.conf
sudo update-initramfs -u

In some cases, this bug causes i8xx users to boot into a blank screen on both the LiveCD/USB and a clean install or upgrade. To enable the above workaround in these situations, add

i915.modeset=1

to your kernel boot parameters.

From the LiveCD:
1) At the purple screen with a keyboard and stickfigure, press Enter to get to the menu.
2) Hit Enter to select your language, and then press F6 and then Esc.
3) Add "i915.modeset=1" after "quiet splash".
4) Press Enter to boot the LiveCD.

From an installation:
1) Hold down Shift while booting to enter the GRUB menu.
2) Press 'e' to edit.
3) Add "i915.modeset=1" after "quiet splash".
4) Ctrl+x to boot.
If adding "i915.modeset=1" to your boot parameters allows you to boot successfully, you then need to enter the command above into a terminal to make the changes permanent.

Add 7z (7-Zip) File Archive Support to Ubuntu







Install 7z file archive support from the package p7zip (click the link to install), or by running the command below in your terminal:


sudo apt-get install


You can now create 7z archives by right-clicking a file or folder and selecting Create Archive, and selecting the 7z option. Open a 7z archive by double clicking it.

Open RAR Archives in Ubuntu




The package unrar is not open source, but should be able to open any RAR files you can find. This is likely the option you want. You need to have the Ubuntu multiverse repository enabled to install this package. Install unrar from the package unrar (click the link to install), or by running the command below in your terminal:

sudo apt-get install unrar

After either of these package are installed, RAR archives will open seamlessly in Ubuntu’s archive manager.
Change home folders location


Here is how to change the location of any of your home sub-folders(the example deals with the desktop folder)
Open your terminal and go for
~/.config/user-dirs.dirs

In the following line:
Code:XDG_DESKTOP_DIR="$HOME/"

One can change  different values for the corresponding folders, too.


UPDATE:
Much easier method is using Ubuntu tweak software

Thinkpad middle button config

Step 1. Create a new file

sudo nano /usr/lib/X11/xorg.conf.d/20-thinkpad.conf

Step 2. Insert the following


Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection

Step 3. Save file, restart computer, and enjoy!
Thinkpad Volume On Screen Display Ubuntu Fix



 The volume Up, Down, and Mute buttons work, but no volume bar was displayed on the screen. Here are the instructions to get On Screen Display (OSD) working under Ubuntu Linux.

Jaunty 9.04

* sudo -i
* echo enable,0x00ffffff > /proc/acpi/ibm/hotkey
* gedit /etc/rc.local
* Add Line: echo enable,0x00ffffff > /proc/acpi/ibm/hotkey

Karmic 9.10

sudo -i
cp /sys/devices/platform/thinkpad_acpi/hotkey_all_mask /sys/devices/platform/thinkpad_acpi/hotkey_mask
gedit /etc/rc.local
Add Line: 
cp /sys/devices/platform/thinkpad_acpi/hotkey_all_mask /sys/devices/platform/thinkpad_acpi/hotkey_mask

Lucid 10.04

* Same as Karmic 9.10 above!