Re: [gentoo-user] Touch screen

2007-06-07 Thread Timo Boettcher
* Rodrigo Forlin [EMAIL PROTECTED] wrote:
 Can someone point me a touch screen monitor that works under console?
I bought a Touchscreen from some car-tuning guy on ebay. The touchscreen
is detected as an eGalax compatible unit and works using the
usbtouchscreen-module of the linux-kernel (using 2.6.19-gentoo-?).
Works as in the cursor moves when I touch it. I had to patch the
kernel to add some sysfs-entries to be able to calibrate it without X.
I sent the patch to the maintainer some days ago, who has not repiled
yet. If anybody is interested in the patch, please ask.
 I develop programs under console using framebuffer so i need also
 a nice api to make my programs work with touchscreen. 
I use pygame with the fbcon SDL-Driver, that works without any problems.
Some rough project overview and screenshots can be found at
http://www.spida.net/projects/pympdtouchgui/, code will follow.

 HTH, if you want more details, feel free to ask.

 Timo
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Linux becomes expensive ;)

2007-06-03 Thread Timo Boettcher
* Jeff Horelick [EMAIL PROTECTED] wrote:
 [Linux is] writing to the hard
 drive more often and it doesn't spin as much down when it's not in use to
 help performance.
There is the Laptop-Mode for that.
 Also, if i was you, i'd be worried about your system using
 that LITTLE energy especially since you have a pretty hefty CPU, video card,
 motherboard, 2 hardrives and al the rest of your components.
Just for comparison,
http://blog.spida.net/index.php?/archives/3-Powerusage.html has some
measurements of a low-power system.

 Timo
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Touchscreens under linux

2007-05-22 Thread Timo Boettcher
Hi!

 For my Musicbox[1] project, I am looking for a way to control a mpd[2]
 with a touchscreen. The device I have in mind is a 10,2 VGA / USB
 touchscreen. I assume it is supported by linux.

 If I understand correctly, the touchscreen is (if used correctly) just
 another way to control the mouse pointer. Is that right?

 Do I have to use X to use the touchscreen, or can I use it with gpm or
 SDL?

 Does anybody know a client for mpd ([2]) that works without X an can be
 controlled with a touchscreen? Maybe using SDL?

 If there is no client that works without X, does anybody know something
 that will work as an onscreen-keyboard?

 Timo
 
PS: yes, I have read the howto[3]

[1] http://blog.spida.net/index.php?/archives/9-Powerusage-II-Musicbox.html
[2] http://www.musicpd.org/
[3] http://tldp.org/HOWTO/XFree86-Touch-Screen-HOWTO.html
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Bookmarkmanager

2007-03-27 Thread Timo Boettcher
Hi!

  I am looking for a bookmark-manager for linux.
  It should import/export (at least) firefox and opera bookmarks,
  and should be able to synchronize between several browsers on 
  several machines. Textmode would be cool, as I intend to run it
  from a script. Has anybody seen something like this?

 Timo
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] UPS compatible to Gentoo

2007-03-06 Thread Timo Boettcher
* Marco Fabbri [EMAIL PROTECTED] wrote:
 I need to buy a UPS for my gentoo-box. I need to be sure I can make the
 shutdown in case of black out.
 
 Could you suggest me a full compatible UPS? Any link is welcome.
http://www.networkupstools.org/compat/stable.html

 Timo
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to get vi!?

2006-09-25 Thread Timo Boettcher
Hi!

* Dirk Heinrichs [EMAIL PROTECTED] wrote:
 Am Montag, 25. September 2006 13:16 schrieb ext Patric Douhane:
  Tried emerge vi but it's not found
 You lost an m, it's vim.

Even though I am sure the OP meant vim, vim is NOT vi. 
vim is vi improved.
If you want to know the differences, try to get in one of
Sven Guckes famous texttools presentations.
We have seen him at lugmoe (www.lugmoe.de) and will try to
get him again *g*.

Timo
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] {OT} recovering data from a Memory Stick

2006-04-07 Thread Timo Boettcher
Hi Grant,

* Grant [EMAIL PROTECTED], 06.04.2006, 22:39:11:

 Is it possible to recover data (photos) that have been deleted from
 a Sony Memory Stick?
It depends. On what happened, what you do next, and the amount of time
(or money) you are willing to invest.
 How can I get a look at what is really in there?
Use dd to make a backup (that is, copy the contents of the stick (the
raw bits, not the files) to your harddisk, and work on that copy.
You can use your favorite hex-editor (there are a bunch of them in
portage) to recover the directory-structure (or what is left of it).
:-)
You won't have ANY success with it, if you don't understand a bit
about filesystemstructure and how to use the tools you want to use.
Its very likely that you will destroy data if you are not careful.
There are a few things you can try, depending on your knowledge.

You could use the forensic toolkit sleuthkit (and perhaps its
web-frontend autopsy). For recovering photos, I have had good results
by just searching for jpeg-headers (first 4 bytes, assuming you have
jpeg-images, ofcourse) and simply cutting a bit more than your average
filesize after the header. Result of that will depend from your usage
pattern on the Memorystick, that is, if you delete all files, than
make new photos, or just delete some files (which results in
fragmentation, which will prevent the copy-x-kb-after-jpeg-header-
approach).

There are some other ways, but these are the simple ones.

In any case, MAKE A BACKUP!!! before you try to recover the files.

HTH.

 Timo


PS: Message me of-list, if you need specific help.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] iptables example on Gentoo

2005-09-10 Thread Timo Boettcher
Hi Dave,


* Dave Nebinger [EMAIL PROTECTED], Friday, September 9, 2005, 4:23:07 PM:

 Dude, trying to use iptables directly was your first mistake.
 no, it wasn't.

 I have written some small example script
 http://forums.gentoo.org/viewtopic.php?p=377447
 that (IMO) is quite modular...

 Yes, Timo, it is quite modular and quite thorough.  It represents a great
 job at developing a general set of rules.

 But I would raise the following issues:

 1. FTP support: You've allowed for the active ftp protocols on ports 20 
 21, but what about passive?  This traffic will usually be on the higher
 ports (typically a range specified in the configuration for the ftp daemon).
 I do believe that if the ftp daemon tries to open a passive connection
 outbound it's going to get knocked off at the knees.
If I open a ftp-connection from the inside to a ftp-server on the
outside, it should get caught by the iptables-ftp-module and the
RELATED rule.

 2. Measure the checks: The more checks that a packet goes through, the
 longer it will take to travel through the iptables stack.  Your script has a
 lot of checks in it.  Consider a pgp packet as it traverses all of the
 chains etc. that you've specified.  You're probably looking at 30+ checks at
 least (although I haven't counted each individual check, but I'm confident
 it is quite a large number).  That's a significant number of hops and means
 the packet is going to be hanging around on the box a lot longer than what
 it really should.
Yes, I have MANY checks. I have had no probleems while using this and
some newer versions of this script. However this seems to bee a
problem for users that get many small packets per time-unit... (think
p2p here). As you state below, this is no universal solution, but was
built to be easily reconfigurable.

 3. No detail on why the checks are ordered in the way they are (is there an
 order?):  As #2 indicates, the increased number of checks that a packet
 needs to be pushed through means it will hang around on the box longer.
 Therefore they should be ordered to give priority to either a) heavily used
 ports or b) ports you want to have processed sooner rather than later.
There was no reason ;-). see above

 4. No reason for accepting specific outbound traffic: I tend to prefer
 allowing all outbound traffic and filter on those ports that shouldn't be
 going outbound (i.e. dhcp responses, dns responses, ipp packets, windows
 networking stuff, known trojan/virus ports).  It greatly reduces the number
 of checks outbound traffic needs to go through.
I filter outbound for various reasons: generally, I like to know what
happens on my internal network. You can catch misconfigured software
some malware and some bad users with that.

 Obviously to improve the throughput you'd have to alter the script to use
 multiple ports on accept lines.  Once you start doing that, though, you lose
 the modularity that you've built into the script.
You are probably right in that.

 The point that needs to be made is that there is no 'one iptables script
 fits all'.  Each site, each box for that matter, has it's own set of
 services and it's own usage criteria.  To that end the iptables rules will
 (should) always vary from box to box, whether it is a server, a desktop, a
 gateway, or some combination of the three.
Of course.

 New users looking to get their boxen online grab scripts like this thinking
 they are going to secure it for them, yet they don't understand the nuances
 of the individual rules nor how they are grouped.  How many folks that grab
 the script are going to know what the teamspeak or pgp ports are for and
 whether they need them or not?  How many are going to know that they've
 exposed their system to incoming teamspeak packets, whether they have
 teamspeak or not?
Even more: They are exposing their box to ALL packets on the teamspeak
port.
But IMO, it's easier to learn than some gui-things, you don't have to
transfer it over network to your firewall-box (who has X on a
firewall??? :-) ) and its easy to reconfigure.

Thanks for the feedback. really.


 Timo

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] iptables example on Gentoo

2005-09-09 Thread Timo Boettcher
Hi Dave,


* Dave Nebinger [EMAIL PROTECTED], Tuesday, September 6, 2005, 7:39:53 PM:

 I've been trying to build a simple firewall with a DMZ for a
 web server.

 Dude, trying to use iptables directly was your first mistake.
no, it wasn't.

I have written some small example script
http://forums.gentoo.org/viewtopic.php?p=377447
that (IMO) is quite modular...


 Timo

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] apcupsd - apache module

2005-09-06 Thread Timo Boettcher
Hi Joseph,


* Joseph [EMAIL PROTECTED], Tuesday, September 6, 2005, 4:27:36 AM:

 Is there an apache module for apcupsd or is it installed during emerge
 apcupsd?
An apache module? You mean some webpage with statistic functions?
Have a look at nut (http://www.networkupstools.org/).
There are some howtos on the web that explain how to integrate nut
with rrd-tool (IIRC).

 Timo

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] switching to LCD monitor

2005-07-23 Thread Timo Boettcher
Hi Philip,

* Philip Webb [EMAIL PROTECTED], Thursday, July 21, 2005, 10:24:52 AM:

 I recall that when I installed Gentoo 031005 ,
 I had to copy manually the monitor lines from my previous box,
 which was running Mandrake, in order to get the monitor to work properly.
 Without a working screen, there's no way I could do that this time.

There actually is. Use some Live-cd, like knoppix...

 Timo

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] root logout: not clearing the screen...

2005-07-23 Thread Timo Boettcher
Hi Jarry,


* Jarry [EMAIL PROTECTED], Saturday, July 23, 2005, 6:26:32 PM:

 Hi gentoorians! :-)

 I have noticed some strange (and imho rather not secure) thing:

 A common, not root user logs in on vc1 (2,3,4), then he runs some
 process which writes output to screen (e.g. ls -al), then he logs out.
 After logging out the screen is cleared, and a new log-in prompt is
 on the top of a screen. Except for log-in prompt and welcome message,
 screen is empty...

hm, I did that a while back for all users.
I have in /etc/inittab
c1:12345:respawn:/sbin/agetty/ -I '\033[2J\033[f' 38400 tty1 linux



 Timo

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Disk Backup From One Machine To Another

2005-06-24 Thread Timo Boettcher
Hi Raphael,


* Raphael Melo de Oliveira Bastos Sales [EMAIL PROTECTED],
Friday, June 24, 2005, 8:27:02 PM: 

 I have one machine (Machine 1) that I need backup its files
 periodically. I also have another machine (Machine 2) that will hold
 the backup. Machine 2 can see (make requests to) Machine 1, but the
 opposite isn't true. The network is covered by a firewall, so I don
 need a paranoid solution. I was thinking about doing the following:
[strange idea involving netcat]
 But before doing this, I'd like some suggestions or may be some better
 solutions you guys might know.
[...]

Using netcat, you would send all your data, including the login
passwords to your machine, its ssh-host-key and so on, unencrypted
over your network. You don't want that, except when its a cross-cable
and the machines are just some meters apart...

Why not use ssh?

From machine 2 you can

ssh [EMAIL PROTECTED] cd /; tar --exclude=./proc --excluse=./sys -cz
. | dd of=/backupfrommachine1.tgz

With minor changes, you could use that in the other direction, too.

cd /; tar --exclude=./proc --excluse=./sys -cz . | ssh
[EMAIL PROTECTED] dd of=/backupfrommachine1.tgz

HTH

 Timo


-- 
gentoo-user@gentoo.org mailing list