# chmod 755 /etc/rc.d/rc.mysqld
# mysql_install_db
Installing MySQL system tables…OKFilling help tables…OKTo start mysqld at boot time you have to copysupport-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !To do so, start the server, then issue the following commands:/usr/bin/mysqladmin -u root password ‘new-password’/usr/bin/mysqladmin -u root -h fhuw password ‘new-password’Alternatively you can run:/usr/bin/mysql_secure_installationwhich will also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly recommended for production servers.See the manual for more instructions.You can start the MySQL daemon with:cd /usr ; /usr/bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.plcd /usr/mysql-test ; perl mysql-test-run.plPlease report any problems with the /usr/bin/mysqlbug script!
# chown -R mysql:mysql /var/lib/mysql
# cp /usr/share/mysql/mysql.server /etc/rc.d/rc.mysql
# chmod 755 /etc/rc.d/rc.mysql
# /etc/rc.d/rc.mysql start
# /usr/bin/mysqladmin -u root password 'isi-dengan-passwordmu'
# mysql_secure_installation
# /etc/rc.d/rc.mysql restart
# mysql -u root -p
Sumber:
# /usr/bin/mysqld_safe &Lalu setelah itu dilanjutkan ke tahap # mysql_secure_installation diatas sampai selesai.. Tapi saat pertanyaan password, password-nya di isi dengan password baru.Selamat Belajar!!
aim@darkstar:~$ google-chromeMisal error yang tampil di slackware saya seperti ini:
/usr/bin/google-chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directoryNah ketauan kan kenapa tu si chrome gak mau kebuka? Ternyata kata si terminal/konsol chrome gak mau terbuka karena adanya error ketika loading di library libnss3.so.. Katanya library itu gak ada di direktori. Kan udah tau tu errornya kenapa? Sekarang saatnya kita benerin. Karena library tu gak ditemuin, daripada kita cari library tu capek-capek, mendingan kita pinjem aja library si browser lain. Misalnya punyanya si SeaMonkey yang ada di slackware itu. Code:
ln -s /usr/lib/seamonkey-2.2/libnss3.so /usr/lib/libnss3.soPerintah di atas itu maksudnya adalah kita membuat symbolic link dari librarynya si seamonkey-2.2 ke direktory /usr/lib..Oke stelah itu kita jalankan lagi tu chrome di terminal. Code:
/usr/bin/google-chrome: error while loading shared libraries: libnssutil3.so: cannot open shared object file: No such file or directoryTernyata ada lagi tu library yang gak bisa di load sama chrome, namanya libnssutil3.so. Gimana tu cara penyelesaiannya? Caranya sama kayak diatas, kita buat symbolic link lagi. Code:
ln -s /usr/lib/seamonkey-2.2/libnssutil3.so /usr/lib/libnssutil3.soLalu sekarang kita coba lagi buka chromenya lewat terminal. Code:aim@darkstar:~$ google-chromeWah masih ada error lagi tuh,kaya gini errornya:
/usr/bin/google-chrome: error while loading shared libraries: libsmime3.so: cannot open shared object file: No such file or directoryKita benerin lagi dah. Code:
ln -s /usr/lib/seamonkey-2.2/libsmime3.so /usr/lib/libsmime3.soBuka lagi chromenya di terminal. Code:aim@darkstar:~$ google-chromeDuh masih ada error.
/usr/bin/google-chrome: error while loading shared libraries: libplc4.so: cannot open shared object file: No such file or directoryBenerin lagi brow. Code:
sudo ln -s /usr/lib/seamonkey-2.2/libplc4.so /usr/lib/libplc4.soJalanin chromenya di terminal. Code:aim@darkstar:~$ google-chromeCapek juga ya? Masih ada error ni:
/usr/bin/google-chrome: error while loading shared libraries: libnspr4.so: cannot open shared object file: No such file or directoryBenerin lagi. Code:
ln -s /usr/lib/seamonkey-2.2/libnspr4.so /usr/lib/libnspr4.soJalankan lagi chromenya. Code:aim@darkstar:~$ google-chromeError lagi aja kawand. Mudah-mudahan ini yang terkahir ya?
/usr/bin/google-chrome: error while loading shared libraries: libplds4.so: cannot open shared object file: No such file or directoryBenerin lagi ya cuy. Code:
ln -s /usr/lib/seamonkey-2.2/libplds4.so /usr/lib/libplds4.soJalanin lagi chromenya. Code:aim@darkstar:~$ google-chromeWaw berhasil kawand-kawand chromenya terbuka. Ni dia tampilannya:
Maksudnya??Jadi sebenarnya caranya itu cukup memperbaiki aja.
Caranya gimana?Oya sebelumnya untuk para master-master Slackware yang kebetulan membaca postingan ini, maaf ya kalau cara dari saya itu Nubi banget dan jangan di cela.Hehe
Nah pada saat setelah pemilihan partisi yang akan di Install Slackware dan ada pilihan format file system, maka pilihlah untuk tidak memformatnya.
Menurut pengetahuan saya, nginx (engine x) itu adalah sebuah web server seperti apache atau lighttpd, akan tetapi nginx itu mempunyai kelebihan disisi pemakaian resource memorinya. Untuk penjelasan lebih lanjut, mungkin om Google bisa membantu.Nah sekarang disini saya akan menjelaskan cara penginstalan nginx pada Slackware (dalam contoh ini saya menggunakan Slackware 13.37).
nginxdi Desktop anda dan simpan file-nya. Setelah di simpan saatnya melakukan penginstalan. Pertama yang harus di lakukan adalah buka terminal dan menuju direktory nginx anda yang sudah di save tadi di desktop dengan cara:
# cd /home/user-anda/Desktop/nginxLalu ketik ls pada terminal:
# lsKira-kira punya saya tampilan list dari folder nginx itu seperti di atas.
README nginx-1.0.9.tar.gz nginx.info nginx.tar.gz.asc slack-desc
doinst.sh nginx.SlackBuild nginx.logrotate rc.nginx
# ./nginx.SlackBuildNah maka dengan perintah di atas, maka akan terbuat sebuah file nginx berekstensi tgz/txz yang terletak pada direktory /tmp. Sekarang install file nginx itu:
# installpkg /tmp/nginx*Maka dari perintah-perintah di atas itu, kita telah selesai menginstall nginx pada Slackware kita. Langkah selanjutnya adalah dengan mengedit file nginx.conf yang terletak di direktory /etc/nginx/nginx.conf
# nano /etc/nginx/nginx.confLalu ubah isinya menjadi seperti ini:
user nobody;Tapi apabila ada yang mempunyai settingan nginx.conf lain, silahkan aja pake yang punya anda itu, yang di atas adalah contoh punya saya.
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid /etc/nginx/log/nginx.pid;
events {
worker_connections 768;
} http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
access_log /etc/nginx/log/access.log;
error_log /etc/nginx/log/error.log;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
gzip on;
gzip_disable "msie6";
map $scheme $server_https {
default off;
https on;
}
server {
listen 80;
server_name localhost;
autoindex on;
#charset koi8-r;
#access_log logs/host.access.log main;
root /srv/httpd/htdocs;
location / {
root /srv/httpd/htdocs;
#root html php;
index index.php index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /srv/httpd/htdocs;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME script$fastcgi_script_name;
include fastcgi_params;
fastcgi_param HTTPS on;
fastcgi_intercept_errors on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443;
# server_name localhost;
# ssl on;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_timeout 5m;
# ssl_protocols SSLv2 SSLv3 TLSv1;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.php index.htm;
# }
#}
}
# chmod 755 /etc/rc.d/rc.nginxApabila ada error, maka coba cek kembali setting dari nginx.conf tersebut. Oya apabila yang belum ada rc.nginx-nya, maka ini isi script rc.nginx punya saya:
# chmod /etc/rc.d/rc.nginx start
#!/bin/shOke setelah nginx berhasil di jalankan, maka langkah selanjutnya adalah menguji cobanya.Hehe
#
# Nginx daemon control script.
# Written for Slackware Linux by Cherife Li <cherife-#-dotimes.com>.
BIN=/usr/sbin/nginx
CONF=/etc/nginx/nginx.conf
PID=/var/run/nginx.pid
nginx_start() {
# Sanity checks.
if [ ! -r $CONF ]; then # no config file, exit:
echo "$CONF does not appear to exist. Abort."
exit 1
fi
if [ -s $PID ]; then
echo "Nginx appears to already be running?"
exit 1
fi
echo "Starting Nginx server daemon..."
if [ -x $BIN ]; then
$BIN -c $CONF
fi
}
nginx_test_conf() {
echo "Checking configuration for correct syntax and"
echo "then trying to open files referenced in configuration..."
$BIN -t -c $CONF
}
nginx_term() {
echo "Shutdown Nginx quickly..."
kill -TERM $(cat $PID)
}
nginx_stop() {
echo "Shutdown Nginx gracefully..."
kill -QUIT $(cat $PID)
}
nginx_reload() {
echo "Reloading Nginx configuration..."
kill -HUP $(cat $PID)
}
nginx_upgrade() {
echo "Upgrading to the new Nginx binary."
echo "Make sure the Nginx binary has been replaced with new one"
echo "or Nginx server modules were added/removed."
kill -USR2 $(cat $PID)
sleep 3
kill -QUIT $(cat $PID.oldbin)
}
nginx_rotate() {
echo "Rotating Nginx logs..."
kill -USR1 $(cat $PID)
}
nginx_restart() {
nginx_stop
sleep 3
nginx_start
}
case "$1" in
check)
nginx_test_conf
;;
start)
nginx_start
;;
term)
nginx_term
;;
stop)
nginx_stop
;;
reload)
nginx_reload
;;
restart)
nginx_restart
;;
upgrade)
nginx_upgrade
;;
rotate)
nginx_rotate
;;
*)
echo "usage: `basename $0` {check|start|term|stop|reload|restart|upgrade|rotate}"
esac
# nano /srv/httpd/htdocs/index.htmlSetelah itu jangan lupa disimpan.
Dan isi seperti ini:
<html>
<body>
<h1 align="center">Welcome to Nginx</h1>
</body>
</html>
Sebenarnya rata-rata para pengguna Linux untuk menjalankan php pada nginx itu, mereka menambahkan php-fpm. Akan tetapi pada pengalaman saya selama 2 hari ini berkuting dengan nginx, sampai Slackware 13.37 saya error dengan php-fpm itu membawa masalah sampai-sampai beberapa perintah command di Slackware error semua. Misal seperti ls, installpkg, removepkg, dan masih banya perintah-perintah lainnya. Dan cara untuk mengatasi itu adalah install ulang. Tapi tenang dulu.He saya punya cara lain, dan nanti di lain posting akan saya bahas. Oya balik lagi ke php-fpm, karena php-fpm ini membuat error pada slackware saya, maka untuk mengatasi itu saya menggunakan php-cgi langsung.Sekarang saatnya mengkonfigurasi nginx.conf agar bisa mengeksekusi file dengan ekstensi .php
# nano /etc/nginx/nginx.confLalu ubah di bagian php menjadi seperti ini:
location ~ \.php$ {
root /srv/httpd/htdocs;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME script$fastcgi_script_name;
include fastcgi_params;
fastcgi_param HTTPS on;
fastcgi_intercept_errors on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
bash-4.1# locate php | grep php-cgiDari perintah di atas, maka php-cgi telah ada dan terletak di direktory /usr/bin/php-cgi. Oya sebenarnya untuk pengganti php-cgi, yaitu php-fpm juga bisa digunakan untuk mengeksekusi file php. Tapi ada kebingungan tersendiri buat saya karena php-fpm tidak bisa mengeksekusi file yang menyangkut ke mysql. Entah saya harus ubah dimananya agar php-fpm itu bisa mengeksekusi mysql itu. Maka dari itu, kita langsung aja menggunakan php-cgi dan gak usah pake php-fpm.
/usr/bin/php-cgi
# nano /etc/rc.d/rc.php-cgiLalu isi dengan:
#!/bin/shSebenarnya skrip di atas saya boleh utak-atik sendiri selama 4jam dan ketemulah skrip itu.Hehe maklum nubi banget..
#
# /etc/rc.d/rc.php-cgi
#
# Start/stop/restart
#
# To make php-cgi start automatically at boot, make this
# file executable: chmod 755 /etc/rc.d/rc.php-cgi
#
#created by Imron Rosdiana
case "$1" in
'start')
echo "Starting php-cgi"
/usr/bin/php-cgi -b 127.0.0.1:9000 &
;;
'stop')
echo "Shutdown php-cgi"
killall php-cgi
;;
'restart')
echo "Shutdown php-cgi....."
killall php-cgi
sleep 3
echo "Starting php-cgi..."
/usr/bin/php-cgi -b 127.0.0.1:9000 &
;;
*)
echo "Usage: $0 {start|stop|restart}"
;;
esac
# chmod 755 /etc/rc.d/rc.php-cgiOke setelah di beri hak akse, maka jalankan php-cgi itu dengan perintah:
# /etc/rc.d/rc.php-cgi startSetelah php-cgi berhasil berjalan pada alamat 127.0.0.1 port 9000, sekarang coba kita buat file info.php dan disimpan di /srv/httpd/htdocs yang isinya:
# nano /srv/httpd/htdocs/info.phpSetelah itu sekarang coba buka browser anda dan ketik url berikut ini: http://localhost/info.php. Apabila tampilannya seperti di bawah ini, maka anda telah berhasil..
Lalu isi dengan:
<?php
phpinfo();
?>
# Start Nginx Web server;Lalu simpan..
if [ -x /etc/rc.d/rc.nginx ]; then
. /etc/rc.d/rc.nginx start
fi
# Start php-cgi;
if [ -x /usr/bin/php-cgi ]; then
. /etc/rc.d/rc.php-cgi start
fi
Still remember my poll about what kernel version should be used by the next slackware-current? So for you who have choosen the linux kernel 3.2.2, now you can have a nice drink
. Yes, slackware-current now shipped with kernel 3.2.2 as it's default kernel. But not only that. You'll be surprised if you read the full ChangeLog.txt for complete update information. Trust me on that. Or, you can read Willy's blog for the update summary. So now, I'm going to write about how to upgrade my slackware-current to the latest release.
Mon Jan 30 18:34:44 GMT 2012
GNOME 3.2.2 maintenance patches.
patches/avahi-0.6.30-i486-2gsb.txz: Patched.
Fix a potential problem where avahi could replace the /etc/HOSTNAME with
incorrect information. Thanks to Robby Workman for pointing out the problem
and sending a patch.
patches/clutter-1.8.4-i486-1gsb.txz: Upgraded.
patches/packages/gjs-1.30.1-i486-1gsb.txz: Upgraded.
patches/packages/evolution-data-server-3.2.3-i486-1gsb.txz: Upgraded.
patches/packages/gnome-icon-theme-symbolic-3.2.2-i486-1gsb.txz: Upgraded.
patches/packages/gtkhtml-4.2.3-i486-1gsb.txz: Upgraded.
patches/packages/evolution-3.2.3-i486-1gsb.txz: Upgraded.
Fixes numerous crashes. For more information, see:
http://download.gnome.org/sources/evolution/3.2/evolution-3.2.3.changes.
patches/packages/evolution-exchange-3.2.3-i486-1gsb.txz: Upgraded.
patches/packages/evolution-groupwise-3.2.3-i486-1gsb.txz: Upgraded.
patches/packages/gedit-3.2.6-i486-1gsb.txz: Upgraded.
patches/packages/gnome-nettool-3.0.1-i486-1gsb.txz: Upgraded.
patches/packages/mutter-3.2.2-i486-1gsb.txz: Upgraded.
Fixes a major memory leak with gnome-shell. For more information, see:
https://bugzilla.gnome.org/show_bug.cgi?id=642652
patches/packages/clutter-gst-1.4.6-i486-1gsb.txz: Upgraded.
patches/packages/libgee-0.6.4-i486-1gsb.txz: Upgraded.
patches/packages/gnome-shell-3.2.2.1-i486-1gsb.txz: Upgraded.
Fixes numerous crashes and brings improvements for the message tray. For
more information, see:
https://bugzilla.gnome.org/show_bug.cgi?id=663815
https://bugzilla.gnome.org/show_bug.cgi?id=664138
https://bugzilla.gnome.org/show_bug.cgi?id=648450
https://bugzilla.gnome.org/show_bug.cgi?id=667652
https://bugzilla.gnome.org/show_bug.cgi?id=668048
patches/packages/heimdal-libraries-1.5.2-i486-1gsb.txz: Upgraded.
This contains two security fixes for the libtelnet library and for libkrb5
checksums (2012-01-11, 2012-01-10). For more information, see:
http://www.l5l.org/advisories.html?show=2012-01-10
http://www.l5l.org/advisories.html?show=2012-01-11
(* Security fix *)
testing/gnote-0.8.2-i486-1gsb.txz: Added.
testing/tdb-1.2.9-i486-1gsb.txz: Added.
An upgraded tdb package is needed by rhythmbox; this version of the library
will conflict with the tdb in the samba package.
testing/rhythmbox-2.95-i486-1gsb.txz: Added.
Bismillah.
Aplikasi Zekr bermanfaat bagi muslimin untuk mencari dan membaca ayat-ayat Al-Quran di komputer. Zekr nampaknya belum bisa digantikan aplikasi lainnya karena stabil dan jarang sekali bermasalah. Nah, sayangnya bila Zekr diinstalkan di Slackware 13.37 akan konflik dengan aplikasi Seamonkey bawaan. Zekr akan bekerja baik bila Seamonkey di-downgrade ke versi 1.1.17 bawaan Slackware-13.0 (sayang sekali, versi lama).
(more)./GoogleEarthLinux.bin --target /tmp/ge --noexecIf for some reason you failed to launch the Google Earth, make sure you have created a symlink to comply with LSB that Google requires by running this as root:
cd /tmp/ge/setup.data/bin/Linux/x86/
cd /tmp/ge/setup.data/bin/Linux/x86_64/ (64-bit)
mv setup.gtk setup.gtk2
cd /tmp/ge
./setup.sh (it can be installed using root or normal account)
ln -sf /lib/ld-linux.so.2 /lib/ld-lsb.so.3
/GoogleEarthLinux.bin --target /tmp/geI'm really sure that it was working in the previous version, but unfortunately, it's likely that Google changed it's requirement to have LSB 4.0 as the base
Creating directory /tmp/ge
Verifying archive integrity... All good.
Uncompressing Google Earth for GNU/Linux 6.0.3.2197.............................................................................................
This version of Google Earth requires LSB 4.0 support which you
do not seem to have.
./setup.sh: line 285: [: missing `]'
Unknown id: yum install redhat-lsb
I/O error : No such file or directory
setup.data/setup.xml:1: parser error : Document is empty
^
setup.data/setup.xml:1: parser error : Start tag expected, '<' not found
^
./setup.sh: line 158: 28089 Segmentation fault "$setup" "$@"
Planet Slackware-ID adalah aggregator dari situs blog para Slacker* Indonesia.
(*Pengguna Distro Slackware)
Silakan kirimkan e-mail ke willysr@slackware-id.org apabila blog Anda ingin disertakan pada planet ini.
Terakhir diupdate: February 11, 2012 11:01 AM GMT.
|
|
| Subscribe to id-slackware |
| Visit this group |