Author Topic: optimizations for a linux Newb  (Read 2055 times)

Offline wicked_sticky

  • Newly Subscribed
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
optimizations for a linux Newb
« on: October 04, 2016, 03:01:19 pm »
I installed peppermint on a crippled laptop (screen, battery,keyboard,touchpad all dead). But still usefull as desktop. Linux Mint is my go to, but even XFCE version is too bloated for this machine. Works but very slow.

Pappermint did breath new life into the machine
Its an Athlon 2 dual core 2.3ghz, 3GB DDR3, some onboard amd gpu,and a horrifically slow 5400 rpm HDD.

Id like to get this system using as little of the HDD as possible

Aside from lowering swappiness is there anything esle I can do, increase boot time, but maybe load more onto ram? 

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
optimizations for a linux Newb
« Reply #1 on: October 04, 2016, 03:01:19 pm »
To help us help you, ALL new requests for technical support should include basic system information.

If you haven't already done so, please open a terminal (Ctrl+Alt+T) and run the following command:
Code: [Select]
inxi -Fzthen copy what was returned in the terminal and post it back here.

This was an automated response but please don't ignore it, providing this information now is highly likely to save time for both you and any prospective respondents and aid in the diagnosis of your problem  .. Thanks in advance :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: optimizations for a linux Newb
« Reply #2 on: October 05, 2016, 12:27:22 am »
Hi Wicked-sticky,

Welcome to the forum and good choice of distro  ;)
Have you tried this website, a great resource for noobs and forgetful users like me...
https://sites.google.com/site/easylinuxtipsproject/first-lubuntu

Following the links to other pages opens up even more tweaks and good info.
This site is constantly updated to reflect changes in linux versions.
Well worth a bookmark IMHO


Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4889
  • Karma: 1058
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 10 (64-bit)
Re: optimizations for a linux Newb
« Reply #3 on: October 05, 2016, 12:35:04 am »
Hi wicked_sticky, welcome to the Peppermint Forum  8).  We need you to reply to the automated inxi -Fz request.  This way, we can form a clearer picture of your system - many thanks  ;).
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline wicked_sticky

  • Newly Subscribed
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: optimizations for a linux Newb
« Reply #4 on: October 05, 2016, 05:11:26 pm »
Hi wicked_sticky, welcome to the Peppermint Forum  8).  We need you to reply to the automated inxi -Fz request.  This way, we can form a clearer picture of your system - many thanks  ;).

System:    Host: Pmint Kernel: 4.4.0-24-generic x86_64 (64 bit) Desktop: N/A
           Distro: Peppermint Seven
Machine:   System: Hewlett-Packard product: Presario CQ62 Notebook PC v: 0498100000242810000020000
           Mobo: Hewlett-Packard model: 1444 v: 69.37
           Bios: Hewlett-Packard v: F.29 date: 04/07/2011
CPU:       Dual core AMD Athlon II P320 (-MCP-) cache: 1024 KB
           clock speeds: max: 2100 MHz 1: 1500 MHz 2: 1500 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] RS880M [Mobility Radeon HD 4225/4250]
           Display Server: X.Org 1.18.3 drivers: ati,radeon (unloaded: fbdev,vesa)
           Resolution: 1280x1024@60.02hz
           GLX Renderer: Gallium 0.4 on AMD RS880 (DRM 2.43.0, LLVM 3.8.0)
           GLX Version: 3.0 Mesa 11.2.0
Audio:     Card Advanced Micro Devices [AMD/ATI] SBx00 Azalia (Intel HDA)
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.4.0-24-generic
Network:   Card: Realtek RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
           driver: r8169
           IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 320.1GB (3.4% used)
           ID-1: /dev/sda model: Hitachi_HTS54503 size: 320.1GB
Partition: ID-1: / size: 104G used: 4.1G (5%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 7.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 41.5C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 168 Uptime: 5 min Memory: 573.9/2751.5MB
           Client: Shell (bash) inxi: 2.2.35
 ;)


system settings above, Im assuming the lag I get is the hard drive. example I open firefox, was 0 sec fire fox is open running smooth after.
« Last Edit: October 05, 2016, 06:02:56 pm by wicked_sticky »

Offline wicked_sticky

  • Newly Subscribed
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: optimizations for a linux Newb
« Reply #5 on: October 05, 2016, 05:52:32 pm »
Hi Wicked-sticky,

Welcome to the forum and good choice of distro  ;)
Have you tried this website, a great resource for noobs and forgetful users like me...
https://sites.google.com/site/easylinuxtipsproject/first-lubuntu

Following the links to other pages opens up even more tweaks and good info.
This site is constantly updated to reflect changes in linux versions.
Well worth a bookmark IMHO

Thanks, Im 100% new to peppermint (actually stopped using linux when Mint 7 was just released).
Does this distro have codecs included (or whatever lubuntu restricted extras is from the lubuntu link)?

Online Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2307
  • Karma: 612
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: optimizations for a linux Newb
« Reply #6 on: October 05, 2016, 11:03:17 pm »
Hi wicked_sticky,

One thing that I noticed in your posted output to inxi -Fz is that you have 7 GB of swap space on the HDD. This is very high and can safely be reduced to 2 GB. This will free up about 5 GB of space that otherwise would probably never be used.  ;)

As for your question about codecs: please post this as a separate thread question. We try to keep threads to one question (the one listed in the Subject: line) per thread. For this question, however, you will find that your answer is already in the forum. Just use the Search function with appropriate key words (such as codecs, restricted extras).

Regards,

-- Slim
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline ColonelPanic

  • Newly Subscribed
  • *
  • Posts: 22
  • Karma: 4
    • View Profile
    • Linux Linx 2016
  • Peppermint version(s): 7
Re: optimizations for a linux Newb
« Reply #7 on: October 06, 2016, 05:45:57 am »

 Regarding the size of your swap partition, if you plan to hibernate your laptop, you will need slightly more than 3GB swap. When you have "HDD Total Size: 320.1GB (3.4% used)", adjusting the size of the swap partition does not seem to be too critical.
 
 Back to your original question...
Quote
Id like to get this system using as little of the HDD as possible
 Aside from lowering swappiness is there anything esle I can do, increase boot time, but maybe load more onto ram?
You can use ram for tmp by adding these lines to /etc/fstab
 
Code: [Select]
#force temporary files to be stored in memory instead of on disk
 none /tmp     tmpfs nodev,nosuid,mode=1777 0 0

 It is possible that a local computer repair shop might have a used 7200rpm laptop hard drive they would sell you for minimal cost. That might help.
« Last Edit: October 06, 2016, 05:51:25 am by ColonelPanic »
AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: optimizations for a linux Newb
« Reply #8 on: October 06, 2016, 06:09:18 am »
You can use ram for tmp by adding these lines to /etc/fstab
 
Code: [Select]
#force temporary files to be stored in memory instead of on disk
 none /tmp     tmpfs nodev,nosuid,mode=1777 0 0

Wicked-sticky, as you have stated that your a noob, here is a helping hand to do the above:
Open the terminal (Ctrl_Alt_T):
Copy & Paste the following, followed by your password.
Code: [Select]
gksudo pluma /etc/fstabThen copy and paste the following at the END of the pluma file that has opened up (fstab):
Code: [Select]
#force temporary files to be stored in memory instead of on disk
 none /tmp     tmpfs nodev,nosuid,mode=1777 0 0

save the pluma file then exit.
reboot the system to take effect.  ;)

Your system temp files will now be cached to memory instead of the HDD.

Offline ColonelPanic

  • Newly Subscribed
  • *
  • Posts: 22
  • Karma: 4
    • View Profile
    • Linux Linx 2016
  • Peppermint version(s): 7
Re: optimizations for a linux Newb
« Reply #9 on: October 06, 2016, 07:00:20 am »
Thank you for taking the time to explain, acer.
Please note that reboot is not necessary.
Code: [Select]
sudo mount -awill re-read /etc/fstab for you and execute the contents.
AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI

Offline wicked_sticky

  • Newly Subscribed
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: optimizations for a linux Newb
« Reply #10 on: October 06, 2016, 12:05:36 pm »
lots of replies, Thanks everyone! Ill make the fstab change tonight.

p.s. The reason for the above average swap is, if this laptop turned desktop actually gets used for something other than messing around with linux. Ill swap out the 1gb stick for a 4gb stick (6gb total), hence 7gb swap... just in case.

 p.s.s. Peppermint OS, is exactly what I was looking for, deleting all the other distros installed,  big thank you to the developers
« Last Edit: October 06, 2016, 12:14:31 pm by wicked_sticky »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: optimizations for a linux Newb
« Reply #11 on: October 06, 2016, 12:29:21 pm »
Great stuff, and on behalf of Team Peppermint you're most welcome :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec