TheTestTube.com

TheTestTube.com (http://www.thetesttube.com/forum/index.php)
-   Computers (http://www.thetesttube.com/forum/forumdisplay.php?f=11)
-   -   so, uh... i wanna go back to linux (http://www.thetesttube.com/forum/showthread.php?t=224)

raublekick 09-20-2006 03:49 PM

actually, the mkdistro tool they include seems really awesome. i never knew about it before today. perhaps a testtubelinux is in the works!? or perhaps not... haha

johnny 09-20-2006 05:19 PM

i've actually gone back to gnome temporarily. (forgive me xfce, for i have shamed you! :o)

what i think would be ideal is xfce on either an arch or gentoo setup, but i'll wait around until the next release of xfce. currently xfce comes with xffm, which i must say, is god awful; however, i've heard rumblings that thunar will actually become a part of xfce in the next release?? so until then i'll be using gnome and xfce (xubuntu-desktop) back and forth on my ubuntu install. thunar is still a masked package in portage, and i can't remember if arch has a thunar package.

and dream linux looks sorta interesting. i'll investigate more later when, hopefully, it doesn't take ages for images to load from their server. fuck!

raublekick 09-20-2006 05:24 PM

yeah their site is slooooow...

i do believe Thunar will be part of XFCE soon

johnny 09-20-2006 05:28 PM

thunar v0.4 is in the latest xfce 4.4 release candidate, now that i check. so whenever they serve that up, i'll be checking it out. xubuntu will get 'er done for now.

johnny 09-20-2006 05:29 PM

we should rename the computers forum to "linux" and there is only allowed to be this thread

also we're both mods

raublekick 09-20-2006 06:10 PM

sounds good to me!

johnny 12-04-2006 10:22 AM

2 Attachment(s)
here's something you might find interesting.. a few months ago i wrote a simple little perl script to rip cds and encode them as *.ogg files. (i'm never happy with the other programs out there...)
you need to have the cdparanoia and oggenc commands available to you in order for this to work correctly [sudo apt-get install cdparanoia vorbis-tools]. what it does is gets information about the album from a text file i've created. here's an example:
Code:

album=Green Cosmos
artist=Deerhoof
Come See the Duck
Green Cosmos
Malalauma
Spiral Golden Town
Hot Mint Air Balloon
Koneko Kitten
Byun

so the script reads that, prompts you whether or not you want to go ahead with ripping the cd, then uses cdparanoia to make *.wav files, and then uses oggenc to encode *.ogg files.

the script:
Code:

#!/usr/bin/perl

my $album, $artist, $numtracks;
my @songs;

open ALBUMDATA, "<album.data"
  or die "album.data file is missing!?";

# read the album name, artist name, and track
# names from the album.data text file
$album = (split /=/, <ALBUMDATA>)[1];
chomp $album;
$artist = (split /=/, <ALBUMDATA>)[1];
chomp $artist;
while (<ALBUMDATA>) {
        chomp $_;
        push @songs, $_;
}
$numtracks = scalar @songs;
close ALBUMDATA;

# give the option to cancel ripping if
# the album.data information isn't good
print "\nalbum to rip: $album by $artist\n";
print "$numtracks songs\n";
for (my $i = 0; $i < $numtracks; ++$i) {
        print $i + 1 . ". " . $songs[$i] . "\n";
}
print "\nrip it? (y/n) ";
$line = <STDIN>;
chomp $line;

# if they say 'y', do it; if they say ANYTHING
# else, then don't do nothin'
if ($line eq "y") {
        # rip the *.wav files
        print "ripping tracks with cdparanoia...\n\n";
        # system "cdparanoia -d /dev/hdc -B";
        system "cdparanoia -B";

        # encode the *.ogg[/*.mp3] files
        print "encoding ogg files...";
        for (my $i = 1; $i < ($numtracks + 1); $i++) {
                $tnum = ($i < 10) ? "0$i" : "$i";
                $title = $songs[$i - 1];
                $cmd = "oggenc -N $i " .
                  " -t \"$title\" " .
                  " -l \"$album\" " .
                  " -a \"$artist\" " .
                  "--output=\"$tnum - $title.ogg\" -q 5 track$tnum.cdda.wav";
                print "\n\nripping track $tnum...\n";
                #print $cmd
                system $cmd;
        }
       
        # all done; tidy up and delete the *.wav files
        # and end the program
        print "done encoding .ogg files!\n\n";
        print "erasing .wav files\n\n";
        unlink glob "*.wav";
        print "ripping/encoding completed\n\n";
}

on some machines, the cdparanoia command would need a bit of extra information, if you have more than one cd drive (and example is commented out just above the command that it actually runs). if you can run "cdparanoia -vsQ" and cdparanoia finds the drive with the cd in it and displays a track listing to you, then "cdparanoia -B" ought to work for ripping the *.wav files. but sometimes you might need to do "cdparanoia -d [device] -B" in order for ripping to work from the correct device.. (i'm sure i'm not explaining this very well :/)

and if you wanted to make mp3s, you can just swap out oggenc for lame.. i should also mention that the oggenc command generates the ogg tag information for each file. it would be kinda silly to skip over that..

once you've put the right information in the data file (album.data) all you need to do is perl ripper.pl and it will go to work.


some things i should add:
- regular expression to remove characters that aren't allowed in file names, so it doesn't try to create a file with a bad name and die.
- make it use the Audio::CD perl module to do a cddb lookup so i don't have to type out the track names every time i rip a cd (but i'm too lazy to install this module and learn how to use it..)


who knows, somebody here just might find this useful.

note!!: i tacked on a .txt extension to each file so i could upload them, so if yer gonna download them just remove it. (or copy the text in the code boxes into brand new files called album.data and ripper.pl..)

raublekick 12-04-2006 11:13 AM

awesome script, johnny! i've actually been thinking about doing something similar, although i would have used python instead of perl.

i want to do something similar to retag files, though. i have yet to find a really good tag editor / file renamer.

johnny 12-04-2006 12:07 PM

the plan is to rewrite it in python with a pygtk front-end. but perl on the command line works just fine for now--i never seem to get around to fixing this up.


i've also been planning on writing a quick address book/contacts app. with python (pygtk gui again..). i really like orage for a calendar program, and i haven't been able to find something equally simple and small for an address book. i have to do everything myself, it seems like! :(

raublekick 12-04-2006 04:45 PM

dude i completely agree with that. i had a fling with Evolution and that just was too much after I discovered Orage.

perhaps we can team up to make some XFCE apps? XFCE really needs to more apps that don't rely on gnome libs.

<edit> i am looking through your script, trying to brainstorm how to port it to python... the logic all makes sense, but perl syntax doesn't! chomp $album? WTFBBQ!?

johnny 12-04-2006 05:50 PM

i'll be happy to answer any questions you have. chomp is a handy function that removes the newline ('\n') character from the end of a string. it's necessary 'cause i'm reading this stuff from a text file that has each song name separated by a newline.

and i'm not sure if you're familiar with perl's file i/o, but if you're not then i can explain that each time you see "<ALBUMDATA>" that just reads a line from the file i have open. and in the loop ("while (<ALBUMDATA>") the line from the file is read into a default variable ($_).

Quote:

Originally Posted by raublekick
perhaps we can team up to make some XFCE apps? XFCE really needs to more apps that don't rely on gnome libs.

that doesn't sound like a bad idea at all. all i've ever needed is some more motivation--my big problem is coding guis. i'm able to, that's not the problem. i know how to work with pygtk and wxpython.. it's just such a chore.

raublekick 12-04-2006 07:27 PM

i've never done any perl programming, and never really had any desire to thanks to its nasty syntax.

xfce apps, here we come!

johnny 12-06-2006 09:05 AM

perl isn't that nasty. the problem is that it allows people to make it nasty.. you can do some really weird one-liners. i think my perl code is pretty readable. chomp is just a built-in function :P

raublekick 12-06-2006 11:31 AM

Quote:

Originally Posted by johnny
perl isn't that nasty. the problem is that it allows people to make it nasty.. you can do some really weird one-liners. i think my perl code is pretty readable. chomp is just a built-in function :P


yeah but... chomp just doesn't make sense! how does chomp == remove \n from end of line? my first inclination was that MAYBE chomp "chomped" a line from a text file, but the newline thing just comes out of nowhere.

johnny 12-06-2006 03:42 PM

i think it's because chomp is, more or less, an extension of the chop function, which simply removes the last character from a string and returns it (whether or not that character is '\n'). chop -> chomp. chomp is just like a smarter version of chop, for a specific situation.

johnny 01-06-2007 10:21 AM

so i'm downloadin' the dreamlinux 2.2 live cd, because i got curious the other day. i don't think i'll actually install it, but i guess it's worth investigating. engage looks very nice (i think it's from enlightenment..?).

johnny 01-08-2007 07:57 PM

so i've been on the hunt for a browser lately.. firefox is sort of the standard, i guess, but i've been wanting something a bit better lately. so now i will run through a list of options:
  • swiftfox: does it really seem faster?? i don't think so
  • iceweasel: doesn't seem special to me (i'm using it right now). even though it doesn't come packed with any non-free software, like firefox apparently does (??), most people end up installing plugins (flash!!) and/or extensions that are probably non-free anyways. so what's the point again..?
  • opera: too... opera-y.
  • mozilla suite or seamonkey: too much extra junk.
  • konqueror: okay, i actually really like konqueror. but do i want to install qt and shit?

i don't think i could handle using dillo or links2 ("links2 -g" fer gui). sure, they'd be quick and show me all the content.. but everything would be so ugly.

so i guess i just stick it out with firefox, or maybe.. go ahead and install konqueror?

got any ideas?

raublekick 01-08-2007 10:58 PM

fuck dude... i have the same problem, and i have not reached a suitable conclusion... basically firefox is a bit to sluggish for me sometimes and i want something lighter.

swiftfox really isn't all that much faster, and any firefox based browser is gonna be just as bad as firefox. epiphany is ok, but it's not nearly as packed with features. opera isn't free software and the suites are just too much.

konquerer is pretty good, but it renders some pages strangely, mostly with fonts being too small. there really isn't much plug-in support that i know of, and nothing like down-them-all. being able to use it for pretty much everything KDE related is nice, but like you said, it is a QT app and sticks out.

the reasoning behind iceweasel is a little tricky to understand. according to the FSF, firefox isn't free software, because not only does the windows and official linux version contain non-free elements, but they also host and give access to non-free plugins. add on top of that the whole artwork fiasco that happened. the FSF is a little zany sometimes, and so are those debian dudes, so i guess they figured they would stick it to the firefox dudes, because really they are doing some anti-free software practices. firefox has become the standard for the most part, so i think it is a fairly big deal that something that has become the champion of open-source is really not so free.

so i just stick with firefox and hope that something else comes along eventually...

johnny 01-14-2007 01:54 PM

i just got enlightenment (dr17) up and running, and it's pretty sweet. http://www.ubuntuforums.org/showthread.php?t=319336

i think the one in ubuntu's repositories is dr16.. kinda old. e17 is really nice.

raublekick 01-14-2007 03:49 PM

johnny, do you post on ubuntuforums, or just browse? i should post on there more, but it's kinda overwhelming to actually help people sometimes.

post a screenshot in the screenshots thread!

i've never really been too interested in installing e17. despite the fact that i've been using xfce for the past few months, it doesn't feel natively complete for me, like ubuntu's gnome is. now, don't get me wrong i love stuff like openbox that is just completely nothing more than what it is, because there you gotta tackle everything from the beginning. but e17 looks like it would be like xfce where it has a lot of cool stuff, but there are gaps here and there and fixing them can be a pain.

johnny 01-15-2007 05:48 AM

Quote:

Originally Posted by raublekick
johnny, do you post on ubuntuforums, or just browse? i should post on there more, but it's kinda overwhelming to actually help people sometimes.

i post on occassion. not much though, 'cause it can be hard to follow. but i decided to try using vb's thread subscriptions, and they make it alot easier to find the threads i'm following again.

i didn't find too many gaps in e17 though. everything seemed to work pretty smoothly.. (unfortunately though, the version of engage which is in the edevelop.org repositories doesn't seem to work out-of-the-box. i think i'll try to make it work some other time..)

johnny 01-15-2007 09:58 PM

i guess i got bored with *buntu, so i decided to give arch linux a try.. i've installed the base system (and updated it, which caused a kernel panic which i then had to fix :x), xorg, and openbox. i looked at the font preferences dialog in leafpad, and there are about.. 9 different fonts installed right now. everything looks pretty ugly.
but it works!:


as you can see in the screen.. the locale settings are buggered up. (who knew cowsay accessed them anyways..? i learned something new tonight, i guess)

raublekick 01-15-2007 11:31 PM

haha wow that IS ugly!

i graped creeper's bandwidth yesterday and installed arch as well. i have gnome up and running pretty basically. there's some things here and there that i need to fix up but i haven't had the time. i like arch, but it's kinda weird to get some things working. i don't mind doing things the long way, but ever since they switched to the mkinitcpio stuff, the old wiki's seem out of date or just confusing weather that is the way it should be done now. the hooks are really cool, but i have no idea what the hooks actually pick up and when.

do you know where i can find this sort of info?


i also want to install opensuse sometime soon. it seems like it has some really cool stuff, but i've heard nothing but bad things about using the opensuse repos.

i see i'm not the only one that names computers after videogame characters. my old desktop was named mario, my laptop luigi, my sister's computer is peach, and my new testing box will be bowser.

johnny 01-16-2007 05:51 AM

vid names are the best.

i'm thinking if things go bad between arch and i sometime soon, i'll just wipe my machine out again and do some testing of the feisty herd 2 disc.

raublekick 01-16-2007 08:58 AM

how big is your hard drive? mine is only 80GB and i have it set up to triple boot, and that is with a 45GB home partition for Ubuntu.

raublekick 01-16-2007 05:14 PM

oh boy... i just fucking borked my arch setup...

johnny 01-16-2007 06:03 PM

my hard drive is 80gb too, but i never seem to keep things installed for very long. i've just gotten used to starting fresh every so often. (i don't have much data to move around anyways..)

how'd you bugger up yer arch system?? are you getting that stupid kernel panic? (kernel panic - not syncing: VFS: Unable to....) 'cause if you follow the install guide instructions (1. do a install with just base packages 2. do a --sysupgrade 3. then install everything else) it's likely to happen.. and easy to fix.

raublekick 01-16-2007 06:17 PM

nah, i have dealt with that problem before though, and now i deal with it by FTP installing :)

my problem was trying to get X set up correctly. the hwd -x didn't set up a good xorg.conf, because it didn't get the right resolutions. i figured i could just pretty much use my ubuntu xorg.conf, except for a few things here and there. well, that didn't work out cus i guess the nv driver isn't installed in arch (no idea how to install it either). then things just kinda snowballed from there. even xorg-config wouldn't give me the option to do 1920x1200, only up to 1280x1024.

basically, what turned into a simple xorg,conf issue turned into ,xinitrc issues because it was trying to load wmaker?? then i couldn't get gdm to run. awesome.

johnny 01-16-2007 07:39 PM

ah, i ran into the exact same problem! here's how i solved the nv issue:
typed "nv" into the package search box on archlinux.org, and among the results found:
Code:

Current          x11-drivers          xf86-video-nv          1.2.0-1          X.org nv video driver          2006-09-09
so pacman --sync xf86-video-nv, and then a run-through of the xorgconfig command got me an xorg.conf that worked just fine. nb: the nv driver is #18 in the big driver list in xorgconfig.

also.. i've got alsa configured, some gtk-engines installed so firefox doesn't look shitty, the tango icons installed, and bitstream vera and dejavu fonts.. things are looking good. screen -> http://matrix.senecac.on.ca/~jrmatth.../newscreen.png

i'm still short on some fonts i think, though.. or at least, i have fucked up some kind of important font configuration. lots of websites still have super tiny text. though the fonts in gtk2 are good (like the fonts used in program menus, etc.)

edit: solved that annoyed locale warning... had to uncomment the right locale in /etc/locale.gen and then run /usr/sbin/locale-gen

raublekick 01-16-2007 08:30 PM

check in the firefox prefs to make sure that it is actually using a good size. for me, it is set at 16.

thank you for that info, i'm gonna give it a shot right now!

raublekick 01-16-2007 09:17 PM

ok so i got my xorg issue pretty much squared away. i have the nv driver working, but not the nvidia driver. my god, xorgconfig has the WORST formatted output ever. i like ubuntu's xorg.conf.

now i just need to get sound working (see's my card and my internal, both are unmuted, doesn't work)

johnny 01-17-2007 05:55 AM

have you added the alsa daemon to rc.conf and done alsactl store to save yer sound settings?

raublekick 01-17-2007 08:33 AM

derrrr! thanks man. i get so confused on what needs to be in rc.conf and what doesn't. i guess any daemon needs to be, but modules actually don't unless you need to load them in a certain order or some other special need.

johnny 01-17-2007 06:13 PM

when i tried using the nvidia package, x seemed to work.. but it was painfully slow and there would be ugly artifacts left all over my screen when opened up the openbox menu and windows and stuff. so i'll just stick with the generic nv driver, 'cause it does the job considerably better.

and i've never actually changed font preferences in firefox before (under any sort of installation). normally in ubuntu, windows, suse, whatever else.. the fonts would just be a touch bigger. though i have found, from my web design class days back in college, that the definition of a point can differ from computer to computer, depending on what is installed.. so it might just be that some of the sites i'm browsing don't do a good job of setting up their style? (go ems!! points iz bad)

raublekick 01-19-2007 02:32 PM

i installed this today:

http://www.beatniksoftware.com/blog/?p=53

it is REALLY nice for such a new project. not quite as refined as SLAB, but it's more what i want. made by the developers of Tomboy apparently.

johnny 01-20-2007 09:41 AM

Quote:

Originally Posted by raublekick
nah, i have dealt with that problem before though, and now i deal with it by FTP installing :)

i'm curious.. when you did the ftp install, did you manually have to load some modules to get yer net connection working, or did it detect everything..? i wasn't really sure, and it didn't seem to work for me. you'd think they would have the sense to include some of that stuff automatically.. the cd has room for it--it's only a ~500mb iso. and my connection is cable, so it's pretty damn simple for linux to configure eth0..

raublekick 01-20-2007 10:41 AM

Quote:

Originally Posted by johnny
i'm curious.. when you did the ftp install, did you manually have to load some modules to get yer net connection working, or did it detect everything..? i wasn't really sure, and it didn't seem to work for me. you'd think they would have the sense to include some of that stuff automatically.. the cd has room for it--it's only a ~500mb iso. and my connection is cable, so it's pretty damn simple for linux to configure eth0..

i can't do it wirelessly, because i use the ipw2200 module, and Ubuntu is the only distro i have found that includes the firmware for it by default. using wired ethernet just requires me to have the installer detect my card and all that jazz.

johnny 01-20-2007 11:07 AM

i guess the installer just could detect my card then.. maybe the 0.8 installer is a bit better.. oh well, everything is all set up now anyways, so it's no matter.

i ended up installing gnome and gdm, and i'm getting it setup to my liking.

raublekick 01-20-2007 11:19 AM

yeah i need to get on that... my gnome in arch is just a stock gnome and it's not really pretty

johnny 01-20-2007 11:46 AM

i really haven't changed mine drastically, 'cause i actually like the stock gnome look (i guess that's pretty vanilla of me..). i got rid of those pesky desktop icons.. changed the background image.. kept the nice blue clearlooks theme :)
i fired up gnome-screensaver. now i need to find the pacman screensaver somewhere

i think my next experiment will be mpd. probably with one of the console clients to begin with--the curses one (i think it is ncmpc) looks pretty nifty.


All times are GMT -5. The time now is 03:21 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright