Search found 53 matches

by JasonStonier
Fri Sep 13, 2019 4:18 am
Forum: Newbie Questions
Topic: [Solved] Removing files based on mask of filename
Replies: 13
Views: 344

Re: [Solved] Removing files based on mask of filename

I thought this made it clear, but clearly not ;-) I can't rely on the repeats having (2) in the filename, and they don't usually have the same filesize, but they would always be in the same whole second e.g. '2019-09-10 18-53-31' I appreciate all the comments as I learn bash scripting. Anyway, I fou...
by JasonStonier
Thu Sep 12, 2019 4:27 am
Forum: Newbie Questions
Topic: [Solved] Removing files based on mask of filename
Replies: 13
Views: 344

Re: Removing files based on mask of filename

How about just do this and be done with it ;) cp *"("*.jpeg keepers I don't think this does what I need - I can't rely on the file having "(" in the file name. The only consistency in the files I need to consolidate is that they have the same time in the filename e.g. these three taken a few milise...
by JasonStonier
Wed Sep 11, 2019 4:40 am
Forum: Newbie Questions
Topic: [Solved] Removing files based on mask of filename
Replies: 13
Views: 344

Re: Removing files based on mask of filename

18-53-31 = HH-MM-SS ? This is all bogus syntax, but the point is to loop thru all the hh/mm/ss and mv each hh/mm/ss.xxx file to the same file (=a), overwriting it each time, then renaming it to the correct hh-mm-ss.000 That's a genius idea. Thanks so much for the pointer, really appreciate the help.
by JasonStonier
Tue Sep 10, 2019 3:47 pm
Forum: Newbie Questions
Topic: [Solved] Removing files based on mask of filename
Replies: 13
Views: 344

[Solved] Removing files based on mask of filename

I have a system which takes automated pictures on an iPhone (automated scanning of old magazines to an archive) and uploads them to my linux box, but occasionally the shutter trigger results in multiple pictures of the same page separated by milliseconds in the filename: jason@JasonMain ~/Pictures $...
by JasonStonier
Wed Sep 04, 2019 5:26 am
Forum: Newbie Questions
Topic: [SOLVED] Shell Scripting help - increment variable
Replies: 1
Views: 53

Re: Shell Scripting help - increment variable

So...by formulating the problem properly so that I could ask it here, I think I solved it:

Code: Select all

#! /bin/bash
a=1
for i in $(ls -1tr *.jpg); do
  new=$(printf "%03d.jpg" "$a")
  mv -i -- "$i" "$new"
  let a=a+2
done
Seems to do what I need.

Thanks: nothing to see here ;-)
by JasonStonier
Wed Sep 04, 2019 4:59 am
Forum: Newbie Questions
Topic: [SOLVED] Shell Scripting help - increment variable
Replies: 1
Views: 53

[SOLVED] Shell Scripting help - increment variable

Hi all, I'm slowly learning shell scripting. I have a specific problem I'm trying to solve and I'm stuck on one part. I've got two directories of jpgs which I need to sequentially rename in order of creation date: files in dir 1 should end up as 000, 002, 004, 006, files in dir 2 end up as 001, 003,...
by JasonStonier
Sat Apr 27, 2019 1:38 pm
Forum: Installation & Boot
Topic: recovering from a forgotton logon password
Replies: 8
Views: 309

Re: recovering from a forgotton logon password

barneyblogggs wrote:
Mon Apr 22, 2019 2:51 pm
So I dont need to start sleeping with my laptop under the pillow at night :-)
But if you choose to for personal reasons we won't judge you. Probably. :D
by JasonStonier
Fri Apr 26, 2019 11:10 am
Forum: Installation & Boot
Topic: Creating a bootable USB
Replies: 14
Views: 916

Re: Creating a bootable USB

pbear wrote:
Fri Apr 05, 2019 2:01 pm
- you're welcome -
Your location says San Francisco but I'd bet money that you're British. If you're not, with that sense of humour you'd fit right in here if you decide to move to the light side...
by JasonStonier
Thu Apr 25, 2019 7:15 am
Forum: Installation & Boot
Topic: install mint to flash drive instead of HDD
Replies: 13
Views: 477

Re: install mint to flash drive instead of HDD

By the way, do you really mean a 512 GB flash drive? Last time someone said they had a flash drive that size, it turned out to be fake. That's a good point - a lot of [big] memory sticks are actually small memory sticks that have had their file allocation table hacked to make them appear big. I bou...
by JasonStonier
Wed Apr 24, 2019 7:02 pm
Forum: Installation & Boot
Topic: install mint to flash drive instead of HDD
Replies: 13
Views: 477

Re: install mint to flash drive instead of HDD

I <think> the OP is talking about a USB stick rather than an SSD, but I might be wrong. That's what I assumed in my reply.
by JasonStonier
Wed Apr 24, 2019 8:15 am
Forum: Installation & Boot
Topic: install mint to flash drive instead of HDD
Replies: 13
Views: 477

Re: install mint to flash drive instead of HDD

You can, I've done it - I was testing how my MacBook worked on Linux so I did a full install to a USB drive and booted from it for a few days. I'm a linux newbie so the following may not be best practice, but this worked for me... However I had issues with it coming out of suspend which I suspect wa...
by JasonStonier
Tue Apr 16, 2019 7:15 am
Forum: Wireless
Topic: No WiFi after installing Linux Mint 18.3 on MacBook Air - RESOLVED
Replies: 12
Views: 3722

Re: No WiFi after installing Linux Mint 18.3 on MacBook Air - RESOLVED

I know this is an old thread that could be left to die, but in case someone else reads it for a solution... I had this exact issue yesterday. Neither Ubuntu Mate nor Linux Mint Mate 18.1 would drive the WiFi in my Macbook Air after a full install - both needed an internet connection to enable the re...
by JasonStonier
Mon Mar 25, 2019 6:32 am
Forum: Gaming on Linux Mint
Topic: RetroPie or RetroArch
Replies: 16
Views: 1444

Re: RetroPie or RetroArch

I've got a Speedking joystick from the 90s and I made a USB adapter for it from a cheap USB gamepad. Works great.

For general console emulation, I use a Playstation 2 controller with a USB adapter bought from Amazon for about £3.
by JasonStonier
Sun Mar 24, 2019 7:48 am
Forum: Gaming on Linux Mint
Topic: RetroPie or RetroArch
Replies: 16
Views: 1444

Re: RetroPie or RetroArch

I use RetroPie on mint, works perfectly and I had no issues at all setting it up! I have a dedicated PC set up as a console emulator running mint 18 32bit booting into RetroPie by default. Currently with Atari 2600, SNES, N64, MegaDrive, NES, PlayStation 2 (PCSX2 with RetroPie as the launcher) and D...
by JasonStonier
Sat Mar 09, 2019 4:33 pm
Forum: Installation & Boot
Topic: [SOLVED] UEFI dual boot
Replies: 3
Views: 162

Re: [SOLVED] UEFI dual boot

On a side note, after being almost exclusively Linux on my home machines for a couple years, today I was reminded what a royal pain in the ass Windows can be.

Let the obscure driver hunt commence. :roll:
by JasonStonier
Sat Mar 09, 2019 3:27 pm
Forum: Installation & Boot
Topic: [SOLVED] UEFI dual boot
Replies: 3
Views: 162

Re: UEFI dual boot - something I'm not understanding

Thanks so much, that worked :D jason@JasonMain ~ $ sudo efibootmgr --verbose [sudo] password for jason: BootCurrent: 0000 Timeout: 1 seconds BootOrder: 0001,0003,0004,0005,0000 Boot0000* ubuntu HD(1,GPT,a1edfbfa-fa6a-49f8-a702-f7a28d77e589,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi) Boot0001* Wind...
by JasonStonier
Sat Mar 09, 2019 10:15 am
Forum: Installation & Boot
Topic: [SOLVED] UEFI dual boot
Replies: 3
Views: 162

[SOLVED] UEFI dual boot

I have a Fujitsu Celsius desktop, core i5. It's based around a motherboard I pulled out of a scrap bin at work (seriously) so I don't have the admin BIOS password (I have user BIOS access). I successfully installed Linux Mint 18 from a USB flash - it's been running fine for a few weeks. Today I deci...
by JasonStonier
Sat Mar 02, 2019 7:26 am
Forum: Newbie Questions
Topic: What should I do next time - Kernel Conflict
Replies: 1
Views: 122

What should I do next time - Kernel Conflict

First thing - I solved the problem by doing a complete reinstall so no panic, it's more that I want to understand what went wrong! I've had a Mint 17 machine running for a couple of years with no issues. It started life with an Nvidia GT1030 but a couple months ago that card went into another machin...
by JasonStonier
Wed Feb 06, 2019 5:24 am
Forum: Newbie Questions
Topic: [SOLVED] Wifi connected without internet?
Replies: 4
Views: 166

Re: Wifi connected without internet?

The most reliable way to check is, in terminal type ping 8.8.8.8 'ping' sends an echo request, and 8.8.8.8 is the IP address of one of Google's DNS servers so if you get a reply then you have an internet connection. If you get a reply to ping 8.8.8.8, the next thing to do is check that you can resol...
by JasonStonier
Wed Feb 06, 2019 4:59 am
Forum: Newbie Questions
Topic: Using Win 98 SE in VirtualBox for games (ABANDONED)
Replies: 3
Views: 147

Re: Using Win 98 SE in VirtualBox for games

Will the game not run in DosBox? It's worth a try. I have some games from that era that I run in DosBox and it works great.

Go to advanced search