Category Archives: Linux

Remaster Slackware 13.1

Published by:

Today I am gonna learn to remaster slackware. Slackware is my favorite distro, it is simple but you will be surprise what slackware can do.
I am using slackware 13.1 as my based distro. This is slackware that I use everyday/

Here are the steps
1. Copy the slackware installer.
Mount your dvd or your iso into a folder in your os.

root@user$mount -o loop slackware-13.1-dvd.iso /home/user/dvdrom

Create another folder for remastering

root@user$mkdir remaster

Now copy these files:

root@user$cp /home/user/dvdrom/* /home/user/remaster
root@user$cp -r /home/user/dvdrom/kernels /home/user/remaster
root@user$cp -r /home/user/dvdrom/isolinux /home/user/remaster
root@user$cp -r /home/user/dvdrom/slackware /home/user/remaster

2. Modify setpkg
Setpkg is to determine which package to install.
If we take a look into setpkg, it contains:

“A” “Base Linux system” on “The A (base) series contains the kernel and main system utilities.”
“AP” “Various Applications that do not need X” on “The AP series is a collection of useful applications.”
“D” “Program Development (C, C++, Lisp, Perl, etc.)” on “The D series contains compilers, debuggers, and other programming tools.”
“E” “GNU Emacs” on “The E series contains the GNU Emacs advanced real-time display editor.”
and else until Y

We need to modify setpkg if we need to add another application into our new slackware distro.
Let’s install inkscape package into it. Create folder INK (for example only) in /home/user/remaster/slackware/
copy your inkscape.txz and other repo files into INK and also these files

install.end install-packages maketag maketag.ez tagfile

Those files is a must. Just copy them from the other package directory, let’s say a folder

root@user$cp /home/user/remaster/slackware/a/install.end /home/user/remaster/slackware/INK/

do the same for the rest.
Now add the line in the setpkg under Y

“INK” “Inkscape” on “Graphical Inkscape”

(this is example only)

3. Modify message.txt
Message.txt is a file contains the message where we can see it on the first time of the installation process.

root@user$nano /home/user/remaster/isolinux/message.txt

4. Modify tagfile and maketag
Tagfile is a file that explain the software we will install is REQUIRED or just ON

root@user$nano /home/user/remaster/slackware/INK/tagfile

Example :

GConf:REC
ORBit2:REC
cairomm:REC
glibmm:REC
gsl:REC
gtkmm:REC
imagemagick:REC
inkscape:REC
libpng14:REC
libsigc:REC
pangomm:REC
pypoppler:REC
sk1libs:REC
uniconverter:ADD
uniconvw:ADD
root@user$nano /home/user/remaster/slackware/INK/maketag

Copy maketag to maketag.ez. Here is the example of my maketag and filetag

5. Create txt file for each of the package you add
For example I have inkscape-0.48.0-i486-2_SBo.tgz so I need inkscape-0.48.0-i486-2_SBo.txt file. This txt is an information about the file package.

Example of the txt

inkscape: zoo (archiving and compressing utility)
inkscape:
inkscape: Zoo is used to create and maintain collections of files in compressed
inkscape: form. It uses a Lempel-Ziv compression algorithm that gives space
inkscape: savings in the range of 20% to 80% depending on the type of file data.
inkscape: Zoo can store and selectively extract multiple generations of the same
inkscape: file. Data can be recovered from damaged archives by skipping the
inkscape: damaged portion and locating undamaged data with the help of fiz(1).
inkscape:
inkscape: Zoo was written by Rahul Dhesi.
inkscape:

Remember only to use the same format from the previous example, with 11 lines. Copy one from a package if you don’t to retype it.

6. Create the iso

root@user:/home/user/remaster$mkisofs -o /home/user/slackware_sugi.iso -R -J -V “sugislackware Installation” -hide-rr-moved -v -d -N -no-emul-boot -boot-load-size 32 -boot-info-table -sort isolinux/iso.sort -b isolinux/isolinux.bin -c isolinux/isolinux.boot -A “sugislackware Installation CD” .

Now we have slackware_sugi.iso in /home/user/ and we can burn it into DVD

source : http://comastnet.blogspot.com/2011/03/remaster-slackware.html

phpmyadmin can’t access to mysql

Published by:

Phpmyadmin is a application that we can access from web browser when we are using lampp (for example). Phpmyadmin is used to access mysql database. After re-set the lampp to secure condition, I can’t use phpmyadmin anymore.
This is because I create password with mysql command in the konsole:
#mysql_secure_installation
So I got this error message that phpmyadmin can’t acces to mysql
Here what I did to fix this
edit /opt/lampp/phpmyadmin/config.inc.php

Fill the password with a new one.
$i++;

/* Authentication type and info */
$cfg[‘Servers’][$i][‘auth_type’] = ‘config’;
$cfg[‘Servers’][$i][‘user’] = ‘root’;
$cfg[‘Servers’][$i][‘password’] = ‘mynewpassword’;
$cfg[‘Servers’][$i][‘extension’] = ‘mysql’;
$cfg[‘Servers’][$i][‘AllowNoPassword’] = true;

Try it one more time and phpmyadmin is on duty again.

slackpkg

Published by:

Not just ubuntu who has an easy install program using apt-get command. Slackware has one too.
First edit /etc/slackpkg/mirrors
Uncomment one of the closest server from you under the slackware version you use. Mine is Indonesia but the server is not active. So I m using Australian.
Do
#slackpkg update
for updating the repository.
Next time we need to install something do this (in root)
#slackpkg install program
Well done.

mysql command

Published by:

using mysql from console
$mysql -u myuser -pmypassword

show database
mysql>show databases;

connect to database
mysql>use mydatabase;

show tables inside the database
mysql>show tables;

show what inside the table
mysql>select*from tablenamesatu

search the data inside the table
mysql>select*from tablenamesatu where columndata=’data’;
mysql>select*from tablenamesatu where columndata mycolumns like ‘data%’;

insert data
mysql>insert into tablenamesatu (column1,column2,..) values(‘data’,’data’,’…’);

delete data
mysql>delete from tablenamesatu where username=’data’;

update/change data
mysql>update tablenamesatu set columndata=’data’ where columndata1=’data’;

show header of column of table
mysql>show columns from tablenamesatu;

can’t start xampp 1.7.4 properly in mysql

Published by:

Sometime strange thing happen to me with my machine. I use slackware for many years. And I have two machine with the same slackware version. With one maching I can install xampp fine. But in another one, can not. The error messege when running xampp with /opt/lampp/lampp start is Mysql can’t running.
It is because there’s another mysqld service running on my slackware 13.1. Heres is the result when I stop /etc/rc.d/rc.mysqld
(do it in root)
#ps x | grep mysql
# 3731 pts/1 S 0:00 /bin/sh /usr/bin/mysqld_safe –datadir=/var/lib/mysql –pid-file=/var/run/mysql/mysql.pid –skip-networking

So I stop the mysqld
#/etc/rc.d/rc.mysqld stop

Restart the lampp
#/opt/lampp/lampp restart
The mysql should be working now.

joe editor

Published by:

I though joe is somebody name but this is linux editor. Slackware has it.
As easy as nano and mcedit. Here are the list of joe’s command
source is here and here

Help Screen turn off with ^KH more help with ESC . (^[.)

CURSOR GO TO BLOCK DELETE MISC EXIT
^B left ^F right ^U prev. screen ^KB begin ^D char. ^KJ reformat ^KX save
^P up ^N down ^V next screen ^KK end ^Y line ^T options ^C abort
^Z previous word ^A beg. of line ^KM move ^W >word ^R refresh ^KZ shell
^X next word ^E end of line ^KC copy ^O wordline SPELL ^KE edit
^KF find text ^KV end of file ^KY delete ^_ undo ^[N word ^KR insert
^L find next ^KL to line No. ^K/ filter ^^ redo ^[L file ^KD save

IW tonguetwister Row 1 Col 1 9:48 Ctrl-K H for help

New File

easyhotspot with coovachilli in virtualbox

Published by:

Finally I made it to install easyhotspot with ubuntu iso inside the virtualbox. Actually it’s already running but when I made a change a little in the dns setting, chillispot is not running.
So I upgraded to coovachilli and today I made it to make it work. Together with easyhotspot web management that I didn’t find any reference about how to make a relation between them.
Wait for the complete review.

activating ssh in ubuntu 9.10 karmic

Published by:

As usual ubuntu always need some extra setting when we need one. For example I need to install ssh server in it. Ubuntu doesn’t have one. So we need to find the program first.

#sudo apt-get install openssh-client
#sudo apt-get install openssh-server
#sudo nano /etc/ssh/ssh_config

Uncheck Port 22 or we can change the port to the empty one.

Restart the ssh

#sudo /etc/init.d/ssh restart

That’s it.

install aura-cms

Published by:


Extract into your public_html
Create the database from phpmyadmin, import structure from auracms.sql into your sql through phpmyadmin
Then open new tab in your browser
type : http://localhost/
Search for login form, usually at your left. The default user is admin with password auracms
To change the username from admin, we need to do some trick. I’ll find out about that later

gsm and cdma dial up numbers

Published by:

source : http://charless.wordpress.com/

Someday we’re going to need this setting in our wvdial.conf or any wireless linux setting.
1. Telkomsel Flash – Halo/Simpati/As (Waktu)
Dial Up Number : *99***1#
User Name :
Password :
Access Point : FLASH
Extra Setting : at+cgdcont=1,”IP”,”flash”

2. Telkomsel GPRS – Halo/Simpati/As (Data)
Dial Up Number : *99***1#
User Name : wap
Password : wap123
Access Point : TELKOMSEL
Extra Setting : at+cgdcont=1,”IP”,”internet”

3. Indosat – Matrix – (Data)
Dial Up Number : *99***1#
User Name :
Password :
Access Point : www.satelindogprs.com
Extra Setting : at+cgdcont=1,”IP”,” www.satelindogprs.com”

4. Indosat – Mentari – (Data)
Dial Up Number : *99***1#
User Name : indosat
Password : indosat
Access Point : www.satelindogprs.com
Extra Setting : at+cgdcont=1,”IP”,” www.satelindogprs.com”

5. Indosat – IM3 – (Data)
Dial Up Number : *99***1#
User Name : gprs
Password : im3
Access Point : www.indosat-m3.net
Extra Setting : at+cgdcont=1,”IP”,” www.indosat-m3.net”

6. Indosat – IM3 – (Waktu)
Dial Up Number : *99***1#
User Name : indosat@durasi
Password : indosat@durasi
Access Point : www.indosat-m3.net
Extra Setting : at+cgdcont=1,”IP”,” www.indosat-m3.net”

7. XL – Xplor/Bebas/Jempol (Data)
Dial Up Number : *99***1#
User Name : xlgprs
Password : proxl
Access Point : www.xlgprs.net
Extra Setting : at+cgdcont=1,”IP”,” www.xlgprs.net”

8. Telkom Flexi – Classy/Trendy (Data)
Dial Up Number : #777
User Name : telkomnet@flexi
Password : telkom
Access Point :
Extra Setting : at+crm=1

9. Telkom Flexi – Classy/Trendy (Waktu)
Dial Up Number : 080989999
User Name : telkomnet@instan
Password : telkom
Access Point :
Extra Setting : at+crm=0

10. Mobile 8 – Fren
Dial Up Number : #777
User Name : m8
Password : m8
Access Point :
Extra Setting :

11. Starone
Dial Up Number : #777
User Name : starone
Password : indosat
Access Point :
Extra Setting :

12. Esia (Waktu)Dial Up Number : #777
User Name : esia
Password : esia
Access Point :
Extra Setting :

13. three
Dial Up Number : *99#
User Name : 3data
Password : 3data
Access Point :3data
Connection name: three
Registration dial : *234#