Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (19) </ 1 2 3 4 5 [6] 7 8 9 10 11 ... >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: DSL FAQ Boot camp - Bring a helmet., And a Penguin would be good too...< Next Oldest | Next Newest >
ico2 Offline





Group: Members
Posts: 802
Joined: July 2004
Posted: Oct. 19 2004,16:40 QUOTE

okay, this is less of an faq, more of a howto, but it's useful.

(Q) how do i get monkey web server working?

(A) here goes:

open the dslpanel from the desktop, click the button to start monkey webserver, in your favourite browser enter the url http://localhost this should display a page saying that the page was served by monkey running on dsl.
all good so far, now for your first page:
dsl is not perfect, as far as i know in the most recent versions this still applies: in emelfm navigate to /opt, click the little x button in the bottom right (not the exit button), this will open xterm, there are 2 ways to go about this, the way i do and the proper way, ,my way is sudo chmod -R 777 monkey-0.8.3 (check the  name of the folder in emelfm as it might have changed). the proper way is to use chown, but i am not sure of the syntax. now open scite, type dsl is really, really, really, amazingly, mind blowingly, catastrophically cool, (or something to that effect) and save as /opt/monkey-0.8.2/htdocs/index.html. go to http://localhost again and ur page should be displayed.  now php:
first to install php, go to the mydsl repository and grap php.tar.gz, put it wherever, in that dir type sudo tar -C / -zxvf php.tar.gz it should produce a list of files but no errors.
in scite type <?php phpinfo() ?> and save as /opt/monkey-0.8.2/htdocs/index.php
in dslpanel stop and then start again monkey web server.
in a browser goto http://localhost/index.php

wahay, it works :} (penguin smilie)  (^\_/^) (happy badger smilie)


--------------
ico2
Back to top
Profile PM MSN 
ico2 Offline





Group: Members
Posts: 802
Joined: July 2004
Posted: Oct. 19 2004,17:01 QUOTE

(Q) how do i network my windows 95/98/98se/me/2k/xp to my linux box and share files?

(A) here goes:
get and install samba.dsl from the mydsl repository,
right-click and go system, net setup, net card config and for the ip, broadcast and subnet mask, leave it as the default, for the rest it is a good idea to delete the contents of the boxes.
go sudo smbd and sudo nmbd, now at a dos prompt on the windows machine go ping box (or sometimes \\box depending on version of windows) you should get replies :}
if you have an hdinstall then in emelfm goto bootlocal.sh and open-with sudo scite, and at the bottom of the file type :
ifup -a
sudo smbd
sudo nmbd
now when you reboot, it will still work.
now open /etc/samba/smb.conf the same way.
at the top change the workgroup to whatever your like
now, to share some files for xp and some other versions of windows u may need to uncomment the encrypt passwords option and make sure it is set to on,
scroll down to the subheading [homes] and set browsable = yes.
if you have windows 98 then typing \\box in explorer, but for most others you will first need to create an account with the same name as the user of the windows machine, to do this:
in xterm type sudo useradd -m -G users -c "name of user" "login name"
then sudo passwd "login name"
you will be asked to type a password twice, it must be the same as that of the account on the windows machine.
then type sudo smbpasswd -a "user name"
enter the password again and again.
now, you can put stuff you want to share in the home directory of the new user. or if you like: delete the folder and create a symlink of your own home directory.
you can share the whole file system by editing the [other] heading in smb.conf to share /

whew, finished.


--------------
ico2
Back to top
Profile PM MSN 
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: Oct. 20 2004,02:58 QUOTE

[Q] MyDSL is really cool! How the heck do I create my
    own .dsl or .tar.gz file?

[A] Cbagger01 has given the community a great tool to do
    this.

This script should convert simple *.deb packages into a *.dsl extension.  By "simple" I mean:
Debian Packages that don't have post-extraction installation scripts
or Debian Packages that attempt to upgrade existing DSL base packages

The script will grab all *.deb files in your home directory AND all *.deb files in your apt archives directory and combine them into one *.dsl file with a myDSL menu entry.

Here are the usage instructions:

(1) Start with a clean boot-up from livecd or from frugal install when building packages.
(2) Use the Apps -> Tools -> Enable Apt menu to install apt-get/dpkg.  If you try and install Synaptic the Synaptic-related packages will accidentally get sucked into your new *.dsl package unless you purge your cache.  If you need synaptic, please use it to find the exact name of your package and write it down on paper.  Then do a clean reboot and use the apt command line to install the package that you wrote down.
(3) Open a regular Xterminal and type "sudo su" to become the root user.
(4) Use 'apt-get install packagename' or 'dpkg -i packagename.deb' or both to install the needed packages. Do NOT delete the *.deb files yet.
(5) Open up scite and use the clipboard functions to copy and paste this script into scite.  Save it as "deb2dsl".
(6) Type 'exit' in the Xterminal from step (3) so that you are no longer the root user. Then type 'chmod 755 deb2dsl' to make the script executable.
(7) Type './deb2dsl' to start up the script.
(8) Answer the prompts for package name, myDSL menu name, program executable name.
(9) Your new *.dsl package should be sitting in your home directory. Save it somewhere like a hard drive or a flash drive.
(10) Test out your new package in the following manner:
Try a bootup test with dsl in root directory or with "dsl mydsl=hda1" style boot parameter
If this works OK, then reboot and try a post-boot install using the "myDSL" button on the emelfm menu.

Good Luck.

Code Sample
 
#!/bin/bash
#
#   deb2dsl  -  Converts one or more Debian packages (*.deb files) into
# a DSL extension (*.dsl file) with prompts to create a
# myDSL Menu item for the newly created package.
#
# Revision: 0
# Date: 07/05/04
# Original Author: cbagger01 from the DSL forums
#
# This script will grab all *.deb files located in your
# "Home" directory, IE: the /home/username  directory
# It will also grab all *.deb files located in your apt
# cache, IE: /var/cache/apt/archives
#
# Before running this script, you need to actually install
# all of your Debian packages using 'dpkg -i' or
# 'apt-get install' or a package manager like Synaptic.
# Do NOT delete your leftover *.deb files or purge your
# apt-cache until after you have finished running this
# script.
#
# Disclaimer:
# This script is just a file repackaging program that
# can be used for simple Debian packages.  It will not
# perform post-extraction configuration that is done
# by more sophisticated Debian packages.  It also cannot
# be used to upgrade packages from older versions
# that are part of the DSL livecd base installation.


# This script will not work if it is run under the 'root' effective
# user ID which is 0
if [ "$EUID" -eq "0" ]; then
 echo "Do not use 'root' access to run this script. Aborting..."
 exit 1
fi

# Start things out from the home directory so we won't get confused
cd $HOME

# Clean up any leftover temp files if needed
rm -rf /tmp/deb2dsl_files.tmp
rm -rf /tmp/deb2dsl_prompt.tmp

# Find all Debian packages in your home directory and grab the list of
# files that are contained inside each package.  Make sure that directory
# names are not grabbed.  Only file names will be added to the list.
for i in $( ls $HOME/*.deb ); do
  dpkg -c  $i | awk '{ print $6 }' | grep -v "\/$" >> /tmp/deb2dsl_files.tmp
done

# Find all Debian packages in your apt cache directory and grab the list
# of files that are contained inside each package.  Make sure that
# directory names are not grabbed.  Only file names will be added to the
# list.
for i in $( ls /var/cache/apt/archives/*.deb ); do
  dpkg -c  $i | awk '{ print $6 }' | grep -v "\/$" >> /tmp/deb2dsl_files.tmp
done

package_name=
whiptail --clear --nocancel \
 --inputbox "Enter the full name for your DSL package Example: rox.dsl " \
 20 74 2> /tmp/deb2dsl_prompt.tmp
package_name=`cat /tmp/deb2dsl_prompt.tmp`
rm -rf /tmp/deb2dsl_prompt.tmp

menu_name=
whiptail --clear --nocancel \
 --inputbox "Enter the myDSL menu name for your program Example: Rox Filer " \
 20 74 2> /tmp/deb2dsl_prompt.tmp
menu_name=`cat /tmp/deb2dsl_prompt.tmp`
rm -rf /tmp/deb2dsl_prompt.tmp

program_path=
whiptail --clear --nocancel \
 --inputbox "Enter the executable name for your program Example: /usr/bin/rox " \
 20 74 2> /tmp/deb2dsl_prompt.tmp
program_path=`cat /tmp/deb2dsl_prompt.tmp`
rm -rf /tmp/deb2dsl_prompt.tmp

# Create the mydsl menu directory
mkdir /tmp/mydsl.menu

# Create the new mydsl menu item file
echo "[exec] ("$menu_name") {"$program_path"}" > /tmp/mydsl.menu/$package_name

# Add the mydsl menu file to the list of files that will be
# included into the new new dsl package
echo "./tmp/mydsl.menu/"$package_name >> /tmp/deb2dsl_files.tmp

# Create the new DSL package
tar -zcvf $package_name -T /tmp/deb2dsl_files.tmp -C /
rm /tmp/deb2dsl_files.tmp
rm /tmp/mydsl.menu/$package_name
rm -r /tmp/mydsl.menu
exit 0
Back to top
Profile PM MSN YIM 
SaidinUnleashed Offline





Group: Members
Posts: 1428
Joined: Mar. 2004
Posted: Oct. 20 2004,03:05 QUOTE

O_O

Holy crap.

I'm gonna try that with Enlightenment!!

And if it works I'll submit it as a .dsl.

Enlightenment = the coolest WM evar!

-J.P.


--------------
They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, cause if you play it forwards, it installs Windows.

Unleash the power of the TILDE~~~
Back to top
Profile PM AOL MSN YIM 
somerville32@hotmail.com Offline





Group: Members
Posts: 117
Joined: Oct. 2004
Posted: Oct. 21 2004,00:42 QUOTE

Welcome back to DSL Faq with Me!

Q) How do I use the auto-mounter to mount things?

A) Well bob, that's easy! You should see a docked app under the bandwidth, cpu, and memory / swap monitor. IT looks like something like this:

/floppy

    [picture of floppy driver]
[border]
[screw] [<--][-->]

Use the arrows to select the device you want to mount and then click the screw. If you succesfuly mounted it, the screw will change directions and colour (to green). If it fails, a dialog box will pop up and give you an error message.

When mounting a CD-ROM, wait a few seconds after you pop it in before trying to mount it.

Next time I'll teach you how to use the shell command 'mount' that offers alot more features.

Q) What is the best kind of shampoo?

A) I am partial to Suave from Pears. Healthy Shine -- Shampoo & Conditioner with Pro-Vitamin for Normal Hair. It makes my heart silky, and beautiful ; )

Q) I have the take my kid to work day coming up. Where should I go?

A) Ughh.... Army -- Field Medic :)

Q) Is there any database programs that come with DSL?

A) YES! I just found it the other day and I think it is REALLY REALLY neat. Just right click the desktop to bring up the start menu and naviage to Apps>Office>PIM using Index

Q) Do you ever shut up!!? All you do is FAQ this and FAQ that!

A) Ahh!! Your in my Killfile!

Q) Are you running out of ideas?

A) Yes...

Q) When I use SSH and then telnet somewhere from there then the backspace doesn't work! How do I fix this?

A)
Type  ^]
Type set erase <hit <-- BackSpace>
Hit <return/enter>

Should work now :)

Q) Where can I find some e-books?

A) Try using google. There are some you can get from synaptics (Ie. Hacker Culture)

Ok... I feel like I am going to start repeating myself anysecond so I am going to take a breath. Come on people! Start asking hard questions that have easy answers!


--------------
And then there was linux...
Back to top
Profile PM AOL MSN YIM 
93 replies since Aug. 31 2004,04:41 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (19) </ 1 2 3 4 5 [6] 7 8 9 10 11 ... >/
reply to topic new topic new poll
Quick Reply: DSL FAQ Boot camp - Bring a helmet.

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code