Category Archives: Linux

Solution to Steam lunch problem in linux

If you installed Steam to your linux machine and see some lunch alerts complaining about such error;

You are missing the following 32-bit libraries, and Steam may not run: libGL.so.1

this is your solution time. Here is the solution.

This seem to happen on every 64bits OS. Full bug report here:

https://github.com/ValveSoftware/steam-for-linux/issues/321

Solution: Continue reading Solution to Steam lunch problem in linux

Share

Best Android ROMs that I experienced

For a long time, I have yet to find best ROM variant to my galaxy s2. I used so many different names with different benefits. Battery life, smoothness, loading performance and such qualifications are general expectations of a user but I know that it is really killing to find all of those constraints in one ROM. One might give good performance whereas it drains your battery in a hour, on the other experience, one might gives best battery juice with varying error messages you see in a day. I also come along that way and here is my list of best ROMs with specific pros and cons.
 

Paranoid ROM

 
     This ROM based on well known CynogenMod with very different and Continue reading Best Android ROMs that I experienced
Share

Intallation CUDA to Ubuntu 12.10 with Optimus Nvidia Cards

I installed Ubuntu 12.10 to my brand new machine but as always I started to deal lot of deriver problems coming around. Most consuming trouble was about the Nvidia drivers. I installed all kind of drivers suggested by the Additional Drivers tool and the Nvidia website but I cannot get my Graphic card working. After hours of investigation see that with the new generation notebooks with Nvidia cards there is a new technology called Optimus. With that system, new machines have two different graphic cards as the Intel's native one on the mother board and Nvidia Card. To prolong the battery life, Intel card is working for simple graphic rendering where as Nvidia comes into play with hard rendering problems so that machine can keep the battery life better in hours. However, Nvidia is deficient to provide a driver supporting new tech on Linux machines. As always solution is taken by the open source approach, Bumblebee driver interface is developed. In Continue reading Intallation CUDA to Ubuntu 12.10 with Optimus Nvidia Cards

Share

Run matlab codes from terminal.

Sometimes it is necessary to run your matlab codes from terminal, likely when you are away on remote connection to your work station. Sometimes you need to run couple of matlab instances from same terminal with additional & sign at the end of the terminal command. Now I'll show a basic command to be able to run youR *.m script from terminal.

matlabOn the terminal you and the directory where the matlab bin file is located you type that command.

./matlab -nodesktop -nosplash -r "run path/to/your/*.m/file"

DO NOT USE  .m FILE EXTENSION JUST LIKE YOU ARE CALLING A SCRIPT AT NATIVE MATLAB ENVIRONMENT.

After -r macro at the quote signs every thing you write is respected as a normal matlab code thus you might write any other execution sequence you want.

Share

Run Matlab On Remote Machine with GUI

Running Matlab Remotely: ssh -X

I wanted to run Matlab by logging into the university account remotely from my machine. Everything went fine except for the graphics. Matlab started in no graphics mode.

After bit of a search I found the solution. You have to set the X11 forwarding in you ssh configuration file. Here's how to do it.

1. cd /etc/ssh
2. sudo vi ssh_config
3. uncomment the lines "ForwardAgent" and "ForwardX11". Set their values to "yes"
4. sudo vi sshd_config
5. uncomment "X11Forwarding" and set it value to "yes" as well.

that's it and you are good to go.

Type ssh -X username@domain

To test if everything works fine try running xclock once you log in. It should open up a graphical clock window.

Share

Simple hack to connect an authentication needed internet. (like in Starbucks)

For the notion of tradition I need to say that "all the information for educational purpose".

To make use of that trick, you should able to connect to the LAN but cannot connect to internet since it is waiting to fill a authentication form that is not free to fill(generally, if it is free don't mass your mind).

We follow the process as, first look the LAN for other hosts' IP addresses. Find a good looking IP (luckily connected to internet already.). Then retrieve the MAC address of that IP by using ARP protocol. Set your MAC address to retrieved one. Check whether you can surf. If you can't, try another victim IP. Continue reading Simple hack to connect an authentication needed internet. (like in Starbucks)

Share

A bash script for Linux to extract all kind of compressed file from console.

Open ~/.bashrc file with your favorite editor and paste below script to the bottom of the file.

extract () {
if [ -f $1 ] ; then
    case $1 in
     *.tar.bz2) tar xvjf $1 ;;
     *.tar.gz) tar xvzf $1 ;;
     *.bz2) bunzip2 $1 ;;
     *.rar) rar x $1 ;;
     *.gz) gunzip $1 ;;
     *.tar) tar xvf $1 ;;
     *.tbz2) tar xvjf $1 ;;
     *.tgz) tar xvzf $1 ;;
     *.zip) unzip $1 ;;
     *.Z) uncompress $1 ;;
     *.7z) 7z x $1 ;;
    *) echo "don't know how to extract '$1'..." ;;
   esac
else
   echo "'$1' is not a valid file!"
fi
}

then write "extract" on console with the file you want to extract and see the effect.

extract bla.tar.gz
Share

Changing MAC address of your network cards on Linux

See the current MAC values

erogol@erogol-G50V ~ $ ifconfig -a | grep Ethernet
eth0      Link encap:Ethernet  HWaddr 00:22:15:3a:36:93
wlan0     Link encap:Ethernet  HWaddr 00:15:af:dd:94:91

Stop running of the card

<pre ">erogol@erogol-G50V ~ $sudo ifconfig eth0 down

Change the MAC address

erogol@erogol-G50V ~ $ sudo ifconfig hw ether 00:22:15:3a:36:83

Start the card running again

erogol@erogol-G50V ~ $ sudo ifconfig eth0 up

That's all. You might see the new MAC address for check.

Why I need to change the MAC address. Continue reading Changing MAC address of your network cards on Linux

Share