macbook pro – How to modify the command line text showing in Mac terminal

My Macbook Pro shows a wired string (“ryoitasuou“) at terminal like below picture.

Does any know how to remove or modify it ?

I already deleted the “ryoitasuou” folder in /Users folder , and modify username in “bash_profile” , but these steps does not help.

p.s. I bought this Macbook Pro 2019 from Amazon , and the wired name is already exist after I finished user setup at the first time I boot up this laptop.
This is really annoying every time I use Terminal.

enter image description here

mac – Created a looping Automator application. Now process is running indefinitely by launchd and cannot kill it

I’m losing my mind.

I created a super simple Application in Mac Automator which just runs a one-line Python script and then has a loop action at the end. I ran this and it started working. Then no matter what I tried, deleting the application, killing the process, it doesn’t stop.

For one, the PID of the process is constantly changing and the parent process seems to be launchd (1). And I know it’s still running because the Python script writes “foo” to a .txt file I have and it’s still writing it. I tried rebooting to no success either.

Please tell me how to stop this process..

iphone – Script to export all photos and album from Photos on Mac while keeping metadatas

My initial goal was to import “From my Mac” albums to my iPhone and keep them synced.

It seems that an album created outside iOS is read only. And if I make a copy of it on my iPhone, it won’t be synced with Photos on Mac.

So I would like to try by managing my photos manually.

First, I need to export my Photos library but it keeps crashing.. I have 2700 photos and 300 videos (most of them last < 1min)

I’ve found a script online but the problem is : it only exports albums

I would like a script that can export my album AND my photos(the edited versions). Knowing that a photo is present in a single album. The exported folder would look like that :

— Photos not present in any album

— Album 1

—- Photos in album 1

— Album 2

—- Photos in album 2

I would also like to keep metadatas. With an emphasis on GPS Location and when they were taken. I already ticked the corresponding checkbox in Photos. I don’t care that the create date is updated but I just want the iOS Photos app to recognize dates and places of these photos.

I hope I’m not asking too much but I’m not very familiar with applescript.


macos – How to remove leading whitespace in a folder for OneDrive upload on mac os

I am currently transitioning my files from local to a OneDrive folder on my mac and after I have copied all of the files in I have hundreds of Sync issues which relate to file names containing spaces at the front.

I am fairly new to coding / automator and looking around on the internet is fairly daunting!

Is there an easy way to just select the folder you want and then remove all leading whitespace inside of that folder? I have used automator before but dont understand any of the coding associated.

My OneDrive folder sits in Macintosh HD⁩ ▸ ⁨Users⁩ ▸ ⁨xxxxx directory so is there a way of setting the folder there and then running something to remove all leading spaces?

If possible, a laymans guide would help! haha

Any help would be much appreciated! Thanks!

macos – Import Albums “From my Mac” to my iPhone albums and keep them synced

I don’t use iCloud Photos. I wanted to import my iPhone photo albums to my Mac but it seems that without iCloud Photos it is not possible without any third party software according to my searches.

But I’ve found that I can create albums on Photos on my Mac and then sync with my iPhone. So I took time to recreate albums on my Mac. I factory reset my iPhone and then sync with my Mac. All the photos are back, even the albums, great.

BUT, the albums on my iPhone are “hidden” in the “From my Mac” section. Not in “My Albums”. And I can’t add photos to these albums on my iPhone. I could select all the photos and add them on a newly created album on my iPhone with the same name but.. I guess it will be out of sync.

Is it possible to keep the albums between my Mac and iPhone synced AND have the possibility to add photos to these albums on my iPhone ? Without iCloud Photos.

I’ve searched for a solution for the past two days and I don’t know what to do anymore.
It is supposed to be simple.. isn’t it ? 🙁


macos – How do I get this Mac G5 up and running ? (boot to OS)

A local Goodwill sells Apple hardware at ridiculously low prices, great for a tinkerer like me. I’d missed the Mac mini on sale so I grabbed this Mac Pro looking device thinking it would be an intel running unit. The $25 price tag and wire tie kept me from opening. the cover to confirm and they don”t offer refunds.

When I opened it at home the plastic cover inside had the great big G5 on it and my heart sank. No hard drive or memory. The little sticker started off showing it as a single 1.6. DDR3 or DDR2 or DDr4 memory didn’t seem to fit, but I did shoehorn two sticks of 2gb into two slots. There is a 500gb drive attached inside without rails. Both are to test. There is what seems to be t he optical drive still in the front bay.

So it boils down to two questions :

  1. What do I need to do to just get it booting into an OS ?

  2. Can I get this running as a file server ?

I’ve been around just about every PC (starting with Apple II) but not the power Mac or Motorola period. Now I’m in the deep end!

So, for question (1) what do I need to boot to an Apple OS ? And where do I buy it ?

I haven’t figured how to open the ‘apparent’ optical drive else I’d searched for an old Apple Mac OS dvd to try. Also I’d have. thought I’d get other than a black screen when turning it on.

Question (2) : I have a very sketchy idea of a project. I’m creating a network as a learning experience to spend free time on. I’ve also the start of an idea: there’s an existing job that places them in the community for daily updates. Part of their job is to update a participant’s status and qualify them for social programs. I’m working with the idea of how they could do the data collection, apply for programs and respond to emergencies by handheld data collection forms. They’d be updating a cloud database which would in turn intelligently gather demographics necessary to qualify for new programs or ones where the qualifications have changed.

I see this as being implemented on the backend with a network providing file services and some processing power as well as development machines for programmers. I’ve got that fairly easily with an Airport and internet modem. Add a time capsule and I’ll be sure that the work won’t get lost in a system crash.

The next step is file services. I could use the NAS on. the AirPort, the Time Capsule or a file server. But I was raised on Corvus and Novell though I was proficient in Token Ring and GriNOS that worked on amateur packet radio. I’m not sure how Apple works with the locking a real database needs: field, record or file. Or if it’s just a grabfest.

So my options as I see them would be a ‘new old system’, a cheap Mac Pro or Mac mini to provide services; use the G5 if I can get it running or simply use the NAS off AirPort/TimeCapsule.

I understand my ‘question’ is meandering. Any leads on just what to do about the G5 would be great. Anything more is icing on the cake.

Unable to connect to Litecoin Testnet with Litecoin Core on Mac

I’ve downloaded the LiteCoin Core for the Mac (High Sierra 10.13.3) in order to use the testnet for testing an online shopping cart. I’m not looking to mine any coins, just use the wallet. The application loads up correctly when connecting to the normal wallet, but when I add testnet=1 to the litecoin.conf, it won’t connect to the peers. When I look at the debug log, I see

2018-03-01 14:37:02 connect() to failed after select(): Connection refused (61)
2018-03-01 14:37:03 connect() to failed after select(): Connection refused (61)
2018-03-01 14:37:03 connect() to failed after select(): Connection refused (61)
2018-03-01 14:37:04 connect() to failed after select(): Connection refused (61)
2018-03-01 14:37:04 connect() to failed after select(): Connection refused (61)
2018-03-01 14:37:05 connect() to failed after select(): Connection refused (61)

I’ve tried adding an RPC user/pass, but still no go. Error 61 seems to relate to the service not running on the port on the destination machine. I’m in an office environment, so cannot make any network changes. Is there anything I’m missing?

Here is my current litecoin.conf


macos – Mac fails to boot – Partition map check failed because no slices were found on main drive

So my girlfriend’s Mac Pro (Mid 2012, Catalina, SANDISK Ultra 3D SSD 512GB as boot drive) suddenly gave in today. On boot it would only display the directory symbol with a question mark within.

Rebooted in recovery mode, diskutils told me the disk had to be repaired, but repair would fail with “Partition map check failed because no slices were found”.

Some googling later stuff like this How to fix broken GPT, GUID and unmountable, no type volumes? and Apple forum: disk0s2 can’t mount – Partition shows as “MBR part 255” pointed me to gpt and fdisk.

gpt output:

-bash-3.2# gpt -r show /dev/disk0
     start      size index contents
         0         1       PMBR
         1         1       Pri GPT Header
         2        32       Pri GPT Table
        34    409606
    409640 999805536     1 GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC
1000215176         7  
1000215183        32       Sec GPT table
1000215215         1       Sec GPT header

fdsk output:

-bash-3.2# fdsk /dev/disk0
Disk: /dev/disk0 geometry: 62260/255/63 (1000215216 sectors)
Signature: 0xAA55

#: id  cyl  hd sec -  cyl  hd sec ( start -       size)
1: EE 1023 255  63 - 1023 255  63 (     1 - 1000215215) <Unknown ID>
2: 00    0   0   0 -    0   0   0 (     0 -          0) unused
3: 00    0   0   0 -    0   0   0 (     0 -          0) unused
4: 00    0   0   0 -    0   0   0 (     0 -          0) unused

Comparing my gpt output with others I noticed the first partition (start at 40, length of 4090600, probably the partition table?) is missing. So I followed aforementioned links and tried destroying and re-adding the existing part, followed by diskutil:

gpt destroy disk0
gpt add -i 2 -b 409640 -s 999805536 -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk0
diskutil repairDisk disk0

Which only changed the directory symbol with question mark on startup to a stop sign (did I do a whoopsie?).

Afterwards I tried adding the first partition as well:

gpt destroy disk0
gpt add -i 1 -b 40 -s 409600 -t C12A7328-F81F-11D2-BA4B-00A0C93EC93B /dev/disk0
gpt add -i 2 -b 409640 -s 999805536 -t 7C3457EF-0000-11AA-AA11-00306543ECAC /dev/disk0
with and without: diskutil repairDisk disk0

But same result. Now I’m out of ideas. Anyone got some?