Just a thought

a very casual blogger

Tag Archives: Ubuntu

Install Google Chrome on Ubuntu

Using Ubuntu PPA

First you need edit /etc/apt/sources.list file

sudo gedit /etc/apt/sources.list

Add the following two lines

deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu jaunty main

save and exit the file

Now add the GPG key using the following command

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5

Update source list

sudo apt-get update

Install chromium browser using the following command

sudo apt-get install chromium-browser

This will complete the installation

If you want to open chromium go to Applications->CrossOver Chromium->Chromium

Chromium web browser in action

Source

Ubuntu 8.04 ufw

Ubuntu 8.04 comes with a new firewall management tool called “ufw” (Uncomplicated Firewall). The official description for ufw is

ufw – program for managing a netfilter firewall.

type ufw to see the commands.

Commands:
enable            Enables the firewall
disable            Disables the firewall
default ARG            set default policy to ALLOW or DENY
logging ARG            set logging to ON or OFF
allow|deny RULE        allow or deny RULE
delete allow|deny RULE    delete the allow/deny RULE
status            show firewall status
version            display version information Read more of this post

Ubuntu 8.04 Xgl fix

Spent my entire Saturday afternoon upgrading my IBM Thinkpad T41 from Ubuntu 7.10 to 8.04. Spend roughly 5~6 hours on the entire process. No, I didn’t have any problem using the update manager nor was I on 56k modem. Actually the entire upgrade process was pretty fast and smooth that less than a hour to finish. So why did it take me 5~6 hours ?

My first reboot after the upgrade finished takes me to the new Ubuntu 8.04 login screen. I login and waited for it to load. It was so sluggish even as I browse through the top menu looking for new features. Web browsing on the latest Firefox 3 Beta 5 was extremely slow and not to mention scrolling down on a webpage.. it barely runs as Firefox would turn gray meaning the application is “not responding” I checked to see if my Hardware drivers (ATI X300) were installed and yes they are. No settings has been changed since upgrading from 7.10 to 8.04. I was beginning to regret upgrading. Read more of this post

Ubuntu Gutsy Gibbon (7.10) SAMBA / CUPS Server Setup

In this tutorial I will focus on setting up a (CUPS) Print Server.

Server Spec :
AMD Athlon 3800+
Asus A8N-SLI
2GB of RAM
WD Raptor 75GB HDD
Built-in NIC
Nvidia 7900GT Video Card

Printer :
Brother MFC-7820N

This PC was a gaming PC until I decided to turn it into a server so some of the spec might be odd to have inside a server. But nevertheless, this is what I have to work with. So Lets begin.

I am going to assume that you already have Ubuntu Gutsy Gibbon (7.10) Server Edition, OpenSSH, and Samba installed. Along with any necessary updates.

Installed & Updated

Ubuntu 7.10
OpenSSH
Samba
*Any Necessary Updates

CUPS Installation the latest version at the moment is CUPS 1.3.2

sudo apt-get install cupsys

Your CUPS configuration file should be located here

/etc/cups/cupsd.conf

If you are currently working the server machine then you should be able to log onto the CUPS web interface.

http://localhost:631

If you want to access the CUPS web interface with your workstation or laptop then you will need to edit the cupsd.conf file.

sudo nano /etc/cups/cupsd.conf

Find this line :
# Only listen for connections from the local machine.
Listen localhost:631

Change to :
# Only listen for connections from the local machine.
Listen [192.168.xxx.xxx]:631

Find this line :
# Restrict access to the admin pages...

Order allow,deny
Allow localhost


Change to :
# Restrict access to the admin pages...

Order allow,deny
Allow [192.168.xxx.xxx]

Afterward, restart the CUPS daemon:

sudo /etc/init.d/cupsys restart

The CUPS web interface should work using your laptop or workstation.

http://192.168.xxx.xxx:631

Gutsy Gibbon 7.10 + Xgl + ATI fglrx + Compiz Fusion

If you are doing fresh install of Gutsy

When using apt-get, please close Synaptic Package Manager or Update Manager.

  1. Enable fgrlx driver.Install linux-restricted-modules and restricted-manager provided in the restricted repositories:

    Code:

    sudo apt-get updatesudo apt-get install linux-restricted-modules-generic restricted-manager

    Open the restricted drivers manager in “System -> Administration -> Restricted Drivers Manager” and select “ATI accelerated graphics driver”.

  2. Install xserver-xgl package

    Code:

    sudo apt-get install xserver-xgl
  3. Install compiz

    Code:

    sudo apt-get install compizconfig-settings-manager compiz compiz-core compiz-fusion-plugins-main compiz-fusion-plugins-extra compiz-gnome compiz-plugins libcompizconfig-backend-gconf libcompizconfig0
  4. Reboot
  5. Log in. 3D effects should be enabled!

If you are upgrading from Feisty 7.04 or earlier versions and you have run Xgl before.

When upgrading, you may experience blank screen, a screen with no windows and toolbars, a screen with only a background, or any other mess. It is caused by the customized scripts for Xgl which do not work with Gutsy. So, we need to clean up. We will end up wiping your custom Compiz settings — but this may be required since some customizations applicable to early alpha versions of Compiz Fusion in Feisty are incompatible to more mature Compiz Fusion version in Gutsy.

If you really can’t log into a working X session and open a terminal, simply press “Ctrl-Alt-F1” to get into the text prompt and follow the removal steps (1-4) from the text interface. After a reboot, the graphics should work better.

When using apt-get, please close Synaptic Package Manager or Update Manager.

  1. Remove compiz

    Code:

    sudo echo "activate sudo"sudo apt-get --purge remove compiz*sudo apt-get --purge remove libcompiz*sudo apt-get --purge remove libdecoration0
    
    sudo apt-get --purge remove compizconfig-settings-manager
    
    sudo apt-get --purge remove python-compizconfig
  2. Remove Xgl

    Code:

    sudo apt-get --purge remove xserver-xgl
  3. Clean up

    Code:

    sudo apt-get autoremove
  4. Remove customizations

    Code:

    rm -rf ~/.compizrm -rf ~/.config/compizrm -rf ~/.gconf/apps/compizsudo rm -i /usr/local/bin/startxgl.sh
    
    sudo rm -i /usr/share/xsessions/xgl.desktop

    When asked to remove the files, type YES. If the files were present and you removed them, proceed to the next item. Otherwise, undo customizations to /etc/gdm/gdm.conf and /etc/gdm/gdm.conf-custom that you have made from this section of the guide

  5. Reboot
  6. Login back in and find yourself in a 3D effect devoid session. You may not even be running a windows manager. If you can’t move windows and don’t see window decorations, press “Alt-F2” and type

    Code:

    metacity --replace
  7. Verify that everything else is working properly, e.g. Firefox opens, Wired and/or Wireless Network connects, etc. This is the best time to troubleshoot everything else until we enable 3D effects.
  8. Enable fgrlx driver.Install linux-restricted-modules and restricted-manager provided in the restricted repositories:

    Code:

    sudo apt-get updatesudo apt-get install linux-restricted-modules-generic restricted-manager

    Open the restricted drivers manager in “System -> Administration -> Restricted Drivers Manager” and select “ATI accelerated graphics driver”.

  9. Reboot if necessary.
  10. After reboot, log back in.
    Open terminal and run

    Code:

    fglrxinfo -display :0

    and verify that you see something like this:

    Code:

    display: :0.0  screen: 0OpenGL vendor string: ATI Technologies Inc.OpenGL renderer string: ATI Mobility Radeon X1400OpenGL version string: 2.0.6473 (8.37.6)

    If you don’t have command fglrxinfo, you either don’t have a supported ATI card or you missed a step or two. Go back through all steps. If unsure, post your /etc/X11/xorg.conf in this thread.

  11. =================================
  12. Are you ready to get back into the wobbly windows and Desktop Cube?
  13. =================================
  14. Install Xgl.

    Code:

    sudo apt-get install xserver-xgl
  15. Install compiz

    Code:

    sudo apt-get install compizconfig-settings-manager compiz compiz-core compiz-fusion-plugins-main compiz-fusion-plugins-extra compiz-gnome compiz-plugins libcompizconfig-backend-gconf libcompizconfig0
  16. Reboot
  17. Log in. 3D effects should be enabled! You no longer need to select a special Xgl session.

Troubleshooting

A common problem in step 10 is fgrlxinfo output like this:

Code:

# fglrxinfo -display :0display: :0.0 screen: 0OpenGL vendor string: Mesa project: www.mesa3d.orgOpenGL renderer string: Mesa GLX Indirect

OpenGL version string: 1.4 (2.1 Mesa 7.0.1)

That means you are not using the restricted driver. Enable it via Restricted Driver Manager — see step 8. Just in case, run command

Code:

sudo aticonfig --initial

then reboot (that’s step 9).


http://ubuntuforums.org/showthread.php?t=580748

Simple Custom 401 page

I am setting up this 401 page on my Ubuntu Server 7.04 with LAMP.

First off, create a simple html page which I named 401.html. Place the 401.html under your root folder (default root is /var/www/apache2-default/). Now to redirect the users to your newly created 401 page instead of the default 401. Edit the apache2.conf.

Sudo gedit /etc/apache2/apache2.conf

Find the following line:

# Some Examples:
#ErrorDocument 500 “The server made a boo boo.”
#ErrorDocument 401 /401.html
#ErrorDocument 404 “/cgi-bin/missing_handler.pl”
#ErrorDocument 402 http://www.example.com/subscription_info.html

As you can see, take the # off and link it to your 401.html file.

Restart apache and your are good to go.

sudo /etc/init.d/apache2 restart

Design a site like this with WordPress.com
Get started