Howto Enable GUEST account at start in Lucid Ubuntu Linux without prompting for user password.or FREEZE an Account


This howto to create a user account in guest mode, that is the $HOME of this user will be in /tmp folder, the contents of this folder will be deleted each time the box is reinitializated.

Would’in be nice to have an account like this in a cibercafe or library, here we go:

First the Guest account can not be access upon startup, in order to access the guest account you must login with in a existing user, so we create our own group and user:
sudo groupadd ciber
sudo adduser --shell /bin/bash --ingroup ciber --disabled-password ciberuser
sudo passwd ciberuser

Make a folder where we put our little script to lock user into /tmp:
sudo mkdir /home/ciberuser/.ciberuser

Create script and change executing permit:

sudo echo "#!/bin/bash\n/usr/share/gdm/guest-session/guest-session-launch&" > /home/ciberuser/.ciberuser/ciberuser.bash
sudo chmod +x /home/ciberuser/.ciberuser/ciberuser.bash

Create directories and the file for autostart of gnome:

sudo mkdir /home/ciberuser/.config
sudo mkdir /home/ciberuser/.config/autostart


sudo echo "[Desktop Entry]\nType=Application\nExec=/home/ciberuser/.ciberuser/ciberuser.bash\nHidden=false\nNoDisplay=false\nX-GNOME-Autostart-enabled=true\nName[es_MX]=ciberuserjail\nName=ciberuserjail\nComment[es_MX]=ciberuser jail\nComment=ciberuser jail"> /home/ciberuser/.config/autostart/ciberuser.bash.desktop

Change ownership of $HOME
sudo chown -R ciberuser:ciber /home/ciberuser

Now go to Menu -> Administration -> Login Screen Unblock and select ciberuser, and activate access as ciberuser at start up, give a time of 10 seconds and exit.
Then goto Menu -> Administration -> User and Groups and select ciberuser
Activate the Account and Select Password, mark the Dont Ask for a Passwortd Box, and you done.

Thats it, i hope this mini tutorial is usefull.

Anuncios


Borednomore-0.02b Release

I release a new version of my tool, this new version now have support for Google.com, Flicr.com and DevianArt.com, some bugs are been fix and features add, this next description was taken from the output.
./Borednomore -credits
Borednomore-0.02b

Creates a slide-show with wallpapers
from google.com, flickr.com, custom URI randomly
or if prefer from your own pictures by copy them.
to the wallpaper directory and run:

./Borednomore -download

Author: Alex R. Rodriguez ( dzupd@yahoo.com )
https://zzer.wordpress.com
Contributors: Cousteau (freenode @ #ubuntu-es)
Notes: This is the backend script.

To add your own wallpaper, add them to the 'wallpapers' directory and run:
./Borednomore -download

Use -help for more options.

Install:
Get the latest from Box.net, then

tar xvf Borednomore
cd Borednomore
chmod +x Borednomore
./Borednomore -help

To deinstall wallpapers:
./Borednomore -unset

Have a nice day! =)

New Borednomore-0.02b Release


It’s been a while since last work in my tool, now i had added support for Google.com Flickr.com and Devianart, this last one is complete new.

I fix some bugs and add some more, good new is the GUI interface is almost ready and am specting a release soon, i decide to use python and tk for that, i hope will continue to be very light as the bash.

If you dont know whats Borednomore, this is a copy/paste of the description:

./Borednomore -credits
Borednomore-0.02b

Creates a slide-show with wallpapers
from google.com, flickr.com, custom URI randomly
or if prefer from your own pictures by copy them.
to the wallpaper directory and run:

./Borednomore -download

Author: Alex R. Rodriguez ( dzupd@yahoo.com )
https://zzer.wordpress.com
Contributors: Cousteau freenode @ #ubuntu-es)
Notes: This is the backend script.

As you can see, in this Beta release am planning to add a custom URI, but am working in that, i been ask in how to build a slideshow with existing pictures you own, well the process goes like this.

copy the pictures into the ‘wallpapers’ directory and then run where ‘Borednomore’ is located:
./Borednomore -download

Here is how you install ‘Borednomore’
Download the latest from BOX.NET link in this page, here is the URI if you prefer:
http://www.box.net/shared/irvyo9t7or

Open you shell and run:
tar xvf Borednomore
cd Borednomore
chmod +x Borednomore
./Borednomore

Here are some examples of use:

Forcing download from Deviarnart.com
./Borednomore -force 3

Download at random location, do it verbose and put a delay in between wallpapers of 10 minutes:
./Borednomore -v -delay 600

Deinstall wallpapers
./Borednomore -unset

Have a nice day =)

Borednomore – Random wallpaper installer


Borednomore Ver. 0.01
WebBlog: https://zzer.wordpress.com
Sat Mar 28, 2009 at 10am

NOTE: This script is changing from time to time, please try to download it from the black “Box” on the right (Under Borednomore-VERSION) if for any reason the link in this post do not work.

At this time You Need: *BSD / Linux, gnome2, wget and lynx installed.

This script change randomly your wallpaper from www.flickr.com, the pictures are supply in random fashion from the site, making this little script fun to view and not too boring.

INSTALL:

Download the file from:
https://zzer.wordpress.com
…and look at the BOX window, click on Borednomore-VERSION

Unzip it:
tar xvf Borednomore
cd Borednomore
chmod +x Borednomore


if you like to installed for everybody on the system, become root and:

cp Borednomore /usr/bin/Borednomore
chmod +x /usr/bin/Borednomore


Simple execute the program:
./Borednomore

Try help:
./Borednomore -help

To uninstall wallpapers try:
./Borednomore -unset

Make sure you have write permits in the directory where Borednomore is located, this script by default will try to download up to 20 new pictures / wallpapers from www.flickr.com and do a 180 seconds per picture slide show in your Desktop, however you can put your own pictures and run Borednomore with the neccesary arguments to instruct the script to don’t download and regenerate your own XML file, you may use -d to change the time in seconds, please use -help to see how can you do that.

If you like, put it on crontab! that way will download new files automaticly, remember by default the wallpaper last 180 seconds, multiply that by 20 (number of wallpapers the script will download at one time), that equals 1 hr, set your crontab to 1hr and you are in business.
To edit your crontab do (if you want to do this …you must edit and modify Borednomore.sh to reflect your needs):
crontab -e

and add:
0 1 * * * /path/to/your/Borednomore/Borednomore.sh

This will run every 60 minutes.

Thank you for using this program, have fun!
Download Borednomore here:
http://www.box.net/shared/r83kc0tqnu

UBUNTU DEBIAN LINUX minihowto howto set / put an animated background wallpaper with a video, mpg, avi, gif, flash, etc using xwinwrap mplayer and gnash


Set a animated background wallpaper in our desktop using Ubuntu – Intrepid and mplayer xwinwrap and gnash is a very simple task (with a little modification you can set it for using them on any *NIX based OS, including any Linux and *BSD).

**Am pretty sure that am not the first person to tell you how to do this, remember use Google for better solutions.

🙂

Become root and:

apt-get install build-essential libx11-dev x11proto-xext-dev libxrender-dev libxext-dev cvs
cd
mkdir cvs
cd cvs
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xapps co xwinwrap
cd xwinwrap
make
cp xwinwrap /usr/bin

Thats it!, here some Examples:
xwinwrap -ni -fs -s -st -sp -b -nf -- mplayer -wid WID -nosound "your.movie" -loop 0

Replace “your-movie” with whatever movie you like to play.
In the above example, supress ‘-nosound’ to heard sound and if you wish to loop it, change ‘ -loop 0 ‘ with the number of times you wish to replay such file.

To set a “screensaver” as desktop background:

nice -n 15 xwinwrap -ni -o 0.20 -fs -s -sp -st -b -nf -- /usr/lib/xscreensaver/glmatrix -root -window-id WID

Replace ‘glmatrix’ with whatever screensaver you like, and please note -root parameter there!

Mplayer:

xwinwrap -ni -o 0.6 -fs -s -st -sp -b -nf -- mplayer -wid WID -quiet movie.mpg mplayer -nosound -loop 0 -fixed-vo -wid 0 YOUR.gif

Note: Replace YOUR.gif with your .gif file (do the same with movie.mpg)

To set a flash file to be desktop background (this is insane partly because Flash uses a LOT of resources!!).
For fun try to install gnash
apt-get install gnash

Here some examples using a external link from a existing random URI (website):

xwinwrap -ni -fs -s -st -sp -b -nf -- gnash --fullscreen http://www.crazyimages.com/ganjascope.swf xwinwrap -ni -fs -s -st -sp -b -nf -- gnash --fullscreen http://www.phong.com/cover/flower.of.phong00.swf xwinwrap -ni -fs -s -st -sp -b -nf -- gnash --fullscreen http://www.crazyimages.com/intro1.swf xwinwrap -ni -fs -s -st -sp -b -nf -- gnash --fullscreen http://www.crazyimages.com/digiflex.swf xwinwrap -ni -fs -s -st -sp -b -nf -- gnash --fullscreen http://www.crazyimages.com/engine.swf


TIP: add & at the end of line to force run as background process.
To set an existing flash file in your box, replace the link (URI) with /path/to/flash.swf
To stop you can kill the process like this:

killall gtk-gnash

Like I said before …there is LOTS of ways to do this, use Google be happy :).

(Is possible to use VLC alone because VLC had the opcion to play as a background build-in already, read VLC manual)

supybot google plugin alternative without simplejson


I use supybot in a server as a normal user, also ran supybot from $HOME, you may know the original Google plugin require you to install simplejson and which the server i use dont have, so I wrote this simple plugin as an alternative to the original, Focusing on my own needs, I include some other little plugins, you are welcome to add/modify the plugin as you want, if you wish your additions/modifications be include in the next release of Pgoogle, please send them to:
dzup@yahoo.com

The Supybot svn Site:
http://supybot.svn.sourceforge.net/viewvc/supybot/

DOWNLOAD Pgoogle here:
http://www.box.net/shared/j6fvm74ttp

INSTALL: untar the file, copy/move folder Pgoogle into your plugins folder, thats all!

@load Pgoogle
@list Pgoogle
@help Pgoogle

NOTE: If you are not using the original Google plugin, may be a good idea rename the service from Pgoogle to Google, you can do by editing ./plugins/Pgoogle/plugin.py then replace strings pgoogle for google.

Thanks and Have fun!

Ubuntu + winehq + winetricks + phpDesigner (English)


phpDesigner comes with intelligent syntax highlighting, help
like you, even as the encoding type when Object Oriented (OOP), or
work with your favorite frameworks in PHP.

phpDesigner comes with full support for real debugging of your PHP
scripts with the support of Xdebug, remote ftp editing and more
hundreds of other cool features!

You can get phpDesigner the following address:
http://www.mpsoftware.dk/downloads.php

If you don’t, install wineHQ.

We need ‘winetricks’ or you may if got everything working on wine, may try Enable libraries (overwrite) ‘MSXML3 (native, builin).  but I
haven’t try that approach, i will explain ‘winetricks’ because that is what Idid.

Open terminal and:

cd  ~/Desktop
wget http://www.kegel.com/wine/winetricks
chmod +x winetricks
winetricks

In ‘winetricks’ window enabled: riched30, MSXML3 msxml6 and install them.

Perform this before installing phpDesigner, once installed, we continue with:
We need to emulate wine  in ‘winxp’ mode, open wine and:
Applications-> Wine-> Settings-> Applications-> Add and choose Applications phpDesigner.exe

At least in my case with my current graphics card and system i also enable emulation of a
virtual desktop to 1024 x 768, dont know if this is necessary (always do that went install wineHQ), but it seems that various programs i have run much better.

Once said: Apply -> exit wine
Done!, Download and run the installer using wineHQ
Enjoy!