Archive for the ‘Ubuntu’ Category

Got my first error after upgrade to Ubuntu 13.10 (from 13.04) two days ago.

After a quite long search in google without any luck, this is what I do :

1. Run dconf-editor (via Dash | dconf-editor, or Terminal | type dconf-editor)
2. Click org
3. Click gnome
4. Click desktop
5. Click background
6. Click primary color
7. Click Set to Default
8. Click secondary color
9. Click Set to Default
10. Done

You will get your desktop, wallpaper and mouse right click again after that ;)

Advertisements

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

Unable to install Nokuntu

Posted: April 10, 2013 in Linux, Ubuntu

If you are unable to install Nokuntu on Ubuntu, and got this error message :

unable to open file ‘/var/lib/dpkg/tmp.ci//usr : Is a directory

Assuming that the working directory is where the nokuntu deb file reside, do the following :

mkdir nokuntu
cd nokuntu
ar x ../nokuntusp*.deb
mkdir control
cd control
tar xzvf ../control.tar.gz
rm -rf usr
tar czvf control.tar.gz *
mv control.tar.gz ..
cd ..rm -rf control
ar -r ../nokuntusp-new.deb debian-binary control.tar.gz data.tar.gz
sudo dpkg -i ../nokuntusp-new.deb

After that all you have to do is install all the gambas dependencies

If you want ot have “reaver” on your Ubuntu or other Debian based distro, this is how you do it :

Download reaver,

Extract reaver

tar zxvf reaver-1.4.tar.gz

Install libpcap and libsqlite3, don’t forget to check the version installed on your distro.

sudo apt-get install libpcap0.8-dev libsqlite3-dev

Change directory to where reaver source reside (usually named reaver-1.4)

cd reaver-1.4

Configure dan Make

./configure
make
sudo make install

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

While assisting someone from the web forum who was infected by Trojan/Malware (it’s Windows machine FYI), I deliberately browsed on suspected IP address knowing that Windows Trojan and/or Malware won’t harm my Ubuntu Linux Machine. Won’t it?
Well … my machine got infected! Immediately after I browse that IP address, my outbound internet connection suddenly full with strange connection to some local (Indonesian) IP Address and some other IP from outside Indonesia.

netstat -a reveal nothing when no browser open, but suddenly full of establish ongoing connection to port 443 (ssl) and other port when I open Chrome of Firefox on my Ubuntu Machine, some connection were legit (namely the infamous Google’s sin01*-site) but many are just rouge connection, and it steal(!) my bandwidth.

I’ve installed avg antivirus for linux (the deb version for debian/ubuntu) and clamav which I never thought I’d have on my Linux Machine but all the scan revealed nothing, rkhunter and chkrootkit says nada – no infection whatsoever, but the weird establish outbound connection is still there.

So I retraced my step to the IP address I browsed before I got the problem: and compared it to some of the IP list on my netstat output: It seemed that all the connection to the suspected IP always forwarded to a248.e.akamai.net and some other rouge site.

Further research revealed that the culprit was my dns cache, it seemed that the rouge site manipulate my dns cache so it can control my outbound connection, that was why I can’t find any infected file on my system ;) … and worse, dnsmasq was ran by default on my Ubuntu 12.04 because it’s build in NetworkManager (with all the DNS Poisoning threat lately I guess Canonical should disable it in 12.10).

Here’s what I do to fix my problem :

1. Clear all my browser cache

2. Edit NetworkManager.conf

sudo pico /etc/NetworkManager/NetworkManager.conf

3. Disable dnsmasq.

#dns=dnsmasq

4. Restart Network Manager

sudo restart network-manager

5. Clear the dns cache

sudo /etc/init.d/dns-clean start

and just to be sure I installed nscd too

sudo apt-get install nscd

sudo /etc/init.d/nscd start

6. Done!