1

(6 replies, posted in Help & Support (Stable))

I just tried and the seemed to come down fine. Perhaps something on your end? Some locations disable .torrent-file downloads (offices, universities etc.)

G'luck.

Much like aiBo's suggestion but if you'd like to use tmux http://tmux.sourceforge.net/ -- a screen replacement with a number of very handy features -- I use:

 tmux new-session -d -n rtorrent -s autos rtorrent 

Just drop this in your autostart with a "&" at the end. To attach to the session later, run the command

tmux attach

Interesting...

Do you know about rsync?  If so, is there a reason you've chosen your method over a couple of rsync commands (with a --delete flag) perhaps?

Another voice of support for calibre. If you ever want to just read an ebook (rather than open the whole library management features of calibre's GUI) you can run the command:

ebook-viewer /path/to/ebook 

Calibre has some other command line tools--my favorite being ebook-convert. It works well for switch between common ebook formats (and can be scipted!)

(Now back to ADWD on my Nook...)

5

(31 replies, posted in WM/DE Talk)

johnraff wrote:

I can't offer any help with python though. sad

Perhaps not, but you led me in the right direction. I've added support for handling '&'s into the script. Seems to work quite well now -- at least for my uses. The updated version also includes a few cleanups and additional comments for anyone interested in modifying it.

So here it is, a python pipemenu for recursive listing of recently modified files:
http://crunchbanglinux.org/pastebin/1129

EDIT: Fixed a bug to avoid hanging on non-existing directories (helpful with network mounts that are missing.) Also cleaned up  / slimmed down a good deal.

6

(31 replies, posted in WM/DE Talk)

anonymous wrote:

You could try exo-open (for Xfce) or xdg-open for opening files based on mimetype.

As always Anonymous comes through.  This works perfectly.

Now includes:

  • Uses xdg-open to open program based on user defaults. (Exo-open also available in script)

  • White-space handling is better (i.e. there is whitespace handling at all now.)

  • Each directory has a "Browse here..." at top

Known bugs:

  • FIXED: Doesn't handle characters like '&' well because Openbox's XML doesn't much like them.

Updated:http://crunchbanglinux.org/pastebin/1128

7

(31 replies, posted in WM/DE Talk)

My first pipemenu: a (recursive) directory listing by time modified. Much like the included place menu, except it list files from newest to oldest rather than alphabetical order.  Should descend into sub-directories and do the same (I've had a unknown hits and misses with this). It cuts off long file names after 20 characters, but this is easily changed.

I use it to call up recently added media in vlc. At the beginning of the script, you'll want to tell it what program you'd like to open the files with (the VIDPRG variable.)

It takes the directory you want to lookup as its one command line option. (e.g. pypipe.py /media/tv ).

I'm just beginning to learn python, so it is written in that. Comments appreciated.

You can check it out here: http://crunchbanglinux.org/pastebin/1123

In the future:

  • use default program to open based on file type (no clue on this really. Could use extension-lists and different program names as a workaround)

  • add a "browse..." to the top of each menu/submenu

8

(18 replies, posted in Off Topic / General Chat)

Neil wrote:

@jmbarnes - I thought you got rid of the x31 some time ago, and moved on to an X60...
.

I handed it off to a friend who was an elementary school teacher a while back (loaded up with edu-buntu). When she went back to grad school she offered it to the schools IT guy who said it was too old and didn't meet their network safety requirements. /scoff.

So now I have a locked down web-portal in my living room for guests.

Also another +1 for not-a-netbook. A 12" screen makes all the difference in the world. More importantly, a fullsize keyboard (--again the x31 is a winner here.)

9

(18 replies, posted in Off Topic / General Chat)

I have an X31 with #! on it. Unlike a previous poster, it does have USB 2.0... Works well except for some known issues about the radeon ATI card backlight-on-during-suspend (easy to fix -- check out Thinkwiki.org)

If you can find the extra money, x60's are a huge step up. (Avoid x40's for the most part as their hard drives are tiny/slow and a pain to upgrade.)

It looks (from a brief search) that the board lacks any SATA ports. I've had success on a similar board using a PCI-to-SATA card. Won't be the faster interface in the world, but it is a good bit quicker than attaching an External of USB2.0

Evenin' all,

Very excited to have just finished my first script in python. Attempting to branch into something a bit more full than bash.

I've put together a little script that checks a directory for ebooks in one format, and if it doesn't exist in another, converts it using Calibre (using its command line call 'ebook-convert') .  As I tend to buy ebooks in epub format, but want to read them on my kindle in .mobi this is very handy. I just run it every hour or so as a cron job.  By default it converts from .epub to .mobi -- but these can be set in global variables at the top. It also prints a little log telling you what files it tried to convert (called "ConversionLog.txt")

Welcome any comments on python style or more efficient ways to do things would be very welcome. You can find the script here: http://crunchbanglinux.org/pastebin/1045

Cheers.

hardran3 wrote:

Remap your Caps Lock to super? I always remap mine to ctrl. I hate Caps Lock.

To do this -- in your .config/openbox/autostart.sh put the following line

setxkbmap -option caps:super
shanezilla wrote:

Why not just set up SMB share and share the files between the machines??

No point in running a samba share all the time if you're just grabbing a file once in a while -- at least that'd be my guess.

14

(2 replies, posted in Help & Support (Stable))

just drop your .vimrc in your home directory (i.e. ~/) -- so the path to it will be: ~/.vimrc

Welcome to #! and the slippery slope of customizing vim.

Glad many find it useful. If you want to run the server on another port you can just append its number at the end of the command.

For example:

python -m SimpleHTTPServer 4111

Keep in mind you'll need to be root to serve up low-level ports (anything upwards of 1100 should be fine.)

I started out with many of the same tools -- all work very well.

If you haven't checked it out yet, Mendeley is a very useful (cross-platform) bibliography and paper manager. It does a number of things that I feel Zotero lacks (file-based paper organizing, storage in bibtex) -- though the reverse is true as well.

That said I'm down to vim (& vim-gtk), bibtex, zim (a personal wiki), and latex for my academic work. Plain text for life.

cd /path/to/files/directory
python -m SimpleHTTPServer

This serves up the directory your are in to the LAN, on port 8000. Just use a web-browser on your client computer, put in the servers IP address (e.g. 192.168.1.101:8000) and you're golden.

ms4sman wrote:

I dont want to use torrents.

Care to explain why? 

Frankly I'm thankful enough that corenominal takes the time to put together the distribution. The least we as community members can do is to help distribute his work through Bittorrent. Hosting large image files and serving them rapidly to large populations can expensive. If people want to take it upon themselves to do this I think it'd be grand -- but I don't think its fair to expect it of the one-man show that keeps this place going.

Also to try out the XFCE version all you need to do is install the crunchbang-multi-session package, and then log into an XFCE session from GDM.

19

(14 replies, posted in Off Topic / General Chat)

I have one from FoxConn I'm quite happy with...although its not in use right now. Its a Dual Core 1.6 atom (with hyperthreading -- so htop shows 4 threads) with NVIDIA Ion. For the ION to work you need to be using a video player with VDPAU support (xbmc has this -- as do newer versions of mplayer.) Gig Ethernet and N-wireless were supported out of the box in #!. Used it as a HTPC for a while -- and its selection of digital outs (HDMI and DVI) trumps most netbooks. It doesn't love playing flash fullscreen at high resolutions, but is workable. I really like its variety of ports (6 usb 2.0, DVI, SD-card reader) and that it could be mounted onto the vesa mounts behind my TV. The fan isn't silent -- but I've been told there is a BIOS flash to fix that.

Newegg often has barebone models available for very cheap -- great if you have some ram and a hard drive around to fit it out with.

Just applied e4rat (using info on https://wiki.archlinux.org/index.php/E4rat ) and must say it feels very fast. The slowest thing in the boot process is me entering my password to decrypt /home. Once past that it flies right into my desktop (automatically login.) Certainly worth it if you reboot very often.

I'm working on building out a little webspace of my own, hosted on my home server which includes hosting a number of personal photo directories. This morning I threw together a little script to automate the process of converting existing directories into web-friendly directories of photos. By web-friendly i mean copied into a web-readable directory, resized, and rotated appropriately. Very simple little thing -- but thought it may be of use to another. The script requires two packages: imagemagick and exiftran.

The basic workflow is this:

  • create new directory for web-photos

  • copy existing directory of photos to new web-directory

  • resize photos in web-directory (keeping aspect. Size set in variable at top.)

  • rotate photos in web-directory using exif data

  • generate thumbnail from 1st jpeg in directory

  • generate project.txt with title, date, and contents

The last step is likely superfluous for many -- I use it because my website is built off of www.staceyapp.com.

You'll need to edit a few variables at the beginning to set your the directory of your web-photos, resize size, and thumbnail size.

To use the script:

./webphotos.sh /path/to/directory/of/photos/to/convert 

You can find the script at http://crunchbanglinux.org/pastebin/1012

22

(36 replies, posted in Feedback & Suggestions)

Another voice of support.

I use it on my home server too to not run at full voltage when unnecessary -- doesn't seem to adversely affect performance in any way.

23

(24 replies, posted in Feedback & Suggestions)

Just wanted to add another voice of support for inclusion of their optional installation in the cb-welcome script.  The one problem I foresee with this approach, is given how the cb-welcome script is currently implemented, you would either have to, a) install the terminal apps as one batch or b) have a separate prompt for each of them.  If you go with a) people may end up skipping it as they don't want to download extra packages they don't need -- or they'll end up installing them and forgetting. If you go with b) then you're adding up to 10 extra screens...which may get tiresome.

I guess you could do a while-loop and keep repeating the same screen, installing one app at a time, until the user is satisfied.

On a fresh install I always find myself adding the following:
vim
moc
rtorrent
mcabber
htop
tmux
alpine
newsbeuter
irssi

You may need to load the appropriate module (not sure what it is) with modprobe. Alternatively you could reboot and it should do it for you automatically.

Also...make sure that the hardware switch on the T60 isn't turned off....

Huge fan of vimium.

If you're on Iceweasel I'd recommend checking out Pentadactyl (https://addons.mozilla.org/en-US/firefo … ntadactyl/) -- a fork of Vimperator by those who have been actively contributing to it lately.