|
Creating an Encrypted DVD with Debian Linux
2008-05-21 13:49:00 As a network security professional, I occasionally need to save data relating to an investigation to a DVD. The data is often sensitive and requires encryption.I found great tutorials at HOWTO Burn Encrypted DVDs and HOWTO Compile an aespipe ProgramBelow is my brief step-by-step guide. (Detailed information can be found at the above links.)Note: Requirements aespipe (I use Debian Linux, which would loop-aes-modules)Step 1:Create a directory with the files you want to save on CD (or DVD).In this example, we'll create a directory named WALDO.Step 2 (you will be prompted to enter a passphrase):$ yes "" | dd of=image.iso bs=512 count=16$ head -c 2925 /dev/random | uuencode -m - | head -n 66 | tail -n 65 | gpg --symmetric -a | dd of=image.iso conv=notruncStep 3:$ mkisofs -quiet -r WALDO | aespipe -K WALDO.iso -O 16 >> WALDO.isoStep 4: Test it by mounting on loopback$ mount -t iso9660 WALDO.iso /cdrom -o loop,encryption=AES128,gpgkey=W-ALDO.iso,offset=8192Step 5: Burn the iso (k3b work...
By: My SysAd Blog
How to: Find the fastest apt mirror server
2008-05-14 22:51:00 If you want to use the fastest mirror to download the .deb files you may need to upgrade or update your Debian machines, you have to remember that not always your nearest server is the fastest one, and that could be because not only the distance the server is from you but also the network congestion is a factor when talking about network speed. For instance, your ISP may have a direct satellite connection to another country, and thus your nearest server should be in that country, to avoid you the hassle to get that info, Debian give you some tools, I will touch two of them here. netselect-apt This tool will download the full list of mirrors and will quickly explore throw them for the fastest mirror for you, the use of it really easy and reliable. Installation You just need to run: sudo aptitude install netselect-apt Running it Once installed, run sudo netselect-apt -n -s lenny Be sure to change lenny for your appropriate version, you can use the name of the version, (edge, lenny, si...
How to: Install a Debian/Ubuntu package (.deb) cache server - apt-cacher
2008-05-14 16:36:00 If you have more than one PC using Debian or Ubuntu, you know that upgrading them makes most of the time download the same files more than once, and that is not good for your bandwidth. I usually forward my requests to my Squid (in my office) and to my Personal proxy Polipo at home, it works, but apt-cacher may be a better approach as the way it decides if a file stays or is erased from the cache is more appropriate for .deb package than in Squid or Polipo, as they are optimized for web surfing. Well, after that introduction, lets go to the interesting part of the post. Installing To install it just run: sudo aptitude install apt-cacher Configuring The main configuration file is located at: /etc/apt-cacher/apt-cacher.conf- And you should check these parameters, which at least for me are the most important ones. # cache_dir is used to set the location of the local cache. This can # become quite large, so make sure it is somewhere with plenty of space. cache_dir=/var/cache/apt-cacher-...
Cut or trim mp3 files with Linux, mpgsplit and mp3cut
2008-05-12 22:51:00 Some months ago I have posted an article showing how to use audacity to edit mp3 files with Linux, this time it is almost the same but we will use our Linux Operating system command line to do that. We are going to see two different options: 1. mpgtx To install this program under Debian sudo aptitude install mpgtx Now if you want to trim a mp3 file into 10 pieces just enter this command mpgtx -10 input.mp3 -o output You will get output01.mp3, output02.mp3 .... output10.mp3 files, and now you can easily transport them, use them as ringtones, or anything you need. Now if you want to cut an specific part of the mp3 file you may use ranges: mptsplit input.mp3 [00:00:20-00:00:58] -o output.mp3 Now you will have from the 20th second to the 58th second of the song, in output.mp3 file, which is great for creating ringtones for your cellular. Read the man page for more options, as you can also join files and some other useful things. 2. mp3cut First install the program, mp3cut is one tool, o...
The Debian menu system - How to create menus for TWM, OpenBox, FluxBox, etc
2008-05-10 17:24:00 The Debian menu systems really saves you a lot of time, when you are trying to find a new installed software. Yes you can run the applications from the command line, as I was doing these days on my Laptop with Fluxbox, but if you are using Debian or Ubuntu you can automatically create the menus using the Debian Menu System. To install it (if you are using Debian might be installed) sudo aptitude install menu then run sudo update-menus and you will have your menus recreated, (or created) with all the available programs in it, this will work for almost all X windows managers, it is usually disabled in Gnome but you can go to: System->Preferences->Main Menu and enable the Debian menu under Applications. If you have just installed it, you may need to log out and log in again, to be able to see it. Now every time a new program is installed, it will automatically added to the menu, unless you run update-menus as a normal user, and not as root.
Runlevels - Debian (Ubuntu) / Fedora (CentOS)
2008-04-21 21:49:00 There are six different runlevels in Linux, there could be more than six, but for compatibility reasons six are the default. I have used RedHat and Debian based Linux, more specifically Fedora and Ubuntu and Debian itself, I have noticed that there is a difference in the runlevels on this different Linux distributions. Well but first let's define the runlevels: Runlevels in Linux are seven and they are: - 0 = halt - 1 = single user - 2 = CLI, multi-user, no net - 3 = CLI, multi-user, networked - 4 = open - 5 = GUI, multi-user, networked - 6 = reboot You can define more of them if you want, but whit this should be enough, a runlevel will define which software to start when you enter in that specific runlevel. For example if you go to runlevel 0, the computer will halt, and probable turn off (If it is a modern computer). When you enter a specific runlevel, Linux will run some scripts that are located at: /etc/rc0.d Run level 0 /etc/rc1.d Run level 1 /etc/rc2.d Run level 2 /etc/rc3...
Security Support for Debian 3.1 to be terminated
2008-03-04 13:22:00 After one year of the release of Debian Etch the Security support for Sarge is going to be terminated as previously announced, as informed three days ago in the Debian page. Here is part of the announcement. One year after the release of Debian GNU/Linux 4.0 alias 'etch' and nearly three years after the release of Debian GNU/Linux 3.1 alias 'sarge' the security support for the old distribution (3.1 alias 'sarge') is coming to an end next month. The Debian project is proud to be able to support its old distribution for such a long time and even for one year after a new version has been released. If you want to read the full announce read here
Security Support for Debian 3.1 to be terminated
2008-03-04 13:22:00 After one year of the release of Debian Etch the Security support for Sarge is going to be terminated as previously announced, as informed three days ago in the Debian page. Here is part of the announcement. One year after the release of Debian GNU/Linux 4.0 alias 'etch' and nearly three years after the release of Debian GNU/Linux 3.1 alias 'sarge' the security support for the old distribution (3.1 alias 'sarge') is coming to an end next month. The Debian project is proud to be able to support its old distribution for such a long time and even for one year after a new version has been released. If you want to read the full announce read here
Enabling sound in my Light weight Debian - Fluxbox Laptop
2008-02-17 21:09:00 Continuing with my Lightweight Debian configuration, today I wanted to add sound and music to it, I have 4 Gigs of MP3, and I needed to hear them. Maybe the best option is mpg123 which is command line mp3 player, but today I wanted to try audacious, which looks a lot like XMMS although it is not a fork of it, you can see some good screenshots of it. To install the sound in my Debian first I needed to install alsa-utils sudo aptitude install alsa-utils And then install audacious sudo aptitude install audacious after that everything was running perfect and I was listening to my favorite music. Do not forget to check also some of its features
Enabling sound in my Light weight Debian - Fluxbox Laptop
2008-02-17 21:09:00 Continuing with my Lightweight Debian configuration, today I wanted to add sound and music to it, I have 4 Gigs of MP3, and I needed to hear them. Maybe the best option is mpg123 which is command line mp3 player, but today I wanted to try audacious, which looks a lot like XMMS although it is not a fork of it, you can see some good screenshots of it. To install the sound in my Debian first I needed to install alsa-utils sudo aptitude install alsa-utils And then install audacious sudo aptitude install audacious after that everything was running perfect and I was listening to my favorite music. Do not forget to check also some of its features
checkinstall - trace your .tar.gz installations, and make/create your .deb
2008-02-08 04:33:00 I always prefer to use the package manager instead of compiling from sources, mmh maybe compiling is more creates more efficient programs, than using binaries, but in that case, we better use Gentoo or Sabayon, but if we are using Debian/Ubuntu, or Centos/Fedora, I still think is better to use binaries. Well this said, I have to add that sometimes there is no binary available for our favorite distro, in that case we are forced to compile from sources, but wait, we can still use a binary, we can make our own .deb or .rpm package and install it using dpkg or rpm, checkinstall is the program that will do the magic here. First install it, as it does not come by default installed. Debian / Ubuntu sudo aptitude install checkinstall Fedora / CentOS sudo yum install checkinstall Now as an example I will compile and install aterm which is a terminal emulator, I will write about it later. Ok, get the code wget ftp://ftp.afterstep.org/apps/at-erm/aterm-1.0.1.tar.gz Untar it tar xvzf aterm-1.0...
Install skype on Debian or Ubuntu
2008-02-05 12:30:00 If you want to keep always the latest available copy of Skype on your computer, not having to check the skype home page every time, you may want to use the skype repository for Debian, which also works for Ubuntu. First add this line to your /etc/apt/sources.list deb http://download.skype.com/linux-/repos/debian/ stable non-free which can be done with this command: sudo echo "deb http://download.skype.com/linux-/repos/debian/ stable non-free" >> /etc/apt/sources.list once that is done, install the software with: sudo aptitude update sudo aptitude install skype You will have to accept untrusted packages, as I could not find the key for skype repository. then you are done.
Progeny Debian Linux - No Support (CD-ROM)
2008-02-03 04:02:00 Progeny Debian UNIX - No Support (CD-ROM)By Progeny Linux Buy new: $14.992 utilised and new from $9.95 First tagged “linux” by Lisa Walsh Customer tags: debian, linux Technorati Tags: debian, linux
Debian GNU/Linux 3.1 (Old-stable) updated
2007-12-29 02:14:00 This is really good about Debian, its 3.1 version (old Stable) is still getting updates, and maintained, which are great news for all those servers which are still using the old Sarge. You can get the new updated CDs from here Those who frequently install updates from security.debian.org won't have to update many packages and most updates from security.debian.org are included in this update. So if you usually run apt-get upgrade you should not worry about anything. Read the announcement here
Debian 4.0r2 Released
2007-12-28 04:04:00 Debian has released another security upgrade to the Etch which is now release 2 so Debian Etch is now Debian 4.0r2 These updates are basically security updates, and does not constitute another Debian version, all you need to do is: apt-get update apt-get dist-upgrade and you will be running all security patches, but if you install Debian constantly it is better if you download your Installation CDs again, to avoid big time upgrading over the Internet. The main security updates are: Advisory ID Package(s) Correction(s) DSA-1288 pptpd Denial of service DSA-1317 tinymux Buffer overflow DSA-1319 maradns Denial of service DSA-1320 clamav Several vulnerabilities DSA-1321 evolution-data-server Arbitrary code execution DSA-1322 wireshark Denial of service DSA-1323 krb5 Several vulnerabilities DSA-1324 hiki Missing input sanitising DSA-1325 evolution Arbitrary code execution DSA-1326 fireflier Unsafe temporary files DSA-1327 gsambad Unsafe temporary files DSA-1328 u...
aptoncd - Take your own repository with you on CD
2007-12-28 03:40:00 With AptOnCd you can backup and restore your .deb packages and store them in a CD or DVD or just in an ISO image in your USB Drive. aptoncd, will help you still be able to use apt, aptitude or synaptic even, with no, or poor Internet conection. All you need is to install one system with all the desired software, using apt-get to install all the software, once installed all the .deb files will be on your /var/cache/apt/archives/ directory, so you can backup all them up, in a CD or DVD and take it with you for your next installation of your Debian or Ubuntu Linux Operating System. Install aptoncd sudo apt-get install aptoncd once installed you will find it in your menu (If you are using Gnome) System->Administration->Aptoncd- Back up Click on create CD/DVD It will explore the /var/cache/apt/archives/ for your .deb files and present you with the possible files to add on your CD/DVD Select where to save the image, and the name of it. Once finished, you can burn the image, or use it...
Creating ring tones with Debian Linux
2007-11-28 22:30:00 Now it is really easy to use any MP3 file as ringtone on almost all cell phones, you just need to transfer the song to the phone and make it your default ring tone. But there are two problems with this, at least for me. My phone does not have enough memory to have too much songs Almost all songs start with low volume, and when I finally hear it, the call was droped Well, to solve that, you need to edit the mp3 file and transfer to the phone only the part you want to use as ringtone, and the tool for that is: Audacity, to install it on Debian just run: apt-get install audacity Once installed, open your mp3 file with it, and select the part you want to use. Now to export it as mp3, we need the libmp3lame.so library, on Debian you need to compile it from the source, so download it to /usr/src/lame directory, these are the instructions to install it: cd /usr/src/lame tar xvzf lame-3.97.tar.gz Change to the version you have downloaded ./configure make && make install Now on audaci...
How to set up your own Debian Linux Mirror
2007-11-12 22:03:00 Looking to build your own Debian Linux Mirror? Use your local hard drive or a network drive and share your mirror over a network or even on the internet. Having your our own Debian/Ubuntu Linux Mirror enables you to drastically speed up the process of installing packages or complete netbuilds on your single or ...
By: Pen Drive Linux
How to set up your own Debian Linux Mirror
2007-11-12 22:03:00 Looking to build your own Debian Linux Mirror? Use your local hard drive or a network drive and share your mirror over a network or even on the internet. Having your our own Debian/Ubuntu Linux Mirror enables you to drastically speed up the process of installing packages or complete netbuilds on your single or networked ...
By: Pen Drive Linux
A list of Debian linux basic commands to help you get started
2007-09-24 02:17:00 A list of common commands is very useful when new to Debian, to teach you how to handle/manage files and systems.I extracted from Debian’s User Reference Manual the most often used commands : Commands for reading documentation: man [section-number] subject man shows the manual page on the command (use q or ctrl-C to get ...
By: YourITronics
Install Debian Linux from Microsoft Windows
2007-09-13 23:18:00 Next version of popular Linux distribution Debian will contain EXE application that is to be run in Windows for painless and harmless Debian installation. After a long process of review and polishing, the win32 loader from goodbye-microsoft.com has finally made its way to official Debian CDs. Latest daily builds of Debian lenny (the development version) are ...
By: Linux Screw
Date Command in Debian Linux
2007-08-29 12:52:00 Here are some interesting uses of the date command in Debian Linux by Mary M. Chaddock, GSEC, GCUX. She is a Network Security Administrator for Abilene Christian University in Texas. Thanks Mary for the nice email, and of course, the date tip.Mary said, "Specifically, I often have a need to convert log dates or search logs for specific dates when the log date is in epoch format."Displays the current date'date +%s'Gives date two weeks ago'date +%s --date=-2week'Converts an epoch timestamp'date --date=@1187103930'
By: My SysAd Blog
|



