tag:blogger.com,1999:blog-3472132617845918052024-03-19T10:47:08.070-07:00Lohman's Blogzedr0khttp://www.blogger.com/profile/01448772262903147162noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-347213261784591805.post-57784417896275758832018-06-12T10:47:00.001-07:002018-06-12T10:47:43.691-07:00Slackware 14.2 with Hyper-V<div dir="ltr">
After installing the system to the virtual machine one have to create an initrd with hv-modules included and add it to lilo.cfg.</div>
<div dir="ltr">
<br /></div>
<div dir="ltr">
<span style="background-color: #cccccc;">mkinitrd -c -r /dev/sdx -m hv_vmbus:hv_storvsc:mbcache -u -o /boot/initrd.gz</span></div>
<div dir="ltr">
<br /></div>
<div dir="ltr">
add: <span style="background-color: #cccccc;">initrd = /boot/initrd.gz</span> to lilo.cfg and run lilo</div>
<div dir="ltr">
<br /></div>
<div dir="ltr">
thats it.</div>
zedr0khttp://www.blogger.com/profile/01448772262903147162noreply@blogger.com0tag:blogger.com,1999:blog-347213261784591805.post-72849397404526087532018-03-28T04:03:00.000-07:002018-03-28T04:07:01.871-07:00How to find out all ip-adresses in your network<div style="border: 0px; box-sizing: inherit; font-stretch: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;">
<span style="background-color: white;"><span style="color: #111111; font-family: Arial, Helvetica, sans-serif;">to find out all used ip-adresses in my network I use:</span></span><span style="background-color: #eff0f1; color: #111111; font-family: consolas, menlo, monaco, "lucida console", "liberation mono", "dejavu sans mono", "bitstream vera sans mono", "courier new", monospace, sans-serif; font-size: 13px;"><br /></span></div>
<pre style="background-color: #eff0f1; border: 0px; box-sizing: inherit; color: #111111; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;">nmap -sn 192.168.1.0/24</pre>
zedr0khttp://www.blogger.com/profile/01448772262903147162noreply@blogger.com0tag:blogger.com,1999:blog-347213261784591805.post-16987312420945479662017-11-21T11:46:00.001-08:002017-11-21T11:46:25.156-08:00Joy Division - Ceremony (I love this song)<h2 class="hidden-print" style="background-color: white; box-sizing: border-box; color: #2f2f2f; font-family: "Roboto Condensed", sans-serif; font-size: 20px; line-height: 1.1; margin-bottom: 15px; margin-top: 0px; text-align: center; text-transform: uppercase;">
Joy Division - CEREMONY</h2>
<div id="lyrics" style="background-color: white; box-sizing: border-box; color: #2f2f2f; font-family: Roboto, sans-serif; font-size: 13px; line-height: 24px; margin-bottom: 15px; text-align: center;">
This is why events unnerve me,<br style="box-sizing: border-box;" />They find it all, a different story,<br style="box-sizing: border-box;" />Notice whom for wheels are turning,<br style="box-sizing: border-box;" />Turn again and turn towards this time,<br style="box-sizing: border-box;" />All she ask's the strength to hold me,<div id="71M_inreadads" style="box-sizing: border-box;">
</div>
Then again the same old story,<br style="box-sizing: border-box;" />Word will travel, oh so quickly,<br style="box-sizing: border-box;" />Travel first and lean towards this time.<br style="box-sizing: border-box;" />Oh, I'll break them down, no mercy shown,<br style="box-sizing: border-box;" />Heaven knows, it's got to be this time,<br style="box-sizing: border-box;" /><br style="box-sizing: border-box;" />Watching her, these things she said,<br style="box-sizing: border-box;" />The times she cried,<br style="box-sizing: border-box;" />Too frail to wake this time.<br style="box-sizing: border-box;" />Oh, I'll break them down, no mercy shown,<br style="box-sizing: border-box;" />Heaven knows, it's got to be this time,<br style="box-sizing: border-box;" />Avenues all lined with trees,<br style="box-sizing: border-box;" />Picture me and then you start watching,<br style="box-sizing: border-box;" />Watching forever, forever,<br style="box-sizing: border-box;" />Watching love grow, forever,<br style="box-sizing: border-box;" />Letting me know, forever.</div>
zedr0khttp://www.blogger.com/profile/01448772262903147162noreply@blogger.com0tag:blogger.com,1999:blog-347213261784591805.post-55015841868051867142017-10-13T13:07:00.000-07:002017-11-21T11:47:26.708-08:00Installing Slackware on GPD PocketI tried installing Slackware on my GPD Pocket. I wasn't able to boot some of the regular install-iso's or live-cd. (they all stuck after the grubmenu)<br />
So I finally tried the <i><b>usbboot.img</b></i> from <b><i>usb-and-pxe-installers</i></b> - section.<br />
<br />
...and it booted without any problems. I connected the usbstick via a usb-hub with a usb-ethernet-adapter on another port of the hub. (be sure to connect power-supply to your pocket, if you use a passiv-hub).<br />
<br />
I booted the usbboot.img and did a normal network-install with a current-mirror to get an actual kernel installed.<br />
<br />
At the end of the installation I installed elilo, rebooted and the pocket won't boot into the new system.<br />
<br />
So I took an ubuntu-live-system from <a href="https://apt.nexus511.net/index.html">https://apt.nexus511.net/index.html</a> (great thanks to that guy!). I chrooted into the Slackware-System:<br />
<br />
<span style="background-color: white;">mount /dev/mmcblk0p2 /mnt</span><br />
<span style="background-color: white;">mount /dev/mmcblk0p1 /mnt/boot/efi</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">mount -o bind /dev /mnt/dev</span><br />
<span style="background-color: white;">mount -o bind /sys /mnt/sys</span><br />
<span style="background-color: white;">mount -o bind /proc /mnt/proc</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">cp /etc/resolv.conf /mnt/etc/</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">chroot /mnt /bin/bash</span><br />
<br />
Instead of tinkering with the installed kernel, I decided to install Hans de Goedes - Kernel (<a href="https://github.com/jwrdegoede/linux-sunxi">https://github.com/jwrdegoede/linux-sunxi</a>) with the .config-file from nexus.<br />
<br />
cd /usr/src<br />
git clone https://github.com/jwrdegoede/linux-sunxi.git<br />
rm linux<br />
ln -s linux-sunxi linux<br />
cp .configold linux/.config<br />
cd linux<br />
make oldconfig<br />
make bzImage modules<br />
make modules_install<br />
cp arch/x86_64/boot/bzImage /boot/vmlinuz-degoede-4.14.0-rc3+<br />
cp System.map /boot/System.map-degoede-4.14.0-rc3+<br />
cp .config /boot/config-degoede-4.14.0-rc3+<br />
cd /boot/<br />
rm System.map<br />
ln -s System.map-degoede-4.14.0-rc3+ System.map<br />
<br />
generated initrd:<br />
<br />
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.14.0-rc3+<br />
<br />
gives:<br />
<br />
mkinitrd -c -k 4.14.0-rc3+ -f ext4 -r /dev/mmcblk0p2 -m usb-storage:sdhci:sdhci-acpi:xhci-pci:ohci-pci:ehci-pci:xhci-hcd:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:ext4 -u -o /boot/initrd.gz<br />
<br />
You have to add the mmc_block module to the modules. So<br />
<br />
mkinitrd -c -k 4.14.0-rc3+ -f ext4 -r /dev/mmcblk0p2 -m usb-storage:sdhci:sdhci-acpi:xhci-pci:ohci-pci:ehci-pci:xhci-hcd:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:ext4:mmc_block -u -o /boot/initrd.gz<br />
<br />
gives you a proper initrd<br />
<br />
copy the initrd and your kernel-file to<br />
<br />
/boot/efi/EFI/Slackware/<br />
<br />
and run<br />
<br />
eliloconfig<br />
<br />
now you can reboot and your pocket should start correct starting udevadm takes some time (I don't know why) but at the end there's the login-prompt and you can login as root and do all the post-installation-stuff (creating user account, tinker the xorg.conf, ...)<br />
<br />
<br />zedr0khttp://www.blogger.com/profile/01448772262903147162noreply@blogger.com0tag:blogger.com,1999:blog-347213261784591805.post-59283612028530574842017-10-03T08:29:00.000-07:002018-03-28T07:25:54.860-07:00uncompressing, editing and recompressing an initrd<ol>
<li>Create a directory and switch into it:<br /><br /># mkdir test<br /># cd test</li>
<li>Then uncompress and extract the initrd:<br /><br /># zcat /boot/initrd.img | cpio -idmv</li>
<li>Edit the contents (if needed)</li>
<li>Repack and compress the initrd image:<br /><br /># find . | cpio -o -c | gzip -9 > /boot/test.img</li>
<li>For image compressed with xz format, use commands below to extract the initrd image.<br /><br /># mkdir /tmp/initrd<br /># cd /tmp/initrd<br /># xz -dc < initrd.img | cpio --quiet -i --make-directories</li>
<li>Edit the contents (if needed)</li>
<li>Repack and compress the initrd image:<br /><br /># cd /tmp/initrd<br /># find . 2>/dev/null | cpio --quiet -c -o | xz -9 --format=lzma >"initrd.img"</li>
</ol>
<div>
<br /></div>
<div>
found on: https://access.redhat.com/solutions/24029</div>
zedr0khttp://www.blogger.com/profile/01448772262903147162noreply@blogger.com0tag:blogger.com,1999:blog-347213261784591805.post-48795069287565584712015-05-24T13:02:00.001-07:002015-06-26T11:33:10.713-07:00moving the whole linux-system from one disk to another<span style="font-family: inherit;">There are a lot of way's doing this, I prefer this one: </span><br />
<br />
<span style="font-family: inherit;">1. creating the partitions needed on the destination disk</span><br />
<span style="font-family: inherit;">2. mounting the partitions, I prefer to mount the partitions pairwise (src + dest) under /mnt (/mnt/src + /mnt/dest)</span><br />
<span style="font-family: inherit;">3. syncing the <span style="font-family: inherit;">filesystems</span> with:</span><br />
<br />
<ul>
<li><span style="font-family: inherit;">sudo rsync --stats --progress --numeric-ids -aAhHSP /mnt/src /mnt/dest/</span></li>
</ul>
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;">4. installing the new disc, booting with rescue-media and chrooting into the 'new' system:</span><br />
<br />
<ul>
<li><div class="bash">
<div class="contents">
<div class="notranslate">
<span style="font-family: inherit;"><span style="font-size: small;">sudo mount -o bind /dev /mnt/dev </span></span></div>
</div>
</div>
</li>
<li><div class="bash">
<div class="contents">
<div class="notranslate">
<span style="font-family: inherit;"><span style="font-size: small;">sudo mount -o bind /sys /mnt/sys </span></span></div>
</div>
</div>
</li>
<li><div class="bash">
<div class="contents">
<div class="notranslate">
<span style="font-family: inherit;"><span style="font-size: small;">sudo mount -t proc /proc /mnt/proc </span></span></div>
</div>
</div>
</li>
<li><div class="bash">
<div class="contents">
<div class="notranslate">
<span style="font-family: inherit;"><span style="font-size: small;">sudo cp /proc/mounts /mnt/etc/mtab </span></span></div>
</div>
</div>
</li>
<li><div class="bash">
<div class="contents">
<div class="notranslate">
<span style="font-family: inherit;"><span style="font-size: small;">sudo chroot /mnt /bin/bash</span></span></div>
</div>
</div>
</li>
</ul>
<br />
5. if needed, edit /etc/fstab and fill in correct uuid's or device-names<br />
6. repairing grub-installation:<br />
<br />
<ul>
<li><div class="notranslate">
grub-install /dev/sdx </div>
</li>
<li><div class="notranslate">
update-grub </div>
</li>
</ul>
<div class="notranslate">
<br />
7. finally, leaving the chroot-env, unmounting all and booting into the new system </div>
zedr0khttp://www.blogger.com/profile/01448772262903147162noreply@blogger.com0tag:blogger.com,1999:blog-347213261784591805.post-27015663518158469272015-05-01T12:12:00.000-07:002015-05-01T12:12:02.127-07:00…trying a blog againafter closing my old page, I’m now trying a blog again.<br />
<br />
it will be more something like a diary or notebook to write down thoughts, code-snippets or some other stuff I won’t forgetzedr0khttp://www.blogger.com/profile/01448772262903147162noreply@blogger.com0