Browsing articles tagged with "archlinux - Admins Goodies"
Jun 13, 2012
tom

Have a server, need to figure out a method of backup

My company has an older Dell 2650 server running ArchLinux x64: http://www.dell.com/downloads/global/products/pedge/en/2650_specs.pdf (2 x 2.4GHz Intel Xeon w/around 3287 RAM according to “free -m”) We use it to host our internal company site and to post some information from our orders to and we’d like the ability to keep it up as much as possible. What we require: – It needs to always be functional from 8am to 4pm for our data entry person to […]

Continue Reading »
Jun 12, 2012
tom

Linux can’t find file that exists

I’m trying to get Google’s Dart language up and running, but it errors when running dart2js. I’m running Arch linux and I installed dart-sdk from AUR. Some relevant terminal output lies below. % dart2js main.dart /usr/local/bin/dart2js: line 7: /usr/local/bin/dart: No such file or directory% cat /usr/local/bin/dart2js #!/bin/sh # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a […]

Continue Reading »
Jun 1, 2012
tom

Updating GoDaddy DNS from linux

I have the following setup: A domain registered with GoDaddy A plug computer running ArchLinuxArm with a dynamic public IP Updated Domain in GoDaddy DNS Manager to point to public IP of plug computer So far so good. However, I need to automatically update the IP (DynDns style) if GoDaddy DNS Manager if my ISP decides to change it. Any idea how to go about it? Asked by adaptive Currently, GoDaddy does not provide dynamic […]

Continue Reading »
May 13, 2012
tom

placing shell script under systemd control

Assuming I have a shell script like this:- #!/bin/sh # cherrypy_server.shPROCESSES=10 THREADS=1 # threads per process BASE_PORT=3035 # the first port used # you need to make the PIDFILE dir and insure it has the right permissions PIDFILE=”/var/run/cherrypy/myproject.pid” WORKDIR=`dirname “$0″` cd “$WORKDIR”cp_start_proc() { N=$1 P=$(( $BASE_PORT + $N – 1 )) ./manage.py runcpserver daemonize=1 port=$P pidfile=”$PIDFILE-$N” threads=$THREADS request_queue_size=0 verbose=0 }cp_start() { for N in `seq 1 $PROCESSES`; do cp_start_proc $N done }cp_stop_proc() { N=$1 #[ […]

Continue Reading »
Apr 24, 2012
tom

What and where is my bootloader on a linode instance?

Using a virtualized instance on linode.com, I don’t see where my bootloader is. In the usual place where I would find grub, i.e. in /boot/grub/menu.lst, I don’t see any files or directories below the /boot path. It’s completely empty. How do I find out where my bootloader is for my server instance on linode.com? Asked by Calvin Cheng The boot loader is the code executed immediately after booting the system; part of it resides in […]

Continue Reading »
Apr 18, 2012
tom

Two different networks with two different nameservers

On (Arch) Linux, I configured a VPN, which I do not want to use for all the traffic, but for the software that binds to the associated tun/tap interface. So far, with the help of iproute2’s policy routing, this is working well. The VPN has a nameserver, which I want the software, that taps into the VPN, to use. Where do I put that nameserver’s address, without ending up having the other software trying to […]

Continue Reading »
Apr 1, 2012
tom

Installing Jenkins on Arch Linux?

I have done some googling and I cannot figure out how to install Jenkins on Arch Linux. Can anyone give me some step by step instructions? I have a webserver running already using Nginx, With php-fpm Asked by Knight Hawk3 Jenkins is a java app. On Ubuntu, the dependencies are: $ apt-cache depends jenkins jenkins Depends: daemon Depends: adduser Depends: psmisc Depends: <java2-runtime> default-jre gcj-4.4-jre gcj-jre openjdk-6-jre Conflicts: <hudson> Replaces: <hudson> So, minimally, you’ll need […]

Continue Reading »
Feb 25, 2012
tom

QEMU-KVM Linux virtualization on the command line

I recently discovered that qemu-kvm has a very promising -curses option that, instead of starting an X window, will show a nice ncurses output from the guest suitable for managing a Linux guest from the command line (or, more satisfyingly, within a screen session, or even over ssh). So I tried this out, and discovered that my Arch Linux guest goes into a “Graphics Mode” rendering this feature useless. From what I have been able […]

Continue Reading »
Jan 22, 2012
tom

Create link with right owner / group

I have a git-daemon accessed through ssh. All repositories are in /srv/git. I have some other projects saved on a exfat disk, so I want to create a symbolic link from that disk to /srv/git. For example, I have /mnt/Medias/Projects/Defi H.git so I simply do: cd /srv/git sudo ln -s /mnt/Medias/Projects/Defi H.git But the file is created as root:root, 777. To restrict access to the repositories, I want to change the posix rights of that […]

Continue Reading »
Jan 10, 2012
tom

nginx + php-fpm serves php statically

I’m trying to setup nginx and php-fpm on Arch Linux. I’ve been reading through the nginx wiki and its linked guides. Static pages work great. PHP pages don’t seem to get passed to php-fpm. When I view source on my test index.php, I see the actual php source. What am I doing wrong? I’ve read through some similar questions here, but they’re a bit out of date, using spawn-fcgi, whereas I’m using php-fpm with a […]

Continue Reading »
Pages:1234»