Compiz is back :)

Finally Compiz is back in openSUSE 10.3….the latest update from the XGL openSUSE repo fixed the problem. But there is also another change that comes with new version of XGL… now the old command - “gnome-xgl-switch” no longer works…. now the command to start xgl is “xgl-switch –enable-xgl” and to stop it is “xgl-switch –disable-xgl”.

There are many new features added…i will test them and add new posts about them with screen shots :)

Posted by: rishabh_kalra | Comments (0)
Shutdown Timer…

To Shutdown Linux after a certain amount of time use command –

shutdown -h + <time in minutes>

example: shutdown -h + 5

And suddenly if u decide to cancel ur deed then just use –

shutdown -c

Posted by: rishabh_kalra | Comments (0)
Image to Ascii

Ever wondered how people make Such wonderful figures out of various ASCII characters ( like ! , @ etc.)??

Well the process is not as tedious as it seems to be. Don’t worry you don’t have to waste your brain think when character to use when. Simply use LINUX and a command in it.

The command “asciiview” converts an image to ASCII character sequence.

usage:

asciiview path_to_image_file

example:

asciiview /root/1.jpg

After you get the ASCII image in a new window press “s” to save it and if that doesn’t work simply take screenshot.

Posted by: rishabh_kalra | Comments (2)
Compiz Fusion Icon

When i first used compiz fusion with kde the way to enable was using the command “compiz ccp” (which is also there even now) but another way introduced was the compiz fusion icon which have many advantages as will be discussed further…

Previously compiz was enabled automatically but making an executable text document containg the command “compiz ccp &” in the bin folder of the user you use to log in. The compiz fusion icon which came in fedora from the start only, can be started  in the same manner by making an executable text file in the bin folder of the user you log-in into and adding the text “fusion icon &”.

Revison of the steps to do so :–>

1. Open the bin folder in the folder of the user u log into (eg: for root user open “/root/bin” for other users use “/home/user_name/bin”).

2.Create a text file in it.

3.Open the file and write in it “fusion-icon &”.

4.Save and Exit.

5.Right click on the file and in open properties for the file.

6.Under the permissions tab check is executable.

Restart and u will see the compiz fusion icon in system stray.

The greatest advantage of the fusion icon i think is that whenever compiz crashes (which happens many a times due to unstable versions) u can simply reload it by right clicking on the fusion icon and clicking on the reload window manager. Secondly you can Switch between various window decorators installed on your system (again by right clicking on the fusion icon). Thirdly you can change the window manager whenever you want (like when you are doing some serious work and the effects are irritating you). Fourthly you can also access the settings manager from it….

Please note the you need to have fusion icon installed on your system.In openSuse its available in the XGL repository.

Posted by: rishabh_kalra | Comments (0)
Mounting iso image in Linux…

If u want to use a CD or DVD image (*.iso files) then u wont need an additional software in linux as on windows you just need to mount that image file to some directory, which can be done simply by executing the following command –>

mount -t iso9660 path_to_iso.iso path_to_mount_directory -o loop

example –>

mount -t iso9660 /tmp/game.iso /root/game -o loop

Here ->

1.mount is the command.

2.”-t” is option for specifying file system type.

3. “iso9660″ is the file system type for iso image.

4. “/tmp/game.iso” isthe path for the iso file to be mounted.

5. “/root/game” is the directory where the iso file has to be mounted.

Posted by: rishabh_kalra | Comments (0)
Window Decorator With Compiz

Dont worry if you are using compiz and the title bar of all your windows suddenly disappear…this is just because the window decorator you are using has crashed….

Now there are two ways to get out of it…clean one is restart you machine….but if u r stuck with something and dont want to restart then just use the following command —>

1. “kde-window-decorator –replace” (if you are using the kde3 window decorator).

2.”emerald –replace” (if you are using emerald window decorator).

3.”kde4-window-decorator –replace” (if you are using kde4 window decorator).

And if compiz-fusion as a whole crashes the try the command “compiz ccp&”.

But u will need a restart eventually to make EVERY thing normal.

Posted by: rishabh_kalra | Comments (0)
Copying Files On network

scp copies files between hosts on a network.  It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh. Unlike rcp, scp will ask for passwords or  passphrases if they are needed for authentication.

It can be useful for automated transferring of files using coding.The prompt for password can be bypassed by generating authenticated public and private keys using command “ssh-keygen” and after that “scp” can be simply called using the “system” function in c++ etc. and automated file transfer can take place.

example syntax :–

scp user@host1:source_file_path user@host2:destination_file_path

example :–

scp /root/send.txt root@172.16.11.22:/root/received.txt

using this the file send.txt in the local machine will be copied and renamed as received.txt to /root directory of machine 172.16.11.22 and the connection to machine 172.16.11.22 will be made as user root on that machine ( ofcourse password will be asked unless a public private key relation is mentained between both machines).

Posted by: rishabh_kalra | Comments (0)