Petualangan pejalan kaki
Sedikit tentang sisi hidup itu sendiri.
Friday, April 19, 2013
Extract file rpm di UNIX selain RedHat dan turunannya
Jika ingi mengekstrak file *.rpm di lingkungan unix selain RedHat dan turunanya bisa memakai command rpm2cpio.
#rpm2cpio *.rpm | cpio -idmv
Gitu.
Friday, January 13, 2012
Update ubuntu yang Nge-lock
Jika sedang melakukan update pada ubuntu mendapatkan pesan seperti dibawah ini :
user@seruni:~$ sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
Ada beberapa cara untuk memecahkan masalah tersebut diantaranya.
1. Meremove file locknya
user@seruni:~$sudo rm -rf /var/lib/apt/lists/lock
2. Mengkill proses yang ada hubungannya
user@seruni:~$sudo fuser -vki /var/lib/apt/lists/lock
Baru setelah dilakukan hal tersebut coba di lakukan update lagi.
Sekian
user@seruni:~$ sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
Ada beberapa cara untuk memecahkan masalah tersebut diantaranya.
1. Meremove file locknya
user@seruni:~$sudo rm -rf /var/lib/apt/lists/lock
2. Mengkill proses yang ada hubungannya
user@seruni:~$sudo fuser -vki /var/lib/apt/lists/lock
Baru setelah dilakukan hal tersebut coba di lakukan update lagi.
Sekian
Friday, September 09, 2011
Apache no space left OpenBSD
Kalau mendapati error message di OpenBSD saat menjalankan Apache :
[Fri Sep 9 23:32:27 2011] [error] mod_ssl: Parent process could not create private SSLMutex semaphore (System error follows)
[Fri Sep 9 23:32:27 2011] [error] System: No space left on device (errno: 28)
# ipcs -T | grep semmni
semmni: 10 (# of semaphore identifiers)
# sysctl -w kern.seminfo.semmni=20
kern.seminfo.semmni: 10 -> 20
# ipcs -T | grep semmni
semmni: 20 (# of semaphore identifiers)
Restart Apache dan Check kembali.
[Fri Sep 9 23:35:30 2011] [notice] Initializing etag from /var/www/logs/etag-state
[Fri Sep 9 23:35:30 2011] [notice] chrooted in /var/www
[Fri Sep 9 23:35:30 2011] [notice] changed to uid 67, gid 67
[Fri Sep 9 23:35:30 2011] [notice] Apache configured -- resuming normal operations
[Fri Sep 9 23:35:30 2011] [notice] Accept mutex: sysvsem (Default: sysvsem)
Kalau sudah seperti diatas maka berarti sudah OK.
Salam
[Fri Sep 9 23:32:27 2011] [error] mod_ssl: Parent process could not create private SSLMutex semaphore (System error follows)
[Fri Sep 9 23:32:27 2011] [error] System: No space left on device (errno: 28)
# ipcs -T | grep semmni
semmni: 10 (# of semaphore identifiers)
# sysctl -w kern.seminfo.semmni=20
kern.seminfo.semmni: 10 -> 20
# ipcs -T | grep semmni
semmni: 20 (# of semaphore identifiers)
Restart Apache dan Check kembali.
[Fri Sep 9 23:35:30 2011] [notice] Initializing etag from /var/www/logs/etag-state
[Fri Sep 9 23:35:30 2011] [notice] chrooted in /var/www
[Fri Sep 9 23:35:30 2011] [notice] changed to uid 67, gid 67
[Fri Sep 9 23:35:30 2011] [notice] Apache configured -- resuming normal operations
[Fri Sep 9 23:35:30 2011] [notice] Accept mutex: sysvsem (Default: sysvsem)
Kalau sudah seperti diatas maka berarti sudah OK.
Salam
Friday, January 21, 2011
Mandala rest for a while
Its like socking news when reading the online newspaper that Mandala Airways is closing for a while until uncertainly time.Why it could happen ? Its just a aweek ago when i used this Air service for going to jogja from jakarta. Deep reading in why mandala air taking rest is in the fact that Air Service Company is in difficult situation of their Financial. In another fact that beaten in competition with another air service is making so funny.
As we know mandala is one of the 'Founder' of the commercial air service in Indonesia. So whats wrong ? Hm... how about management ? When the rising trend of Air Passenger... i'ts difficult to understand but that a business.. business is not just how to sell something but sometime how to make standing up when your business is being beaten by another thing.
Hopefully Mandala Air Ways flying again Immediately and make me Fly ;)
Hopefully Mandala Air Ways flying again Immediately and make me Fly ;)
Wednesday, May 26, 2010
Flush Iptables
Ternyata untuk ngeflush iptables di ubuntu agak banyak commandnya :
root@xserver:~# iptables -F
root@xserver:~# iptables -X
root@xserver:~# iptables -t nat -F
root@xserver:~# iptables -t nat -X
root@xserver:~# iptables -t mangle -F
root@xserver:~# iptables -t mangle -X
root@xserver:~# iptables -P INPUT ACCEPT
root@xserver:~# iptables -P OUTPUT ACCEPT
root@xserver:~# iptables -F
root@xserver:~# iptables -X
root@xserver:~# iptables -t nat -F
root@xserver:~# iptables -t nat -X
root@xserver:~# iptables -t mangle -F
root@xserver:~# iptables -t mangle -X
root@xserver:~# iptables -P INPUT ACCEPT
root@xserver:~# iptables -P OUTPUT ACCEPT
Monday, April 19, 2010
utak atik file [1]
Misal kita punya file test.txt yang isinya adalah
$cat test.txt
a,b,c,d,e,f,g,h
i,j,k,l,m,n,o,p
q,r,s,t,t,v,w,x
Nah kita ingin dari file tersebut diubah menjadi seperti ini :
a|b|c|d|e|f|g
i|j|k|l|m|n|o|p
q|r|s|t|u|v|w|x
Maka kita cukup dengan satu line command sebagai berikut :
$cat test.txt | awk -F"," '{print $1"|"$2"|"$3"|"$4"|"$5"|"$6"|"$7}' > test1.txt
kita coba lihat hasilnya:
$cat test1.txt
a|b|c|d|e|f|g
i|j|k|l|m|n|o|p
q|r|s|t|u|v|w|x
$cat test.txt
a,b,c,d,e,f,g,h
i,j,k,l,m,n,o,p
q,r,s,t,t,v,w,x
Nah kita ingin dari file tersebut diubah menjadi seperti ini :
a|b|c|d|e|f|g
i|j|k|l|m|n|o|p
q|r|s|t|u|v|w|x
Maka kita cukup dengan satu line command sebagai berikut :
$cat test.txt | awk -F"," '{print $1"|"$2"|"$3"|"$4"|"$5"|"$6"|"$7}' > test1.txt
kita coba lihat hasilnya:
$cat test1.txt
a|b|c|d|e|f|g
i|j|k|l|m|n|o|p
q|r|s|t|u|v|w|x
Wednesday, March 10, 2010
Aku dan dua orang custormer service di sebuah perusahaan.. xxxxxx
CS1 : "Gw sebel deh klo ada yang install software di sini.."
CS2 : "Iya gw juga kesel udah tahu tempatnya sempit harus kesana kemari.."
AKU : "*&#^*!^@(@&^#*@*!............"
CS1 : "Harusnya di ruang meeting aja tuh.. kan luas"
CS2 : "Au' tuh...."
AKU : "Garuk garuk kepala..&^#$@$%!$&*(!&@$##!$........"
Subscribe to:
Posts (Atom)