Ubuntu Connect to AIX V5.3 XServer

How to redirect graphical output of AIX to Ubuntu and run:

1) Go to System ->Administration ->Login Window->Security-> untick “Deny TCP connections to Xserver”
2) Log out and then back in
3) Type these commands in the terminal:
xhost +
telnet host_name
export DISPLAY=Client_IP:0.0
4) Run whatever x-application you need 🙂

Tagged , , | Leave a comment

How to restart the audio in Ubuntu

  1. check for process pulseaudio
  2. kill it
  3. re-open it with the -D flag
  4. Audio is back 🙂
Tagged , | 1 Comment

Firefox ROCKS! Firefox Profiles

I have just disovered a feature that I needed sooooooooooo much @ work when having to access multiple networks with different proxies; this feature is ‘Profiles’. You can have many Firefoxes on the same OS :), each one with totally different settings, plugins, proxy, homepage, passwords, history…etc, here are the steps (for Ubuntu):

  1. Close ALL open Firefox windows
  2. Open a terminal and type “firefox -ProfileManager”
  3. Create new profiles as you need and don’t forget to unselect the option of not prompting in order to be prompted for the profile you need each time you start firefox
  4. Enjoy!
Tagged , | Leave a comment

Secure & Persistent Ubuntu 8.10 on USB Flash Disk

A very simple yet effective way to have Ubuntu on a flash disk with you, but not a live session as in one of my previous posts in Ubuntu 8.04, the difference between it and the live session is that the live session doesn’t provide any means of authentication which makes it useless for anyone who wants to keep his/her private data on it, and so, you’ll have to do the following:

Prerequisites:

  1. Access to Ubuntu 8.10 (Installed or Live CD)
  2. An Ubuntu 8.10 Source (.iso or a CD)

Steps:

  1. Use the Ubuntu 8.10 tool (System->Administration->Create a USB Startup Disk) and attach your USB Flash Disk to the computer and wait till it finishes.
  2. Restart the computer (make sure that you boot from the USB stick) and choose your language and then the first option in the menu (Install Ubuntu without any modifications to your system)
  3. Go to System->Administration->Login Window, Security tab, and Disable Automatic login and timed login
  4. Create a password for user “root” (From System->Administration->Users and Groups)
  5. Allow local system administrator login
  6. logout of the user “ubuntu” and login as “root” with the new password you’ve just created.
  7. Remove the existing “ubuntu” user using the command “userdel -f ubuntu”
  8. Create a new user named “ubuntu” and set its password
  9. Log out and login as the new user
  10. Enjoy!!
Tagged , , , | Leave a comment

Bash Scripts To Startup/Shutdown Siebel Server and Gateway

The following scripts will make Starting/Shutting Down Siebel Server and Gateway a baby’s task, each of them does the following:

  1. Makes sure the user running the scripts is the “siebel” user to avoid running the processes under any other user (which unluckily happened to me many time)
  2. Loads Siebel Environment variables by running the “siebenv.sh” script (which is provided by Oracle)
  3. Runs the “start_server all”, “start_ns”, “stop_server all” or “stop_ns” commands.

Here they are:

Assumptions:

  1. There is only one enterpise in one siebel server
  2. All the scripts are put in folder “/CRM/Scripts” in my example
  3. “/siebel” is Siebel installation folder
  4. “siebel” is the user name used to install and configure Siebel

Startup The Gateway:

if [ $USER == “siebel” ]; then
cd /siebel/gtwysrvr
. ./siebenv.sh
/siebel/gtwysrvr/bin/start_ns
else
echo “Please login as user siebel to run this script.”
fi

Shutdown The Gateway:

if [ $USER == “siebel” ]; then
cd /siebel/gtwysrvr
. ./siebenv.sh
/siebel/gtwysrvr/bin/stop_ns
else
echo “Please login as user siebel to run this script.”
fi

Startup Siebel Server:

if [ $USER == “siebel” ]; then
cd /siebel/siebsrvr
. ./siebenv.sh
/siebel/siebsrvr/bin/start_server all
else
echo “Please login as user siebel to run this script.”
fi

Shutdown Siebel Server:

if [ $USER == “siebel” ]; then
cd /siebel/siebsrvr
. ./siebenv.sh
/siebel/siebsrvr/bin/stop_server all
else
echo “Please login as user siebel to run this script.”
fi

Startup the Gateway and then Siebel Server (They must be started in that order):

if [ $USER == “siebel” ]; then
. /CRM/Scripts/StartupGateway
. /CRM/Scripts/StartupSiebel
else
echo “Please login as user siebel to run this script.”
fi

Shutdown the Siebel Server and then the Gateway (Again, they must be shutdown in this order):

if [ $USER == “siebel” ]; then
. /CRM/Scripts/ShutdownSiebel
. /CRM/Scripts/ShutdownGateway
else
echo “Please login as user siebel to run this script.”
fi

That’s it! It might look stupid, but this is the way I like it, keep it simple & stupid 🙂

Tagged , | Leave a comment