Saturday, July 11, 2009

dpkg: unrecoverable fatal error, aborting: files list file for package `manslide' is missing final newline E: Sub-process /usr/bin/dpkg returned an e

Assalamualaikum, Allahumma Solli Ala Muhammad

dpkg: unrecoverable fatal error, aborting: files list file for package `manslide' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2

Bila terjadi masalah seperti ini, biasanya proses untuk kemaskini tidak boleh dibuat.

Jadi penyelesaiannya adalah

1. The package list files are in /var/lib/dpkg/info

In my case /var/lib/dpkg/info/libgtk1.2.list was corrupted
(its contents were binary cruft).

So the best way to go about this is to

2. Manually reinstall the affected package

# move the info dir containing corrupted data out of the
# way, and create a new 'info' dir
cd /var/lib/dpkg
sudo mv info info.bak
sudo mkdir info

3. Lepas tu try update, insyaALLAH boleh.


sumber asal: https://lists.ubuntu.com/archives/ubuntu-users/2007-January/104520.html


Saturday, July 4, 2009

dpkg was interrupted

Semasa saya mahu update ubuntu, keluar

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

Kemudian saya pun taip sudo dpkg --configure -a di terminal

penahijau@penahijau-laptop:~$ sudo dpkg --configure -a

Keluar pula error ini.

dpkg: parse error, in file `/var/lib/dpkg/updates/0004' near line 1:
field name `libxml-sax-perl' must be followed by colon

Terjumpa artikel di http://kubuntuforums.net/forums/index.php?topic=3096180.0

maka saya taip di terminal sudo rm /var/lib/dpkg/updates/0004

ada lagi error

saya taip lagi sudo rm /var/lib/dpkg/updates/0005

Kemudian saya pun taip lagi sekali di terminal $ sudo dpkg --configure -a

Alhamdulillah, boleh. Ini hasilnya:

Setting up manslide (2.0.3-1~getdeb1) ...
penahijau@penahijau-laptop:~$

Wednesday, July 1, 2009

Cara install lamp

from: http://joeabiraad.com/linuxunix/installing-lamp-on-ubuntu-710-linuxapachemysqlphp/100

1. Also in terminal write:

sudo apt-get install php5 libapache2-mod-php5

or any php version you like
2. restart apache

sudo /etc/init.d/apache2 restart

This is it for PHP :D Wanna test it ? Just create an ordinary PHP page in /var/www/ and run it.
Example:

sudo gedit /var/www/test.php

and write in it: < ?php echo “Hello World”; ?>

Now run it by typing http://localhost/test.php in firefox… You should see your ” Hello World ”

66 % is over, lets continue to installing MySQL:
1. Again and again in terminal execute:

sudo apt-get install mysql-server

2. (optional) If you are running a server you should probably bind your address by editing bind-address in /etc/mysql/my.cnf and replacing its value (127.0.0.1) by your IP address
3. set your root password (although mysql should ask you about that when installing)

mysql> SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(’xxxxxx’);

4. Try running it

mysql -uroot -pxxx

where xxx is your password.
Note: You can install PHPMyAdmin for a graphical user interface of MySQL by executing

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

5. restart apache for the last time

sudo /etc/init.d/apache2 restart

Congratulions your LAMP system is installed and running :D Happy Coding

//Jo

UPDATE:
Due to the large number of people emailing about installing/running phpmyadmin.
Do the following:

sudo apt-get install phpmyadmin

The phpmyadmin configuration file will be installed in: /etc/phpmyadmin
Now you will have to edit the apache config file by typing

sudo vi /etc/apache2/apache2.conf

and include the following line:

Include /etc/phpmyadmin/apache.conf

Restart Apache

sudo /etc/init.d/apache2 restart

Another issue was making mysql run with php5
First install these packages:

sudo apt-get install php5-mysql mysql-client

then edit php.ini and add to it this line : ” extensions=mysql.so” if it isnt already there

sudo vi /etc/php5/apache2/php.ini

Restart Apache

sudo /etc/init.d/apache2 restart

Nak edit php.ini

sudo gedit /etc/php5/apache2/php.ini

Cari fail

sudo find / -name php.ini

Friday, June 26, 2009

Check out this website http://www.getdeb.net/app/ManSlide

Thursday, June 25, 2009

Stop Nginx Start Apache2

sudo /etc/init.d/nginx stop
sudo /etc/init.d/apache2 start

Wednesday, June 24, 2009

Cara install google earth dalam ubuntu

Cara install google earth
  1. Download http://earth.google.com/download-earth.html
  2. Selepas download, klik kanan, open with other application
  3. Buka use custom command. type sh dan kemudian open
  4. Google Earth akan tercompress secara sendiri dan kemudian window Google Earth Setup akan terbuka
  5. Pilih Begin to install
Troubleshooting
  1. Jika screen crash, mungkin akan ada masalah.
  2. Type ni pada terminal ~/google-earth/googleearth jika keluar ./googleearth-bin: relocation error: /usr/lib/i686/cmov/libssl.so.0.9.8: symbol BIO_test_flags, version OPENSSL_0.9.8 not defined in file libcrypto.so.0.9.8 with link time reference memang anda ada masalah yang perlu dibaiki
  3. Untuk selesaikan masalah ini, pergi ke folder yang terinstall google earth ini, kemudian cari fail yang bernama libcrypto.so.0.9.8.bak. dan rename kan ia.



Tuesday, June 23, 2009

Login sebagai root

sudo -i