Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Rep:
installing packages on slackware 11
Hi to everyone, it has been a while since I last posted. I have moved on to Slackware 11, as reccommended by a friend. The installation went well - but I can't seem to install packages. I keep looking for packages that actually end in tgz, but I haven't found many. When I try to unpack with installpkg, I nearly always get the same reply package does not end in tgz. I tried renaming as someone suggested,but the same problem every time. Why does the installpkg not recognise tar.gz as tgz files? Is there something I can try before I loose all interest in Slackware.
bookie
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Original Poster
Rep:
Thanks to comprookie for a fast reply. Sorry if I was a bit vague. I would like to download webmin on to my slackware and heard that it was possble. Ok Now the whole truth. I was trying to add a second hard drive to my system and it all went pear shaped when I tried to put the informationnn into fstab. When I executed request all hell broke out and my console just started rolling and after twenty minutes or so,I realised that something was wrong. If you don't mind helping me with the exact command structure, I would be eternally greatful. Still like to put Webmin on my system, anyway.
bookie
Idea: after you put the second hard drive in your system, try mounting a partition from it first to see if it's mounted, e.g. if it's the primary slave(hdb), and you want to mount your first partition, you could do (as root):
mkdir /mnt/something
mount /dev/hdb1 /mnt/something
And see if it works.
As for fstab, could you post exactly what you tried adding to it, and, if you remember what was the output of the console?
As for installing webmin, never tried it personally, but you should be able to compile it with comprookie2000's instructions.
From what I understand, Slackware packages, in tgz format, come with a speciall install script, and you can easily install them with installpkg. The source packages, which aren't distro specific, don't have such a script, and of course can't be installed with installpkg even if you change their extension (e.g., if you change the extension of an mp3 to a jpg, can you do anything with it with a picture viewer?)
What exactly did you do, step by step.
First make sure you have created partitions and formatted the drive before you try to mount it.
Can you post fdisk -l so we see what you have. Don't edit fstab until you have manually mounted it
like Mr. Valkyrie_of_valhalla said. You shouldn't have hurt anything and next we will install webmin.
have fun ...
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Original Poster
Rep:
regardin adding second hard drive
Thanks again guys for your very guick response to my situation. Well, ----- I started fdisk /dev/hdb to add my partitions, which was only 1. I gave it 83 linux id even though I would like to christen my self. After that I formated it in mkfs. mkfs -t reierfs /dev/hdb1. This went ok. I had a message come up that I should reboot after fdisk?. Was that before or after I should format it? After formating, I did a reboot and then went in on fdisk to see what was there. There wasn't any partition? What am I doing wrong? I know I am a newbie, but I don't think I am unable to follw commands. Just not sure if I should have formated hard drive before rebooting. Should I do every thing including mounting it before rebootin? Sorry to sound so dense - just a bit confused. Still trying to learn the command structure. I would be greatful for a little more assistance with this problem before going onto webmin.
I think you just forgot to write the partition to disk;
Code:
fdisk /dev/hdb
p <-- to see what is there
n <--- new partition
1 <-- partition number
enter <--- start partition
enter <--- end partition, this will be one partition
w <--- write partition to disk
mkreiserfs /dev/hdb1
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Original Poster
Rep:
regarding adding information into fstab
Thanks Comprookie2000, I wish it was as simple as not writing info to hard drive - I could be so lucky! This is the state of play at the moment. Tried all sorts of combinations to install the second hard drive - the lastest as follows:
I formed a extended partition and then a logical one I then formated the logical partition with reiserfs: mkfs -t reiserfs /dev/hdb5 - no problem. I then mounted it with my name: mkdir /mnt/bookie
mount /dev/hdb5 /mnt/bookie - again no problem. I then tried to write the info to fstab as follows: cat /etc/fstab /dev/hdb5 /mnt/bookie reiserfs defaults 1 2 - and then all hell broke out.The computer beeped a couple of times and then the screen just started rolling with a continuousxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx if you get my drift?! What the hell am I doing wrong?
You need to edit the file, use nano or pico;
nano -w /etc/fstab
ctrl + o then press enter to save
ctrl + x then press enter to exit
add something like;
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Original Poster
Rep:
hard drive discovery
Hi Comprookie2000, you're not just a pretty face are you. I feel so stupid when I think how easy that was to do after your helpful intructions. Thanks a bunch. Well, I might be ready to go on to the next stage Webmin. I have slackware 11 and that comes with the English version of firefox. Because I live in Sweden I would like the Swedish version. I downloaded that version only to find that installpkg does not like tar.gz files. So I am looking to make such files work on my slackware including of course Webmin. I know it is no easy thing I ask. but when I have learnt that I think things will become easier. Just need you to point me in the right direction - not assuming that I am brilliant like you - please keep information like the last time simple and straight forward.
Looking forward to a reply
bookie
With regards to the original question, comprookie's suggestion of LinuxPackages is excellent. Once you've located the app you want, download it, and then you can use a tool such as KPackage if you prefer using a GUI. Assuming you're using KDE, go to System > KPackage > File > Open and choose the package. You can then click on the Install button, but I'd recommend running it in Test mode first, just to make sure it will succeed. If you get RESULT=0, all is well, and you can install it for real.
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Original Poster
Rep:
Thankyou
Hi to Valkyrie of Valhalla, Comprookie2000's solution as to using nano or pico solved mu problem. I take your point about posting. Will remember that in future.
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Original Poster
Rep:
webmin solved
Just thought I'd let you know that I have solved the problem of Webmin on my Slackware. I looked at linux packages - they had the 1.6 version for Slackware 10.0 this I installed without problem and then upgraded to the latest version without problem. The only thing that came up was a warning that I didn't have 10.0 but 11.0. This information was upgraded by webmin without problem. I now have the latest Webmin running without hiccup. Thanks for everyones help on this matter.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.