Go to advanced search

by kasperl
Wed Jan 01, 2014 11:07 am
Forum: Raspbian
Topic: Best way to update a .CONF file?
Replies: 1
Views: 588

Re: Best way to update a .CONF file?

If you do not want to change the file with an editor, but also do not want a GUI, how should it guess what to put in there? You can make a shell command with sed and awk, that changes the password by some pre-determined value. Or write a Python script to do the same, which might be easier.
by kasperl
Wed Jan 01, 2014 11:02 am
Forum: Raspbian
Topic: Multiple Mounts in 1 Folder
Replies: 1
Views: 492

Re: Multiple Mounts in 1 Folder

Have a look at UnionFS: http://en.wikipedia.org/wiki/UnionFS You could also do a software striped RAID with mdadm, if your USB sticks are the same size. Big word of warning: All of this only increases the amount of possible data loss, and if you value the data on there even a bit, do not do it. And ...
by kasperl
Tue May 28, 2013 6:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Multiple UART via FTDI
Replies: 1
Views: 992

Multiple UART via FTDI

I'm working on a project using a lot of serial sensor chips, and I am wondering if I could us a FTDI chip to get the extra UART's to get simultaneous communication without multiplexing. Specifically, I am looking at getting a devboard using the FTDI4232H, which should give me four /dev/ttyUSBx ports...
by kasperl
Mon May 06, 2013 3:32 pm
Forum: Nederlands
Topic: Zwart scherm
Replies: 5
Views: 1758

Re: Zwart scherm

ctrl+atl+F1? (F2,F3, etc?)
by kasperl
Mon May 06, 2013 2:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Two Serial ports?
Replies: 5
Views: 6354

Re: Two Serial ports?

If you've got a device that listens to serial over USB, just hook it up to a USB port on the Pi. Theoretically, it´ll show up as a /dev/ttyUSB0-9 port (pick a number out of a hat). If it's USB, you won need level shifters. For the Xbee, does that use RS232 or UART? UART 3.3V is fine, RS232 is not.
by kasperl
Mon May 06, 2013 2:22 pm
Forum: Linux Kernel
Topic: printk and the /dev/ttyAMA0 port
Replies: 8
Views: 5089

Re: printk and the /dev/ttyAMA0 port

Sounds about right in my experience, but be aware that you need level shifting and everything to get from the UART to RS-232. If you have a second Pi with SSH handy, it could be a lot quicker to get a very simple cable the to connect the TxD/RxD to that and monitor from there.
by kasperl
Tue Jan 08, 2013 8:22 pm
Forum: Raspbian
Topic: SSH banner
Replies: 4
Views: 2178

Re: SSH banner

In de manpage van SSHD (http://www.manpagez.com/man/8/sshd/) staat: LOGIN PROCESS When a user successfully logs in, sshd does the following: 1. If the login is on a tty, and no command has been specified, prints last login time and /etc/motd (unless prevented in the configuration file or by ~/.hushl...
by kasperl
Tue Jan 08, 2013 8:14 pm
Forum: Raspbian
Topic: Send mail from RPi without mail-account
Replies: 2
Views: 2607

Re: Send mail from RPi without mail-account

Exim4 gives you a wizard, even telling you when you're shooting yourself in the foot. So aptitude install exim4 and follow the instructions. And don't come and blame us if you become an open relay and your ISP bans you or makes you pay or something. SMTP is powerful, but with spam these days it's ve...
by kasperl
Mon Sep 17, 2012 7:41 am
Forum: Python
Topic: Python on Visual Studio
Replies: 3
Views: 2120

Re: Python on Visual Studio

Python doesn't require compiling, so write the .py file in anything you want and run it on the Pi or in Windows. However, if you want a GUI or file system stuff you might prefer working on the Pi or on a Linux box as keeping things cross platform (while possible) can be a pain. If you need to use GP...
by kasperl
Sat Jul 28, 2012 8:41 am
Forum: Python
Topic: Problem running previously written python on Raspberry Pi
Replies: 2
Views: 1296

Re: Problem running previously written python on Raspberry P

pygtk? Even if you have pygtk, it might be missing gtk itsself. What distro are you running?
by kasperl
Tue Jul 17, 2012 9:01 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Power a chassie fan
Replies: 8
Views: 2267

Re: Power a chassie fan

what is a steppermotor http://en.wikipedia.org/wiki/Stepper_motor But pygmy_giant is probably just referring to the control board for one of those, that allows you to buffer the power and switching safely. If you want to make things really safe, and you're not interested in PWM'ng the fan, get a 12...
by kasperl
Tue Jul 03, 2012 5:07 pm
Forum: Beginners
Topic: Debian, MPD and Mpod
Replies: 1
Views: 919

Re: Debian, MPD and Mpod

Have you tried other methods of playing audio? Is this an MPD or general audio issue?
by kasperl
Tue Jun 12, 2012 9:59 am
Forum: Beginners
Topic: "Screen" is very useful on the Pi !
Replies: 18
Views: 56014

Re: "Screen" is very useful on the Pi !

In addition to screen, when running with multiple SSH sessions, molly-guard can be a real livesaver. (aptitude install molly-guard). It asks you the name of the box you're trying to shutdown/reboot over SSH before shutting down the box at home instead of the local computer because you picked the wro...
by kasperl
Mon Jun 11, 2012 10:32 am
Forum: Python
Topic: working with times and dates
Replies: 7
Views: 7264

Re: working with times and dates

As for doing maths on the times, it might be easier to do that in seconds from epoch than in hour,minutes kinds of stuff.
by kasperl
Thu May 31, 2012 12:16 pm
Forum: C/C++
Topic: Who knows where the time goes?
Replies: 25
Views: 8138

Re: Who knows where the time goes?

I'm not sure you can easily disable the interrupts, but you might want to look into the RealTime Linux Kernel, it's made to use Linux and near-realtime GPIO.
by kasperl
Sun May 27, 2012 9:16 am
Forum: Beginners
Topic: Creating an image [solved]
Replies: 10
Views: 3588

Re: Creating an iso

dd on a the Mac should work. You can dd if=/dev/$SDCARD$ of=diskimage.img or something like that.
by kasperl
Tue May 22, 2012 8:33 am
Forum: Networking and servers
Topic: Samba for local, what to use for remote?
Replies: 5
Views: 7071

Re: Samba for local, what to use for remote?

What OS is going to access the drives? If Linux/OSX, just use sshfs on the clients and an ssh server on your Pi. Very secure, not too much overhead and no setup at all. If you need Windows clients, I haven't yet seen a free (as in speech or beer) solution that was secure enough for me. There are som...
by kasperl
Wed May 16, 2012 7:59 am
Forum: Beginners
Topic: A real AB question: How do I 'run as root'
Replies: 30
Views: 6454

Re: A real AB question: How do I 'run as root'

Ok...glad it wasn't just me getting confused about this! I'd used Ubuntu and a few other live distros in the past, but nothing too in-depth. For me, this became a problem for running programs like Gparted and Synaptic on the RPi, as they prompt "Enter the administrative password". Now the "pi" user...
by kasperl
Wed May 16, 2012 7:37 am
Forum: Beginners
Topic: Changing the username and password
Replies: 3
Views: 3615

Re: Changing the username and password

To change your password you can use the passwd command on the commandline. You might be able to change your username by editing the /etc/passwd and /etc/group files, changing user- and groupnames but keeping the numeric ID's intact. This _should_ work, but might bork your user account. To add a user...
by kasperl
Wed May 16, 2012 5:55 am
Forum: Beginners
Topic: A real AB question: How do I 'run as root'
Replies: 30
Views: 6454

Re: A real AB question: How do I 'run as root'

Ah, that's why I was asking when things changed, I rarely properly read the install instructions these days after so many installs. Thanks for the information, and sorry for any confusion that may have been caused.
by kasperl
Tue May 15, 2012 7:39 pm
Forum: Beginners
Topic: A real AB question: How do I 'run as root'
Replies: 30
Views: 6454

Re: A real AB question: How do I 'run as root'

Debian has always used a minimum of two accounts, a root account and a user account, each with a password. The user account is a normal user who cannot sudo, and cannot do anything a user shouldn't do. Root is reached via su. Sudo can be enabled in Debian via visudo, executed as root, but it's not e...
by kasperl
Tue May 15, 2012 7:16 pm
Forum: Beginners
Topic: A real AB question: How do I 'run as root'
Replies: 30
Views: 6454

Re: A real AB question: How do I 'run as root'

yes, in debian there is no longer a root account... basically. Since when? Lenny/squeeze still have su and sudo will generate an error if the user isn't in /etc/sudoers. Did wheezy change this? Typing su should ask for a root password, which should be provided in the documentation. You can change t...
by kasperl
Tue May 15, 2012 5:25 pm
Forum: Beginners
Topic: A real AB question: How do I 'run as root'
Replies: 30
Views: 6454

Re: A real AB question: How do I 'run as root'

yes, in debian there is no longer a root account... basically. Since when? Lenny/squeeze still have su and sudo will generate an error if the user isn't in /etc/sudoers. Did wheezy change this? Typing su should ask for a root password, which should be provided in the documentation. You can change t...
by kasperl
Sat May 12, 2012 6:38 am
Forum: Off topic discussion
Topic: Need some help/suggestions for a hardware bodge job (non-raspi)
Replies: 8
Views: 1754

Re: Need some help/suggestions for a hardware bodge job (non-raspi)

Ah, NYC, that kind of figures (having been New Amsterdam for a while). Thanks!
by kasperl
Fri May 11, 2012 9:51 pm
Forum: Off topic discussion
Topic: Need some help/suggestions for a hardware bodge job (non-raspi)
Replies: 8
Views: 1754

Re: Need some help/suggestions for a hardware bodge job (non-raspi)

<t>Probably not allowed to touch any of the wires either? Some old-fashioned door bells used quite a lot of power for the ringer and a coil for on/off, so you might be able to do something with a magnetic switch (Reed relais maybe?) without even opening the wires. Actually, if the wire is long enoug...

Go to advanced search