![]() ![]() |
May 4 2004, 02:28 PM
Post
#253
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
SECURITY: AV SOFTWARE ( And why we don't need it )
Because on several occasions Nathan ( nlinecomputers ) has written some very good and clear posts about viruses in Linux on the forum, I have asked him to make a compilation out of several threads he contributed. Well, he did not let us down ! . . . . . Here it is: QUOTE (nlinecomputers @ Forum) Users who are new to Linux and have a background battling viruses in Windows are often shocked when long time Linux users advise them not to worry about viruses in Linux. "Linux has no viruses" is often said and many new Linux users have a difficult time believing it. "Why does Linux have no viruses?" The nature of the setup of a Linux, UNIX, BSD, or even a Mac makes having and running viruses on your system difficult to impossible. *nix operating systems are much more securely designed then Windows. Many functions in Windows can be accessed by services very easily and without a password prompt. Most Linux users can't even change the time of day on the computer without a password prompt. While at times annoying, this level of security is what keeps what few viruses that do exist in Linux under control. There are some Linux viruses, but not many. Last time I checked there are only about 20 viruses that can infect a Linux box versus the several hundred thousand viruses that can infect a Windows box. All of the Linux viruses exploit various known holes in Linux. All the holes I know of have been patched. So if you run a recent version of Linux, and you keep it patched, you can't be infected by any of them. The structure of Linux makes writing a virus very difficult as it requires root access to do anything of significance. For a virus to run it would have to be granted root access with a password request. If you fail to give it root access then the most a virus could do, if anything, is damage your home directory. It is unlikely it could even run again so it would die there in your home directory. Most smart Linux users grasp the power of root access and would question why an unknown program is suddenly requesting root access. (You don't enter your password for just ANY prompt do you? Only for programs YOU have called up, right?) Plus each Linux distro is different, so it is difficult to write a virus that would run on say Red Hat and also be able to run on a Debian platform (or SuSE, or Slackware, or Mandrake?...). This further limits the chances of an outbreak. This variety is one of levels of protection that Linux users have that Windows does not. All Windows boxes are very much alike and that common ground makes for a very ripe breeding ground for viruses. "Ok so I'm safe from any so called Linux virus, but all those Windows viruses can hurt me because I can read my FAT32 partition, right?" Not really. A virus isn't magic. It's just a computer program. It is an evil program, but still just a program. Programs can't run on systems they aren't designed for. You can't run a Windows program on a Mac or in Linux or on an IBM Mainframe. If the virus is a Windows virus then in can only infect a Windows system and only when Windows is booted up and running. Why, because Windows is the only thing that can run the code. Can you put an infected file on a Linux system? Sure, but it can't do anything. To Linux it is gibberish. Just like you can't run KDE on Windows or run Microsoft Word on a Linux box. Linux can't be hurt by Windows viruses however it can host them. For example if you use Linux as a mail server then it can pass the virus around just like any other mail server. Note that passing a virus in an email is not the same as infecting the server. A virus is just a program and it can not infect a system unless it is run on it. But if you have an office full of Windows clients and you use your Linux box as an in house mail server or as a file server and one of the Windows clients gets infected then all the other Windows computers are at risk of infection via the Linux box and the email. So if you're running a mail server you might need to consider AV for the server. Otherwise it really isn't an issue. Even with a mail server the Linux server ITSELF can't be infected just all the Windows boxes that connect to it. (Which is bad enough?) "So what do I need to do? I need to do something, just in case. Don't I?" The best way to keep your system secure against viruses is by keeping your software updated and patched, by making sure that your system doesn't run unneeded services and a by running a firewall. -------------------- Nathan Williams, N-Line Computers Great ! Thanks Nathan for this excellent explanation ! If after these statements you still think you need AV software: A free AV for Linux is F-Prot. You can get it here: http://www.f-prot.com/products/home_use/linux/ Links on security: Basic Slackware Security: http://www.oldskoolphreak.com/tfiles/hack/...k/slack_sec.txt More on Nmap: http://software.newsforge.com/software/04/...l?tid=78&tid=82 Nessus: http://www.nessus.org/demo/first.html For the more advanced, here is a series of articles on Linux security.These articles were written by Mike Peters and posted on Linux.com: Part 1: http://docs.linux.com/article.pl?sid=04/04...5/1913248&tid=2 Part 2: http://docs.linux.com/article.pl?sid=04/04...5/1918219&tid=2 Part 3: http://www.linux.com/article.pl?sid=04/04/15/1923224 -------------------- |
|
|
|
May 12 2004, 04:21 AM
Post
#254
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
USER RELATED CRON JOBS
If you want to set up some tasks yourself ( as user ) to run every so many hours/days, here is how to do that: Make a text file and let's say we call it "test-cron". In the file we will put the following lines: CODE 0 * * * * play /home/bruno/Sound/Hour.wav ( Sure you need those sound files in the places indicated above ) See this link for the time settings: Cron Jobs 30 * * * * play /home/bruno/Sound/HalfHour.wav Then give the command: CODE $ crontab test-cron And from then on, every hour the "Hour.wav" will play and every half hour the "HalfHour.wav" will . . just like grandma's clock ( Your personal cron-settings are then saved in /var/spool/cron/bruno ) Sure you can do this as root as well so it will run independently from whichever user is logged in at that moment -------------------- |
|
|
|
May 20 2004, 03:11 PM
Post
#255
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
BACKING UP THE MBR
Here is a clever trick that John Locke sent us for backing up and restoring the MBR . . . : QUOTE Just another note about restoring the boot loader for dual boot systems, after Windows messes it up. In Linux, the "dd" command can read and write to/from raw disks and files. If you have a floppy drive, creating a boot disk is as simple as putting a floppy in the drive and typing this: $ su <type password> # dd if=/dev/hda of=/dev/fd0 bs=512 count=1 This makes an exact copy of the MBR of the first hard drive, copying it to a floppy disk. You can boot directly from this floppy, and see your old boot menu. You can restore it by switching the "if=" and "of=" (input file, output file) parameters. If you don't have a floppy drive, you can back it up to a file with this: # dd if=/dev/hda of=/home/john/boot.mbr bs=512 count=1 Then you can boot into a CD-ROM distribution such as Knoppix, or often use your Linux distribution's installation CD to boot into rescue mode, and restore it with: $ su # dd if=/mnt/hda5/john/boot.mbr of=/dev/hda bs=512 count=1 (you'll need to find and mount the partition containing the directory where you backed up the MBR for the "if" parameter--this is an example). Cheers, -- John Locke Thanks John, nice one ! PS: Also, Striker shows us a way to write lilo to floppy: QUOTE (Striker @ Forum) For that open up a konsole, log in as ROOT and follow the below :
CODE /sbin/lilo -b /dev/fd0 -------------------- |
|
|
|
May 20 2004, 05:45 PM
Post
#256
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
CDRECORD and KERNEL 2.6
( If you want you can skip the intro and go to the "nutshell" at the bottom QUOTE (Warly @ Mandrakesoft) Mandrakelinux 10.0: to Burn or not to Burn The linux kernel 2.6, the default one in Mandrakelinux 10.0, has introduced some changes in the way burning is done. A release note was published to explain the new behavior, but it seems not explicit enough to explain what changed and what is now the best way to burn under Mandrakelinux 10.0. First, let have some technical facts. Basically all the burners have the same interface, which is a SCSI one, because the IDE commands are just too basic to do anything with a burner. However SCSI interface is not as widely available as IDE one, and is more expensive because you need an extra adapter ; so nowadays most of the burner sold have an IDE interface. To be able to send complex SCSI command over the IDE bus, the ATAPI standard has been developed. This ATAPI standard just described how to send SCSI commands via an IDE bus, however under the linux kernel 2.4 the ATAPI support was not present into the default IDE driver, but into the ide-scsi one, specifically developed for that matter. As far as burning programs are concerned, under Mandrakelinux the burning tools are either cdrecord or dvd+rw-tools. All the graphical burning interfaces, k3b, xcdroast, or others are using either cdrecord or dvd+rw-tools in background. Until recently, the more versatile and used has been cdrecord, but the free version only allow to burn CD-R and CD-RW, however I have been able to maintain an extra patch to be able to burn any kind of DVD media, DVD-R, DVD-RW, DVD+R and DVD+RW. To burn with cdrecord you need to specify the interface and the device you want to use on the command line, for example dev=sg:1,0,1 (or just dev=1,0,1) to burn on the SCSI bus 1, target 0, lun 1 (each SCSI device is defined with these 3 numbers). This SCSI emulation under linux 2.4 was the reason of this 'hdc=ide-scsi' thing you must have met into your bootloader command line if you once wanted to burn under a GNU/Linux system with an ATAPI burner. cdrecord also supported to burn without this SCSI emulation with the 'dev=ATAPI:1,0,0', but unfortunately this method does not allow to use Direct Memory Access (DMA), which impacts the performances and basically does not allow to burn at anything faster than 16x speed. So we were stuck and had to use this ide-scsi emulation to be able to correctly burn under GNU/Linux. This is now past! With the linux kernel 2.6 a new ATAPI interface has been developed and directly available with the IDE driver. This interface is shortly known as the ATA interface, which is also supported by cdrecord. So forget about this SCSI emulation, ATAPI interface or whatever, just now use the more logical way you would have first imagine, which is to just specify the device name of your burner, for example dev=/dev/hdc, if your burner is the first device on the second IDE bus of your computer. You can scan your buses with "cdrecord -scanbus" to know which devices are detected, note that the Mandrakelinux cdrecord automatically default to the new ATA interface if the SCSI interface does not find anything, you can check that with the "scsidev: 'ATA'" line in the scanbus command output. If you want to be sure to scan only the ATA bus, just use "cdrecord dev=ATA -scanbus". To specify the device, you can use 'dev=/dev/hdc' or something like 'dev=ATA:1,0,0' from the scanbus output. These both syntax are internally the same thing, and the new ATA interface will be used (and allow DMA burning and the maximum speed of your burner). To conclude, with the new Mandrakelinux 10.0, just forget about anything you know about burning with this SCSI emulation, and just remember that you only need to know one thing, the name of the device representing your burner (you can easily find this out with a "cat /proc/sys/dev/cdrom/info" or "dmesg | grep CD" commands). So be careful not to use this ATAPI interface under your favorite burning tool, and do not take care about their messages regarding SCSI emulation, they are outdated (xcdroast has been patched to be able to use the ATA interface, I am not sure about k3b). So in a nutshell: In Mandrake 10, and probably soon in other distro's with the 2.6 kernel, first do CODE # dmesg | grep CD to see what /dev/hd?? your burner is located . . and then: CODE # cdrecord dev=/dev/hdc filename.iso That is all . . . . ( So no more "--scanbus" !! ) K3b and other GUI burning tools will already be adapted to the new kernel and cdrecord software. -------------------- |
|
|
|
May 26 2004, 05:28 PM
Post
#257
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
ALTERNATIVE MANDRIVA 2006 INSTALL
( NOTE: For Mandriva 2005 there are instructions Here ) There are two alternative ways to download and install Mandrake 2006 ( As long as there are no ISOs available yet ) First get this file and burn it to CD: boot.iso ( For other versions: you need the "boot.iso" located in the "images" directory ) FTP install Burn the boot.iso to CD and boot from it . . then: - Press Enter - At the screen: "Please choose your install method" choose FTP server - DHCP - "Please fill entries" I filled in: "uranus" on first line ( name of my system ) and "lan" on second line. - Wait until the connection is made and dialog shows up ( takes a while !!! ) - Question about proxy: leave blank - When choosing the sources, tell it that you will select the source yourself "Specify the mirror manually" - On the first line: "ftp.nluug.nl" and on the second line: "/pub/os/Linux/distr/Mandrakelinux/official/2006.0/i586" and press OK Then the program will load into memory and proceed to go on as a normal install. HD install - Copy all the files from CODE ftp://ftp.nluug.nl/pub/os/Linux/distr/Mandrakelinux/official/2006.0/i586 to a directory ( /home/bruno/i586 ) on a partition on your HD Use Kget's integration in Konqueror and use the filemanager, OR The next command CODE rsync -P -v -r ftp.nluug.nl::Mandrakelinux/official/2006.0/i586 . You DO need the dot at the end of that command !!! - Boot from the boot-CD we made above - It will give you a dialog where you want to install from: choose "hard disk" - The next dialog will ask you from which HD ( if you have 2 ) - After that a dialog will ask you on what partition the files are located - And the next dialog asks "Directory or ISO image _________" type "/home/bruno/i586" and press OK Then the program will load into memory and proceed to go on as a normal install. -------------------- |
|
|
|
Jun 2 2004, 04:02 PM
Post
#258
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
URPMI SOURCES MANDRAKE 10.0 Official
There are a few sources you can add to the package manager of Mandrake to get extra software. Some of them everybody can add, but a few ( the last two ) are only for Club Members. See, here how it's done: QUOTE (Bruno @ Tips) Go to a console, log in as 'su' and paste the line after the prompt and hit enter. Now it should work and get the list . . . be patient, it takes a while. Then as you get the prompt back, close the console ( Ctrl+d , 2x ). Now that we have added the source to your software manager, we can have a look at all the packages: Go to the MCC --> Software Management --> 'RpmDrake helps you install software packages' ( the icon with the + ). Now you will see the text : 'All packages' under the search-box., 'All packages' 'by group' change the by group in: 'by medium repository' and you will get a list with the sources you can choose from: CD1, CD2, CD3 and also the Update source and the just added source. Click in the little triangle in front of the new source, and a list will fold out with all the packages you can choose from . . . . FUN, MAGIC, BLISS ! Here they are: ( Don't click on the links but paste them in a root-console ) YOU HAVE TO BE ON LINE ! Source PLF CODE urpmi.addmedia plfplf ftp://mandrake-forum.org/pub/PLF/mandrake/10.0 with hdlist.cz Source Thacs: CODE urpmi.addmedia thacs.rpms http://rpm.nyvalls.se/10.0/RPMS with hdlist.cz Source Contrib CODE urpmi.addmedia contrib ftp://ftp.nluug.nl//pub/os/Linux/distr/Mandrake/official/10.0/contrib/i586 with ../../i586/Mandrake/base/hdlist2.cz Source Club contributions ( open to all ) CODE urpmi.addmedia club.contrib_ftp.nl.uu.net_i586_10.0Official ftp://ftp.nl.uu.net/pub/linux/Mandrakelinux/devel/testing/Mandrakeclub/10.0/i586 with hdlist.cz Source Eslrahc ( Link ) CODE urpmi.addmedia eslrahc http://www.eslrahc.com/10.0/ with hdlist.cz Source Norlug ( Link ) CODE urpmi.addmedia NORLUG-10.0 http://www.ibiblio.org/pub/mirrors/norlug/mandrake-10.0/RPMS/ with hdlist.cz More small ones: http://www.thebrix.org.uk/ Only for Club members: Source Club Commercial CODE urpmi.addmedia club.comm_i586_10.0Official http://NICKNAME:PASSWORD@www.mandrakeclub.com/downloads2/comm/10.0/ with ./hdlist.cz ( replace "NICKNAME" and "PASSWORD" ) Source Club Testing ( Be Careful With These !! ) CODE urpmi.addmedia testing_i586_10.0Official http://NICKNAME:PASSWORD@www.mandrakeclub.com/downloads2/test/10.0 with hdlist.cz ( replace "NICKNAME" and "PASSWORD" )NOTE 1: If you add the sources today . . and you want to use them, let us say next week, you first have to update them because new packages might have been added, and old packages might have been removed . . . so each time before using them do "urpmi.update -a" as root in a console !! NOTE 2: So again the warning: Mainly I only have the CD and Contrib source active all the time . . and only make all others active if I can not find the package I look for in those two ( CD and Contrib ) . . . . also you will get just too many different versions of the same package if you use all the sources at the same time, and sticking to the native Mandrake ones is recommended ! -------------------- |
|
|
|
Jun 9 2004, 02:06 PM
Post
#259
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
RESTORING THE XP MBR
Here is a Tip that I hope you will never use . . but still it has to be posted in this thread . . how do you restore the MBR to the state it was with only Windows XP. The info comes from Jodef ( Johann ) QUOTE (Johann @ Forum) Boot from Win XP Cd ( you will get setup inspecting hardware configuration) Will come to screen to setup or repair existing install press R to enter recovery console You will be asked to choose install to repair enter number and you will get prompt for admin password followed by C:WINDOWS> at this point type FIXMBR or HELP will give you list of options. Thanks Johann !! PS: Depending on what drive you have XP installed you might have to give an additional command: "fixboot x:" where "x:" represents the drive XP is installed. See: http://www.microsoft.com/resources/documen...r.mspx?mfr=true And: http://www.microsoft.com/resources/documen...t.mspx?mfr=true Other usefull links: http://www.microsoft.com/windowsxp/using/s...xp/install.mspx http://www.theeldergeek.com/xp_home_install_-_graphic.htm http://www.theeldergeek.com/xp_pro_install_-_graphic.htm -------------------- |
|
|
|
Jun 16 2004, 01:17 PM
Post
#260
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
PRINTING MAN PAGES
There are four ways to print out a man page, just see which one suits you best. As an example we take the "mount" man pages 1). In a terminal/console, type CODE $ man mount After that, from the menu bar: "Session" --> "Print Screen"OR: 2).In a terminal/console type CODE $ man mount | col -b > mount.txt As a result, you will find the mount.txt file in home. Open it and send the text file to your printer.OR: ( also for easy reading ) 3).In Konqueror: type "#mount" in the address bar and press the "print" button from the menu bar. AND: 4). The super man pages: ( for the ones you can not find on your system Search for "mount" and print it from your browser. Sure, you do know that there is a man page for every command . . . reading about them can sometimes show you surprising extra options for each command. -------------------- |
|
|
|
Jun 23 2004, 01:46 PM
Post
#261
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
TWEAK THE COMMAND "ls -l"
Sure, we all know the command "ls -l" . . . but that we can adapt the command to change the date & time output is something Doryforos will try to explain to us: QUOTE (Doryforos @ Forum) Normally, ls outputs the modification date & time of files & folders in the following (locale-dependent) format: $ ls -l /etc/profile.d total 84 -rwxr-xr-x 1 root root 790 Jun 1 10:26 colorls.csh -rwxr-xr-x 1 root root 785 Jun 1 10:24 colorls.sh ... i.e., ls outputs the date & time in the format: "Month Day Modification_Time", when the modification time is recent, and in the format: "Month Day Year", when the time is further in the past. By issuing "ls -l --time-style=long-iso" at the command line, the date & time output changes to a ISO standard format (in any case, users are given the choice...): $ ls -l --time-style=long-iso /etc/profile.d total 84 -rwxr-xr-x 1 root root 790 2004-06-01 10:26 colorls.csh -rwxr-xr-x 1 root root 785 2004-06-01 10:24 colorls.sh ... To have ls use this format permanently, in Fedora Core 2, edit the files shown in the example output, adding "--time-style=long-iso" at the lines beginning with "alias ll=" (and -- optionally -- at the lines beginning with "alias ls="), as follows: CODE [colorls.sh, for bash] if ! egrep -qi "^COLOR.*none" $COLORS >/dev/null 2>/dev/null; then alias ll='ls -l --color=tty --time-style=long-iso' 2>/dev/null alias l.='ls -d .* --color=tty' 2>/dev/null alias ls='ls --color=tty --time-style=long-iso' 2>/dev/null else alias ll='ls -l --time-style=long-iso' 2>/dev/null alias l.='ls -d .*' 2>/dev/null fi Thanks to Doryforos -------------------- |
|
|
|
Jun 30 2004, 04:35 PM
Post
#262
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
RSYNC
We all know how to download from FTP, but there is an other way: rsync ! When ftp servers are really busy you might have a better/faster download with rsync. To use rsync you need to know a few tricks: To get a full list of what is available with rsync on nluug: CODE $ rsync ftp.nluug.nl:: ( full list of modules )Or directly the distributions directory: CODE $ rsync ftp.nluug.nl::pub/os/Linux/distr/ Or Ibiblio: CODE $ rsync ibiblio.org::distros/ Then if you want to know what is in Mandrakelinux: CODE $ rsync ftp.nluug.nl::Mandrakelinux The listing of i586: CODE $ rsync ftp.nluug.nl::Mandrakelinux/official/2006.0/i586/ Download the full "images" directory: CODE $ rsync -P -v -r ftp.nluug.nl::Mandrakelinux/official/2006.0/i586/install/images/ . !! Do not forget the dot at the end !!! ( It puts the file in your /home The -P argument is to resume a download of a partially downloaded file. Only the boot.iso: CODE $ rsync -P -v ftp.nluug.nl::Mandrakelinux/official/2006.0/i586/install/images/boot.iso . !! Do not forget the dot at the end !!!The ISO of the first CD of Mandrake 10 Official: CODE $ rsync -P -v ftp.nluug.nl::Mandrakelinux/official/iso/2006.0/i586/Mandriva-Linux-Free-2006-CD1.i586.iso . ( One line ) !! Do not forget the dot at the end !!!I know it does not seem easy at first sight, but once you are familiar with it you will learn to appreciate rsync -------------------- |
|
|
|
Jul 9 2004, 04:57 PM
Post
#263
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
TRANSPARENT CONSOLE
Here is a nice tweak to suit any desktop theme you have: a fully transparent, borderless, scrollbarless terminal/console !! Okay this is what you need: "Eterm" . . . for you Mandrakers install it with: CODE # urpmi Eterm ( other distros use your software installer After the install press Alt+F2 . . . . . you will get the "run-command" dialog . . paste the following command in the box: CODE Eterm --trans -x --shade=15 --scrollbar=0 --buttonbar=0 --geometry=80x52+30+30 or if you want it 100% transparent: CODE Eterm --trans -x --shade=0 --scrollbar=0 --buttonbar=0 --geometry=80x52+30+30 --foreground-color=green You can tweak the size with the --geometry= numbers . . or add more shade by making shade=30 . . . ( the -x is for borderless, the foreground-color is the color of the text ) To close the console press Alt+F4 or Ctrl+D or just type "exit" The second part of the tweak: Here is how to incorporate the new command into your menu: Make a script: CODE # vi /usr/bin/eterm-tweak QUOTE #!/bin/bash ( In scripts you do need the # signs !! )Eterm --trans -x --shade=15 --scrollbar=0 --buttonbar=0 --geometry=80x52+30+30 #End Script Then make it executable: CODE # chmod 775 /usr/bin/eterm-tweak Test the script: CODE $ eterm-tweak If it all works like you expected: change the command for eterm in your menu-editor to "eterm-tweak" PS: For Slackware ( 10/Current ) you need these packages: eterm-0.9.2-i486-1jim.tgz libast-0.5-i486-1jim.tgz imlib2-1.1.0-i486-1jim.tgz You can get them at: http://www.linuxpackages.net/ . . and install them with installpkg . . after that it works like a dream ! -------------------- |
|
|
|
Jul 22 2004, 02:59 PM
Post
#264
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
MYDSL
Here is an interesting thing for D Small Linux users: myDSL !! QUOTE The latest addition to D*** Small Linux is the so called "DSL extensions". These are extra applications not present on the 50MB CD, but available for installation with a simple command that fetches and installs the desired application from a central repository: "During our last release we incorporated a system which makes it easy to add extensions to DSL. Over the last couple of weeks our user base has made several interesting live CD packages which can be boot from the CD, or any other place which the distro is able to read (hard drive, pen drive, etc). The users have done some good work getting these applications packaged so that they are a drop-in and there are some nice files already available." Some of the "nice files" include Quake 2, GIMP, MPlayer, OpenOffice.org, Ruby, Samba and many others. Now, how to do this . . and what are the extensions available . . Here are the extensions: http://www.ibiblio.org/pub/Linux/distribut...amnsmall/mydsl/ What you do is make a directory in your /home and call it "optional" : CODE $ mkdir /home/dsl/optional Then you download the extensions to that directory. ( let us say for the example we take Gimp )After that you start emelfm: CODE $ emelfm And navigate to /home/dsl/optional . . . . you select the package ( Gimp ) you just downloaded and then: in the middle of emelfm there are buttons, the top botton is called "myDSL" . . press that button ! . . . . . Now close emelfm and you will see that at the top of your fluxbox-desktop-menu an item is added: "myDSL" and it unfolds to see "Gimp" !!You can add as many items as you want the same way to that myDSL sub-menu !!! Have FUN !!! NOTE: Recent versions of D*** Small Linux ( 2.0 ) have a GUI frontend for MyDSL downloads. You still need Emelfm to install the extentions, but it then even creates a desktop icon for the installed applications -------------------- |
|
|
|
Jul 26 2004, 03:56 PM
Post
#265
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
INSTALLING MANDRAKE 10.0 OFFICIAL
( General instructions ) - Preparation: If this is your first Linux install, check out Basic Rules for Install If you are replacing a previous Mandrake Install back up: - Your browser plugins located in /usr/lib/mozilla/plugins and /usr/lib/mozilla-1.4/plugins ( or 1.6 - The ~/evolution directory ( When I restore it, I chown it back to "chown -R bruno:bruno evolution" ) - The ~/.galeon/bookmarks.xbel ( or other bookmarks ) - Personal things in your /home directory - Your /etc/lilo.conf ( if you are booting mutiple distro's ) - Your /etc/hosts, /etc/modules.conf, /etc/aliases, /etc/rc.d/rc.local, ~/.bashrc, ~/.exrc if you made any modification to these files. - Set your BIOS to boot from CD and disable PNP aware OS. - There are no errata available yet. - - Put the first CD in the CD-ROM drive and boot your computer. 1st screen: The welcome screen. Press Enter Before the GUI comes back the installer is loading into memory and devices are configured 2nd screen: Language selection, default is US English, Press Next 3rd screen: License agreement, select "yes" and Press Next 4th screen: Is this an install or an upgrade ? ( Click to enlarge ) ![]() Tick the box of "install" and Press Next ( Advice: NEVER use Upgrade !!! ) 5th screen: Security level, fill in "root" or your email address and Press Next 6th screen: The DrakX Partitioning wizard found etc. etc. - If you have your partitions already made: tick the box "use existing partitions" and Press Next - If you still have to make partitions, or want to change the size of the existing ones: tick te box "Custom Disk Partitioning" and Press Next You will be taken to the very intuitive and easy partitioning tool. Make a 4G partition for / and a 2G for /home. 7th screen: Choose file Mount points Chose the partitons where you want / and /home and Press Next ( Everybody using partitions for /tmp and /usr too . . you know what to do 8th screen: Choose the partitions you want to format . . .all boxes have to be ticked and Press Next 9th screen: Packages ![]() Do like in screenshot, tick all the boxes on the left, and only the last 3 on the right and Press Next NOTE: Including Gnome will also give you all the gnome programs you can also use in KDE . . so even if you intent to never use Gnome it is better to install it anyway. NOTE: in some cases, additionally checking the box "individual packages" and adding: kdegraphics-kdvi, koffice, xpdf, gimp data-extras, mplayer-ui, xine-ui, xmms, xmms-alsa, kdeadons, kget, xterm, bash-completion, kedit, usbview, kdeedu and nmap-frontend somehow corrects some little bug in the installer Now the install really starts it takes about 16 minutes and you have to change CDs twice 10th screen: Root password, Fill in your rootpassword twice and Press Next 11th screen: Adding User, fill in name twice and password twice and Press Accept 12th screen: Adding another user, Press Next 13th screen: Auto login, . . de-select the box, you do not want this, and Press Next NOTE: It is safer to not use this feature, and it makes that you can choose at boot what windowmanager to start. Also if you ever get a corrupted /home directory the non-autologin makes fixing a lot easier. 14th screen: Boot loader, Select "First sector of drive ( MBR )" and Press Next NOTE: It will automatically include your Windows partition for dual boot 15th screen: Summary, . . . . This is very important . . check all the settings, look at the difference I have in the two screenshots: Before configuring After configuring 16th screen:Updates . . . say yes and Press Next NOTE: This feature rarely works, but still it is worth trying . . you will still have to do the updates in the MCC after the first reboot 18th screen:Complete . . remove your CD and Press Reboot After reboot install Anacron and get the updates see this thread and subscribe to it and get notified as there are new updates posted. PS: There are more Tips for after the install in This Thread -------------------- |
|
|
|
Aug 10 2004, 04:28 PM
Post
#266
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
LM-SENSORS
This is one of the more difficult/critical tweaks: LM-Sensors are for monitoring the temperatures, voltages, and fans of Linux systems with hardware monitoring devices. Now, before we start you have to know that on some systems it is a piece of cake . . . and on other systems with badly supported motherboards, it is a real pain. In most distros you can install LM-Sensors with the package management and they will be on the install CDs . . . if not get them here: http://www2.lm-sensors.nu/~lm78/ ( Do read there if your sensor chips and I2C are supported ) After installing the package, first do CODE # modprobe i2c-dev Then you have to configure it by running "sensors-detect" as root . . . here is an example, with additional notes of how "sensors-detect" ran on my system: QUOTE $ su Password: [root@jupiter bruno]# sensors-detect This program will help you determine which I2C/SMBus modules you need to load to use lm_sensors most effectively. You need to have i2c and lm_sensors installed before running this program. Also, you need to be `root', or at least have access to the /dev/i2c/* files, for most things. If you have patched your kernel and have some drivers built in, you can safely answer NO if asked to load some modules. In this case, things may seem a bit confusing, but they will still work. We can start with probing for (PCI) I2C or SMBus adapters. You do not need any special privileges for this. Do you want to probe now? (YES/no): YES <---------------------------------------- !! Probing for PCI bus adapters... Use driver `i2c-viapro' for device 00:11.0: VIA Technologies VT8233A/8235 South Bridge Probe succesfully concluded. We will now try to load each adapter module in turn. Load `i2c-viapro' (say NO if built into your kernel)? (YES/no): NO <---------------------------------------- !! Do you now want to be prompted for non-detectable adapters? (yes/NO): NO <---------------------------------------- !! To continue, we need module `i2c-dev' to be loaded. If it is built-in into your kernel, you can safely skip this. i2c-dev is already loaded. We are now going to do the adapter probings. Some adapters may hang halfway through; we can't really help that. Also, some chips will be double detected; we choose the one with the highest confidence value in that case. If you found that the adapter hung after probing a certain address, you can specify that address to remain unprobed. That often includes address 0x69 (clock chip). Some chips are also accessible through the ISA bus. ISA probes are typically a bit more dangerous, as we have to write to I/O ports to do this. Do you want to scan the ISA bus? (YES/no): YES <---------------------------------------- !! Probing for `National Semiconductor LM78' Trying address 0x0290... Failed! Probing for `National Semiconductor LM78-J' Trying address 0x0290... Failed! Probing for `National Semiconductor LM79' Trying address 0x0290... Failed! Probing for `Winbond W83781D' Trying address 0x0290... Failed! Probing for `Winbond W83782D' Trying address 0x0290... Failed! Probing for `Winbond W83627HF' Trying address 0x0290... Failed! Probing for `Winbond W83697HF' Trying address 0x0290... Failed! Probing for `Silicon Integrated Systems SIS5595' Trying general detect... Failed! Probing for `VIA Technologies VT82C686 Integrated Sensors' Trying general detect... Failed! Probing for `VIA Technologies VT8231 Integrated Sensors' Trying general detect... Failed! Probing for `ITE IT8705F / IT8712F / SiS 950' Trying address 0x0290... Success! (confidence 8, driver `it87') Probing for `IPMI BMC KCS' Trying address 0x0ca0... Failed! Probing for `IPMI BMC SMIC' Trying address 0x0ca8... Failed! Some Super I/O chips may also contain sensors. Super I/O probes are typically a bit more dangerous, as we have to write to I/O ports to do this. Do you want to scan for Super I/O sensors? (YES/no): YES <---------------------------------------- !! Probing for `ITE 8712F Super IO Sensors' Failed! (0x8705) Probing for `SMSC 47M10x Super IO Fan Sensors' Failed! Probing for `SMSC 47M14x Super IO Fan Sensors' Failed! Probing for `VT1211 Super IO Sensors' Failed! Probing for `Winbond W83627HF Super IO Sensors' Failed! Probing for `Winbond W83627THF Super IO Sensors' Failed! Probing for `Winbond W83637HF Super IO Sensors' Failed! Probing for `Winbond W83697HF Super IO Sensors' Failed! Probing for `Winbond W83697UF Super IO PWM' Failed! Now follows a summary of the probes I have just done. Just press ENTER to continue: Driver `it87' (should be inserted): <-------------Important info !! Detects correctly: <-------------Important info !! * ISA bus address 0x0290 (Busdriver `i2c-isa') <-------------Important info !! Chip `ITE IT8705F / IT8712F / SiS 950' (confidence: 8) <-------------Important info !! I will now generate the commands needed to load the I2C modules. Sometimes, a chip is available both through the ISA bus and an I2C bus. ISA bus access is faster, but you need to load an additional driver module for it. If you have the choice, do you want to use the ISA bus or the I2C/SMBus (ISA/smbus)? ISA <---------------------------------------- !! To make the sensors modules behave correctly, add these lines to /etc/modules.conf: <----------------------------------------See below !! NOTE: I made the important sections we need later BLUE #----cut here---- # I2C module options alias char-major-89 i2c-dev #----cut here---- To load everything that is needed, add this to some /etc/rc* file: <-----------------------------------See below, in /etc/rc.d/rc.local !! #----cut here---- # I2C adapter drivers modprobe i2c-isa # I2C chip drivers modprobe it87 # sleep 2 # optional /usr/local/bin/sensors -s # recommended #----cut here---- WARNING! If you have some things built into your kernel, the list above will contain too many modules. Skip the appropriate ones! You really should try these commands right now to make sure everything is working properly. Monitoring programs won't work until it's done. Do you want to generate /etc/sysconfig/lm_sensors? (YES/no): YES <---------------------------------------- !! Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors for initialization at boot time. [root@jupiter bruno]# Next step is running the test of the modules ( see warning above in RED. . we take info from the BLUE section above: QUOTE [root@jupiter bruno]# modprobe i2c-isa <------------------------------------Loading the module !! [root@jupiter bruno]# modprobe it87 <---------------------------------Loading the module !! [root@jupiter bruno]# sensors <---------------------------------------The test-run!! it87-isa-0290 Adapter: ISA adapter VCore 1: +1.63 V (min = +1.53 V, max = +1.87 V) VCore 2: +2.49 V (min = +2.25 V, max = +2.75 V) +3.3V: +6.58 V (min = +2.96 V, max = +3.60 V) ALARM +5V: +4.94 V (min = +4.50 V, max = +5.48 V) +12V: +12.08 V (min = +11.36 V, max = +13.80 V) -12V: -19.31 V (min = -15.86 V, max = -13.40 V) ALARM -5V: +0.56 V (min = -10.13 V, max = -9.44 V) ALARM Stdby: +4.91 V (min = +4.50 V, max = +5.48 V) VBat: +3.21 V fan1: 4821 RPM (min = 3000 RPM, div = 2) fan2: 0 RPM (min = 3000 RPM, div = 2) ALARM fan3: 0 RPM (min = 3000 RPM, div = 2) ALARM M/B Temp: +31°C (low = +20°C, high = +60°C) sensor = thermistor CPU Temp: +49°C (low = +20°C, high = +60°C) sensor = thermistor Temp3: +18°C (low = +20°C, high = +60°C) sensor = invalid As you can see from the last command the sensors do work !! So now we can make the edits in the "modules.conf" and the "rc.local" files according to the BLUE sections in the output above: QUOTE [root@jupiter bruno]# vi /etc/modules.conf <---------------------------------------The edits: add the part in BLUE !! [root@jupiter bruno]# vi /etc/rc.d/rc.local <---------------------------------------The edits: add the part in BLUE !! After this you will have to reboot your system to see if the sensors load okay . . and then you can tweak Gkrellm to show the temperatures in the system-monitors on your desktop. ( Have a look here: http://web.wt.net/~billw/gkrellm/gkrellm.png PS: Next time we will show you how to set up the temps in Gkrellm -------------------- |
|
|
|
Aug 17 2004, 03:15 PM
Post
#267
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
SENSORS in GKRELLM
In the previous issue we told you how to set up LM-Sensors, this time we will show you how to let them show in Gkrellm ( our favorite system monitor http://www.gkrellm.net ) Right click the top of the Gkrellm GUI and you will get the Configuration GUI. Under the heading "Builtins" you will see the "Sensors" . . . before you configured LM-Sensors the little triangles in front of "Temperatures", "Fans" and "Voltages" were not there . . . but now they are, and unfolding them shows you the sensor-chip that was loaded at boot. Ticking the boxes of the ones you want to show in Gkrellm is the first step. Then click on the "label" . . that makes it possible to change the text of the label shown in the Gkrellm GUI. You can change the order of appearance by dragging the lines up or down. Also you can fine tune the temperature ( if the chip is slightly off ) with the "factor" and "Offset" ( The mobo of my test system needs this badly because it is really wacky Then there is the option to choose the location, if you want the CPU temps directly under the CPU usage monitor. After that, press the "Alert" button and set at which max temperatures you desire warnings. ( or minimum Fan speed, voltage etc. ) Now press "OK" and the job is done ! Congrats !! -------------------- |
|
|
|
Sep 2 2004, 03:25 PM
Post
#268
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
PRIMARY, EXTENDED and LOGICAL PARTITIONS
There is always a lot of confusion about partitions and partition numbers. So let us try to shed some light: On an IDE drive, the first drive is called hda, and the partitions are shown as hda1, hda2 . . . . etc. etc. Your second drive is called hdb. On a SCSI drive, the first drive is called sda, the partitions are sda1, sda2 . . The second drive is called sdb. Now that was relatively simple, but now comes the more complicated part, I took parts of this from a post of Jason Wallwork ( Linuxdude32 ) because he was able to explain it better then I can: QUOTE (Jason @ Forum) An extended partition is the only kind of partition that can have multiple partitions inside. Think of it like a box that contains other boxes, the logical partitions. The extended partition can't store anything, it's just a holder for logical partitions. The extended partitions is a way to get around the fact you can only have four primary partitions on a drive. You can put lots of logical partitions inside it. hda is the whole drive hda1 is a primary partition hda2 is a primary partition hda4 is an extended partition hda5 is an logical partition hda6 is an logical partition You will never see hda4 mounted, just hda5 and hda6, in this case. Note that Linux numbers primary partitions 1-4, logical partitions start at 5 and up, even if there are less than 4 primary partitions. NOTE: On an IDE drive you can have up to 63 partitions, 3 primary and 60 logical ( contained in one extended partition ) On a SCSI drive the maximum number of partitions is 15 So, in a nutshell: if you start out with one HD that has windows C: and D: You will see them in Linux as hda1 and hda2 . . . then as you add a distro and let it automatically use the free space on that drive ( if that distro has that option like Mandrake ) it will make an extended partition and set up a partition for / and a partition for /swap plus a /home partition and call them hda5, hda6 and hda7 ( in that order ). You will see that if you make the partitions yourself, using preferably a Linux tool to make the partitions, the result will be more or less the same, only in that case you will be able to make even more partitions . . . for extra storage, backups, or additional distros. You will only need one swap partition as that can be shared by the various distros. -------------------- |
|
|
|
Sep 7 2004, 02:48 PM
Post
#269
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
TWEAKING the BOOTSPLASH
You will have noticed that modern distros use a bootsplash with a progress bar when you go past Lilo or Grub . . . . Then you can press F2 or Esc to switch to "verbose" mode and see the messages. Now there are a few settings you can change to influence the bootsplash. If you have one with a progress bar ( SUSE, Mandrake, PCLos ) you will see in the /etc/lilo.conf in the append-line there is "splash=silent" . . . I do not like the progress bar and want to see the boot messages all the time, but still have the fancy background: "splash=verbose" is the setting I did put in there. If you want the old-fashion boot screen, black with text, "splash=0" or "splash=native" or just "splash= " will work . . . So: splash=silent ( for the progress bar ) splash=verbose ( for the boot messages on colored background ) splash=0 ( for the boot messages on a black background like the old days ) splash=native ( the same ) splash= ( also the same ) Have fun ! -------------------- |
|
|
|
Sep 25 2004, 05:34 PM
Post
#270
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
F-PROT VIRUS SCANNER for LINUX
As an intro I would like to quote a post from a few weeks ago: QUOTE LINUX VIRUS and CHEESE Because there are a lot of posts lately about Anti Virus Software for Linux . . . I would like to make a few points before I describe how to use the F-Prot Virus scanner in the second post in this thread. 1). If you only run Linux you do NOT need AV software 2). If you dual boot Linux / Windows and get a virus infected mail in Linux it can NOT jump to your Windows partition ( nor can it spread over the local network to other systems ) . You can even store the attachment in your /home and open the zip ( or whatever the file is ) and it will be dead in the water, it gets no oxygen ( This is also why Linux AV progs do not have a "live guard" module in them: the virus does not execute or move ) . . you can leave it there as long as you want, nothing will happen, your Windows will not get infected as long as you do not deliberately copy it over there of course. 3). If you dual boot you better get a good AV program for Windows 4). Only if you are running a mail server you can use a Linux AV program, not because the server will be infected but only because you do not want to pass on a virus to Windows systems. ( good social behavior ) I mean: be reasonable: If you have 2 warehouses, and you use the first one to store cheese . . . are you going to place mouse-traps in the second one where you only store stainless steel ?? Don't let the mouse-trap vendors drive you crazy: Mice do not eat stainless steel !!! So I hope I was clear . . . Slow down, Keep Cool, Relax, Life is too short: don't let unfounded fear spoil your FUN in Linux . . See also This real good article by Nathan ! If after reading the above you still think you need AV software I recommend F-Prot. I prefer F-Prot because of the ones I tested, it has the fastest scan engine and it has proven its reliabillity since the DOS days. You can download it free from: http://www.f-prot.com/download/home_user/d...ad_fplinux.html NOTE: When writing this, the latest version is 6.0.2, if you are upgrading from a 4.6.* version please make sure you completely remove the old version before installing the new one ! I will give removal instructions for the 4.6.* version at the bottom of this page. Once you downloaded the fp-Linux-i686-ws.tar.gz to your /home directory you do ( as root ): CODE # tar -xvzf fp-Linux-i686-ws.tar.gz # rm fp-Linux-i686-ws.tar.gz # mv /home/bruno/f-prot /usr/local/bin/ # cd /usr/local/bin/f-prot/ # ./install-f-prot.pl After the last command the installer will start running. Accept the defaults . . . myself I did not do the last one that adds the cronjob because I want to add that later manually. ( It will automatically get the latest updated virus definitions as part of the install process ) To get the new virus definitions, next time all you have to do is: CODE # /usr/local/bin/f-prot/fpupdate Now let's check if it works: CODE # fpscan --version And you should see output like: QUOTE F-PROT Antivirus version 6.2.1.4252 (built: 2008-04-28T16-44-10) FRISK Software International © Copyright 1989-2007 Engine version: 4.4.4.56 Virus signatures: 2009012417050d8623145b0e9b4e6504018ced311e43 (/usr/local/bin/f-prot/antivir.def) Now to scan your Windows partition: ( provided that it is mounted at /mnt/win_c ) CODE # fpscan /mnt/win_c Or your /home: CODE # fpscan /home Your Evolution directory: CODE # fpscan /home/bruno/.evolution Or the full "/" partition: CODE # fpscan / The above commands will show you the following output: QUOTE F-PROT Antivirus version 6.2.1.4252 (built: 2008-04-28T16-44-10) FRISK Software International © Copyright 1989-2007 Engine version: 4.4.4.56 Virus signatures: 2009012417050d8623145b0e9b4e6504018ced311e43 (/usr/local/bin/f-prot/antivir.def) Scanning: \ Results: Files: 148439 Skipped files: 0 MBR/boot sectors checked: 0 Objects scanned: 253494 Infected objects: 0 Files with errors: 0 Disinfected: 0 Running time: 08:12 As you can see the command does not need an extra agrument, the default is "fpscan <directory_to_scan>" A quick way to get the updates and do the scan on the evolution directory in one go is: CODE # /usr/local/bin/f-prot/fpupdate && fpscan /home/bruno/.evolution/ IMPORTANT: In case you are upgrading from a 4.6.* version please make sure you remove the old version before installing the new one. Here is how to remove the files: ( These commands assume you followed the instructions that used to be on this page before Jan 25 2009 ) CODE # rm -rf /usr/local/f-prot # rm -f /usr/local/bin/f-prot # rm -f /usr/local/bin/f-prot-updates # rm -f /etc/f-prot.conf # rm -f /usr/share/man/man1/f-prot.1 # rm -f /usr/share/man/man5/f-prot.conf.5
Reason for edit: ( Total revision because of new verion F-Prot software - Jan 25 2009 )
-------------------- |
|
|
|
Sep 29 2004, 03:17 PM
Post
#271
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
HIDDEN MESSAGES
Here is a nice one for the secretive ones amongst you: How to hide a text file in a .jpeg picture. The result is you see a picture and nothing tells you there is a message hidden inside of it. The technique is called "Steganography", there are a few programs you can use but we will only show the most simple one here. First you need to download "outguess-0.2.tar.gz". Get it at http://www.outguess.org/ After you cd to the directory you downloaded it to, you do: CODE $ su < password > # tar -zxvf outguess-0.2.tar.gz # cd outguess # ./configure && make Then to have a link to the executable in your path: ( adapt the first part of the command to your situation ) CODE # ln -s /home/bruno/Downloads/outguess/outguess /usr/bin/outguess Now here is how you do it: you need a text file ( in this example we call it "file.txt" ) and a picture ( we call it "file.jpg" ) after that you issue the command: CODE $ outguess -d file.txt file.jpg output.jpg This will make the file "output.jpg" Unpacking is just as simple as wrapping: CODE $ outguess -r output.jpg file.txt Now, if you really want to be sure your data is safe you can password-protect the "output.jpg" too: CODE $ outguess -k "password" -d file.txt file.jpg output.jpg and unwrap: CODE $ outguess -k "password" -r output.jpg file.txt ( Note: extracing works without the password too, but you get an empty text file That is all there is to it More options are in the man-page: Here So, I told you there are other programs too: "Steghide" is such a one and available in the Mandrake contrib sources. You can read more about it ( and Outguess too ) here: http://distrowatch.com/weekly.php?issue=20040809#feedback But beware, there is a typo in the command they give to wrap the steghide file. This is the correct one: # steghide embed -ef file.txt -cf file.jpg -sf output.jpg NOTE: ( -ef . . not -pf like they say in the Distrowatch article Have FUN -------------------- |
|
|
|
Oct 5 2004, 03:41 PM
Post
#272
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
WIN-DRIVERS for WLAN-CARDS
Some vendors refuses to release specs or even a binary Linux driver for their WLAN cards. But there is hope: Ndiswrapper: QUOTE ndiswrapper tries to solve this by making a kernel module that can load Ndis (Windows network driver API) drivers. The goal is not to implement all of the Ndis API, but to implement the functions needed to get cards without Linux drivers to work. Hoempage ndiswrapper: http://ndiswrapper.sourceforge.net What is Ndis ? NDIS = Network Driver Interface Specification, read more about it here: http://www.ndis.com/ Now, how to get these Wlan Cards to work ? Here is the Tip from Martin Ultima: QUOTE (martinultima @ forum) Basic Steps Make sure you have kernel 2.4.20 or higher (2.6 recommended), with all sources !!! Also, make sure you have a PCI or PCMCIA (PC-Card) wireless adapter. USB doesn't really work too well at the moment. I have a NETGEAR WG311v2 and it works perfectly. Download the latest version of NdisWrapper from its SF.net Project Page. Save it to your home directory. Extract it using gunzip ndiswrapper-0.1.0.tar.gz && tar -xvf ndiswrapper-0.1.0.tar (substitute 0.1.0 for whatever version you have). su root so that you can be administator. Move NdisWrapper to (root's) home folder: mv ndiswrapper-0.1.0 ~ cd ~/ndiswrapper-0.1.0 To compile it, run: make && make install (The documentation says only use the latter, but that doesn't seem to work on Slack.) Now, insert your driver CD and mount it. cd to wherever the Windows XP driver is. Now, run: mkdir ~/wireless-driver && cp -r * ~/wireless-driver from the Windows XP folder. cd ~/wireless-driver (Better still be root Run ls *.inf. After you find the .inf file, run: ndiswrapper -i ./filename.inf. (filename being the .inf file's filename, of course Has the driver been found? Run modprobe ndiswrapper to load the kernel module. Use iwconfig to configure your card; the NdisWrapper INSTALL file (which I've based most of this on) and man iwconfig will be able to tell you more. Once it's configured, run ifconfig wlan0 up (or wlan1 or whatever your system uses). ndiswrapper -m should automate the process. Extra Steps for Slackware (No slacking off here! It took me forever to get my wireless card working on Slackware, because it failed to automate the first hundred times, but I got it working. The trick is to create a file called /sbin/startwireless and then set /etc/rc.d/rc.inet1 to run this new command. Make sure it's executable!! Now, the commands I have are: CODE modprobe ndiswrapper iwconfig wlan0 mode "Managed" essid "[i](essid goes here)[/i]" ap "[i](access point MAC address goes here)[/i]" ifconfig wlan0 192.168.0.9 up broadcast ip link set dev wlan0 up dhcpcd wlan0 You can change the IP address on the third line; this is the card's address, and you should obviously change it for each system if you have more than one. I prefer this one because it doesn't interfere with my other devices, and it lets me have a fixed internal IP address on my network for if I want to set up port forwarding to run a Web server on my PC or something. (I've done it before.) By the way... Don't forget the very last line!! That's the most important one!! (The one that took me forever to find Thanks Martin ! . . . . do expect a few PMs from people that have questions on this, because it seems quiete a hack -------------------- |
|
|
|
Oct 12 2004, 02:38 PM
Post
#273
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
SWAPPINESS ( The Great Swappiness Discussion )
. . . . . . . . . . . . . . . . . . . . HANDLE WITH CARE This is a complicated issue: there has been a discussion about the use of swap and the 2.6 kernel . . . . . and there are two sides to this issue, one says lower the default "swappiness" number the other side says put it to the max. Now the default setting for Mandrake is 60 . . . . the maximum is 100, the minimum is 0. and on cooker they advise to put it at 10. You can see what the current ( default ) swappiness is by doing: CODE # cat /proc/sys/vm/swappiness You can change the default by adding a line to "/etc/sysctl.conf" , the line should be CODE vm.swappiness=10 ( For the value 10 And after that reboot. Here is the swappiness discussion on kerneltrap: ( Warning: it is confusing ! ) http://kerneltrap.org/node/view/3000 http://linuxtoday.com/developer/2003102700926OSKNSW And here is a quote from Cooker: QUOTE Another source of slow downs is currently the kernel swappiness, which let the kernel swap to disk even if there is no need (at least IMHO) for doing that; there is a parameter called vm.swappiness, which defines the attitude of kernel to swap. Currently the default value is 60, but lowering to 10 or 5 would cause the machine to be better responsive, e.g. adding "vm.swappiness=10" to "/etc/sysctl.conf" Now, here is my take: I tried a few settings on my boxes and really can not notice the difference . . . . but that might be just because my boxes run really smooth, have enough CPU and RAM. So if you have little RAM, your KDE is slow or whatever, have a try but don't expect too much from this. . . . . on the other hand: you never know it might work for you ! . . . . . . . . . . . . . . . . . . . . HANDLE WITH CARE -------------------- |
|
|
|
Oct 19 2004, 03:06 PM
Post
#274
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
SLACKWARE TIPS 3
WARNING: Since Slackware 12.0 uses the 2.6 kernel, HAL and D-Bus this Tip is obsolete ! ( In Slack 12.0 No entries in /etc/fstab for the CD and DVD devices are needed. Just adding yourself to the plugdev group solves mount problems for CD and DVD. ) CD-ROM and CD-RW drives in Slackware There is a note addressed to root in an internal mail on every Slackware install, basically it says this: "You can pass the "hdc=ide-scsi" option on a boot disk command line ( Or include in the append line of lilo ). Once you do this, your CD-RW device will appear as a SCSI device (/dev/scd0) rather than an IDE device (/dev/hdc). If this is the only CD-ROM type device in the machine (there's no DVD drive, for instance), then you'll probably also want to change your /dev/cdrom symbolic link to point to the new SCSI device instead of the old IDE device:" CODE # rm /dev/cdrom # ln -sf /dev/scd0 /dev/cdrom Also, Rolana indicated that if you have the CD-ROM on hdb and the CD-RW on hdc you might want to change the permissions on hdb if you want to be able to listen to music CDs from the CD-ROM: CODE chmod 777 /dev/cdrom Multiple CD devices and fstab In most cases Slack only sets up one CD device in /etc/fstab . . . it is simple to add the DVD or CD-RW yourself . . . check with "ls -al" where /dev/cdrom links ( hdb or hdc ) and make your lines like this: CODE /dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0 /dev/cdwriter /mnt/cdwriter iso9660 noauto,owner,ro 0 0 In this example, unlike in the example at the top of this tip, /dev/cdwriter is linked to /dev/scd0 . . . . and make sure you make "/mnt/cdwriter" so the fstab can mount it there. -------------------- |
|
|
|
Nov 4 2004, 05:54 PM
Post
#275
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
BAD BLOCKS
There is a way to check for bad blocks on your hard drive in Linux and the command is even quite simple: A quick check of only one partition: ( read-only mode ) CODE # badblocks -v /dev/hda1 Note: A full 180 GB drive ( # badblocks -v /dev/hda ) takes about 45 minutes. Be sure not to use the partition you are checking. A longer, more extended check of one partition ( non-destructive read-write mode ) CODE # badblocks -n -v /dev/hda1 Note: The read-write check can best be done on a partition that is not mounted. You can find more info about the badblocks command: "man badblocks" -------------------- |
|
|
|
Nov 10 2004, 02:28 PM
Post
#276
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
PROBLEMATIC CANON PRINTERS
Most Canon printers work painlessly in Linux and are automatically set up . . . some however do give a few problems. Here are 2 ways people have been able to solve the problems: CASE 1: Canon BJC2555SP Printer connected to Parallel Port in Slackware Our good friend David struggled his way through getting his Canon Parallel Printer working in Slackware. Here is his solution to 2 problems he encountered: QUOTE CUPS Parallel Port lp and Slackware - Linux. Slackware v10: To enable CUPS to recognize the Parallel Port 'lp' in this Distro you will need to edit the following file with a text-editor. /etc/rc.d/rc.modules and go to the headers indicated here by the ####, and activate these two lines (Remove the red #) and 'Save'. QUOTE #### PC parallel port support ### # # /sbin/modprobe parport_pc io=0x378 irq=7 #### Parallel printer support ### # /sbin/modprobe lp Ensure the Printer is plugged-in and turned on, then re-boot. This should 'detect' both the port and the printer. You will still need to manually install the Printer drivers. Canon BJC255SP and Slackware - Linux. There is a lot of information on the Net that refers to the .pdd file Canon-BJC-255SP-bjc250gs.ppd as being suitable for for the above printer using Linux. I have found that NOT to be the case when activating the printer using Slackware CUPS. The .pdd file Canon-BJC-600-bjc600.ppd is used by Mandrake, SuSE and Yoper for the above printer, and I found it was also the suitable one for Slackware. But! it has to be imported into Slack using the CUPS 'other' option. If you need this .ppd file, you can try the link below, or find it in the /etc/cups/ppd directory of other Distros. http://www.linuxprinting.org/ Do NOT try to cut-&-paste these files as they have embedded Codes / Commands in them and they WILL be corrupted. Download them or copy to floppy if 'borrowing' them locally from another Distro. Edit: Also, don't be fooled by the name BJC-255SP being used by CUPS as the 'Installed' drivers. The Distro gets this title / name from 'reading' the printer BIOS and appends it to CUPS. And that is why it is sometimes confusing as to what .ppd file is the proper one to use for a particular Distro - Printer combination. Thanks David, this should help a good few other penguins to get their printers to do the job. CASE 2: Printer Drivers for Canon i printers: You can get official Canon drivers for your i series printers here: ftp://download.canon.jp/pub/driver/bj/linux/ You need the "bjfiltercups"-rpm and the matching "bjfilterpixusXXXi"-rpm ( where XXX is the model number of your printer and "pixus" is the way they call those printers only in Japan ) When during install you get dependency problems relating to "libpopt.so.0" install the "popt" package and do CODE # ln -s /usr/lib/libpopt.so.1 /usr/lib/libpopt.so.0 And try the install again.When both packages are installed successfully you have to restart cups and set your printer up to use the new drivers. Source: linuxforen.de PS: Debian packages for Canon printers: http://mambo.kuhp.kyoto-u.ac.jp/~takushi/canon-pixus25.html Also, Ubuntu specific: Canon PIXMA IP4000 drivers ( and others ) http://ubuntuforums.org/showthread.php?t=38995 -------------------- |
|
|
|
Nov 16 2004, 03:09 PM
Post
#277
|
|
![]() Le Professeur Pingouin ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin Emeritus Posts: 37,904 Joined: 4-April 03 From: Amsterdam Member No.: 611 |
VOIP WITH KPHONE
( FreeWorld DialUp with Kphone in Simply Mepis ) Our good friend Striker has made a how-to for Free World DialUp and how to configure it with Kphone in Simply Mepis. Here is his contribution: QUOTE (Striker @ Forum) Assuming you've registered for an account at http://www.freeworlddialup.com (FWD), you'll have received an email with your new FWD telephone number. Now all that's left to do is configuring kPhone to be able to call and receive calls. In order to be able to do so, you'll need to adjust the configuration of your Guarddog firewall amongst others. Let's try to guide you through the necessary steps to set up kphone step by step. Step 1 In order to adjust the Guarddog firewall settings, open up a konsole as user and type the below code: CODE $ su < password> # guarddog The guarddog firewall application window opens now, head over to the tab shown in the screen shot below : . . . . ![]() In order to be able to call and receive calls the Netmeeting - H.323 chat option needs to be checked. After you have checked the option box, click Apply : a new window will open asking for your confirmation, click Continue. Again a new window will open telling you the firewall rules were modified, simply click ok to dismiss that window. Now click ok in guarddogs' main window. Back in the konsole, type two times the exit command to get out of the root mode and close the konsole as user: CODE # exit $ blah blah blah $ exit Step 2 Open up kphone: if there's not an icon in the kmenu to be found, instead of searching for the program's icon, click on "Run command ..." in the kmenu, and type in "kphone" - without the quotes of course: kphone's little main window will then open. It looks like the screen shot below: . . . . ![]() Do not pin your self down yet as to what your kphone copy displays behind the sip: line, kphone isn't configured yet. To configure it, in the kphone main window click File > Identity ... in the menu bar - see the screen shot below : . . . . ![]() Now just fill in here all of your user credentials like you did when you registered for an account at FWD. Note : "your FWD number" consists of six numeric characters like 123456. The FWD number is what you'll have received in the email after registering with FWD. When you're ready click ok. TIP : Your FWD telephone number actually consists of 2 parts : the picture below explains this. . . . . ![]() Step 3 Go to Preferences > SIP Preferences ... in the menu bar. See the screen shot below left: . . . . ![]() Check those settings! Click ok. Step 4 Go to Preferences > Audio preferences ... in the menu bar : See the screen shot above right; check the settings: note the settings for Device for WriteOnly or ReadWrite. Click ok. Step 5 Go to Preferences > Video preferences ... in the menu bar Screen shot below : . . . . ![]() Step 6 KPhone is configured now: repeat the steps above and check your settings once again. By now, in kphone's main window, the line behind sip will be filled with something else, namely your FWD telephone number followed by @fwd.pulver.com; Now plug in a microphone and a headphone: back in the main window of kphone, type in 612@fwd.pulver.com, in the address field, - screen shot below - and click the first icon to the right of the address/number field (left from the video camera) : a new window will pop up asking your password - so fill it in, your user name will already be filled in automatically. Click ok. After a few seconds you'll hear the spoken time and date through your headphones. After that is completed, the connection will be cut off automatically. . . . . ![]() Back in the main window of kphone, instead of 612@fwd.pulver.com, type in 613@fwd.pulver.com, and click the first icon to the right of the address/number field again (left from the video camera), just like you did above; After a few seconds you'll hear a ringing tone: once the other side connects, you'll hear a message with instructions to test the echo cancellation mode. Once the settings are to your liking, hit the Hangup button: screen shot below. You will be disconnected immediately. . . . . ![]() Once these tests are over, you'll be ready to make your first real VoIP telephone call. Happy FWD-ing / calling! If you have problems, Striker will be happy to help you getting Kphone configured. Thanks a bundle for the clear howto Striker . . . -------------------- |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 2nd September 2010 - 09:35 PM |