Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Call for scripts
PostPosted: Wed Mar 18, 2009 8:27 am 
Offline
Team Leader
User avatar

Joined: Fri Nov 30, 2007 12:32 am
Posts: 1201
Location: Nr Warrington, Cheshire
eeePC model: 1000H
Aurora version: Beta 4.0
As many of you have noticed, we do not have a full collection of scripts to cover all of the models you are using out there.

Soooo, if you are using a script that you have found out there on the wibbly wobbly web, edited or tweaked an existing one, created one yourself, then post them here to be included in eeeconfigure and share your configuration goodness with the rest of your community. All manufacturers and models considered. Scripts will be included in the Eeebuntu v3.0 release (post Ubuntu release). Scripts can be anything that makes life with mini machine a little easier.

Don't forget to state the manufacturer, model and a simple explanation of what the script does.

Steve.

_________________
Aurora Dev - eeepc 1000H - 2GB RAM - 500GB HD
Aurora Dev (amd64) - Dell Precision M4500 - 16GB RAM - 750GB HD - 120GB SSD - i7Q40
Eeebuntu Team - Developer
Twitter: Preobrazhensky


Top
 Profile  
 
 Post subject: Re: Call for scripts
PostPosted: Fri Mar 20, 2009 2:55 pm 
Offline

Joined: Sun Jan 25, 2009 3:42 pm
Posts: 80
Location: UK
eeePC model: 900A
Aurora version: Standard 3.0
Hi Steve
As a complete ignoramus on scripts, can you or someone tell me of a thread, or a site, or an anything which takes one through the entire process, starting from "What is a script", up to enabling one to "run them"?

At a guess I'd say that running a script is typing some in the terminal and pressing Enter. ... :?:

I've read so much about "Running Scripts", and would some steps to finding out about this mystique.

John

_________________
Asus EeePC 901 Laptop (20Gb) :: Eeebuntu 2.0 Standard (Intrepid)


Top
 Profile E-mail  
 
 Post subject: Re: Call for scripts
PostPosted: Fri Mar 20, 2009 7:29 pm 
Offline
Team Leader
User avatar

Joined: Fri Nov 30, 2007 12:32 am
Posts: 1201
Location: Nr Warrington, Cheshire
eeePC model: 1000H
Aurora version: Beta 4.0
At its basic level a script is something that you run on the command line. It is a method of automating the commands you need to run to achieve something. A script is run in the shell (the command line, dos like, interface) of Linux. There are several different shells, we use bash as default.

A script contains commands that you would run in the terminal but these commands can be wrapped in programmatic logic, like testing that a certain file exists in a certain place before modifying it or copying the existing file before modifying it.

The main script in eeeconfigure is to install eee-control. eee-control is held in a compressed file within inside a database. The script to install eee-control will:

1. Read the database
2. Recreate the archive file
3. Extract the archive file
4. Run the extracted script that will install eee-control.

All of this can be done manually, you can download the archive, extract it, go into the extracted folder and run the script to install it.

With the power of the Linux shell, scripts can be VERY complex.

Does this help?

_________________
Aurora Dev - eeepc 1000H - 2GB RAM - 500GB HD
Aurora Dev (amd64) - Dell Precision M4500 - 16GB RAM - 750GB HD - 120GB SSD - i7Q40
Eeebuntu Team - Developer
Twitter: Preobrazhensky


Top
 Profile  
 
 Post subject: Re: Call for scripts
PostPosted: Tue Mar 24, 2009 10:49 pm 
Offline

Joined: Sun Mar 22, 2009 7:45 pm
Posts: 3
I made a script for converting a 1024x600 display to 1024x768. The script works very well on an eeepc 1000h. It is useful if the display is too small for e.g. large dialogs. It can be easily linked to a hotkey. (toggle) It can be run without root permissions.

Code:
#!/bin/bash
#
# panning script
# v1.0
# by otto meijer

. /etc/default/eeepc-acpi

#check if panning is enabled
if test -f "/tmp/panvga"
then
PANSTATE=1
/usr/bin/eeepan-stop
/usr/bin/xrandr --output VGA --off
sleep 0.5


/usr/bin/notify-send -i display -t 1500 "pan mode disabled"

rm "//tmp/panvga"

else
PANSTATE=0

/usr/bin/notify-send -i display -t 1500 "pan mode enabled"

sleep 2
/usr/bin/xrandr --newmode "1024x768_60" 64.56 1024 1056 1296 1328 768 783 791 807
/usr/bin/xrandr --addmode VGA 1024x768_60
/usr/bin/xrandr --output VGA --mode 1024x768_60

/usr/bin/eeepan-start
touch "//tmp/panvga"
fi



To use the script you need the attached package eeepan. Please extract the archive
Attachment:
eeepan.tar.gz [8.67 KiB]
Downloaded 172 times


Kind regards,

Otto


Top
 Profile E-mail  
 
 Post subject: backup via NFS
PostPosted: Tue Apr 07, 2009 11:14 am 
Offline

Joined: Thu Apr 02, 2009 6:39 am
Posts: 92
Location: castres France
eeePC model: 4g non-surf (701)
Aurora version: NBR 2.0
I have a script to copy my documents on the next computer in a series of PC's on Ubuntu
should work as well on eeebuntu ...
this script must be copied on the Desktop of the computer receiving the backup
Here it is :

#!/bin/bash
SOURCE_DIRS=/media/nfs/
TARGET_DIR=/home/user/documents
# monter le repertoire nfs
mount /media/nfs

rsync -av --del --stats $SOURCE_DIRS "$TARGET_DIR"

umount /media/nfs

echo "Backup Terminé"

of course you have to install an NFS sharing on the 2 computers first

_________________
Asus eeepc 107 4G with eeebuntu 3.0 Standard


Top
 Profile E-mail  
 
 Post subject: Call for scripts
PostPosted: Tue May 26, 2009 3:24 pm 
Offline

Joined: Thu Apr 02, 2009 6:39 am
Posts: 92
Location: castres France
eeePC model: 4g non-surf (701)
Aurora version: NBR 2.0
So this script doesn't work on eeebuntu copying the /home/user/documents file of a computer on ubuntu 8/04

Aspire, the PC on Ubuntu 8.04 is copied OK on a PC with Debian Lenny and also on another PC with ubuntu 8.04
doen't work with eeebuntu

Why ? :D

jean@jean:~$ sudo mount /media/nfs
[mntent]: line 9 in /etc/fstab is bad
mount: wrong fs type, bad option, bad superblock on 192.168.0.1:/home/jean/documents,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so

_________________
Asus eeepc 107 4G with eeebuntu 3.0 Standard


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: