Skip to main content

Posts

Showing posts with the label create

Create a .deb package from source files

If your build from source is successful, you can make a Debian (Ubuntu) package (.deb) for future use: Install package tools: sudo apt-get install checkinstall Rebuild package using "checkinstall": cd /path/to/extracted/package ./configure sudo make sudo checkinstall Keep the resulting ".deb" file for future use. It can later be installed using: sudo dpkg -i packagename .deb Note: These are basic instructions that may not always work. Some packages require additional dependencies and optional parameters to be specified in order to build them successfully. Also see these Ubuntu wiki instructions

Create launcher for applications operating through the terminal

Here we have created a launcher for applications, operating through the terminal, this may disadvantage those who wish to launch or create links to these applications. To do this follow these three steps: 1. Create a launcher with the terminal of our choice: For example, my favorite is terminal Xterm and I run Moc: The command would look like this: xterm -e mocp Here are a list of terminal emulators for you to use: gnome-terminal -x mocp sakura -e mocp konsole -e mocp xterm +u8 -e mocp 2. Create a script:. Open a new file with our favorite text editor and put the following: #!/bin/bash xterm -e mocp Save the file and then give it execute permissions: # chmod +x filename 3. Create a hotkey for the program: This depends on the program or environment that are using (can be in gnome, kde, Openbox) or any program(for that as xbindkeys) I hope you can use them now.

How to create a pre-boot image for slitaz ( .lss picture files )

1. You will need to have Gimp 2.6 installed and ready. Now create a new picture with 640 x 480 (480 minus some space for the text cursor). The original Slitaz splash will be 640 x 346 pixels. 2. Now create your image,with your creative works. When done, change the image mode to indexed colors. IMAGE > MODE > INDEXED The pre-boot image can only have 16 different colors, minus 2 colors for the text. So, you have to select "Maximum Number Of Color = 14", reserving 2 colors for the text. 3. Now save the image in PPM format: FILE -> SAVE AS -> SELECT FILE TYPE (BY EXTENSION) -> PPM IMAGE Save it (as RAW ppm). 4. Convert the PPM image to LSS image using Syslinux utility ppmtolss16 (a Perl program that comes with the Syslinux package). # wget http://ftp.nluug.nl/sunsite/system/boot/loaders/syslinux-3.75.tar.gz # tar xzf syslinux-3.75.tar.gz Inside the directory syslinux-3.75/utils you can find the "ppmtolss16" Perl script. Copy the file "ppmtolss16...