Categories
How To

me-tv, a great program to watch tv with on ubuntu linux

There are quite a few programs for watching TV with on linux, but the best one I have found is me-tv! You can download me-tv from https://launchpad.net/me-tv/+download or via your distributions package manager. It makes scanning for channels, adding channels, watching TV, and recording shows a cinch. Big up to me-tv!

Categories
Status

How to Stream using Justin.tv with Ubuntu

Note: See bottom of post for some other streaming options!

There are a few options to do this(jtvlc, webcam studio), but the easiest is to use the built-in streaming application on the justin.tv website. The reason this doesn’t work out of the box is because of a bug in flash that results in flash not prompting for access to system devices on linux. To get around the bug you need to allow justin.tv to always be able to use flash to access your webcam. To do this visit the site below:

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager06.html

Now, scroll down until you find a url that looks like www-cdn.justin.tv. Highlight the link and then populate the “Always allow” bubble. It should look like the screenshot below when you are done. After you have done this you can visit the justin.tv site and stream using their webapp.

You can also stream to justin.tv using the instructions in the link below:

http://www.ws4gl.org/broadcasts/fme-broadcasts

In response to the link above, my justin.tv command eventually looked like this:

sudo ffmpeg -f video4linux2 -s 640×480 -r 15 -i /dev/video0 -f alsa -i pulse -ac 1 -ab 96kb -ar 22050 -r 15 -b 550kb -f flv “rtmp://live.justin.tv/app/live_12398123_asdf123”

Categories
Status

How to Share a Wireless Connection via Ethernet Using Squid on Ubuntu

I needed to share my wireless internet connection on my laptop to a few computers that did not have wireless network cards. This is how I solved the problem.

What you will need:

1. Computer with wireless internet connection running Squid on Ubuntu

2. A few ethernet cables

3. A switch

4. A computer to share the connection to

Instructions:

1. To begin make sure your squid proxy is up and running on the computer that has the wireless connection. To do this open a web browser configure your browser to use your squid proxy (located under network settings on most browsers). The host will be localhost and the default port is 3128. If you don’t have squid installed  use “sudo apt-get install squid” to install squid on Ubuntu. Below is a screenshot of what the settings will look like using Google Chrome as the web browser. Once you have configured your browser visit a webpage and make sure it is working by making sure webpages load correctly.

2. ow you need to configure your wired ethernet card on your machine. Only one setting needs to be modified. Go to network connections in Ubuntu by either right-clicking the network icon in the gnome panel and clicking Edit Connections or going to System->Preferences->Network Connections on the Ubuntu menu. Locate your wired NIC and click edit. Go to the IPv4 Settings tab and click the “Routes…” button in the bottom right corner of the box. On the next box that opens check the box that says “Use this connection only for resources on its network”. The reason we are checking this box is so that Ubuntu will know to use your wireless connection for the internet and not your wired/ethernet connection. Click OK. and Apply to have the new settings take effect. NOTE: If the connection is currently in use the settings might not take.  To fix this unplug your ethernet network card before making the changes.

3. Connect your wired/ethernet adapter to the switch.

4. Connect the computers you want to share your connection with to the switch.

5. To tell the computers without internet to use your computer with internet you need to set them up to use the squid proxy as their internet connection.

6. To do this Ubuntu go to System->Preferences->Network Proxy on the Ubuntu Menu.

7. Select Manual Proxy Configuration and fill in the IP address of the wired network adapter of the computer with the wireless internet connection. In this case the IP address is 192.168.0.100. Now you should be able to browse the internet on the computer you just connected to the switch!

Troubleshooting:

1. Make sure you can ping the computer hosting the internet connection.

2. Make sure you can access port 3128 on the computer hosting the internet connection. System->Administration->Network Tools->Port Scan

3. Make sure your squid configuration access list includes the IP’s of the computers you just connected. /etc/squid/squid.conf – Note: SQUID needs a restart for access list changes to take effect.

Possible access list configuration:

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network

4. Make sure when you connected your wired network adapter to the switch your internet did not break. If this is the case you most likely have a problem with Step 2!

5. Feel free to post a question via a comment on this post or contact me in any of the various ways listed on the site.

Categories
Status

Using Instant Messengers with a Squid Proxy

In Ubuntu, Google Chrome sets the system-wide network configuration when you specify a proxy. What does this mean? This means that when you want to use an instant messenger client like Pidgin or another desktop application, it will also use the proxy specified for Chrome. I like Chrome, but I also like to chat. To fix this I added the following lines to squid.conf which was conveniently located at /etc/squid/

acl im port 1863 5190 5050 5222 6667
http_access allow im

acl im port 1863 5190 5050 5222 6667

http_access allow im

A restart is needed to make the changes take effect ( sudo /etc/init.d/squid restart)

The ports listed on the acl im should be sufficient for AIM, Yahoo, GTalk, MSN, and IRC when using Pidgin as your IM client.

Categories
Status

Squid Not Working After Reboot

If your squid proxy is not working after rebooting your PC it is possible that this is because the nameservers for your pc were not set before squid loaded. This leaves squid with no way to resolve the domains you are trying to access. For me, this behavior occured on a squid proxy I have installed in Ubuntu.

A temporary fix:

Execute in terminal

sudo /etc/init.d/squid restart

A permanent fix:

Edit squid.conf (probably at /etc/squid/squid.conf and specify the DNS servers for your connection by adding the following line)

dns_nameservers 10.5.0.1

Note: 10.5.0.1 is the IP of my DNS server it will most likely be different for your installation

Categories
How To

How to Turn Off the Button Lights on the Nokia 5800

The light from the buttons on the Nokia 5800 can be distracting when watching movies. Fortunately, it is easy to turn off these buttons using a program called LightCtrl.

Step 1

Download LightCtrl here.

Step 2

The program is unsigned. You must get it signed to install it. You will need your IMEI to do this.

Find your IMEI by typing *#06# on the touch keypad of the Nokia 5800.

Using your IMEI, visit SymbianSigned.com and get LightCtrl signed.

Step 3

Transfer the signed LightCtrl file to your Nokia 5800.

Step 4

Using the File Manager(Applications->File Manager), browse to the location of the LightCtrl file and install it.

Step 5

Once installed, open the application and set the Primary Keyboard setting to “Light off”. DONE! In addition, I set the Primary Screen setting to “Control by System”.