SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#4451 2015-09-12 21:09:48

twoion
Moderator
Registered: 2012-05-11
Posts: 1,648

Re: Completely Off Topic Chat

ohnonot wrote:
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.


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

Be excellent to each other!

#4452 2015-09-12 21:56:31

pingu
#! Junkie
Registered: 2014-12-05
Posts: 367

Re: Completely Off Topic Chat

Head_on_a_Stick wrote:

5 line grub.cfg anyone?
...
smile

big_smile

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

#4453 2015-09-12 22:44:52

photonucleon
Quantum Geek
From: Hogwarts
Registered: 2013-06-10
Posts: 952

Re: Completely Off Topic Chat

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?

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

#4454 2015-09-12 23:11:00

twoion
Moderator
Registered: 2012-05-11
Posts: 1,648

Re: Completely Off Topic Chat

^ 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 smile


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#4455 2015-09-12 23:24:16

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 5,434

Re: Completely Off Topic Chat

photonucleon wrote:

.....
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 smile

Offline

#4456 2015-09-12 23:44:18

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Completely Off Topic Chat

@pingu -- the laptop doesn't support UEFI, sadly sad

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  cool

Last edited by Head_on_a_Stick (2015-09-12 23:47:32)

Offline

#4457 2015-09-12 23:50:03

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Completely Off Topic Chat

@photonucleon -- this also works:

# cat example.iso > /dev/sdX && sync

Offline

#4458 2015-09-12 23:56:18

pingu
#! Junkie
Registered: 2014-12-05
Posts: 367

Re: Completely Off Topic Chat

Head_on_a_Stick wrote:

...systemd-...  cool

yuk!
hehe
its openrc big_smile
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

#4459 2015-09-13 00:00:43

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Completely Off Topic Chat

photonucleon wrote:

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.

The results:
2015_09_12_20_51_58_Scrot11.jpg

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

#4460 2015-09-13 00:05:44

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Completely Off Topic Chat

pingu wrote:

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

#4461 2015-09-13 00:18:35

pingu
#! Junkie
Registered: 2014-12-05
Posts: 367

Re: Completely Off Topic Chat

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... hmm

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

#4462 2015-09-13 00:41:06

tknomanzr
#! Die Hard
From: Heavener, OK
Registered: 2014-12-09
Posts: 777

Re: Completely Off Topic Chat

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

#4463 2015-09-13 00:49:01

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Completely Off Topic Chat

tknomanzr wrote:

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

#4464 2015-09-13 00:50:50

tknomanzr
#! Die Hard
From: Heavener, OK
Registered: 2014-12-09
Posts: 777

Re: Completely Off Topic Chat

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

#4465 2015-09-13 01:29:13

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 4,148
Website

Re: Completely Off Topic Chat

^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

#4466 2015-09-13 12:36:19

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: Completely Off Topic Chat

Head_on_a_Stick wrote:

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.
smile

does it boot faster (aprt from the 0 timeout)?

Offline

#4467 2015-09-13 12:46:11

ohnonot
...again
Registered: 2012-05-22
Posts: 2,205

Re: Completely Off Topic Chat

twoion wrote:

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:

  1. developing & testing android, checking out new trends

  2. 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

#4468 2015-09-13 13:36:19

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Completely Off Topic Chat

ohnonot wrote:

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

#4469 2015-09-13 20:26:47

Nili
#! Die Hard
From: 127.0.0.1
Registered: 2013-03-20
Posts: 811
Website

Re: Completely Off Topic Chat

You know what? I'm playing HD MKV file 1080p with 60.000 FPS On Linux Debian cool
RqAsBkzm.png
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 smile
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


# Debian GNU/Linux 8:8.2 (netinst/stable)
# Packages Installed: 541
# Linux debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) i686 GNU/Linux
# Startup finished in 2.850s (kernel) + 6.473s (userspace) = 9.324s

Offline

#4470 2015-09-13 23:28:31

Forthy
#! CrunchBanger
Registered: 2012-01-16
Posts: 226

Re: Completely Off Topic Chat

Head_on_a_Stick wrote:
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

#4471 2015-09-17 02:40:33

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Completely Off Topic Chat

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  sad sad


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4472 2015-09-18 00:36:01

twoion
Moderator
Registered: 2012-05-11
Posts: 1,648

Re: Completely Off Topic Chat

^ 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


Tannhäuser ~ {www,pkg,ddl}.bunsenlabs.org/{gitlog,repoidx}

Offline

#4473 2015-09-19 23:59:52

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Completely Off Topic Chat

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 smile

Offline

#4474 2015-09-20 02:00:18

pingu
#! Junkie
Registered: 2014-12-05
Posts: 367

Re: Completely Off Topic Chat

^^
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

Help fund CrunchBang, donate to the project!

#4475 2015-09-20 12:41:33

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: Completely Off Topic Chat

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!
cool

Offline

Board footer

Powered by FluxBB

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

Debian Logo