Archive

Posts Tagged ‘Linux’

How to: Change the login screen in Ubuntu 9.10 a.k.a. Karmic

Changing the login screen of ubuntu 9.10 is somewhat different and complicated compared to other versions of ubuntu. But still we can change it the way we need it to behave. For this we will have to do some steps. Let me explain those steps here.

1. Logout of your current session and return to the GDM
2. Switch to the tty command line prompt using Ctrl-Alt-F1
3. Login using your normal login/password
4. at the command line prompt type: export DISPLAY=:0.0
5. then type: sudo -u gdm gnome-control-center
6. Switch back to the gdm screen using CTRL+ALT-F7
7. The gnome-control-center should be loaded. Use it to configure your GDM.
8. Click on the Appearances icon, in appearances you can change your GDM’s font, theme and background image.
9. Close the gnome-control-center and login normally.

These are the steps. Here in the gnome control center you can lot more than just changing the login screen.

Have any doubts? feel free to ask in comments.

credit:Ubuntu Mini

How to: Make a password less SSH Login

First  you will have to generate key on local machine.

For that type in the following command in a terminal. Here we are using RSA encryption.

ssh-keygen -t rsa

It will ask you for a password but you can leave it blank.

Note you could also pick -t dsa if you prefer DSA encryption.

Ensure that the remote server has a .ssh directory

Make sure the server your connecting to has a .ssh directory in your home directory. If it doesn’t exist you can run the ssh-keygen command above, and it will create one with the correct permissions.

Copy your local public key to the remote server

If your remote server doesn’t have a file called ~/.ssh/authorized_keys2 then we can create it. If that file already exists, you need to append to it instead of overwriting it, which the command below would do:

scp ~/.ssh/id_rsa.pub remote.server.com:.ssh/authorized_keys2

Now ssh to the remote server

Now you can ssh to the remote server without entering your password.

Security

Now keep in mind that if someone need to login to the remote server, all s/he need is the file on your local machine ~/.ssh/id_rsa, so make sure it is secure.

How to : Install PHP MySql Apache server in Ubuntu

Since we all love to do things in a simple way, I introduce you LAMP Server. LAMP is Linux Apache MySql PHP server.

It’s useful if you want to set up a private web development environment. Perhaps you want to develop your own WordPress theme. If you are developing websites and experimenting, it’s nice to do it in the privacy of your own computer, rather than out on the public internet.

Install LAMP

The Ubuntu developers have created a very easy way to install a LAMP server on an existing system. It’s all kicked off with this one simple terminal command.

sudo apt-get install lamp-server^

Note: Please make note of the caret (^) in the above command, it’s not a typo, it’s required to make the command work.

Access Home Computer From Office via Internet

Step 1. Install the VNC server.

Windows users: TightVNC is free Windows VNC server and client software. TightVNC is a nice choice because it also allows for file transfers and high compression levels for slow connections. Download TightVNC from here and run the installation on your home computer. Start the server, and set a password for incoming connections.

TightVNC can be set to run as a Windows service, which means your Windows usernames and passwords can be used to authenticate on the VNC server connection. Be sure all your Windows passwords are set and strong, and that any passwordless guest accounts are disabled.

Mac users: OSXvnc is a free Mac VNC server. Download, install, set up a password and start the server.

If your VNC server is connected directly to the Internet, it is now listening for Internet requests on port 5900, VNC’s default port (which is also configurable). Visit WhatIsMyIP from your home computer to determine its IP address and write it down.

Step 2. Install the VNC client.

On the remote Windows computer, also download and install TightVNC, but this time, start the viewer, NOT the server. If you’re on a Mac, download the free Chicken of the VNC Mac viewer to connect to your home PC. Enter your home computer’s IP address and password to connect.

Here’s a screengrab of a VNC connection to my Windows PC from my Mac. Click on the image to see a larger version.

And that’s that! You’re virtually sitting at your home desktop from anywhere in the world.

A few extra VNC tips to chew on:

  • For slower network connections, set the compression to “best.” The window image quality will be lower, but the connection response will be snappier.
  • Bring a VNC viewer with you on a USB memory stick so you don’t have to download and install on every computer you want to use to connect to your server.
  • Avoid having to install a server on Mom’s computer; email her the 166K self-extracting SingleClick UltraVNC server for your next tech support phone session. More on SingleClick in an upcoming Lifehacker feature.

FOOTNOTES:
[1] LogMeIn is a web-based application that also provides this remote desktop control and may be a better option for some folks. I prefer VNC because it’s more of a challenge and doesn’t require third party intervention.

[2] If your home computer is behind a home network router with a firewall, remote computers will not be able to connect. You must open up a port on your router’s firewall and forward requests to it to your computer.

[3] Alternately, you can enter your home computer’s domain name. For setting Up a Hostname For your computer You can use the free service of DynDNS.

Credits:[LifeHacker]

Firefox for Mobile Launched

Atlast firefox for mobile has released. Moving right along from the release candidate, Firefox Mobile has arrived in 1.0 form on phones like the N900 that run Maemo. It’s got add-ons, an AwesomeBar, desktop syncing through Weave, and plenty more to recommend it. We just wish it could work on more devices.

Image from jkOnTheRun.

Firefox Mobile’s features are listed and explained at a helpful Mozilla page, but to see what Firefox Mobile looks like in action, check out mobile-obsessed blog jkOnTheRun’s screenshot tour. You can also see the thinking, and a few action shots, of Firefox Mobile in Mozilla’s own video, ported by the folks at the Android and Me blog to YouTube:

Via [LifeHacker] Via Firefox for Mobile Now Available on Nokia’s Maemo Platform! [The Mozilla Blog]

How To: Install Latest firefox Using apt-get command

Previously I had posted an article on how to install latest firefox, but it was not even a standard install procedure, and so do it have lots of issues. Now today i found one way to install Latest version of firefox using “apt-get” command, which is indeed a standard installation procedure in Ubuntu.

So here it Goes:

If you are using Ubuntu Jaunty (9.04) or later:

The repository to add, if you’re adding it manually to your sources.list, is

deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main

and you can use the following command to add it to your sources.list in one step:

echo -e “\ndeb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main” | sudo tee -a /etc/apt/sources.list > /dev/null

If you are using Ubuntu Intrepid (8.10) or earlier (due to a bug in apt):

The repository to add, if you’re adding it manually to your sources.list, is

deb http://switch.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt all main

and you can use the following command to add it to your sources.list in one step:

echo -e “\ndeb http://switch.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt all main” | sudo tee -a /etc/apt/sources.list > /dev/null

Then add the package signing key to your keyring,

by running the following command:

sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com C1289A29

Update your package database:

sudo apt-get update

Install your desired package, with one of the following commands:

sudo apt-get install firefox-mozilla-build

Now goes another reason for using these steps, You can install both thunderbird and seamonkey aprt from firefox.

To install them issue the following commands.

sudo apt-get install thunderbird-mozilla-build

sudo apt-get install seamonkey-mozilla-build


Full credit: RiotingPacifist -[Freenode] #ubuntu