Linux testejä & maailma
Random linux stuff, with two languages
-
How to increase unraid VM HDD size
First you need to locate vmdisk.img file.
Then run this command: qemu-img resize vdisk1.img +5G. This add 5gb more space.
Then inside that virtual machine...
- Extend the physical drive partition:
sudo fdisk /dev/vda
– Enter the fdisk tool to modify /dev/vda
NOTE: End each one letter command by pressing [Enter]; if the instructions do not specify a specific response to a question, just press [Enter] to accept the defaultp
– p command prints the disk info, same as runningfdisk -l /dev/vda
d
– d command delete the last partition (in this case, /dev/vda1)n
e
n command creates a new partition; e makes that an extended partitiont
– t changes the type of partition8e
– Enter 8e (lvm) as the partition type
NOTE: In some cases the disk uses GPT signature rather than DOS. In that case, use the31
(lvm) as the partition typew
– w writes the changes to disk and exits fdisk
- Modify (extend) the LVM:
- Tell LVM the physical partition size has changed:
sudo pvresize /dev/vda1
- Find the actual path of the LVM logical volume:
sudo lvdisplay
– The LV Path is value needed - Tell LVM to extend the logical volume to use all of the new partition size:
sudo lvextend -l +100%FREE /dev/COMPbase-vg/root
– Using the LV Path from above
- Tell LVM the physical partition size has changed:
- Resize the file system:
sudo resize2fs /dev/COMPbase-vg/root
- Extend the physical drive partition:
-
How to add customize Vmware sphere image with driver?
First download PowerShell script from here.
Then open powershell terminal on your win10 and run this command:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Because you need permissions for running that script.Now you are ready to run script and add drivers into vmware sphere image.Here command example:./ESXi-Customizer-PS.ps1 -v67 -pkgDir d:\tmp\pkg2And inside that pkg2 folder add your drivers. -
After long break!
Last post was so long time ago, so time to fix that issue ;).
Had many things what I had plans to write, but never wasn't time to do that.
So here we go!
How to setup static IP address on Raspbian Jessie? This is changed in new release.
So best place where to do those IP settings are in file /etc/dhcpcd.conf.
Command: sudo nano/etc/dhcpcd.confSo do all changes in that file.Here is example:interface eth0
192.168.1.1
static ip_address=192.168.1.30/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
interface wlan0
static ip_address=192.168.1.31/24
static routers=192.168.1.1
static domain_name_servers= -
Raspberry PI 2B ja lämpötila anturi
Ensiksi pitää hankkia jostain edullisesti lämpötila antureita ja naaras 40pin liittimiä piirilevylle.
Tekemäni versio on koekytkentälevyllä.
Seuraavaksi kytketään 1 nasta maihin. 2 nasta on GPIO:lle ja kolmas nasta +3,3V. Kytke 3 nasta Raspberry PI 2B:n 1 nastaan. 2 nasta GPIO 4:aan eli nastaan 7, GND:n voit ottaa nastasta 6 esimerkiksi. Vastus 4,7kohm tulee +3,3voltin ja GPIO:n välille.
Seuraavaksi konffauksen kimppuun.
Aluksi avaa tiedosto config.txt: sudo /boot/config.txt
Lisää loppuun rivi: dtoverlay=w1-gpio, gpiopin=7, pullup=on.Jos käytössäsi on useampi sensori kytke ne samaan gpio:n alle.Aja seuraavat komennot:
sudo modprobe wire
sudo modprobe w1-gpio
sudo modprobe w1_thermBoottaa Raspberry PI.
Tämän jälkeen pitäisi näkyä seuraava komennolla lsmod:
Seuraavaksi voit ajaa komennon:
cat /sys/bus/w1/devices/28-*/w1_slaveTulisi näkyä seuraava:Alempi tulos on lämpötila Cº. Eli 33,1Cº. -
Gentoo testi!
Gentoota pidettiin joskus vaikea käyttöisenä ja vain nörttien käyttöjärjestelmänä. Mutta nykyään se ei ole sitä. Joten päätin testata sitä virtualboxissa. Saat ladattua liveCD:n täältä.
Nopealla tuntumalla, vaikuttaa nopealta käyttöjärjestelmältä.
Että ei muuta kuin asentamaan ja käyttämään ;)
© 2021 Hallikainen Home Pages | Takaisin ylös