Berpindah ke http://blog.khuzaimi.com

Berpindah ke http://blog.khuzaimi.com

Ubuntu resolution nvidia 1024×768

Ubuntu 8.04
nVidia Corporation NV5M64 [RIVA TNT2 Model 64/Model 64 Pro]

1) Enable NVIDIA device drivers, System –> Administration –> Hardware Drivers

2) Backup xorg.conf

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf-backup

3) Edit xorg.conf

sudo gedit /etc/X11/xorg.conf

In Section “Screen” add the above line:

SubSection "Display"
	Depth	24
	Modes	"1024x768"
EndSubSection

Also this in Section “Monitor”

Horizsync 30.0-55.0
Vertrefresh 50.0-120.0

4) Backup usplash.conf

sudo cp /etc/usplash.conf /etc/usplash.conf-backup

5) Edit usplash.conf and changes it to 1024 and 768

xres=800
yres=600
 
xres=1024
yres=768

6) The last step is to update the “initial RAM disk”, that is used when your system boots up:

sudo update-initramfs -u

7) Lastly, restart X with press Ctrl + Alt + Backspace

dpkg failed with debconf locked

Ubuntu 8.04

sudo dpkg-reconfigure xserver-xorg
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
sudo fuser -v /var/cache/debconf/config.dat
 
USER        PID ACCESS COMMAND
 
/var/cache/debconf/config.dat:
 
root       7235 f.... dpkg-reconfigur
ps -ef | grep 7235
sudo kill -9 7235

How to upgrade from Debian Etch to Lenny

Upgrading from Etch to Lenny:

1. Edit sources.list

sudo gedit /etc/apt/sources.list

and change all words etch to lenny, or stable to testing

2. Update and upgrade

sudo apt-get update && apt-get dist-upgrade

If all goes well, once finished you should be able to reboot into your new Debian Lenny kernel!

To install Adobe Reader using the command line

Debian 4.0 Etch

Download new and previous versions of Adobe Reader here

To install a .deb file, run the following command as administrator or root:

dpkg -i filename.deb

Thanks to adlan aka iosfwd.