Setting a WGR614 router in bridge mode

I’m specifically using a Netgear WGR614v9 bridged to a Netgear WNDR8000 (acts as the network’s router, which is, in turn, connected to a Netgear CGD24N cable modem).

  1. Factory reset WGR614
  2. Connect PC to WGR614 (via ethernet)
    1. WAN Setup:
      1. NAT Filtering: Open
      2. Apply
    2. LAN Setup:
      1. LAN TCP/IP Setup | IP Address: 192.168.1.[2-255]
      2. Use Router as DHCP Server: Disabled
      3. Apply
  3. Connect PC to WNDR8000
    1. LAN Setup:
      1. Address Reservation | Add | [IP address as above; WGR614’s MAC address]
      2. Add
      3. Apply

…and you’re done!

Posted in Networking | Comments Off on Setting a WGR614 router in bridge mode

NFS shares over local network with autofs

Wanting to share files over my home network to other devices, I settled on the NFS protocol. Specifically, I decided to use the program autofs as it automatically mounts shares of local files on-demand (thus reducing system overhead when the shared files aren’t needed). I wanted to write myself a concise guide for easy set-up in the future, so here goes:

Firstly, install autofs and nfs-kernel-server. Then, create a directory to map your shares to with sudo mkdir /export.

In my instance, I appended the following to /etc/auto.master:

/export	/etc/auto.export --timeout=60

and the following to /etc/auto.export (a file I’ve designated to handle mounts to the /export directory):

jacobbrett \
	/Movies		-fstype=nfs4,ro	:/home/jacobbrett/Videos/Movies \
	/Music		-fstype=nfs4,ro	:/home/jacobbrett/Music \
	/Music\ Videos	-fstype=nfs4,ro	:/home/jacobbrett/Videos/Music\ Videos \
	/TV\ Series	-fstype=nfs4,ro	:/home/jacobbrett/Videos/TV\ Series

Finally, I appended the following to /etc/exports:

/export/jacobbrett/Movies         192.168.1.0/24(ro,async,subtree_check)
/export/jacobbrett/Music          192.168.1.0/24(ro,async,subtree_check)
"/export/jacobbrett/Music Videos" 192.168.1.0/24(ro,async,subtree_check)
"/export/jacobbrett/TV Series"    192.168.1.0/24(ro,async,subtree_check)

This ensures that only computers on my local network can access the shares (specified by 192.168.1.0/24); async is also a significant option. Additionally, you may wish to add the option insecure so that shares may be accessed via XBMC.

Now, start your NFS server with sudo start nfs-kernel-server and the autofs service with sudo start autofs (alternatively, use the command restart if either are already running). Congratulations.

showmount -a should output all client devices and shares they’ve mounted. e.g. (where 192.168.1.101 is a device on my local network):

192.168.1.101:/export/jacobbrett/Music

To enumerate: autofs first reads auto.master. My reference to /etc/auto.export is discovered, with a timeout of 60 seconds—that is, Any file (or directory) referenced within /etc/auto.export will automatically unmount after 60 seconds of no access (this lessens server overhead). I’ve set files referenced within /etc/auto.export to be mounted within /export, as per the above output of showmount seen above.

Further reading:

Posted in Linux | Tagged , , , | Leave a comment

Installing the Android Development Tools (ADT) plugin for Eclipse IDE in Ubuntu 10.04

While following the Android SDK installation guide, one is directed to optionally install a plugin, called Android Development Tools, for Eclipse IDE. If you installed Eclipse from Ubuntu’s repository like I did, the plugin installation will fail with an error, such as:

Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 0.9.7.v201005071157-36220 (com.android.ide.eclipse.adt.feature.group 0.9.7.v201005071157-36220)
Missing requirement: Android Development Tools 0.9.7.v201005071157-36220 (com.android.ide.eclipse.adt.feature.group 0.9.7.v201005071157-36220) requires ‘org.eclipse.gef 0.0.0? but it could not be found

To fix this deficiency, add “http://download.eclipse.org/tools/gef/updates/releases/”, then install WST Server Adapters.

Posted in Android, Linux | Tagged , , , | Leave a comment

GIGABYTE Q1580P stereo microphones in Ubuntu 9.10

My GIGABYTE Q1580P-VA laptop has stereo microphones — one on either side of the in-built webcam. While probably useful, Ubuntu doesn’t seem to play nice with them by default. Fortunately, there’s a simple solution to get them recording audio input.

Go to terminal and type alsamixer. This will bring up the ALSA control panel. Now, just press TAB twice, then use the right arrow to scroll to the controls seen in the below figure.

AlsaMixer

I Set Capture and Capture 1 to around ’24 dB’ (this seems to boost the audio without causing too much interference), and make sure that ‘CAPTUR‘ is visible beneath both (if it isn’t, select the slider and press space bar). Finally, make sure that Input Source and Input Source 1 are both set to ‘Mic’.

Posted in Linux | Tagged , , , , , , | Leave a comment

Wine 1.2 beta not running programs

Since I made the foobar2000 installation guide, my laptop was stolen. So, obviously I attempted to install foobar2000 on my new GIGABYTE Q1580P-VA.

The latest stable Wine (1.0.1) wouldn’t play audio properly (Dune 2000 had problems), so I figured the same would happen with foobar. I attempted to install WinePulse 1.1.31 (Neil), but no programs would start. I then found a newer repository, WinePulse 1.1.39 (Eric), installed it. Same deal as with 1.1.31. Looking for a solution today, I came across this thread.

Just run in terminal:

sudo ln -s /usr/local/bin/wine-pthread /usr/bin/wine-pthread

WinePulse 1.1.39 now works for me (I recommend Eric’s PPA over Neil’s as it is more recent). Hope this helps!

Posted in Linux | Tagged , , , , , , | Leave a comment

foobar2000 in Wine

Have you recently moved from Windows to Linux, but would like to keep foobar2000 as your ultimate audio player? So did I. It took a few hurdles with technical problems, but in the end I have foobar2000 running almost perfectly on Ubuntu 9.10 (Karmic). Here are some resources I found to get you through the process:

  • Installation and Global Keyboard Shortcuts

    Tutorial on installing Wine (included with Ubuntu), installing foobar2000, adding a desktop shortcut, and creating global shortcuts in Linux. See here for a complete list of shortcuts.

  • Install WinePulse (Ubuntu) / (Other Variants)

    This is a modified version of Wine which includes PulseAudio as an audio layer – install this if audio doesn’t work when running foobar2000 using the standard version of Wine.

  • Install winetricks

    Using winetricks, you can enable font smoothing (anti-aliasing). Depending on your monitor type, you’ll want to activate a different rendering method. Enable fontsmooth-rgb for RGB LCDs, fontsmooth-bgr for BGR LCDs, or fontsmooth-gray for CRTs(?). Some users (such as myself) still had problems with font smoothing in foobar2000 when using Ubuntu 9.10. To fix this, check out the next link:

  • Install Replacement Tahoma Fonts

    Assuming you enabled font smoothing as above, skip to the bottom of this tutorial link to where it mentions downloading Tahoma fonts.

  • Add a “Now Playing” Panel

    I haven’t tried this yet, but this should allow you to add a customisable “Now Playing” notifier to your panels; the example includes album art, track title and play time.

If you have any problems/improvements, please comment!

UPDATE: I’m not sure if upgrading to Ubuntu 10.04 caused a change in behaviour, but I’ve been successfully using the ALSA driver with Wine 1.1.42.

Also, I’ve recently noticed that while VirtualBox is running a session (using OSS audio), audio in foobar2000 (and probably other Wine programs) fails to work. I’m not sure if this was also causing my problem in 9.10, as I was fairly heavily using VirtualBox during that period.

Posted in Linux | Tagged , , , , , , , , , | Leave a comment