Archive for the ‘Backtrack’ Category

Ubuntu performance tweak

Posted: July 19, 2013 in Backtrack, Linux, Ubuntu

This is what you can do to increase your Ubuntu access speed and performance

1. Set swappiness to the allowed lowest value, usually the default value is 60

rumy@cbug-nest:~$ cat /proc/sys/vm/swappiness
60

2. Edit /proc/sys/vm/swappiness and change 60 to 10 (assuming RAM > 1 GB)

sudo pico /proc/sys/vm/swappiness
{change 60 to 10, save with [Ctrl] [O] [Enter], exit with [Ctrl] [X]}
cat /proc/sys/vm/swappiness
10

3. Edit /etc/sysctl.conf, and add vm.swappiness=10, vm.vfs_cache_pressure=50 to the end of file

sudo pico /etc/sysctl.conf
{move cursor to the end of file and then add this}
vm.swappiness=10
vm.vfs_cache_pressure=50

{Save with [Ctrl] [O] [Enter], exit with [Ctrl] [X]}

4. Reboot

If you have problem controlling your Acer Netbook brightness when using Backtrack or Kali or Ubuntu or other Debian derivative distro, you can try this :

1. Open your Shell or Terminal

2. Type this on Terminal :

setpci -s 00:02.0 f4.b=10

3. Or you can add that to your rc.local

Here’s if you want to boot your Ubuntu 12.04 machine without typing a password :

1. Put your command on /etc/sudoers.d/shutdown

sudo visudo -f /etc/sudoers.d/shutdown

 

2. Type this :

# Cmnd alias specification
 Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/halt, /sbin/reboot
# User privilege specification
 rumy ALL = (ALL) NOPASSWD: SHUTDOWN_CMDS

3. Save it

4. Execute it like this :

rumy@cbug-lair:~$ sudo /sbin/reboot

Want to use Ubuntu Network Manager instead of wicd Network Manager on Backtrack5R2?

Try this :

1. Install Network Manager

sudo apt-get install network-manager

2. Edit /etc/network/interfaces

sudo pico /etc/network/interfaces

So it’s just contain this:

rumy@cbug-lair:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

3. Edit /etc/NetworkManager/nm-system-settings.conf

pico /etc/NetworkManager/nm-system-settings.conf

So it’s contain:

rumy@cbug-lair:~$ cat /etc/NetworkManager/nm-system-settings.conf
# This file is installed into /etc/NetworkManager, and is loaded by
# NetworkManager by default. To override, specify: ‘–config file’
# during NM startup. This can be done by appending to DAEMON_OPTS in
# the file:
#
# /etc/default/NetworkManager
#

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

4. Reboot

I’ve been searching the net to find the solution for my problem :
I’ve installed Backtrack5R2 on my HP ProBook 5220m, and my HP ProBook didn’t have a sound ever since (it has a sound when I have Ubuntu 12.04 on it)
And all the blog I found seems to copy each other article that suggest me to put /usr/bin/pulseaudio on my startup application launcher, but no … it didn’t work for me.

This morning I wake up with this thought: not so long a go if my Slackware machine didn’t have a sound, I simply fireup alsamixer on the console and enable it from there, rise the volume and it will work like charm … so why not try that?

So couple of minutes ago, when I have time to access my HP ProBook 5220m with Backtrack5R2, I open terminal console:

sudo su

and type:

alsamixer

and to my surprise: THE SPEAKER BAR IS MUTE!  (it has MM (mute) below it), so I simply press M on Speaker bar and then: I GOT MY SOUND BACK ;)

After that all I did is save the alsamixer config with:

alsactl store

Hope this helps other who was tired reading /usr/bin/pulseaudio out there but still doesn’t have their sound back ;)

If you got this error when try to use wicd:

Could not connect to wicd’s D-Bus interface. Check the wicd log for error messages.

try this:

1. Fireup gnome terminal

2. Type:

dpkg-reconfigure wicd
update-rc.d wicd defaults 

3. Done ;)

Got bored with Ubuntu 12.04 and last night I decide to try Backtrack5 R2 GNOME 64bit on my HP ProBook 5220m

Here’s what happened

1. I made a Backtrack USB boot with  Ubuntu’s Startup Disk Creator (guess Unetbootin will do too)
2. Boot HP ProBook with Backtrack5 R2 usb stick.

a. And I got the first error ;) the Backtrack won’t boot, it stop on a boot: prompt, complaining that:

vesamenu.c32 : not a COM32R image


b. But when I hit tab, I saw the kernel image: DEFAULT STEALTH … etc
c. So I put DEFAULT after boot: prompt and hit ENTER

boot: DEFAULT [enter]

and the system start booting like usual
d. I login with default account and password (root/toor) and type startx to try the GUI only to have a blank screen, the system freeze
e. After turning off the notebook, I tried again to boot but now with more option:

boot: DEFAULT  xforcevesa noapic noacpi nosplash irqpoll

after login (again) and run startx, I finally got the BackTrack GUI screen :)
f. Finished? … NO! I have Intel Graphic Card so why used VESA? so here’s what I did next.

3. After checked the system, I found that it’s already have Intel Xserver driver

For those who don’t have an Intel Xserver driver don’t forget to install intel xserver driver
Activate network and connect to Internet via wicd (/etc/init.d/networking start and look for wicd on Applications|Internet menu)
and do this: 

 apt-get install xserver-xorg-video-intel
 apt-get install xserver-xorg-video-intel-dbg
 apt-get install xserver-xorg-video-i740 

So I logout from Backtrack GUI and create a new xorg.conf

Xorg -configure

Copied it to /etc/X11

cp xorg.conf.new /etc/X11/xorg.conf

And edit /etc/default/grub and change “text splash vga=791” to “text splash i915.modeset=1”

pico /etc/default/grub
change text splash vga=791 to text splash i915.modeset=1
save

and don’t forget to:
update-grub

And then reboot my new Backtrack5R2 System with Intel Graphic Card ;)

4. Finishing touch, install update, synaptic, gdm and gnome-system-tools so I can have a desktop GUI ;)

apt-get update
apt-get upgrade
apt-get install synaptic
apt-get install gdm
apt-get install gnome-system-tools

5. Add new user (System|Administration|User and Groups) and add it to sudo groups

Add new user: rumy with a password: canttouchthis
Manage groups – sudo – Properties – checked rumy 

6. Finished!