nacellenice score
darsieCan a pi run hotter when receiving proper 5V instead of browning out occasionally?
darsieLooks like temp is just as before, 45 C idle. Maybe I confused idle with 1 core busy.
bigfondueWhat is the easiest option to run a *BSD on a pi3
ballbigfondue: NetBSD might be ready. You could ask in #netbsd
mlelstvACTION yawns
SmeefCan someone help me add core temperature value in-line with, but after, the "CPU Load" line on line 113 of this?
SmeefI've tired using this, and the article it references, but it doesn't seem to work:
mlelstvfunny use of python
localhorsehow can i find out which link-local ip my raspi has?
aiblocalhorse: 'ip a'
localhorseaib: it doesnt show it
aiblocalhorse: what does it show?
localhorseaib: i want to detect the pi's address from my laptop
aibthat's your IP address and your mask
localhorsei dont have a keyboard/screen on the pi
localhorseaib: i know
localhorsehow can i get the pi's ip?
aibthat is the pi's IP
localhorsethats my laptop's ip
aibyou want to find out your raspberry pi's IP address without access to the pi?
localhorsei have the cable plugged in
localhorseso i want to ask my laptop what ip the other end of the cable has
aibone might think you should have mentioned such a thing from the start
localhorsei thought i did :)
localhorsei said "link-local ip"
aib'link-local' just means 'assigned', not "at the other end of the cable"
aibokay, first of all: what makes you think the pi has an IP address assigned?
aibare you running a DHCP server on your laptop?
localhorsebecause it had one last time
localhorseif i had dhcp on my laptop, the pi wouldnt have a link-local address
localhorsebut a normal one, right?
aibokay, okay, link-local means that /16 block in 169.254 or something
aibsorry, apparently I haven't woken up yet
localhorseit's ok :)
aiband I've never worked with link-local addresses. Always had a DHCP server around somewhere
nacellelink-local is ipv6 term, not 169.254
nacelle169.254 == apipa
aibI even have a script for when I'm trying to do what I think you are trying to do:
nacelle this rfc refers to it as a link local
nacelleACTION stands corrected
nacelleeven rfc5735 refers to it that way, where 5735 is one of my favorites of recent note :(
nacelle" - This is the "link local" block. As described in
nacelle [RFC3927], it is allocated for communication between hosts on a
nacelle single link. Hosts obtain these addresses by auto-configuration,
nacelle such as when a DHCP server cannot be found.
nacelleI used to always call it the apipa range
localhorsenacelle: do you know how to find out the link-local ip of the device at the other end of the eth cable? :)
nacellearp for it, etc.
nacelleping every ip in the subnet
nacellenmap -sP
aibyour arp cache should contain the IP and the MAC addr
localhorsei tried `arp -a` but it doesnt show it
aibcan't you just run a DHCP server?
aibwell I know you should start by getting the laptop on the same subnet, i.e. 169.254/16
aibyou could then try a broadcast ping or port/ping scanning as nacelle has suggested
shaunoI have a handy script for doing this the ipv6y way -
aibI myself would probably go for a reboot and sniff for DHCP/BOOTP packets
shaunougly, but it assumes you & the pi are the only devices (eg, an ethernet cable from my laptop to my pi), and then ssh's to the address that isn't yours
localhorseaib: does the ip get stored in the arp table when the cable is plugged in?
aiblocalhorse: no. I'm not sure when exactly but I think IP traffic is required beforehand
aibthe people over at ##networking might be better suited to help you
aibso are none of the current suggestions working, or..?
nacellelocalhorse: are you sure the other side even is at 169.254?
localhorsenacelle: why wouldn't it?
nacellemaybe its static?
localhorsei'm not giving it a dhcp address
mlelstvlink-local is not mandatory for ipv4
mitmfJESSIE vs STRETCH, which is better?
mitmfNO one is here?
LFlarestretch is better
LFlareit's a nobrainer
LFlareIs Windows 10 better or Windows 2000?
mitmf2000 >> 10?
mitmf10 * 200 >> 10?
mitmfLFlare: ?
LFlare2000 < 10
LFlare1 < 2
SailorMoonGUYS! I need a VERY particular setup for my Pi
mlelstvwindows 2000 is better. it lets you keep your computer.
SailorMooni know you guys can help, i believe in you :3
SailorMoonI want my Pi to be connected via ethernet to my Xbox One, sharing the Wifi Connection's Internet, and changing the TTL to 65
SailorMoonwould i have more luck flashing a linux distro and asking in a Linux channel?
H4ndythis is really only linux related
HabbieSailorMoon, why do you need this very particular setup?
H4ndybut what would that achieve
SailorMoonMy ISP blocks ICS
SailorMoonwith a default of 64 going through ICS it changes to 63
SailorMoonand ignores/blocks the connection attempts
Habbieoh, the IP TTL
Habbienot the DNS TTL
Habbieyes, definitely a generic linux question
SailorMoonOkay, i guess i'll go bother those guys. But before i do that, one dumb question, my Pi would be perfect for this project, yes?
SailorMooni wouldn't be better off just installing Windows 10 on an old laptop and setting it up to act as a router?
Habbieboth are viable options
H4ndyif the speed contrains of the Pi are no problem for you the Pi is OK
SailorMoonawh man, i forgot about that. But i only get like 3Mbps
SailorMooni think the Pi would be okay, assuming it doesnt overheat and throttle lol
H4ndyif you dont overclock it should run stable without issues
SailorMoonthat brings up another question pi related. Knowing my intentions, what distro should i choose?
H4ndyraspbian as its the best maintained
SailorMoonraspian lite, i would assume?
Habbieyes, pick raspbian lite
SailorMoonThanks guys, this will be a great project for my time off work =3
squirrelmy raspberry pi 3 is a bit noisy
squirreli am curious why
squirrelespecially why it is only playing 2 notes, and how can i make it play more notes
kozmikreisHi all o/ Is there a simple way to sync Python code to the HDMI output? (I'm using a Pi Zero W if that makes any difference)
aibsquirrel: go to youtube and find a music video with more notes in it
Habbiekozmikreis, what do you mean, sync it?
kozmikreisHabbie: say I'm outputting a video or a flickering image like from a homebrew player, how do I ensure it's displayed the current frame before I move on to drawing the next?
kozmikreisWell, the drawing would continue regardless with a double buffer, but you know what I mean I hope.
kozmikreisI'll ask in the python chan too :-)
squirrelaib: huh?
squirrelactually it's playing more than 2 notes
squirrelhere's a spectrogram
aibsquirrel: connect a proper speaker, go on youtube and you will hear all kinds of notes is what I'm saying
squirrelaib: if this is a joke i don't see the punchline
dan2wiksquirrel, might be related to core clock speed
dan2wiktry something intensive like "dd if=/dev/zero of=/dev/null"
aibsquirrel: I can't tell what application you are using the Raspberry Pi 3, a generic computer, for that it is playing 2 notes and you want it to play more
aibI assumed SDR at the start, but then thought that it could be music equally likely
kozmikreissquirrel: I get noise like that when I have a Chromecast and cheap USB speakers being powered from the same adapter. When they're better electrically isolated the noise (that I can hear unaided at least) goes away.
aibnow I'm thinking you mean actual literal noise made on the PCB, except you posted a spectogram
squirrelhuh, interesting, stress does affect the noise
squirrelaib: yes i mean literal noise
mfa298squirrel: the only time I've had noise from the Pi PCB is wwhen the PSU is really poor, meaning the dc switcher does nasty things.
Jack64Habbie: just checked sha256sum of both /lib/firmware/rt2870.bin (rt3070 is symlinked to 2870) and they're the same in x86 and armv7 so it's not that :(
HabbieJack64, how about the kernel itself then? i'm only guessing here
squirrelthis is an audio of me stress-testing the rpi with $ stress
squirrelstarts with a noise profile, might be loud
squirrelhere's a spectrogram
squirreland ignore that noise past the middle, the neighbours have been drilling walls every day for the past 2 months or so
mfa298I'd swap out the PSU first to something designed for the Pi
aibI would bet on the power supply as well
mfa298It's almost certainly a power related issue, either the PSU (phone charger != psu) or something on the pi board has gone
squirrelit's a phone charger, but it's by nokia and really the only one that can power the pi
squirrelthe sound comes from the board itself though
squirreli mean, the only one i have
mfa298phone chargers don't necessarily keep a clean output voltage ss you draw more current, that's not an issue for charging a phone, it is a problem for powering the pi.
mfa298I'd recommend getting the official pi psu (2.5A, 5.1V with built in cable) and I'd bet the sound goes away
mlankhorstwhat about a spectrogram with really clean lines?
mlankhorstwhen recording, it's annoying
dan2wiksquirrel, I wouldn't think too much about it, It is probably just switching noise from the charger
squirrelmfa298: i should do that, was thinking about ordering some pi stuff anyway
squirrelmlankhorst: clean lines?..
squirreldan2wik: i'm not worried much, just found it funny
Jack64Habbie: sorry had to afk for a bit. kernel itself? linux kernel you mean? where do I check that?
mfa298squirrel: which pi model is this on ?
mfa298squirrel: ah just scrolled up and saw pi3 ... what's the red power led doing ?
squirrelum. glowing, not blinking
mfa298interesting, sounds like the PSU output has gone noise rather than dropped voltage (unless it's gone so low the detection isn't working properly).
LTCDLartza You about sir?
mfa298noisy would mean the output voltage is fluctuating quickly rather than being a nice clean dc signal, which is what then leads to some components on the pi pcb being noisy as things start to oscilate
LartzaLTCD, On and off :)
LTCDLartza Esentially I just want to continue from the other day, see if it can automatically boot without me typing in commands. Won a lot of respect in the office.
LartzaLTCD, Aka fix your initramfs iirc, it should work once you get the key embedded there
LartzaYou can edit the hooks, rebuild, repeat and then check the contents before rebooting until you have it there :P
LTCDLartza Any place for me to start learning this stuff?
LartzaLTCD, Not really. The cp command should work and you also lost resize2fs so it's likely you just made a mistake
LartzaLTCD, Usually embedding files in initramfs is as easy as
LTCDLartza Right. Don't reply I'm switching IRC clients.
LTCDI'm back.
Jack64Habbie: you back yet?
DrJwin what?
LartzaWho would win in a spam contest, sloth or some nerd with a computer?
gordonDrogonsloth, that's wholly inappropriate for this channel.
gordonDrogonsloth, please re-read the channel rules:
darsieCan I turn on an inductor and poll a sensor a precise moment later like after 5 ms with the pi or will raspbian prevent that?
darsieOr can the sensor trigger a gpio event and I get precise timing?
darsieAnd I mean precise, not accurate.
darsieIs the gpio triggering usable in raspbian?
kozmikreisdarsie: I have a similar need, are you using raspbian stretch lite?
darsieIs the gpio triggering usable in raspbian, so I get a signal and don't have to poll pins?
kozmikreisdarsie: I have no advice, do you mean you want it to trigger an interrupt?
darsieThe hardware supports it, IIRC.
gordonDrogonyou can get +/- 150S most of the time.
gordonDrogonor use pigpio which samples the gpio lines every 5S by default IIRC.
darsiegordonDrogon still doesn't use UTF-8, but thx :).
gordonDrogonGood job I didn't type a then.
darsieYou did, whatever it is :).
gordonDrogonwhat ancient system are you using that doesn't support utf-8 these days?
gordonDrogonno, I typed (micro) not which is +/-
darsieLooks the same to me, a question mark in a hexagon.
darsieI can decode UTF-8 fine. KVIrc.
gordonDrogonho hum.
kozmikreisI can see the µ and ± fine fwiw
darsiegordonDrogon: Is that pigpio polling CPU intense?
darsiekozmikreis: I can see it from you fine.
gordonDrogonI'm not the author or pigpio and I don't use it, however I understand that it uses the DMA engine to do it mostly in hardware.
kozmikreisdarsie: How weird!
darsieAnyone else read pigpio as pig pio?
BlubberbubI can see kozmikreis's ± µ... but not in gordonDrogon's messages...
darsieBlubberbub, kozmikreis: Do you see that fine? ��
Blubberbubdarsie, no
kozmikreisdarsie: No, I see question marks in rhombuses.
darsieSo I'm copy/pasting the replacement symbol, not the orginal character received.
Blubberbubfor me its a square with FFFD in it
mlelstvis this mu ? µ
kozmikreisBlubberbub: that's the same thing but different glyph.
darsiemlelstv: yes
kozmikreismlelstv: Yes.
mlelstvthen utf-8 is fine :)
BlubberbubSo i just assume the error is on gordonDrogon's side, because his client already send the replacement character to us?
darsieBlubberbub: No, my client displayed a ? in a hexgon cause it wasn't a valid UTF-8 character.
Blubberbubencodings are weird.
gordonDrogonVery weird. It was 14C in the bakery this morning.
gordonDrogonand the zombies are wearing pumpkins.
Blubberbub14µC? 14±C? 14½C?
KryczekBlubberbub: the degree sign is not displaying properly on your screen? :)
Blubberbuboh right... °C :D
KryczekBlubberbub: check if your IRC client and/or terminal are properly set to the UTF-8 character set :)
BlubberbubKryczek, it should be.. i can type and see some of them
Lican anyone tell me why stepper motor driver is needed with raspberry and arduino?
mlelstvthere isn't enough magic smoke in the SoC
CoJaBoLi: more specifically, SoCs generally can't output much more current than needed to run a small LED or such
LiCoJaBo: so it doable with amplifire?
CoJaBoany 'FET/transistor powerful enough to drivr the motor you want should work. A specific stepper controller is probably easiest for one of those tho
CoJaBoServo motors are nice too, as the control line can usually be directly controlled by GPIO; depends on what you're moving
filadomecan i use a USB storage device instead of the SD card?
filadomeSD cards are more expensive and slower
Habbiefiladome, on any model pi, you can have system on USB if you leave /boot on SD
Habbiefiladome, pi3 can be configured to boot from USB without SD
filadomeis pi3 usb 3.0?
filadomeok, then max speed would be 40MB/s ?
GenteelBenWould you be Habbie with only 40MB/s?
GenteelBenThe real-world max throughout for sequential writes is 35MB/s on USB 2.0, btw.
GenteelBenI'd assume it's the same for reads.
LTCDfiladome On Pi2 you have to have /boot inside the SD card, everything else can be on a USB flash drive. On the newer Pi3 you can boot from a USB flash drive.
Lartzafiladome, etherenet is on the same usb2 bus
filadomei've had good results with sandisk ultra fit micro:
Kryczekthose are awesome! I always carry one around in case I need to borrow a laptop :)
Kryczekwow there's even a 128GB now
filadomethis website is good for choosing USB drives:
Kryczeknice, thanks
squirreli'm thinking about making a two-way audio and video baby monitor using my pi0w, anyone knows if there's some software that would be able to connect the pi to an android phone?
squirreli looked around but the choises seem to be obscure or tailored for desktops
DammitJimsquirrel, I decided to go with a web interface for simplicity of communications between devices
squirreli mean, i want to transmit two-way audio and video
DammitJimI'm sorry, I missed the two-way
squirreland even with the web interface, you are stuck with the quality
squirrelwhich might be suboptimal
DammitJimI was thinking more like sound streaming and vlc for your phone or something
DammitJimbut I don't know about anything 2 way
squirrelactually it's for my grams who's got dementia and have troubles using the phone
DammitJimmaybe something in Kodi can do streaming
squirrelso i need to be able to talk to her
gordonDrogonyou can (at least you could) hook up a USB sound device - speaker/microphone and use that as a telephone. arrange it to auto-answer and you have a remote baby monitor...
gordonDrogonprogramming asterisk isn't for the feint of heart though, but there are many pre-made solutions - freepbx, etc.
squirrelaha. i'll look into this, thanks
mstruebingI've set up mopidy with mopify on my PI
mstruebingAny other nice ideas what I can do with it? :)
teejIs there a more up-to-date operating system I can use on my Raspberry Pi 2 Model B, other than Raspbian?
Blubberbubarch linux
teejFor example, I don't want to compile Python 3.6.3 on the Raspberry Pi just to get it.
Habbieyes, arch
teejBlubberbub: Arch Linux, that's interesting. I've never used it before. Is it optimized enough for the Raspberry Pi?
Blubberbubits a lot less "hand-holding" than raspbian, probably
teejArch Linux is not shown on the Raspberry Pi Downloads page.
Blubberbubits not, no
teejBlubberbub: Oh haha. Thanks.
Blubberbubthere is an installation guide
Blubberbubbut that linux does not come with anything installed really
Blubberbub(besides systemd and an ssh server, maybe)
teejI see. The root filesystem is hosted on
teejI'm guessing this is not "officially supported".
Blubberbubi don't think you will void your warranty ;)
teejOkay. I'll give Arch Linux a try.
teejIs this a CLI-only build?
teejPerfect, thanks!
Habbieyes, you can install X after first boot
Habbiei presume :)
teejHabbie: Okay thanks.
teejYes, it should be able to install. Haha.
Blubberbubi cannot confirm this, but i feel like that image has dhcpd only running on first boot
HabbieBlubberbub, dhcpd or dhcpcd?
Blubberbubso make sure to do a `systemctl enable dhcpd` as root
BlubberbubHabbie, not sure :D
teejBlubberbub: I'm not sure what dhcpd is.
Habbie'systemctl enable dhcpd' is bad general advice ;)
Blubberbubits just that i cannot ssh into it anymore after restarting
Habbiegood way to mess up your network
Blubberbubok ;)
Blubberbubdhcpd is probably not installed... maybe dhcpcd :D
teejI'm going to run this in a headless configuration, with SSH. What do you recommend?
Blubberbubssh into it and enable dhcpcd :D
Blubberbuball my raspberrys are headless and thats the biggest problem i had with it
teejBlubberbub: How is it a problem?
Blubberbubcause it caused me major headaches the first time :D
Blubberbubdidn't know what i did wrong and couldn't ssh into it anymore
BlubberbubHabbie, i really didn't know its called dhcpcd because i always do autocompletion for that, i guess :D
Blubberbubbut otherwise arch is great
Blubberbubpacman is a nice package manager
teejI'm already starting to realize that `fdisk` works differently on macOS.
Habbieyou can't install arch from osx
Habbieat least, not easily
Blubberbubthat's surprising
Habbieyou'll need an ext3 fs driver
Habbielike ext2fuse in brew
Habbieor genext2fs
Blubberbubi install my sd cards from a linux vm, to be honest :D
teejMy laptop is the only computer I have.
teejHow hasn't anyone complained about installing Arch Linux from macOS?
Blubberbubwell you can do it, i guess
Habbieteej, what makes you think nobody has complained?
Blubberbubits just not as pleasant as it would be from a linux hos
Habbieteej, apparently the arch devs have been busy with other things :)
BlubberbubDoes the root partition really need to be ext3, though? couldn't one do a FAT32 if anything fails?
teejNow a VM. Okay. What should I use, Vagrant?
HabbieBlubberbub, i doubt that would go far
Habbieteej, vagrant only manages VMs for you, it does not run them
Habbieteej, you need virtualbox or vmware or parallels or xhyve
Habbieteej, or docker for mac
Habbieteej, or, as i said before, ext2fuse or genext2fs
teejDocker it is.
Habbiedocker for mac will not allow you to access the SD
Habbiebut it will allow you to turn the tarball into a virtual image that is just right for your SD
Habbiei hope
KryczekBlubberbub: FAT32 would be too easy to hack
Habbiein this case docker is not the easiest path
teejWhat about VirtualBox?
Habbiei believe virtualbox with extensions can do it
BlubberbubKryczek, what do you mean?
teejVirtualBox it is.
KryczekBlubberbub: there are no permissions in FAT32, everyone has access to everything
BlubberbubAh, good point
teejI'm going to use Vagrant to get the Arch Linux VM.
teejOkay. So VirtualBox wasn't working properly with Vagrant, so I'm reinstalling both.
nafACTION slaps DrJ around a bit with a large trout
teejOkay Vagrant is still not working. So I'm going to just download an Ubuntu VM.
teejI found an Ubuntu VM here:
Habbieteej, note that the VM does not need to be arch
teejHabbie: Okay. Thanks.
Habbiei would probably get something like GRML
Habbieboots directly from ISO
Habbiedoes not need installation
Habbieor any other decent live image
teejHabbie: Oh okay. I didn't know that existed. I'm already extracting the Ubuntu VM, so I'll just use that for now.
teejWhat VirtualBox extensions do I need for the SD card?
Blubberbubi have an external sd card reader plugged into usb
Blubberbubso its usb
Blubberbubfor me
Habbiethat sometimes does simplify things
Habbieteej, i think you'll need the extension pack from here
Habbiealthough the SD drive on my mac is not USB
Habbiealternatively, as i said, use the VM to create a partitioned image that you can then dd from osx
teejHabbie: I installed the extension pack.
teejNow I'll import the Ubuntu VM into VirtualBox.
jthunderI’m getting an Failed to fetch Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) error when attempting to update apt
jthunderbut the sources.list looks normal
shiftplusonejthornton: why are you running raspbian on i386 (or why have you added it as an arch)
jthunderits not
jthunderthat’s the issue
Habbiegrep -r i386 /etc/apt
Habbiedpkg --print-architecture
jthundernothing from the first command (as expected)
jthunderand armhf is the only arch listed
Habbiewell this is special
Habbiethere is nothing you did for which you can -imagine- that it's causing this? qemu?
shiftplusoneuname -m ?
jthunderHabbie: nope
jthunderany other places to look for settings for apt?
Habbiesudo grep -r i386 /etc
Habbiebring out the big guns
as2333is the jessie repository still available?
Habbieas2333, works for me, just checked
nafACTION slaps DrJ around a bit with a large trout
shiftplusonedpkg --print-foreign-architectures ?
as2333Habbie, oh - I can't seem to find its location
shiftplusonedpkg --remove-architecture i386 ?
jthunderthere we go - print foreign shows i386
shiftplusoneso you've set up multiarch at some point
shiftplusoneor had a script that did it
jthunderyeah script
teejhue: I've imported Ubuntu into VirtualBox. Should I start it up? Or do I need to configure the settings with the SD card first?
as2333Habbie, can the repo be browsed through this?
teejHabbie: I've added "Apple Internal Memory Card Reader [0310]" into the "USB Device Filters" section under Ports > USB in VirtualBox settings.
teejHopefully that's good enough.
teejThe VM is working!
teejOkay, so now I'm having issues trying to get the SD card reader working inside the VM.
Habbieas2333, don't know
Habbieteej, as i recall it, vbox may only pick up the device when it reconnets
Habbieteej, which your reader will never do
Habbieno USB SD reader around i bet?
Habbiethen use your VM to make a dd-able image
Habbietransfer it to your osx host
Habbieuse osx dd to image to SD
teejBut then I'll have to resize the partitions.
Habbiejust make the image smaller than the SD
Habbieonce arch is booted, worry about resizing
jthorntonshiftplusone: I'm not sure what you mean, I just downloaded raspbian and installed it
dan2wikHow would I make a USB speaker remember it's volume?
dan2wikWhen I disconnect it and plug it back in, it reverts to it's default 20% volume
shiftplusonejthornton: that message was meant for jthunder, sorry.
jthorntonhad me going for a while :O
teejHabbie: Okay Let me try one more thing.
teejHabbie: I'm going to just try this:
teejIf that doesn't work, I'll do what you said previously.
teejHabbie: It worked!
teejIt seems to be mounted as `/dev/sdb`.
Blubberbubmake really really sure its really your sd card before formatting it :D
xorpadmy sd card on my pi v3b shows up as mmcblk0
xorpadbut then I chroot into a FS on high speed usb thumb drive
xorpadso that I'm not bottlenecked by the ssd
xorpad*by the sd card
xorpadi have a script that mounts the required stuff with --rbind like /proc /dev /sys /run, then chroots into it
xorpadIt's executes from my .bashrc so when I log in, it switches root fs
teejBlubberbub: Yes, I'm always very careful about this stuff. I also make sure my other external devices are unplugged, just in case.
xorpadIt's like 10x faster, if the pi had usb3 it would be 100MB/s read speeds but I think the pi only has usb2
teejxorpad: Yes. The Raspberry Pi 2 and 3 only have USB 2.0.
Blubberbubis it even real usb2.0 speeds?
xorpadProbably depends how much memory access and other chipset related things are going on
teejBlubberbub: No. It's slower than that, because USB connections are shared, I think.
xorpadI don't know the exact speed, I just know it's way nicer and faster
xorpadI only use 1 usb drive, my other 2 usb devices are wireless trackball and wireless keyboard
xorpadthose keyboard/mouse barely use any bandwidth
xorpadand the sd card rootfs never gets accessed when I'm in chroot, or rather it doesn't access anything that lags my chroot
xorpadI have 2 chroots, each on a different usb, one for gentoo, which is my main distro, and one for ubuntu because I am ubuntu touch dev and need ubuntu on arm64. Since you can't without tons of work get 64 bit linux installed on rpi with the exception of gentoo, I use gentoo as host for an ubuntu chroot that has the tools and stuff I need which aren't available for gentoo
teejHabbie: When I'm in `fdisk` and I type `o`, it gives the following message "Created a new DOS disklabel with disk identifier 0xc8c6bbe4. The old gpt signature will be removed by a write command.`. Is that okay?
xorpadevery pi image available is armhf, I need aarch64, and the simplest way to have that is to build a gentoo 64 bit install and put it on the sd card already built, but since I need ubuntu, I chroot into it because I need 64 bit ubuntu
teejHabbie: When I'm in `fdisk` and I type `o`, it gives the following message `Created a new DOS disklabel with disk identifier 0xc8c6bbe4. The old gpt signature will be removed by a write command.`. Is that okay?
Blubberbubtype p first
Blubberbubto look at what is currently there
xorpadlater today, I'm going to go through the process of shrinking down my gentoo 64 bit install into something compact that self-installs to sd card and expands paritions based on sd card size
Blubberbubi *guess* it means there is already a filesystem on that sd card
xorpadand then I'll upload it
shiftplusonethere are plenty of aarch64 distros. Arch is one of them
shiftplusoneI think there's fedora too
xorpadshiftplusone, yes but try booting the installer on the pi:P
xorpadshiftplusone, there is plenty, just with no simple way to boot/install
shiftplusoneI'll admit that I haven't tried, but Arch generally has good documentation
teejBlubberbub: I already did. It shows `/dev/sdb1` for a 200M "EFI System" and then `/dev/sdb2` for a 28.6G "Microsoft basic data" on my 32 GB microSD card.
xorpadarch is great
xorpadarch/gentoo are my primary OS's. I use ubuntu only for ubuntu touch development
xorpadbecause it has and supports the tools I use for building images
teejBlubberbub: Oh but when I use `p` after using `o`, it doesn't give my any partitions.
xorpadthe reason I need 64 bit ubuntu, is because some of the tools only work for arm64 when you are running on a native arm64 system
Blubberbubyea, i think it shows you what its going to be after write
shiftplusonelooks like the Arch instructions for aarch64 are identical to the armhf ones.
xorpadthey don't support cross-building for arm64
shiftplusonejust with a different archive. But yeah, I get that you seem to have some specific requirements
xorpadshiftplusone, yeah, I bought the pi specifcally because I needed a 64 bit arm board. I didn't know there was no images that support arm64 and i'd have to build a custom gentoo install
xorpadbut it worked out fine:D
xorpadluckily gentoo was there to save the day
teejBlubberbub: I have completed steps 1 and 2 from
Blubberbubonly a few more steps to go
shiftplusonewouldn't be keen on using gentoo on a pi personally
shiftplusoneactually, not keen on gentoo anymore at all. It was a good learning OS and I've used it as my main distro of years, but.... nuh.
xorpadshiftplusone, I use it because I have very recent hardware and want native binaries to be optimized for the hardware, the system is much faster than with an amd64 installation
xorpadI use arch on systems that aren't crazy powerful and really recent
xorpadand use arch for my servers too
xorpadI use Ubuntu only when I am doing ubuntu touch or android development
shiftplusoneYou really see a performance difference?
dougquaidI just got a Pi Zero and flashed raspbian to the SD card. I want to follow the tutorials for making the Pi Zero a USB gadget, but there is nothing in the SD card's /boot folder. Is this normal?
shiftplusoneI guess I haven't run anything compiled with flags tuned to a specific CPU recently, but I'd expect it to be a very minor improvement.
xorpadwith my ryzens and my fork of gcc that optimizes ryzen properly (most people use arch haswell as target because it's compatible and optimizes more but I added all the haswell optimizations to the znvr1 architecture optimizing)
xorpadbenchmarks are 25-35% faster
xorpadcompared to amd64 ubuntu
xorpadbut that's with a very new hardware and modified gcc
xorpadyeah it is nice:D
xorpadand since the ryzens are 8 and 16 cores, both hyperthreaded, gentoo is fast to compile stuff with
xorpadunlike old systems where updates and installs take forever
xorpadif the computer is not powerful enough for maintaining a gentoo install with reasonable timeframes, i use arch
shiftplusoneI've gotten used to my mid-range work laptop for building things. Worked half a day from home yesterday on my home PC (4GHz i7) and..... I've been missing out. Forgot how much of a difference a good CPU makes.
xorpadgentoo is a huge time sink to maintain if you have low end or old hardware
xorpadshiftplusone, I don't have any slow computers... I did until 2 or 3 months ago when I dropped 10k on hardware
shiftplusoneor when you don't update for a while and end up in dependency loop hell
shiftplusonewell, that used to be the case back when I used gentoo... maybe it's more polished now.
xorpadI gave my old computers to friends who needed an upgrade from the previous old hardware i gave them
xorpadshiftplusone, gentoo is pretty damn stable as far as rolling releases go. It used to be bad, but a lot of people have installs they haven't had to fix/repair in 2-3 years
teejBlubberbub: I realized that running `sudo mkfs.ext4 /dev/sdb2` takes a long time.
Blubberbubteej, yes, it does
Blubberbubthats normal
shiftplusoneDid they ever end up getting their wiki back to its former glory? I remember when it had all the answers and then they lost the data or something and archlinux took over.
teejBlubberbub: Why so?
xorpadgentoo's bad times caused people to dislike rolling releases because they used to push things that weren't stable constantly, but now they have a testing and stable branch for each architecture, so if you stay on the non-testing channel for updates, it's very usable
Blubberbubteej, i think it sets up a file system and i think it depends on the size of the card and cards are slow to read/write
xorpadnow you get stable proven working releases unless you purposely set it to unstable
shiftplusoneACTION ponders revisiting gentoo
xorpadshiftplusone, yeah revisit it, it couldn't hurt if you have the time to install/recompile it
xorpadI think gentoo is the best distro for modern mid to high level hardware
teejBlubberbub: Well at least I figured out a way to get the SD card mounted into the VM. That was the hardest part so far.
xorpadon low end hardware the performance boosts are much lower and the compile times are much longer
shiftplusoneAlthough I work on debian stuff 99% of the time, so I'd probably end up chrooting like you do anyway
Blubberbubteej, yea. at this point its just busy work typing in the commands
xorpadshiftplusone, if you don't need it on the rpi, you can just dual-boot 2 linux installs
Blubberbubmy experience with gentoo was, that i had to recompile my kernel like 3 to 4 times to get everything i needed
xorpadI have Windows 10, Ubuntu 17.10, Ubuntu 16.04, Arch, and Gentoo all on one pc
teejBlubberbub: I was thinking of making a small mini-pc thing that would run faster than my Raspberry Pi. What do you think?
xorpadBut that PC has 4 512gb SSDs and 2x3TB WD Red HDDs so I can fit easily 5 os's
teejxorpad: And what happens if you have booting problems?
xorpadthe SSD's are all 600MB/s and the WD HDD's are like 160MB/s
xorpadteej, I reinstall my bootloader using an ubuntu live cd
teejxorpad: But everything would be properly configured?
shiftplusoneI get confused with too many hard drives
xorpadyes, since grub+os-prober detects and properly boots all my OS's
teejxorpad: But you're probably not using a hybrid storage setup, right?
shiftplusonecouldn't tell you how many I have or what's on each. The damn things just don't fail, so I end up accumulating more and more.
xorpadbut I need a seperate /boot partition for each linux install, or grub doesn't figure out they are seperate OS
xorpadteej, I don't even know what hybrid storage setup is
xorpadcan you give me a brief explanation?
xorpadlike like a 5-10 word definition will do
teejxorpad: Using your SSDs as a high-speed cache and your HDDs for permanent storage.
teejWith the filesystem dynamically handling everything.
xorpadteej, I use my 64GB of ram has cached storage for my drives
xorpadwhen I am working on a project that requires long compile times I make a tmpfs in my 4000mhz ram and compile from and to it
teejBlubberbub: I think it's taking longer than I thought. Lol.
Blubberbubteej, it might, yes
xorpadI have a script that movies a specific folder to a tmpfs and then moves it back when I'm done
teejxorpad: That's great. So why do you need a Raspberry Pi?
xorpadteej, becuse I do arm and arm64 development and use them as native build environments
xorpadv2b for armv7 v3b for armv8
teejxorpad: What is v3b?
xorpadversion 3 model B
teejOh lol.
xorpadsorry I just made up that short form to use for files related to the pi to keep file/folder names small
teejI thought you wanted to use arm64.
xorpadI do
xorpadv3b is arm64, but there is no images that support it, so everyone uses it in armhf legacy mode
xorpadso I had to build my own gentoo install that was 64 bit
xorpadand since i need ubuntu, I chroot into a 64 bit ubuntu from gentoo
teejWell I don't think using arm64 helps in any way. That's probably why no one cared to make an amd64 image.
teejAt least not for the Raspberry Pi.
xorpadubuntu makes arm64 iso's, but the required work to get them to boot and install on the rpi is ridiculous
teejxorpad: Did you get the network and wireless drivers working?
xorpadteej, it helps because I NEED arm64 for a few tools related to my work for Ubuntu Touch
xorpadteej, yes, there is a gentoo guide that offers complete instructions to build it with full hardware support
teejxorpad: Oh Ubuntu Touch. Is that for mobile devices?
xorpadteej, yes
teejxorpad: Oh okay.
xorpadright now it only officially supports oneplusone, nexus 5, and fairphone 2, plus 8 devices that are legacy and have unmaintained stable builds from long ago
xorpadI'm currently working on a bullhead(nexus 5x) port, and other people are working on other device ports
xorpadbut it's still a work in progress
teejIt would be really cool to have a mobile device that has an easy-to-use touch keyboard optimized for the Terminal, so that I can use that for terminal commands.
teejAnd Linux stuff baked right in.
xorpadteej, Ubuntu Touch is amazing if you don't need any special apps(there is a lack of available apps)
teejSuper fast mobile CLI Linux OS. Lol.
xorpadYou CAN apt-get install stuff, but that requires remounting your rootfs as rw, and breaks ability to use the updater to upgrade
teejxorpad: Can you dial phone numbers using the CLI?
xorpadI'm working on a way to make apt-get install to a seperate place and let you install stuff without modding the rootfs
xorpadteej, I've never tried, and I doubt it
xorpadteej, there is lots of debugging/testing commands though so maybe one of those could do it
teejxorpad: How about text messages? How do you do that through the CLI?
xorpadI don't think you can, unless debugging/testing commands support it
xorpadI am a kernel/driver/compiler dev, I don't really know too much about userspace stuff
teejxorpad: Because a mobile CLI OS should still have the ability to make/receive calls/messages.
teejBlubberbub: Hopefully this doesn't take an hour.
xorpadteej, I already have CLI over usb emulating serial tty on bullhead
teejBlubberbub: It's still "Writing superblocks and filesystem accounting information".
xorpadbut I haven't ported the graphical functionality yet or any of the phone functionality... it's just a linux box at this point
xorpadI just started helping the ubports team recently
teejxorpad: I don't care about a GUI. I just thought there would be CLI commands for calling/messaging.
xorpadteej, there could be, there's nothing stopping anyone from building them
xorpadright now we're more concerned with stability and more supported devices
xorpadbut the rpi's have proven very useful for me in my development
xorpadI am glad there are cheap boards like this that I can use
xorpadI heard there's a high end alternative to the pi now with 4gb ram and a much faster CPU, but I don't need anything powerful/expensive
xorpadi think it's called rock64
xorpadpi is better if money is an issue, which it is for me
xorpadso I'm not getting one
xorpadI think they are over $100 just for the board
xorpadbut they are the first arm board that is a good option for a full linux desktop on arm
teejxorpad: If I'm going to spend over $100 on a board, I think I'd rather just use an amd64 processor.
xorpadbecause they have the specs to handle normal desktop usage
xorpadteej, Well, if you wanted arm then you would get this board or something similar
shiftplusoneI use the pi for 99% of stuff and a chromebook for the occasional compile of something that requires a lot of RAM. Don't want to give money to any of the chinese boards.
xorpadI don't have a lack of powerful x86 hardware
xorpadI have a 1700x ryzen and a 1950 threadripper and a 7600HQ i7 ultrabook
xorpadx86 hardware is not something I need more of
teejOh okay.
teejWhy develop on the ARM chipset?
teejWhy not amd64?
xorpadteej, because some of the tools we use to build ubuntu touch can't cross-build, they need to build on the target architecture
shiftplusoneand I trust native compiles more. Spent too long tracking down obscure cross-compilation bugs.
teejxorpad: So you're going to compile on a Raspberry Pi? Isn't that slow?
shiftplusoneDepends on what you're building.
xorpadTJ: I don't compile on them, I use them to build the rootfs from ubuntu repositories and prepare a rootfs tarball to be installed on top of the kernel and system image
shiftplusoneand if you need to build for ARM and cross-compiling isn't an option, you don't have many choices anyway.
xorpadit's basically using apt-get and debootstrap and live-build commands
xorpadbut in a complex way which we have scripts to automate
xorpadthe official devs have a cloud arm64 server with a lot of power, but I'm not an official dev and they know I'm a hacker so I haven't bothered to ask for access to it
teejBlubberbub: Will my SD card get corrupted if I terminate the `mkfs.ext4` process?
xorpadthey would probably say no because they know I hack people when i'm mad at them
xorpadso i just don't ask
teejxorpad: How did you know my name?
Blubberbubteej, i *think* it will not be broken. But you will need to do the step again in order to use it
xorpadteej, I don't know your name:P
teejxorpad: Oh.
xorpadteej, why did you think I know your name?
teejxorpad: Never mind that.
shaunoI'd assume from calling him TJ instead of teej ;)
xorpadthat would have been a typo and nothing more
xorpadnot a hack:P
teejxorpad: Typo with capitalization. Sure.
xorpadteej, maybe my brain figured it out subconsiously, I didn't do it on purpose
teejBlubberbub: Sending a bunch of `^C` commands does little to stop it.
teejBlubberbub: I'll just quit Terminal.
teejBlubberbub: I'm going to try restarting the VM.
teejHopefully the SD card will still show up afterwards.
teejNow the VM isn't rebooting.
teejOkay now VirtualBox isn't responding.
teejI'm also running out of memory. Maybe I should terminate VirtualBox too.
teejHmm. I think the VM disk is corrupted since it doesn't load.
keriohold on how's TJ a name
Blubberbuboh no :/
teejBlubberbub: I corrupted everything so I need to recreate the partitions on the SD card.
Blubberbubteej, that might be the case, yes.
Blubberbubit shouldn't be...
Blubberbubi don't know
teejI'm going to use macOS for the rest of the stuff after using the `mkfs` commands.
teejHopefully the `bsdtar` and `sync` commands on macOS are similar to the Linux ones.
Blubberbubwell - you will not be able to access and mount the ext3 system
gordonDrogonor even ext4.
Blubberbubcheck the arguments for mkfs thing
teejBack to VirtualBox.
Blubberbubthere might be a non-default not-recommended quick option
teejAs soon as I make this SD card, I'm going to find a way to store the SD card as a compressed image, so I can just use `dd` next time.
Blubberbubmaybe its easier for you to start with a dd-image now
Blubberbubi don't know
Blubberbubnever done that
kerioteej: can't you just connect the card reader to the virtualbox VM
teejkerio: I tried. I don't know how.
keriodevices -> usb -> card reader
kerioor whatever
kerioand then put the sd card in
teejOh I put the SD card in afterwards?
kerioif the card reader is usb
kerioor if you have an external usb card reader i guess
kerioistr the sd reader on my macbook pro is usb
teejMy Ubuntu VM froze.
BlubberbubHow much memory did you give your vm?
teejBlubberbub: 1 GB.
keriowhat is the issue again?
keriolike the original one
keriohold on why would mkfs.ext2 take a long time
teejkerio: I used `mkfs.ext4`.
kerioanyway you were misled by Habbie
kerioyou don't need to reconnect the device
kerioyou can either select it from the menu
keriowithout using filters
kerioor you can restart the VM if you have a filter in place
teejkerio: I did Devices > USB > Apple Internal Memory Card Reader.
kerioand? :3
teejHow do I check if the VM is using it without inserting my SD card?
keriodmesg in the VM i guess
keriosee if there's a connected device
teejI think it failed to connect.
teejI tried it again and it failed.
keriowhat is your original issue tho
teejkerio: Trying to get Arch Linux on Raspberry Pi using my MacBook.
keriowhy do you need to mount things
kerioisn't there a premade image
teejkerio: Um. Not sure.
teejI've been working on this for 3 hours. Lol.
Blubberbubthe procedure is to mount the sdcard, create 2 partitions, format them and copy the files there
kerioye ok
kerioteej: add a raw disk that's as big as your sd card to your vm
keriodo the thing there
kerioas in raw disk image
keriothen dd the disk image to the sd
teejkerio: But what about the partitions?
keriomake them
teejkerio: Step 5?
keriodo the whole thing inside your linux VM
teejIn the Installation section, use dd for step 5?
Habbiekerio, 'misled' is a big word for 'as i recall it' :)
Habbiekerio, but i'm glad it got resolved
Habbieoh, it's not done yet
teejHabbie: Um.. Not done yet. Lol.
teejActually this isn't funny.
teejIt's incredibly annoying.
Habbiewhat's the problem?
teejWell I just got past the part where I have to format the partitions.
teejNow I'm trying to reconfigure the VM to load the SD card again.
Habbiedid it lose it?
teejI had to redo everything because everything crashed and corrupted.
teejAnd then I did redo the partitions, and then I listened to kerio and then the VM crashed and then corrupted again.
TheoMurpseI'm trying to set up a rPi3 headless. I don't own any USB keyboard. I've got the SD card flashed with Stretch Lite. Following instructions, I should be able to mount and locate wpa_supplicant to configure it, but in /etc/ there is no wpa_supplicant. The online guide I found suggests there should be. Does stretch have it but not lite?
HabbieTheoMurpse, did you mean /etc or /boot ?
teejTheoMurpse: You make a wpa_supplicant file.
teej`sudo nano /etc/wpa_supplicant/wpa_supplicant.conf`
Habbiei recall that the /boot wpa stuff did not work on lite; so i wonder if it's installed at all
TheoMurpseHabbie, I meant /etc. The guide I read said I needed to edit /etc/wpa_supplicant/wpa_supplicant.conf, but there is not even a wpa_supplicant path in /etc
HabbieTheoMurpse, can you check the list of installed packages from your mount?
TheoMurpseI'm not sure how to do that, Habbie. The SD card is just plugged into my laptop right now as an external disk.
TheoMurpseI can't apt.
Habbieok, give me a minute
Habbiecd var/lib/dpkg in your mount
Habbiels | grep wpa
Lartzadoesn't raspbian use dhcpcd
HabbieLartza, it does, why?
LartzaSo, configure that not wpa_supplicant?
leftyfbHabbie: it does work on lite
Habbieleftyfb, ok
Lartzaor do they not clash?
Habbiealso my ls | grep is wrong
teejTheoMurpse: If there isn't a `wpa_supplicant.conf` file, you make it using `sudo nano /etc/wpa_supplicant/wpa_supplicant.conf`. That's all.
HabbieLartza, dhcpcd is in fact the piece that invokes wpa_supplicant for you
LartzaI know that
Habbieno scratch that, ls | grep wpa in that dir is useful
HabbieLartza, so what's the question?
LartzaHabbie, dhcpcd doesn't grab and manage the wlan interface?
EncryptTheoMurpse, Don't you have an ethernet wire lying around?
Lartzathus breaking any manual wpasupplicant config
HabbieLartza, it asks wpa_supplicant to configure the wifi/wpa side of it; then it grabs it back to do DHCP
EncryptTheoMurpse, You could connect the Pi to your set top box & nmap your local net to find it
HabbieEncrypt, that's definitely the easiest way
EncryptSetting up the WiFi before the first boot to connect to the router etc seems to me like... really tricky :P
HabbieEncrypt, yes
HabbieEncrypt, i've done it but it was painful
HabbieEncrypt, being able to see what happens helps a lot
Habbieespecially combined with the 90% of online howtos that miss the socket line
teejOn step 5 for it says "as root, not via sudo".
teejDoes that mean I have to `sudo su`?
Habbiei don't see why it says that
Habbienever type sudo su
Habbietype sudo -i or sudo -s
Habbiealso that 'sync' line is useless (but harmless)
TheoMurpseEncrypt yeah I guess you're right I could connect it to my router with an ethernet cable. We moved, but I had to unpack an ethernet cable for my wife's work laptop just a couple days ago!
LartzaI think I've used both just fine yeah, just be sure to use bsdtar even though I think tar usually works too just spams a lot of errors
EncryptTheoMurpse, And you know
TheoMurpseteej, does the lack of a /etc/wpa_supplicant path indicate that wpa_supplicant binaries are not installed at all in stretch lite?
EncryptOnce you have an ethernet (SSH) access to your Pi, you can then configure the Wi-Fi
HabbieTheoMurpse, it does strongly suggest it to me. did you check /var/lib/dpkg/info ?
teejTheoMurpse: No, I don't think so.
TheoMurpsecorrect because I've already added the ssh file to the root
TheoMurpseso once it's online i can ssh in and apt and such
TheoMurpseHabbie, whoops didn't do that, I will now
EncryptAnd yeah, dhcpcd is a pain x)
EncryptIt overrides so many configuration files...
Habbiei don't get the dhcpcd choice
Habbieit's a pain
teejHabbie: So I just use sudo -s?
Habbieor -i
Habbiebut remember to cd after that etc.
EncryptI spent a long time before figuring out why the system wouldn't take into account my /etc/network/interfaces file on Raspian Stretch
HabbieEncrypt, uhuh
HabbieEncrypt, first thing i do on almost every pi is fully remove dhcpcd
TheoMurpseoh holllly crap i am so stupid, I'm sorry for wasting everyone's time
EncryptSound like a good solution
HabbieTheoMurpse, hmm?
TheoMurpsethe SD card is mounted at /Volumes/myvol
TheoMurpsethen I typed "cd /etc/ ; ls wpa_supplicant"
TheoMurpseinstead of "cd ./etc
EncryptHabbie, More recently, I had a good time with SystemD on the Pi of a friend
HabbieTheoMurpse, d'oh!
TheoMurpseso I was looking for wpa_supplicant in my OSX etc path!
HabbieTheoMurpse, well i've definitely been there :)
HabbieTheoMurpse, so how did you mount the SD card on osx?
EncryptI added a drive in /etc/fstab (correcponding to a USB hard drive hosting a Seafile data folder)
teejHabbie: `bsdtar` is not installed. I have to install it using `apt install libarchive-tools`.
TheoMurpse10 day free trial of a commercial product that enables RW
Habbieteej, sounds good
HabbieTheoMurpse, ah
EncryptBut at the next boot, the disk wasn't recognized immediately at boot, the SystemD Unit failed and the Pi failed to start (-.-)'
TheoMurpse(after realizing the ext4fuse program doesn't enable write)
Blubberbubi nearly modified the /etc/fstab of my vm instead on the sd card just a few minutes ago (and yes, i only had to mount it because i made a typo in that file earlier and it wasn't booting any more -.-)
HabbieTheoMurpse, i did not know that about ext4fuse, good to know
Encrypt(And the Pi was headless)
HabbieEncrypt, fun
EncryptI've discovered a "timeout" option which does the trick
TheoMurpseThe reason I noticed I'd not done the ./ but went from / was because I was going to check the dpkg path and it didn't exist, but "weather_station" existed in "/var" and I thought "hm, that's funny, that's the same name as some software I wrote years ago for a Beaglebone Black I own"
EncryptSystemd has advantages but also inconvenients...
teejHabbie: I typed the `bsdtar -xpf ArchLinuxARM-rpi-2-latest.tar.gz -C root` line and it looks like it froze.
TheoMurpserealized I was in my Mac's /var instead of /Volumes/sdcard/var
Habbieteej, i bet it takes a while
EncryptTheoMurpse, :D
Habbieteej, you could open a second terminal and watch 'df -h' to see if the image/SD is filling up
teejHabbie: Okay. maybe it's just slow. Hopefully it won't take another hour.
Lartzateej, It's already taken an hour?
Encryptteej, That's certainly it
Encryptteej, Open another terminal and type top / htop
EncryptYou'll see bsdtar working
teejIt spit a bunch of files with `Write to restore size failed` and then `bsdtar: Error exit delayed from previous errors.`.
teejI think it failed for every file.
teejShould I not use sudo?
teejShould I just use `sudo su`?
Lartzateej, Never run sudo su
LartzaYou were already told that
teejLartza: It's just a VM though.
Encrypt"This error message happens because you run out of disk space when extracting files. The error actually comes from the tar command."
EncryptSound legit
Habbieso how is the disk space in the place you were extracting?
teejIt's pretty much empty.
LartzaAnd is the SD card legit?
EncryptDinner time, see you o/
teejLartza: Legit?
LartzaWhere did you buy it
Habbiepretty much empty? are you sure you were extracting to it?
teejLol it's a legit SD card. Sandisk whatever.
Lartza^ too
Lartzateej, It doesn't matter what it says on the package if it's from ebay/china :P
Habbieso what's in /home/osboxes/root ?
teejSee /dev/sdb1 and sdb2
Habbiecan you show 'mount' output?
Habbiethat looks good
Habbiei dunno
teejIt says read only.
Habbiethat it does
teejLast line.
Habbieplease check dmesg
Blubberbubdid you do a successful run of mkfs?
Habbiethis is not an mkfs issue
Habbiethis is way worse
teejWell I used the mkfs.ext4 command.
Habbienormally we would call this a hardware issue
teejHabbie: Worse?
Habbiebut you have a bunch of 'layers'
Habbielike vbox
Habbiewhich may be doing things wrong
Habbie(i'm not a fan of vbox)
LartzaOr he SD card is broken
teejHabbie: This is an ugly setup, with the SD card mounted on my MacBook, which is then used to create a fake VirtualBox hard disk file, that is then loaded into the Ubuntu VM and then mounted.
Lartza... what
HabbieLartza, or that
LartzaIntegrated card reader?
LartzaAnd you can't pass it as USB to vbox?
teejNo. It fails to load.
teejIt says its busy.
Habbieat least on my mac the SD is not on USB
Blubberbubthe solution is really to create an image in the vm and push it to the sd card later and resize it...
Blubberbubi guess
teejBlubberbub: Can I do that through Docker instead?
Blubberbubi don't know
teejI'm tired of VMs.
Habbieyou can but it won't be as easy as in a VM
BlubberbubHabbie, why?
Habbiebecause you can't mount stuff
Habbieunless you make the container privileged and even then things can be confusing
Blubberbubjust create the image and copy it out of the container and then dd it?
Habbie'just create the image'?
Blubberbubnow i get what you are saying
teejI still don't get it.
teejOh you have to mount into the image to make it?
Habbieyou don't -have- to
Habbiebut if you're not going to mount, linux is not adding much for you
teejHabbie: Oh okay.
teejI thought getting Arch Linux to run on the Raspberry Pi was going to be simple.
Blubberbubnormally it is :D
teejI went through all this, and it still isn't done.
H4ndynooone said it will be fast ;D
LartzaWell it should be, just need bsdtar 3.3 and extract, done
teejH4ndy: ^
LartzaBut you're kind of doing a super weird setup or your card is broken :P
Lartzaso yeah
teejI'm sure my card isn't "broken". I used Raspbian on it.
LartzaYeah until you use it in a less weird way it's more likely it's not
LartzaBut it can happen quite easily with SD cards
teejLartza: Happen quite easily? These microSD cards can break easily?
LartzaCorrupt yes
teejLartza: Permanently?
LartzaYes, and I mean easily compared to other stuff and since you can run them in a suboptimal environment with the pi
LartzaMine's been fine for years :P
LartzaBut nothing is forever
Habbiei've only had trouble on two pis that were doing memory swapping all day
LartzaYeah it's usually heavy usage or power issues or both combined I'd say
BlubberbubHabbie, running a privileged container doesn't look that complicated? To me it looks like its enough to add a -privileged to the run command?
HabbieBlubberbub, that part is easy - but without remembering specifics, many things still were painful inside it for me
teejI tried doing the bsdtar again.
teejIt's stuck on the last file.
Blubberbubtry again until it succeeds? :D
Blubberbubyou are not done, though. you still need to move some files to /boot
teejBlubberbub: I know, but why would it be stuck?
Lartzasee dmesg again and you'll probably see why
teejWhatever that is.
Lartzathat's the ip executable, kind of like ifconfig but not deprecated
teejOh man...
teejIt's worse than before.
teejIt keeps on "hard resetting link" to the "SATA link".
teejBefore it said that the kernel was hanging.
teejIt says "device reported invalid CHS sector 0".
teejSector 0 is...
teejLike the first sector?
teejI really hope it doesn't corrupt the SD card again.
teejI'm not doing this again.
teejI feel like throwing this VirtualBox into VirtualTrash.
Lartzait's just your trash setup, vbox is fine I use it for all my arch arm installs
LartzaBut I have a 4 dollar USB sd card reader that I just give to Arch
teejHow do I stop bsdtar?
teejI already tried Ctrl+C.
teejOh I think it stopped.
teejOkay that's it...
teejI'm done with this..
teejBlubberbub: I'm going to do it your way and make a VM to make the image.
teejBlubberbub: So what should I do?
Blubberbubi think i already said i never done that
BlubberbubHabbie knows it, i think
Blubberbubhe suggested it and now it sounds like the best option you have
Blubberbubin a vm its probably easier than in a docker container
teejYeah I'm just going to do it that way.
teejThen I'll just use `dd` on macOS to transfer the image over.
LartzaI'd say you kind of just... dd it in the VM to an image then do the reverse on mac :P
LartzaBut not sure what exactly
Blubberbub <- this is how to do it, i guess...
teejHow do you create an .img file as a partition?
Blubberbubcreate file with zeros, create partitions with fdisk, use losetup-magic to create devices for the partitions
shauno(look for answers that involve kpartx. so much easier than messing around manually defining boundaries)
Blubberbubor listen to shauno and i will keep quiet now ;)
Blubberbubfirst part stays the same, though
shauno'magic' sounds like the right idea too. just not a fan of stuff like --offset $((512*2048)). it's 2017, we have computers to figure such things out now :)
Blubberbubshauno, there is an "implicit way" below that doesn't need that
Blubberbubi think
shaunohm, I've never seen that before. looks like it's doing exactly what I use kpartx for too. I may have to try that sometime
teejAre there any instructions I can follow?
Blubberbubthe question has part of the dd command you need to adapt to create the image file
Blubberbubmake it like 4GB - ought to be enough and we don't want to risk it being an MB to big to be written to the card
Blubberbubwell - maybe go safe and make it 8GB, if your card is 32 :D
teej8GB would be very large.
Blubberbubprobably, yes
krautguyif i tend to use the raspberry pi like a Personal Computer, where could i go to stay informed about system security? For e.g. are there any recent threats like malware, ransomware or something like that?
keriothe usual
GenteelBenSmeef - is that a Smurf queef?
teejWhat route should I take? Explicit or implicit?
Blubberbubor what shauno said: kpartx (there is an answer for that below as well)
Blubberbubdid you do the fdisk part?
Blubberbubafter the losetup you should be able to just continue with the arch-guide
teejBlubberbub: Yes, I did.
Blubberbublosetup successful?
teejBlubberbub: Yes. Now I have to use `mkfs` with the `/dev/loop0` partitions.
teejSeems like `/dev/loop0p1` is the first partition, and `/dev/loop0p2` the second one.
Blubberbubno big surprise there ;)
Blubberbubso p1 should be boot and p2 root
teejBlubberbub: Now the `bsdtar` is finally working.
teejOh no...
teejIt said `bsdtar: Error exit delayed from previous errors.`
Lartzano pax attribute errors?
Blubberbubi got to go to sleep now. Good Night and good luck.
teejAfter doing it again, it says `bsdtar: Ignoring malformed pax extended attribute`
teejBlubberbub: Oh okay. Thanks for the help.
Lartzayou need libarchive 3.3
teejWhat do I get from apt?
teejAll of the libarchive stuff?
LartzaYou need to grab it from a PPA or compile yourself
LartzaUbuntu has bsdtar 3.2.2
teejLartza: Oh man...
teejLet me try to grab it from a PPA.
teejMaybe its faster just compiling it.
teejLartza: Is it this?
LartzaIt should take less than a minute to compile on a PC
Lartzaand yes
Lartzajust make, don't make install, easy
Lartzaapt-get install build-essential
teejLartza: I see. Need the C compiler.
teejOkay I'm compiling.
teejOkay I did `./configure`.
teejTime to `make`.
teejLartza: Okay I finished `make`.
teejSo how do I use it?
LartzaThe binaries are just there somewhere
teejWithout `make install`...
Lartzayou can point to it directly
Lartzajust like any script etc
teejLike `bash ~/libarchive-3.3.2/bsdtar -vxpf ArchLinuxARM-rpi-2-latest.tar.gz -C root`?
teejOh wait, it's not a bash script.
teejSo just...
teej`~/libarchive-3.3.2/bsdtar -vxpf ArchLinuxARM-rpi-2-latest.tar.gz -C root`?
teejI think I figured it out.
teejIt's working.
teejDoes Arch Linux have the latest bsdtar?
teejOh okay.
LartzaArch Linux has latest everything pretty much :P
teejIt seems like the tar file has a lot of extra unnecessary files like Radeon and Nvidia graphics drivers.
gordonDrogonteej, what is it that you're trying to achieve?
teejIt finished successfully!
Lartzateej, nvidia drivers? where?
Lartzateej, /usr/lib/firmware is not drivers and is all part of linux-firmware
teejLartza: So now that it's done, I've completed steps 6 and 7 on
teejSo now I have my .img file left.
teejI should probably save that.
Lartza¯\_(ツ)_/¯ not sure what you are doing
Lartzawell I know what you are doing but no idea how to do it
teejgordonDrogon: Just trying to set up an image of Arch Linux so that I can use that for my Raspberry Pi.
Lartzais more accurate
gordonDrogonteej, ok. I know several have done this in the past though.
LartzagordonDrogon, And for some more context, mac so no ext4 support and integrated macbook card reader so can't pass it to a VM :P
Lartzaso, create image manually, then move it to mac and dd
gordonDrogonoh right.
gordonDrogondidn't noobs used to have an arch installer on it ?
teejgordonDrogon: It does?
gordonDrogonI think so.
gordonDrogonI just watched the video and although they installed Raspbian (which I'd strongly recommend you use if you're new to the Pi), I'm sure I saw the Arch logo on their screen.
LartzaI saw that too, so unless something has changed...
teejFrom this tiny screenshot of the website
teejIt doesn't show Arch Linux.
Lartzateej, apparently it's not in anymore
LartzaArch used to be linked under too :)
teejLartza: What about this:
LartzaWhat about it?
teejIt shows some Arch Linux files.
teejDoes that mean I could have used PINN the whole time?
LartzaPINN is a NOOBS fork
Lartzathat supports Arch
Lartzaso yes
Lartzapinn-lite and install the same way as NOOBS I'd imagine
LartzaIt's exactly like NOOBS but a fork
gordonDrogonor stick to Raspbian ;-)
teejgordonDrogon: But Raspbian has old versions of packages.
redrabbitand it works fine
teejUntil you need Python 3.6 because some other things needs it.
gordonDrogonI program in BASIC. I guess I don't need bleeding edge then.
teejgordonDrogon: Oh. That's cool. What are you programming?
teejIt's not that I need the bleeding edge. Just something relatively recent.
gordonDrogonoh anything - I program for fun (& money).
gordonDrogonsimple games. emulators, etc.
gordonDrogonhardware stuff too.
HrdwrBoBideally fun and money at the same time
HrdwrBoBbut eh
gordonDrogonactually, since I get to choose who I work for, then it's almost always fun.
GrandPa-GHow much effect would stray emi effect the stability of a pi? I don't know where it is coming from but there is a radio transmitter next to it but it is on but not transmitting.
gordonDrogonhard to tell - start Tx and see what happens ...
EncryptGrandPa-G, You could wrap your pi in a metal enclosure
EncryptThat would be fine
HrdwrBoBGrandPa-G: at low levels... almost certainly none
HrdwrBoBbut eh
GrandPa-GEncrypt:we have thought of that. Is aluminum foil enough?
EncryptI think so
HrdwrBoBinfact it's perfect
HrdwrBoBmake sure you ground it
EncryptGrandPa-G, Would you do that, make sure to wrap an insulating layer before wrapping it in aluminium
GrandPa-GEncrypt:we currently have a plastic box that is about 2x bigger than the pi. It has a custom daughterboard and lots of space for air. We had thought of doing the metal. Aluminum foil would just be a test.
EncryptAlright then :)
tristerocustom daughterboard is 100x more likely source of instability than EMI :-)
nacelleGrandPa-G: pi2's are suseceptible to light
nacelle etc.
tumble4yahow do i format the entire sd card on windows, im using the format that comes with windows and its only seeing 48mb, the boot sector i think
tumble4yaoh diskpart, thanks everyone :P
GenteelBentumble4ya you need to use fdisk to delete all partitions, I guess?
GenteelBenOr diskpart, yeah.
tumble4yathis used to be way easier
GenteelBentumble4ya where did the SD card come from? It probably has some crazy Linux partitions I'd hate.
GenteelBenIt's Linux's fault for not better supporting the best file system in the world, NTFS.
HrdwrBoBI had a 32gb microSD card I pulled out of my drawer.. dead
HrdwrBoBthen I accidentally pushed a 32gb card with video data underneath my laptop
HrdwrBoBand put the dead one in, and freaked out I lost all my video data
KryczekNTFS best fs in the world, hah!
tumble4yaGenteelBen: it came from an old camera
tumble4yait has an out of date raspbian on it
FrankensmeefCan I have both the wi-fi and ethernet connected to networks and still be able to remote into a Pi using either IP address?
FrankensmeefConnected to networks at the same time, I mean.
FrankensmeefUsing Raspbian Stretch, if that matters
KryczekFrankensmeef: yes, regardless of the Raspbian version or pretty much OS even :) Just as long as the networks are not conflicting, otherwise it might still be possible but it gets complicated
tumble4yahas anyone ever used yocto?
KryczekFrankensmeef: for example if you have Ethernet as 10.*.*.* and WiFi as 192.168.*.* with a default gateway only on one (as far as the RPi is concerned) then it's easy peasy
FrankensmeefKryczek: Thanks, I'm trying to add a USB port to my Tic-Tac Box so I can connect to other networks via ethernet :P
FrankensmeefUSB port > ethernet adapter*
FrankensmeefI finally got the power button, and safe shutdown buttons working
teejLartza: Should I boot the Arch Linux microSD card with the Raspberry Pi hooked up to a monitor and keyboard?
KryczekFrankensmeef: tic tac box as in RPi Zero in a box of Tic Tac sweets? :O
teejUm... it probably needs some configuration.
teejFrankensmeef: Looks good.
akkFrankensmeef: Neat, I never realized a zero would fit in one of those. There's a battery in there too?
KryczekFrankensmeef: nice! I didn't know about those :)
tumble4yahey i just want to run an appliance that uses opengl from the hdmi, do i need a fully blown system like raspbian?
Frankensmeefakk, yeah, there's a tiny LiPo with a boost converter on the back, here's an album of version 1.0:
H4ndyfrankendeww: how much time can you squeeze from those 285mAh?
FrankensmeefH4ndy: About 30-45 minutes or so, I haven't pushed it yet, at least not on purpose when I was actually timing it.
FrankensmeefAssuming you were talking to me, and not the other franken-guy*
H4ndyNo, everything good. thanks, gonna look into that as well, nice little package