LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mint 18.3 cannot find shell script (https://www.linuxquestions.org/questions/linux-newbie-8/mint-18-3-cannot-find-shell-script-4175623347/)

rtmistler 02-08-2018 03:16 PM

Code:

sudo apt-get update
sudo apt-get install dos2unix

Then use the dos2unix command to change all the files given from Canon into Unix file types, you can use a wildcard to do this.

I'm assuming you'll need to install it, I have Mint 18.1 and didn't have the command, but was able to install it.

EDIT: @bw-userx there is no dos2linux, ... Unix.

BW-userx 02-08-2018 03:18 PM

dos2unix – Removing Hidden Windows Characters from Files
I was close. :D off by a few letters.

weinelb 02-08-2018 03:24 PM

BW-userx,

It might, but I'm not willing to go through 1,883 lines to see every file used (with the risk of missing one). First, I'll see what Canon Support will do...

rtmistler 02-08-2018 03:28 PM

Quote:

Originally Posted by weinelb (Post 5817482)
BW-userx,

It might, but I'm not willing to go through 1,883 lines to see every file used (with the risk of missing one). First, I'll see what Canon Support will do...

They're all in a directory, right?
Code:

find . -name "*" -exec dos2unix {} \;

weinelb 02-08-2018 03:29 PM

rtmistler,

Install would probably work on Intel, but I have a 64 bit AMD Athelon X2 and install of dos2unix fails with “error processing package libjpeg62:amd64 package is in a very bad inconsistent state”.

And the packages are one directory while resource files are in another. Not that it matters since do2unix install fails.

BW-userx 02-08-2018 03:30 PM

Quote:

Originally Posted by weinelb (Post 5817482)
BW-userx,

It might, but I'm not willing to go through 1,883 lines to see every file used (with the risk of missing one). First, I'll see what Canon Support will do...

running dos2unix, I've never had to, but if it is just a issue command file then,
Code:

cd into directory
dos2unix *

let it run then if it has issues you have a backup in your tar file, so you're not losing anything other then the time it takes to let the program run vs the time it will take dealing with a help "desk" ... you could actually do both, run dos2unix on one set of files form your deb tar, then you can still untar it again into a different dir for the help "desk" people.

which ever completes first with good usable files, use them

weinelb 02-08-2018 03:41 PM

rtmistler & BW-userx,

Calling it a day after 12 hours fiddling with Mint (but did get "shutdown" issue fixed0. Will pick it up circa 0430 tomorrow morning.

rtmistler,

Any thoughts on my install issue? Have latest version of "amd64-microcode" installed. Bye for now...

scasey 02-08-2018 03:57 PM

I too had to install it on my brand-new desktop (AMD E-350 Processor, 2 cores) - but I thought you already had it...you ran it against the script as in post #8, yes?

weinelb 02-08-2018 04:14 PM

scasey,

No, I cheated. When dos2unix wouldn't install I copied it to a USB stick then used UltraEdit under Windows to convert DOS to Unix and then saved the result. I run 3 PCs under Windows 7 Pro, 1 on XP Pro, 1 on Win10 (which I loathe) and a MacBookPro 15 under Sierra 10.12.6; all on both a 100GHz Ethernet LAN and an 802.11agnac WiFi net. I used a memory stick because I only put the Linux machine on my Ethernet when I want to download a driver or other package (because I have to steal the RG-45 cable from a Win7 laptop).

hydrurga 02-08-2018 04:34 PM

Once again, I direct folks' attention to https://www.linuxquestions.org/quest...ml#post5805778 where someone successfully used that script a month ago here on LQ.

Looks like corruption at some point.

weinelb 02-09-2018 05:49 AM

hydrurga,

Yes it was corruption. Canon Support asked me to visit the site again and sure enough the "Operating System" on the Drivers download page said “Windows 7 (detected)”. They advised manually changing that to be “Linus 64bit” then download again.

Voilŕ! The debian package worked without errors and my Canon TS6020 is now installed and working. When asked why their page misidentified my environment their answer was just "It may be your browser or a system setting." I'd have liked a more definitive answer, but their advice got me working.

BW-userx 02-09-2018 08:15 AM

talk about passing the buck, I'm surprised you didn't get,the defacto,

"It's not my department, mam/sir"

weinelb 02-10-2018 12:10 PM

BW-userx,

The “pass the buck” response arrived today via emai. It came from a support guy other than the one with whom spoke:
Code:

On 2/10/2018 7:37 AM, Canon Support wrote:
>
> Dear Bruce Weinel,
>
> Thank you for contacting Canon product support. I apologize for the delayed
> response. I understand you would like drivers for the PIXMA TS6020. I can advise you.
>
> The PIXMA TS6020 is only supported with Windows and Mac OS operating systems. I apologize for the
> inconvenience but there are no drivers available for the TS6020 with Linux. The message displayed in the
> attachment was being caused from updates with the Canon website which have since been completed. The
> following link will allow you to view the drivers available for the PIXMA TS6020.
> https://www.usa.canon.com/internet/portal/us/home/support/details/printers/inkjet-multifunction/ts-series-inkjet/ts6020-black/pixma-ts6020#drivers_downloads_tab
>
> Please let us know if we can be of any further assistance.
>
> Thank you for choosing Canon.
>
> Sincerely,
>
> Cameron
> Technical Support Representative

Amazing that an “unsupported” device has a driver that works when one overrides a malfunctioning web page isn't it?


All times are GMT -5. The time now is 05:43 PM.