Go to advanced search

by pwl
Thu Jul 17, 2014 9:44 pm
Forum: Networking and servers
Topic: Email external IP address
Replies: 26
Views: 50371

@MarkDG sudo echo testtext | mail -s testsubject [email protected].com Use this for cheking and see if there will be errors. @CaptainKorhonen I used script that you provided in this post but I had some problems with it. It have been sending emails each 15 min without any I...
by pwl
Thu Jul 17, 2014 9:22 pm
Forum: Beginners
Topic: [Fixed] sendmail problem after hard reset cron crontab
Replies: 2
Views: 3990

Re: sendmail problem after hard reset cron crontab

Thanks for reply. I googled but haven't found this until I wrote this post. Anyway I had enough of the notices from my email account from arriving emails and wanted to reinstall it and it helped. Just one thing about it. after power loss and force reboot I had something like that: [email protected]:~# /etc/in...
by pwl
Thu Jul 17, 2014 2:38 pm
Forum: Beginners
Topic: [Fixed] sendmail problem after hard reset cron crontab
Replies: 2
Views: 3990

[Fixed] sendmail problem after hard reset cron crontab

Hello I have a problem and I have no idea how to fix it. Some days ago by accident i've unpluged power from my RPi and it rebooted. Since then it's sending emails like that Cron <[email protected]> test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp Mail Submission Program <[email protected]....
by pwl
Tue Feb 05, 2013 4:52 pm
Forum: Beginners
Topic: Hostname / Hosts
Replies: 7
Views: 2146

Re: Hostname / Hosts

pwl wrote: I've rebooted pi after saving the files to changes take effect.
Now i know that you don't have to reboot :-P

Code: Select all

sudo /etc/init.d/hostname.sh start
by pwl
Mon Jan 07, 2013 3:36 pm
Forum: Beginners
Topic: MySQL problem. ERROR 2002 (HY000)
Replies: 13
Views: 14938

Re: MySQL problem. ERROR 2002 (HY000)

Ah, ok. So at least you could make the swapfile bigger - then use "vmstat 1" to monitor whether it is swapping or not in normal use (it could be stuff gets swapped out and not accessed again, so you just need the swap space but the system doesn't slow down much as a result). If it does swap in norm...
by pwl
Mon Jan 07, 2013 2:16 pm
Forum: Beginners
Topic: Hostname / Hosts
Replies: 7
Views: 2146

Re: Hostname / Hosts

putting hostname somewebadress.com before PS1='${debian_chroot:+($debian_chroot)}\[email protected]$(hostname):\w\$ ' works for me. The default being: PS1='${debian_chroot:+($debian_chroot)}\[email protected]\h:\w\$ ' (the bash instance variable \h is set before the call to hostname) . I'm an idiot and it took me a while to fig...
by pwl
Mon Jan 07, 2013 1:02 pm
Forum: Beginners
Topic: MySQL problem. ERROR 2002 (HY000)
Replies: 13
Views: 14938

Re: MySQL problem. ERROR 2002 (HY000)

You might say that my Pi is quite old. I've got it on July. Back then when i was ordering it there was only 256mb version B [email protected] ~ $ free total used free shared buffers cached Mem: 189100 166792 22308 0 11172 36308 -/+ buffers/cache: 119312 69788 Swap: 102396 45008 57388 I have it set to use mini...
by pwl
Mon Jan 07, 2013 9:58 am
Forum: Beginners
Topic: MySQL problem. ERROR 2002 (HY000)
Replies: 13
Views: 14938

Re: MySQL problem. ERROR 2002 (HY000)

I've reinstalled mysql so i can give logs [email protected] ~ $ sudo service mysql status [info] /usr/bin/mysqladmin Ver 8.42 Distrib 5.5.28, for debian-linux-gnu on armv7l Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/o...
by pwl
Mon Jan 07, 2013 7:47 am
Forum: Beginners
Topic: MySQL problem. ERROR 2002 (HY000)
Replies: 13
Views: 14938

Re: MySQL problem. ERROR 2002 (HY000)

have you run out of space on the SD card, try running df -h on the command prompt. [email protected] ~ $ sudo df -h System plików size used avi. %used mouted ** rootfs 3,6G 1,7G 1,8G 48% / **i have it in polish, hope i've tranlsated it properly. I see the startup script, /etc/init.d/mysql, has this: ERR_LOGG...
by pwl
Sun Jan 06, 2013 9:03 pm
Forum: Beginners
Topic: MySQL problem. ERROR 2002 (HY000)
Replies: 13
Views: 14938

Re: MySQL problem. ERROR 2002 (HY000)

Code: Select all

[email protected] ~ $ sudo service mysql start
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
by pwl
Sun Jan 06, 2013 4:53 pm
Forum: Beginners
Topic: MySQL problem. ERROR 2002 (HY000)
Replies: 13
Views: 14938

Re: MySQL problem. ERROR 2002 (HY000)

[email protected] ~ $ ps ax | grep sql 16008 pts/1 S+ 0:00 grep --color=auto sql [email protected] ~ $ service mysql status [info] MySQL is stopped.. it seems like mysql stops itself ;( /var/log/mysql.log /var/log/mysql.err /var/log/mysql files are empty, and folder doesn't have any files in it ;( So logs will not g...
by pwl
Sat Jan 05, 2013 9:59 pm
Forum: Beginners
Topic: MySQL problem. ERROR 2002 (HY000)
Replies: 13
Views: 14938

MySQL problem. ERROR 2002 (HY000)

Hi I have problem with mysql. When it's freshly after instalation it seems to run 'ok' but after some time i can't connect to database. [email protected] ~ $ mysql -u root -p Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) all I can do ...
by pwl
Sat Oct 13, 2012 9:32 am
Forum: Beginners
Topic: Hostname / Hosts
Replies: 7
Views: 2146

Re: Hostname / Hosts

personally I like PS1="> " in ~/.bashrc but you can put any one liner in there, some people even do things like prefix an rss feed line. man bash has a list of special bash things. Not the anwser for my question really :-S Not that I don't appretiate that you've anwsered, but typing 'man bash' is t...
by pwl
Fri Oct 12, 2012 1:31 pm
Forum: Beginners
Topic: Hostname / Hosts
Replies: 7
Views: 2146

Hostname / Hosts

Hi I've edited such files /etc/hostname /etc/hosts and wanted to change the: [email protected] ~ $ to change hostname from raspberrypi to somewebadress.com But the problem is that i get only something like: [email protected] Is it possible to add 'dot' . in the hostname or did I messed up something? I'v...
by pwl
Mon Jul 30, 2012 6:48 pm
Forum: Networking and servers
Topic: Web Server running only on Solar Power
Replies: 50
Views: 21892

Re: Web Server running only on Solar Power

Raspbrain wrote:Stirring,

(...)and how to connect Solar panel and the battery, so on?
Add me to this request. Would like to know how you solved those issues.
by pwl
Sun Jul 29, 2012 8:15 am
Forum: Beginners
Topic: Pi Uptime
Replies: 40
Views: 9339

Re: Pi Uptime

you mean like this: http://81.174.146.46/ ? its just basic php, specifically the system function. e.g. <?php system("df -h"); ?> <?php system("top -b -n1");?> etc Very interesing ;-) Would like to see the script to generate similar page. btw. for the ones that are looking still how to extract 'upti...
by pwl
Thu Jul 26, 2012 7:47 am
Forum: Beginners
Topic: Pi Uptime
Replies: 40
Views: 9339

Re: Pi Uptime

http://www.bryxx.com has now been up 10 days, 53 minutes (and in that time served about 3,500 page impressions to users in 33 different countries) http://bryxx.com/images/r2.jpg Hey there, How are you able to view the uptime in the fashion you're doing that? Would like to do the same thing :D Can y...
by pwl
Thu Jul 26, 2012 6:41 am
Forum: Beginners
Topic: How to block IPs that fail to SSH?
Replies: 26
Views: 11973

Re: How to block IPs that fail to SSH?

The configuration files for most services are stored as /etc/(service_name).conf or stored in a folder i.e. /etc/(service_name)/something.conf. In the case of ssh you need to edit /etc/ssh/sshd_config as root or sudo editor /etc/ssh/sshd_config For changes to take effect you must restart the operat...

Go to advanced search