Go to advanced search

by AlterSchwede
Tue Dec 31, 2013 6:22 pm
Forum: Raspberry Pi OS
Topic: apt-get install and libxft2
Replies: 0
Views: 447

apt-get install and libxft2

I fail to install a new python package, and get this: sudo apt-get install python-requests Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libfltk1.3 ...
by AlterSchwede
Wed Dec 11, 2013 8:12 am
Forum: Raspberry Pi OS
Topic: old files cleaned in /tmp?
Replies: 9
Views: 4726

Re: old files cleaned in /tmp?

It is a 24/7 system running at a remote location and reboots due to e.g. kernel panics are not really happening. So far only external devices such as 3g sticks has suddenly stopped working and needed a power cycle (yes - with help of GPIO and a MOSFET). A bigger problem has been power outages a few ...
by AlterSchwede
Tue Dec 10, 2013 9:33 pm
Forum: Raspberry Pi OS
Topic: old files cleaned in /tmp?
Replies: 9
Views: 4726

Re: old files cleaned in /tmp?

I don't know the concept of a permanent directory - can you give me a hint what this is? Would that eliminate the risk of corrupted ext4/fat file system in case of power outage? I have had pretty bad experience on that with Raspberry Pi...that why I now run on a completely ro file system...much more...
by AlterSchwede
Tue Dec 10, 2013 8:15 pm
Forum: Raspberry Pi OS
Topic: old files cleaned in /tmp?
Replies: 9
Views: 4726

Re: old files cleaned in /tmp?

my mount looks like this: /dev/root on / type ext4 (ro,noatime,data=ordered) devtmpfs on /dev type devtmpfs (rw,relatime,size=216108k,nr_inodes=54027,mode=755) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=44876k,mode=755) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,siz...
by AlterSchwede
Tue Dec 10, 2013 7:36 pm
Forum: Raspberry Pi OS
Topic: old files cleaned in /tmp?
Replies: 9
Views: 4726

Re: old files cleaned in /tmp?

...so again I'll answer myself: It seem as if the variable TMPTIME is not set to 0 (clean at boot) as I assumed - it is not set at all. This probably results in this unwanted behaviour (if I read /etc/init/mounted-tmp.conf correct). I'll now set this in /etc/default/rcS and hope it will do the job (...
by AlterSchwede
Tue Dec 10, 2013 7:07 pm
Forum: Raspberry Pi OS
Topic: old files cleaned in /tmp?
Replies: 9
Views: 4726

old files cleaned in /tmp?

Do you know if there is any cronjob/process which remove old files in /tmp?
I am experiencing disappearing files...
Since I have set up a headless system ro file system, I am "misusing" /tmp as ordinary ram disc and would like to keep things there until next reboot.
by AlterSchwede
Tue Nov 26, 2013 7:23 am
Forum: Raspberry Pi OS
Topic: Unable to force reboot on kernel panic
Replies: 6
Views: 3821

Re: Unable to force reboot on kernel panic

This was my problem and now it works - thanks for the hint and explanation (which also explains why it worked for me in the past - I had removed ttyAMA0 in cmdline.txt since I needed the serial port for other stuff).
by AlterSchwede
Mon Nov 25, 2013 9:16 pm
Forum: Raspberry Pi OS
Topic: Unable to force reboot on kernel panic
Replies: 6
Views: 3821

Re: Unable to force reboot on kernel panic

Although I could not get the kernel.panic in sysctl.conf to work (should consider to report this as a bug?), I found a solution which is much better for my particular purpose - use the Raspberry Pi watchdog. $ sudo modprobe bcm2708_wdog $ echo "bcm2708_wdog" | sudo tee -a /etc/modules $ su...
by AlterSchwede
Mon Nov 25, 2013 6:28 am
Forum: Raspberry Pi OS
Topic: Unable to force reboot on kernel panic
Replies: 6
Views: 3821

Re: Unable to force reboot on kernel panic

I did both try the sysctl -p and a manual reboot - no difference.
(cat /proc/sys/kernel/panic says 10)
I am running a headless system with a 1000 km away and can only
maintain it a few times/year.
I have had no panics so far but would like a automatic reboot if there would
be glitch causing a crash.
by AlterSchwede
Sun Nov 24, 2013 10:16 pm
Forum: Raspberry Pi OS
Topic: Unable to force reboot on kernel panic
Replies: 6
Views: 3821

Re: Unable to force reboot on kernel panic

Clarification: It seem to be independent if ro or rw file system - I tried on a rw system and it does not automatically reboot. Since I recall that this has worked with an older Raspian version, I either I have found a fault in Raspian or something in my setup is wrong - any chance someone can try i...
by AlterSchwede
Sun Nov 24, 2013 9:12 pm
Forum: Raspberry Pi OS
Topic: Unable to force reboot on kernel panic
Replies: 6
Views: 3821

Unable to force reboot on kernel panic

I am running a headless RPi using Raspian with ro file system. Now I want the system to automatically reboot on kernel panic so I have added kernel.panic = 10 to /etc/syscntl.conf and rebooteded to make the setting active. If I now generate a kernel panic by echo c > /proc/sysrq-trigger # as root th...
by AlterSchwede
Mon Apr 01, 2013 1:57 pm
Forum: Raspberry Pi OS
Topic: Problem to autostart sakis3g
Replies: 5
Views: 7676

Re: Problem to autostart sakis3g

Sakis3g sometimes need to run certain commands as sudo.
Try to add alwayssudo to your sakis3g config file (/etc/sakis3g.conf)
and then use the /etc/init.d start variant (which I find most elegant solution).
by AlterSchwede
Mon Feb 04, 2013 12:04 am
Forum: Raspberry Pi OS
Topic: automatically reboot after crash?
Replies: 2
Views: 5985

Re: automatically reboot after crash?

To reboot after kernel panic:
Add to /etc/sysctl.conf:

Code: Select all

# reboot at kernel panic (seconds before reboot).
kernel.panic = 5
by AlterSchwede
Sun Feb 03, 2013 11:26 pm
Forum: Raspberry Pi OS
Topic: umts stick only works first time
Replies: 9
Views: 5619

Re: umts stick only works first time

This matter is now solved (but not sure how to mark it as 'solved' in the thread). I created a file ”/etc/usb_modeswitch.d/E173.conf” ######################################################## # Huawei, newer modems DefaultVendor= 0x12d1 DefaultProduct=0x1446 TargetVendor= 0x12d1 TargetProduct= 0x1436...
by AlterSchwede
Sun Jan 27, 2013 12:24 pm
Forum: Raspberry Pi OS
Topic: umts stick only works first time
Replies: 9
Views: 5619

Re: umts stick only works first time

(edit:added modem ids) I also use sakis3g and get a connection as soon as the modem i/f for the stick is visible (/dev/ttyUSB0 etc. is created). Go get sakis3g to work the stick must be able to switch to Vendor=12d1 ProdID=1436 (modem mode). At the moment it is stuck on ProdID=1446. The problem is t...
by AlterSchwede
Sun Jan 27, 2013 11:11 am
Forum: Raspberry Pi OS
Topic: umts stick only works first time
Replies: 9
Views: 5619

Re: umts stick only works first time

Clarification: The XSStick P14 still behaves relatively OK (works after reboot), but the E173 stick which is supposed to be compatible to RPi not. I created at completely clean system with the latest Raspbian image (2012-12-16) and installing usb-modeswitch - still no success to get E173 to show the...
by AlterSchwede
Sat Jan 26, 2013 2:02 pm
Forum: Raspberry Pi OS
Topic: umts stick only works first time
Replies: 9
Views: 5619

Re: umts stick only works first time

Now, after an sudo apt-get upgrade, I have the opposite problem: after power on with the stick Huawei E173 already connected, I cannot see the modem modes anymore. usb-devices: T: Bus=01 Lev=03 Prnt=04 Port=01 Cnt=01 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 ...
by AlterSchwede
Fri Oct 26, 2012 6:13 am
Forum: Raspberry Pi OS
Topic: umts stick only works first time
Replies: 9
Views: 5619

Re: umts stick only works first time

Yes,
Now with latest Raspian, I see the modem modes too on the P14 stick (but must do a soft reboot after a power cycle). Good enough! I am also using Sakis3G.
by AlterSchwede
Sun Oct 14, 2012 1:17 pm
Forum: Networking and servers
Topic: using logrotate and ramlog
Replies: 64
Views: 30184

Re: using logrotate and ramlog

Update: This is what is needed: sudo apt-get install rsync sudo apt-get install lsof wget http://www.tremende.com/ramlog/download/ramlog_2.0.0_all.deb sudo dpkg -i ramlog_2.0.0_all.deb # you need to add the following in /etc/init.d/ramlog: # X-Start-Before: rsyslog # X-Stop-After: rsyslog # to the #...
by AlterSchwede
Sun Oct 14, 2012 9:45 am
Forum: Networking and servers
Topic: using logrotate and ramlog
Replies: 64
Views: 30184

Re: using logrotate and ramlog

Your ramlog tutorial is not available. Can you post it here? I have some problems with rsyslog and wonder how you solved it... Oct 14 11:28:03 Starting ramlog-tmpfs 2.0.0: Error: /var/log is in use... [fail] Oct 14 11:28:05 The list of open files: (You need to close below daemons if you want to star...
by AlterSchwede
Tue Jul 31, 2012 11:41 am
Forum: Raspberry Pi OS
Topic: ethernet crashes and makes pi hang
Replies: 10
Views: 7588

Re: ethernet crashes and makes pi hang

I had similar issues using both powered and passive hubs (and if I recall even without hub but in combination with wlan/wifi stick). The problem disappeared when I booted without (valid for both my wireless and USB) keyboard. I plug in the keyboard when booting is completed. I have no explanation wh...
by AlterSchwede
Tue Jul 31, 2012 11:30 am
Forum: General discussion
Topic: RaspPi & Sakis3g
Replies: 7
Views: 19018

Re: RaspPi & Sakis3g

At least for Rasbian, usb-modeswitch is already is already installed (if I recall right). Therefore, you should pick the Sakis3G binary free version (http://www.sakis3g.org/versions/latest/binary-free/sakis3g.gz). It runs fine on Rasbian. As you stated you might need to install ppp once by: sudo apt...
by AlterSchwede
Sat Jul 28, 2012 9:29 am
Forum: Raspberry Pi OS
Topic: umts stick only works first time
Replies: 9
Views: 5619

umts stick only works first time

I have a problem that it seems as umts sticks only works first time if power is switched on when stick is already connected. I have tried with both XS stick P14 and Huawei E173. (Power off, connect the stick, power on works FIRST time). Subsequent power cycles with stick connected does not show mode...

Go to advanced search