As always, spaces are important and you do not have one between the option and the target, it should be: ln space -s space target space link_name. Eventually in the last lines you succeed and it tells you that the file exists. To check your dos ports just:
ls space ~/.wine/dosdevices
Notice that ~/.wine/dosdevices is one word.
whiteoxe, I've been following your thread for the past 4 weeks, and it seems like moving to linux requires much more effort than just staying with Windows. I have four Windows systems at home, and I've had very little trouble with them. The only complaint I've had with Windows was with a laptop I had that came with Vista. I do pay a Norton tax every year, but it's a small price to pay to keep my Windows computers running smoothly.
Hi Dave, yep the switch is not as pain free as I thought. Its fine for people thatknow how but for your average garden gnome type user there are issues, well at least if you are intent on running programs in Linux that were made for windows.
Hi Dave, yep the switch is not as pain free as I thought. Its fine for people thatknow how but for your average garden gnome type user there are issues, well at least if you are intent on running programs in Linux that were made for windows.
I think the problem tends to be assumptions themselves, but Linux is not Windows although it can run many Windows programs, but try getting Windows to do likewise. People forget that they've been using Windows for many many years and then expect to be up and running with Linux in a heartbeat. Saying that however, changing over to Linux is not that hard as you can boot up from a live Linux distro (preferably not CD) in under a minute, partition your drive in a few, then install in a few more than that and then reboot into the installed Linux, complete with software preloaded and access to your Windows partitions and documents. How hard is that???
MIke, reading back through your posts I see you have been fumbling the whole process and hoping that it just works but making some incorrect assumptions and receiving some incorrect advice as well in the process. The result? less than perfect but as you saw the other day when I installed Mint and had it up and running that it can be very easy. Do you remember the last time you had to install Windows? How painful and slow, and even then it still had to find and install drivers (if it could) again and again with a reboot every few minutes. Linux is a get out of windows prison card, and the amazing thing is, it's free.
Yeah Peter I agree. I am not really complaining. Its all just a learning curve and Im not bothered if im a little slow I also do appreciate how easy Linux is to install. In fact around 10 or 15 years ago whenever win 95 was new, I found that a major pain to install and get my printers etc to run, I emailed SUSE and they sent me a package of cd's and a manual and stickers etc for free. I installed that and it was even back then far easier than windows and it automatically set up drivers for my modem and printer. I just wish I had stayed with Linux because id be a master of it by now instead of a newbie !!! I'd probably still go with SUSE except it was bought by Novell or someone and there are two versions, I did download it and install after a decade away..... roughly a year ago . I didn't much like SUSE anymore.
And Ive posted some questions on the WINE forum so as not to keep bothering everyone here.
I just said i wasn't going to bother anyone again, but I want to free up a whole drive that has Ubuntu installed on it. My fear is that if I format that drive then the booting process is going to get screwed and l will have to fix the boot loader or worse install win and mint all over again.
So Ill just disconnect Ubuntu drive and then see what happens when i turn on my PC and make further decisions based on what happens there !!!
ps. last year i had only one drive with win and VB running. In VB I had win 7, XP, Ubuntu and Mac OS Leopard running.
Apparently if you have a laptop with the right bios you can turn it into a fully functioning hackintosh.
Check that you actually have access to the USB device. In Linux and other *nix there is a lot of privilege separation going on, for security. Do 'ls -l /dev/ttyUSB*' (the option is a minus immediately followed by a lower-case L, I'm mentioning this because with the forum font it's difficult to tell). On my system something like this comes up:
crw-rw----+ 1 root dialout 4, 64 May 24 15:45 /dev/ttyUSB0
What that means is that only root and members of the group 'dialout' have read/write access to the device. So I have made myself a member of the 'dialout' group (other Linux distros may use other groups). This can probably be done via the distro's system management GUI, but if you're on Ubuntu you can also do
sudo su adduser 'your-username-without-the-quotes' dialout
or whatever the group is. Then log completely out and in again.
Check that you actually have access to the USB device. In Linux and other *nix there is a lot of privilege separation going on, for security. Do 'ls -l /dev/ttyUSB*' (the option is a minus immediately followed by a lower-case L, I'm mentioning this because with the forum font it's difficult to tell). On my system something like this comes up:
crw-rw----+ 1 root dialout 4, 64 May 24 15:45 /dev/ttyUSB0
What that means is that only root and members of the group 'dialout' have read/write access to the device. So I have made myself a member of the 'dialout' group (other Linux distros may use other groups). This can probably be done via the distro's system management GUI, but if you're on Ubuntu you can also do
sudo su adduser 'your-username-without-the-quotes' dialout
or whatever the group is. Then log completely out and in again.
-Tor
I find using the courier font works well for making terminal text like this ls -l /dev/ttyUSB* stand out and without needing quotes.
I find that Linux works well for the average "non-computer" user, since 90% of what they do is online anyway. I've installed Ubuntu for both my mother and my girlfriend, and they picked it up quickly. After all, they just had to use Chrome to browse to Gmail and Facebook.
My personal favorite distribution is Ubuntu Gnome. Unlike many claims made here in the forums, it's not broken for me. It works out of the box, and that's all I care about.
I find using the courier font works well for making terminal text like this ls -l /dev/ttyUSB* stand out and without needing quotes.
Aha, yes. It's only recently that the editor started to work again in my browser.. it's been raw mode for the last two years. So there's a Font section I can use. Thanks, that'll be useful.
grep will only print out the lines it finds that contain the string you are searching for. So if it does not find any there is no output.
On my Linux machines serial ports are named like /dev/ttyS0 and /dev/ttyUSB0. grep is case sensitive so your command above would not find either of these even if they were there.
Try a case insensitive search like: "dmesg | grep -i ttys" or "dmesg | grep -i ttyu"
Ive been a bit busy, going up to the folks farm and mustering cattle and fixing things there. Ill try again soon. Ive nearly weaned myself of windows except when i need to serial ports for a few microcontrollers. Ive been so stuck on the Wine idea that i havent even installed VBox. Ill do that soon and maybe that will work as well or instread ? Then I thinkl im windows free , well booting windows anyway
When i instaled code:blocks to lean a bit of C programming,i expected it to work. it didnt, i googled the error messages and had to install packages so stido.h would be installed. Then a hello world woulnt work and again i had to install xterm for it to display.
that felt like installing open office , but then having to install fonts as well to make it work, so it was a bit of a mess around.
Just fire up your favorite editor and write your hello world program. Then:
# gcc -o hello hello.c
#./hello
Never ever use OpenOffice or LibreOffic or Word. These are word processors. They are dinosaurs from a time, decades ago, when people printed stuff on their laser printers posted it in the snail mail or nailed it to notice boards. Today anything worth writing is online, in blogs, forums, whatever. The word processor has no use anymore. Their complexity outweighs any benefit.
P.S. Reminds me, I had a strange thought the other day. As a Linux only user since 1997 or so I found myself hacking some code on a borrowed laptop running Windows 7. The code was being edited in Sublime text, the same editor I use a lot on Linux. It was being run in Firefox and Chrome. same as I would do on Linux. C code was being compiled with Clang. Documentation was being typed into a Ghost blog. Source was being saved to github. I had a couple of Putty sessions open to servers here and there. All in all the same work flow as a typical hacking session on Linux.
The thought was "Hey, this Windows stuff has become almost as easy to use as Linux" !
That is a great achievement for MicroSoft but poses the question, If the user experience is about the same why bother paying MS for it and suffering all the downsides of a closed source, single supplier system?
I went from never using a printer to printing everything out in full colour ... I've got stacks of paper in folders, boxes, on the wall, in the car, rubbish bins and untold amounts go through the shredder. I'm always stashing datasheets and invoices and like. It really helps keep the projects in order.
It all changed when I finally got my hands on cheap bottled ink and a printer that doesn't care about how much ink it uses from the cartridge nor what cartridges it has. The ink costs are prolly a twentieth of regular cartridge prices. Maybe even lower. Refilling is as simple as opening the lid and pouring more ink in.
I went from hating inkjets to feeling like a free man! All because of the cost of ink.
I do like a good read from paper from time to time. My main issue with all that is that it's hard to find stuff in stacks of paper and folders etc. Then things change so fast that the paper copy is out of date soon enough.Isn't all that printing from a dot matrix a bit slow?
Evanh,Do tell. What printer and what inks?I do like a good read from paper from time to time. My main issue with all that is that it's hard to find stuff in stacks of paper and folders etc. Then things change so fast that the paper copy is out of date soon enough.Isn't all that printing from a dot matrix a bit slow?
I take it that was a dig at Inkjets being slower than lasers? I don't find it much of an issue, but then I don't always print the whole document either. If it's 5 pages I'll print it on the spot. If it's 50 pages then I might get picky about which parts are of value. If it's 500 pages then I weigh up if I really want it on paper at all. I can always leave it printing while doing something else, it's all mine to allocate.
The tanks protrude a fair way out of the front of the printer. It comes with an insert for tricking the printer into thinking the tank door is shut. Real geeky.
I think I installed the CUPS and TWAIN drivers from Brother's website, which is totally changed now, but the memory's a bit hazy. I'm still on the previous LTS release.
No dig at all. It's such a long time since I printed anything much that I really have no idea.
A year or so back we got a new office printer. A huge big networked Cannon laser printer/scanner/copier/fax monstrosity . It took me an entire working day getting that piece of s**t to print from Linux. A week or so later my coworker spent a whole day trying to get it to print from Windows and gave up!
Since then my Linux has been re-installed a few times and I never bothered to go through the rigmarole to get the printer working again. It's so much easier to wait til I get home and print on a ten year old HP laser jet when I really need to.
Moral of the story is: Never ever buy a Cannon printer. Mind you, I'm not sure if any of the others are any better now a days.
Yeah, fair enough. I've found my backup of the install files now. I remember doing a lot of searching and reading before succeeding myself. The Ubuntu built-in drivers didn't cater for the newest printers. I kept a little text file with the drivers with instructions for next time ...
' Below is an example. First install the lpd package then the cups package.
' Either using the --force-architecture option, or possibly using --force-all option.
' Also may need to create the directory /var/spool/lpd
'$ sudo mkdir /var/spool/lpd
'$ sudo dpkg -i --force-architecture mfcj6910dwlpr-3.0.0-1.i386.deb
'$ sudo dpkg -i --force-architecture mfcj6910dwcupswrapper-3.0.0-1.i386.deb
I note now that Brother's website has 64bit versions of the drivers. And an installer program that makes it a simple click presumably. So, my notes can be forgotten for good.
Ok , i Know im late to the party but let me also say it
ive been off windows sinds the year 2000
been running Ubuntu every sinds , and no regrets .
indeed you will find yourself figuring out a few tricks to get your usual work done , but once you got that all figured out there is deffinitly no way ever to going back and running a windows OS
I do use windows in VMBOX for the few only things we still cant get working in linux ( Autocad drauwings , and PC WORKX for programming Phoenix Contact plcŚ ) but besides that .thats about it for Windows
And Simple IDE is my propeller programmer of choice , working great ( thanks Jazzed)
One you go opensource , U keep wondering why people keep paying for an super auwfull windows OS, or expensive apple wich is just a linux copy
thats just trowing money away
Last pc i bought i spend all money on hardware , and none on software , feels great
Only hiccup I've had is apparent airlocks. It's easy enough to deal with - perform at least two consecutive cleaning cycles - and I think the issue can be eliminated by maintaining clear breather holes on the tanks.
I've heard this is a common issue for this tube fed ink system on the Brother's of that age. Dunno about the more recent range I saw this year though.
doom@doom ~ $ /home/username/.wine/dosdevices
bash: /home/username/.wine/dosdevices: No such file or directory
doom@doom ~ $ /home/doom/.wine/dosdevices
bash: /home/doom/.wine/dosdevices: Is a directory
doom@doom ~ $ ln -s /dev/ttyS4 com1
ln: failed to create symbolic link com1: File exists
doom@doom ~ $ ln -s /dev/ttyS5 com4
doom@doom ~ $ /etc/rc.local
doom@doom ~ $ chown username /dev/ttyS4
chown: invalid user: username
doom@doom ~ $ chown doom /dev/ttyS4
chown: changing ownership of /dev/ttyS4: Operation not permitted
doom@doom ~ $ chown doom /dev/ttyS5
chown: changing ownership of /dev/ttyS5: Operation not permitted
doom@doom ~ $ In /etc/rc.local
In: command not found
doom@doom ~ $ sudo chown doom /dev/ttyS4
[sudo] password for doom:
doom@doom ~ $ 44west
44west: command not found
doom@doom ~ $ sudo chown doom /dev/ttyS4
doom@doom ~ $ sudo chown doom /dev/ttyS5
doom@doom ~ $ sudo chmod u+x /etc/rc.local
doom@doom ~ $ ln -s /dev/ttyS4 com4
ln: failed to create symbolic link com4: File exists
doom@doom ~ $ ln -s /dev/ttyS4 com2
doom@doom ~ $ ln -s /dev/ttyS4 com2
ln: failed to create symbolic link com2: File exists
doom@doom ~ $ ln -s /dev/ttyS4 com5
doom@doom ~ $ ln -s /dev/ttyS4 com4
ln: failed to create symbolic link com4: File exists
doom@doom ~ $
Now when i try to access a serial port using the Basic Stamp microcontroller editor , a windows program,
I keep getting port com1 port in use
or com2 port in use
No dig at all. It's such a long time since I printed anything much that I really have no idea.
A year or so back we got a new office printer. A huge big networked Cannon laser printer/scanner/copier/fax monstrosity . It took me an entire working day getting that piece of s**t to print from Linux. A week or so later my coworker spent a whole day trying to get it to print from Windows and gave up!
Since then my Linux has been re-installed a few times and I never bothered to go through the rigmarole to get the printer working again. It's so much easier to wait til I get home and print on a ten year old HP laser jet when I really need to.
Moral of the story is: Never ever buy a Cannon printer. Mind you, I'm not sure if any of the others are any better now a days.
HP is my choice these days, they just work and they support Linux through HPLIP but also because their color lasers actually do gloss black which is important for printing labels on heavy duty laser labels which are polyester base. Their printers are also smartphone friendly too.
Now when i try to access a serial port using the Basic Stamp microcontroller editor , a windows program,
I keep getting port com1 port in use or com2 port in use ...
Your first step of changing to the desired directory failed.
To fix things, start by deleting all those com# soft link files. You'll find them in your home directory. Hopefully, assuming nothing else is messed up, that will get you back to square one.
Next step is creating them in the correct place, namely the wine prefix.
... Oh, Smile, I just force deleted all my important files. ****! That's gonna hurt. Not much in the way of backups here. Anyone now how to undelete files on an ext4 volume?
Comments
As always, spaces are important and you do not have one between the option and the target, it should be: ln space -s space target space link_name. Eventually in the last lines you succeed and it tells you that the file exists. To check your dos ports just:
ls space ~/.wine/dosdevices
Notice that ~/.wine/dosdevices is one word.
c: com1 com2 d: d:: z:
doom@doom ~ $
well that looks OK. !
But the basic stamp stil says port busy and the parralax serial terminal shows no ports .....
I think the problem tends to be assumptions themselves, but Linux is not Windows although it can run many Windows programs, but try getting Windows to do likewise. People forget that they've been using Windows for many many years and then expect to be up and running with Linux in a heartbeat. Saying that however, changing over to Linux is not that hard as you can boot up from a live Linux distro (preferably not CD) in under a minute, partition your drive in a few, then install in a few more than that and then reboot into the installed Linux, complete with software preloaded and access to your Windows partitions and documents. How hard is that???
MIke, reading back through your posts I see you have been fumbling the whole process and hoping that it just works but making some incorrect assumptions and receiving some incorrect advice as well in the process. The result? less than perfect but as you saw the other day when I installed Mint and had it up and running that it can be very easy. Do you remember the last time you had to install Windows? How painful and slow, and even then it still had to find and install drivers (if it could) again and again with a reboot every few minutes. Linux is a get out of windows prison card, and the amazing thing is, it's free.
And Ive posted some questions on the WINE forum so as not to keep bothering everyone here.
So Ill just disconnect Ubuntu drive and then see what happens when i turn on my PC and make further decisions based on what happens there !!!
ps. last year i had only one drive with win and VB running. In VB I had win 7, XP, Ubuntu and Mac OS Leopard running.
Apparently if you have a laptop with the right bios you can turn it into a fully functioning hackintosh.
crw-rw----+ 1 root dialout 4, 64 May 24 15:45 /dev/ttyUSB0
What that means is that only root and members of the group 'dialout' have read/write access to the device. So I have made myself a member of the 'dialout' group (other Linux distros may use other groups). This can probably be done via the distro's system management GUI, but if you're on Ubuntu you can also do
sudo su adduser 'your-username-without-the-quotes' dialout
or whatever the group is. Then log completely out and in again.
-Tor
I find using the courier font works well for making terminal text like this ls -l /dev/ttyUSB* stand out and without needing quotes.
My personal favorite distribution is Ubuntu Gnome. Unlike many claims made here in the forums, it's not broken for me. It works out of the box, and that's all I care about.
-Tor
Code:
dmesg | grep ttys
It'll tell you if and which serial ports are available.
If you have trouble typing the command, you may find easier to copy-paste it into the terminal.
I tried the command with two termials and whem i hit enter it sust goes back to command promp,,,, no message....nothing ??/
Styill having trouble with wine accessing serial ports !! I think ill just boot win 7
On my Linux machines serial ports are named like /dev/ttyS0 and /dev/ttyUSB0. grep is case sensitive so your command above would not find either of these even if they were there.
Try a case insensitive search like: "dmesg | grep -i ttys" or "dmesg | grep -i ttyu"
What do you have in /dev ?
that felt like installing open office , but then having to install fonts as well to make it work, so it was a bit of a mess around.
Just fire up your favorite editor and write your hello world program. Then:
# gcc -o hello hello.c
#./hello
Never ever use OpenOffice or LibreOffic or Word. These are word processors. They are dinosaurs from a time, decades ago, when people printed stuff on their laser printers posted it in the snail mail or nailed it to notice boards. Today anything worth writing is online, in blogs, forums, whatever. The word processor has no use anymore. Their complexity outweighs any benefit.
P.S. Reminds me, I had a strange thought the other day. As a Linux only user since 1997 or so I found myself hacking some code on a borrowed laptop running Windows 7. The code was being edited in Sublime text, the same editor I use a lot on Linux. It was being run in Firefox and Chrome. same as I would do on Linux. C code was being compiled with Clang. Documentation was being typed into a Ghost blog. Source was being saved to github. I had a couple of Putty sessions open to servers here and there. All in all the same work flow as a typical hacking session on Linux.
The thought was "Hey, this Windows stuff has become almost as easy to use as Linux" !
That is a great achievement for MicroSoft but poses the question, If the user experience is about the same why bother paying MS for it and suffering all the downsides of a closed source, single supplier system?
It all changed when I finally got my hands on cheap bottled ink and a printer that doesn't care about how much ink it uses from the cartridge nor what cartridges it has. The ink costs are prolly a twentieth of regular cartridge prices. Maybe even lower. Refilling is as simple as opening the lid and pouring more ink in.
I went from hating inkjets to feeling like a free man! All because of the cost of ink.
Do tell. What printer and what inks?
I do like a good read from paper from time to time. My main issue with all that is that it's hard to find stuff in stacks of paper and folders etc. Then things change so fast that the paper copy is out of date soon enough.Isn't all that printing from a dot matrix a bit slow?
I take it that was a dig at Inkjets being slower than lasers? I don't find it much of an issue, but then I don't always print the whole document either. If it's 5 pages I'll print it on the spot. If it's 50 pages then I might get picky about which parts are of value. If it's 500 pages then I weigh up if I really want it on paper at all. I can always leave it printing while doing something else, it's all mine to allocate.
Printer is Brother MFC-J6910DW and ink tanks are an after market kit I purchase across the ditch here - http://continuousinksupplysystem.com.au/en/home/10042498-refillable-ink-cartridges-for-brother-mfc-j-6910dw-lc-75.html
The ink - http://continuousinksupplysystem.com.au/en/home/10042284-ciss-dye-ink-for-brother-printer.html
The tanks protrude a fair way out of the front of the printer. It comes with an insert for tricking the printer into thinking the tank door is shut. Real geeky.
Try this link - http://support.brother.com/g/b/downloadlist.aspx?c=nz&lang=en&prod=mfcj6910dw_all&os=128
No dig at all. It's such a long time since I printed anything much that I really have no idea.
A year or so back we got a new office printer. A huge big networked Cannon laser printer/scanner/copier/fax monstrosity . It took me an entire working day getting that piece of s**t to print from Linux. A week or so later my coworker spent a whole day trying to get it to print from Windows and gave up!
Since then my Linux has been re-installed a few times and I never bothered to go through the rigmarole to get the printer working again. It's so much easier to wait til I get home and print on a ten year old HP laser jet when I really need to.
Moral of the story is: Never ever buy a Cannon printer. Mind you, I'm not sure if any of the others are any better now a days.
I note now that Brother's website has 64bit versions of the drivers. And an installer program that makes it a simple click presumably. So, my notes can be forgotten for good.
ive been off windows sinds the year 2000
been running Ubuntu every sinds , and no regrets .
indeed you will find yourself figuring out a few tricks to get your usual work done , but once you got that all figured out there is deffinitly no way ever to going back and running a windows OS
I do use windows in VMBOX for the few only things we still cant get working in linux ( Autocad drauwings , and PC WORKX for programming Phoenix Contact plcŚ ) but besides that .thats about it for Windows
And Simple IDE is my propeller programmer of choice , working great ( thanks Jazzed)
One you go opensource , U keep wondering why people keep paying for an super auwfull windows OS, or expensive apple wich is just a linux copy
thats just trowing money away
Last pc i bought i spend all money on hardware , and none on software , feels great
Only hiccup I've had is apparent airlocks. It's easy enough to deal with - perform at least two consecutive cleaning cycles - and I think the issue can be eliminated by maintaining clear breather holes on the tanks.
I've heard this is a common issue for this tube fed ink system on the Brother's of that age. Dunno about the more recent range I saw this year though.
doom@doom ~ $ /home/username/.wine/dosdevices
bash: /home/username/.wine/dosdevices: No such file or directory
doom@doom ~ $ /home/doom/.wine/dosdevices
bash: /home/doom/.wine/dosdevices: Is a directory
doom@doom ~ $ ln -s /dev/ttyS4 com1
ln: failed to create symbolic link com1: File exists
doom@doom ~ $ ln -s /dev/ttyS5 com4
doom@doom ~ $ /etc/rc.local
doom@doom ~ $ chown username /dev/ttyS4
chown: invalid user: username
doom@doom ~ $ chown doom /dev/ttyS4
chown: changing ownership of /dev/ttyS4: Operation not permitted
doom@doom ~ $ chown doom /dev/ttyS5
chown: changing ownership of /dev/ttyS5: Operation not permitted
doom@doom ~ $ In /etc/rc.local
In: command not found
doom@doom ~ $ sudo chown doom /dev/ttyS4
[sudo] password for doom:
doom@doom ~ $ 44west
44west: command not found
doom@doom ~ $ sudo chown doom /dev/ttyS4
doom@doom ~ $ sudo chown doom /dev/ttyS5
doom@doom ~ $ sudo chmod u+x /etc/rc.local
doom@doom ~ $ ln -s /dev/ttyS4 com4
ln: failed to create symbolic link com4: File exists
doom@doom ~ $ ln -s /dev/ttyS4 com2
doom@doom ~ $ ln -s /dev/ttyS4 com2
ln: failed to create symbolic link com2: File exists
doom@doom ~ $ ln -s /dev/ttyS4 com5
doom@doom ~ $ ln -s /dev/ttyS4 com4
ln: failed to create symbolic link com4: File exists
doom@doom ~ $
Now when i try to access a serial port using the Basic Stamp microcontroller editor , a windows program,
I keep getting port com1 port in use
or com2 port in use
etc etc all ports are in use ?????
HP is my choice these days, they just work and they support Linux through HPLIP but also because their color lasers actually do gloss black which is important for printing labels on heavy duty laser labels which are polyester base. Their printers are also smartphone friendly too.
Your first step of changing to the desired directory failed.
To fix things, start by deleting all those com# soft link files. You'll find them in your home directory. Hopefully, assuming nothing else is messed up, that will get you back to square one.
Next step is creating them in the correct place, namely the wine prefix.
... Oh, Smile, I just force deleted all my important files. ****! That's gonna hurt. Not much in the way of backups here. Anyone now how to undelete files on an ext4 volume?