Go to advanced search

by swampdog
Thu Sep 15, 2016 9:23 pm
Forum: Troubleshooting
Topic: change netmask
Replies: 3
Views: 7714

Re: change netmask

Both your devices have the same ip address. You will have problems if both are connected at the same time. The mask is the /24 part. Most people will never have to change it because /24 allows 254 devices on the same subnet. eg: http://www.ipaddressguide.com/cidr (all bits zero and all bit high are ...
by swampdog
Thu Sep 15, 2016 8:06 pm
Forum: Troubleshooting
Topic: iscsi boot
Replies: 1
Views: 493

Re: iscsi boot

Unless something has changed very recently you need to rebuild the kernel with (iirc) CONFIG_ISCSI_TCP=y for it to be able to boot off iscsi. You could boot via NFS though and then activate iscsi later (it's a module).
by swampdog
Thu Sep 15, 2016 11:34 am
Forum: Troubleshooting
Topic: NFS mount takes up to 10 seconds
Replies: 25
Views: 3277

Re: NFS mount takes up to 10 seconds

To check dns perform both a forward and reverse lookup on the host and the client. A forward lookup is when you use the name. A reverse lookup is when you use the ip address. eg: $ nslookup [machine name] $ nslookup [ip address from above] There should not be any delays. It looks like your reverse l...
by swampdog
Thu Sep 15, 2016 11:00 am
Forum: Troubleshooting
Topic: Loosing IP - no way to connect
Replies: 47
Views: 7083

Re: Loosing IP - no way to connect

This is probably useless but back when I was building iscsi into the rpi kernel I noticed the pi was getting two leases (this with dhcpcd). I am running an old DNS/DHCP under FreeBSD 8.2 so fortunately I could see this happening. The iscsi thing wasn't worth the hassle. However, later on when I went...
by swampdog
Wed Sep 14, 2016 5:35 pm
Forum: Advanced users
Topic: Kernel libraries
Replies: 4
Views: 782

Re: Kernel libraries

The system won't search that path by default. This is what is knows.. $ cpp -x c -E -v - </dev/null ..look at the "#include search" lines. You need to use -I option to add in more paths. Unfortunately using a kernel header isn't straightforward (I thought you only wanted to look at it). At this poin...
by swampdog
Wed Sep 14, 2016 1:16 pm
Forum: Advanced users
Topic: Kernel libraries
Replies: 4
Views: 782

Re: Kernel libraries

$ sudo apt-get install apt-file
$ sudo apt-file update
$ sudo apt-file search skbuff.h
$ uname -a

$ sudo apt-get install raspberrypi-kernel-headers

See also "locate/mlocate/sudo updatedb" to find any file (including non-system ones).
$ sudo updatedb
$ locate -i skbuff\.h
by swampdog
Wed Sep 14, 2016 12:46 pm
Forum: General discussion
Topic: SSH Auto-login/Without Password
Replies: 11
Views: 2621

Re: SSH Auto-login/Without Password

There's also.. $ sudo apt-cache show sshpass ..which is very insecure but could be used to good effect in your case. Typically we used it in the workplace to connect to multiple network switches in order to invoke the same change upon them all. eg: $ sshpass -pPASSWORD ssh -o StrictHostKeyChecking=n...
by swampdog
Tue Sep 13, 2016 12:00 pm
Forum: General discussion
Topic: Constant Hard Drive Operation
Replies: 1
Views: 342

Re: Constant Hard Drive Operation

Difficult to say from the information you've given. Two assumptions: you mention streaming and a 3Tb usb drive so it will be predominantly readonly and the disk is spinning rust? I have a domestic 2Tb disk here with 48000 hours on it (24/7) and it is only now starting to produce some read faults but...
by swampdog
Fri Sep 09, 2016 9:23 pm
Forum: Other programming languages
Topic: Pascal?
Replies: 46
Views: 13219

Re: Pascal?

Problem is there is no such thing as BASIC. There are many languages that carry that name and are somehow similar. But they are all incompatible. There is no coherent standard. Similarly for Pascal. I want any code I write to be available in as many places as possible. Even if nobody else uses it, ...
by swampdog
Fri Sep 09, 2016 8:23 pm
Forum: General discussion
Topic: Password Problems
Replies: 5
Views: 1167

Re: Password Problems

I've not been in that situation so defer to another post if they know what they're talking about. If you have a "#" prompt then you are the root user so as a guess..

# passwd

..give a root password then reboot and use that root account to login. Run raspi-config to sort out the "pi" user problems.
by swampdog
Fri Sep 09, 2016 2:59 am
Forum: Troubleshooting
Topic: Struggling to reach Ethernet Speeds (Model B)
Replies: 7
Views: 894

Re: Struggling to reach Ethernet Speeds (Model B)

I have no idea where the limiting is occurring, but one thing to bear in mind that any Pi only has a 100Mb LAN port you will never achieve 100Mb down load speed due to network overheads, to test at 100Mb you need to have 1Gb LAN port. Also bear in mind there's other factors. Even with a pair of PC'...
by swampdog
Wed Sep 07, 2016 12:43 pm
Forum: Troubleshooting
Topic: Loosing IP - no way to connect
Replies: 47
Views: 7083

Re: Loosing IP - no way to connect

You might want to get one of those usb serial cables.
by swampdog
Sat Sep 03, 2016 5:42 pm
Forum: C/C++
Topic: C++ Remote, cant find application?
Replies: 5
Views: 925

Re: C++ Remote, cant find application?

I don't know NetBeans but if you're sure the app has been sent to the pi then (iirc).. $ sudo apt-get install locate $ sudo updatedb $ locate -i foo ..where "foo" is your application name, will tell you where it is. The above just installs a facility to list all the files, updates that list then sea...
by swampdog
Sat Sep 03, 2016 5:26 pm
Forum: C/C++
Topic: Any good OpenCV install instruction site?
Replies: 5
Views: 1911

Re: Any good OpenCV install instruction site?

I've never used this package but it looks like you need..

$ sudo apt-get install libopencv-dev

..what error do you get?
by swampdog
Sat Sep 03, 2016 4:52 pm
Forum: Raspbian
Topic: added a mount to fstab and get sulogin failed
Replies: 3
Views: 921

Re: added a mount to fstab and get sulogin failed

Here's a line out of /etc/fstab from a centos 6 box.. //smb/PUBLIC /mnt/smb/PUBLIC cifs noauto,credentials=/home/admin/.smbcred,uid=500,gid=300 0 0 $ chmod 600 /home/admin/.smbcred $ cat /home/admin/.smbcred username=foo password=bar You probably want your credentials file in /root/ and use your mou...
by swampdog
Fri Aug 12, 2016 12:49 am
Forum: General programming discussion
Topic: help with ms frontpage?
Replies: 7
Views: 1491

Re: help with ms frontpage?

Hi guys I have a Pi 2 B running Jessie 4.4 apache 2 & PHP I spent last night making a web page in MS FrontPage 2003 but I cannot seem to get it to load on the pi. I have since learned I need “server extensions” for the pi O.S. Are they available? Should I give up FrontPage for something else? If so...
by swampdog
Sat Aug 06, 2016 12:44 am
Forum: C/C++
Topic: bash: ./hello_world.c: Permission denied
Replies: 5
Views: 1176

Re: bash: ./hello_world.c: Permission denied

It looks like you're trying to run "./hello_world.c", not "./hello_world". You need to run the executable, not the source. Thank you! That solved my problem! But since I'm new to C, what does the #include <stdio.h> statement do exactly and how does it make my program executable (and if it doesn't, ...
by swampdog
Sat Aug 06, 2016 12:23 am
Forum: C/C++
Topic: compiling error fix request
Replies: 6
Views: 998

Re: compiling error fix request

aha, that was the fix it needed, thank you very much! After I fixed it, I tried the command -> gcc DHTTEST.c -o DHTTEST giving this print-out -> http://imgur.com/a/mWaYj In all my C++ time I never encountered this. Does this mean my code will not be able to compile into an program? Any advice would...
by swampdog
Sat Aug 06, 2016 12:16 am
Forum: Beginners
Topic: Selecting Languages for software development
Replies: 16
Views: 2550

Re: Selecting Languages for software development

Gavinmc42 wrote:Delphi programmers have been using these types of tools for decades.
I have only been using it a few months and still get impressed with what comes standard.
Compiled code is also very small.
Is Lazurus a fork of Borland Delphi, with all the RAD stuff etc?
by swampdog
Sat Aug 06, 2016 12:08 am
Forum: General discussion
Topic: Hard drive for on the road use
Replies: 15
Views: 1912

Re: Hard drive for on the road use

There are tools such as "mencoder". A google should yield other results. I'm afraid my interest in videos only goes so far as in I use "mencoder" to change the audio codecs on my newer movies such that they play on my ancient centos 5 laptop (old VLC), and kodi. The only other tool I use is the cros...
by swampdog
Fri Jul 29, 2016 11:23 pm
Forum: Raspbian
Topic: .xinitrc Confusion
Replies: 2
Views: 794

Re: .xinitrc Confusion

Fwiw, your example works here but I did have to remove leading spaces from every line. Shell script is rather fussy about that. It may have been your outright copy/paste that broke it. ;-) There's more than one way to skin this cat.. $ echo "abcd" | awk '{print substr($1,2,2)}' ..note, when you read...
by swampdog
Fri Jul 29, 2016 10:31 pm
Forum: Troubleshooting
Topic: aplay error GLIBC_2.4
Replies: 1
Views: 819

Re: aplay error GLIBC_2.4

You've probably got your updates a bit out of sync.. $ which aplay /usr/bin/aplay $ ldd /usr/bin/aplay linux-vdso.so.1 (0x7efaf000) /usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f90000) librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x76f66000) libasound.so.2 => /usr/lib/arm-linux-gnueabihf/lib...
by swampdog
Fri Jul 29, 2016 10:05 pm
Forum: Beginners
Topic: Service wont start properly
Replies: 1
Views: 395

Re: Service wont start properly

Are you using Jessie? If so, you need to look at the 'systemctl' command rather than 'service'.

$ sudo systemctl -h
by swampdog
Fri Jul 29, 2016 9:47 pm
Forum: General discussion
Topic: Hard drive for on the road use
Replies: 15
Views: 1912

Re: Hard drive for on the road use

You mention you're on a budget. Modern movies can be huge. Have you considered (I think it's called "transcoding") making them smaller? I notice little difference between BlueRay and a CD sized movie on my laptop.
by swampdog
Fri Jul 29, 2016 1:27 pm
Forum: C/C++
Topic: Gtk-WARNING **
Replies: 2
Views: 1413

Re: Gtk-WARNING **

I don't know anything about what you are doing but.. "Gtk-WARNING **: cannot open display" ..means the GTK application was looking for a GUI (ie: an X server) and could not find it. The first part of the message.. "Unable to init server: Could not connect: Connection refused" ..would tend to indicat...

Go to advanced search