Jump to content

aru

Members
  • Posts

    2022
  • Joined

  • Last visited

Everything posted by aru

  1. static Moderator Joined: 16 Apr 2002 Posts: 313 Location: Canada Posted: Thu Apr 25, 2002 1:19 pm Post subject: Setting up Mutimedia Keyboard Keys _________________________________________________________________ This courtesy of bradenm, edited by static For those of you who have newer keyboards with the special "multimedia" keys on top, here is how to get them working: First run xev(*see below) from the command line. (make sure that you focus on the window that comes up) Now press each mutimedia key that you have one at a time, and write down the keycode that comes up on the screen. Quote: KeyPress event, serial 26, synthetic NO, window 0x3000001, root 0x78, subw 0x0, time 1103834353, (106,671), root:(858,691), state 0x10, keycode 229 (keysym 0, 0), same_screen YES, XLookupString gives 0 characters: "" Next place text file (called something like "mmkeys") in your favorite window manager's autostart directory, e.g. ~/.kde/Autostart), make sure it is executable, and add the following lines: Code: #!/bin/bash xmodmap -e 'keycode xxx=F14' xmodmap -e 'keycode xxx=F15' xmodmap -e 'keycode xxx=F16' xmodmap -e 'keycode xxx=F17' xmodmap -e 'keycode xxx=F18' xmodmap -e 'keycode xxx=F19' xmodmap -e 'keycode xxx=F20' xmodmap -e 'keycode xxx=F21' xmodmap -e 'keycode xxx=F22' xmodmap -e 'keycode xxx=F23' (i.e. map each keycode to a function button above F13) Then open kmenuedit, or similar, select the program you want to run, choose "custom key" in the shortcut keys section, then press the multimedia key that you want to use for that app. e.g. choose konqueror, click custom key, and press your "internet" button. Save your changes, log out and in, and voila! your multimedia keys are working like a charm. Here are some apps I use: Mail: kmail --check Internet: kfmclient openProfile webbrowsing Search: mozilla Sleep: xset dpms force standby Calculator: kcalc *If you get a 'command not found' when you try to run xev, install "X11R6-contrib" - if an rpmdrake search doesn't bring any results, check "search by file" and/or "search by description". In this case, you had to search by file. Extra thanks to bradenm for this. bradenm Frequent user Joined: 01 May 2002 Posts: 69 Location: Kelowna, BC, Canada Posted: Thu May 02, 2002 2:47 am Post subject: Sound Adjustments _________________________________________________________________ I figured out how to adjust the volume! Here are the commands: Vol Up: aumix -v+10 Vol Down: aumix -v-10 Tada! note: You may need to install aumix (on your cd's) for this to work. Doggy Frequent user Joined: 03 May 2002 Posts: 33 Location: Aberdeen UK Posted: Mon May 06, 2002 8:12 pm Post subject: _________________________________________________________________ Thanks for this - works great. The only thing I have been unsure on is getting the screenlock to activate from a multimedia button. I always used to just use xlock, but I can't find that anymore. I generally run kde, so getting one of the .kss screensavers to run would be good but when I execute them (eg. krozat.kss), they just run in a window. Any ideas? Cheers, Doggy bradenm Frequent user Joined: 01 May 2002 Posts: 69 Location: Kelowna, BC, Canada Posted: Mon May 06, 2002 8:55 pm Post subject: Use DCOP _________________________________________________________________ Locking screen & running a screensaver is easy - using DCOP. Here are the commands: Lock Screen: dcop kdesktop KScreensaverIface lock Screensaver: dcop kdesktop KScreensaverIface save There are more commands available - run kdcop for a complete list. Mystified Senior user Joined: 01 May 2002 Posts: 628 Posted: Thu May 09, 2002 2:40 pm Post subject: _________________________________________________________________ I still can't get mine to work. It doesn't do anything when I press any of my keys. The little window pops up but the only thing it recognizes is the motion of the mouse. I even found this article which is about HP Multimedia keyboards which is what I have but it didn't help with my problem.. I keep wondering if there's something else that needs to be configured differently on my system. static Moderator Joined: 16 Apr 2002 Posts: 313 Location: Canada Posted: Thu May 23, 2002 8:32 pm Post subject: UPDATE _________________________________________________________________ OK! I've written my own keycode mapper - no longer do the masses need xev! It's a pretty little X program that you just click exit when done! Don't even need to run it from a console - the output goes straight to the window! E-mail me for a copy! Licenced under the GPL, of course! frew Senior user Joined: 01 Jun 2002 Posts: 214 Location: Mississippi Posted: Mon Jun 10, 2002 8:57 pm Post subject: _________________________________________________________________ that keycode mapper static wrote works great. I would suggest it to anyone who wants to use a kb like this. Nice static! static Moderator Joined: 16 Apr 2002 Posts: 313 Location: Canada Posted: Tue Jun 11, 2002 3:48 am Post subject: _________________________________________________________________ <bows very low> thank you for your kind words! Someday, when I'm better at X windows programming, I'll have it binding the keys right within the program! Choose the action, press the multimedia key, click next. bradenm Frequent user Joined: 01 May 2002 Posts: 69 Location: Kelowna, BC, Canada Posted: Wed Jun 12, 2002 3:48 am Post subject: _________________________________________________________________ Hey guys, check this out! This is AWSOME! Cloim Newbie Joined: 16 Jun 2002 Posts: 3 Posted: Sun Jun 16, 2002 7:23 pm Post subject: _________________________________________________________________ On the script file, how do I 'Make sure it is executable' ? I can run the script in a console ('bash mmkeys') and it works, but haven't been able to get it to autorun. On volume adjustments: KDE shows background activity for aumix long after it's done it's thing.Wouldn't bother me except it slows down and/or prevents additional adjustments. If I have it run from a console things improve but I get a console flash in and out when it runs. Can that be prevented? I tried the LinEAK prog, it opens and runs a new aumix every time I hit the volume key. spider Frequent user Joined: 21 Jul 2002 Posts: 65 Posted: Thu Aug 01, 2002 9:33 am Post subject: Re: Use DCOP _________________________________________________________________ bradenm wrote: There are more commands available - run kdcop for a complete list. In order to tie a keyboard shortcut to the "show desktop" button first in the kicker, I digged the list again and again without any achievement. And I can NOT find any useful information at google. I even look into the source of CVS version, and I find nothing of how to use dcop to show desktop. (And to my surprise, in kmenuedit, I can't specify a key to "show desktop" either) Could you give me some clues? Thanks syouth333 Newbie Joined: 09 Jul 2002 Posts: 4 Posted: Mon Aug 12, 2002 2:12 pm Post subject: _________________________________________________________________ does anybody know what to do with an IBM media access pro keyboard some of the multimedia buttons along the top dont work. how do i get the keycode for a button that isnt read? spider Frequent user Joined: 21 Jul 2002 Posts: 65 Posted: Mon Aug 12, 2002 3:57 pm Post subject: _________________________________________________________________ I find a ultimate way to make most of my keyboards try xbindkeys, and I just write a GUI frontend to config it on the fly,but it under development also there is another GUI frontend, named as xbindkeys_conf. The program I am working on is a bitter powerful than it. If you want a try, I will send you. DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Wed Sep 04, 2002 6:19 pm Post subject: _________________________________________________________________ Well, I got a new keyboard today. Has 23 keys... I found out that you can't map to over F35... Don't know why. Anyhow, I had to start at F13 and go all the way to F35... Heh. Xev is cool, so is bbkeys and xmodmap! spider Frequent user Joined: 21 Jul 2002 Posts: 65 Posted: Sun Sep 08, 2002 7:45 am Post subject: _________________________________________________________________ Xev ? But it seems it does not exist in my mandrake box. Where do you get it? DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Sun Sep 08, 2002 7:53 am Post subject: _________________________________________________________________ Code: urpmi xev [/i] [color=red] [b]bvc81[/b] Eric Joined: 04 Jun 2002 Posts: 1014 Location: Houston, Texas Posted: Sun Sep 08, 2002 3:00 pm Post subject: _________________________________________________________________ [/color] xev is part of the X11R6-contrib-x.x.x-xmdk.i586.rpm [color=red] [b]DOlson[/b] Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Sun Sep 08, 2002 8:09 pm Post subject: _________________________________________________________________ [/color] heh... Same thing. urpmf xev Then install the result. [i][b]Editor's note:[/b] This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).[/i]
  2. static Moderator Joined: 16 Apr 2002 Posts: 313 Location: Canada Posted: Thu Apr 25, 2002 12:52 pm Post subject: Installation: Filesystem Layout _________________________________________________________________ Filesystem Layout Partitioning by static - small edit by afrosheen Your filesystem is the base of your computer. It is a structure in which all your files are kept, ranging from files that run the operating system to files such as e-mails or mp3 music files. Rather than keep every file in one giant mess, they've been sorted out into groups of files that belong together and kept in "directories", or folders as they're called in other operating systems. (Think of it this way, if you went fishing and caught a salmon, a pike, a bass, and a minow, you wouldn't want to keep them all in one tub, would you? OF Course Not! That would be insane! You want a different tub for each fish. The fish are the files, and the tubs are the directories.) Without going into too much detail (we'll cover directories more later), here's what you need to know to install linux. / - the root directory - every other directory is contained within / (and that is why we usually write their names preceeded with a / - it's the root of the filesystem) /bin - This isn't a bin for trash! This is where system binaries are kept. Binaries are executable files that you can run, and they are for programs that run the operating system. /boot - All the files for booting up your computer and loading the OS are kept in here. Some may choose to make this a seperate partition rather than branching from the / directory for safety. If you choose to create this partition, it must be the first partition you create for linux. It doesn't need to be larger than 10 megs. /dev - All your devices, like CDROMs and floppy drives, are in here /etc - this is where the system configuration files are kept (the way the OS is setup, so to speak) /home - Within home, there is always a directory for each user. If your name is Joe, you are only allowed to download and save files (or change existing files) in /home/joe (sometimes called ~) /usr - this is where applications go. Inside /usr looks very much like a mini / but the difference is instead of OS binaries or configs, it's the binaries or configs for applications not vital to the OS such as office or games. All users are allowed to run apps in /usr, but they aren't allowed to alter or delete the files there in any way. - /usr/bin - binaries for apps like office or games - /usr/etc - configs setup for them - /usr/src - source code for the apps (preinstalled packages) /sexygirls - I can't tell you what I keep in here (but I can tell you they don't think I'm funny when I tell them I'd "give them access to my harddrive") /var - If you're running a server, the files that you are serving other people on the internet (like music or webpages) would be contained in here. When installing linux, you have the option of dividing up the space on your hard drive into separate sections (or parts) called partitions. This can be handy, as it can improve the stability and security of your system. Here's an example: Your operating system tends to begin operating poorly if it's running out of space. You could, therefore, take say a 10 Gig hard drive and divide it into 2 partitions (5 gigs each), one for / and one for /home. Now, if you download music like crazy into /home/joe, you aren't using the space given to /! If you try to download more than 5 gigs of music, you'll be told you're out of space, but the operating system is still as happy as a pig in the mud, because his space hasn't been invaded by your gigs of Amish dance music. To take that example and apply it to your own linux let's consider a few things. First of all, downloading music won't be the only thing you'll want to do with your PC. You will want to install applications and games, and these get put into /usr if you recall. We still don't want the OS's space being invaded (and some applications won't run too well if you're out of space, also). So, to keep your shiny new Klingon Wheel of Fortune Game AND your OS running smooth, it's a great idea to have a separate partition for / (for the OS), /usr (for the Klingons), and /home (for the Amish dance music). Also, linux (like other OS's) uses Swap space - which is just used like imaginary RAM. The difference with linux is linux likes to keep a partition solely for the Swap. Another OS, we'll call it wino-dows, just uses a swapfile on the same partition as the OS. This can make things unstable, though, if the swapfile needs more space but that space is already used up by the OS, the wino-dows version of Klingon Wheel of Fortune, and your Amish dance music! So you see why multiple partitions is a very smart idea (thank you linux, thank you). So when installing linux, you must decide how big to make these partitions. One of the most common partitioning practices is to have 4 partitions: / , swap, /home, and /usr (usually in that order). If you're running a server, you'd want one for /var as well, but we'll assume you're not just yet. / usually needs around 300MB, and the swap should be 400-500MB. After that, the remaining space should be divided between /usr and /home according to how you think your PC will be used most. Will the PC only be for the ten kids to download music? If So, make /home bigger. Will it just be one or two people playing lots of games and installing apps? Make /usr bigger. I like to have /usr bigger, because almost anything I put into /home/static I end up burning onto a CD anyway, and I'd like to have the space for installing apps games. Sam French Newbie Joined: 27 Jun 2002 Posts: 14 Posted: Fri Jun 28, 2002 2:16 am Post subject: _________________________________________________________________ Hey I a newbie and I just priinted your page out. THANKS for the info. Maybe on of these decades I will get this thing working. Maciek Frequent user Joined: 04 Jul 2002 Posts: 86 Location: Perth Posted: Thu Jul 04, 2002 12:14 pm Post subject: Different hdds _________________________________________________________________ IMHO it's also good to spread the partitions over different hard drives. For example I have my swap partition on separate harddrive, and I noticed significant speed increase (especially while using VMware with WindowsXP), my hard disks don't "grind" so much anymore. Accessing two hard drives at the same time is much faster than accessing one (I think up to twice as fast). Hinsight4 Frequent user Joined: 12 Jul 2002 Posts: 45 Posted: Fri Jul 12, 2002 9:58 pm Post subject: Thanks! _________________________________________________________________ This partitioning doesn't sound so scary anymore. Now if someone could explain the different types of formatting the partitions, it would be all set. Thanks a lot, this helps more than you know! Afrosheen Moderator Joined: 16 Apr 2002 Posts: 197 Location: Dallas, TX Posted: Sat Jul 13, 2002 4:53 am Post subject: _________________________________________________________________ I'll try to explain the filesystem types briefly. First I need to subdivide the fs types into two categories: journaling and non-journaling. Journaling filesystems include: xfs, jfs, reiserfs, and ext3. There might be one more but these are the major ones. Non-journaling filesystems include: ext2, swap. The swap is a special partition type so I don't know if it really counts or not, just threw it in for completeness. It IS, however, it's own fs type, whether you use reiser or whatever, swap is swap. The difference between journaling and non-journaling filesystems is that journaling fs's keep a log, or a journal, of bits written to the disk. This is also called a meta-data system, because in effect, data is stored about the rest of the data on the disk. The benefit of keeping a log/journal of the rest of the info on the disk is for safety. Look at it this way: Newbie lets his server run all day and all night. Once in awhile the power goes out and resets his computer. With a non-journaling fs like ext2 he may lose data and may experience filesystem corruption when the machine resets because the disk isn't properly finalized and unmounted safely. With a journaling filesystem, the filesystem compares the dates on the log with other info on the drive, replaying the log to repair/replace lost data. Did I mention it's really, really fast too? Ext2, in the event of a crash, forces fsck to run. Fsck is the filesystem checker utility that checks/repairs partitions much like scandisk on windows. Journaling filesystems don't require a fsck very often, if at all. They replay their logs and keep going. Now that you understand the benefits, let's examine (very, very lightly) the advantages/disadvantages of each journaling filesystem. You'd be wise to choose one based on what you need. Reiserfs: A. Benefits 1. A very efficient filesystem that journals metadata. It also uses very small blocks so it's even more efficient, because if a tiny text file is just a few bytes, and there are many, they'll all get packed into one block rather than written as separate blocks. 2. Journals metadata. This can be considered a partially true journaling filesystem, because it's not redundant. A true journaling filesystem actually mirrors the data in a sense. Reiser does not. 3. Very fast with huge files. Because of the way it journals, it merely moves pointers in the log rather than physically moving gigantic (1gb or more) files. I'm not 100% sure about this but you can do your own research Smile 4. Better than ext2 for the filesystem performance and journaling alone. 5. Large maximum file size. Ext2 is limited to 2gb, Reiser is limited to 4gb. B. Disadvantages 1. Not a true journaling filesystem, so it doesn't protect you 100% from losing data. 2. Not good with lots of medium-sized files. 3. Not 110% stable with older 2.4.x series kernels. Personally I have never had a problem with it but other people with other distros have. Edit: ReiserFS can now be considered "stable" and is the recommended filesystem 4. Not easy to recover data from like ext2, there just aren't any tools. JFS: A. Benefits 1. A true journaling filesystem. Not only does it log but it more or less mirrors data (jounals). 2. Large filesize support. Again, ext2 can only handle a 2gb file, JFS can handle between 512 terabytes to 4 petabytes. That's a big file. Wink 3. Developed and supported by IBM, used for many years across many systems and there are lots of server people familiar with it, but... B. Disadvantages 1. Although it's mature on other systems, some linux people believe it's still too cutting-edge. Not a great idea for a primetime server. Still needs work under linux. 2. While it's a true journaling FS, that journal comes at a price. Performance isn't as quick as Reiser or EXT2. XFS: A. Benefits 1. Very, very fast. SGI has been using XFS on their IRIX boxes for years, and considering what they do for a living, they need filesystem speed above all else. This has made it popular for linux as well. 2. Very large files supported. Again, EXT2 is stuck with a 2gb limit while XFS can handle between 16-64 terabytes. Gigantic. In the future when linux adopts 64bit disk I/O, this number scales to over 1 million terabytes. 3. Dump/restore tools come with XFS and they work as expected. B. Disadvantages 1. Not a true journaling filesystem. Like Reiser, it sacrifices true journaling for speed. Not a bad tradeoff actually. 2. Some people believe SGI isn't serious about Open Source, or at least not as serious as IBM. Their motives are questionable at this point. Not really a disadvantage but support for XFS in the future may/may not continue. I've used Reiser for a couple of years now and have grown to trust it and enjoy it's performance, even on crappy older computers. I've never experienced corruption like others have mentioned on the net so personally I recommend it. I've also used XFS and JFS, and I'm torn on which one to put above the rest. They're all pretty equal IMHO but I've used Reiser for the longest so I can testify to it's reliability. For your own research and sanity, here are links to the filesystems I mentioned: XFS info at JFS info at Reiserfs info at Reiser4 looks so sweet. Edit: ReiserFS can now be considered "stable" and is the recommended filesystem ramfree17 Moderator Joined: 18 Apr 2002 Posts: 1262 Location: Philippines Posted: Sat Jul 13, 2002 7:14 am Post subject: _________________________________________________________________ i was reading afro's great light comparison but he didnt mention about ext3 which is basically a ext2 filesystem with a journalling layer on top. this makes is slower than ext2 but its great enough for my use (i also have reiserfs partitions. Wink ) another not well known filesystem is tmpfs. its not really a filesystem but 2.4.x kernels have one but generally unused. why is this so? well because this filesystem is your memory (RAM+swap). if you will use this filesystem then you will be storing files on your memory instead of the harddisk. the pro of this is that its great for /tmp or other temporary directories as the files writtent there will be deleted with every reboot. the disadvantage is that this takes up your memory. let me give an example. ex. you have 64MB RAM + 128MB swap. you decided to make /tmp as tmpfs and you copied a 160MB file to /tmp. this will make your system memory drop to 32MB (not taking into consideration those taken up by services and other apps). you opened an application that needs 40MB of memory. since you have a 8MB deficit, the kernel will aggressively kill the application hugging the most resources, which is usually your X Windows Server. Sad but dont fret as you could use tmpfs and specify the maximum amount of MB that it will take up. btw, your systems tmpfs system is usally designated as /dev/shm or something like that (type mount and you will see what i mean). ciao! Hinsight4 Frequent user Joined: 12 Jul 2002 Posts: 45 Posted: Sat Jul 13, 2002 11:26 pm Post subject: Thanks! _________________________________________________________________ Thanks a lot for the information. That makes a lot more sense now and I think that I can get it all starightened out. Thanks again, that was very helpful! Thanks, Hinsight4 Laughing sminons Newbie Joined: 13 May 2002 Posts: 20 Posted: Sat Oct 05, 2002 8:04 pm Post subject: One filesystem to another? _________________________________________________________________ Once set, can the filesystem be changed ?,say ext2 to ext3?..of for that matter anyfilesystem to any other?. Thanks in advance. arusabal Moderator Joined: 17 Apr 2002 Posts: 836 Location: Spain Posted: Sun Oct 06, 2002 1:00 am Post subject: _________________________________________________________________ Check this thread at tips&tricks There I explain the worst scenario in how to migrate from one filesystem to another. If you just want to migrate from ext2 to ext3, then that's as easy as using "tune2fs -j /dev/partition" and change "ext2" to "ext3" in /etc/fstab (But before doing nothing, please read man tune2fs). Also you need to have support in the kernel for the new fs (which is quite probable) Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  3. Omar Serenity Moderator Joined: 16 Apr 2002 Posts: 358 Location: Michigan Posted: Thu Nov 07, 2002 6:59 am Post subject: Alcatel Speedtouch USB DSL modem (LONG) _________________________________________________________________ Ok....this is what you do. Ready? Guess so....heh heh. Read my whole post before you actually follow any links in it Go here and download the Alcatel driver: Open a shell (the little TV screen looking icon at the bottom of your screen) and type this (anything you see me type inside of [ ] is just a comment or an action, you don't actually have to type that...LOL): Code: su [enter] [enter your root password][enter] Make sure there is a /usr/share/speedtouch/ directory on your system. If there is not, create it with: Code: mkdir /usr/share/speedtouch [enter] Navigate to the directory where you put the downloaded tar file you just grabbed from the download site I sent you to (I'm gonna assume you put it in /home/omar/): Code: cd /home/omar [enter] tar -zxvf speedmgmt.tar.gz [enter] cd mgmt [enter] cp mgmt.o /usr/share/speedtouch[enter] I don't care what you read on any site (even the one I'm gonna send you to), you don't need anything else...you won't have to download or run any other script/rpm. You will have to manually edit some files, though, as this suggests ( found at ): Quote: Pppd configuration Check your pppd version by typing : # pppd --version. Drivers are tested with pppd 2.4.0 and 2.4.1. They also run fine with older versions, per example pppd 2.3.11 shiped with the Potato Debian GNU/Linux. To configure pppd, you'll have to edit 4 files. 1st file : You should have an /etc/ppp/options file, edit it and keep these 4 lines in it (comment all extra lines with a #) ------------------ /etc/ppp/options Beginning ------------- noauth usepeerdns lock noipdefault ------------------ /etc/ppp/options End ------------------ 2nd file Create /etc/ppp/peers/adsl : # mkdir /etc/ppp/peers # touch /etc/ppp/peers/adsl Copy and paste what follows (without the "---" Wink ) -------------------/etc/ppp/peers/adsl Beginning------------ # # This file could be rename but its place is under /etc/ppp/peers # To connect to Internet using this configuration file # pppd call adsl, where "adsl" stands for the name of this file # debug kdebug 1 noipdefault defaultroute pty "/usr/local/bin/pppoa3 -m 1 -c -vpi 8 -vci 35" sync user "your_login_here" noauth noaccomp nopcomp noccp novj holdoff 4 persist maxfail 25 usepeerdns ------------------/etc/ppp/peers/adsl EOF------------------ If for an unknown reason pppoa3 failed, you can still try the old pppoa2 daemon. You should change the pty "/usr/local/bin/pppoa3 -m 1 -c -vpi 8 -vci 35" line by pty "/usr/local/bin/pppoa2 -vpi 8 -vci 35" For more details about pppoa2/3, type "man pppoa3, man pppoa2". Don't forget to adapt the vpi and vci values in the line : pty "/usr/local/bin/pppoa2 -vpi 8 -vci 35" Note about the VCI/VPI pair [ if you are hurry go to the next section ;^) ] : As your connection goes through ATM, 2 new parameters appear : VPI : Virtual Path ID VCI : Virtual Circuit ID What are their function ? That's a good question. They are used to identify your Virtual Path Connection (VP) and your Virtual Circuit Connection (VC). They simplify the network management, minimizing connection delays. They allow cell commutation too. An ATM network looks like this : VC--------|----|-------------|----|-------- VC--------| VP | | VP |-------- VC--------|----| Transmition |----|-------- | Path | VC--------|----| |----|-------- VC--------| VP | | VP |-------- VC--------|----|-------------|----|-------- 3rd file : 2 protocols can be used by providers to identify their users: CHAP or PAP. Depending on your provider, edit /etc/ppp/chap-secrets or /etc/ppp/pap-secrets. These fields look like this : -------------------/etc/ppp/chap-secrets Begining-------------- # client server secret IP addresses "your_login_here" "*" "your_password_here" "*" -------------------/etc/ppp/chap-secrets End------------------- If you don't know what protocol is used by your provider, you can fill in both files, it won't hurt. 4th file : Edit /etc/modules.conf (or /etc/conf.modules if your system is a bit old) and add the following lines : alias char-major-108 ppp_generic alias /dev/ppp ppp_generic alias tty-ldisc-3 ppp_async alias tty-ldisc-13 n_hdlc alias tty-ldisc-14 ppp_synctty alias ppp-compress-21 bsd_comp alias ppp-compress-24 ppp_deflate alias ppp-compress-26 ppp_deflate Some entries are useless, but once again they won't hurt You still have your shell open, right? And you're still logged in at the shell as root, right? Good. You're going to be editing files when they tell you. To do this, you'll have to edit them as root. The easiest way to get to them is to open konqueror as root (or galeon) and navigate to their directory and right click and select "Open with...">Applications>Editors>Advanced Editor. To open konqueror as root, in the shell type: Code: konqueror [enter] since you're still logged in as root from what we did before. In their instructions, you'll see this line in one of the files: Quote: pty "/usr/local/bin/pppoa3 -m 1 -c -vpi 8 -vci 35" [/code] (For some versions of Mandrake, you may have to change it to "/usr/local/sbin/pppoa3....yadayada" instead. I don't know when or if you may have to do that, but if you've tried everything else, and it doesn't work, try that.) The two numbers in bold are specific to your location. If you were in America, then the combination I put there is the right one. Unfortunately I can't remember the link to the common -vpi -vci number combos for different nations, but I can try to locate that for you. After you are done editing all the files, then do this in the shell: Code: modem_run -m -f /usr/share/speedtouch/mgmt.o [enter] [wait for the modem to initialize and give you back a prompt] pppd call adsl [enter] [wait a few seconds to make sure you are connected] ifconfig [enter] You should see a ppp0 interface with a real IP as well as a lo with 127.0.0.1 If you don't see the ppp0 interface, then first edit the files that have your username and password and if you put the @yourisp.com in there, take it off and try again. If you didn't put the @yourisp.com, put it in there and try again. Some providers want the whole email address and some don't. Specifically for Mdk 8.2 and possibly 9.0 Do not under any circumstances run any of Mandrake's internet configuration tools to set up your account or it will break all the manual edits you did and you will have to go fix them. I hope this helps. Last edited by Omar Serenity on Fri Nov 08, 2002 7:02 am, edited 3 times in total highwayman Newbie Joined: 16 Dec 2002 Posts: 1 Posted: Mon Dec 16, 2002 6:28 pm Post subject: Mutex destroy failure _________________________________________________________________ Thanks to your thread on setting up the speedtouch usb modem, i eventually got connected using the new Mandrake 9.0 distro. I configured it so that the internet connection would start on boot. After i got connected, i installed quiet a few packages from Mandrake and set up the shorewall firewall. I installed one or two other programs and everything worked perfectly. Email was coming and going and surfing was no problem. When i booted back to windows for other things, on returning to Mandrake, i saw the modem go through its series of flashing lights and then the two stable green ones. I opened up a shell and typed ifconfig and saw both entries as should be. But impossible to surf the net with KDE, or received email. Nothing would work, so i must have been unconnected but ifconfig says otherwise. Shortly after, in the shell i get the following message: Mutex destroy failure: Device or resource busy deinit: Fatal IO error: client killed deinit: sending SIGHUP to children deinit:sending SIGTERM to children deinit: Exit Following the post above, i did not configue any internet connection using the Mandrake Control. At a complete loss as to what i should do now. Any feedback on this would be much appreciated. Many thanks Crying or Very sad Omar Serenity Moderator Joined: 16 Apr 2002 Posts: 358 Location: Michigan Posted: Fri Jan 03, 2003 4:45 am Post subject: _________________________________________________________________ Mutex has nothing to do with Speedtouch or any of that other stuff as far as I know. It just sounds like your DNS servers are wrong. Can you type in an IP to a site and get there? Make sure /etc/resolv.conf has the right DNS servers for your ISP. Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  4. DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Wed Apr 24, 2002 11:44 pm Post subject: Some Mandrake tutorials for newbies _________________________________________________________________ This is my website, hosted on Afrosheen's Tuxbox: The tutorials are quite thorough, and have worked for many people. They are very step-by-step, aimed at newbies, and should work just fine. The tutorials I have there include: * Bass and Treble on an SB Live!/Audigy card using OSS drivers * Agfa SnapScan e20 scanner in Linux * Ripping CDs to OGG Vorbis files * Installing NVidia drivers from the command line * Installing Aliens VS Predator Gold * White Mouse Cursors * Digital CD Audio playback with XMMS * Getting Your Interact or Sidewinder Gamepad to work * Installing Quake in Linux using the DOS/Win CD * Connecting DSL using PPPoE automatically at bootup. * Installing Shockwave Flash for Galeon, Mozilla, Konqueror, and Netscape * Installing WineX from CVS * Resetting the Root Password * Fixing the Trash Icon * Chatting on MSN in Linux * Restarting Kicker (taskbar) * Extracting Archives (tar.gz, zip, etc.) * Installing Unreal Tournament * Benchmarking Your Hard Drive * Getting Lexar Media's JumpShot USB CompactFlash Card Reader to work * Fixing Broken Drive Icons in Mandrake 8.1 * as well as a Console Quick Reference The list will continue to grow, and I will update in this thread when I add something new. So, before posting problems, you can go here and get some help for these issues. If you have any problems, email or IM me (contact info on webpage). If all else fails, post on the board. These are topics that have been done to death in the past, and by reading these, your problems can be solved quickly without cluttering the board with repeat material. Last edited by DOlson on Thu Oct 03, 2002 4:44 am, edited 11 times in total DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Sat May 04, 2002 7:51 pm Post subject: _________________________________________________________________ Okay. I updated the list above. I am reworking the site starting today, so fairly soon it should look different, assuming I don't go and get lazy... Heh. pievdb Newbie Joined: 07 May 2002 Posts: 1 Posted: Tue May 07, 2002 12:35 pm Post subject: nice tutorials _________________________________________________________________ hey, nice work this evening I'm going to check them out, I really hope they'll work wireddad Newbie Joined: 06 May 2002 Posts: 14 Location: usa Posted: Thu May 09, 2002 9:54 am Post subject: appreciate it _________________________________________________________________ dolson, i just want to say that i appreciate you taking the time to create these tutorials. i can use all the help i can get. thanks. Smile DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Thu May 09, 2002 5:04 pm Post subject: _________________________________________________________________ No problem. Thanks for actually going there. I am honoured that two people have given me their first posts!! That is nice! Many of my personal friends don't even read my site before they start asking me questions... Gah! I should be adding more soon too. Oh, email me any requests. seanmckinney Newbie Joined: 01 May 2002 Posts: 13 Location: Belfast N. Ireland Posted: Thu May 09, 2002 9:33 pm Post subject: Some Mandrake tutorials for newbies _________________________________________________________________ Excellent idea and hopefully implementation but could I also ask for tutorials on things like fstab, mount, permissions, and the -o options eg suid. I realise that these are basics but I dont speak computer yet and I have wasted hours looking for single sentences that clarify stuff, I still havent fathomed suid and I am sure I am not the only idiot around, my previous posts (now deleted I hope) bear witness to my plank like nature. No offence meant by posting this as a reply to DOlson's original, I would have posted it as a new topic I cant. Helios Newbie Joined: 09 May 2002 Posts: 2 Location: Antwerp, Belgium Posted: Thu May 09, 2002 9:33 pm Post subject: _________________________________________________________________ I like your site. It is always nice to see some tutorials dedicated to linux newbies. They are very easy to understand! Very Happy I bookmarked your site, so keep up the good work Cool DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Thu May 09, 2002 9:43 pm Post subject: Re: Some Mandrake tutorials for newbies _________________________________________________________________ seanmckinney wrote: Excellent idea and hopefully implementation but could I also ask for tutorials on things like fstab, mount, permissions, and the -o options eg suid. I realise that these are basics but I dont speak computer yet and I have wasted hours looking for single sentences that clarify stuff, I still havent fathomed suid and I am sure I am not the only idiot around, my previous posts (now deleted I hope) bear witness to my plank like nature. No offence meant by posting this as a reply to DOlson's original, I would have posted it as a new topic I cant. Hey, umm... I am still waiting for something that is *supposed* to cover this stuff from static. I suppose I could do it myself, but uhh... He said he was gonna do it... Like a long time ago... As for suid... I don't know what that is either. I probably do know, but I don't know right now, you know what I mean? If someone said "suid does this and is this..." I would go "oh yeah..." but since I don't ever use it, I don't know off hand what it does.... But I will see what I can do. I am done a Quake tutorial. I am gonna add it probably today. Just want to add some new links and whatnot before I do an update. seanmckinney Newbie Joined: 01 May 2002 Posts: 13 Location: Belfast N. Ireland Posted: Thu May 09, 2002 10:35 pm Post subject: Some Mandrake tutorials for newbies _________________________________________________________________ Blimey that was quick. Thank you DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Thu May 09, 2002 11:47 pm Post subject: _________________________________________________________________ I added Quake now. flare Frequent user Joined: 14 May 2002 Posts: 60 Location: Bournemouth, UK Posted: Tue May 14, 2002 11:52 am Post subject: _________________________________________________________________ You might want to incorporate this article, To not only tell the speed but how to speed up your disk access. Smile DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Tue May 14, 2002 2:28 pm Post subject: _________________________________________________________________ I have thought about it, but it is a dangerous thing, hdparm. Especially for newbies. I even foobared my wifes PC just before 8.2 came out because I messed up her HD using that. It corrupted EVERYTHING. teòma Frequent user Joined: 14 May 2002 Posts: 28 Location: Sweden Posted: Wed May 15, 2002 2:56 pm Post subject: _________________________________________________________________ Excellent! I added that to my favs, don't have time to check it out right now (only 5 minutes of work time left Very Happy ) but I will tomorrow, hopefully they are easily printable. Thanks for thinking of us newbies too Smile Almost forgot to ask, these work on 8.1 too? (will DL 8.2 soon tho or is it worth it?) DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Wed May 15, 2002 10:18 pm Post subject: _________________________________________________________________ If it is 8.2-specific, it'll say so. If it is 8.1-specific, it'll say so. Smile ciao! static Moderator Joined: 16 Apr 2002 Posts: 313 Location: Canada Posted: Wed May 15, 2002 11:09 pm Post subject: _________________________________________________________________ You be suprised at how much of those I actually have done - but with school, girlfriend 8 hours away, and work, it's been inching along for a while. I will get it done, trust me Wink It covers: * Brief History of linux * Filesystem / Partitioning Layout * Installation + Mandrake + Red Hat + Slackware + SuSE + Lycoris + Debian (from Sarah31 but I don't think I'll get it from her) * Command line + What a file and directory is + Directory Structure + commands: cd, ls, rm, mv, cp, mount, umount, ETC + switches: -R, -l, -a, | (pipe), ETC + How to use vi + Being a user/ Being root + Permissions + more * RPMing and Compiling Source * Cool apps + cd-burning + file-sharing + listening to music/watching movies + office apps + browsers + more * Compiling a kernel * nVidia Drivers * X + windows managers/desktop environments + XFree86 + Mandrake Config GUIs + more * How to get Help (the Polite Way) arusabal Moderator Joined: 17 Apr 2002 Posts: 836 Location: Spain Posted: Wed May 15, 2002 11:17 pm Post subject: _________________________________________________________________ GUAU!!!!! Shocked Forget skapergoats, run to O'Reilly & Associates and sell them the book you are writing!!!!! Twisted Evil static Moderator Joined: 16 Apr 2002 Posts: 313 Location: Canada Posted: Fri May 17, 2002 2:21 am Post subject: _________________________________________________________________ Jeez! You're telling me! It's taking me soo long! My girlfriend is editing the first 3/4 now - she's perfect 'cause she knows nothing about linux ... yet. I'm installing gentoo or mdk 8.2 tomorrow for her. DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Fri May 24, 2002 4:25 pm Post subject: _________________________________________________________________ I added a gamepad tutorial today, and I updated the NVidia drivers tutorial. chadm1967 Newbie Joined: 02 May 2002 Posts: 24 Location: Racing capital of the World. Posted: Fri May 24, 2002 5:49 pm Post subject: _________________________________________________________________ Very, very nice site. I'll be visiting regularly. I was thinking of creating a site like yours. No need to now........ Very Happy DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Fri May 24, 2002 7:13 pm Post subject: _________________________________________________________________ Thanks chadm1967! I just updated again - this time the WineX CVS tutorial. mandrakewilson Frequent user Joined: 02 May 2002 Posts: 49 Location: Oklahoma Posted: Sun May 26, 2002 4:46 am Post subject: _________________________________________________________________ To DOlson: I followed your WINE instructions....got everything compiled and loaded. I tried to start a few of the games I had to no avail (OLD games). I was somewhat dubious. This afternoon my son and I went to CompUSA and found Unreal Tournament GOTY for CHEAP. I told my son I would load Windows back on my machine to run it. But I went back to your site first when I got home, and low and behold I found a tutorial for this very game! The only thing different I had to do was "chmod 755" the file "ut-install-436-GOTY.run" and by golly the game started to load! I couldn't believe it! I changed some of the options in the game menu for controls and video.....AND I WAS PLAYING!!!!!!! I am one of those people who has never played this game, and although I'm frag-bait, it runs soooo smooth and fast and without a hitch. And to think I played it on Linux first is.....satisfying. Thanks so much for your tutorial.....it has really added a new dimension to my totally Linux box. DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Sun May 26, 2002 5:22 am Post subject: _________________________________________________________________ You are VERY welcome! I am in fact in the process of converting a friend to Linux, and he is impressed that he can get 100 fps+ in UT, when he gets only 60 in Windows. Heh. Anyways, I forgot about that part, and I will add it to my tutorial when I remember... I figured that out tonight, but thanks for reminding me. mandrakewilson Frequent user Joined: 02 May 2002 Posts: 49 Location: Oklahoma Posted: Sun May 26, 2002 3:18 pm Post subject: _________________________________________________________________ Two more things......how do you check your FPS rate on this game? And second, this game came with 4 cd's. One of them is a "first look" demo which is no big deal. But I think the 3rd disk has additional levels and I was wondering how to install them. Late last night I thought I found a site that explained it, but this morning I'm darned if I can find it again. By the way, not one hiccup or crash since I have played this really awesome game. DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Sun May 26, 2002 7:51 pm Post subject: _________________________________________________________________ Don't know... I rarely play UT anymore, and I never did download the mods... You should look for xumod or something like that though... It sounds familiar. Try a search on SourceForge for Unreal Tournament maybe. Sorry. mark2 Newbie Joined: 08 Jul 2002 Posts: 5 Location: Bristol, UK Posted: Mon Jul 08, 2002 7:32 pm Post subject: _________________________________________________________________ On my 1st visit here think I've learned more by having a look at your tutorials than i did with 2 hrs at the mandrake campus your comparisons with windows make it easier for us poor souls who were misguided Embarassed . michael Frequent user Joined: 14 Jul 2002 Posts: 92 Posted: Sun Jul 14, 2002 3:38 pm Post subject: Mandrake 8.x tutorials " book" _________________________________________________________________ Laughing Is one mandrake 8.x tutorial "book " does say`s step by step from a-z and troubleshooting......? Rolling Eyes ramfree17 Moderator Joined: 18 Apr 2002 Posts: 1262 Location: Philippines Posted: Sun Jul 14, 2002 11:46 pm Post subject: Re: Mandrake 8.x tutorials " book" _________________________________________________________________ michael wrote: Laughing Is one mandrake 8.x tutorial "book " does say`s step by step from a-z and troubleshooting......? Rolling Eyes i dont think i understand correctly but are you looking for a mandrake tutorial book?i heard there is a Learn Mandrake in 24 Hours but your best bet is to read the docs in mandrakeuser..org/docs, the free courses in mandrakecampus.com, the documents in tldp.org, and any linux book that you can get your hands on. deep inside, every linux distro is the same. what differentiates them is the tools used (and a few config files) but if you read a slackware book you can apply it to mandrake. Smile ciao! DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Mon Jul 22, 2002 9:21 pm Post subject: _________________________________________________________________ Thank you to those of you who commented on my tutorials. I added a new one today, DIGITAL CD AUDIO WITH XMMS. Yay! miljam Newbie Joined: 23 Jul 2002 Posts: 8 Posted: Thu Aug 01, 2002 7:17 pm Post subject: DOIson _________________________________________________________________ Has your front page been hacked? It appears to be all scrambled.. DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Tue Aug 06, 2002 2:38 am Post subject: _________________________________________________________________ I added a new tutorial today: WHITE MOUSE CURSORS!!! teòma Frequent user Joined: 14 May 2002 Posts: 28 Location: Sweden Posted: Wed Aug 07, 2002 2:32 pm Post subject: _________________________________________________________________ DOlson wrote: I added a new tutorial today: WHITE MOUSE CURSORS!!! Thanks for getting the page back to working order, I am just now starting to look into installing MDK 8.2 and I am sure most of these tutorials will be good for me, as I am a Windows refugee. So thank you for the page and keep it up, I may message you with some ideas for tutorials soon. DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Wed Aug 14, 2002 11:42 pm Post subject: _________________________________________________________________ Okay, I updated the Flash RPM, added a bunch of games to my games listing page, and updated my distro experience listing... The Flash thing fixes that vulnerability that was announced on the 8th or 9th or whatever... sas Newbie Joined: 16 Aug 2002 Posts: 24 Posted: Wed Aug 21, 2002 10:43 am Post subject: _________________________________________________________________ cheers man, i'll (hopefully) be fragging tonight Very Happy DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Fri Aug 23, 2002 12:18 am Post subject: _________________________________________________________________ Tutorial added: Installing Aliens VS Predator Gold Feedback VERY appreciated. StormeLnx Newbie Joined: 26 May 2002 Posts: 10 Location: Somewhere in Missouri Posted: Sat Aug 24, 2002 4:46 am Post subject: Tutorials _________________________________________________________________ Heyyy, that is a great site! "Easy to Understand" tutorials are the best. Keep up the good work, and I am looking forward to checking the site frequently for new tutorials on other things. Very Happy PS I bookmarked the site. DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Sun Aug 25, 2002 10:55 pm Post subject: _________________________________________________________________ Thanks for the compliments! I added a different take on the NVidia tutorial today, at the request of JeroenM, who is in the credits because he suggested I add some information about the kernels. I took the old one off, and I added a link to DeCurs (which is where I found the white mouse cursor set a few months ago). etegration Newbie Joined: 10 Sep 2002 Posts: 22 Posted: Tue Sep 10, 2002 2:27 pm Post subject: _________________________________________________________________ maybe can mmake this sticky since it's useful! DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Fri Sep 13, 2002 4:55 am Post subject: _________________________________________________________________ etegration - I don't have that power, because I am not a moderator. I was, but I am not anymore. Anyhow, I added a new tutorial today about ripping CDs as OGG files. DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Sat Sep 28, 2002 5:44 am Post subject: _________________________________________________________________ New tutorial time! I got a cheap Agfa SnapScan e20 scanner. I made it work after many many seconds of research, and I put my instructions into a tutorial. I hope someone out there can use it. richardwest Newbie Joined: 05 May 2002 Posts: 5 Location: Leiston UK Posted: Sun Sep 29, 2002 10:06 pm Post subject: Snapscan e 20 _________________________________________________________________ Thank you, thank you. Until I found your tutorial I was tearing my hair out trying to get my scanner to work. Now happily scanning. Regards, Richard DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Wed Oct 02, 2002 5:42 pm Post subject: _________________________________________________________________ SWEET!!! I thought it'd take weeks or months before I'd see the fruit of that labor... Nice! Glad it works for ya! DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Thu Oct 03, 2002 4:45 am Post subject: New Tutorial! _________________________________________________________________ I added a tutorial on installing the most recent (September 27th) OSS drivers for the SB Live!/Audigy card, which also gives you (or should give you) Bass and Treble controls as well. michael Frequent user Joined: 14 Jul 2002 Posts: 92 Posted: Mon Oct 07, 2002 3:44 pm Post subject: _________________________________________________________________ DOlson You did very good job special you can choice of your own avatar it`s very good in my language you say Spitze,I`ll say 10 out of 10. Very Happy Very Happy Wink Wink Is ther a register # Question . DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Tue Oct 08, 2002 4:13 am Post subject: _________________________________________________________________ michael wrote: DOlson You did very good job special you can choice of your own avatar it`s very good in my language you say Spitze,I`ll say 10 out of 10. Very Happy Very Happy Wink Wink Is ther a register # Question . Okay michael, here are all of the points I was able to pick out of your comments: 1) I did a very good job. 2) You give me 10 out of 10 for something. 3) You are batting your eyes at me. Can anyone help him convey the other stuff to me? Thanks. Thanks for the comments! mamaswok Newbie Joined: 05 Nov 2002 Posts: 3 Posted: Tue Nov 05, 2002 2:29 pm Post subject: _________________________________________________________________ I appreciate your website. Thanks to you I was able to load my NVIDIA drivers to get the Unreal 2003 demo to work. Now everything runs great. Now i just need to find some more games. Thanks again. DoghouseRielly Newbie Joined: 02 Dec 2002 Posts: 3 Posted: Sat Dec 07, 2002 3:23 am Post subject: Thank You! Thank You! Thank You! _________________________________________________________________ Your adsl tutorial is a life saver. Even though it didn't fix my problem it taught me enough that I was able to find the problem. Terminal screens still make me seriously nervous, but at least I can stop shaking long enough to type in the commands Wink Thanks again Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  5. arusabal Moderator Joined: 17 Apr 2002 Posts: 836 Location: Spain Posted: Mon May 13, 2002 12:28 pm Post subject: PAN 0.11.9x on Mandrake 8.1 MiniHOWTO, by tobyink _________________________________________________________________ PAN on Mandrake 8.1 MiniHOWTO by Toby A Inkster Installing 0.11.9x and onwards on Mandrake 8.1 is a bit of a pain because PAN is starting to migrate towards GNOME 2 and Mandrake comes with GNOME 1.4. However it can be done. This HOWTO describes installing PAN from source code, but if you use RPM you may save yourself some of the headaches. This routine worked for me, but your milage may vary. If you come across any problems that I didn't outline here, email me at the address above and I'll add them to this document. For simplicity I shall give all the instructions as if you were logged in as root. In reality you only need to be logged in as root for a few of the actions. PKG-CONFIG Go to this website and download the source tarball for pkg-config 0.12: At the command line: Code: $ tar zxf pkgconfig-0.12.0.tar.gz $ cd pkgconfig-0.12.0 $ ./configure --prefix=/usr && make && make install GTK2 PAN 0.11.9x onwards uses GTK2 instead of GTK1.x. To install GTK2, go to this FTP site: Create a temporary directory on your hard disk and download the following files into it: * glib-2.0.1.tar.bz2 * atk-1.0.1.tar.bz2 * pango-1.0.1.tar.bz2 * gtk+-2.0.2.tar.bz2 Now, for each of the packages (in the same order as given above): Code: $ tar jxf PACKAGENAME.tar.gz $ cd PACKAGENAME $ ./configure --prefix=/usr && make && make install The last package (GTK2 itself) will take quite a while to build, but the others shouldn't take very long. LIBXML2 You could try building PAN now, but I think you'll probably need to upgrade libxml2 as well. Go to your favourite Mandrake Cooker mirror. Mine is at And download these files: * libxml2-2.4.21-1mdk.i586.rpm * libxml2-devel-2.4.21-1mdk.i586.rpm (You might also want to download the -python and -utils packages) Now install them using: Code: rpm -Uvh libxml2-*.rpm CONCLUSION Now all the dependencies should be satisfied and you should be able to install PAN. One caveat: because you installed GTK2 (including Pango, GLIB and ATK) from source code instead of using RPM files, the RPM program doesn't know that the new versions have been installed. If RPM complains that you haven't got any of these installed: * libatk-1.0.so.0 * libgdk_pixbuf-2.0.so.0 * libgdk-x11-2.0.so.0 * libglib-2.0.so.0 * libgmodule-2.0.so.0 * libgobject-2.0.so.0 * libgthread-2.0.so.0 * libgtk-x11-2.0.so.0 * libpango-1.0.so.0 * libpangox-1.0.so.0 * libpangoxft-1.0.so.0 Then you should over-ride it using "rpm --nodeps". riorama Newbie Joined: 21 Jul 2002 Posts: 5 Posted: Sun Jul 21, 2002 1:22 am Post subject: Pan 0.11.3 Question....... _________________________________________________________________ Ive gotten 0.11.3 to work great in Mandrake 8.1, and all facits of the program seem to be functional (yEnc support, etc..). What I can't figure out is how to join files off of a news group, that use a foreign bat file. Example: (Download files) File.mpg.bat file.mpg.000 file.mpg.001 file.mpg.002 file.mpg.003 The bat file reads : " Save all MasterSplitter pieces in a temp directory and use MasterSplitter or JAS to rejoin all pieces into MPG format. You can cut the last piece (the .BAT piece) and past it into a .BAT file to rejoin the pieces if you don't have MasterSplitter or JAS. You can get the latest "free" version of MasterSplitter direct from the author at @echo off echo. echo Generated Using MasterSplitter echo. echo Recreating the Original File From the Pieces. copy/b "file.mpg.000" "file.mpg" copy/b "file.mpg" + "file.mpg.001" copy/b "file.mpg" + "file.mpg.002" copy/b "file.mpg" + "file.mpg.003" echo. echo All Done Joining the Files. " What is JAS, why doesn't Master Splitter have an rpm, how do I do this without windoze? Help Help Help[ Thanks If you help me, I'll give you my first born. Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  6. arusabal Moderator Joined: 17 Apr 2002 Posts: 836 Location: Spain Posted: Fri Sep 20, 2002 2:59 pm Post subject: how 'ln' can make a better understanding of Unix (Linux) _________________________________________________________________ This morning I was reading a thread from comp.unix.shell named . I started to read it because I saw a bunch of answers there in such an apparently easy question (It seemed to me just a simple case of using combined 'find' and 'sed'). That called my curiosity. Within that thread there was a discussion (among others) about the use of the 'ln' command instead of 'cp' while making backups of the files which were modified by 'sed'. the backup stuff was something like this: sed '<command>' file > file.tmp cp file file.bak mv file.tmp file That's the way I've always done it! But another guy show this way: sed '<command>' file > file.tmp ln file file.bak mv file.tmp file So what? Why using 'ln' there? I've always thought that 'ln' was just for making links of one file to another and thus making both files identically one to each other so something that happens to one of the files will happen to the other (I do understand perfectly the soft links which are just pointers to a 'real file', and never cared about hard ones). So where the hell is the backup? Evidently I don't understand many things of UNIX, and one of those things are the hard links; That was my first thought. My second thought was as many of you are thinking right now, *if you are still reading this post*, what a stupid discussion! Despite of those thoughts I kept reading the thread, and what about was my surprise when I found this brilliant explanation about the 'ln' command, i-nodes, the way the UNIX filesystems are thought, some historical hints and, of course why was better the use of 'ln' than 'cp' Here is the post, from David Thompson (dat1965@yahoo.com) at comp.unix.shell (pasted here without permission) ----------------------------------------------------------- [begin of quote] From: David Thompson (dat1965@yahoo.com) Subject: Re: replacing a string in all the files under a directory (and subdirectories) Newsgroups: comp.unix.shell View: Complete Thread (20 articles) | Original Format Date: 2002-09-18 01:42:39 PST "Bruce Burhans" <bburhan1@earthlink.net> wrote > Would you mind explaining that use of ln? Never > seen the like... Hi Bruce, [WARNING: over zealous typist with too much free time.] The concept of a "link" is somewhat hard to fathom, esp since many people are introduced to the similar concept of a "file", and never quite learn to separate the two very well. Hopefully, what I've written here will help to clarify the distinction, which in turn will be useful in explaining the ln command. I know this is greatly simplified, but hopefully the "big picture" is evident. Sooner or later in the world of Unix, you come across the term "i-node". What is an i-node? Well, think of an i-node as the index into an array that specifies everything about a file EXCEPT the file's name. This array is stored on disk, and managing this disk-based array is one of the primary responsibilities of Unix. Ok, so imagine an array of 1000 i-nodes, index information +--------+-----------------------------+ | 0001 | owner,group,perms,dates,etc | +--------+-----------------------------+ | 0002 | owner,group,perms,dates,etc | +--------+-----------------------------+ | 0003 | owner,group,perms,dates,etc | +--------+-----------------------------+ ... +--------+-----------------------------+ | 0999 | owner,group,perms,dates,etc | +--------+-----------------------------+ | 1000 | owner,group,perms,dates,etc | +--------+-----------------------------+ Most people understand the i-node as a record stored on disk, but the key to that AH-HAH feeling is to focus on the index column above. Think of an i-node as this index. Therefore, an i-node is an integer number, unique for each file system. I'll use the term "i-node" to represent the index into the above array. Why is an i-node important? Because, Unix stores directory information in a way that associates the filename with an i-node. That is, a directory is simply an association between the index in the i-node table and the string that represents the filename. This association is called a link. Actually, then, a directory is a list of these associations. Each entry in the directory is one association between an i-node number and a string filename. Ok, so imagine the directory itself stored on disk, something like an array, where each directory entry contains two pieces of information: the i-node and the filename. i-node filename +--------+--------------------+ | 0021 | file1.c | +-----------------------------+ | 0257 | file2.c | +-----------------------------+ | 0008 | Makefile | +-----------------------------+ ... +-----------------------------+ | 0834 | XYZ.c | +-----------------------------+ | 0172 | cmd.sh | +-----------------------------+ Notice how the directory seemingly contains i-nodes in no particular order. This is easily understood because as files are created on disk, the next available i-node number is used in the i-node table, and then the association between a filename and the i-node number is stored in the directory. On a very active disk, files may be created and deleted often, so i-nodes are freed and re-used often as well. [Also, note that the i-node table is not concerned with the tree-like directory structure; this organization is conceptually a level above the i-node table. That is, the two entries . and .. in each directory are special files that help to maintain that hierarchy. Think of i-nodes as a simple array of records stored on disk, where each record tracks only the information (most of, anyways) you see from the 'ls -l' command.] AH-HAH! The directory is storing links! Think of it like this: "i-node 834 is associated with filename XYZ.c", which is what you mean when you say "filename XYZ.c is linked to i-node 834". Same difference. This is the origin of the term "link" in Unix. Try typing 'ls -il' in your home directory. See that first column showing i-node numbers? The 'ls' command doesn't normally show you the i-node number because it's not terribly useful in every day life. Let's create a simple file, $ echo hello david > hello.txt $ ls -il 50175 -rw-rw-r-- 1 davidt eng 12 Sep 17 23:16 hello.txt So, I just created a file with the name hello.txt, and Unix used i-node 50175 to store the owner, group, permissions, etc. We say that the i-node 50175 has 1 link. In fact, look carefully and you can see the 3rd column, it has a value of 1; which is telling us that the i-node referenced by hello.txt has 1 link, er, 1 filename associated with it. What if we did this neat-o trick: Let's store another entry in the directory for the same i-node 50175 but use a different name. Ie, we want our directory to look something like, i-node filename +--------+--------------------+ | 50175 | hello.txt | +-----------------------------+ | 50175 | goodbye.txt | +-----------------------------+ Because of how the Unix directory was designed over 20 years ago, it's entirely possible for the i-node number to be the same, as long as the filename is different. Pretty cool design. Ok, so how do you do that? How do you make 2 different filenames point to the same i-node? By using the ln command, like this, $ ln hello.txt goodbye.txt $ ls -il hello.txt goodbye.txt 50175 -rw-rw-r-- 2 davidt eng 12 Sep 17 23:16 goodbye.txt 50175 -rw-rw-r-- 2 davidt eng 12 Sep 17 23:16 hello.txt See how both filenames have the same i-node number? We now say that i-node 50175 has 2 links, which are hello.txt and goodbye.txt. Look above at the 3rd column, see how it now says 2? The ln command above created what is known today as a "hard" link. This term came into vogue to distinguish it from a "symbolic" link, which is a newer feature of the ln command. Until symbolic links were invented by BSD (I think), hard links weren't called "hard" links, they were just plain links. So, nowadays, we have to distinguish between the two ideas, so the old-fashioned traditional idea of a link is now popularly known as a hard link. But beware, most Unix documentation and writings won't necessarily mention that; they'll just say link. Ok, a hard link is very interesting. Note what happens if I append more text to the end of (either) file, $ echo more more more >> hello.txt $ ls -il hello.txt goodbye.txt 50175 -rw-rw-r-- 2 davidt eng 27 Sep 17 23:29 goodbye.txt 50175 -rw-rw-r-- 2 davidt eng 27 Sep 17 23:29 hello.txt See how both files have the same number of 27 bytes, and even the same timestamp? That's because they're the same i-node, so the 'ls' command is being forced to read the identical information from the i-node table for both files. Even if you change the permissions on one of the files, $ chmod 777 goodbye.txt $ ls -il hello.txt goodbye.txt 50175 -rwxrwxrwx 2 davidt eng 27 Sep 17 23:29 goodbye.txt 50175 -rwxrwxrwx 2 davidt eng 27 Sep 17 23:29 hello.txt the permissions for both files are changed. Can you see why? It's because the permissions are stored in the i-node itself. So, if you change permissions of one, you change the other. Say this statement until it sinks in: "Files doesn't have permissions, only i-nodes have permissions". This is a very (very) strictly technical statement. But it makes sense. The 'ls' command has to read the information from the i-node record, and inside this i-node record is the permissions. When you type 'ls xyz.c', what happens under the hood is, 1. The ls command finds filename xyz.c in the current directory, 2. The i-node for filename xyz.c is found, 3. The i-node is used to lookup the information in the i-node table. 4. The ls command formats this i-node information and prints it. Another interesting feature of hard links is this: when you remove one of the links, the i-node is not freed until all filenames referencing that i-node are removed. In fact, this helps to explain the historical roots of the unlink() system call. The Unix rm command is a program that calls the unlink() system call, which removes the link association in the directory, as well as free the i-node and disk space. However, whereas the link association between an i-node and filename is always removed from the directory, Unix won't free the i-node in the i-node table (or free up the disk space) until no other directory entry references that i-node. This is a very important realization, and is a useful trick to the clever Unix (C or shell) programmer. Andreas takes advantage of this trick. The neat thing about the two system calls link() and unlink() is that they are atomic. That is, they are guaranteed to update the directory structure and the i-node table without interference from other processes. The ln command implements the Unix link() system call, and rm implements the unlink() system call. Andreas knows that whenever you use sed to edit a file, and you want to save the original file as a backup, you should do it this way, sed 'your-commands' filename > filename.tmp ln filename filename.bak mv filename.tmp filename because if you press CTRL-C anywhere in the middle of any of these commands, you won't lose your original data. Use of the ln command to create a hard link takes advantage of the atomic nature of the Unix link() system call. Let's study what the 3 commands above must be doing to the directory. If you focus on the i-node numbers, it should help you understand the ln command alot better, 1. sed 'your-commands' filename > filename.tmp i-node filename +--------+--------------------+ | 63527 | filename | original file +-----------------------------+ | 73626 | filename.tmp | newer file, with edits +-----------------------------+ 2. ln filename filename.bak i-node filename +--------+--------------------+ | 63527 | filename | original file +-----------------------------+ | 73626 | filename.tmp | newer file, with edits +-----------------------------+ | 63527 | filename.bak | original file +-----------------------------+ 3. mv filename.tmp filename i-node filename +-----------------------------+ | 73626 | filename | newer file, with edits +-----------------------------+ | 63527 | filename.bak | original file +-----------------------------+ See how the original filename (with same i-node number) physically became the backup file? The ln command provides a safer way to achieve this. I enjoyed typing this. Hopefully, it is worthy. -- David Thompson -------------------------------------------------- [end of quote] I really hope that this post has enjoyed you the same way it did to me, and more important, that it had contributed to a better understanding of how Unixes work. arusabal rolf Moderator Joined: 16 Apr 2002 Posts: 968 Location: Oakland, CA USA Posted: Fri Sep 20, 2002 7:16 pm Post subject: _________________________________________________________________ Thanks, arusabal. That made inodes (plus files, permissions, links) a lot more understandable. UnTamed Frequent user Joined: 01 May 2002 Posts: 126 Location: gmt-5:00 Posted: Sat Sep 21, 2002 4:12 pm Post subject: _________________________________________________________________ _Very_ interresting read Idea Thanks! theYinYeti Senior user Joined: 13 May 2002 Posts: 452 Location: Cannes (France) Posted: Mon Sep 23, 2002 10:25 am Post subject: _________________________________________________________________ Very good article. For all of you wanting to experiment with this wonderful tool (hard links), take care of this: Notice this phrase: "an i-node is an integer number, unique for each file system". This means that you cannot hard-link a file into another filesystem. For example, if you have: /dev/hda1 -> / /dev/hda2 -> /home You cannot do that Code: ln /home/me/importantfile.ps /tmp/importantfile-save.ps Yves. Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  7. JeroenM Moderator Joined: 16 Apr 2002 Posts: 594 Location: Leuven, Belgium Posted: Sat Aug 10, 2002 6:20 am Post subject: HOWTO find help: _________________________________________________________________ The following was a post at the gentoo forum. is it however applicable to all of linux users. Next to that you can also use our own forum search button, the mandakeuser.org docs etc. -------------------------------------------------------------- HOW-TO: How to Find Help Many a time in this Linux forum of ours you will hear a shout of RTFM! Many Linux Gurus get RTFM rage as new users assume that they are some kind of helpline. There is a reason for this, nearly all of the Linux and Unix tools feature a lot of documentation. This is great for the user, as it means you dont have to wait for a more experienced Linux user to help you icon_smile.gif This post aims to provide a selection of links to manuals of all sizes and shapes, so that the user does not have to search for them (god forbid the new Linux user having to find the manuals themselves: The man command How to use man Now our first useful resource is the man command, this is used in the following way: Code: man <package name> It can be executed by any Linux user at all icon_wink.gif Now, man is a command that formats and shows the manual pages for a particular tool, useful huh? Now, man can be used very easily, sometimes however I have people asking me how to exit man, this is very easy, use Code: q <enter> Pressing the down arrow lets you proceed onto the next page, the man pages typically list all the command line switches of the tool, as well as some interesting configuration information. To test this command out type: Code: man man Now, read on down, this is the full manual page for the man command, it should be split in nice easy to read sections. This is one of the most useful commands on Linux icon_smile.gif When to use man The time when it is ideal to use man is if you have a question such as What is foo-bar and how do I use it? or I wonder if foo-bar can do blah-de-blah. Since all the functions are listed under the man page then you can use its wealth of resources, as well as read the short description of the function. Also the man page should be used as the first resource before starting to look elsewhere. Internet Resources General Problems LinuxQuestions - This is one of the largest Linux specific forums on the internet, you should NOT automatically think that because these are forums then you should post your question, you shouldnt. This forum has the search feature enabled.So, head right up to the search feature and start searching. Some tips for searching are: 1. Use booleans, AND, OR etc. 2. Make your search as specific as possible 3. Search for only words over two (2) characters long 4. Do not search for "linux" or other such generic terms There are thousands of posts at the site, most of your problems should be covered here. If they're not then icon_surprised.gif Google - Linux - The little known Linux section of google. This site covers many areas of the Linux online world and there will be some matches for your search. Follow the same searching tips as above. (You can also resort to the standard google search if you are having no luck, make sure, however that you do include the word "linux" in the search. Next stop, New York, well - almost, actually freshmeat.net now the chances are that your software will be listed on freshmeat/sourceforge. Do a search here for the package name, if it is found then try clicking on the "Project Homepage" link, or the Docs link if there is one; have a thorough read of these and see if your problem is listed as a bug, if it is then there isnt much you can do about it, until the next version comes out icon_sad.gif Also, if there is a a SourceForge link check that they dont have a forum such as the KICQ projects here. Have a read around here, this will most likely be where the developers help out. Another place to go will be down the nav-bar on the left is a documentation link, have a look, have a read and see whether your problem is listed there. If it isnt then you have two options: OcUK Linux Forum - We're happy to help if you have read the manuals and have tried to research your problem. Make sure your post includes: 1. The version of the software 2. Your current distro 3. How you installed (i.e. via RPM [urgh evil!] or via .tar.gz [use the source luke!] 4. The exact error message that was given when your program crashed/the problem occured. If you have a random crash problem, try running from the terminal (xterm, konsole, gnome-terminal) to see this error. If we dont know the answer or you would prefer not to ask @ OcUK then try the aforementioned LQ Forums, or the forums of your chosen package. Also, check distro-specific forums such as The Gentoo Forums. Forums such as these have extensive search features, and often have the developers/gurus of that particular distro on them icon_smile.gif Another valuable resource is IRC (internet relay chat). The best IRC server for help I find is: irc.openprojects.net Here there are many channels such as #gentoo and #fluxbox etc. There is also a general Linux channel @ #linux. If you have BitchX the IRC client then use this: Code: $ BitchX irc.openprojects.net /nick <your nickname> /join #<chosen channel> Because Linux is free, there are only a limited amount of help sources, the software you install requires some work from YOU the user to get working. The many helplines that can be found for Windows dont exist for Linux and therefore you need to try to help yourself before asking frantically. Linux requires you to put effort in to make your system work properly, I tweak and change my current Gentoo system frequently - and I know I will never have it perfect. If you want a system that works out-of-the-box and you dont want to put any effort in at all - then go back to WIndows and format every 3 months icon_rolleyes.gif . The OpenSource community requires both developers and users to put effort it.. Enjoy your Linuxing... icon_smile.gif /edit - I've written this, and read over it and it sounds like a rant, it isnt a rant, its a guide for new Linux users, a guide to show people HOW to look for their own information, so that they can try to help themselves. I've picked out what I think are the most helpful guides on the internet and elsewhere for you to use. Please dont take it as a rant. If you think there are any more useful sites on the internet/resources please PM me and I'll add them to the guide icon_biggrin.gif Hope you find this guide interesting: Shak e: m: msn - - icq 137870119 v: dual athlon mp 1800+ t: p166mmx server DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Sat Aug 10, 2002 11:25 am Post subject: _________________________________________________________________ To exit a man page, press q. No need to press Enter. frew Senior user Joined: 01 Jun 2002 Posts: 214 Location: Mississippi Posted: Sat Aug 10, 2002 7:32 pm Post subject: _________________________________________________________________ another nice command, (seems to be broken in mdk?) is apropos. if you say, want to listen to mp3's but don't know what apps can do that then you could do apropos mp3. it will return a list of all of the programs that have a man page where the name includes mp3. So apropos text SHOULD retrurn: vim - Vi IMproved, a programmers text editor among many many many others. I have no idea why this doesn't work, but it is a standard tool and will work on most linux's DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Sat Aug 10, 2002 7:35 pm Post subject: _________________________________________________________________ frew wrote: another nice command, (seems to be broken in mdk?) is apropos. if you say, want to listen to mp3's but don't know what apps can do that then you could do apropos mp3. it will return a list of all of the programs that have a man page where the name includes mp3. So apropos text SHOULD retrurn: vim - Vi IMproved, a programmers text editor among many many many others. I have no idea why this doesn't work, but it is a standard tool and will work on most linux's Code: [dana@digory dana]$ apropos mp3 mp3c (1) - convert audio-cds to mp3 [dana@digory dana]$ frew Senior user Joined: 01 Jun 2002 Posts: 214 Location: Mississippi Posted: Sat Aug 10, 2002 7:49 pm Post subject: _________________________________________________________________ k so it's just me, good. DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Sat Aug 10, 2002 8:06 pm Post subject: _________________________________________________________________ lol How is that good? Is SHOULD be working for you too... Heh. Oh, I tried what you put... text, and I got like a billion replys... frew Senior user Joined: 01 Jun 2002 Posts: 214 Location: Mississippi Posted: Sat Aug 10, 2002 8:38 pm Post subject: _________________________________________________________________ well that means it isnt broke for everyone. plus i think it might be some kind of bashrc thing or something. arusabal Moderator Joined: 17 Apr 2002 Posts: 836 Location: Spain Posted: Sat Aug 10, 2002 9:33 pm Post subject: _________________________________________________________________ you can always use 'whatis' instead of 'apropos'... or maybe not, who knows... Confused frew Senior user Joined: 01 Jun 2002 Posts: 214 Location: Mississippi Posted: Mon Aug 12, 2002 2:28 am Post subject: _________________________________________________________________ haha i know, i tried, same thing happened. Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  8. rolf Moderator Joined: 16 Apr 2002 Posts: 968 Location: Oakland, CA USA Posted: Fri Aug 02, 2002 4:45 pm Post subject: Buchan Milne's RPM building mini howto _________________________________________________________________ Here is a copy of Buchan Milne's 'RPM building mini howto' Mandrake Club Forum wrote: RPM building mini howto. (Score: 1) by bgmilne on Tuesday, July 30 @ 15:25:54 PDT Since I want to develop some expertise in networking I am more attracted to servers and utilities than to desktop apps. I have an interest right now in Zope, FWBuilder and CFEngine. I am looking for a way of learning how to package theses apps myself. I have found the spec file for the latest FWBuilder (1.03 I think) inside Mandrakesoft CVS. (Isn't that a great place?) Zope and CFEngine are some of the server apps I have been meaning to try, but haven't had the time. Maybe I can help you get some of this packaged. I was planning to do Zope, but haven't got around to it yet ... I might still. I am trying to build the package myself as there was never an offer to train those who were interested in learning how to do it themselves. It is a slow process but I guess that in due time I will be able to propose those packages and submit them at the same time. I think it might be an idea to do an rpm building tutorial, but it would take a while. I found somewhere in the Internet that CFEngine 2.02 had been packaged. It was built for RedHat. But interestingly enough, the spec file and the *.src.rpm are also available. I attemped to install the binaries but it failed, the usual, libraries incompatibilities. So I am looking into the spec file and the source RPM to learn as much as I can and package it for MDK 8.2. When I succeed I will submit it. Certainly, this is going to take me longer than it would take someone with more experience but I am determined to learn how to package. First step with a SRPM is to try and rebuild it: $ rpm --rebuild cfengine*.src.rpm Note, that if you haven't got a ~/.rpmmacros (decribed, with example file in the mdk-rpm howto) this will fail unless you have write access to /usr/src/rpm/*. Best is to make a .rpmmacros and the directories it requires. If that doesn't work (like if the build fails), install the src.rpm: $ rpm -ivh cengine*.src.rpm It will install all sources and patches in your rpm source directory, which you can find with $ rpm --eval "%_sourcedir" and a SPEC file in your spec dir, which you can find with $ rpm --eval "%_specdir" You can then edit the spec, and try to build it with: $ rpm -ba `rpm --eval "%_specdir"`/cfengine.spec (you can use the real path if you want, but this should work for anyone). You should get an rpm in your rpm directory. For binaries RPMs, that should be: $ rpm --eval "%_rpmdir/%_target_cpu" for non-binary RPMs, that should be $ rpm --eval "%_rpmdir/noarch" If you build succeeds, try installing it. You may find your dependencies are wrong, fix your spec file and rebuild. But wait, if you haven't changed anything that will affect the compilation phase, you can short-circuit the build (useful on a big package, like Mozilla or OpenOffice.org which take hours to build): $ rpm -bi `rpm --eval "%_specdir"`/cfengine.spec --short-circuit Since short-circuit only does one build step at a time, you have to tell it which ones to do, for each one you need. Without the short-circuit option, it does up until the end of the '-b' command. The '-b' commands are p (prep), c (compile), i (install), b (binary RPM), s (source RPM) and a (both source and binary RPM). Thus, the command above does the "%install" section of the rpm only, and to build rpms from it, you need to $ rpm -ba `rpm --eval "%_specdir"`/cfengine.spec --short-circuit Now you can test installation again. Once you are happy with the installation, you will want to check the package for common mistakes, using rpmlint (in the rpmlint rpm): $ rpmlint `rpm --eval "%_rpmdir/%_target_cpu"`/*cfengine*.rpm $ rpmlint `rpm --eval "%_srpmdir"`/*cfengine*.rpm Fix any mistakes again, using the short-circuit trick again if suitable. Once all those issues are resolved, and you think the RPM is ready for public consumption, you will want to rebuild it (to ensure the whole process works) and sign it also: $ rpm -ba `rpm --eval "%_specdir"`/cfengine.spec --sign (you need to have created gpg keys, and set them up in ~/.rpmmacros) as described in the mdk-rpm howto. Some people also recommend using --rmsource, followed by a rebuild of the generated srpm, to ensure that you haven't used a file that isn't in the source package, but it may not be necessary. Btw, if you get any weird errors doing any of the build-related rpm functions, make sure you have the rpm-build rpm installed Well, it seems I have just done a mini howto for building RPMs. If anyone has questions on this, or more suggestions please add them below, and maybe we can turn this into an official Mandrake Club RPM Building Guide. I am studying (again) MDK-RPM Howto. It is not as crystal clear as I would like it to be but it is of some help. I have also read the Linux Documentation Project Howto (too skimpy). If any one has other suggestions for studying I more that welcome the suggestions. You may also want to read some parts of the Maximum RPM book, avaiable somewhere at And if anyone with experience packaging wants to give a hand, I would most appreciate it. Maybe we need to start a new category on the forums, but in the meantime maybe you should start a thread under the RPMs category. Feel free to post there, one of the VIPs/packagers should answer ... [/color] JeroenM Moderator Joined: 16 Apr 2002 Posts: 594 Location: Leuven, Belgium Posted: Fri Aug 02, 2002 4:59 pm Post subject: _________________________________________________________________ Thank you!! spider Frequent user Joined: 21 Jul 2002 Posts: 65 Posted: Thu Aug 08, 2002 12:25 pm Post subject: _________________________________________________________________ Just what I am seeking for thanks Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  9. JeroenM Moderator Joined: 16 Apr 2002 Posts: 594 Location: Leuven, Belgium Posted: Thu Aug 01, 2002 9:26 am Post subject: Mandrake release cycle, why things sometimes don't work etc. _________________________________________________________________ This is a post from pantropic (at ). It has also been posted at Mandrakeforum ( ) because we (the users over here) thought is was really a great article. We (the mods) asked him/her to repost it here but there hasn't been a response for a while and we really want it here so we took the freedom to do it ourselves. -------------------------- Mandrake is on a 6-month release cycle ... this release isn't being "pushed" at all, no more than 8.2 ... 8.1 ... I do recall that 8.2 was somewhat criticized for having a less than thorough run through the beta stages, and everyone was screaming it was because of the IPO (and god knows what other conspiracy theories!) :Smile: Personally, I think it's just because Mandrake is the closest thing to a "bleeding edge" distro you're going to find outside SourceMage or Gentoo. Mandrake is sort of like, um, the Anti-Debian. Mandrake is possibly the most open commercial Linux distro in existence. EVERY single tool Mandrake has created to make it easy to use (drakconf and all the associated tools, the Mandrake installer, the partitioning tools, and LOTS of other goodies) are GPL'd. Ever read the Mandrake End-User-License-Agreement? You should. It only takes a few seconds. "Everything is GPL. No Warranty. Have fun." At any time anyone in the world is welcome to view the next, unreleased version of Mandrake (via the Cooker). Oddly enough, the UnitedLinux companies seem to be suffering. Arguably, without Big Blue keeping SuSE afloat, it'd be a lost cause. And Caldera hasn't been relevant in years. RedHat and Mandrake are totally open (Rawhide = RedHat Cooker) and they happen to be at the top of the list of "major" distributions. Companies like Lindows will come and go (and not quickly enough) but RedHat and Mandrake, by virtue of being accessible to everyone, will endure. People often say "RedHat doesn't have a community" -- and that's simply not true. It has a large community, just a different -sort- of community than, say, this one. My point? If everyone who comes to this board whining about Mandrake having this bug or that bug or missing some wonderful, terrific app (that no one else has probably ever heard of) or not supporting x piece of hardware (that, again, no one else has probably ever heard of) -- if all of those people had bought a Mandrake boxed set, imagine how much better Mandrake 9.2 or 10.0 would be? Maybe now that Microsoft is cracking down on pirates (again), interest in Linux will see another swell. Unfortunately, former XP pirate refugees aren't likely to come to the community to give ANYthing, since Mandrake (and Linux in general) makes it so damned easy to take and take and take ... somehow, along the way, the original ideals of what Free Software is all about have been perverted. I think it's way too easy to forget that a great deal of people, maybe even a majority, have never bought ANYthing from Mandrake. They haven't contributed. So I find it hard to envision Mandrake in any way, in any context, as "money hungry" ... In the Linux community it often seems that end users (a great many of whom have contributed nothing) have this weird notion that because Mandrake (or KDE, or GNOME, or whatever) is free then somehow the developers OWE the users a new, better version that, surprise surprise, costs $0. So, Mandrake is dragging around a great deal of baggage in the form of freeloaders, yes, and it might NEED the money -- but it simply isn't a greedy company (such as Microsoft or, IMO the even more despicable Lindows). Imagine extending this philosophy onto another topic: Waiter: Have you made your selections? Patron: Yes. We'll have ... the best you have. All of it. And we want it now. Waiter: Very good, sir. We'll do our best. Will you be paying today? Patron: Of course I'm not paying! Now snap to it! Waiter: Very good, sir. Your food will be out shortly. We are a bit understaffed, but we'll do our best. Patron: HURRY! ---Later---(but not much) Patron: WAITER! Where is our food! DAMNIT, we've been waiting 10 minutes! Waiter: Sorry, sir. We're doing the best we can. Our kitchen staff is 90% volunteer, since, like yourself, most of our patrons elect not to pay for our services. We are doing the best we can and humbly ask you to be patient. Patron: I can't believe this. How hard can it be to cook a 7 course meal with all the trimmings and serve it up to us for free on a silver platter (and we're damn well keeping the platter, too)? If we don't get it NOW we're going to that other restaurant down the street. They make us cook all our own food, but at least we'll get it the way we like it! Or maybe we'll go back to the SuperMegaMonopoly Restaurant. They're rediculously expensive and we often get food poisoning or at least terrible indigestion, but we know a secret, underhanded, illegal trick to get it for free anyway! Waiter: <weary sigh> Very good, sir. It will be only a bit longer now. The chef is horribly overworked and, even though he doesn't actually get paid most of the time, he's applying the finishing touches even as we speak. Patron: The wine IS imported, right? And all the ingredients are fresh and hand-selected for flavor? We only want the very best, the cream of the crop. Nothing else will do. Waiter: Ah, here it is. Bon apetit. Enjoy, sirs. May I get you anything else? Patron: Oh my god! This is awful! We waited that long for this?? And you even wanted us to PAY FOR IT? What kind of a con job are you people running here?? It never ceases to amaze me the number of Linux users I see who say something like, "I just downloaded <whatever free program> and it sucks! What the hell is this? Why would <project authors> create something like this? This is why Linux will never be better than Windows!" As if Mandrake, or anyone else who creates free (in all senses of the word) software, OWES them something ... Before anyone says anything derogative about Mandrake, perform a simple experiment: Visit Linux From Scratch. Assemble, by hand, a running Linux system equal in functionality to your current Mandrake installation. Then come back to the board (from inside KDE 3.0.2 or GNOME 2 on your new hand-built system) and let everyone know what a terrible job Mandrake has done in putting together their distribution and what a silly notion it is to actually PAY them for such a trivial amount of work. Smile Okay, my rant is over now. Let me put on my flame retardent armor ... WARNING: Prolonged exposure to penguins may result in narcolepsy, explosive flatulence, and reduced sexual function. This public service announcement brought to you by Microsoft Corporation. Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  10. JeroenM Moderator Joined: 16 Apr 2002 Posts: 594 Location: Leuven, Belgium Posted: Fri Jul 19, 2002 4:41 pm Post subject: Upgrade your packages: DON'T use Cooker but ... _________________________________________________________________ People frequently add Cooker to RpmDrake and get into trouble. Therefore this How(not)to. It was posted at MdkForum as below. Check out the link if you also want to read the comments. Using Packages From Cooker Posted by tom on Wednesday, July 17 @ 17:00:00 PDT World Packages (Contributed by Tsoots) Mandrake Linux user Tsoots has a gruesome tale to tell: I've just installed mandrake 8.2 through a network installation. After an installation I Thought I could do a little update for those apps I use most. So I started rpmdrake and added a cooker source to the list and then did a search for xchat (that I'm using a lot). I checked xchat and pressed install/remove button. This is where the strange things started to happen. After a little while I got "Packages dependencies informations" window saying that in order to get everything working well I would also need to install some additional packages. That list is endless (well almost). It includes just to mention some packages: MySQL, MySQL-client, drakxtools, gimp, libgtk+, libintl2, perl, popt, rpm-build, urpmi, vim-x11. Well I'm a newbie with linux and mandrake but can understand that there can't be everything right there. I'm just trying to update xchat 1.8.7 to 1.8.9. In order to get my xchat updated I press "next" button in "Packages dependencies informations" window and rpmdrake goes to "Packages installation" window. After a little while there comes pop up dialog box saying that (I've picked couple of lines from that dialog box): perl <>=S5.601 is needed by gimp-perl-1.2.3-11mdk perl-base <>=S 5.600-29mdk is needed by perl-gettext-1.0-10mdk librpmio-4.0.3.so <>=S is needed by kdeadmin-2.2.2-12mdk ... there are 24 lines on that dialog box. I tried to update some other apps too but get same type of messages. And always there is this perl-base that must be updated from version 5.601-7mdk to 5.8.0-0.17412. But then during the installation i got that error dialog box saying that perl-base 5.600 is needed by some packages. And if I choose to try update perl-base package in rpmdrake I'll get "Errors found" window saying that "Packages already installed: perl-base-5.8.0-0.17412.5mdk". Well that's about all. So my problem is that I can't update almost everythingsystem and I'm hoping someone else may have had same kinds of problems before and could help me to solve these out or maybe someone could tell me what to do in order to get my system work properly. Well after all these may be just some newbie problems that have nothing to do with system working properly. --- tom: The Cooker page features a prominent warning: WARNING! Cooker is an experimental distribution, it's not for daily use! Cooker's primary task is *not* to provide updated packages for the stable release, it is developing the next stable release. There usually is a certain period after a stable release where you can use Cooker packages on a stable release (although that isn't endorsed or supported by Mandrakesoft, either) but once the development picks up steam again, Cooker is a distribution of its own, i.e. dependencies are resolved against the package versions in Cooker, not against the versions in the stable release. The only officially supported updates are available via MandrakeUpdate and of course as stable releases every six months or so. If you just got to have a newer version of a program included in a stable release, you have several possibilities: * Look in 8.2 unsupported which contains unsupported updates provided by Mandrake Linux package maintainers. * Check out Texstar's 8.2 RPMS. You'll see that this directory contains an xchat-1.8.9 RPM. You should have no trouble installing this package. * Get the RPM from the project's home page. Mandrakesoft does not have the resources to maintain a Debian-like 'unstable' distribution, but then again they release stable versions more often than every two years Wink . gollum Newbie Joined: 15 Sep 2002 Posts: 1 Location: Norway Posted: Sun Sep 15, 2002 10:43 pm Post subject: _________________________________________________________________ Using Mandrake 8.2, I've seen what I believe is a bug in rpmdrake (Software Manager, Mandrake Update). When adding e.g. a cooker mirror to the list of sources, rpmdrake will try to update packages that are in the cooker mirror even when that's unnecessary. For example, I may try to install version 0.9.2 of package X, which depends on version 1.0 or later of package Y. Now I already have at least version 1.0 of Y installed, but on the cooker site, version 1.4 is present. In this situation, rpmdrake will tell me that package Y version 1.4 is required, and install that unless I abort the installation. Mad Not very fun when this results in a load of GNOME or KDE dependencies... So, when using cooker RPMs, I rather download them to my harddisk, run rpmdrake, and then download the missing libraries when needed. Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  11. Omar Serenity Moderator Joined: 16 Apr 2002 Posts: 358 Location: Michigan Posted: Wed Jul 17, 2002 11:51 pm Post subject: MUB - How to link directly to a specific post in a topic _________________________________________________________________ Next to the 'Posted on...' time up at the top of each post is what looks like a piece of paper with a corner bent down. It is a link to the individual post. You can right-click and Copy Link Address, like this: is DOlson's post (In MUB Discussion) that says "That's a great idea" Click it and you'll see what I mean. DragonMage Senior user Joined: 01 May 2002 Posts: 391 Location: Hayward, CA Posted: Thu Jul 18, 2002 4:06 am Post subject: _________________________________________________________________ Checking. Heh.. it works.. even in mozilla. Usually mozilla don't copy link location easily. Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  12. illogic-al Senior user Joined: 01 May 2002 Posts: 358 Location: Smack dab in the middle of it all. Posted: Fri May 03, 2002 7:11 pm Post subject: CVS tutorial (HOWTO) _________________________________________________________________ I can do CVS now, whoohoo. Might give KDE3 a try just to test my new found abilities. Found this on tutorial gentoo's site. Ripped word for word. CVS -- do you have it? Before you can actually use CVS, you need to get it installed on your system. The easiest way to test to see if it's installed is to type: Code listing 1 Code: # cvs If a cvs command is found, then you've got it! Otherwise, you'll need to either track down a binary package for your particular distribution, or install it from sources. Installing CVS from sources is actually quite simple, and I'll show you how in the next panel. Installing CVS from sources Installing CVS from sources is easy. First, grab the cvs-1.11.tar.gz tarball from 1.11.tar.gz (if there's a newer version listed here, you might as well grab the new one instead.) Then perform the following steps (command output has been omitted for brevity): Code listing 2 Code: # tar xzvf cvs-1.11.tar.gz # cd cvs-1.11 # ./configure # make # make install Now you should be ready to go. The CVSROOT Before we begin, there are a few CVS fundamentals that you need to know. The first is that in order to connect to a CVS repository, you first need to know a path called the "CVSROOT". The CVSROOT is a string, like a URL, that tells the cvs command where the remote repository is and how we'd like to connect to it. Just to make things interesting, CVS has a number of CVSROOT formats, depending on whether the CVS repository is local or remote and what method you're going to use to connect to it. Here are some example CVSROOTs, along with explanations... A local CVSROOT Code listing 3 Code: CVSROOT=/home/cvsroot This is an example of a local CVSROOT path; you'd use a CVSROOT like this if you wanted to connect to a local repository that exists at /home/cvsroot; or maybe you have a repository mounted via NFS at /home/cvsroot. A remote password server CVSROOT Code listing 4 Code: CVSROOT=:pserver:cvs@foo.bar.com:/home/cvsroot [/code] Here's an example of a CVSROOT that uses the RSH or SSH protocol; in this example, the CVS server will attempt to access the repository on foo.bar.com using the drobbins account. If the CVS_RSH environment variable is set to "ssh", then our cvs client will attempt to use ssh to connect; otherwise rsh will be used. The ssh access method is popular with those who are concerned about security; however, neither the RSH or SSH method provides a way for anonymous users to get the sources. In order to use this method, you must have a login account at foo.bar.com. A few more things... In addition to the CVSROOT, you'll also need to know the name of the module (collection of sources) that you'd like to check out, as well as an anonymous password that you'll need to log in to the CVS password server. Unlike anonymous ftp, there is no "standard" format for the anonymous password, so you'll need to get the specific password from the developer web site or the developers themselves. Once you have all this info, you're ready to begin. Interacting with CVS, part 1 Grabbing the sources is a two-stage process. First, we log in to the password server. Then, we grab the sources with a checkout command. Here's an example set of commands that can be used to check out the latest Samba sources, a popular UNIX/Windows integration project: Code listing 6 Code: # export CVSROOT=:pserver:cvs@pserver.samba.org:/cvsroot This first command sets the CVSROOT environment variable. If you don't set this variable, the following two commands will require an additional -d :pserver:cvs@pserver.samba.org:/cvsroot following the cvs command. Exporting the CVSROOT saves a us bit of typing. Interacting with CVS, part 2 Here are the commands needed to get a current copy of the developer sources. You may want to jump forward to the next panel to read the explanation of these commands, and then jump back here: Code listing 7 Code: # cvs login (Logging in to ) CVS password: (enter password here) # cvs -z5 co samba U samba/COPYING U samba/Manifest U samba/README U samba/Read-Manifest-Now U samba/Roadmap U samba/WHATSNEW.txt (this is just a snippet of the complete cvs co output) Interacting with CVS -- the explanation The first cvs command above logs us in to the pserver, and the second tells our CVS client to check out ("co") the samba module using a gzip compression level of 5 ("-z5") to speed up the transfer over a slow link. For every new file that is created locally, cvs prints out a "U [path]" indicating that this particular file has been updated on disk. Checkout complete Once the checkout command completes, you'll see a "samba" directory in your current working directory that contains the latest sources. You'll also notice that all the directories have a "CVS" directory inside them -- CVS stores accounting information inside these direcotries, and they can safely be ignored. From this point forward, we don't need to worry about having the CVSROOT environment variable set nor do we need to specify it on the command line because it's now cached inside all those extra "CVS" directories. Remember -- you only need to have the CVSROOT set for the initial login and checkout. Updating the sources Well, there you are -- fresh sources! Now that you have the sources, you can go ahead and compile and install them, inspect them, or do whatever you like with them. Every now and then, you may want to bring your checked-out source directory in-sync with the current version on CVS. To do this, you don't need to log in to the pserver again; your authentication info is also cached by cvs inside those "CVS" accounting directories. First, enter the main checked-out directory (in this case "samba"), and type: Code listing 8 Code: # cvs update -dP Looking at "cvs update", part 1 If there are any new files, cvs will output "U [path]" lines for each one as it updates them. Also, if you compiled the sources, you will probably see a lot of "? [path]" lines; these are object files that cvs notices are not from the remote repository. Looking at "cvs update", part 2 Also, notice the two command-line options we used for "cvs update". "-d" tells cvs to create any new directories that may have been added to the repository (this doesn't happen by default), and "-P" tells cvs to remove any empty directories from your locally checked-out copy of the sources. "-P" is a good idea, because cvs has a tendency to collect a lot of empty (once used, but now abandoned) directory trees over time. The bastards won't allow us to post in the How-To section. They're trying keep us down. NEWBIES UNITE. Let us beat back the oppresors who seek to reprive us of our most basics right to learn :roll:Uhh.. yeah Edit by JeroenM: nice tutorial. I have no idea why you posted it in "off-topic" instead of "tips & tricks" Guess this section is more appropriate Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  13. arusabal Moderator Joined: 17 Apr 2002 Posts: 836 Location: Spain Posted: Wed May 29, 2002 10:11 am Post subject: FAQ: De-Install of LILO/recovering the MBR _________________________________________________________________ FAQ: De-Install of LILO or the recover of the MBR I'm not going to discuss why you'll need to de-install LILO (the Linux Loader), but sometimes could be necessary (even if you, like me, are a fan of lilo against grub). This job could be done in several ways, I'll show just a couple: * Using evil software (Micro$oft), but despite of that, the common way Wink : Start window$ and go to M$DOS MODE or boot with a M$DOS disk, then run in the command line: Code: fdisk /mbr That will restore the Boot sector. * Using the friendly and lovely Linux, the cool way: When you install lilo, it creates a backup copy of the MBR (Master Boot Record) in the directory /boot/ named boot.0300 (this is the name if is the MBR of the first disk of IDE 0). So to substitute LILO with the original MBR you should run the next command: Code: dd if=/boot/boot.0300 of=/dev/hda bs=446 count=1 If the boot disk is an SCSI the command should look this way: Code: dd if=/boot/boot.0800 of=/dev/sda bs=446 count=1 Be careful with that, because a bad use of the dd command could do an irreversible harm to your HD 8) Check the related man pages: * lilo / lilo.conf * dd * grub ramfree17 Moderator Joined: 18 Apr 2002 Posts: 1262 Location: Philippines Posted: Wed May 29, 2002 11:17 am Post subject: _________________________________________________________________ aru you forgot the most simplest way... Very Happy Code: [root@ramfree etc]$ /sbin/lilo -U well, you could omit the /sbin/ part but on RH systems you have to point to the sbin utility as its not on the root PATH. ciao! cannonfodder Moderator Joined: 16 Apr 2002 Posts: 1056 Location: Rochester, NY, USA Posted: Wed May 29, 2002 12:13 pm Post subject: _________________________________________________________________ Ramfree, Arusabel is hard core baby! arusabal Moderator Joined: 17 Apr 2002 Posts: 836 Location: Spain Posted: Wed May 29, 2002 4:22 pm Post subject: _________________________________________________________________ Embarassed Rolling Eyes Mmmm, but my way is cooler Razz than yours ramfree Wink ... And what happens if lilo doesn't work anymore? Twisted Evil DOlson Moderator Joined: 16 Apr 2002 Posts: 2393 Location: Canada Posted: Wed May 29, 2002 4:55 pm Post subject: _________________________________________________________________ Quote: ... And what happens if lilo doesn't work anymore? Umm... Format and reinstall? Wink ramfree17 Moderator Joined: 18 Apr 2002 Posts: 1262 Location: Philippines Posted: Wed May 29, 2002 10:07 pm Post subject: _________________________________________________________________ of course aru is hard-core. he uses thick manuals as pillows and the manpages as chat-rooms. Very Happy lilo -U works for those wanting to remove the bootloader from the system. i think there is a similar option for GRUB but i dont use it so better check your chatrooms aru. Laughing when your system doesnt work, frag it with an MS fdisk if you are going to remove your syste. if you are not removing the system i will go with scape's last advice: reinstall. hey scape, you are getting install-happy Wink , mellow down dude, i think you are getting in-love with the Mandrake installer. Laughing ciao! Decibels Newbie Joined: 02 Jul 2002 Posts: 4 Posted: Tue Jul 02, 2002 3:59 pm Post subject: _________________________________________________________________ I have found on a few systems that I have to do a couple things before running fdisk cd windows command.com then fdisk /mbr dpdave0 Newbie Joined: 08 Jun 2002 Posts: 17 Location: San Francisco, CA Posted: Tue Jul 02, 2002 8:41 pm Post subject: _________________________________________________________________ Start window$ and go to M$DOS MODE or boot with a M$DOS disk, then run in the command line: Code: fdisk /mbr That will restore the Boot sector. [/i] That does NOT restore a boot sector. It merely overwrites the existing MBR with a M$ one. If that's what you want, fine. But don't fool yourself into thinking you're recovering anything by doing this. ramfree17 Moderator Joined: 18 Apr 2002 Posts: 1262 Location: Philippines Posted: Tue Jul 02, 2002 11:11 pm Post subject: _________________________________________________________________ only in a relative viewpoint. when most people try linux, they dont have any (visible) bootloader and rely on the bios looking for a bootable system on the active partition. when they have a linux installation done, a bootloader is placed on the MBR. now the problem is when people want to remove their linux installation and let their computer boot the way it did before the linux experience. to me it sounds like restoring. but your perceptions might vary. Wink ciao! arusabal Moderator Joined: 17 Apr 2002 Posts: 836 Location: Spain Posted: Wed Jul 03, 2002 7:10 am Post subject: _________________________________________________________________ I couldn't agree more with you ramfree Wink If doing, fdisk /mbr, you leave the things as they were before installing linux, then you are restoring your MBR, there is no discussion at all. If you want to be a purist, then do what ramfree cleverly pointed some posts above (Embarassed ): "/sbin/lilo -U", and if you feel even more purist (almost ill of purity) then do it the way I posted in the former post: dd if=/boot/boot.save of=/dev/hda bs=446 count=1 where boot.save MUST be the copy of the MBR that you carefully saved when you installed lilo, or any other boot loader, the first time (Now you should be sure that you are **restoring** the MBR, the one and only MBR, you had before you started messing with Linux) But afterwards, in any of the tree cases, you'll get the same: remove the lilo boot loader and restore the dos/windows/bios/default master boot record, and that is what cares here Wink Cloim Newbie Joined: 16 Jun 2002 Posts: 3 Posted: Fri Jul 12, 2002 2:49 am Post subject: _________________________________________________________________ Quote: If doing, fdisk /mbr, you leave the things as they were before installing linux, then you are restoring your MBR, there is no discussion at all. I think it should be pointed out that not all Windows computers use generic MS MBR's. Mine does not. It has a 'rescue partition' which becomes useless when the origional MBR is not present. I would strongly suggest that anyone with a system setup like this make sure that they are saving/replacing the origional boot loader and not using a generic MS one. I would also suggest ordering restore CD's, if you don't have them (Hewlett Packard doesn't include any), prior to installing Linux, or partitioning your HD. Just to be on the safe side. Also worh mentioning: They can't send you rescue CD's containing an OS that MS considers to be obsolete. trajan Newbie Joined: 13 Jul 2002 Posts: 1 Posted: Sat Jul 13, 2002 2:45 am Post subject: _________________________________________________________________ is it really as simple a booting into DOS and doing fdisk /mbr ? I tried out mdk 8.1 for about 3 months on my win98 machine, now I want to get rid of the lilo prompt at every bootup. I don't want to trash anything! fdisk is scary to me. Also, what happens to the linux partitions that mdk 8.1 made during install? Do I need to re-partition them as windoze ? (I have Partition Magic 7.0) At the end of this year, I will probably make this machine all linux (mdk 8.2 or whatever's current at that time). But for now, I just want all windoze like before, and no lilo. ramfree17 Moderator Joined: 18 Apr 2002 Posts: 1262 Location: Philippines Posted: Sat Jul 13, 2002 6:58 am Post subject: _________________________________________________________________ hi trajan i got your pm. lilo -U will remove the bootloader from the MBR if you still have a linux system. else you have to do it the fdisk /MBR way. aside from what Cloim said (what system do you have Cloim? please post it so others with your hardware will be notified when they read this), the default behavior of the BIOS (the thing that makes you computer perform the thingamajigs when it boots) is to initialize the basic services of your system and then looks at the active partition for a bootable operating system. in my experience, when i wiped the MBR the BIOS transferred the processing to the active partition and the MS system boots successfully (tried this with Win98SE and Win2K). now there is the problem of what to do with the previous linux partitions. you could delete it (http://www.club-nihil.net/mub/viewtopic.php?t=2279) but the problem arises when making win98 recognize it. from what i can remember, the windows fdisk can only create one primary and one extended partition in a harddisk. if this is really the case and you already have drive D[,E, etc] and you have one harddisk then you have no other option (my opinion only) but to destroy the drives greater than C and create a whole extended partition from the original extended plus the one occupied by your linux system. i have one great news though, it is possible that when you installed mandrake diskdrake just hitchhiked your linux partitions in the extended partition of windows. why is this great? it is because if this is the case then you could create additional logical drives (D, E, F,...) without destroying your current logical drives. this is a little bit out of the scope of this board. ill pm you my office email address and lets work it out from there. its saturday here so i wont promise any reply until monday but i may take a peek at my office mails from home. ciao! powerj Newbie Joined: 14 Aug 2002 Posts: 1 Posted: Wed Aug 14, 2002 4:49 pm Post subject: getting back to WInxp from Mandrake 8.2 _________________________________________________________________ The install CDrom tha came with my MD8.2 has a an option F1 and from there you came revert to previous boot method. Phew that saved haing to re-install XP again and again. Just my 0.02 worth. Jim Bluebeard Senior user Joined: 01 May 2002 Posts: 386 Posted: Wed Aug 21, 2002 7:48 pm Post subject: _________________________________________________________________ There is a different method that should be employed with XP. Use the XP Install CD to load the Recovery Console as described in Knowledge Base article #Q307654. Bluebeard. cannonfodder Moderator Joined: 16 Apr 2002 Posts: 1056 Location: Rochester, NY, USA Posted: Wed Aug 21, 2002 9:41 pm Post subject: _________________________________________________________________ Also, if you uninstall lilo with lilo -u and it still doesn't boot windows (should since it restores the mbr), then before going ballistic, boot into your bios and reset your bios to the defaults. Sometimes the bios gets confused and gets the order of drives (first, second, so on) mixed up. DegnerFX Newbie Joined: 01 Oct 2002 Posts: 3 Location: Jersey City, New Jersey Posted: Thu Oct 03, 2002 12:21 am Post subject: _________________________________________________________________ I'm going to be installing MDK 9.0 to dual boot on my XP box. I was pondering using BootMagic. (Comes bundled with PartitionMagic 7.0) Any advice on how this is done, or if it's even possible/feasible? *edit* Never mind that. I got it working with LILO. Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  14. bradenm Frequent user Joined: 01 May 2002 Posts: 69 Location: Kelowna, BC, Canada Posted: Wed May 01, 2002 7:42 pm Post subject: (newbie) Console HOWTO _________________________________________________________________ Console HOWTO: by bradenm (a work in progress, please comment) Linux revolves around the command line. There are many, many graphical tools, but they are (almost) all just interfaces to the command line. To follow this HOWTO, launch a terminal: Menu > Terminals > Shell Prompt When you are logged in, you will see something like [braden@macdonald braden]$ Here is a breakdown of what this says: [braden@macdonald braden]$ : Your user name. [braden@macdonald braden]$ : The hostname (friendly name) of the computer. [braden@macdonald braden]$ : The name of the directory you are currently in. type pwd for the full path. Changing Directory To change directory, use the cd command. Examples: To change to your home (the main directory for your user) directory: cd or cd $HOME or cd ~ (~ is automattically tranlated into/home/yourname/) To change any directory: cd /foo/blah/stuff/ To change to a directory relative to the current directory: cd music/ Listing files To list the files in the current directory, type ls (LiSt). To list the files with more details: ls -l nota bene: (Latin for note well) In Linux/UNIX all files/directories/commands are treated as case-senitive. Typing LS is different than typing ls. History Bash (the shell, the program that runs the command line) has extensive history capabilities. To see the last command you did, press [uP ARROW]. Pressing it again will view the command before that, and so on. [DOWN ARROW] is the reverse. Typing !ech will execute the last command that you did starting with "ech". (like echo Hi) Your history is stored in the file called .bash_history in your home directory. Piping To send the output of one command as the input of another, use the | operator. (Above the backslash on your keyboard.) Example: cat ~/.bash_history|grep -e echo Will list all commands you've ever entered containing the word "echo" CTRL-x presing CTRL-key will do different things: CTRL-D: logout. Same as typing exit CTRL-S: turns on "keyboard delay". Anything that you type will be stored until your press CTRL-Q Example: Press CTRL-S. Type echo hello [ENTER]Press CTRL-Q. pineault Frequent user Joined: 09 May 2002 Posts: 32 Location: Montreal, Québec Posted: Tue May 14, 2002 2:39 pm Post subject: stupid question about command line display _________________________________________________________________ I would like to know how to control the display in a bash console window, ie when using top or ls how to control the display process so as to work in a page mode and thus be able to scroll through the posted content instead of having just the last lines displayed. bradenm Frequent user Joined: 01 May 2002 Posts: 69 Location: Kelowna, BC, Canada Posted: Tue May 14, 2002 3:28 pm Post subject: _________________________________________________________________ top|more for the output of a command like top or more filename for the contents of a file Also, you can just type top, then use shift+pageUp and shift+pageDn to scroll through the output. cannonfodder Moderator Joined: 16 Apr 2002 Posts: 1056 Location: Rochester, NY, USA Posted: Tue May 14, 2002 4:43 pm Post subject: _________________________________________________________________ So basically more README.txt (hit spacebar to scroll) cat REAMDE.txt | more (same, output gets piped to more program) less README.txt (scroll up/down whatever, hit q to quit) cat README.txt | less pineault Frequent user Joined: 09 May 2002 Posts: 32 Location: Montreal, Québec Posted: Tue May 14, 2002 6:16 pm Post subject: _________________________________________________________________ thanks pokestix Newbie Joined: 31 Oct 2002 Posts: 3 Posted: Thu Oct 31, 2002 8:05 pm Post subject: command prompt to gui _________________________________________________________________ i just installed and it is booting straight to the command prompt. how do i get to the gui? i'm sure this is a really stupid question, but i'm a stupid newb and i couldn't find the answer to this. thanks a bunch. neil spiedra Senior user Joined: 30 May 2002 Posts: 686 Location: Orlando, FL Posted: Thu Oct 31, 2002 8:18 pm Post subject: _________________________________________________________________ At the command prompt, login and type: startx pokestix Newbie Joined: 31 Oct 2002 Posts: 3 Posted: Thu Oct 31, 2002 10:06 pm Post subject: _________________________________________________________________ so simple, but so helpful...thanks a ton man! spiedra Senior user Joined: 30 May 2002 Posts: 686 Location: Orlando, FL Posted: Thu Oct 31, 2002 11:02 pm Post subject: _________________________________________________________________ No problem Smile Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).
  15. True, but that would mean a lot of work ... and since the important thing are the contents... well, the true is that I'm lazy and I'm not drunk as I was yesterday night when I started to make the scripts :P
  16. I know that, but since the urls are mainly to club-nihil's it self who cares... :? The most important thing are the contents, IMHO
  17. no, that removes an intermediate html file between the original html file, which I want to keep, and the final txt.file. If you are interested, Ive modified the last script in order to have a more formated output (bbcode): # ......... pre_regexp='<th class="thRight" nowrap="nowrap">Message</th>' post_regexp='Display posts from previous' pre_regexp_2='postdetails' post_regexp_2='SPAN CLASS="postbody"' for file in *.html; do interm="post_${file}" sed -n "/$pre_regexp/,/$post_regexp/p" $file | sed -n "/$pre_regexp_2/,/$post_regexp_2/p" | egrep -v "${post_regexp//"/"}|Reply with quote|_________________" | sed "s/<a href=.*</a>//g; s/<img.*Joined/Joined/g; s/<b>/[b]/g; s/</b>/[/b]/g; s/(class="name">)/1<p>[color=red]<p>/g; s/<span class="postbody">/1[/color]<p>/g; s/^^M$/<p>/g; s/<span style="font-size: ..px; line-height: normal">(.*)</span>/[size=18]1[/size]/g; s/<span style="font-weight: bold">(.*)</span>/[b]1[/b]/g; s/<td class="code">/[[]code]/g; " > ${interm} lynx -dump ${interm} > ${file/html/txt} #rm ${interm} done
  18. don't follow theYinYeti's advice, follow mine :P Just be sure that no blankspace is appended at the end of the lines if you copy and paste the commands (otherwise the redirections and pipes wont work right)
  19. That was an example of how the backup copies of the Tips&Tricks and FAQ-Howtos from www.club-nihil.net/mub are going to be posted here. As we discused in http://www.mandrakeusers.org/viewtopic.php?t=1744, with modifications on those scripts, and some other scripts I've done tonight, I have backuped and dumped those threads into the format seen above. If no one is against I'll repost those threads here tomorow (please, notice that the work has been done while I was a bit drunk) Here are the scripts used (see the above link for a further description in how to use them): #!/bin/bash #Strips the urls from the forum indexes into TOPICS.TXT URL="www.club-nihil.net/mub/" for file in *viewforum.php.html; do echo -e $( sed -n '/.*(viewtopic.php?t=[[:alnum:]]{1,5}).*topictitle..(.*)</a><.*/ { s//ntagn# 2: tagnt'${URL}'1 tagn/g; p; } /Goto page:/ { s/(viewtopic.php?t=[[:alnum:]]{1,5})&(start=[[:alnum:]]{1,3})/ nt'${URL}'1&2 tagn/g; p; }' < ${file} ) | grep tag | grep -v 'start=0' | sed 's/tag//g' done > TOPICS.TXT #!/bin/bash #downloads the threads (using the urls stored in TOPICS.TXT) mkdir -p html cd html while read url; do if echo $url | grep -q www.club-nihil.net; then wget -E $url; fi; done < ../TOPICS.TXT [arusabal@localhost ~/backup/html]$ for i in viewtopic.php?t=*; do mv $i ${i#*=}; done [arusabal@localhost ~/backup/html]$ for i in *&start=15.html; do mv $i ${i/&*/b}.html; done [arusabal@localhost ~/backup/html]$ for i in *&start=30.html; do mv $i ${i/&*/c}.html; done [arusabal@localhost ~/backup/html]$ for i in *&start=45.html; do mv $i ${i/&*/d}.html; done #!/bin/bash # converts the thread from html format to text mode. pre_regexp='<th class="thRight" nowrap="nowrap">Message</th>' post_regexp='Display posts from previous' pre_regexp_2='postdetails' post_regexp_2='SPAN CLASS="postbody"' for file in *.html; do interm="post_${file}" sed -n "/$pre_regexp/,/$post_regexp/p" $file | sed -n "/$pre_regexp_2/,/$post_regexp_2/p" | egrep -v "${post_regexp//"/"}|Reply with quote|_________________" | sed "s/<a href=.*</a>//g; s/<img.*Joined/Joined/g; s/<b>/[b]/g; s/</b>/[/b]/g; s/(class="name">)/1<p>[color=red]/g; s/<span class="postbody">/1[/color]/g; s/^^M$/<p>/g; s/<span style="font-weight: bold">(.*)</span>/[b]1[/b]/g; " > ${interm} lynx -dump ${interm} > ${file/html/txt} rm ${interm} done The last script is a mess, I know, so feel free to modify it in order to get a better output.
  20. bradenm Frequent user Joined: 01 May 2002 Posts: 69 Location: Kelowna, BC, Canada Posted: Wed May 01, 2002 7:42 pm Post subject: (newbie) Console HOWTO _________________________________________________________________ Console HOWTO: by bradenm (a work in progress, please comment) Linux revolves around the command line. There are many, many graphical tools, but they are (almost) all just interfaces to the command line. To follow this HOWTO, launch a terminal: Menu > Terminals > Shell Prompt When you are logged in, you will see something like [braden@macdonald braden]$ Here is a breakdown of what this says: [braden@macdonald braden]$ : Your user name. [braden@macdonald braden]$ : The hostname (friendly name) of the computer. [braden@macdonald braden]$ : The name of the directory you are currently in. type pwd for the full path. Changing Directory To change directory, use the cd command. Examples: To change to your home (the main directory for your user) directory: cd or cd $HOME or cd ~ (~ is automattically tranlated into /home/yourname/) To change any directory: cd /foo/blah/stuff/ To change to a directory relative to the current directory: cd music/ Listing files To list the files in the current directory, type ls (LiSt). To list the files with more details: ls -l nota bene: (Latin for note well) In Linux/UNIX all files/directories/commands are treated as case-senitive. Typing LS is different than typing ls. History Bash (the shell, the program that runs the command line) has extensive history capabilities. To see the last command you did, press [uP ARROW]. Pressing it again will view the command before that, and so on. [DOWN ARROW] is the reverse. Typing !ech will execute the last command that you did starting with "ech". (like echo Hi) Your history is stored in the file called .bash_history in your home directory. Piping To send the output of one command as the input of another, use the | operator. (Above the backslash on your keyboard.) Example: cat ~/.bash_history|grep -e echo Will list all commands you've ever entered containing the word "echo" CTRL-x presing CTRL-key will do different things: CTRL-D: logout. Same as typing exit CTRL-S: turns on "keyboard delay". Anything that you type will be stored until your press CTRL-Q Example: Press CTRL-S. Type echo hello [ENTER] . Press CTRL-Q. pineault Frequent user Joined: 09 May 2002 Posts: 32 Location: Montreal, Québec Posted: Tue May 14, 2002 2:39 pm Post subject: stupid question about command line display _________________________________________________________________ I would like to know how to control the display in a bash console window, ie when using top or ls how to control the display process so as to work in a page mode and thus be able to scroll through the posted content instead of having just the last lines displayed. bradenm Frequent user Joined: 01 May 2002 Posts: 69 Location: Kelowna, BC, Canada Posted: Tue May 14, 2002 3:28 pm Post subject: _________________________________________________________________ top|more for the output of a command like top or more filename for the contents of a file Also, you can just type top, then use shift+pageUp and shift+pageDn to scroll through the output. cannonfodder Moderator Joined: 16 Apr 2002 Posts: 1056 Location: Rochester, NY, USA Posted: Tue May 14, 2002 4:43 pm Post subject: _________________________________________________________________ So basically more README.txt (hit spacebar to scroll) cat REAMDE.txt | more (same, output gets piped to more program) less README.txt (scroll up/down whatever, hit q to quit) cat README.txt | less pineault Frequent user Joined: 09 May 2002 Posts: 32 Location: Montreal, Québec Posted: Tue May 14, 2002 6:16 pm Post subject: _________________________________________________________________ thanks pokestix Newbie Joined: 31 Oct 2002 Posts: 3 Posted: Thu Oct 31, 2002 8:05 pm Post subject: command prompt to gui _________________________________________________________________ i just installed and it is booting straight to the command prompt. how do i get to the gui? i'm sure this is a really stupid question, but i'm a stupid newb and i couldn't find the answer to this. thanks a bunch. neil spiedra Senior user Joined: 30 May 2002 Posts: 686 Location: Orlando, FL Posted: Thu Oct 31, 2002 8:18 pm Post subject: _________________________________________________________________ At the command prompt, login and type: startx pokestix Newbie Joined: 31 Oct 2002 Posts: 3 Posted: Thu Oct 31, 2002 10:06 pm Post subject: _________________________________________________________________ so simple, but so helpful...thanks a ton man! spiedra Senior user Joined: 30 May 2002 Posts: 686 Location: Orlando, FL Posted: Thu Oct 31, 2002 11:02 pm Post subject: _________________________________________________________________ No problem Smile
  21. Take a look to the rsync(1) command. Will do what you want. Also there was an script made by TheYinYeti that will syncronize both directories the way you want. I don't know if there is a copy in this board, but sure that there is one on www.club-nihil.net/mub
  22. try: ssh -n host mozilla & and if it stills not working, then check your host's ssh_config has the "ForwardX11" parameter enabled another try is 'xhost +host' Just some thoughts.
  23. XFree86-devel-4.2.99.3-1.20021223.4mdk.i586.rpm is the last version of the devel library at COOKER. For what I saw at www.opengl.org; the openGL libraries are included with XFree86. But to be sure you shoud go to that site and check it out.
  24. You are very wellcome. I'll try to help you as much as I can :D
  25. forget all that I said about the syntax before, rsync excludes need quotes to protect the regexp from bash expansion... so I guess that your syntax is OK. I've been playing a lot this evening with rsync -- a great app -- and I've made a couple of cron scripts to synchronize a few directories between my two machines. Basically I've followed the man page. No need for password at all! (accordingly to my ssh configuration). basically my scripts are using this function: sincronizar () { [ $# != 2 ] && return 1 local="${1}/" remoto="arusabal@mdkhost:${2}/" command="rsync -avuzb --exclude '*~'" $command $local $remoto $command $remoto $local } sincronizar local_dir remote_dir thanks for showing me the posibilities of rsync :D hth :D PS: set the env variable RSYNC_RSH=ssh in your .bash_profile
×
×
  • Create New...