Senin, 29 September 2014

clear cache di Slackware

malem bloggers, saya mau share tutorial nih mumpung engga sibuk sibuk amat kegiatan hari ini.
kali ini saya akan share tentang bagaimana clear cache di slackware, agar file dari hasil instalasi software kalian tidak menumpuk di /tmp {default cache Slackware}
untuk pertama, buatlah sebuah file di /etc/rc.d/rc.local_shutdown.append
# touch /etc/rc.d/rc.local_shutdown.append

fungsi touch itu mirip seperti create new file (GUI version), tapi ini di dalam console/terminal
kedua, masukan sebuah script agar otomatis saat shutdown file hasil dari instalasi akan terhapus otomatis
# nano /etc/rc.d/rc.local_shutdown.append
"/usr/bin/find /tmp -mindepth 1 -maxdepth 1 -exec /bin/rm -rf {} +;"

ket: tanpa tanda kutip jika di copas
lalu beri hak akses, dengan:
# chmod +x /etc/rc.d/rc.local_shutdown.append

ATAU
bisa menggunakan script ini di mesin slackware sobat;
create dahulu sebuah file dengan nama:
# touch cleanstale.sh

lalu
# nano cleanstale.sh

dan masukan script ini
"#!/bin/sh
# Cleanup /tmp however, do not remove sockets for X

# No lost+found with reiserfs
find /tmp/lost+found -exec /bin/touch {} \;
find /tmp -type s -exec /bin/touch {} \;
find /tmp -type d -empty -mtime +37 -exec /bin/rmdir {} \;
find /tmp -type f -mtime +37 -exec rm -rf {} "

lalu seperti biasa beri hak akses, dengan:
# chmod +x cleanstale.sh

lalu tinggal running
atau bisa menggunakan bleachbit, jika ingin menggunakan bleachbit bisa unduh di slackbuilds.org
dan jika ingin mengganti versi bleachbit ke versi baru, silahkan lihat posting saya yang sebelumnya. thanks ;)

Sabtu, 27 September 2014

hal hal yang dilakukan setelah Install Slackware

selamat malam para bloggers :)
kali ini saya akan berbagi pengalaman instalasi Slackware linux, mungkin ini udah agak lama soalnya pasti Slackware User sudah pada tahu tentang ini. namun saya juga suka kelupaan, untuk menjaga ketidaklupaan maka saya posting aja deh biar engga lupa. :D
baik, kita mulai saja ya ;)
setelah instalasi, yang dilakukan pertama adalah:
  • konfigurasi repository yang ingin digunakan, ada 2 repository yaitu versi stable dan current
  • lalu setelah itu lakukan update, upgrade kecuali jika memilih versi current harus benar untuk mengupgradenya biar tidak pusing :D
  • Jika ingin login defaultnya menggunakan GUI seperti KDM, GDM, dll. cukup hanya edit baris perintah pada:
# nano /etc/inittab * lalu ganti pada: # Default runlevel. (Do not set to 0 or 6) id:3:initdefault: menjadi # Default runlevel. (Do not set to 0 or 6) id:4:initdefault:
setelah selesai, reboot sistem anda setelah reboot akan muncul login GUI Slackware dengan KDM(punya saya) lalu setelah itu, ketika anda membuka konsole/terminal di slackware kalian juga akan menghadapi masalah user@hostname dikarenakan di slackware nama "user@host" defaultnya adalah "bash". untuk menggantinya anda cukup buka konsole masuk ke menu settings lalu lihat di kolom command defaultnya hanya "/bin/bash" dan tambahkan menjadi "/bin/bash -l" setelah itu apply dan ok, tutup konsole lalu buka lagi. nah hal yang paling mengejutkan lagi adalah, ketika hendak ingin mengupdate/upgrade/install/remove dll lewat hak akses user biasa/normal aplikasi sudo nya tidak akan berfungsi. padahal default slackware sudah terinstall aplikasi sudo untuk mengakses dengan user normal, cara agar dapat digunakannya adalah;
edit di /etc/sudoers dengan cara: # nano /etc/sudoers lalu cari teks di bawah ## User privilege specification ## root ALL=(ALL) ALL richard ALL=(ALL) ALL
  • kemudian tambahkan script di bawah file /etc/sudoers
sperti di bawah ini:
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/$sbin:/bin"

selesai, tinggal anda gunakan ;)
mungkin sampai segitu dulu ya, soalnya saya udah mulai ngantuk berat nih.
Semoga bermanfaat ilmunya, terimakasih :)

Senin, 22 September 2014

[UPDATE] Rebuild Bleachbit on SlackBuild #Slackware

do you know bleacbit? a little explanation for me, bleachbit is software for cache cleaner like ccleaner on Windows and Clean Master on Android.
a slackware user become as from, i installed bleachbit on Slackware. but i see bleachbit not update, whereas bleachbit has updated to version 1.4 on SlackBuild has still 1.2 version. where the maintained? :)
i did not make this ;)
okay if you Slackware User and use bleachbit for cache cleaner, download source code

after download, put bleachbit-x.x.tar.bz2 to directory where bleachbit.SlackBuild save
and then edit bleachbit.SlackBuild, change version 1.2 to 1.4
"PRGNAM=bleachbit
VERSION=${VERSION:-1.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}"


and give permission file bleachbit.SlackBuild then build :)
# chmod +x bleachbit-x.x.tar.bz2 && ./bleachbit-x.x.tar.bz2

and then upgrade with this command
# upgradepkg --install-new /tmp/bleachbit-x.x-noarch-1_SBo.tgz

you'll now have new bleachbit version :)


CMIIW :)

Install firefox in Kali Linux (in English)

night bloggers, this time i'll share tutorial install firefox in Kali Linux.
this tutorial is actually a long time ago, than in the store are not shared pity. knowledge a science decent helpfull for read, okay let's go :D
first remove iceweasel on your kali linux
# apt-get remove iceweasel

then put repository to /apt/sources.list
# echo -e "\ndeb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" | tee -a /etc/apt/sources.list > /dev/null

then do a command like following:
# apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29

after that, update your repository
# apt-get update

and then install like this command
# apt-get install firefox-mozilla-build



maybe helpfull ;)


source:kali linux

install firefox di kali linux

malem bloggers, kali ini saya akan share bagaimana install firefox di kali linux.
sebenarnya tutorial ini sudah lama sekali, daripada di simpan engga di share kan sayang. lumayan ilmunya bermanfaat untuk pembaca, oke langsung aja ;)
pertama remove/ hapus dulu package/ aplikasi iceweasel di kali linux anda
# apt-get remove iceweasel

kemudian masukan repository ke /apt/sources.list
# echo -e "\ndeb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" | tee -a /etc/apt/sources.list > /dev/null

lalu lakukan perintah seperti di bawah ini:
# apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29

setelah itu, anda update repository
# apt-get update

kemudian lakukan perintah instalasi software firefox
# apt-get install firefox-mozilla-build



semoga bermanfaat ;)


source:kali linux

Minggu, 21 September 2014

KDE 4 and 5 on Slackware Current has updated

earlier version of kde 4.14.0 and kde 5.0.2 and now has release new kde version to 4.14.1 and kde 5.0.2 to 5.2.0, by source nothing has changed but little change kde-workspace, kde-activities etc.
Where to find Slackware packages for KDE ?

Download locations are listed below.

You will find the KDE 4.14.1 sources in ./source/4.14.1/ and packages in /current/4.14.1/ subdirectories, whereas KDE 5 (Frameworks 5 and Plasma 5) sources can be downloaded from ./source/5/ and packages from /current/5/ .

Note that I have symlinks in place (useful for users of a package manager and running slackware-current) so that ./current/latest/ will always point to the latest stable KDE release, and ./current/testing/ will always point to the most recent testing release (currently that’s Frameworks 5 and Plasma 5).

Perhaps you noticed the directory name for KDE5 is “5″ and not “5.0.2″ or “5.2.0″. I decided to treat KDE5 as a “rolling release” and in future will probably update parts of it. For instance, when a new Frameworks 5 is released, I will only update the sources in ./source/5/kde/src/frameworks/ and the packages in ./current/5/*/kde/frameworks/ . The toplevel directory name will stay at “5″.

Using a mirror is preferred because you get more bandwidth from a mirror and it’s friendlier to the owners of the master server!

http://alien.slackbook.org/ktown/ (the master repository), rsync URI: rsync://alien.slackbook.org/alien/ktown/
http://taper.alienbase.nl/mirrors/alien-kde/ (my fast US mirror), rsync URI: rsync://taper.alienbase.nl/mirrors/alien-kde/
http://repo.ukdw.ac.id/alien-kde/ (willysr’s Indonesian mirror), rsync URI: rsync://repo.ukdw.ac.id/alien-kde/
http://slackware.org.uk/people/alien-kde/ (fast UK based mirror, run by Darren Austin), rsync URI: rsync://slackware.org.uk/people/alien-kde/
dont't forget read file README for kde 5 and README for kde 4.


thanks :)



thanks to:
Willy Sudiarto Rahardjo
Eric Hameleers

Install CMS Drupal On Slackware Linux

Night all :)
hmm for this time now i share installing CMS Drupal on Slackware Linux.
previous post my article, do you know CMS Drupal? answer CMS Drupal is open source software maintained and developed by a community of 630,000+ users and developers. It's distributed under the terms of the GNU General Public License (or "GPL"), which means anyone is free to download it and share it with others. This open development model means that people are constantly working to make sure Drupal is a cutting-edge platform that supports the latest technologies that the Web has to offer. The Drupal project's principles encourage modularity, standards, collaboration, ease-of-use, and more.
the history about drupal: Dries Buytaert began the Drupal software as a message board in 1999. Within a year or so, more people became interested using and contributing to Drupal, so the project was made open source. Drupal.org came online in 2001, and the Drupal community gained momentum in 2005 with several code sprints and conferences. Read more about the full history of Drupal and Druplicon.
So you wanna choose ;)
first, download your CMS Drupal on site
after download extract this file, and move to directory /var/www/htdocs
# tar -zxvf drupal-x.x.tar.gz && mv drupal /var/www/htdocs

after put to above directory, now create configuration drupal on your directory
# cp sites/default/default.settings.php sites/default/settings.php

and then give premission access or rewritable
# chmod a+w sites/default/settings.php && chmod a+w sites/default

don't forget give permission on primary drupal directory
# chmod a+w /var/www/htdocs/drupal-x.x

now create drupal database
# mysql -u username -p (login to your mysql or mariaDB)

after login, at the MySQL prompt :

# GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';



Where:

'databasename' is the name of your database
'username' is the username of your MySQL account
'localhost' is the server name used to access MySQL
'password' is the password required for that username

If successful, MySQL will reply with:
Query OK, 0 rows affected

Run the installation script

You are now ready to run the installation script. Point your browser to the base URL of your website (e.g. http://www.example.com, http://www.example.com/drupal or http://localhost/drupal).

The installation wizard will guide you through several screens to set up the database, add the first user account, and provide basic website settings. Follow the wizard to finalize the installation and start working with your Drupal website.
may be useful, thanks ;)



source:Drupal

Minggu, 14 September 2014

can't upload plugin or theme cms wordpress on localhost #Linux

Okay now i tell a little history, after installed wordpress on localhost i can't upload this plugin and theme.
solution you must rewritable on your where directory wordpress installed
# chmod -R 777 /var/www/htdocs/wordpress

and now you must edit file on wp-config.php and add to under line
define('FS_METHOD', 'direct');

may be useful :)

install CMS Wordpress On Slackware Linux

hello every body, i would like to tell us a bit.
from first installed wordpress cms in my laptop, I use the operating system Slackware Linux.
i was inspired for make a tutorial in my blog :)
okay first you must download Wordpress, after downloaded extract zip file to your path directory e.g: /var/www/htdocs/ (SLackware)
# unzip -d wordpress-X.X.X-XX_XX.zip /var/www/htdocs

after extracted, you must run or enable service in Slackware like apache and mysql
# /etc/rc.d/rc.httpd enable and # /etc/rc.d/rc.httpd start

and you found 127.0.0.1 NameServer could not reliable determine the server's fully qualified domain name, to solved add ServerName in under line on httpd.conf file

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin

#
# uncomment out the below to deal with user agents that deliberately
# violate open standards by misusing DNT (DNT *must* be a specific
# end-user choice)
#
#
#BrowserMatch "MSIE 10.0;" bad_DNT
#

#
#RequestHeader unset DNT env=bad_DNT
#



# Uncomment the following line to enable PHP:
#
Include /etc/httpd/mod_php.conf
Include /etc/httpd/phpMyAdmin.conf

# Uncomment the following lines (and mod_dav above) to enable svn support:
#
#LoadModule dav_svn_module lib64/httpd/modules/mod_dav_svn.so
#LoadModule authz_svn_module lib64/httpd/modules/mod_authz_svn.so

ServerName localhost


and then restart service httpd on your machine
# /etc/rc.d/rc.httpd restart

now you run mysql service
# /etc/rc.d/rc.mysqld enable and # /etc/rc.d/rc.mysqld start

after running, this simple test your browser with localhost if works this mean httpd is running
okay, you go to phpmyadmin on your browser
localhost/phpmyadmin

after show phpmyadmin, you logged in and create database name up to you
after create, now you access localhost/wordpress in there you follow this step for installing wordpress
have fun, arief :)

Rabu, 10 September 2014

Update: kernel, security seamonkey

After update kernel on 3.14.17 on Slackware-Current and update firefox with thunderbird, The Slackware has update kernel and security seamonkey. On kernel has update to 3.14.18, if you want update/upgrade on Slackware-Current:
# slackpkg update and # slackpkg upgrade-all

Install compiz on Kali Linux/debian wheezy on 32 bit



exactly, this article has too long i keep :)
but unfortunately that dumped, you certainly known his post ;)
okay, first i tell why post article install compiz on kali linux? this answer; but kali linux based on debian wheezy, while debian wheezy not supplied compiz.
the begin i used kali linux, i got confused to install compiz on kali linux and until can installed.
let's see:
  • install gdebi on your kali linux/debian wheezy

# apt-get install gdebi

  • Download necessary packages:

  • python-compizconfig_0.8.4-2_i386.deb

# wget http://ftp.us.debian.org/debian/pool/main/c/compizconfig-python/python-compizconfig_0.8.4-2_i386.deb

  • compiz-gtk_0.8.4-4_i386.deb

# wget http://ftp.us.debian.org/debian/pool/main/c/compiz/compiz-gtk_0.8.4-4_i386.deb

  • libgnome-desktop-2-17_2.30.2-2_i386.deb

# wget mirror.pnl.gov/ubuntu//pool/main/g/gnome-desktop/libgnome-desktop-2-17_2.30.2-0ubuntu1_i386.deb

  • . libgnome-window-settings1_2.30.0-0ubuntu4_i386.deb

# wget mirror.pnl.gov/ubuntu//pool/main/g/gnome-control-center/libgnome-window-settings1_2.30.0-0ubuntu4_i386.deb

  • Create the following directories:

# mkdir /(user)/rep

  • for example i use root user

# mkdir /root/rep

  • and then

# mkdir /root/rep/compiz-gtk_0.8.4-4_i386/

  • Extract the package compiz-gtk_0.8.4-4_i386 into the created directory

# dpkg-deb -x compiz-gtk_0.8.4-4_i386.deb /root/rep/compiz-gtk_0.8.4-4_i386/

# dpkg-deb -e compiz-gtk_0.8.4-4_i386.deb /root/rep/compiz-gtk_0.8.4-4_i386/DEBIAN/

  • and then edit the control file

# leafpad /root/rep/compiz-gtk_0.8.4-4_i386/DEBIAN/control
* Find in text libmetacity-private0 (>= 1:2.26.0) delete and replace with libmetacity-private0a
* Save and exit
* Edit pack

  • extract yet

# dpkg-deb -b /root/rep/compiz-gtk_0.8.4-4_i386 /root/rep/compiz-gtk_0.8.4-4_i386.deb

  • Created directory

# mkdir /root/rep/python-compizconfig_0.8.4-2_i386/

  • Extract the package python-compizconfig_0.8.4-2_i386 into the created directory

# dpkg-deb -x python-compizconfig_0.8.4-2_i386.deb /root/rep/python-compizconfig_0.8.4-2_i386/

# dpkg-deb -e python-compizconfig_0.8.4-2_i386.deb /root/rep/python-compizconfig_0.8.4-2_i386//DEBIAN/

  • Edit the control file

# leafpad /root/rep/python-compizconfig_0.8.4-2_i386//DEBIAN/control
* Find in text python (<< 2.7) delete and replace with python (<< 3.0)
* Save and exit
  • Modify python-compizconfig.public
# leafpad /root/rep/python-compizconfig_0.8.4-2_i386/usr/share/python-support/python-compizconfig.public
Delete all copy and paste this text
pyversions=2.5,2.6,2.7
/usr/lib/pyshared/python2.5/compizconfig.so
/usr/lib/pyshared/python2.6/compizconfig.so
/usr/lib/pyshared/python2.7/compizconfig.so
  • Create directory python2.7 in /root/rep/python-compizconfig_0.8.4-2_i386/usr/lib/pyshared
# mkdir /root/rep/python-compizconfig_0.8.4-2_i386/usr/lib/pyshared/python2.7
  • Copy compizconfig.so python2.6 in /root/rep/python-compizconfig_0.8.4-2_i386/usr/lib/pyshared/python2.7
# cp /root/rep/python-compizconfig_0.8.4-2_i386/usr/lib/pyshared/python2.6/compizconfig.so /root/rep/python-compizconfig_0.8.4-2_i386/usr/lib/pyshared/python2.7
  • Edit pack
# dpkg-deb -b /root/rep/python-compizconfig_0.8.4-2_i386 /root/rep/python-compizconfig_0.8.4-2_i386.deb
  • Install the dependencies that are needed
# gdebi /root/libgnome-desktop-2-17_2.30.2-0ubuntu1_i386.deb
# gdebi /root/libgnome-window-settings1_2.30.0-0ubuntu4_i386.deb
  • Edit your sources.list adding deb http://ftp.us.debian.org/debian squeeze main
# leafpad /etc/apt/sources.list
* adjust to each your favorite repository, but don't forget follow above instruction
* My Sources list:
# 
deb http://http.kali.org/ /kali main contrib non-free
deb http://http.kali.org/ /wheezy main contrib non-free
deb http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
deb http://http.kali.org/kali kali main/debian-installer
deb-src http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://ftp.us.debian.org/debian squeeze main
* Save and exit
  • Update System
# apt-get update
  • Install Compiz
# apt-get install libdecoration0 libdecoration0-dev compiz-core libcompizconfig0 libcompizconfig-dev compizconfig-backend-gconf compiz-fusion-bcop compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-fusion-plugins-unsupported compiz-plugins
  • Install compiz-gtk_0.8.4-4_i386 previously edited
# gdebi /root/rep/compiz-gtk_0.8.4-4_i386.deb
  • Install python-compizconfig_0.8.4-2_i386.deb
# gdebi /root/rep/python-compizconfig_0.8.4-2_i386.deb
  • Install other dependencies
# apt-get install compiz-gnome compizconfig-settings-manager compiz-dev compiz
  • Add compize to autostart, and add compize --replace
  • Reboot
* After restarting, Edit your sources.list remove deb http://ftp.it.debian.org/debian squeeze main
# leafpad /etc/apt/sources.list
* save and exit
* and the update your system with #apt-get update
  • Optional to be performed only if the launcher does not work
* in case of failure of the launcher reinstall python-compizconfig_0.8.4-2_i386.deb
# gdebi /root/rep/python-compizconfig_0.8.4-2_i386.deb
* if the problem is not resolved install kernel headers
#apt-get install -y linux-headers-$(uname -r)
and reinstall python-compizconfig_0.8.4-2_i386.deb
# gdebi /root/rep/python-compizconfig_0.8.4-2_i386.deb
* if it does not work unformatted simply uninstall the packages
Have fun, Arief I hope work, CMIIW ;) source:kali/debian