rpm2tgz and installpkg

Published by:

i intended to install openoffice 2.3 in my KDE 3.5 with slackware 12. after i do this
#tar xvfz openofficeblabla

i found out that there is nothing for ./configure and make command. (There is no configure.in file)
then i read in the linux forum, these are the step for installing it

#cd RPMS # i enter this section full with rpm package
#rpm2tgz *.rpm # change all the rpm package into tgz file which is common to slack
#installpkg *.tgz # this command for installing

#cd desktop-integration # this directory contains the package for creating menu in kde
#installpkg openblalafor-slackware

there you go. openoffice is one easy install dude.

ubuntu feisty – sdl and x11 – no video device

Published by:

well actually it has the simplest solving way. but i cant see it in the first place. u see i try to running some game that need some SDL. so i already install the SDL. it worked fine.
But when running the game, there was an error message said : no video device found.

the solution is re configure the SDL. by uninstalling it these way
go to the SDL source directory for example /usr/local/src
then
#make clean
#make distclean

then download from repo the xorg-dev and other stuff. but xorg-dev is the most important.
then install back the SDL.

run the game, and it work fine.

I read this solution for www.libsdl.org that the sdl need some x11 driver installed first before installing the SDL.
so xorg-dev is the solution devel for the driver.
now i know devel is for completing all the driver need for linux.

create menu in gnome

Published by:

this is how to create menu in gnome
if the application that you compiled only run in terminal. but you want to access it from the menu. or desktop.
as root go to /usr/share/applications
you will see lots of file ending with .desktop that is mean that is the definition file for the menu.
create one file for your apps
#touch /usr/share/applications/hangman.desktop #for example
#nano /usr/share/applications/hangman.desktop

write these down
[Desktop Entry] #this line is the same for all setting
Version=1.0 #this line is the same for all setting
Exec=Hangman #or fill with full path
Icon=/usr/local/share/hangman/pics/sg_icon.png #find the icon in png or xpm
Terminal=false #false = no terminal true=with terminal
Name=Hangman 0.9.2 #put anything u like
Comment=Permainan Hangman #put anything u like
Type=Application #this is a must for application
Categories=GNOME;GTK;Application;Game; #GNOME;GTK is a must, see the list below

the list code for categories
Accessories –> Utility;
Edutainment –> Education;
Games –> Game;
Graphics –> Graphics;
Internet –> Network;
Office –> Office;
Programming –> Development;
Sound & Video –>AudioVideo;
System Tools –> System;
Others –> Other;

but you know, i still curious. how i can create the menu for another applicaton or edutainment and else. i will find out later.

there is some program called smeg or alacarte. try to run it. but cannot figure it out how to use it.

for note if you messed up with your panel like i did (hehe i delete the panel) and you want to restore the panel to the beginning do these

#cd /home/yourusername/.gconf/apps
#rm -r panel
#init 6

after you log back in, you will see your original panel

configure lisa daemon in slackware – accessing windows network by samba n mount

Published by:

i think i found some good clue here after a few week of searching in the net.
lisa is a daemon tool for browsing into the local network.
in slackware you can set the configuration in
>control centre
>internet & network
>local network browsing

then set all of you want right there.
but i found some suggestion about the configuration.. so i will try it in the next few days if it works or not.

you can edit the lisa config in /etc/lisarc
#nano /etc/lisarc
write these down
SecondWait = -1
SearchUsingNmblookup = 0
DeliverUnnamedHosts = 1
FirstWait = 30
MaxPingsAtOnce = 256
UpdatePeriod = 300
PingAddresses = 192.168.10.130/255.255.255.0;
AllowedAddresses = 192.168.10.130/255.255.255.0;
BroadcastNetwork = 192.168.10.130/255.255.255.0;

change the 192.168.10.130 with your ip.
then restart your comps.

to make sure the lisa is start upon your booting, write these in your /etc/rc.d/rc.local
/usr/bin/lisa -q

or anyelse that the lisa is located

i found some other way accesing the net.
open the Konqueror
access to smb://
ex:
smb://192.168.0.2

then the username and password appear then wala you can enter their windows directories.
if you want to mount it in your folder write these in the console
#mount -t cifs -o username=”username”,password=password //192.168.02/C /home/C

of course after you mkdir C in /home
i have read somewhere how to mount it in the fstab permanently but i forget for now. i write it down here if i found it again.

compile program

Published by:

but i think it’s similar to all linux
here are the steps:

#sudo cp yourprogram /usr/local/src
#cd /usr/local/src/yourprogram
#sudo ./configure
#sudo make
#sudo make install

if the configure process said error, it is mean the program need other dependencies.
use this command to get them
#sudo apt-get install yourdependencies

or search first
#sudo apt-file search yourdependencies.pcfile

easy install in 3 steps

Published by:

you have to make sure that the following repo is available
for ubuntu
sudo apt-get install autoconf automake
sudo apt-get install libc6 libc6-dev

you can install em in synaptic package manager

in slackware
search in manually in in the internet for the repo then install it
by
./configure
make install

that’s all

setting nvidia monitor in ubuntu

Published by:

here’s the command i got from jogja-linux forum

$sudo dpkg-reconfigure xserver-xorg

then search for nv (means nvidia) then select your resolution.
and you can change other stuff too, like you configuring the xorgconfig in slackware.

then second way is changing manually the /etc/X11/xorg.conf
change the device for monitor
“vesa” with “nv”
PCI with “PCI:1:0:0”

then restart. walah.. yourmonitor resolution changed.

compile new kernel

Published by:

1. download the fresh kernel and put it in /usr/src
2. extract it using
#tar xvfz #if the kernel end with tar.gz file
3. cd to the directory
4. enter the menu of kernel….
#make menuconfig
change what necessary, usually the processor to make it faster
5. compiling
#make
6. compiling the modules (if any when u were changing in module menu)
#make modules
7. finishing for the module
#make modules_install
8. finishing for the linux
#make install

for lilo user
9. copy the bzImage to /boot/vmlinuz(version)
#cp /usr/src/linux-2.6.18/arch/i386/boot/bzImage /boot/vmlinuz-2.6.18
10. copy system map
cp /usr/src/linux-2.6.18/System.map /boot/System.map-2.6.18
11. edit lilo.conf in /etc/lilo.conf
#nano /etc/lilo.conf
#add this line according to your linux version that u created in vmlinuz
image=/boot/vmlinuz-2.6.18
label=”kernel-baru”
root=/dev/hda7 #the partition of the linux
read-only

12. activate lilo again
#lilo
13.
#init 6
or reboot

for grub user
9. reboot

that’s it.
thanks to http://onnienux.blogs.friendster.com/my_blog/2006/10/kernel_ku_ga_pi.html

update repository in redhat using yum

Published by:

something funny bout redhat is yum command.
i tried to look for the auto installation like ./configure and make command.
but i didnt find one in redhat so my friend told me to install the repos first.
with this command
#yum install automake autoconf

and the downloading runs. but u have to connect to the internet yo…