Difference between revisions of "Customizing environment using 4.0.2CD"
(added pdi, mstt fonts, firefox icon) |
m (Reverted edits by Bestbluray (Talk); changed back to last version by Shibo) |
||
(44 intermediate revisions by 11 users not shown) | |||
Line 10: | Line 10: | ||
* command line | * command line | ||
knoppix-mkimage | knoppix-mkimage | ||
− | I prefer an image size of 500 MB, which is just large enough for a significant amount of software updates yet small enough to fit on a USB thumb drive. Once you create the image, reboot and specify the image at the boot prompt. Assuming the knoppix.img is at /mnt/sda1/, then: | + | I prefer an image size of 500 MB, which is just large enough for a significant amount of software updates yet small enough to fit on a USB thumb drive. I don't choose encryption, but that's a personal preference. Once you create the image, reboot and specify the image at the boot prompt. Assuming the knoppix.img is at /mnt/sda1/, then: |
boot: knoppix home=/mnt/sda1/knoppix.img | boot: knoppix home=/mnt/sda1/knoppix.img | ||
+ | Note: Specifying the home folder may not be necessary. Apparently, Knoppix scans for the knoppix.img even if one does not specify home=. | ||
− | = | + | = Installing Microsoft's True Type fonts = |
Installing Microsoft's True Type fonts using apt-get at the command line | Installing Microsoft's True Type fonts using apt-get at the command line | ||
− | apt-get install msttcorefonts | + | sudo apt-get update && sudo apt-get install msttcorefonts |
+ | Change the fonts in KDE: | ||
+ | * open "K > Control Center" | ||
+ | * open "Appearance & Themes > Fonts" | ||
+ | * click "Adjust All Fonts" | ||
+ | * check "Font" | ||
+ | * highlight "Bitstream Vera Sans" | ||
+ | * click "OK" | ||
+ | * click "Apply" | ||
+ | * select "File > Quit" | ||
= Customizing the tool bar = | = Customizing the tool bar = | ||
Line 26: | Line 36: | ||
* double-click on the FireFox icon | * double-click on the FireFox icon | ||
* click OK | * click OK | ||
+ | = Customizing the K menu = | ||
+ | == Run KSysV as root == | ||
+ | * click on "K > System" | ||
+ | * right-click on "KSysV (SysV-Init Editor)" | ||
+ | * click on "Edit Item" | ||
+ | * in the Command text field, add sudo to the front of the command | ||
+ | sudo ksysv -caption "%c" %i %m | ||
+ | * uncheck "Run as different user" | ||
+ | * click on "File > Save" | ||
+ | * click on "File > Quit" | ||
+ | |||
+ | = Changing the background image = | ||
+ | Change the background image to Debian Blue: | ||
+ | * open "K > Control Center" | ||
+ | * open "Appearance & Themes > Background" | ||
+ | * click the radio button "Picture" | ||
+ | * choose "Debian Blue" from the drop-down menu | ||
+ | * click "Apply" | ||
+ | * select "File > Quit" | ||
+ | |||
+ | = Changing the splash screen = | ||
+ | Change the splash screen to "Redmond": | ||
+ | * open "K > Control Center" | ||
+ | * open "Appearance & Themes > Splash Screen" | ||
+ | * click on Redmond | ||
+ | * click "Apply" | ||
+ | * select "File > Quit" | ||
+ | |||
+ | = Setting up and starting services = | ||
+ | == Setting up webmin == | ||
+ | # test | ||
+ | lynx -dump http://localhost:10000/ | ||
+ | # install/setup | ||
+ | sudo -i | ||
+ | passwd | ||
+ | apt-get update | ||
+ | apt-get install webmin | ||
+ | rm /etc/rc?.d/*webmin | ||
+ | update-rc.d webmin start 30 2 3 4 5 . stop 70 0 1 6 . | ||
+ | /etc/init.d/webmin stop | ||
+ | /etc/init.d/webmin start | ||
+ | # test | ||
+ | lynx -dump http://localhost:10000/ | ||
+ | |||
+ | == Setting up the apache webserver == | ||
+ | # test | ||
+ | lynx -dump http://localhost/ | ||
+ | # install/setup | ||
+ | sudo -i | ||
+ | update-rc.d apache start 40 2 3 4 5 . stop 60 0 1 6 . | ||
+ | /etc/init.d/apache stop | ||
+ | /etc/init.d/apache start | ||
+ | # test | ||
+ | lynx -dump http://localhost/ | ||
+ | |||
+ | setting up webmin-apache | ||
+ | apt-get update | ||
+ | apt-get install webmin-apache | ||
+ | # | ||
+ | # test connection to apache module and configure (I choose the defaults) | ||
+ | lynx https://localhost:10000/apache/index.cgi | ||
+ | |||
+ | == Setting up the SSH server == | ||
+ | # test | ||
+ | ssh knoppix@localhost | ||
+ | # install/setup | ||
+ | sudo -i | ||
+ | passwd knoppix | ||
+ | update-rc.d ssh start 35 2 3 4 5 . stop 65 0 1 6 . | ||
+ | perl -i -plne 's/(^PermitRootLogin) yes/$1 no/' /etc/ssh/sshd_config | ||
+ | /etc/init.d/ssh stop | ||
+ | /etc/init.d/ssh start | ||
+ | # test | ||
+ | ssh knoppix@localhost | ||
+ | |||
+ | setting up webmin-ssh | ||
+ | apt-get update | ||
+ | apt-get install webmin-sshd | ||
+ | # | ||
+ | # test connection to sshd module | ||
+ | https://localhost:10000/sshd/index.cgi | ||
+ | |||
+ | == Setting up the MySQL server == | ||
+ | # test | ||
+ | mysql --no-defaults -h localhost -u root mysql -e 'status' | ||
+ | # install/setup | ||
+ | sudo -i | ||
+ | update-rc.d mysql start 35 2 3 4 5 . stop 65 0 1 6 . | ||
+ | perl -i -plne 's/(^old_pass)/# $1/' /etc/mysql/my.cnf | ||
+ | /etc/init.d/mysql stop | ||
+ | /etc/init.d/mysql start | ||
+ | # test | ||
+ | mysql --no-defaults -h localhost -u root mysql -e 'status' | ||
+ | |||
+ | configuring MySQL root account | ||
+ | # set a root password | ||
+ | mysqladmin --no-defaults -h localhost -u root password 123456 | ||
+ | # unset the root password | ||
+ | mysqladmin --no-defaults -h localhost -u root -p123456 password '' | ||
+ | |||
+ | setting up webmin-mysql | ||
+ | apt-get update | ||
+ | apt-get install webmin-mysql | ||
+ | # | ||
+ | # test connection to MySQL module | ||
+ | lynx https://localhost:10000/mysql/index.cgi | ||
+ | |||
+ | == Setting up Mediawiki == | ||
+ | # test | ||
+ | lynx -dump http://localhost/mediawiki/ | ||
+ | |||
+ | # install | ||
+ | apt-get update | ||
+ | apt-get install mediawiki | ||
+ | |||
+ | # enable index.php | ||
+ | perl -i -plne '$rep="\n\tDirectoryIndex index.html index.htm " . | ||
+ | "index.shtml index.cgi index.php" ; | ||
+ | s#(^.*/mediawiki/>)#$1$rep#' /etc/mediawiki/apache.conf | ||
+ | /etc/init.d/apache reload | ||
+ | |||
+ | # configure -- Fill in form | ||
+ | lynx http://localhost/mediawiki/ | ||
+ | |||
+ | # If configuring worked, move the config files around | ||
+ | ( set -x | ||
+ | mv /var/lib/mediawiki/config/LocalSettings.php /etc/mediawiki/LocalSettings.php && | ||
+ | chmod 600 /etc/mediawiki/LocalSettings.php && | ||
+ | rm -rf /var/lib/mediawiki/config/ | ||
+ | ) | ||
+ | /etc/init.d/apache reload | ||
+ | |||
+ | ==Extral links== | ||
+ | *The following guide will show you how to [http://www.pavtube.com/guide/edit-mod-video.html convert MOD video] to lossless audio with Pavtube MOD Converter. | ||
+ | *[http://www.pavtube.com/hd-video-converter-mac/ Mac HD converter] convert among all HD video and audio formats on Mac. | ||
+ | *[http://www.pavtube.com/mts-converter/ MTS Converter] is a professional but easy-to-use MTS Video Converter. | ||
+ | *With [http://www.pavtube.com/tod-converter/ TOD Converter] it is so easy to quickly and perfectly convert tod file. | ||
+ | *[http://www.pavtube.com/flv-converter/ FLV to Video Converter] is an easy-to-use tool for converting FLV files to popular video and audio formats. | ||
+ | *[http://www.pavtube.com/blu-ray-ripper/ Blu-ray converter] allows you convert blu-ray and general dvd to various video and audio formats like avi, mp4, wmv, mpeg, mkv, mov, xvid, mp3 without any loss. |
Latest revision as of 15:38, 6 August 2010
These are the steps I use to customize my Knoppix 4.0.2 environment.
Contents
Persistent Disk Image (PDI)
A persistent disk image allows me to customize Knoppix without having to remaster the CD. With a generic Knoppix CD and a PDI, I can take my environment to just about any computer.
Create a persistent disk image either from the GUI or the command line
- From within KDE
K > KNOPPIX > Configure > Create persistent KNOPPIX image
- command line
knoppix-mkimage
I prefer an image size of 500 MB, which is just large enough for a significant amount of software updates yet small enough to fit on a USB thumb drive. I don't choose encryption, but that's a personal preference. Once you create the image, reboot and specify the image at the boot prompt. Assuming the knoppix.img is at /mnt/sda1/, then:
boot: knoppix home=/mnt/sda1/knoppix.img
Note: Specifying the home folder may not be necessary. Apparently, Knoppix scans for the knoppix.img even if one does not specify home=.
Installing Microsoft's True Type fonts
Installing Microsoft's True Type fonts using apt-get at the command line
sudo apt-get update && sudo apt-get install msttcorefonts
Change the fonts in KDE:
- open "K > Control Center"
- open "Appearance & Themes > Fonts"
- click "Adjust All Fonts"
- check "Font"
- highlight "Bitstream Vera Sans"
- click "OK"
- click "Apply"
- select "File > Quit"
Customizing the tool bar
Mozilla Firefox
Firefox uses the globe icon instead of the icon with the firefox. I like to change the icon to the Firefox icon.
- right click the Firefox icon in the toolbar
- click on Properties
- click on the icon
- in the search box, type "fire"
- double-click on the FireFox icon
- click OK
Run KSysV as root
- click on "K > System"
- right-click on "KSysV (SysV-Init Editor)"
- click on "Edit Item"
- in the Command text field, add sudo to the front of the command
sudo ksysv -caption "%c" %i %m
- uncheck "Run as different user"
- click on "File > Save"
- click on "File > Quit"
Changing the background image
Change the background image to Debian Blue:
- open "K > Control Center"
- open "Appearance & Themes > Background"
- click the radio button "Picture"
- choose "Debian Blue" from the drop-down menu
- click "Apply"
- select "File > Quit"
Changing the splash screen
Change the splash screen to "Redmond":
- open "K > Control Center"
- open "Appearance & Themes > Splash Screen"
- click on Redmond
- click "Apply"
- select "File > Quit"
Setting up and starting services
Setting up webmin
# test lynx -dump http://localhost:10000/ # install/setup sudo -i passwd apt-get update apt-get install webmin rm /etc/rc?.d/*webmin update-rc.d webmin start 30 2 3 4 5 . stop 70 0 1 6 . /etc/init.d/webmin stop /etc/init.d/webmin start # test lynx -dump http://localhost:10000/
Setting up the apache webserver
# test lynx -dump http://localhost/ # install/setup sudo -i update-rc.d apache start 40 2 3 4 5 . stop 60 0 1 6 . /etc/init.d/apache stop /etc/init.d/apache start # test lynx -dump http://localhost/
setting up webmin-apache
apt-get update apt-get install webmin-apache # # test connection to apache module and configure (I choose the defaults) lynx https://localhost:10000/apache/index.cgi
Setting up the SSH server
# test ssh knoppix@localhost # install/setup sudo -i passwd knoppix update-rc.d ssh start 35 2 3 4 5 . stop 65 0 1 6 . perl -i -plne 's/(^PermitRootLogin) yes/$1 no/' /etc/ssh/sshd_config /etc/init.d/ssh stop /etc/init.d/ssh start # test ssh knoppix@localhost
setting up webmin-ssh
apt-get update apt-get install webmin-sshd # # test connection to sshd module https://localhost:10000/sshd/index.cgi
Setting up the MySQL server
# test mysql --no-defaults -h localhost -u root mysql -e 'status' # install/setup sudo -i update-rc.d mysql start 35 2 3 4 5 . stop 65 0 1 6 . perl -i -plne 's/(^old_pass)/# $1/' /etc/mysql/my.cnf /etc/init.d/mysql stop /etc/init.d/mysql start # test mysql --no-defaults -h localhost -u root mysql -e 'status'
configuring MySQL root account
# set a root password mysqladmin --no-defaults -h localhost -u root password 123456 # unset the root password mysqladmin --no-defaults -h localhost -u root -p123456 password
setting up webmin-mysql
apt-get update apt-get install webmin-mysql # # test connection to MySQL module lynx https://localhost:10000/mysql/index.cgi
Setting up Mediawiki
# test lynx -dump http://localhost/mediawiki/
# install apt-get update apt-get install mediawiki
# enable index.php perl -i -plne '$rep="\n\tDirectoryIndex index.html index.htm " . "index.shtml index.cgi index.php" ; s#(^.*/mediawiki/>)#$1$rep#' /etc/mediawiki/apache.conf /etc/init.d/apache reload
# configure -- Fill in form lynx http://localhost/mediawiki/
# If configuring worked, move the config files around ( set -x mv /var/lib/mediawiki/config/LocalSettings.php /etc/mediawiki/LocalSettings.php && chmod 600 /etc/mediawiki/LocalSettings.php && rm -rf /var/lib/mediawiki/config/ ) /etc/init.d/apache reload
Extral links
- The following guide will show you how to convert MOD video to lossless audio with Pavtube MOD Converter.
- Mac HD converter convert among all HD video and audio formats on Mac.
- MTS Converter is a professional but easy-to-use MTS Video Converter.
- With TOD Converter it is so easy to quickly and perfectly convert tod file.
- FLV to Video Converter is an easy-to-use tool for converting FLV files to popular video and audio formats.
- Blu-ray converter allows you convert blu-ray and general dvd to various video and audio formats like avi, mp4, wmv, mpeg, mkv, mov, xvid, mp3 without any loss.