Friday, August 22, 2008

Using RPM's

RPM Package Manager (originally Red Hat Package Manager, abbreviated RPM) is a package management system.[1] The name RPM refers to two things: a software package file format, and software packaged in this format. RPM was intended primarily for Linux distributions; the file format RPM is the baseline package format of the Linux Standard Base.

Originally developed by Red Hat for Red Hat Linux, RPM is now used by many Linux distributions. It has also been ported to some other operating systems, such as Novell NetWare (as of version 6.5 SP3) and IBM's AIX as of version 4.

"RPM Package Manager" as it is used today is an example of a recursive acronym.

now how to use it? well there are lots of commands or sub commands in using rpm.

here are the following and most commonly used:

to used it, we have to fire up our terminal/console mode then type the following if needed.

1. "rpm -i filename.rpm"
- Basically this is the command to install the rpm file that you want to put in your linux system.

2. "rpm -U filename.rpm"
- This command will be used to update the old rpm file installed in your system.

3. "rpm -i filename.rpm -nodeps"
- This command is also used to install the rpm file but this one disregards dependencies needed for your program to run properly. (note: beware of suing this command)

4. "rpm - e application-name"
- This command is used to delete/erase an application installed in your linux system.

5. "rpm -q software"
- This command is used to query the rpm database. or this will check is the software/application is installed on your linux system.

6. "rpm qa"
-This command gives you the list of packages installed on your linux system.

7. "rpm qa | less"
-This command gives you the list of packages installed on your linux system but with a scroll option.

7. "rpm qa | grep kde"
-This command gives you the list of packages installed on your linux system but will only loook for packages which names contains a specific word. like for our example is kde.

Friday, July 11, 2008

How to stop printing in Linux

If you wanna stop the printing process in Linux and having trouble using the GUI printing tools, you can always stop it using the terminal/console mode.

HOW?

1. start up your terminal
2. type lpstat -v
(This command give the list of printer name available or installed in your linux system)
3. type cancel -a [printer name]
(cancels printing job of a specific printer; that is why we use the command lpstat -v first to know which printer should we stop)

if this does not work then instead typing lpstat -v we use lpq (which give the list of the printer that has a job in the queue). After that repeat step 3.

if this still does not work then the printing process is done through network. If so, locate the computer and stop the printing process there.

hope this help a lot cause it does to me Big ^_^.

Good Day!!!

Tuesday, June 10, 2008

Configuring in console mode

its is still good to know the use of console mode specially if something bad happen to your GUI or in your Xserver.

the best way to do it in PCLinuxOS is by typing "pcc" (PCLinuxOS Control Center).

there are a lot of tool you can find and reconfigure your system if GUI is not working like:

1. 3d Desktop Effects
2. Auto install
3. Boot loader
4. Display
5. Firewall
6. Internet connection sharing
7. Keyboard
8. Mouse
9. Network & Internet
10. Partitions
11. Services
12. User and Groups

I usually use this pcc command specially when im changing video cards. cause sometimes when you change video cards it will usually go to console command and will require you to reconfigure your display.

hope this will help you a lot. ^_^

till next time ^_^

Wednesday, March 19, 2008

How to play karaoke files (*.kar, *.mid) in linux

I Love sing and i love computers,The good thing is there are karaoke files for pc. before, i usually use karaoke file in windows but i was happy that i found one for linux ^_^.

if youre the same as me these are the steps to follow:

Step 1:
Use Synaptic/Smart (or any package manager you have) and install: TiMidity++, timidity-patch-freepats, kdemultimedia-kmid

Step 2:
open a shell and become root by entering "su -" (without the quotes) and providing your root-password. Now in the root-shell do:
a) enter the command: modprobe snd-seq
b) use your favorite text editor and create a file called "MidWrapper" (without the quotes) and insert the following two lines:
#!/bin/sh
timidity -iA -Os
c) save and close the file, make it executable and move it to the right location:
chmod 755 MidWrapper & mv MidWrapper /usr/bin/
d) start it: /usr/bin/MidWrapper &

Step 3:
exit as root-user by pressing Ctrl-D. Now as normal user, use your favorite text editor and
a) create a file called "MidStart" (without the quotes) and insert the following two lines:
#!/bin/sh
MidWrapper &
b) save and close the file, make it executable and move it to the right location:
chmod u+x MidStart & mv MidStart ~/.kde/Autostart/
c) create a file called "MidExit" (without the quotes) and insert the following two lines:
#!/bin/sh
killall timidity &
d) save and close the file, make it executable and move it to the right location:
chmod u+x MidExit & mv MidExit ~/.kde/shutdown/

Step 4:
start kmid and verify that in "Settings - MIDI Setup..." you select e.g. "TiMidity TiMidity port 0 - ALSA device" (or another TiMidity port) instead of the default "Midi Through Midi Through Port-0 - ALSA device".


kmid is now functional and you can now play your .kar file by a double-click with the mouse or by entering the following command in the shell: kmid &
Note that the MidStart and MidExit needs to be copied into the home directory of each user who wants to use kmid.

Thanks to: Pinoc & Maik353 for showing me how to do it ^_^

Wednesday, February 27, 2008

Mounting ISO's

mounting ISO is like having a virtual drive in linux ^_^

if you have and ISO file(a CD image which have ISO extension) and want to mount it to your hard drive.

do the following:
1. go to your terminal
2. type "su"
---su stands for Super User
---(note: you must have/know the password for root)
3. type the command "mount -o loop filename.iso /directory"
---the "filename.iso is the file which contains the image file and the "directory" is the destination where you will put the content of the image file

thats it. ^_^

Enjoy Mounting!!!!
myLot User Profile

Sunday, February 24, 2008

Tips & Tricks: re-installing MBR on a dual boots

if you happen to have both Windows and Linux or dual boot on a single pc (which is cool ^_^) and have problem with windows (for example a file has been corrupt, malware or virus infection) and you happen to reinstall the windows.

what happen is that the MBR was also re-written. So, what you'll do to make dual boot possible again rather reinstalling linux in the system (which is no trouble at all since installing linux is faster than windows)is just follow this quick steps ^_^

1. boot with linux cd (usually called LIve CD)
2. login as root (usually the username and password for Live CD is "root" and "root")
3. got to the terminal
4. type "mount /dev/hda1 /mnt/hda1" (without the quote ^_^)
this command mount (hda1) which is a partition of your hardrive to directory "mnt/hda1"
5. type "chroot /mnt/hda1 /bin/bash"
this commands relocate the /bin/bash directory to the hda1 rather than to the Live CD
6. type "grub-install /dev/hda"
this command re-install GRUB to the hda partition


replace the drive letter(hda,hdb,hdc depends how many drives you have) as per your installation.
if you have more than one partition mount all of them ie \ home usr etc. etc.
then it should work ok.

hope his helps ^_^

Friday, January 18, 2008

My First Post!

Hi! and welcome to my Blog!
Well in this blog is where i put all important things about the basic in Linux and specially about PCLinuxOS

I love Linux and its a great alternative on Windows OS, plus its is much secure than any other OS in my opinion ^_^.

I'll posting new info about Linux and PCLinuxOS Every Week So keep in touch!

Thank You for visiting and ciao!!!