Go to advanced search

by knute
Wed May 18, 2016 4:18 am
Forum: Other programming languages
Topic: Apache cgi-bin config
Replies: 7
Views: 8767

Re: Apache cgi-bin config

You also need to put cgid.conf and cgid.load in /etc/apache2/mods-enabled. sudo a2enmod cgid I would leave the ownership of /usr/lib/cgi-bin or /var/www/html as root:root. The cgi-bin programs I would chmod 750 and have them owned by www-data:www-data. Your html files can be owned by pi if you want.
by knute
Thu May 12, 2016 3:48 pm
Forum: Beginners
Topic: Walkthrough Of a Piece of Code
Replies: 6
Views: 862

Re: Walkthrough Of a Piece of Code

It's a shell script. case and esac are the opening and closing of the case statement. start and stop are the two possible cases. If you run the script "vncboot start" it follows the code at start) and the same for stop). I'm not sure whether *) is no command line option or any command line option.
by knute
Thu May 12, 2016 4:17 am
Forum: Troubleshooting
Topic: postfix resolv.conf file empty on startup?
Replies: 4
Views: 1873

postfix resolv.conf file empty on startup?

So when I start my Pi3, postfix starts but it can't find any DNS servers and so it leaves /var/spool/postfix/etc/resolv.conf empty. As a result my emails don't go anywhere. If I restart postfix it populates resolv.conf and everything works great. I am clueless about systemd and startup. Is there a w...
by knute
Wed May 11, 2016 8:06 pm
Forum: General discussion
Topic: Static ip configuration GUI
Replies: 15
Views: 22013

Re: Static ip configuration GUI

Hey, If this already exists, please point me to a right direction. :) I would love to have a simple gui or script that asks questions and sets up my pi to use static ip address. My router doesnt have this ip to mac binding feature so thats not an option for me. The how'tos in the web are a bit comp...
by knute
Wed May 11, 2016 3:44 pm
Forum: Troubleshooting
Topic: Cannot open jnlp with java
Replies: 1
Views: 1506

Re: Cannot open jnlp with java

There is no Java Web Start for the Pi that I know of. Just download the .jar file and run it normally.
by knute
Tue May 10, 2016 6:11 pm
Forum: Beginners
Topic: Setting up vsftpd
Replies: 20
Views: 10345

Re: Setting up vsftpd

It didn't work, but I believe port 20 is closed. Is it supposed to be TCP or UDP? FTP uses TCP connections. Port 20 is closed on which machine, your server or your client? It is an outbound connection from the server and an inbound to the client. From Wikipedia: "FTP may run in active or passive mo...
by knute
Tue May 10, 2016 5:59 pm
Forum: Beginners
Topic: Setting up vsftpd
Replies: 20
Views: 10345

Re: Setting up vsftpd

Hey Pi9: If you get this all running successfully for a period of a month or more, please let us know. I've tried using the vsftpd server before on an Ubuntu 14 distro, debian headless and now a Fedora distro - each time, working great for about 3 weeks but ultimately ending in chaos. I'm not sure ...
by knute
Tue May 10, 2016 5:52 pm
Forum: Beginners
Topic: Setting up vsftpd
Replies: 20
Views: 10345

Re: Setting up vsftpd

Yes, I got it working, but only with passive FTP. If I try to ftp from the windows command prompt, I can login, but I can't browse. I use Filezilla to access my uploaded files and luckily the camera can establish sessions using passive ftp. I will post my config file shortly. You've got your user c...
by knute
Wed Apr 27, 2016 3:12 pm
Forum: Troubleshooting
Topic: Pi3 stutters over WiFi?
Replies: 8
Views: 1795

Re: Pi3 stutters over WiFi?

So I'm not sure why but it's not stuttering this morning. I used the Pi all day yesterday and had issues but not today. I cut the tcpdump short to post here but a complete run is at http://knutejohnson.com/tcpdump.txt. I've got two access points working and wpa_supplicant.conf lists both. Maybe it w...
by knute
Wed Apr 27, 2016 4:50 am
Forum: Troubleshooting
Topic: Pi3 stutters over WiFi?
Replies: 8
Views: 1795

Pi3 stutters over WiFi?

My Pi3 stutters, it stops for a few seconds and then continues when connected through the WiFi. The pause can last for as much as about 15 seconds and occurs as often as 3 or 4 times per minute. If I'm connected through ethernet it runs smoothly and never falters. The software is up to date. Any ide...
by knute
Sun Apr 17, 2016 9:43 pm
Forum: Beginners
Topic: Setting up vsftpd
Replies: 20
Views: 10345

Re: Setting up vsftpd

So the problem here is that chrooting the user has security issues (that I don't really understand) so the chroot directory cannot be writeable. The easiest way to fix that is to make ftp's root directory permissions 555. You will still be able to have writable subdirectories under /home/ftp. You di...
by knute
Sat Apr 16, 2016 9:41 pm
Forum: Beginners
Topic: Setting up vsftpd
Replies: 20
Views: 10345

Re: Setting up vsftpd

First active and passive are how the connection and data transfer is accomplished. Not what you are concerned with here. Look at the vsftpd, conf file for the chroot options and the user access files to force the user into his own directory structure. You can also set a list of users that have ftp a...
by knute
Thu Mar 24, 2016 10:00 pm
Forum: General discussion
Topic: Static IP Adress Jessie version 8
Replies: 8
Views: 1390

Re: Static IP Adress Jessie version 8

If Jessie 8 uses dhcpcd as Raspbian does then see man dhcpcd.conf and search for 'static'.
by knute
Thu Mar 24, 2016 9:56 pm
Forum: Beginners
Topic: Give pi account sudo access to www?
Replies: 9
Views: 23708

Re: Give pi account sudo access to www?

It's really much simpler to just put another directory under /var/www such as /var/www/pi and have it owned by pi. Then you can ftp or sftp your files right to the website directory. When you set up your apache use /var/www/pi as the document root.
by knute
Mon Mar 14, 2016 3:55 am
Forum: Beginners
Topic: how to set an ip address
Replies: 6
Views: 1128

Re: how to set an ip address

There are two options for VNC, first is tightvncserver which will give you a virtual desktop and x11vnc which will repeat the actual desktop. The instructions for setting up a fixed IP address can be found by running man dhcpcd.conf and looking for the static IP settings. Rather than set a fixed IP ...
by knute
Sat Mar 12, 2016 4:58 am
Forum: Raspberry Pi OS
Topic: lastest raspbain and network configuration
Replies: 5
Views: 1247

Re: lastest raspbain and network configuration

man dhcpcd.conf
by knute
Tue Mar 08, 2016 11:08 pm
Forum: General discussion
Topic: Raspberry Pi 2 Java Webstart
Replies: 7
Views: 3367

Re: Raspberry Pi 2 Java Webstart

No webstart or plugin available for the ARM. I haven't seen any info that suggests that it will be available in the future either.
by knute
Tue Mar 08, 2016 11:00 pm
Forum: Troubleshooting
Topic: Static address - still dhcp
Replies: 4
Views: 864

Re: Static address - still dhcp

This is one of the hardest things about Linux. Stuff tunes along for ever working one way and then they change it up on you.

If you are using Jessie or a late Wheezy then you need to clean all that stuff out of your /etc/interfaces file and read man dhcpcd.conf for how to set it up now.
by knute
Tue Mar 08, 2016 8:40 pm
Forum: Troubleshooting
Topic: Disabling dns on raspbian
Replies: 7
Views: 2523

Re: Disabling dns on raspbian

I have no idea what streaminf is? Do they not want you to resolve hostnames to addresses?
by knute
Tue Mar 08, 2016 6:12 pm
Forum: Troubleshooting
Topic: problem restarting apache
Replies: 3
Views: 975

Re: problem restarting apache

or sudo apachectl restart

The apachectl script has a few extra features.
by knute
Tue Mar 08, 2016 5:24 pm
Forum: Troubleshooting
Topic: Disabling dns on raspbian
Replies: 7
Views: 2523

Re: Disabling dns on raspbian

I can't imagine why you would want to disable the DNS? I think you do it by editing /etc/dhcpcd.conf, from the docs nohook script Don't run this hook script. Matches full name, or prefixed with 2 numbers optionally ending with .sh. So to stop dhcpcd from touching your DNS settings or starting wpa_su...
by knute
Wed Mar 02, 2016 9:41 pm
Forum: Java
Topic: Java OpenGL pipline and the new VC4 drivers
Replies: 6
Views: 2464

Re: Java OpenGL pipline and the new VC4 drivers

Thanks very much for looking into this for me. It worked really well on the test OS and I was looking forward to it being incorporated into the mainstream.
by knute
Tue Mar 01, 2016 9:28 pm
Forum: Java
Topic: Java OpenGL pipline and the new VC4 drivers
Replies: 6
Views: 2464

Re: Java OpenGL pipline and the new VC4 drivers

Thanks very much for your response Xerxes.

I renamed the /opt/vc directory as you suggested and still get the same error when running my Java program.

Any other ideas?

Thanks,

knute...
by knute
Thu Feb 25, 2016 11:34 pm
Forum: Java
Topic: Java OpenGL pipline and the new VC4 drivers
Replies: 6
Views: 2464

Java OpenGL pipline and the new VC4 drivers

I've been attempting to get Java to run with the OpenGL pipeline in the latest Jessie revision but I have been unsuccessful. pi@raspberrypi ~/bin $ java -Dsun.java2d.opengl=True -cp cookbook.jar com.knutejohnson.cookbook.DrawFast OpenGL pipeline enabled for default config on screen 0 unknown NIR ALU...
by knute
Thu Feb 25, 2016 10:13 pm
Forum: Networking and servers
Topic: Configuring Apache2 for CGI
Replies: 2
Views: 2367

Re: Configuring Apache2 for CGI

Make sure that you have a link to /etc/apache2/conf-available/serve-cgi-bin.conf in /etc/apaqche2/conf-enabled, and that there are links to /etc/apache2/mods-available/cgid.conf and cgid.load in /etc/apache2/mods-enabled. Assuming you didn't change the defaults, your CGI programs belong in /usr/lib/...

Go to advanced search