Tag Archive for 'Ubuntu'

How to use mintUpload on your own FTP server.

I installed Linux Mint yesterday because my Ubuntu installtion was starting to get a little messed up from all the costant configuration, reconfiguration, and installation of new (and often not stable) packages. Nothing like a fresh start right?

Mint Linux has some cool custom applications, one of them being mintUpload. It allows you to upload a file in 2 clicks to a FTP server and gives you the URL. Unfortuneatly, Mint doesnt make it easy to confugre the tool to use any service other than its own crappy one. But it is possible.

If you have your own server you want to use with mintUpload, just follow these steps.

1) Create a writeable directory on your webserver where you want the uplaods to go, ex. /httpdocs/uploads

2) Create a file in that directory named “space.html” and put a single line in it: 100000000/100000000 This will tell mintUpload how much space you have, but since its your own server and we dont really care to keep track how much space is left, it will be static.

3) Go to /usr/lib/linuxmint/mintUpload/services and create a file with the name of your server.

4) Put this in your file:

name=<YourName>
host=<YourHost>
user=<FTP Username>
pass=<FTP Password>
path=<Path to upload folder, ex httpdocs/uploads/>
space=<Path to space.html>
url=<URL to upload directory>/<TIMESTAMP/<FILE>
maxsize=1000000000
persistance=365

Note that <TIMESTAMP> and <FILE> are variables used by mintUpload and you should leave them as they are.

Save the file, and you should now have a working service in mintUpload! This works great, but there was one thing that still annoyed me. mintUpload places the files in subdirectories named from timestamps of the main upload folder. This is great if you are hosting a service that thousands of people will be using and the files will be deleted every so often. But I’m the only one using this service so it would be better if the files went directly into the uploads folder without and subdirectories so they can be easily viewed. To fix that:

1) change url=<path to upload directory>/<TIMESTAMP/<FILE> to url=<path to upload directory>/<FILE>

2) Open /usr/lib/linuxmint/mintUpload/mintUpload.py and comment out lines 155, 156, 157 and 162. To comment out a line, simply put a # in front of it. ex: #ftp.cwd(directory)

Save the file, now all uploads will go directly into the upload directory without any subdirectories. Cheers!

Attention Linux Geeks!

LinuxCult.org is a new linux forum some of my friends have been working on lately. Its still in the infant stages, but I really encourage any linux users to stop by and check it out. Its going to be great.

Linuxcult.org Logo

The board is going to have many great features. One of the cool things already housed there are the helper scripts - written by myself - that attempt to solve several common problems people have with linux. The first one has already been written. If you have problems with Linux, Ubuntu and Flash not working or not having sound, you should give this a try:

http://www.linuxcult.org/forum/viewtopic.php?f=7&t=5

See you there!

Put That Rejected Old Computer to Use

Most of you probably have an old computer laying around somewhere. Chances are, its all bundled up sitting sadly in a dusty closet somewhere. Well I strongly believe there is no reason to ever have a comp around not plugged in, and I’m going to share some of my favorite things to do with my old computers with your (or your parent’s, or friends’)

***Obligatory Linux Plug***

I always install Linux on my old junkers even if I use Windows Vista on my main machine. There are many reasons including performance and price, but the main reason is that Linux does these following things REALLY well. In fact, Linux is almost specialized for some of the tasks at hand, like running servers. If youtux have never installed Linux before I recommend trying Ubuntu Its really easy to install and use, and even if you do mess up, your working with a junker anyways - what do you have to lose? I also recommend checking out my other page, Shell Account Howtos for some of the basics of managing Linux remotely (and believe me you will want to do this)

***End Obligatory Linux Plug***

1. Turn your computer into a killer jukebox.

If you have a killer stereo system in your house but never use it because you have to make CDs for it, this is for you. The first thing you will have to get is one of these doohickeys:

rca cabel

Do the parts look familiar? They should. The black end fits in any 3.5mm audio jack that you find on ipods, cd players and most importantly, computers. The other end connects to left/right RCA jacks.

After you get one of the cables, simply connect your computer and stereo, and switch your stereo to aux input. Now any sound that comes out of your computer will play on your stereo. If you haven’t already, copy all your music onto the computer, then simply launch a music player.

The basic setup might not be very convenient, especially if you are pressed for space and don’t have room for a computer in your living room or whatnot. Nows the time to learn how to use a remote desktop, like VNC or SSH that allow you to remotely control your computers, so you can take all that dirty human interface stuff off, like the mouse, keyboard and screen. Now thats cool! Even better, coupled with a file share, the next example, you can share music from your main computer to the jukebox seamlessly.

2. Set up a home file server

If you have multiple computers in one house and a router, you would be crazy not to set up a file server. You would never think how much you use until you try it. Samba and NFS for windows and Linux, respectively, are the standards today. Samba is the way to go, because your Linux, mac and windows machine can all use it. Once you have everything running you can share files between all computers practically instantly.

3. Hello world! Put up your own website.

If you don’t already have a website, my first question would be what are you waiting for? Even if you do have one, setting up another is good for backup or stuff you don’t necessarily want to put on your other. Using an old computer to run a website is great because you have complete control, and it runs off your home internet connection so it doesn’t cost any extra.

In Linux, setting up a web server is as simple as typing “sudo apt-get install apache2″ to install Apache and opening up port 80. Installing other things like PHP, MySQL and FTP servers is just as easy. You can literally have a fully featured website running a CMS like Joomla or a gallery like Gallery2 in minutes - and all the world can access it.

If you are using windows, which I never have, things may be a little more difficult/different. You can install apache on windows too, as well as the others like MySQL and PHP, but I’ve never done it. I will leave that up to you to find out.

Once you have your website up and it is accessible to the internet, you can access it by typing in your IP address. However, thats long cryptic and hard for others to memorize. You will probably want to check out a free dns service like no-ip.com so you can get a cool address like http://austum.hopto.org (this is one of my old comps I have running a webserver) Congratulations! You now have a home on the internet. Be sure to leave me the address so I can check it out.

4. Host a bloody frag box.

If you are into online gaming, you probably play on servers every day. Wouldn’t it be cool to run your own? Even if you own a simple DSL or cable modem you can host multiplayer games. Most companies release server editions of the game for free, so you don’t even need to own the game to run a server. More likely, you want to run a server of a game that you play and like, so you will already have the server installed - even if you don’t know it yet.

I run a Unreal Tournament 1999 server that me and my friends play on often. Since they are all in close proximity to the physical location of the server, the pings are amazing. Of course, you are welcome to join us too:

This is also the same server I run my webserver and everything else on. Remember - you are not running the game, just the server. You don’t need to have a thousand dollar quad core triple liquid heatsink video card to run it. As long as you have at least a pentium IV processor you should be fine, especially if its an older game.

5. Bypass your work or school’s restrictive firewall.

You have probably heard of proxy servers before. They allow you to reroute your internet traffic so that you can surf the web anonymously or visit blocked websites. The problem with public proxies is they are often very slow and you don’t really know where they are or who is running them. Set up your computer as a proxy and you can use it from anywhere to download from bittorrent, surf blocked sites and do other sneaky things. You can read my page on how to do this on Linux in the Shell Account Howtos

And more…

There are many things you can do with those extra computers laying around. If you have more than 1, you can try making a Frankencomputer by combining all the parts. Often times this results in 1 much faster computer! Use your imagination! I’m sure you can think of something.

Let me ask you if I missed something. What do you do with your old computers? I’m always open to new ideas.

Linux Webcam Recording Script for Dell Latitude 1720

Since the Latitude 1720’s webcam is only supported by a handful of applications (see the Linux UVC homepage) and none of them are for recording vidoes with sound, I decided to come up with a quick workaround. I wrote a tiny shell script called record.sh which just runs two commands at the same time, ffmpeg and sound-record so that they are synced up. It goes like this:

!#/bin/sh
ffmpeg -f video4linux2 -s 320×240 -i /dev/video0 -f avi out.avi &
sound-recorder -c 2 -b 16 -P recording.wav

This should outpit out.avi and recording.wav in the current directory, and then you can put the two together using your viedo editor of choice. I use Pitivi and walla, you have a video ready for youtube or whatnot. Now my laptop is, I think, fully functional.

Ubuntu Linux Inspiron 1720 Fixes

There are a few last things I wanted to get to work with my laptop, mainly the webcam and microphone. I would go into detail on how I got them to work with Ubuntu but I found this great page : To install Ubuntu-7.04 on Dell Inspiron 1520 Which is for the 1520, but should work for 1720 as well. Good luck everyone.

TSST corp Linux Problems

My installation of Ubuntu went pretty smoothly besides the Nvidia drivers and one other problem: my TSSTcorp TS L632d ATA dvdr + rw drive was not recognized by linux. In fact it was straight invisible. Hwinfo showed nothing. Dmesg | grep cdrom showed even less. I started to think that I might have a serious bug to work out. However, the fix was simple.
I was doing some searches through google and linuxquestions.org when I cam across a post about the live cd not booting. It was for people who have SATA harddrives, which I thought had nothing to do with the dvd drive but the described effects were the same. The fix is to simply run “modprobe piix” in order to install the correct module. When I did, the audio cd popped up on my desktop immediately. Who would have thought? In order to make the fix permanent, I edited the “/etc/initramfs-tools/modules” file to include piix at the end. Then I ran “update-initramfs -u” to update the config, restarted and everything is working perfectly. I hope anyone who is having this same problem runs accross this post.
Cheers.