You are not logged in.
twoion wrote:better(ish)
yeah, i've always been wondering how much better than android CM really is... particularly from a Linux/FOSS point of view.
last thing i heard, it's more of a testbed for than an alternative to android.
and their image (community driven, bla bla) is being kept up actively by google.but, if it really makes old(ish) phones better, that's always a good thing.
It's indeed a testbed since due to all brand phones being entangled by proprietary algorithms, drivers and implementations and the incredibly fragement SoC landscape, getting a CM version ready for a specific model is a very time-consuming task, and it's very impressive that some talented individuals are (still) willing to sink their time into accomodating this frustrating ecosystem.
Offline
5 line grub.cfg anyone?
...
pingu@r2d2 ~ $ cat /boot/loader/entries/gentoo.conf
title Gentoo Linux
linux /vmlinuz
initrd /initramfs-gentoo
options root=/dev/sdb3 net.ifnames=0 ro quiet intel_pstate=enable
my grub entries are not that small though
Last edited by pingu (2015-09-12 22:00:14)
"We don't merge kernel code just because user space was written by a retarded monkey on crack."
Linus f****g Trovalds
Offline
OK, just read this on the Debian site, regarding writing ISO images to USB drives for booting:
On a Linux machine, simply use the cp command, to copy an image to a USB flash drive:
cp <file> <device>
Two things:
1) The cp command is basically the equivalent of drag-and-drop copying a file from one place to another, right?
2) Assuming my understanding of cp is correct, can you simply boot from a USB that has just had the ISO copied to it? I thought it had to be properly written to the drive using dd or similar...
- Ai! Aníron Undómiel. -
- Some things are certain. -
- Et Eärello Endorenna utúlien. Sinome maruvan ar Hildinyar tenn' Ambar-metta. -
Offline
^ I have no chance to actually try it, but it should work because device files representing block devices can be accessed using regular read(), write(), lseek() etc syscalls which will do their job just fine. For the purpose of writing consecutive blocks to the device with no offset it'll be no different from dd, but as dd gives you much more control over the process (block size, number of blocks, offset, even character set conversions [which makes sense when writing to a character instead of a block device!]) it can be much faster depending on the physical properties of the block device (spinning disk, flash memory with controller in front of it, ...), or actually fit your purpose
Offline
.....
Two things:
1) The cp command is basically the equivalent of drag-and-drop copying a file from one place to another, right?
Try D&D to usb in Thunar with image files - it takes forever compared to cp in a terminal
2) Assuming my understanding of cp is correct, can you simply boot from a USB that has just had the ISO copied to it? I thought it had to be properly written to the drive using dd or similar...
I've tried cp for writing an iso and it works OK
BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator
Offline
@pingu -- the laptop doesn't support UEFI, sadly
EDIT: Also, if you're using systemd as PID1 and have all your partitions on a single GPT disk then you can mount the root filesystem rw and run without an fstab
Last edited by Head_on_a_Stick (2015-09-12 23:47:32)
Offline
@photonucleon -- this also works:
# cat example.iso > /dev/sdX && sync
Offline
...systemd-...
yuk!
hehe
its openrc
but It's a btrfs root, so I think it shouldb be ro at boot time with or w/o systemd.
(but root mounts without the fstab also)
edit: and my fstab is humongous. hehe
Last edited by pingu (2015-09-13 00:00:49)
"We don't merge kernel code just because user space was written by a retarded monkey on crack."
Linus f****g Trovalds
Offline
OK, just read this on the Debian site, regarding writing ISO images to USB drives for booting:
debian.org wrote:On a Linux machine, simply use the cp command, to copy an image to a USB flash drive:
cp <file> <device>
Two things:
1) The cp command is basically the equivalent of drag-and-drop copying a file from one place to another, right?
Well, I did just what Debian said above with BL RC1 - AMD64 just to see if it worked. And sure enough, I have booted to BunsenLabs RC1 Live.
2) Assuming my understanding of cp is correct, can you simply boot from a USB that has just had the ISO copied to it? I thought it had to be properly written to the drive using dd or similar...
Actually you can boot an ISO that's on the HDD.
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
It's a btrfs root, so I think it shouldb be ro at boot time with or w/o systemd.
I had a btrfs Arch system on a USB stick and I'm pretty sure the arch.conf had "rw" but this may be a feature of Arch's kernel configuration.
Offline
I don't know, for some reason I defaulted to that a long time ago and can't remember the reason; but I clearly remember thinking that that was the "correct" thing to do, even though it could work the rw also...
Last edited by pingu (2015-09-13 00:19:00)
"We don't merge kernel code just because user space was written by a retarded monkey on crack."
Linus f****g Trovalds
Offline
Thing about dd is it overwrites your partition structure, which can be frustrating if you are trying to set persistence up on a USB drive. I know gparted usually doesn't like dd'd USB drives much. I use it frequently but I think partitioning beforehand along with cp would be a better choice in the case of trying to set up a persistence partition.
Offline
cp would be a better choice
`cp`, `dd` & `cat` all have exactly the same effect (if the `dd` offset is zero) -- read twoion's post.
Offline
I don't know. gparted usually comes up and complains about unreadable partition structure on a USB that I have dd'd an image too. Perhaps it is just that particular drive or something.
Offline
^Maybe it depends on whether you wrote to /dev/sdb or /dev/sdb1
ie to the whole device or to a partition on it.
John
--------------------
( a boring Japan blog , Japan Links, idle twitterings and GitStuff )
#! forum moderator BunsenLabs
Offline
5 line grub.cfg anyone?
set default=0 set timeout=0 menuentry "Arch" { linux /boot/vmlinuz-linux root=/dev/sda1 rw quiet ipv6.disable=1 initrd /boot/intel-ucode.img /boot/initramfs-linux.img }
With thanks to @earnestly over on the Arch forums for helping me trim it down.
does it boot faster (aprt from the 0 timeout)?
Offline
getting a CM version ready for a specific model is a very time-consuming task, and it's very impressive that some talented individuals are (still) willing to sink their time into accomodating this frustrating ecosystem.
i meant no offense to the actual coders - not sure if that was apparent in my previous post - but many big companies use and exploit the
"I'm doing all this voluntarily, because i believe in open source and sharing and making this planet a better place, at least electronically" - image. To actually sell their stuff. because people like that.
so google has 2 incentives to keep CM alive:
developing & testing android, checking out new trends
looking ethically good & pc in the eyes of the "conscious" consumer (see? we're doing something for the open source community!)
they probably call it a win-win situation.
it makes me feel sick.
Offline
does it boot faster (aprt from the 0 timeout)?
Not at all but isn't it elegant?
EDIT: With my grub.cfg:
empty@ThinkPad ~ % systemd-analyze
Startup finished in 3.126s (kernel) + 9.223s (userspace) = 12.350s
EDIT2: With the bloaty monster grub.cfg:
empty@ThinkPad ~ % systemd-analyze
Startup finished in 3.467s (kernel) + 8.770s (userspace) = 12.237s
The boot times vary randomly by as much as half a second so the results look identical to me.
Offline
You know what? I'm playing HD MKV file 1080p with 60.000 FPS On Linux Debian
Video bitrate isn't shown , i don't know perhaps a mpv bug on mkv formats? i'm using old jessie mpv version, other formats wmv, avi are shown normally, so perhaps a bug? but forget it at least now...
So, i'm playing without lag 60.241 frame per second on a 2007 desktop 32bit with 2GB RAM, CPU is used to 90% not 100% doesn't lag or have issue at all both video / audio while playing.
I tried this file on Windows 7 Ultimate (up to date) laptop 64bit, higher processor, 4GB RAM / VLC (latest version), laptop is from 2013 not only lag too much, but audio is out of sync because can't render this video frame. I don't know perhaps a VLC issue? Windows 7 is clean but using 800MB on startup even tweaked via blackviper's still very memory hungry.
Wha't i'm sure mpv is moster application, deserves this spam
Windows may beat Linux in games but can't on my desktop regarding highest quality videos.
This is not the first time that i note
Offline
ohnonot wrote:does it boot faster (aprt from the 0 timeout)?
Not at all but isn't it elegant?
If you said that out loud in Anthony Head's voice it would be the actual finest reply to anything ever.
Offline
EARTHQUAKE in Chile
Wishing Chile the best ....
Location
Illapel, Chile
Sept 16, 2015 19:54
Richter magnitude scale: 8.4
Epicenter: 31.563°S 71.737°W
Death Toll: 1 - as reported on TN in Buenos Aires @ 91:30 16/09/15
Magnitude 8.0–8.9
Description GREAT
Mercalli intensity VIII +
Average earthquake effects
Major damage to buildings, structures likely to be destroyed. Will cause
moderate to heavy damage to sturdy or earthquake-resistant buildings.
Damaging in large areas. Felt in extremely large regions.
Average frequency of occurrence (estimated)
1 per 10 to 50 years
We felt it here in BaAs, in apatmrnts higher than 4th floor...
In western Argentina it was moving cars on the street.
Waiting for Tsunami expected around 11 local
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
^ All ok?
--
…It's good to see you, I must go // I know I look a fright…
Oh, man, I shot marvin in the face. I didn't mean it. It was an accident. We probably went over a bump or something.
[...]
We gotta be real fuckin' delicate with this Jimmie situation.
[...]
You got to appreciate what an explosive element this Bonnie situation is.
This is a real good movie ;DDDD
Offline
Has anybody else tried the new nftables packet filtering (firewall) system?
empty@ThinkPad ~ % sudo nft list ruleset
table inet filter {
chain input {
type filter hook input priority 0; policy accept;
ct state { related, established} accept
ct state invalid drop
iifname "lo" accept
ip protocol icmp accept
ip6 nexthdr ipv6-icmp accept
tcp dport ssh accept
meta nfproto ipv4 reject
}
chain forward {
type filter hook forward priority 0; policy accept;
drop
}
chain output {
type filter hook output priority 0; policy accept;
}
}
It's a lot simpler than iptables
Offline
^^
yeah, I found out about it just after making my first iptables scripts, which I bearly understand. Then I just say to myself that the next install I'm going to use nftables, but then I just get the same old iptables script and use that instead.
"We don't merge kernel code just because user space was written by a retarded monkey on crack."
Linus f****g Trovalds
Offline
Finally got my Arch system booting with Secure Boot enabled:
empty@Arch ~ % sudo bootctl status
System:
Firmware: UEFI 2.31 (American Megatrends 4.654)
Secure Boot: enabled
Setup Mode: user
Take that Microsoft!
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat