Arsip Kategori: Linux

Mengatasi Forbidden 403 pada apache2 ubuntu

Biasanya setelah kita selesai melakukan instalasi apache2 di ubuntu kita akan menyimpan file project kita di /var/www atau ~/public_html.

Tapi, setelah coba di akses melalui http://localhost/nama_project yang muncul adalah halaman Forbidden 403. Hal ini terjadi karena kita belum merubah hak akses ke folder project tersebut. Maka solusinya jalankan perintah berikut ini..

# chmod -R 755 /var/www/*

Pasti berhasil deh.. 😀


Fix Audio Control BackTrack 5 R1

The latest version of BackTrack 5, R1, has an issue with audio controls. While I have experienced this problem on the GNOME version, I cannot say about the KDE version.

When you make a fresh installation of BT 5 R1, the audio control applet in the panel does not work. The slider moves, but sliding it does not affect the volume. Also, clicking on Sound Preferences displays a message ‘waiting for sound system to respond’ and does nothing. However, the volume can still be controlled in any media player that you use. I use Rythmbox.

The fix for this is pretty simple.

1. Navigate to System > Preferences > Startup Applications on the main menu.

2. Click on Add.

3. Give a name. I used ‘Fix Audio Control issue’. This is only to identify it, in case you run through the list at a later time and wonder what the entry is for.

4. For Command, type ‘/usr/bin/pulseaudio’ without the single quotes.

5. Click on Add, and then on Close.

6. Logout to close the X session, and restart it by typing ‘startx’ without the single quotes.

That’s it.

Setup Proxy Server in BackTrack 5 R1

Set http_proxy shell variable

Type the following command to set proxy server:

$ export http_proxy=http://server-ip:port/
$ export http_proxy=
$ export http_proxy=

How do I setup proxy variable for all users?

To setup the proxy environment variable as a global variable, open /etc/profile file:

# vi /etc/profile

Add the following information:

export http_proxy=

Save and close the file.

How do I use password protected proxy server?

Use this:

export http_proxy='http://user:password@server.ip.address:port/'
export http_proxy='http://vivek:myPassword@'

You can simply use wget as follows:

$ wget --proxy-user=USERNAME --proxy-password=PASSWORD

Lynx has following syntax:

$ lynx -pauth=USER:PASSWORD

Curl has following syntax:

$ curl --proxy-user user:password