Go to advanced search

by socialdefect
Fri Aug 23, 2019 2:27 pm
Forum: Networking and servers
Topic: Cannot get openVPN client config to start @ boot
Replies: 11
Views: 1755

Re: Cannot get openVPN client config to start @ boot

Thanks. Now systemd recognizes the profile but I stille get access errors. When I start: "openvpn --config ./etc/openvpn/nl.conf" on the commandline it all works fine but when I use systemctl, update-rc.d or service I get an error that openvpn cannot read the certicicates and login info. All files a...
by socialdefect
Tue Aug 20, 2019 10:07 pm
Forum: Networking and servers
Topic: Cannot get openVPN client config to start @ boot
Replies: 11
Views: 1755

Cannot get openVPN client config to start @ boot

Hi, Im building a wifi AP that routes all trafic over VPN. It all works just fine, VPN client config works, it gets the login info from a text file and connects without any problems. I can start it using: service openvpn@myvpn start from the cli. But when I try to use update-rc.d to add it to my run...
by socialdefect
Tue Feb 09, 2016 5:27 pm
Forum: Other projects
Topic: Docker image for Raspbian (armhf) on amd64 host
Replies: 2
Views: 3050

Re: Docker image for Raspbian (armhf) on amd64 host

It's quite simple. A docker image is just a chroot filesystem packaged with Tar. To automate making a chroot FS I made a script that might help you out. https://www.raspberrypi.org/forums/viewtopic.php?f=41&t=76178 Creating and importing a docker image from a chroot can be done like this: https://do...
by socialdefect
Sat Oct 17, 2015 2:57 pm
Forum: Other projects
Topic: Docker image for Raspbian (armhf) on amd64 host
Replies: 2
Views: 3050

Docker image for Raspbian (armhf) on amd64 host

To make developing and testing software for the Pi a little easier I've created a Docker image that can be run on a Docker instance on a 64bit host system. This way you can take advantage of your fast workstation while still working on a armhf raspbian system. The image uses qemu-user-static so you ...
by socialdefect
Thu May 07, 2015 12:14 pm
Forum: Other
Topic: Configure Ubuntu Mate over ssh or config file
Replies: 0
Views: 1488

Configure Ubuntu Mate over ssh or config file

Just read about the new Ubuntu Mate image and I was wondering if I can configure it over ssh since it says it does not have a default user set up on the system so I guess there's no ssh server running by default or is there?? Or should I configure the system using chroot or an emulator? If so do I n...
by socialdefect
Wed Nov 19, 2014 6:55 pm
Forum: Other projects
Topic: PiStudio - Pi centered Debian VM
Replies: 1
Views: 1442

Re: PiStudio - Pi centered Debian VM

BB codes were disabled in this topic, I just fixed that so the links are now clickable.

If you find any bugs in the VM please don't e-mail me but post them here. The same goes for wishes.
by socialdefect
Thu Nov 13, 2014 2:48 am
Forum: Other projects
Topic: PiStudio - Pi centered Debian VM
Replies: 1
Views: 1442

PiStudio - Pi centered Debian VM

Since most VM's I found on the interweb are quite outdated I pieced together an up-to-date Debian Wheezy VM which includes everything you'll need to manage your Pi or develop applications. The desktop environment used is Trinity (TDE) which is a fork of KDE3 so it has most features you might expect ...
by socialdefect
Tue Sep 09, 2014 12:12 am
Forum: Advanced users
Topic: X windows session over ssh on Mac/Linux
Replies: 29
Views: 101948

Re: X windows session over ssh on Mac/Linux

If you've started the X11 session using startx --:1 then this is the normal behaviour. use [Ctrl]+[Alt]+[F7] to switch back to your desktop or exit the remote session.
by socialdefect
Tue Sep 09, 2014 12:06 am
Forum: Beginners
Topic: can it be done torrent server
Replies: 6
Views: 1073

Re: can it be done torrent server

I also have my Pi set-up for file and disk sharing with transmission-daemon for managing torrents from any (allowed) browser and autofs so I can mount my usb disks over the network on any pc so you won't have to switch cables anymore. Here is how I've set-up my Pi. the howto does not cover transmiss...
by socialdefect
Mon Sep 08, 2014 11:57 pm
Forum: Beginners
Topic: RPi in Embedded System mode
Replies: 11
Views: 3171

Re: RPi in Embedded System mode

Why Crontab? Do you start your apps every 2 minutes and 7 seconds?? Depending on what your program needs to run (networking, devices, Xserver, etc) there are different ways. A simple low level program can run as explained in the first comment by setting init at boot. If you need a Linux kernel and s...
by socialdefect
Mon Sep 08, 2014 11:37 pm
Forum: Beginners
Topic: Multi OS without destroying the current Raspbian
Replies: 9
Views: 1537

Re: Multi OS without destroying the current Raspbian

Can you? YES you can. Is it practical? NO it's not You can resize your partitions to fit another OS by using Gparted from your Linux desktop or a livecd for the root partition cannot be resized while mounted. Next you can boot Raspbian to install the other image using dd but not in the same way you ...
by socialdefect
Mon Sep 08, 2014 11:25 pm
Forum: Beginners
Topic: Problem with crontab
Replies: 9
Views: 2377

Re: Problem with crontab

To prevent multiple instances from being started you can add something like this to your script: Pid=`ps aux | grep $0 | awk '{ print $2 }'` YourScript(){ -- paste the script here ---- } if [ -x $Pid ] ; then YourScript else while kill -0 "$Pid"; do sleep 0.5 done YourScript fi This is more failproo...
by socialdefect
Mon Sep 08, 2014 11:04 pm
Forum: Beginners
Topic: After reboot always desktop environment
Replies: 6
Views: 1713

Re: After reboot always desktop environment

I use a minimal custom build of raspbian so I have to guess the display manager used (I guess slim) but here's how to disable it manually: If you know which display manager is used on your Pi it's a piece of Pi, if you don't list the contents of /etc/init.d/ like this: ls /etc/init.d Now look for an...
by socialdefect
Mon Sep 08, 2014 10:47 pm
Forum: Beginners
Topic: Can't make a file executable
Replies: 12
Views: 2957

Re: Can't make a file executable

Does a FAT filesystem need permissions to execute files??? Doesn't sound like Microsoft to me...

On my Pi I can create a script on /boot and execute without making any changes. If you fail to execute something; what exactly are you trying to execute and how?
by socialdefect
Mon Sep 08, 2014 4:04 am
Forum: Beginners
Topic: deleting a file from autostart?
Replies: 5
Views: 1103

Re: deleting a file from autostart?

Glad I could be of service..
by socialdefect
Mon Sep 08, 2014 3:56 am
Forum: Advanced users
Topic: SD Card Backup and Custom Image...
Replies: 48
Views: 45745

Re: SD Card Backup and Custom Image...

I notice a lot of misconceptions on the forums on how to clone SD cards and creating backups. First of all there is a big difference between cloning a disk and creating a backup. Cloning a disk is done by using a bitcopy tool like dd or cat. With these tools you can clone a partition or a complete d...
by socialdefect
Mon Sep 08, 2014 2:12 am
Forum: Beginners
Topic: Public FTP server for noob
Replies: 8
Views: 3019

Re: Public FTP server for noob

Ok, everything is working correctly however, I have a few questions. 1. What should really be done to secure the Pi a little more now it's publicly available? Are there any firewalls, brute-force protectors? Should I disable SSH for users except root and Pi I can only imagine what someone who shoul...
by socialdefect
Mon Sep 08, 2014 12:46 am
Forum: Beginners
Topic: deleting a file from autostart?
Replies: 5
Views: 1103

Re: deleting a file from autostart?

Don't know what the rootwait option in the end is for so I would go with this: (your options might be different) dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 init=/bin/sh rootwait (goes all in one line, no enters)
by socialdefect
Mon Sep 08, 2014 12:35 am
Forum: Beginners
Topic: Setting up Raspberry Pi B+ through LAN
Replies: 6
Views: 4114

Re: Setting up Raspberry Pi B+ through LAN

If you connect your Pi using a LAN cable it will automaticaly get a DHCP address if you have an active dhcp server on your network which you probably have. On Osx you can use the arp command: arp -a The Pi's mac address starts with: b8:27:eb You can also run arp twice, first without the Pi connected...
by socialdefect
Mon Sep 08, 2014 12:16 am
Forum: Beginners
Topic: deleting a file from autostart?
Replies: 5
Views: 1103

Re: deleting a file from autostart?

On your Mac mount the boot (FAT32) partition, open cmdline.txt and add the following parameter init=/bin/sh Save the file, unmount the disk and boot your Pi. The Pi should boot into an sh root shell instead of running init. From this shell you can edit/move/remove the script like this: To remove the...
by socialdefect
Mon Sep 08, 2014 12:01 am
Forum: Beginners
Topic: Headless NOOBS network install?
Replies: 13
Views: 12848

Re: Headless NOOBS network install?

raspbian-ua-netinst is the tool you need. If the install doesn't fail it's great indeed but it also has no ssh server enabled by default and you'll need a cardreader to set-up the SD card and to debug if the install fails. Also it's not really suited for beginners.. Best way is to just take your fr...
by socialdefect
Sun Sep 07, 2014 11:09 pm
Forum: Beginners
Topic: How do I install pygame
Replies: 3
Views: 773

Re: How do I install pygame

In Linux a program does not reside in it's own folder like Program files in windows or Applications on a Mac but the files are spread accross the system. Once installed you can use the PyGame library to write your games. In the PyGame documentation you can read all about how to get started: http://w...
by socialdefect
Sun Sep 07, 2014 10:56 pm
Forum: Beginners
Topic: Using Flash Drive To Expand RAM
Replies: 6
Views: 2150

Re: Using Flash Drive To Expand RAM

If you want to use your Pi as a server you might want to tweak your settings and OS a little. The default Raspbian image is build to display all the Pi has to offer and that's a load more than you want on your server. There are several mini Raspbian images like Minibian which has only a minimal sele...
by socialdefect
Sun Sep 07, 2014 10:24 pm
Forum: Beginners
Topic: Having trouble transfering files to my Raspberry Pi via SFTP
Replies: 5
Views: 5918

Re: Having trouble transfering files to my Raspberry Pi via

If you can connect over ssh you won't need a keyboard but you do need to know the exact program-name (case sensitive) of the emulator you are trying to exit from. Let's say the emu is zsnes then you would do the following: zsnes --help If the help text has any info on resetting this would be the bes...
by socialdefect
Sun Sep 07, 2014 10:05 pm
Forum: Beginners
Topic: Having trouble transfering files to my Raspberry Pi via SFTP
Replies: 5
Views: 5918

Re: Having trouble transfering files to my Raspberry Pi via

On the pi (or connected trough ssh from your desktop) execute: htop if that's not installed you can install it by executing: sudo apt-get install -y htop Or use top instead. (htop is human readible version of top) In top/htop you can see running processes and hopefuly you'll find the process you wan...

Go to advanced search