LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-27-2012, 11:56 PM   #1
AngryAngry
Member
 
Registered: Jan 2011
Posts: 67

Rep: Reputation: 0
Noob with (hopefully) easy questions, XFCE file stuff and compiling


Experienced user, can cope with console environment, logged in as Root, using XFCE.
Noob Linux user - can find my way around XFCE reasonably well. Running Slack 13.37 from cds.

Where do I find the folders on my computer for things such as G++ (it is probably under /dev but can't see any program called g++), educational software, Games, Kwallet? - all under XFCE I'd like to delete some of these to free up room. I only have a 20gb HDD.

Also I did not do a complete install (left out perl, ruby and some others - I've already been scolded for this so please don't) - I still have my install cds, can I simply compile straight from them?

Where is the setting in XFCE to make all files be deleted permanently rather than put into the Rubbish folder (thought I found it once but couldn't find it recently)?

I also have a windows file on an sd memory card that is marked as system and refuses to be deleted and the drive won't format - says corrupt but I believe it is a virus as it keeps remounted in Linux and autoloading in Windows. Is it easy to remove these files under linux? How do I change System/Hidden attributes couldn't find these options in Thunar/Dolphin?
 
Old 07-28-2012, 01:39 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
1) No program is in /dev. Don't remove anything from /dev, never. /dev is only an abstraction used for the programs to communicate with the hardware with kernel's help.

2) User programs are usually installed in /usr/bin for Slackware, when they are provided by an official Slackware package. Some "unofficial" packages put the programs in /opt (examples which come to mind: libreoffice provided by Alien BOB, picasa).

3) To find where a program is, "which" (for the shell commands) and "whereis" (for the binaries, source and manual pages) are handy. Type "man which" or "man whereis" to know more.

4) To know where Slackware package are installed, just look in /var/log/packages in which all installed Slackware packages are recorded. To easily find a package in it, just type:
Code:
ls /var/log/packages | grep -i "package name"
For instance:

Code:
bash-4.1$ ls /var/log/packages |grep -i g++
gcc-g++-4.5.2-i486-2
bash-4.1$

To see the purpose and content of a package use "pkgtool"

To know from which package come a file (if it come from a Slackware package), you can use:
Code:
grep <file_name> /var/log/packages/*
5) To remove a package, use the "pkgtool" command. The "Remove" sub-command will list all installed packages and allow you to remove it.

6) To install a package not already installed, either use "installpkg /path/to/the/package/to/be/installed" or (easier) "slackpkg install <package>", see "man slackpkg".
For a program not included in slackware go to slackbuilds.org, read "HOWTO" and "FAQ" before proceeding.

Last edited by Didier Spaier; 07-28-2012 at 08:02 AM.
 
2 members found this post helpful.
Old 07-29-2012, 09:52 PM   #3
AngryAngry
Member
 
Registered: Jan 2011
Posts: 67

Original Poster
Rep: Reputation: 0
wow

Thanks for that detailed reply, I'll get started on investigating those things. (always assumed /dev was short for Development haha)
 
Old 07-30-2012, 02:11 AM   #4
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by AngryAngry View Post
Thanks for that detailed reply, I'll get started on investigating those things. (always assumed /dev was short for Development haha)
Yeah Didier gave you a good overview... Btw "dev" in "/dev" stands for "/dev"-ices... It is a special branch on the filesystem where files are in fact "interfaces" to the hardware devices.

Enjoy your exploration
 
Old 07-30-2012, 10:03 AM   #5
mrascii
Member
 
Registered: Jun 2012
Location: on the Net
Distribution: Slackware
Posts: 100

Rep: Reputation: Disabled
That's a lot of questions for one post. Keeping to one question per post makes it easier to answer and easier to search. ;-)

Your 20GB hard drive is big enough for Slackware. I have a full install of 13.37 and the root directory uses 6GiB. A good setup for such a small hard drive as yours would be 10GiB for / and the balance on a separate /home partition. The old rule of thumb for swap is twice the physical RAM and I'd stick with that especially if you intent to suspend the machine. As an option you could also put /boot on a small 100MiB partition. This setup would assure that even if /home fills up the system itself won't be starved for resources.

DNA
AKA mrascii

Last edited by mrascii; 07-30-2012 at 10:04 AM.
 
Old 07-30-2012, 08:26 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
One of the better simple setups I've discovered you can have for a file system design is this (example only):

/dev/sda1 ext4 /boot (5GB)
/dev/sda2 btrfs /(root) (rest of the free diskspace)
/dev/sda5 swap (double the size of your RAM)
 
Old 07-30-2012, 08:42 PM   #7
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Size of /boot partition?

Quote:
Originally Posted by ReaperX7 View Post
/dev/sda1 ext4 /boot (5GB)
/dev/sda2 btrfs /(root) (rest of the free diskspace)
/dev/sda5 swap (double the size of your RAM)
I know this was only an example, but I noticed the 5GB /boot partition. I usually make my /boot partions 100MB or 200MB for expansion, which is much several times larger than 30MB needed for my LILO setups

I've not see a /boot partition recommendation over 1GB before. Does UEFI or GRUB require gigabytes of space instead of megabytes?
 
Old 07-30-2012, 08:50 PM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I think it's only MB still, but I do allocate the extra space just as a precaution in case of the unforeseen. I do tend now to use GRUB more often, even though I lack a UEFI BIOS. Normally I'd never allocate more than 50MB for even GRUB and the Kernel, but diskspace is fickle and often I tend to store a few things in /boot just for emergency purposes.
 
Old 08-07-2012, 11:43 PM   #9
AngryAngry
Member
 
Registered: Jan 2011
Posts: 67

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mrascii View Post
That's a lot of questions for one post. Keeping to one question per post makes it easier to answer and easier to search. ;-)

Your 20GB hard drive is big enough for Slackware. I have a full install of 13.37 and the root directory uses 6GiB. A good setup for such a small hard drive as yours would be 10GiB for / and the balance on a separate /home partition. The old rule of thumb for swap is twice the physical RAM and I'd stick with that especially if you intent to suspend the machine. As an option you could also put /boot on a small 100MiB partition. This setup would assure that even if /home fills up the system itself won't be starved for resources.

DNA
AKA mrascii
I believe I made it 8gb, 8gb, and 3 for the /var, using ext3.
I have 500mb of ram, I do suspend but don't often have anything open - sometimes one or two mousepads and thunar directory open.

Thanks for your help - I wasn't able to edit my original post so will mark this as solved so I can repost my questions separately. Cheers guys(unisex reference).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Good but sorta easy guide to Kernel compiling/Re-Compiling? linus72 Linux - General 1 07-13-2009 01:37 PM
Help a Noob out... Easy ?s RAdams Slackware 6 10-12-2006 12:13 PM
Xfce! A few simple questions for a super-noob Taigrr Linux - Software 3 04-04-2006 05:16 PM
Can't configure stuff right for anything but root. And an easy X question vdogvictor Slackware 2 04-22-2004 06:26 PM
Multiple values with SQL (Noob stuff) Travis86 Programming 6 09-03-2003 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration