hulika

Author Topic: Linux  (Read 7501 times)

Offline lil.drummerboy

  • Philmusicus Addictus
  • *****
Re: Linux
« Reply #25 on: August 29, 2013, 02:44:57 AM »
tnx! pag natutuo ba kahit konti ng knowledge sa linux in general ma aaply yun sa lahat ng linux distros? lalo na commands sa terminal? medyo may pagkakaiba ata sila minsan?

Offline qroon

  • Tanod
  • Prime Moderator
  • ******
Re: Linux
« Reply #26 on: August 29, 2013, 07:50:04 AM »
tnx! pag natutuo ba kahit konti ng knowledge sa linux in general ma aaply yun sa lahat ng linux distros? lalo na commands sa terminal? medyo may pagkakaiba ata sila minsan?

Yep. Yung basics ng manipulation of command line (shell) works everywhere. Like who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; fsck; more; gasp; yes; uptime; umount; make clean; sleep, those commands will take you far :)

Seriously, you can learn a lot. Ang differences naman generally ay yung package management, like ubuntu (being Debian-derived) uses apt/deb while Fedora/RH/Oracle/Clones use yum/RPM. Mandrake and derivates use urpmi, Suse's yast and so on. Pagdating naman sa similarities, marami na. Like file system layout (/, /boot, /etc, /usr, /bin, /var. Init stages (init 0-6 usually), boot loader (grub, lilo), init scripts under /etc/init.d, what goes into /bin vs. /usr/bin, config files under /etc, constant changing files like logs under /var, optional programs under /opt. And the list goes on.
« Last Edit: August 29, 2013, 08:03:27 AM by qroon »


Semper Erectus
Spur | Helical | Bevel | Hypoid | Crown | Epicyclic

Offline mayoroadie

  • Regular Member
  • ***
Re: Linux
« Reply #27 on: August 29, 2013, 08:41:27 AM »
hate na hate ko ang linux...pero yung app systems na nasa desktop pc lang na ininstall ko pa ng 2004 eh running pa hanggang ngayon, ang problem ko papano ko sya ilipat sa vm host.

kaya kelangan kong pag-aralan ulit fedora 19 naman ngayon, nakalimutan ko na lahat.. :lol:

Offline lil.drummerboy

  • Philmusicus Addictus
  • *****
Re: Linux
« Reply #28 on: August 29, 2013, 12:02:56 PM »
Yep. Yung basics ng manipulation of command line (shell) works everywhere. Like who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; fsck; more; gasp; yes; uptime; umount; make clean; sleep, those commands will take you far :)

Seriously, you can learn a lot. Ang differences naman generally ay yung package management, like ubuntu (being Debian-derived) uses apt/deb while Fedora/RH/Oracle/Clones use yum/RPM. Mandrake and derivates use urpmi, Suse's yast and so on. Pagdating naman sa similarities, marami na. Like file system layout (/, /boot, /etc, /usr, /bin, /var. Init stages (init 0-6 usually), boot loader (grub, lilo), init scripts under /etc/init.d, what goes into /bin vs. /usr/bin, config files under /etc, constant changing files like logs under /var, optional programs under /opt. And the list goes on.
thanks! can you give some guidelines what to learn on basic and general knowledge on linux?    what and where do i start? :) pag aralan ko sa ubuntu, linux mint at tapos fedora siguro. para iba iba :D

Offline qroon

  • Tanod
  • Prime Moderator
  • ******
Re: Linux
« Reply #29 on: October 10, 2013, 02:01:59 AM »
Sharing this good article about moving multiple physical volumes to a new disk:

http://whmcr.com/2011/06/21/moving-part-of-an-lvm-vg-from-one-pv-to-another/


Semper Erectus
Spur | Helical | Bevel | Hypoid | Crown | Epicyclic


Offline lil.drummerboy

  • Philmusicus Addictus
  • *****
Re: Linux
« Reply #30 on: November 01, 2013, 02:03:50 AM »
guys, paano gumawa ng partition galing dun sa filesystem? na install ko na kasi sa laptop yung linux mint. nakalimutan ko na pwede pala mag partition bago mag install ng os. kung gagamit ng software ano maganda at madali?

Offline qroon

  • Tanod
  • Prime Moderator
  • ******
Re: Linux
« Reply #31 on: November 01, 2013, 02:19:22 AM »
Pwede mo bang i-paste yung filesystem layout mo? Try this:

df -h
fdisk -l

Paste mo dito ang output.


Semper Erectus
Spur | Helical | Bevel | Hypoid | Crown | Epicyclic

Offline lil.drummerboy

  • Philmusicus Addictus
  • *****
Re: Linux
« Reply #32 on: November 01, 2013, 03:05:38 AM »
Filesystem                 Size  Used Avail Use% Mounted on
/dev/mapper/mint--vg-root  455G  9.0G  423G   3% /
none                       4.0K     0  4.0K   0% /sys/fs/cgroup
udev                       2.0G  4.0K  2.0G   1% /dev
tmpfs                      394M  1.0M  393M   1% /run
none                       5.0M     0  5.0M   0% /run/lock
none                       2.0G  216K  2.0G   1% /run/shm
none                       100M   12K  100M   1% /run/user
/dev/sda1                  228M   43M  173M  20% /boot



wala lumalabas sa fdisk -l
« Last Edit: November 01, 2013, 03:10:39 AM by lil.drummerboy »

Offline qroon

  • Tanod
  • Prime Moderator
  • ******
Re: Linux
« Reply #33 on: November 01, 2013, 03:34:47 AM »
You can use Gparted live cd:

http://gparted.sourceforge.net/livecd.php

Then take a look at this:

http://gparted.sourceforge.net/display-doc.php?name=help-manual#gparted-resize-partition

So ang gagawin nyan eh eh boot into live cd, hanapin mo yung lv na ire-resize, resize it then reboot. Take note na kailangan hindi naka-mount yung partition/lv. Then after mong ma-resize, you can either boot into your system and add new partitions/lv. Or pwede mo pa ring gawin sa gparted.

Depende na sa gusto mo yan. Gusto mo bang may separate partition kada Volume Group (VG)? Or separate Logical Volume (LV) within a partition? Looking at your filesystem, may 3 kang partition. 1 for swap, 1 for /boot and one for the mint--vg volume group.

Dun sa mint--vg VG mo, andun ang root LV mo na naka-mount naman as / . Now, may dalawang option ka. Pwede mong ire-size lang ang root LV and then add separate LVs para sa kung ano mang purpose mo (separate LVs for /home, /var). Warning lang, if you decided to have separate LVs for /var and /home, marami-rami kang gagawin (permissions, moving contents etc.)

The second option, which is mas madugo, he he he, is to resize the mint--vg VG and root LV then make room for new unformatted partition. You will have to spend more time sa GParted live CD. I'm not familiar with how Mint does it, pero most distros have a rescue mode na pwedeng yun ang gamitin mo in doing the resize/repartition.

As always, back up your important data, he he he. I would prefer na fresh re-install na lang para simple. Pero if you're exploring. Try the method above. Order some pizza and enjoy Linux!


Semper Erectus
Spur | Helical | Bevel | Hypoid | Crown | Epicyclic

Offline lil.drummerboy

  • Philmusicus Addictus
  • *****
Re: Linux
« Reply #34 on: November 01, 2013, 04:24:17 AM »
medyo madugo nga parang mas madali kung sa pag install na lang ilagay.. kung 500gb HD. 4g  ram. gano ka laki maganda iset sa partition. para sa /root     at swap space? ( halimbawa na din aabot 100g ang mga iinstal na program). tapos yung remaining free space para sa /home.
« Last Edit: November 01, 2013, 04:26:28 AM by lil.drummerboy »

Offline qroon

  • Tanod
  • Prime Moderator
  • ******
Re: Linux
« Reply #35 on: November 01, 2013, 04:47:39 AM »
8 GB sa swap (the rule of thumb is 2x phyrical RAM). Eto naman sa iba pang partition:

/boot - 100MB. Separate partition para sa kernel at boot loader yan. Usually ay hindi na to ginagamitan ng LVM (linux volume manager).

Gawa ka ng separate na root Volume Group for /, /usr and /var.

VG name: rootvg (90 GB)

/ - rootlv. Make it 10GB
/usr - usrlv. Make it 10GB too.
/var - varlv. 10GB as well.

Now, what happened to the rest of 90 GB? You can dynamically add size to /, /usr or /var in case na kailangan mo in the future. sa /usr napupunta ang applications executables and libraries. Sa /var naman ay logs and variable libraries. the rest ay sa / na like /etc kung saan naroroon ang config files, /root yung home directory ng root, /lib ay system libraries, /bin ay yung system binaries.

VG name: homevg (the rest ng natitirang size ng disk)

/home - home directories ng users.

Anong advantage ng separate /home? Pwede kang mag-reinstall ng kahit anong Linux distro and retain /home. Just take note of the UID and GID. Intact pa rin ang data mo.


Semper Erectus
Spur | Helical | Bevel | Hypoid | Crown | Epicyclic

Offline chip

  • Senior Member
  • ***
Re: Linux
« Reply #36 on: June 02, 2014, 02:26:04 PM »
me!

im using ubuntu for android development in work  :razz:

Offline ObsidianHex

  • Philmusicus Noobitus
  • *
Re: Linux
« Reply #37 on: April 10, 2015, 01:31:19 PM »
8 GB sa swap (the rule of thumb is 2x phyrical RAM). Eto naman sa iba pang partition:

/boot - 100MB. Separate partition para sa kernel at boot loader yan. Usually ay hindi na to ginagamitan ng LVM (linux volume manager).

Gawa ka ng separate na root Volume Group for /, /usr and /var.

VG name: rootvg (90 GB)

/ - rootlv. Make it 10GB
/usr - usrlv. Make it 10GB too.
/var - varlv. 10GB as well.

Now, what happened to the rest of 90 GB? You can dynamically add size to /, /usr or /var in case na kailangan mo in the future. sa /usr napupunta ang applications executables and libraries. Sa /var naman ay logs and variable libraries. the rest ay sa / na like /etc kung saan naroroon ang config files, /root yung home directory ng root, /lib ay system libraries, /bin ay yung system binaries.

VG name: homevg (the rest ng natitirang size ng disk)

/home - home directories ng users.

Anong advantage ng separate /home? Pwede kang mag-reinstall ng kahit anong Linux distro and retain /home. Just take note of the UID and GID. Intact pa rin ang data mo.

awesome partition plan @qroon!
(hehe new account --forgot my login deets)  :eek:


currently trying out Zorin Linux

Offline ierofan

  • Philmusicus Addictus
  • *****
Re: Linux
« Reply #38 on: June 03, 2015, 10:22:42 AM »
8 GB sa swap (the rule of thumb is 2x phyrical RAM). Eto naman sa iba pang partition:

/boot - 100MB. Separate partition para sa kernel at boot loader yan. Usually ay hindi na to ginagamitan ng LVM (linux volume manager).

Gawa ka ng separate na root Volume Group for /, /usr and /var.

VG name: rootvg (90 GB)

/ - rootlv. Make it 10GB
/usr - usrlv. Make it 10GB too.
/var - varlv. 10GB as well.

Now, what happened to the rest of 90 GB? You can dynamically add size to /, /usr or /var in case na kailangan mo in the future. sa /usr napupunta ang applications executables and libraries. Sa /var naman ay logs and variable libraries. the rest ay sa / na like /etc kung saan naroroon ang config files, /root yung home directory ng root, /lib ay system libraries, /bin ay yung system binaries.

VG name: homevg (the rest ng natitirang size ng disk)

/home - home directories ng users.

Anong advantage ng separate /home? Pwede kang mag-reinstall ng kahit anong Linux distro and retain /home. Just take note of the UID and GID. Intact pa rin ang data mo.

Uy, mga ka-linux. Meron pala tayo dito. hehe!

Here's my input about disk partitions. Considering I have a 320gb laptop hard drive.

swap: the same as qroon. (8gb, considering 4gb ram)
boot: same.
/home - 10% ng disk (32gb)
/ - 10gb
/tmp - 20% (64gb) (i work around big mysql data results. so kelangan ko ito. otherwise, mag me-memory fail yung mga queries. ko.)
/var - 20% (64gb) ng disk (this is where all my projects go.)

May isa akong VM to simulate server environment. Tapos, I keep the remaining in case kaylangan ko ng VMs. *cough* internet explorer testing *cough*

PS: I'm using arch (work) and ubuntu (home pc) side by side. The arch move was a big mistake. #RollingReleaseProblems
████████████████████████████████████████████████████████████████████████

[This signature has been blocked in accordance to RA No. 10175]

Offline sonicassault

  • Philmusicus Addictus
  • *****
Re: Linux
« Reply #39 on: June 03, 2015, 11:01:43 AM »
Di ako linux expert, basta may naka-dualboot ako na Ubuntu 9.04 ata basta yung may Unity na, alongside Windows 7. sobrang panalo nung college kasi kahit magloko yung windows ko reboot lang ako into Ubuntu tapos back to work agad!  :)
https://soundcloud.com/sonicassault
Quote
Turn up the sympathsizer and give me more waffle.
olive oil garlic tomatoes salt pepper basil oregano thyme chili