Category Archives: Linux

split – file splitter in slackware konsole

Published by:

A good thing about slackware is he has lots of functional command that in many linux doesn’t have.
I mean the other linux needs to install another program while slackware already has it inside the original installation.
Like this split command. It means it can split large file into pieces.
Here is the manual

Usage: split [OPTION]… [INPUT [PREFIX]]
Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, …; default
size is 1000 lines, and default PREFIX is `x’. With no INPUT, or when INPUT
is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.
-a, –suffix-length=N use suffixes of length N (default 2)
-b, –bytes=SIZE put SIZE bytes per output file
-C, –line-bytes=SIZE put at most SIZE bytes of lines per output file
-d, –numeric-suffixes use numeric suffixes instead of alphabetic
-l, –lines=NUMBER put NUMBER lines per output file
–verbose print a diagnostic just before each
output file is opened
–help display this help and exit
–version output version information and exit

SIZE may be (or may be an integer optionally followed by) one of following:
KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.

Report split bugs to bug-coreutils@gnu.org
GNU coreutils home page:
General help using GNU software:
For complete documentation, run: info coreutils ‘split invocation’

This is the example of the splitting process

$split -b 100M largefile.tar.gz

There will be lots of file named like xaa xab xac and so on.
Because split is a simple command, we need to modify it a little bit. It splits files in the current folder, maybe we will have a difficulty to deliver a lots number of the results. So let’s create temporary folder and split the file inside it.
Another my own script might work to do that instantly. But I have not write it down here. Maybe some other time hehe

merge data into document in open office

Published by:

linuxnewbieguide.comOpen Office has a mail merge function in it. But until today I don’t know how to use it. Mail merge is very handy if we need to print a bunch of letters to many people at once.
Or I might use it for merging some data into the letter document.
After googling and found one tutorial here, this is how to create mail merge.
1. Click file – wizard – address data source
2. Choose other external data source
3. Connection setting – spreadsheet – next – browse

Then in the document press f4 for menu data source – drag and drop the header row into the document as a field.

That’s it. So it is quite different with I used to with the other program.
Open Office mail merge has also a function to print into document or directly into printer.

Source : http://istiyanto.com/membuat-mail-merge-dengan-openoffice-org/

mysql couldn’t start in xampp

Published by:

I found another error when starting lampp.
The apache, proftpd are running smoothly, I can see it on the screen. But the Mysql didn’t run. It said it can not started. So I tried to see in the memory is it mysql service running? It shocked me but yes there is another sql running. It comes from mysql in /var/run/mysql not from /opt/lampp.
Then I uninstall the mysql and try to run /opt/lampp again. My hope is the sql that running in the memory is the sql from lampp. But another problem showed up. The sql from lampp couldn’t start also because lack of something in the system.
Piuh.. I had to reinstall the sql again from slackbuild.
Then I try to find what’s wrong in the lampp. After browsing somewhere (sorry I forgot and didn’t write the source) with another problem actually, they change the permission of my.cnf file to 644.

root@user:/#chmod -R 644 /opt/lampp/etc/my.cnf

Then start the lamp again.
You know what, it works. Lampp is running. I check the memory with ps x and yes the sql is from lampp.

slackware do not automount flashdisk

Published by:

The annoying thing about flash disk is when your flash disk is not auto mount by slackware. I have this happen in my busy day. Actually the references I read, suggested to restart the computer. But hey I don’t want to do the hard way. Let’s do it in soft way.
So I try to do it without restarting the computer, the theory is just restart udev and messagebus
#root@me:/home/me#/etc/rc.d/rc.udev force-restart
#root@me:/home/me#/etc/rc.d/rc.messagebus restart

Try to replug the flash disk.
And it’s work. hehe ^_^
chinatrade

Workshop and Seminar Information Technology in Cianjur

Published by:

1. Workshop Nasional Teknologi Informasi
Yang akan membahas :

Software dan Online Transaksi Serta Pengamanan Aset Infrastruktur
Teknologi Informasi

Lokasi : Bale Prayoga – Kantor Bupati Cianjur
Tanggal : 7 Desember 2011
Pukul : 09.00 – 16.00 WIB
Peserta : 100 Orang

Narasumber :
Networking : Bpk. Andreas – PT. Konexindo Unitama
Pengamanan Aset IT : Bpk. Lim Fredik – PT. Konexindo Unitama
Online : Bpk. Sagi Arsyad – www.bhinneka.com

Fasilitas :
Sertifikat
Materi dan ID Card
Makan Siang dan Snack
Biaya :
Umum : Rp. 100.000,-
Pelajar / Mahasiswa : Rp. 75.000,-

2. Seminar Nasional Teknologi Informasi
Dengan tema “Teknologi Informasi Sarana Cerdas Dalam Dunia Kerja”

Lokasi : Bale Prayoga – Kantor Bupati Cianjur
Tanggal : 8 Desember 2011
Pukul : 09.00 – 16.00
Peserta : 100 Orang

Narasumber :
Bpk. Renga Haka – Konsultan IT Internasional
Bpk. Endro Wibowo – PT. Sierad Produce, Tbk

Fasilitas :
Sertifikat
Materi dan ID Card
Makan Siang dan Snack
Biaya :
Umum : Rp. 100.000,-
Pelajar / Mahasiswa : Rp. 75.000,-

3. Acara Pendukung :
Coaching Clinic dan Talkshow serta Bazaar
(Gratis Bagi Peserta yang Mengikuti Workshop atau Seminar Nasional
Teknologi Informasi)

Untuk informasi lebih lanjut, hubungi :
Rendra : 0815 8673 2222 / 021 9155 5875 / 0263 9248 483
Sekretariat : Jl. Pangerah Hidayatullah No. 10 Cianjur

Translate : (google)

1. National Workshop on Information Technology
Who will discuss:

Software and Online Transaction Security And Infrastructure Assets
Information technology

Location: Bale Prayoga – Regent Office Cianjur
Date: December 7, 2011
Time: 9:00 to 16:00 pm
Participants: 100 Persons

Resource Persons:
Networking: Mr. Andreas – PT. Konexindo Unitama
Securing IT Assets: Mr.. Lim Fredik – PT. Konexindo Unitama
Online: Mr.. Sagi Arsyad – www.bhinneka.com

facilities:
certificate
Matter and ID Card
Lunch and Snack
cost:
General: Rp. 100.000, –
Student / Student: Rp. 75.000, –

2. National Seminar on Information Technology
With the theme “Information Technology Support Working Smart In The World”

Location: Bale Prayoga – Regent Office Cianjur
Date: December 8, 2011
Time: 9:00 to 16:00
Participants: 100 Persons

Resource Persons:
Cpc. Renga haka – International IT Consultant
Cpc. Endro Wibowo – PT. Sierad Produce, Limited

facilities:
certificate
Matter and ID Card
Lunch and Snack
cost:
General: Rp. 100.000, –
Student / Student: Rp. 75.000, –

3. Supporting events:
Coaching Clinic and Talk Show and Bazaar
(Free for Participants Following the Workshop or Seminar
Information Technology)

For more information, contact:
Renda: 0815 8673 2222 / 021 9155 5875 / 0263 9248 483
Secretariat: Jl. No Pangerah Hidayatullah. 10 Cianjur

Slackware wireless setting

Published by:

First time I use Linux with ubuntu os, I said this is the easy os that can connect to wireless spot (hotspot) using its application. When I started to run slackware, I had confused how i m gonna use the wireless function. But then there is a way how to handle the setting.

Let’s say your device wireless already on and it is identify as wlan0. Do this as root by su

Select the essid or the hotspot name we will use.

root@user#iwconfig wlan0 essid “myhotspot”

To find out what hotspot is on in the area :

root@user#iwlist scanning

Edit /etc/wpa_supplicant.conf

root@user#nano /etc/wpa_supplicant.conf

Enter the essid and wpapsk (password to the essid/ hotspot)

network={
scan_ssid=0
ssid=”myhotspot”
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk=”mykeypassword”
priority=10
}

Save it (Ctrl+o)

Then connect to it

root@user#wpa_supplicant -iwlan0 -c /etc/wpa_supplicant.conf

If the result is like this

CTRL-EVENT-DISCONNECTED – Disconnect event – remove keys
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
Trying to associate with 00:02:6f:57:a1:4b (SSID=’devilzc0de’ freq=2437 MHz)
Associated with 00:02:6f:57:a1:4b
CTRL-EVENT-CONNECTED – Connection to 00:02:6f:57:a1:4b completed (auth) [id=1 id_str=]

It means we already connected. If the hotspot server using dhcp (most of them) then we will get our ip address and we can directly connect to the internet.

Source : http://ajibzsmkn1.wordpress.com/

The New Host

Published by:

Here we are. I m in the new host of my learning linux blog. This is os.sugi.web.id. Or we can just type to sugi.web.id and choose learn linux. I have I still have lots of courage to learn and to share.

I am sorry for the lack of my language, the content, and also thanks to everyone I copied and pasted his blog  into mine. But I re-write it with my own words thou. I just learn the material. I hope anyone who copied from here also have a good heart to share it again to another.

Have a good day.

I am going to move to a new blog

Published by:

My all dear friends who read noemet.com I m going to move the site to another web blog.
I am going to close noemet.com. I need to re-manage my financial investment to my blogs. So I have decided to close one of the blog. Noemet is leaving me a great history. It reminded me that I started to learn linux before I launched noemet blog.
I started to share everything I learn in here. I won’t erase those notes, I will keep it in my new blog. We still can browse them in here sugi.web.id.
Please enjoy my new blog and keep blogging, keep learning, and free to copy paste what I wrote into your own blog. Thank you and God bless.

add excerpt function to function.php

Published by:

Sometime in the wordpress themes we use we couldn’t find the excerpt inside the post form. But we can add them manually by pasting this code into the function.php.

Go to appearance button on your left of wordpress. Click on the Editor. FInd the function.php on the right side. Then add the following script.

<div style="color: blue;"//excerpt function
function excerpt_read_more_link($output) {
global $post;
return $output . '

ID) . ‘”> Baca Selengkapnya…‘;
}
add_filter(‘the_excerpt’, ‘excerpt_read_more_link’);

or in simple way paste this code to single.php or header.php
<a href="”> Read More…

source : http://codex.wordpress.org/Excerpt

huawei e220 in android tablet acer iconia a500

Published by:

My sister bought tablet android acer iconia a500 a few months ago. And she had a difficulty using a huawei e220 in her tablet. So we were looking for a guidance in the net and found one in http://forum.joelaptop.com/viewtopic.php?f=18&t=157.
So I helped her and followed all the instruction in joelaptop.com

Except for disabling zerocd that did’nt work for me since I don’t have hyper terminal in my windows. But overall the process after that it work.
I downloaded the 3-gdial.rar in joelaptop and put it in the tablet. I also put the file in here.
I didn’t understand which kernel that the tablet use so I randomly choose the module driver and put it in /sdcard and 3g command (ppp-start.sh,ppp-stop.sh) in /system/xbin/ through the terminal command. I chose modules – 2.6.39.3-00001-g12f9a52. And add the module into the tablet by doing
$modprobe modules – 2.6.39.3-00001-g12f9a52/*.ko
The command is similar to linux command, since android is one of the open sources software.
But to remember, choose on of the desktop that can running root privilege.
How to root in acer is in here http://www.androidauthority.com/how-to-root-acer-iconia-tab-a500-23127/

Next, create folder peers in /etc/ppp
Like joelaptop.com said we need to change the mount type into rewrite if the sdcard refuse to copy into.
$mount
There will be the list of the mounting option
$mount -o remount,rw /dev/block/(suit it to your device)
Copy 3g file from 3g-dial.rar to /etc/ppp/peers
Edit 3g
Change if necessary, especially the line
connect ‘chat “” AT OK ATD*99***1# CONNECT’
Sometime the dial number will be different in every operator.
Change *99***1# to something else suit to the operator you use.
Still in root privilege and in terminal, type
$ppp-start.sh for starting the connection and ppp-stop to stop it.
I can’t make a short cut (not yet) to this command and put it in the desktop, i can’t figure it why. So every time I need to connect I should use root privilege and using terminal.
It is quite annoying.
And another weakness is when the tabloid going stand by for a second because I didn’t do anything, the connection is disconnected. I should close the terminal and re-open again. Or restart the tabloid.

Happy browsing