How to install Oracle Java Runtime Environment in Fedora 14

Fedora 14 comes with the open source Java called OpenJDK which is working fine, but if you have issues on it or its not working for whatever reason and you want to install the original Java from Oracle, just follow the tutorial below.

This is a straightforward tutorial on how to install Oracle Java Runtime Environment in Fedora 14.

1. Install these libraries that needed by Java.
Open up your terminal and run this command.

yum -y install compat-libstdc++-296 compat-libstdc++-33

How to enable 1:1 NAT in Iptables

1:1 NAT maps a single Public IP Address to one of your computer within your local area network (LAN).
Unlike port forwarding, 1:1 NAT forwards all ports from one external IP to one internal IP.

iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.2 -j SNAT --to-source 83.229.64.2
iptables -t nat -A PREROUTING -i eth0 -d 83.229.64.2 -j DNAT --to-destination 192.168.1.2
iptables -A FORWARD -s 83.229.64.2 -j ACCEPT
iptables -A FORWARD -d 192.168.1.2 -j ACCEPT

How to enable Port Forwarding in Iptables

What is Port Forwarding

Port forwarding allows remote computers, for example, computers on the Internet, to connect to a specific computer or service within a private local area network (LAN).

Gmail Video Chat is now available in Fedora

RPM version of Gmail video chat for Fedora is now available for download.
You can download the file from http://www.google.com/chat/video/download.html

Gmail video chat is now available for Linux Users

Gmail video chat now supports Linux, but it supports Debian/Ubuntu systems for now. RPM version for Red Hat/Fedora will be available soon.

You can download the plugin here.

Source: http://gmailblog.blogspot.com/2010/08/use-linux-now-you-can-video-chat-t...

How to install and configure VNC in Fedora 12

Open up your terminal and install tigervnc via yum.
Type this command in your terminal:

yum -y install tigervnc tigervnc-server

Edit the VNC configuration file

vi /etc/sysconfig/vncservers

and append these lines:

VNCSERVERS="1:user"
VNCSERVERARGS[1]="-geometry 800x600 -depth 16"

Where VNCSERVERS= is for configuring the username.

How to fix X11 Forwarding in CentOS 5

This tutorial describes how to fix the ssh X11 forwarding problem in CentOS 5.5 server.

Autoselected keyboard map en-us
ERROR: Failed to open display:

Make sure that the "xorg-x11-xauth" is also installed in your system. If not, this comm

yum -y install xorg-x11-xauth

Ensure that "X11Forwarding" is enabled in your ssh server configuration file. Edit the file "/etc/ssh/sshd_config".

How to disable IPV6 in Fedora 12 and CentOS 5.5

This is a quick tutorial on disabling IPV6 in Fedora 12 and CentOS 5.5

echo -e "install ipv6 /bin/true\nblacklist ipv6" > /etc/modprobe.d/blacklist-ipv6.conf

Stop ip6tables service and disable it from starting automatically at system boot.

service ip6tables stop
chkconfig ip6tables off

How to delete data inside MySQL table

If you want to delete a record from any MySQL table then you can use the delete command. The delete command is very similar to the update command.

delete from table where where_condition;

The delete statement deletes rows from a table.
The table is the table name.
The where clause specifies the conditions that identify which rows to delete.

How to update data inside MySQL table

Here's how to update existing data into MySQL database table.

update table set column='new_value' where where_condition;

The update statement updates columns of existing rows in the table with new values.
The table is the table name.
The set clause indicates which column to modify and the values they should be given.

Syndicate content