Thursday, April 30, 2009

unable to install updates

Normally this is simply solved with:
Code:

sudo dpkg --configure -a

Since you have read other posts you know you won't see your password as you type.

You say your password is refused. Can you run any other sudo commands, such as:
Code:

sudo blkid

If you cannot run any sudo commands, if you type the following are you listed in the admin group?
Code:

groups

You should see something like:
Code:

your.user.name adm dialout cdrom plugdev lpadmin admin sambashare

Wednesday, April 29, 2009

Stuck in installer menu

Your not having the usual install problem. Most install problems come from just getting the CD to boot. Those are usually fixed by using a cheat code at boot.

But your getting into the middle of the install process. Thats almost always a sign of a bad burn. But don't think that your problem since you verified the CD. Now I wonder about the CD player itself. It may have a bad spot somewhere.

Try doing a net install using the https://help.ubuntu.com/community/Installation/MinimalCD. The iso is only a 9-10 MB download and gets what is needed from the Internet

Or try installing from a USB Stick.
https://help.ubuntu.com/community/Installation/FromUSBStick

Monday, April 27, 2009

Where is $PATH set up when Ubuntu boots?

The root path is set up in /etc/environment

You would normally set user PATH in ~/.bashrc with the following format:
Code:

export PATH=$PATH:$HOME/path_to_folder:$HOME/path_to_next_folder

Sunday, April 26, 2009

How To ftp

How To ftp upload to http://xxx.xxx.xxx

generally this is done with a user account like:
Code:

sftp user@serverdomain.com

then if you have the public key or password you will be logged in, and get a prompt
stfp>

you can the use pwd to see where you are and cd to navigate. the put command will upload the file from pwd of your machine or use complete paths.

Code:

put filename.php

lets say I had a directory called MyFavs in my Music folder full of great tunes. I might do:
Code:

put /home/spiderbatdad/Music/MyFavs/*

How To Fix X

the new version of Xorg doesn't reconfigure the graphics driver that way anymore. Instead, get into the VESA driver to get a working desktop (although it will be slow) by doing this from the recovery console:
Code:

xfix

Then from there, go to System->Administration->Hardware Drivers. It will let you know what proprietary drivers are available. Activate, and restart. See if that helps.

Friday, April 24, 2009

How To Repair Network Connection

Code:
sudo dhclient

This is exactly the same functionlity as the window "repair" button, which just does 'ipconfig /relaease" and "ipconfig /renew".

Thursday, April 23, 2009

How To SSH

1.you need to install openssh-server
2.you need to forward port 22 from your router to your "server"

Wednesday, April 15, 2009

How To Partition Your Drive Using Ubuntu Live CD

Boot into the live CD

hit Alt F2 and type gksudo gparted

Tuesday, April 14, 2009

How To Enable Wireless Of Eeepc In Ubuntu

Installing ath5k driver on Ubuntu 8.10 Intrepid Ibex

The ath5k driver was removed from Ibex's 2.6.27 kernel, and moved to the backport modules. To get wireless to work (at least for the 701), you need to install an additional package. You will need wired internet access for the following steps.

sudo apt-get update
sudo apt-get install linux-backports-modules-intrepid-generic
sudo modprobe ath5k

EeePC 900s and 701s require "blacklist ath_pci" added to "/etc/modprobe.d/blacklist" to enable wireless.

sudo -s
echo blacklist ath_pci >> /etc/modprobe.d/blacklist

After this you can reboot and your wireless should work.

Sunday, April 12, 2009

How To Re-Install Installed Packages From Previous Installation of Ubuntu

You can run the following commands to copy your installed app list and then import it to the new install. It won't carry over the personal settings but it will bring over the installed programs. The downside is that if there are apps that you have installed but don't really want on a clean install they will be present as well.

Create list and copy it somewhere that won't be reformatted during the new install:
Code:

dpkg --get-selections | grep -v 'deinstall' > ~/Desktop/installed_packages.txt

Copy installed_packages.txt to the new install Desktop, then run:
Code:

sudo dpkg --clear-selections
sudo dpkg --set-selections < ~/Desktop/installed_packages.txt
sudo apt-get update
sudo apt-get dselect-upgrade

Saturday, April 11, 2009

What Are The Main Directories In Linux

Here, only the most important directories in the system will be presented.

/bin is a place for most commonly used terminal commands, like ls, mount, rm, etc.

/boot contains files needed to start up the system, including the Linux kernel, a RAM disk image and bootloader configuration files.

/dev contains all device files, which are not regular files but instead refer to various hardware devices on the system, including hard drives.

/etc contains system-global configuration files, which affect the system's behavior for all users.

/home home sweet home, this is the place for users' home directories.

/lib contains very important dynamic libraries and kernel modules

/media is intended as a mount point for external devices, such as hard drives or removable media (floppies, CDs, DVDs).

/mnt is also a place for mount points, but dedicated specifically to "temporarily mounted" devices, such as network filesystems.

/opt can be used to store addition software for your system, which is not handled by the package manager.

/proc is a virtual filesystem that provides a mechanism for kernel to send information to processes.

/root is the superuser's home directory, not in /home/ to allow for booting the system even if /home/ is not available.

/sbin contains important administrative commands that should generally only be employed by the superuser.

/srv can contain data directories of services such as HTTP (/srv/www/) or FTP.

/sys is a virtual filesystem that can be accessed to set or obtain information about the kernel's view of the system.

/tmp is a place for temporary files used by applications.

/usr contains the majority of user utilities and applications, and partly replicates the root directory structure, containing for instance, among others, /usr/bin/ and /usr/lib.

/var is dedicated variable data that potentially changes rapidly; a notable directory it contains is /var/log where system log files are kept.

How To Zoom In To Your Desktop Or Applications Using Compiz

If you got a small screen like an Eeepc or other netbooks, you might want to Zoom-in so you could read the texts you're reading.
The first thing to do is enable Compiz:

1.Right-click on the desktop, then Change Desktop Background->Desktop Effects, and set it to Extra Effects.
2.Install Compiz Config Settings Manager via Add/Remove... in Applications.
3.After you have it installed, open it and check Enhanced Zoom Desktop in Accessibility.
To Zoom In:
1.Press the Winkey and hold, while you use the scroll wheel to zoom-in and out.
2.That's it!

Friday, April 10, 2009

Setting up a new computer to boot Windows and Ubuntu

Rule for for dual-boot. Windows gets first dibs.

Anyway, this is for when crap happens with Grub and you want at least Windows back.

1.If XP, boot up with Windows CD. Get to the C:\ prompt. Type "fdisk /mbr" withour quotes.

2.If Vista, boot up with Windows CD. Get to C:\ prompt. Type "bootrec /fixmbr" without quotes.


http://www.tprthai.net/bootmgr.htm

Wednesday, April 8, 2009

How To Put Title Bar On Blender (Windowed) Using Intel Video Card

Using the previous method won't work under Intel graphics card. The workaround is to use the default windows manager Metacity, without the effects.

1.First, create a text file with this one line:

metacity --replace | blender -w -p 0 0 x y (x is height, and y is length) Eg. 1024 and 768.

2.Save the file as “blender-metacity”.
3.Edit Gnome Menu. Right-click on the menu, then Edit Menus.
4.Click on Graphics, then on the right, Blender (windowed).
5.Click Properties.
6.On the command box click Browse, then choose the text file you created.
7.That's it!

Monday, April 6, 2009

How To Put Title Bar On Blender (Windowed) Using Nvidia Video Card

1.Edit Gnome Menu. Right-click on the menu, then Edit Menus.
2.Click on Graphics, then on the right, Blender (windowed).
3.Click Properties.
4.On the command box enter: blender -w -p 0 0 x y (where x is height and y is length).

How To Do The Desktop Cube In Compiz

1.Install compiz settings manager.
2.Check Desktop Cube, Rotate Cube. That's it!

Sunday, April 5, 2009

How To Record Gaming Consoles In Ubuntu

1.Find a PVR software connecting to it in S-Video.

Saturday, April 4, 2009

Auto Mounting Disks At Boot

1.Make yourself the owner at mounting. Since this is done during boot up with an fstab entry, change your line to something that id's you as the owner (assuming you are uid 1000):

#Entry for /dev/sdh1 :
UUID=3004A17004A13A2C /media/Movie1 ntfs-3g auto,uid=1000,rw,umask=000 0 0

Note: You can leave the 'users' option in there if you want others to be able to mount/umount the device.

How To Auto-Mount Partitions The Easy Way

1.Mount the partitions you want to auto mount. Places->Removable Media->The drive you want to mount. This will show on the desktop as icons.
2.System->Administration->Authorizations->storage->Mount file systems from internal drives.
3.Explicit Authorization->Grant->your user name.
4.Log-out, and your drives will stay mounted.
5.That's it!

Friday, April 3, 2009

Changing The User Permission To Your Files In Ubuntu

1.To change the permissions,
chown -R ~ user:user

Thursday, April 2, 2009

What is the proper way to install nVidia Drivers?

1.Try removing the current driver: from the terminal, navigate to where the driver is, stop gdm:

sudo /etc/init.d/gdm stop

2.and remove the driver:

sudo sh NVIDIA-Linux-x86_64-180.22-pkg2.run --uninstall

3.Then install the one in 'System->Applications->Hardware Drivers', or the 180.16.