Archive - How Tos RSS Feed

How To: Run Team Fortress 2, Portal, Half-Life 2, HL2 EP 1&2 In Ubuntu Using Wine Valve, Team Fortress, Games

There is a fantastic article on how to run the latest “orange box” games via wine on Linux. fsckin.com has written an in-depth how to on how to get the game up and running along with helpful screen shots along the way.

How-to for installing AWN, and Affinity (a search tool)

Since I just posted how to install compiz fusion, I felt its appropriate to give a how-to for installing Avant Window Manager, my favorite linux desktop application.

Edit your /etc/apt/sources.list and add these lines to the bottom:

## Avant Window Navigator
deb http://download.tuxfamily.org/syzygy42/ feisty avant-window-navigator
deb-src http://download.tuxfamily.org/syzygy42/ feisty avant-window-navigator

Then do this in a terminal:

wget http://download.tuxfamily.org/syzygy42/8434D43A.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade

Now to install the stable AWN version do

For AWN BZR do :
sudo apt-get install avant-window-navigator-bzr

You can install more applets for AWN by doing:
sudo apt-get install awn-core-applets-bzr

The Affinity in this repo requires Tracker to work properly:
sudo apt-get install tracker

Then run:
sudo apt-get install affinity-svn

***  UPDATED *****

1. Go to System -> Administration -> Software Sources and enter your password when asked.

2. A new window appears, click the second tab “Third-Party Software”, then click the ‘Add’ button and paste the following lines (one by one):

3.

deb http://ppa.launchpad.net/awn-testing/ubuntu hardy main
deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main
4. Now click the ‘Close’ button of the main window. It will ask if you want to reload the information about available software. Click ‘Reload’ and wait for the Software Sources window to close.
5. Open a terminal (Applications -> Accessories -> Terminal) and paste the following command:
sudo apt-get install awn-manager-trunk awn-extras-applets-trunk

Hit the “Y” key when asked, and complete the installation. Close the terminal window and start the AWN dock from Applications -> Accessories -> Avant Window Navigator.

No need for a “fucking” key now.

How to install compiz fusion in feisty fawn

I’ve loaded compiz fusion on several different machines (using Ubuntu feisty fawn) and I noticed the default repositories and restricted drivers don’t work on some machines. Here is a how-to for you if you have been running into some problems (such as the window boarders disappear when you enable compiz fusion).

1) Make a backup of your xorg.conf file.

2) Completely uninstall compiz fusion through the Synaptic Manager. Just run a search for ‘compiz’. Also, do a search for ‘desktop effects’ and uninstall it as well.

3) If you have an Nvidia card and using Automatix, you need to uninstall the Nvidia drivers in Automatix if you installed them.

4) Now, open up your software sources and uncheck all software sources on the ‘Third Party’ tab (even automatix).

5) Download and run Envy (let it overwrite your xorg file), then reboot.
http://albertomilone.com/nvidia_scripts1.html

6) Open up your software sources again and add the following repository in the ‘Third Party’ tab (after you close, it will prompt you to reload, click reload):
deb http://ppa.launchpad.net/amaranth/ubuntu feisty main

7) Next, open up Synaptic Manager and do a search for ‘compiz’ again, and install the following:
compiz
compiz-settings-manager

Note: After installation you will see an update and if you try to install it, it will say it can’t because its not authorized, don’t worry about this, you don’t have to install it. Instead, you can just remove the ‘deb http://ppa.launchpad.net/amaranth/ubuntu feisty main’ repository, you don’t need it anymore.

8 ) Before opening compiz, we should change a couple settings so open the compiz settings manager and change the following:
a) Click on ‘preferences’ and in the ‘backend’ section choose ‘Flat file configuration backend’
b) In the same window, create a new profile
c) Now, look for the ‘window decoration’ module and in the command box type: gtk-window-decorator

9) Now you can start compiz by opening a run app box (Alt+F2) and type: compiz –replace

Eric

DVD playback in Ubuntu.

Have you received an error like this?

totem_error.png

If you have, then follow these instructions to get you up and running.

1. $gksudo gedit /etc/apt/sources.list

2. Add the following to the bottom of your sources.list file

## Medibuntu - Ubuntu 7.04 “Feisty Fawn”
## Please report any bug on https://launchpad.net/products/medibuntu/+bugs
deb http://medibuntu.sos-sts.com/repo/ edgy free non-free
deb-src http://medibuntu.sos-sts.com/repo/ edgy free non-free

3. Save your file

4. Import key, copy and paste the following in your terminal

wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add -

5. sudo apt-get update

6. sudo apt-get install libdvdcss2 w32codecs

You should now be able to watch your legally purchased DVD movies on your linux system.

-j

Install Multimedia Codecs for Ubuntu

Quick and dirty for installing your multimedia codecs on your newly installed ubuntu (7.04) system.

From the command line run

$sudo aptitude install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse libxine-extracodecs w32codecs

(just copy and paste the above string)

This should get you up to speed with the most commonly used codecs.

-j

How To: Ubuntu 7.04 + ATI + Compiz Fusion install

I have used this exact process to install compiz-fusion on my system. I have an ATI XL800 graphics card, and this how to will deliver the sexiness you have been looking for. This how to assumes you have a base install of Ubuntu 7.04. Please comment or email any questions. Some of this how was derived from my previous how to on installing Beryl + XGL on ubuntu with ATI cards, I have tweaked it and used some of the snippets from other how to threads.

ASSUMPTIONS:
Fresh Install of Feisty Fawn, Ubuntu version 7.04.
All updates have been ran and system is now rebooted.


Copy and past the following commands:
Run each command on it’s own in your terminal, once it has completed, copy and paste the next command.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade


We need to enable the restricted driver for your ATI video card. To do this click on:
System >> Administration >> Restricted Drivers Manager

Select the check box to “enable ATI driver”
Once finished , reboot the computer and make sure fglrx loaded correctly. There should be an icon (small and green) in the notification area telling you that you have restricted modules loaded.


Install the XGL Server
Again, from the terminal run:

sudo apt-get install xserver-xgl

Now XGL has been installed, rock on. It’s almost time to crack open that celebration beer. But first we need to make sure XGL will load when you boot your glorious Ubuntu Hawtness machine. To do so, from the terminal run

sudo gedit /usr/local/bin/startxgl.sh

Ok, you should be in a text editor window. Copy and pase the following copde:

#!/bin/sh
Xgl :1 -fullscreen -ac -br -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie=”$(xauth -i nextract – :0 | cut -d ‘ ‘ -f 9)”
xauth -i add :1 . “$cookie”
exec dbus-launch –exit-with-session gnome-session

CLICK SAVE
CLOSE WINDOW

Sweet.. moving on..

Make the script executable, so from the terminal type:

sudo chmod a+x /usr/local/bin/startxgl.sh

Rock on, ok, next we need to make sure it loads in your session, so form the terminal type:

sudo gedit /usr/share/xsessions/xgl.desktop

In the editor copy / paste:

[Desktop Entry]
Encoding=UTF-8
Name=GNOME with XGL
Comment=
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application

Rock on, we are almost there, make that executable:

sudo chmod a+x /usr/share/xsessions/xgl.desktop


Now test your login. Logout, click sessions and chose GNOME with XGL.
If you are now back at the desktop it’s almost time to do the happy dance, go ahead and grab that bottle opener.. it’s almost Miller Time.


We need to add the security key to get some eye candy, so in your terminal type:

sudo wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add -


From the terminal type:

sudo gedit /etc/apt/sources.list

This will open your sources list, you know when you type “apt-get install” ? It looks at this file for the source of the repos. Ok, so what we want to do here is add a repository location for our eye candy. So at the bottom add

deb http://download.tuxfamily.org/3v1deb feisty eyecandy

SAVE
CLOSE


We go through this little number again:

sudo apt-get update

next run this command:

sudo apt-get install compiz compizconfig-settings-manager compiz-plugins compiz-gnome compiz-fusion-plugins-extra emerald emerald-themes

BADDA BING BABY, you now are aaallmost there..

Now, just add two separate entries in your sessions to make it start when you login:

System >> Preferences >> Sessions
Click ‘new’ and make its name: Compiz
And make its command: compiz –replace

And make one more:
Name: Emerald
Command: emerald –replace

Now, logout, log back in..

BOOM SHAKKA LAKKA !!

I have one question for you now… Do you like apples?

cause.. HOW DO YOU LIKE THEM APPLES? :) hahahha

enjoy.

~j

SSH Login With Client Keys

To use public keys with and ssh server, you’ll first need to generate a public/private key pair:

$ ssh-keygen -t rsa

You can also use -t dsa for DSA Keys, or a -t rsa1 if you’re using Protocol v1. If you are then you should upgrade to v2 because I said so.

After you enter the above command, you should see something like this:

Generating public/private rsa key pair.
Enter file in which to save the key (/home/josh/.ssh/id_rsa):

Just hit (enter), it will then ask you for a pass phrase; just hit (enter) twice: but read the security note.

This created two files: (/home/josh/.ssh/id_rsa) and (/home/josh/.ssh/id_rsa.pub) To use this key-pair on a server, try this:

$ ssh server “mkdir .ssh; chmod 0700 .ssh”
$ scp .ssh/id_rsa.pub server: .ssh/authorized_keys2

Naturally, replace “server” with “your” server :) It should ask you for your password both times. Now, just run a:

$ ssh servername

It should log you in automatically without a password, it will also use your new public key for “scp” connections as well.

If this did not work, then check the permission values on both (/home/josh/.ssh/*) and (server:/home/josh/.ssh/*). Your private key (id_rsa) should be 0600 (and only be present on your local machine), and everything else should be 0655 or better.

*Security Concerns

Some people consider using keys as a possible security issue. This is a valid concern because your private key could potentially be copied, but then again, so could a password, so just remember to keep what’s private, protected, and what’s public ..well, public.

Enjoy,
Any questions feel free to post in the comments and I will try to answer.

~j

How To Share printers from ubuntu with windows

ubuntu1.gif

By following these steps, you will be able to share a printer from your Ubuntu computer so that Windows XP and Windows 2000 computers can print to it. This document has been tested with Ubuntu versions 5.10, 6.06, 6.10, and 7.04.

1) Install the printer on the Ubuntu computer by using the printer wizard (System -> Administration -> Printers then double-click on “Add new printer” icon when the “Printers” window opens).

2) Open a terminal.

3) Modify /etc/cups/cupsd.conf with your favourite editor, for example

gksudo gedit /etc/cups/cupsd.conf

or

sudo nano -w /etc/cups/cupsd.conf

4) Now you need to edit this file in order to allow connections from your network. Assuming that your network uses addresses starting with “192.168.0.” you need to add the following: (you only need to modify the top level (first) Location tag because other Location tags seem to inherit permissions)

<Location />

Order Deny,Allow

Deny From All

Allow From 127.0.0.1

#Modify 192.168.0.* to match your configuration.

Allow From 192.168.0.*

</Location>

Now, you need to set the TCP port that the printer system will accept connections on.

In Ubuntu 5.10 (Breezy) and Ubuntu 6.10 (Edgy) add this line under the Network Options part of the file (somewhere around line 420), or in Ubuntu 6.06 (Dapper) add the following line to /etc/cups/cups.d/ports.conf:

Port 631

and comment out:

Listen 127.0.0.1:631

5) Save the file and exit the editor. Now restart the printing system with this command:

sudo /etc/init.d/cupsys restart

6) Now add the printer to the Windows computer by using the Windows “Add Printer” Wizard. Type in the following for the printer URL:

http://192.168.0.100:631/printers/Deskjet-940C

Replace “192.168.0.100″ with the IP address of the Ubuntu box. Replace “Deskjet-940C” with your printer’s name.

If you add this entry to C:\WINDOWS\system32\drivers\etc\hosts

192.168.0.100 printer-server

, replacing “192.168.0.100″ with the IP address of the Ubuntu box, then you can use a URL like

http://printer-server:631/printers/Deskjet-940C

instead.

You should use the appropriate Windows printer driver for your printer.

Page 2 of 2«12