Category Archives: Linux - Page 2

Good Solaris How To list

Was looking for a way to grep for something in a subdirectory and stopped by this short but usefull Solaris How To list.

The grep item works with unix / linux boxes as well.

http://jeffnester.com/howtos/solaris/solaris.html

enjoy the power of shell :)

Installing Java plugin for Firefox on Ubuntu 10.4 (Lucid)

After upgrading from Ubuntu 9.10 to 10.4, I had some issues getting Java to work with Firefox, after checking the software center, I found that the Java plugin has been removed.

To get this fixed, I simply followed the steps in here http://ubuntuforums.org/showpost.php?p=9008918&postcount=32 and it worked well after that.

Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 “Karmic Koala”

After updating to Ubuntu 9.10 “Karmic Koala”, i had some problems with Zend Studio GUI, some buttons when clicked appear to be pressed, but no action follows.

After searching for a while i found this fix in Zend support pages, and it solved the issue

here is the link for the fix :
http://kb.zend.com/index.php?View=entry&EntryID=435

How to Add & Subtract time code in Python

I have been developing some tools for the media production lately, i found a neat way to add or subtract certain amount of seconds to a given time code.

for example i have a video that starts from 12:45:05 and i want to add 59 seconds to it and use the new time.

from datetime import datetime
from datetime import timedelta
 
time = datetime(2009, 1, 1, 12, 45, 05, 0)
 
diff = timedelta(seconds = 59)
 
final_time = time + diff

Desktop Linux For The Windows Power User

Very nice article about Ubuntu 9.04 “Jaunty”, posted by Adam Overa yesterday on tomshardware.com

Click here to read : http://www.tomshardware.com/reviews/ubuntu-linux-guide,2293.html

Highlights :

  • Introduction
  • Understanding Partitions
  • Partitioning
  • Installation
  • Booting Ubuntu for the first time
  • Ubuntu Desktop
  • Updating Ubuntu system & drivers
  • How to install software on Ubuntu
  • Codecs for multimedia playback on Ubuntu
  • Getting help online

Enjoy reading & feel the freedom, Long live Ubuntu :)

Ubuntu / Open Source Presentation in Cairo Univeristy

IEEE has organized an open source week in Cairo University, for Engineering Students, i have been happy to be recommended to present the first day.
http://www.ieee-cusb.org/home/index.php?option=com_content&view=article&id=78:open-source-week

I started with a presentation about Open Source, definitions and different lisences, and what is the whole story about, then a presnentation about Ubuntu and a live Demonstration, then installation session where more than 150 Ubuntu CD was distributed.

The audience was about 200 student, and some graduates also, was a great day, it is such a pleasure to help people kiss the blue screen of death Goodbye :D

How to enable Remote Desktop on Ubuntu from Terminal

The remote desktop function in ubuntu is a nice handy one, to enable it from terminal
first ssh to the server you wanna remote desktop, then install tightvncserver

sudo apt-get install tightvncserver

then run it

tightvncserver

it will ask you to set a password for using this option and it will return the x desktop id.
Now go to Applications -> Internet ->Remote Desktop Viewer, and enter the address of the machine followed by the x desktop id like this :

servername:1

where 1 is the x server id.

—-

here is a good comparison between remote desktop apps.
remote desktop software

Install Yum on RHEL4

In my company they purchased some software from Autodesk that comes on Redhat Enterprise 4, i needed to install some packages on the system for the use of some internal applications, instead of installing packages and all the dependencies, i though using automatic installer like yum would be better, below is the steps to have yum installed on your RHEL4 machine :

1. Install rhel4
2. Download Yum rpm package

wget http://gd.tuwien.ac.at/opsys/linux/yum/2.0/yum-2.0.5-1.noarch.rpm

3. Install the package

rpm -Uvh yum-2.0.5-1.noarch.rpm

4. Edit repositories location

nano /etc/yum.conf

Change the baseurl in [base] to

http://mirror.centos.org/centos/4/os/$basearch/

Change the baseurl in [updates] to

http://mirror.centos.org/centos/4/updates/$basearch/

5- Install the full yum with all its dependencies.

yum install yum

Converting bin image to iso on Ubuntu

Well, first you have to install bchunk

sudo apt-get install bchunk

then use the command as following to convert the image

bchunk image.bin image.cue image.iso

and the bin image will be converted to iso one in the same folder.

How to disable sudo password prompt in Linux

well, sometimes i want to execute commands as super user without being asked for password each time to do that

to do that its pretty easy

open the terminal and type this command :

sudo visudo

and uncomment the following line :

# %sudo ALL=NOPASSWD: ALL

save the file by pressing escape then typing :wq and pressing enter.

from now on you will not be asked when executing the command as super user using sudo.