Linux

  • : Function ereg() is deprecated in /home/sparxsys_linux/www.linuxindya.com/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/sparxsys_linux/www.linuxindya.com/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/sparxsys_linux/www.linuxindya.com/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/sparxsys_linux/www.linuxindya.com/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/sparxsys_linux/www.linuxindya.com/includes/file.inc on line 647.
  • : Function ereg() is deprecated in /home/sparxsys_linux/www.linuxindya.com/includes/file.inc on line 647.
  • warning: Creating default object from empty value in /home/sparxsys_linux/www.linuxindya.com/modules/taxonomy/taxonomy.module on line 1388.
  • : preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sparxsys_linux/www.linuxindya.com/includes/unicode.inc on line 311.
  • : preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sparxsys_linux/www.linuxindya.com/includes/unicode.inc on line 311.
  • : preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sparxsys_linux/www.linuxindya.com/includes/unicode.inc on line 311.
  • : preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/sparxsys_linux/www.linuxindya.com/includes/unicode.inc on line 311.

Gaming in Linux

Gone are the days when Linux was only used by Geeks. Now a days many people are using Linux as their primary operating system. Another reason is that many Computer Manufacturers now ship their machines with pre-installed Linux Distributions. It reduces the cost to the customers significantly.

Linux can be easily used as the primary system and all kind of day to day softwares like Music Player, Video Player, Word Processing etc can easily be installed on it but some people still complain that installing games is still not possible on linux as most gaming companies either make their games for PS2, Xbox or windows. Linux is usually ignored. What a pitty.

Though this is not true for all the games. Games like Quake can be easily be played on linux. There is a separate package of this game for linux. Apart from that party poker has also become very popular these days. Many of my friends are really hooked to it.

Using Wine linux users can play the windows based games. Though it doesnt work for all the games but if the game is not very graphic intensive then it should surely work with wine and you can enjoy it on your linux system.

Now a days many games can only be played online, which is not really a concern for linux users because they are usually flash based games and works perfectly on linux machine. A Java plugin may also be required for playing such games. so how do you start finding about these games. Well I will leave it up to you. Yes, just go to google.com and typing in online flash games and you will get many sites where you can start playing the games.

In case you can to install the windows based games in linux then you can try to install Wine: www.winehq.org/

Have fun playing!

Watch TV on Your Linux Computer

in

Every TV hardware that is Tv Tuner is installed in your computer but still your are not able to watch TV on it . so what Next ?
This Blog covers some of the Linux tools you can use to configure your TV tuner and watch TV with it from your Linux desktop.

Project Management Open Source Softwares

Yesterday I was searching for Open Source Project Management softwares and found OpenProj.

To my surprise it is very much like Microsoft Project. I don't know how good it is, I will try it. In the mean time I have to try other Open Source PM Tools.

IP Tables - Secure your Linux computer

Secure your computer using IP Tables. Click on the link below. It has a nice tutorial on IP Tables.

http://www.itech7.com/Security/Secure-your-Linux-Box-using-IPTables-Fire...

Re-Mount /etc/fstab without Restarting

You have added new entry in your /etc/fstab file to mount a drive or partition. To mount those new partitions you would normally reboot your PC. There is a simple way which will Re-Mount the drives in your /etc/fstab file. Run as root.
mount -a

Current working directory in BASH

For all those newbies in the world of Linux here is a very useful linux command.

[[email protected] practice]# pwd
/home/ravi/windows/d/myfiles/tutorials/c++/practice

pwd will print the current working directory in the konsole.

uname - print system information

If you want the know your system information like the Kernel name, Kernel Release, Kernel Version etc then you can issue uname command.

Here is the details of the command along with the arguments. This information is fetched from manual pages.

NAME
       uname - print system information

SYNOPSIS
       uname [OPTION]...

DESCRIPTION
       Print certain system information.  With no OPTION, same as -s.

       -a, --all
              print all information, in the following order, 
              except omit -p and -i if unknown:

       -s, --kernel-name
              print the kernel name

       -n, --nodename
              print the network node hostname

       -r, --kernel-release
              print the kernel release

       -v, --kernel-version
              print the kernel version

       -m, --machine
              print the machine hardware name

       -p, --processor
              print the processor type or "unknown"

       -i, --hardware-platform
              print the hardware platform or "unknown"

       -o, --operating-system
              print the operating system

       --help display this help and exit

       --version
              output version information and exit


uptime - Tell how long the system has been running

uptime gives a one line display of the following information. The current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.

$ uptime
09:44:28 up 1 day, 1:10, 1 user, load average: 0.00, 0.00, 0.00

Reset forgotten MySQL root password

If you have forgotten your MySQL root password then don't worry. You can reset your lost password. Here is the procedure.

1. Login as root.

2. Kill running MySQL process and stop the MySQL service.

[[email protected] root]# killall mysqld
[[email protected] root]# /usr/libexec/mysqld -Sg --user=root &

3. Restart MySQL server with these parameters

[[email protected] root]# mysqld --skip-grant-tables --user=root

4. Manually set root password in the table "user" of "mysql" database.

[[email protected] root]# mysql

Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1 to server version: 3.23.41
Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> USE mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed

mysql> UPDATE user
-> SET password=password("newpassword")
-> WHERE user="root";

Query OK, 2 rows affected (0.04 sec)
Rows matched: 2 Changed: 2 Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> exit;

[[email protected] root]# killall mysqld

5. Restart MySQL again

[[email protected] root]# /etc/init.d/mysqld start

Now your root password is set and you can now login as root using the password you have just created.

[[email protected] root]# mysql -u root -p
Enter Password: "newpassword"

If you again forget your root password don't worry just check this link again :)

How to configure MySQL

By default the root password for MySQL is blank, but it is not safe.

Set the root password by entering the following in terminal.

mysqladmin -u root -p password 'password'

This will set the root password.

Now you can login to the MySQL using the password you have just created.

mysql -u root -p

This will ask you for the root password, just enter the password to access the MySQL console.

Syndicate content