DebianDog - Jessie (21 June 2017)

A home for all kinds of Puppy related projects
Message
Author
User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1006 Post by saintless »

fredx181 wrote:But if someone would mark this thread as closed, I wouldn't be sad, because it's not fun and/or useful anymore.
Your wish is my command.

There is an e-mail on my github account profile in case you like me to remove any other of yours scripts.

As I wrote - good luck with the community project.
Mine github page has nothing to do with your work and shouldn't stop it.

Pleas everyone - stop posting here. The thread is closed.

Toni

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#1007 Post by ttuuxxx »

Cleaned up and closed until saintless ask to have it reopened. Respect the developers wishes Guys !!
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#1008 Post by saintless »

According to this post the thread stays open as a community project:
mcewanw wrote:As I say, all dogs are community projects; no-one can ask for that work to be locked or deleted without agreement from the other contributors.

backi
Posts: 1922
Joined: Sun 27 Feb 2011, 22:00
Location: GERMANY

#1009 Post by backi »

Hi Toni !

It`s a pleasure to see you back in Town ! :D :D :D
NOT kidding........

So Let`s praise the Lord ......Halleluja....!


Regards !

AndresC2
Posts: 76
Joined: Sun 09 Jul 2017, 02:12

Debian Jessie JWM Tray Launcher

#1010 Post by AndresC2 »

:D Hi Tony thanks for your response!

http://murga-linux.com/puppy/viewtopic. ... &start=540

This is my first script.

add another tray in JWM with icons from /etc/jwm/debian-menu and Update when reload script.

default Position New Tray Bottom y="-1" you can change Top y="0"

put JWM-Tray in /home/user and make executable chmod +x.

in .jwmrc add:

<Program icon="your-icon.png" label="JWM Tray">/home/user/JWM-Tray ; jwm -restart</Program>

<Include /home/user/.jwmrc-tray </Include>

your need for test.

apt-get install menu jwm xfe htop

the Script:

#!/bin/bash

# AndresC2 2017-10-03, 'JWM-Tray-Update' for Jessie Debian 8.

grep -Ev "Menu|Programming|touch|JWM|Python|Top|Bash|Dash|Sh|uxterm" /etc/jwm/debian-menu > /tmp/debian-menu

#### Change Text ####
sed -i 's/<Program/<TrayButton/g' /tmp/debian-menu
sed -i 's_</Program>_</TrayButton>_g' /tmp/debian-menu

sed -i 's/confirm="false">/confirm="false">exec:/g' /tmp/debian-menu
sed -i 's/label/popup/g' /tmp/debian-menu

#### htop don't show icon in debian-menu ####
# <Program label="htop" confirm="false">x-terminal-emulator -T "htop" -e sh -c "/usr/bin/htop"</Program>
#### Add icon to Htop ####
sed -i 's/popup="htop"/popup="htop" icon="htop.png"/g' /tmp/debian-menu

#### Add sudo to XFE ####
sed -i 's_exec:/usr/bin/xfe_exec:sudo /usr/bin/xfe_g' /tmp/debian-menu

#### Build JWM-Tray ####
echo ' <?xml version="1.0"?>

<JWM>

<!-- Tray attributes: autohide, width, border, layer, layout, ( y -1 for bottom, 0 for top ) -->
<Tray autohide="false" border="0" y="-1" halign="center" height="35" layout="horizontal">' > /home/user/.jwmrc-tray
echo "" >> /home/user/.jwmrc-tray
cat /tmp/debian-menu >> /home/user/.jwmrc-tray
echo "" >> /home/user/.jwmrc-tray
echo '</Tray>

</JWM>' >> /home/user/.jwmrc-tray

sed -i 's/^ *//g' /home/user/.jwmrc-tray

#sleep 1
#clean up
rm -f /tmp/debian-menu

exit 0

# Thanks
Attachments
JWM-Tray.gz
remove .gz
(1.07 KiB) Downloaded 237 times

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#1011 Post by johnywhy »

Hi Toni!

i couldn't change boot to puppy:
saintless wrote:change the default autologin from root to user...
you mean root to "puppy"? :)
For sysvinit boot change root to puppy (or newFor sysvinit b created user name) in /etc/inittab:

Code: Select all

1:2345:respawn:/bin/login -f root </dev/tty1 >/dev/tty1 2>&1
is sysvinit boot the default boot?

i pasted this to the bottom of /etc/inittab. Still booting as root.

Code: Select all

1:2345:respawn:/bin/login -f root </dev/tty1 >/dev/tty1 2>&1
How to fix?

THX
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#1012 Post by fredx181 »

johnywhy wrote:i pasted this to the bottom of /etc/inittab. Still booting as root.
Code:
1:2345:respawn:/bin/login -f root </dev/tty1 >/dev/tty1 2>&1
The existing line should be modified, so delete that line at the bottom again, and change root to puppy on that existing line, so becomes:

Code: Select all

1:2345:respawn:/bin/login -f puppy </dev/tty1 >/dev/tty1 2>&
is sysvinit boot the default boot?
Yes.

Fred

User avatar
johnywhy
Posts: 879
Joined: Sat 20 Aug 2011, 14:52

#1013 Post by johnywhy »

fredx181 wrote:The existing line should be modified, so delete that line at the bottom again, and change root to puppy on that existing line, so becomes:

Code: Select all

1:2345:respawn:/bin/login -f puppy </dev/tty1 >/dev/tty1 2>&
Thx, Fred. Suggestion, maybe someone could put that info the doc. saintless' instruction says
For sysvinit boot change root to puppy in /etc/inittab:

Code: Select all

1:2345:respawn:/bin/login -f root </dev/tty1 >/dev/tty1 2>&1
http://murga-linux.com/puppy/viewtopic. ... 601#850601
THX
[b]Now[/b]: X-Tahr 2.0! StretchDog! DevuanDog!
[b]Tops[/b]: TarhNOP Vlina-R2 Racy
[b]Used[/b]: Puppeee Precise Lucid Wary Tahrpup Quirky Slacko MacPup Saluki Puppy Studio LxPupTarh Lina-Lite Lina
[i]i ♥ Puppy[/i]

Post Reply