Content tagged with "ubuntu"

Files where Ubuntu menus are stored > Post > Oct 21, 2009 12 p.m.

Note to self - Ubuntu menus are stored here:

/usr/share/applications 

I keep forgetting this one...

af

MXMLC FileReference.load() compiler error > Post > Dec 23, 2008 03 a.m.

On my linux box I am running the Flex SDK 3.2, and tried to use the funky new load() method for FileReference (which pulls the byteArray data of the loaded file = sweet). But my Flex wouldn't compile it, complaining of an error:

Error: Call to a possibly undefined method load through a reference with static type flash.net:FileReference.

The fix?

Edit my /flex/frameworks/flex-config.xml and change the target-player version from 9.0.124 to 10.0.12.36 (even though linux is currently 10.0.15.3)

A hack a day keeps the blues away...

Aaron

Gedit Loveliness :) > Snippet > Dec 23, 2008 02 a.m.

sudo apt-get install gedit-plugins

Ubuntu and Actionscript > Post > Dec 20, 2008 12 p.m.

I just downloaded the Flex 3 SDK for Linux and wanted to pick up an old project I've been putting off for a while. I found some syntax-highlighting (language) files for gedit that cover mxml and actionscript but I immediately ran into a problem with opening actionscript files in my system. In the gedit file view, .as files don't even show up at all. In nautilus they do, but when I try to open one, I get an error:

The filename "Logger.as" indicates that this file is of type "Applix Spreadsheets spreadsheet". The contents of the file indicate that the file is of type "plain text document". If you open this file, the file might present a security risk to your system.

Do not open the file unless you created the file yourself, or received the file from a trusted source. To open the file, rename the file to the correct extension for "plain text document", then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file. 

Applix Spreadsheet? Never heard of it. Turns out the solution wasn't too hard afterall, create a mime-type association in Ubuntu, but it did take some creating search terms on Google to finally get a result.

Another day, another Linux hack.

Cheers, Aaron

[edit] There are a couple more things you need to do to make this work. First make sure the mime-types for actionscript in both files are the same, currently one is 'application/x-actionscript' and the other is 'text/x-actionscript'. Then you need to run 'sudo update-mime-database /usr/share/mime' (assuming that is where you installed the mime xml files).

I'm not sure if you need to restart ubuntu for this to work, I did anyway. [/edit]

Ubuntu VNC glory > Post > Dec 09, 2008 03 p.m.

I needed to have a friend pull my vnc client the other day, and in UltraVNC in Windows, you can just set the client on 'listen mode'. I didn't know how to do this in Linux, but the answer was easy:

vncviewer -listen 5500

And the server

The server was just as easy to set up:

x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800 -listen 192.168.1.103

Make sure and -usepw or you'll open your machine up to a world of trouble :)

Aaron

Mouse sensitivity in Fluxbox > Snippet > Dec 09, 2008 11 a.m.

xset m 5 10 # sensitivity / threshold

Fluxbuntu and Intel Pro Wireless 2200bg > Post > Dec 08, 2008 07 p.m.

I had to blog this one. It's the hack of the day. I couldn't get a minipci wireless card (Intel Pro/Wireless 2200BG) card to work on my old Toshiba Satellite A30. The ipw2200 driver is installed in Fluxbuntu by default (which is nice) but 'iwconif' reported my 'radio off' on eth1.
I had to tape a couple pins to get it to work, and the sliver of tape was tiny, harder to pull off than I thought, but I'll be damned if it didn't work.

Internet: 1, Pro/Wireless 2200BG:0 :)

Aaron

FlexiCAM and Skype on Intrepid > Post > Dec 01, 2008 08 p.m.

I was having an issue with the new webcam I bought today on Intrepid and Skype. I first thought it was an issue with the video for linux driver, but the cam worked fine in cheese, but all I got was this funky green screen in Skype when testing my camera. After quite a bit of searching, I finally found an answer that worked, and it was really simple. You can grab it on Ubuntu Forms.

Cheers,
Aaron

[edit]I have to say, I'm not really impressed with the picture quality, I would go way beyond soft and say the picture is either blurry or completely out of focus. Here's a snap:

blurry webcam pic

I read a couple reviews that said this camera has a sharp picture, I wonder if I got a bad one...[/edit]

Ubuntu Intrepid breaks Virtualbox > Post > Nov 27, 2008 01 p.m.

I have had a couple go-arounds with this one now, I try to boot my Virtualbox and it says something like

VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Re-setup the kernel module by executing '/etc/init.d/vboxdrv setup' as root.
VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED).

Result Code: 
0x80004005
Component: 
Console
Interface: 
IConsole {d5a1cbda-f5d7-4824-9afe-d640c94c7dcf}

So I run

sudo /etc/init.d/vboxdrv setup

and I get

 * Stopping VirtualBox kernel module                                             
 *  done.
 * Recompiling VirtualBox kernel module                                         
/etc/init.d/vboxdrv: 311: cannot create /var/log/vbox-install.log: Permission denied
    
 * Look at /var/log/vbox-install.log to find out what went wrong

And the log gives me some funky compile output and an 'Error 2' at the end.

...
make -f scripts/Makefile.build obj=/tmp/vbox.1    
gcc -Wp,-MD,/tmp/vbox.1/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.2/include -D__KERNEL__  -Iinclude  -I/usr/src/linux-headers-2.6.27-7-generic/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -I/lib/modules/2.6.27-7-generic/build/include -I/tmp/vbox.1/ -I/tmp/vbox.1/include -I/tmp/vbox.1/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DUSE_NEW_OS_INTERFACE_FOR_MM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.1/linux/.tmp_SUPDrv-linux.o /tmp/vbox.1/linux/SUPDrv-linux.c

In file included from /tmp/vbox.1/linux/SUPDrv-linux.c:35:
/tmp/vbox.1/SUPDRV.h:99:30: error: asm/semaphore.h: No such file or directory
/tmp/vbox.1/linux/SUPDrv-linux.c: In function 'supdrvOSGipResume':
/tmp/vbox.1/linux/SUPDrv-linux.c:1331: error: too many arguments to function 'smp_call_function'
make[2]: *** [/tmp/vbox.1/linux/SUPDrv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.1] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-2.6.27-7-generic'
make: *** [vboxdrv] Error 2
Turns out it's a bug, the solution is to download the new version from Sun.

Cheers, Af

Mount an Ubuntu hard drive in XP > Post > Nov 15, 2008 09 p.m.

I have been running Ubuntu Linux for a number of months now, but every once in a while I need to jump into XP to do something (I'm running a dual-boot right now). And as soon as I'd get into Windows, I'd realize I needed a file off my Linux disk. Now XP and Ubuntu run totally different file systems, I run NTFS on Windows, and my Ubuntu install is using Ext2 (I believe). But, no problem, just run this handy little utility and your drive will show right up :)

Another crisis nearly diverted.

Aaron out.

PCI device list in Ubuntu > Post > Nov 12, 2008 03 p.m.

I just ran across this today, trying to get Ibex running on my wife's PC. I needed to know the hardware on this wireless card.

lspci

spit out something like this:

00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 81)
00:01.0 PCI bridge: Intel Corporation 82945G/GZ/P/PL PCI Express Root Port (rev 81)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5 (rev 01)
00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:01.0 Ethernet controller: Marvell Technology Group Ltd. Marvell W8300 802.11 Adapter (rev 07)
01:03.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
01:04.0 Mass storage controller: Integrated Technology Express, Inc. ITE 8211F Single Channel UDMA 133 (rev 11)
02:00.0 Mass storage controller: Silicon Image, Inc. SiI 3132 Serial ATA Raid II Controller (rev 01)
03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 15)
05:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7800 GTX] (rev a1)

Not so scary after all :)

Ubuntu and PyQt > Post > Oct 14, 2008 01 p.m.

I just went through the nightmare of trying to install PyQt and all its dependancies. I had originally searched for an ubuntu package (coz we loves packages, doesn't we precious?) I couldn't seem to find one.

Turns out (after failing 'configure's and 'make's and missing dependancies), there is a package (a couple, actually).

To install PyQt on Ubuntu:

sudo apt-get install libqt4-core libqt4-dev libqt4-gui qt4-dev-tools python-qt4 pyqt4-dev-tools

I'm not sure if all the packages before the last one are necessary, but I didn't think it would hurt to have them.

Thanks again, Ubuntu Forums.

af

Hardy and my LJ1600 > Post > Oct 09, 2008 06 p.m.

I'm impressed once again with Ubuntu 8.04 (LTS). I remember having to tweak gutsy to get color working on my laserjet, but I just plugged it into this box, and it worked without a glitch. Well, one glitch, I had to change the 'color' setting from 'monochrome' to 'color', but I can't complain, it's not find/editing obscure configuration files...

Cheers to Ubuntu :) af

Categories

Tag Cloud

'dark 'why 50mm actionscript adbusters amf aquaplex band blaire bowen brian burntstick butterfly cache calaway calaway park calgary caroline cat causeway chrome clearwater comments dan design django dos double time dreamhost drivers easy_install emacs email extra facebook family reunion favorite fcgi film firefox firewire flash flex flood fluxbox fossils funny gedit george green google grep hack hardy heron hdr init james join keys laserjet 1600 lightroom linux marye memory moderation mount mxml nelson noah olympus outlook park pil pillar pool potty pygments python raven recommend sata select send_mail server shortcut signals signs skye skype smtp soup spirit staged right sucks sucks' sundre sunset svn trac ubuntu vafcs vim virtualbox virus vista vnc water webcam webfaction white balance wide angle wireless work xl2 xmbc xmlrpc xp xp'

Random Images

Bylaws A Street Faces in the mountain A Sign first photo Lamp? Bunchy sun A shed Wait, do that again!

About this blog

This blog is built on an experimental engine conceived by Aaron Fay. The system used to power this site is running on the awesome Django framework. As the site becomes more complete, and the functionality becomes streamlined, I will reveal more about the inner workings and may also release it open source one day. The most prominent feature at this point is all the different content types use the same model :)

My Comments Elsewhere

Darren's Developer Diary: Controlling file associations in Gnome Installing and configuring lighttpd webserver - HOWTO Import RSS feeds into Facebook without relinquishing content control | bylr.net Grogler » Blog Archive » After Effects Keyboard Shortcuts - Next Frame / Previous Frame Django snippets: Template Query Debug Django snippets: EditInline for GenericForiegnKey II I quit; goodbye cruel facebook « don’t mind me, just talking to myself