Feeds:
Posts
Comments

Posts Tagged ‘script’

Every time I need to install the Zankasoftware Wired server there is something I’ve forgotten. This time I wrote down all steps needed to install it. I did this on Ubuntu 10.10 but it will probably work on most other systems as well.

The following little script will install the required libraries and download and install the Wired Unix server and wire (the console only client) with the user ola, the group ola, to the folder /home/ola/Applications/Wired

#!/bin/bash

wiredBaseDir=/home/ola/Applications/Wired
wiredUser=ola
wiredGroup=ola

sudo apt-get update
sudo -y apt-get install libssl-dev libreadline-dev

mkdir -p $wiredBaseDir/Sources

cd $wiredBaseDir/Sources
wget http://zankasoftware.com/dist/wired-latest.tar.gz
tar -xzf wired-latest.tar.gz
cd wired*
./configure --prefix=$wiredBaseDir --with-user=$wiredUser --with-group=$wiredGroup
make clean
make
make install

cd $wiredBaseDir/Sources
wget http://zankasoftware.com/dist/wire-latest.tar.gz
tar -xzf wire-latest.tar.gz
cd wire*
./configure --prefix=$wiredBaseDir
make clean
make
make install

Start the server with: /home/ola/Applications/Wired/wired/wiredctl start

Start wire with: /home/ola/Applications/Wired/bin/wire

It creates one account on the server:  admin with no password. So you will probably want to change that password. With the OSX client you can change the password in the client but wire can’t manage that so you’ll have to edit the users-file by hand.

I have a litle script to create users that might be handy. It creates a user with the “normal user privileges” so if you re-create the admin user you want to keep that privileges row.

This blog post is a bit rough, I'll try to explain in greater details later. The most important information is here. You'll just have to digg around a big to find it.

Read Full Post »

The ZankaSoftware OSX client includes user management features. But no other client does. I’ve written a little script that will help you generate the user credentials string that you can put into the Wired server users file. It creates a user added to the group Users with the following permissions:

  • can get user info
  • can’t broadcast
  • can post news
  • can’t clear news
  • can download
  • can upload
  • can upload anywhere
  • can create folders
  • can’t move files
  • can’t delete files
  • can’t view drop boxes
  • can’t create accounts
  • can’t edit accounts
  • can’t delete accounts
  • can’t elevate privileges
  • can’t kick users
  • can’t ban users
  • can be kicked
  • unlimited download speed
  • unlimited upload speed
  • no download limit
  • no upload limit
  • can set chat topic

Copy the following to an executable script file called geenerateWiredPassword.sh that you execute with ./generateWiredPassword.sh login password. The output of the script can then be copied to the Wired server users file.

#!/bin/bash

#Permission strings
ADMINPERM="1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:0:0:0:0:1"
USERPERM="1:0:1:0:1:1:1:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:1"
GUESTPERM="1:0:1:0:1:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0"
#Default group: "Users"

if [[ -n "$1" && -n "$2" ]] ; then
	POSPAR1="$1"
	POSPAR2="$2"
	passSHA1=$(echo -n $2 | openssl sha1)
	echo -e "\tInsert the following to your wired server users file:"
	echo -e "\t$1:$passSHA1:Users:"$USERPERM
	exit 0
else
	echo -e "\tERROR: Missing login and or password."
	echo -e "\tUSAGE: generateWiredPassword.sh login password"
	exit 1
fi

Read Full Post »