Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Thursday, October 3, 2013

Wireplay on Ubuntu 12.04

Credit to those who found out how to solve the errors first. All I am doing here is to list out the steps for a successful installation.

1. Install all the required dependencies on an Ubuntu 12.04

sudo apt-get install ruby1.8 ruby1.8-dev libruby1.8 libpcap0.8 libpcap0.8-dev libnet1 libnet1-dev

2. Check your Ruby version and take note of it

ls /usr/lib/ruby/1.8/ | grep linux

3. Download the Wireplay source file from the following URL

wget https://github.com/abhisek/wireplay/archive/master.zip

4. Go to the location where you save the zip file and unzip it

unzip master.zip

5. Go to the libnids-123 folder

cd wireplay-master/libnids-123

6. Edit the killtcp.c file in libnids-1.23/src folder

vi src/killtcp.c

7. Change the last


#elif

to

#else

8. Run 'configure' and then 'make'


./configure --enable-shared --disable-libglib
make

9. Go to wireplay-master folder


cd ..

10. Edit the Makefile


vi Makefile

and check if the Ruby version is the same as in Step 2. If it is not the same, edit it.

11. Run 'make'


make


Wednesday, September 7, 2011

Ubuntu audio issues

If you faced problems with the audio on your just installed Ubuntu, this is the simplest and quickest fix that I can find online.

With all due credit to those who found the solution first, here it is

1. Edit the Alsa config file

sudo vi /etc/modprobe.d/alsa-base.conf

2. Add at the end of the file the following line

options snd-hda-intel model=thinkpad

3. Restart the sound card

sudo /sbin/alsa force-reload

4. If your issue is still not solved, try changing the value for Step 2 to to something else other than 'thinkpad'. Refer to the list below.

laptopBasic Laptop config (default)
hp-laptopHP laptops, e g G60
asusAsus K52JU, Lenovo G560
dell-laptopDell laptops
dell-vostroDell Vostro
olpc-xo-1_5OLPC XO 1.5
ideapadLenovo IdeaPad U150
thinkpadLenovo Thinkpad

Sunday, February 14, 2010

Huawei E1762 on Linux

You'll need two packages and a configuration file

usb-modeswitch version => 1.07
usb-modeswitch-data file dated => 10 Jan 2010
usb_modeswitch.conf => 2010-03-09

Note: The above package links are for Debian based distribution like Ubuntu. If you are using 10.04 Lucid, use the Ubuntu Software Center to install both usb-modeswitch and usb-modeswitch-data.

Install the packages at the same time

Place the configuration file in /etc directory. To check if you have place the configuration file at the right place just type
# usb_modeswitch
and it should not give you a 'file not found error'.

To check if your stick is correctly detected as a modem, give the command
# lsusb
you should see something like this
Bus 002 Device 009: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
usb
If you see something like this
Bus 002 Device 002: ID 12d1:1446 Huawei Technologies Co., Ltd
edit the configuration file by giving the command
# sudo gedit /etc/usb-modeswitch.conf
and find the lines that says 'E7162' and uncomment the 5 lines that follows. There are two instances of 'E1762'. Either one will work. Save the edited file, and give the command
# sudo usb_modeswitch -H -v 12d1 -p 1446 -c /etc/usb-modeswitch.conf
Now check if the dongle is detected correctly by giving the 'lsusb' command again and you should the stick is now detected as a modem.

If you are using on a 64-bit architecture, you can download them here

If you are not using a Debian based distribution, you can download the files below

usb-modeswitch-1.1.0.tar.bz2
usb-modeswitch-data-20100203.tar.bz2