Go to advanced search

by Bosse_B
Thu Jan 23, 2020 10:24 am
Forum: Raspbian
Topic: How to install self created software in Raspbian?
Replies: 4
Views: 167

Re: How to install self created software in Raspbian?

Following my read of the suggested page I found that this ubuntu howto is good for the basics. However, this only handles the way to put the package files onto the target system... Say that the files have been successful put in place, then remains the following actions: 1- activate the newly configu...
by Bosse_B
Wed Jan 22, 2020 11:36 pm
Forum: Raspbian
Topic: How to install self created software in Raspbian?
Replies: 4
Views: 167

Re: How to install self created software in Raspbian?

What build system do you use for your application "make" "CMake" something else ? I am using FreePascal with Lazarus as the IDE. Builds for a whole lot of target operating systems. Will the program run as root ? Not necessarily, but I am running it as user pi. The user must have gpio permissions, t...
by Bosse_B
Wed Jan 22, 2020 4:34 pm
Forum: Raspbian
Topic: How to install self created software in Raspbian?
Replies: 4
Views: 167

How to install self created software in Raspbian?

I am developing software for a control board I will attach to the 40-pin header. The software will communicate with an external data collection system through relays and RS232 connections on the interface board. The board itself has just been readied and I am thinking ahead on how to duplicate the s...
by Bosse_B
Tue Jan 21, 2020 11:28 am
Forum: General discussion
Topic: what does "-bash: fg: no job control" on login mean?
Replies: 18
Views: 726

Re: what does "-bash: fg: no job control" on login mean?

So I still need history to weed out what was installed at the experimentation time...
by Bosse_B
Tue Jan 21, 2020 9:40 am
Forum: General discussion
Topic: what does "-bash: fg: no job control" on login mean?
Replies: 18
Views: 726

Re: what does "-bash: fg: no job control" on login mean?

Next time you need to reinstall, have a look at (cd /mnt/oldroot && dpkg --get-selections) | dpkg --set-selections apt-get dselect-upgrade as this gets you all the packages you've previously installed, and removes any you removed. QUESTIONS: 1) In your command you use ( ) to enclose the first part,...
by Bosse_B
Mon Jan 20, 2020 1:20 pm
Forum: General discussion
Topic: what does "-bash: fg: no job control" on login mean?
Replies: 18
Views: 726

Re: what does "-bash: fg: no job control" on login mean?

Might be a copy-paste problem that happened, but I will never know... Anyway removing the line made the offending output go away. :D It all happened when I was resurrecting my setup after I had made WiFi on my RPi4 no longer work a couple of months back. So I used history by dumping its output to a ...
by Bosse_B
Sun Jan 19, 2020 11:39 pm
Forum: General discussion
Topic: what does "-bash: fg: no job control" on login mean?
Replies: 18
Views: 726

Re: what does "-bash: fg: no job control" on login mean?

Thanks for your suggestions! First, a couple of bits of meta-question: 1) Is it causing you any actual reduction in utility? This is not meant to minimize the importance of it, but it helps to contextualize whether this is just a "That's weird; why is it doing this?" vs. "This is stopping me from ge...
by Bosse_B
Sun Jan 19, 2020 8:27 pm
Forum: General discussion
Topic: what does "-bash: fg: no job control" on login mean?
Replies: 18
Views: 726

Re: what does "-bash: fg: no job control" on login mean?

No-one really knows, right?
It is very irritating every time I log on via PuTTY.
It also happens whenever I open a new terminal window in the Raspbian GUI.

How can I get rid of this strange message?????
by Bosse_B
Fri Jan 03, 2020 11:26 pm
Forum: General discussion
Topic: what does "-bash: fg: no job control" on login mean?
Replies: 18
Views: 726

Re: what does "-bash: fg: no job control" on login mean?

How can I find out what it is? There is no % or ` inside /etc/profile or ~/.profile These are the files I found in /etc/profile.d: $ ls -l /etc/profile.d/ total 20 -rw-r--r-- 1 root root 95 Apr 29 2019 at-dbus-fix.sh -rw-r--r-- 1 root root 664 Mar 1 2019 bash_completion.sh -rw-r--r-- 1 root root 324...
by Bosse_B
Fri Jan 03, 2020 8:59 pm
Forum: General discussion
Topic: what does "-bash: fg: no job control" on login mean?
Replies: 18
Views: 726

what does "-bash: fg: no job control" on login mean?

I have an RPi4B box with the latest Raspbian Buster and I access it both via VNC for development and SSH (PuTTY) for management. Now when I log in I see this at the end of the greeting message: Last login: Thu Dec 26 10:25:55 2019 from 192.168.119.166 -bash: fg: no job control Never seen it before. ...
by Bosse_B
Mon Dec 23, 2019 10:19 am
Forum: General discussion
Topic: How can I install and use an openvpn client GUI on Raspbian_
Replies: 2
Views: 187

Re: How can I install and use an openvpn client GUI on Raspbian_

You should be able to start and stop the tunnel via systemd I believe. It will do the kill for you. https://www.raspberrypi.org/forums/viewtopic.php?f=36&t=249396&p=1522848 That, because installing an alternate network manager could be a wild goose chase. OK, I have stumbled through the linked thre...
by Bosse_B
Sat Dec 21, 2019 12:03 am
Forum: Networking and servers
Topic: Cannot get openVPN client config to start @ boot
Replies: 11
Views: 703

Re: Cannot get openVPN client config to start @ boot

Man, read or if not copy-paste what DougieLawson gave you.. “openssl rsa -in ...” I am blushing in humiliation!!! :o :shock: You are absolutely correct in that I did not see the rsa word in the command! Command executes OK when correctly written and produces a new ovpn file. However, I made another...
by Bosse_B
Fri Dec 20, 2019 2:21 pm
Forum: Networking and servers
Topic: Cannot get openVPN client config to start @ boot
Replies: 11
Views: 703

Re: Cannot get openVPN client config to start @ boot

Yeah, openssl is what is installed but.... [email protected]:/etc/openvpn $ sudo openssl -in BosseB_RPi_local95.ovpn -out BosseB_RPi_local95-NP.ovpn Invalid command '-in'; type "help" for a list. [email protected]:/etc/openvpn $ openssl help Standard commands asn1parse ca ciphers cms crl crl2pkcs7 dgst dhparam ...
by Bosse_B
Fri Dec 20, 2019 9:03 am
Forum: Networking and servers
Topic: Cannot get openVPN client config to start @ boot
Replies: 11
Views: 703

Re: Cannot get openVPN client config to start @ boot

There's no password on any of my certificates or private keys. openssl rsa -in /etc/openvpn/mypasswordprotected.key -out /etc/openvpn/mykeywithoutapassword.key I tried the removal but got: [email protected]:/etc/openvpn $ sudo ssl -in BosseB_RPi_local95.ovpn -out BosseB_RPi_local95_NP.ovpn sudo: ssl: com...
by Bosse_B
Thu Dec 19, 2019 10:55 pm
Forum: Networking and servers
Topic: Cannot get openVPN client config to start @ boot
Replies: 11
Views: 703

Re: Cannot get openVPN client config to start @ boot

There's some arcane incantations needed for openvpn with systemd. With a /etc/openvpn/foobar.conf sudo systemctl enable [email protected] gets it running. It's a bit quirky that you have to enable the config name like that. Hi Dougie, I come from a different thread concerning almost the same issue abo...
by Bosse_B
Thu Dec 19, 2019 1:45 pm
Forum: General discussion
Topic: How can I install and use an openvpn client GUI on Raspbian_
Replies: 2
Views: 187

How can I install and use an openvpn client GUI on Raspbian_

I am using OpenVPN to access our office network to reach the subversion server. On Windows this works fine using an application called OpenVPN/GUI where I can import my OVPN files and connect&disconnect the VPN easily. I have failed to find any such thing for Linux except today I found this howto th...
by Bosse_B
Wed Dec 18, 2019 1:07 pm
Forum: General discussion
Topic: Configuring apache to use my program as cgi handler?
Replies: 11
Views: 311

Re: Configuring apache to use my program as cgi handler?

I thought that headers are the stuff between head and /head.
( I cannot find the lt and gt chars on the phone keyboard...).
After all I am just doing a config utility....
by Bosse_B
Tue Dec 17, 2019 11:28 pm
Forum: General discussion
Topic: Configuring apache to use my program as cgi handler?
Replies: 11
Views: 311

Re: Configuring apache to use my program as cgi handler?

I tried your supersimple way and it worked fine here too. Then I started putting back my complex style code including the style sheet (needed for the configuration form I will show once I got this basic stuff working) and it still worked even when I put the following lines at the top of the generate...
by Bosse_B
Tue Dec 17, 2019 4:41 pm
Forum: General discussion
Topic: Configuring apache to use my program as cgi handler?
Replies: 11
Views: 311

Re: Configuring apache to use my program as cgi handler?

Your code: #Below added by Bosse_B 2019-12-17 ScriptAlias "/cgi-bin/" "var/www/html/cgi-bin/" <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Require all granted </Directory> I think that "var/www/html/cgi-bin/" is wrong, it needs a / at the star...
by Bosse_B
Tue Dec 17, 2019 2:44 pm
Forum: General discussion
Topic: Configuring apache to use my program as cgi handler?
Replies: 11
Views: 311

Re: Configuring apache to use my program as cgi handler?

Have you enabled cgi with this: sudo a2enmod cgi sudo service apache2 restart No but this is now done: $ sudo a2enmod cgi Enabling module cgi. To activate the new configuration, you need to run: systemctl restart apache2 $ sudo systemctl restart apache2 Then I tried to access a test program in Fire...
by Bosse_B
Tue Dec 17, 2019 10:11 am
Forum: General discussion
Topic: Configuring apache to use my program as cgi handler?
Replies: 11
Views: 311

Configuring apache to use my program as cgi handler?

I am using an RPi4B with Raspbian Buster fully updated and with Apache2 installed. I can show html and php files correctly in the browser so the webserver seems to work OK. For a project I am doing I need to use a binary program as the form handler for a few forms used to configure an application. A...
by Bosse_B
Wed Nov 13, 2019 9:13 am
Forum: General discussion
Topic: Do I need to remove fake-hwclock if I use an RTC chip?
Replies: 0
Views: 112

Do I need to remove fake-hwclock if I use an RTC chip?

I have read a number of howto's regarding use of an RTC module (using the DS3231M chip). In some they mention the removal of fake-hwclock and in some this is not mentioned. THIS is a howto where they mention the removal.. What gives here? If I do not remove it what are the ramifications? And if I do...
by Bosse_B
Tue Nov 12, 2019 10:28 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Reading/Writing I2C devices in Raspbian?
Replies: 2
Views: 256

Reading/Writing I2C devices in Raspbian?

I need to read and write some I2C devices (RTC, EEPROM) on my RPi4. I am not using C, C++ or Python so I would like to know if there are some Linux basic commands operating on the /dev/i2c-1 device I can use from any language that can handle files? What I actually use is FreePascal and Lazarus IDE. ...
by Bosse_B
Mon Nov 11, 2019 10:43 am
Forum: General discussion
Topic: State of GPIO pins on startup?
Replies: 8
Views: 283

Re: State of GPIO pins on startup?

Then a 100K (or maybe as low as 10K) would suffice as pull-down to guarantee a low level input to the MOSFET until the application kicks in and sets the pins as outputs with 0V level. The pull-down must be such that the CPU can drive the GPIO pin up to 2.5V or higher for the MOSFET to switch on. I w...
by Bosse_B
Mon Nov 11, 2019 10:12 am
Forum: General discussion
Topic: State of GPIO pins on startup?
Replies: 8
Views: 283

Re: State of GPIO pins on startup?

Breadboarding (on an RPi2B+ unit)... I hooked up my scope to the relay pins I had selected and set it for a one-shot registration triggered on the rising edge at about 1V. Nothing happened on a power-up, so I guess I am good here. If I put an ID EEPROM on the board as well (connected to pins 27/28) ...

Go to advanced search