Amiga.org

The "Not Quite Amiga but still computer related category" => Alternative Operating Systems => Topic started by: Ral-Clan on April 05, 2014, 10:39:42 PM

Title: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 05, 2014, 10:39:42 PM
Hi, so I've got my Lubuntu Linux operating system all set up.  I've installed a few applications - and these appear in my "start" menu as icons.  Great.

However, I installed VICE, but no icon appears, and also, I can't find any way to start the emulator.  I don't know where to look for the executable.

I know it's installed because Lubuntu lists it as one of my installed apps - but damn if I don't know how to actually start the bloody thing.  They could have made it easier, methinks.

Anybody used this emulator in Linux?

PS: I've used WinVICE for years no problem.

Thanks.
Title: Re: VICE on Linux? How do you start it?
Post by: yakumo9275 on April 06, 2014, 02:38:18 AM
alt-f2 to get 'run' or something or command line and run one of the following;

x64, x64dtv, x64sc, x128, xvic, xplus4
Title: Re: VICE on Linux? How do you start it?
Post by: cgutjahr on April 06, 2014, 03:14:43 AM
Quote from: ral-clan;761999
However, I installed VICE, but no icon appears
It's been a while since I used Ubuntu, but I IIRC it used to put the VICE icons in some really strange section of the start menu - like "System monitors" or something like that. Check the entire menu for the x* entries, they should be there...

Hm, wait - I just downloaded the actual vice package (http://packages.ubuntu.com/lucid/lubuntu-desktop) from the Ubuntu repositories and checked the *.desktop files in there (little text files that tell your system what icon to use for an application what description to put into help bubbles and where to put it in the menu. The relevant line in x64.desktop says:

Categories=Application;X-Debian-Applications-Emulators;

Neither "Application" nor "X-Debian-Applications-Emulators" are standard categories, afaik - which means the package maintainer for VICE on ubuntu would have screwed up - i.e. it's a bug.

Fix:

open a terminal (or use alt-f2), type:

gksudo leafpad /usr/share/applications/x64.desktop

followed by enter. Replace "Application" in the line mentioned above  with "Game". Then save and exit. Do the same for the other executables (yakumo9275 listed them).

I'm not sure how/when Ubuntu rereads information from your modified *.desktop files, you might have to log off and on again for the changes to take effect.

Are you aware that you have to install the Commodore ROMs seperately? The can't be legally distributed with the emulator.

Quote
I don't know where to look for the executable.
You can run any installed program by simply typing its name in the console - or use the alt-f2 shortcut yakumo9275 mentioned.
Title: Re: VICE on Linux? How do you start it?
Post by: CritAnime on April 06, 2014, 04:51:13 AM
I wrote a guide on installing Vice. http://awesome.commodore.me/articles/critanime/installing-vice-on-linux/


The article:

So I got lots of requests from friends who migrated from Windows to  various Linux platforms to do a mini guide for getting Vice working on  their systems. I distributed this guide around my friends in hopes that  it would make life easier for them. Since then I have found that my  little guide has made it’s way around other people and even onto a  forum.

They persuaded me that it would be a really awesome idea to put the  tutorial/guide on the net in a more permanent place. So here it is, in  all it’s rough around the edges glory.
 

Suppose I should point out that I was never that good at writing manuals or guides when I did this at college. Oh well……
 This guide is version 1.1 and will probably stay at version 1.1 till  the end of time. Unless something crops up that needs changing.
 -So I thought I would update this guide a little. I realized that the  guide assumed that you were using Ubuntu/Mint. Obviously not everyone  would be using Ubuntu or Mint and this was my mistake. The principle  will work the same on almost every distribution of Linux. Just check  with your distributions handbook as to changes in package management.  For example in Sabayon it would be equo install and not apt-get install.  Also if your distribution allows root access then it might be best  switching to su instead of using sudo.
 

Also a reminder that with great power comes great responsibility. Do  not mess with su unless your comfortable with doing so as su won’t ask  for permission once commands are run.-

 OK so first thing you will want to do it open up a terminal window.When the window opens you will need to run this command.
 

sudo apt-get install vice
 

It will ask for your password before starting to search for the  needed package. Input your password, which will remain hidden while typing, and press enter. After finding the package it will also ask  for confirmation that it is OK to download and install the package. Type  Y and off it goes. Loads of text will appear in the terminal window.  This is perfectly fine though so not to worry.
 
Once this process has finished you will need to run the C64 emulator in the terminal. Why?
 
Well if you simply start the emulator through the menu then it won’t  do anything at all. This is because it is generating an error but it is  not showing you the error before exiting. Through terminal you are able  to scroll up and read the error. Making life easier as we know whats  going on.
 

So run this command.
 

x64
 

At this point your emulator might work depending on your Linux  distribution. If it does then congrats you don’t need to do anything  else. If not then read on.
 

Now note the version of Vice your working with. In this case, at time  of writing, it’s 2.3 but it could be several version ahead when you  read this. So note the version open your browser as we are off source  hunting. Go to this url www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/ (http://www.google.com/url?q=http%3A%2F%2Fwww.zimmers.net%2Fanonftp%2Fpub%2Fcbm%2Fcrossplatform%2Femulators%2FVICE%2F&sa=D&sntz=1&usg=AFQjCNG2u8-HQsf_GVNEJDf04a96yLDP3w)  and it will have lots of links to various tarballs but we are only  after one. And that, in this example, is the vice-2.3.tar.gz tarball.
 
**NOTE!!!! – Again check the version of Vice you are working  with as you will need the corresponding source. for example 2.2 will  need the vice-2.2.tar.gz, 2.3 will need the vice-2.3.tar.gz and so on.  If the wrong one is used then the emulator may not work or may become  unstable.**
 

Save the file to the Downloads file in your home directory. Because  next we will be unpacking it. Run these commands in terminal.
 

cd ~/Downloads
tar xfzv vice-2.3.tar.gz
 

The first command will change into the Downloads directory, the ‘~’  is a shortcut to your home directory and is the same as doing cd  /home//Downloads. The second command will unpack the  .tar.gz into the Downloads directory. So when you open the Downloads  directory in your file browser you will see a folder name Vice 2.3.
 
Now for the last stage. All we are going to do is copy the contents  of a folder within the freshly unpacked directory and copy it over to  the required places. So lets do our final command.
 
-If your distribution allows root use then this command can be done  by switching to root using su. Once in root simply don’t bother using  sudo.-
 

sudo cp -vR ~/Downloads/vice-2.3/data/* /usr/lib/vice
 

This command will do a recursive copy of all files and folders from  within the data folder over to /usr/lib/vice. Sudo is needed as the  target directory is owned by root and so needs root privileges in order  for files to be copied.
 
And that should be it. If your run the emulator in terminal or through  Applications > Other menu you should now have a working C64 emulator.  Along with all the other 8-bit Commodore emulators

As for the icons. I don't think they actually appear under a "games" tab. If I recall they come under something like "other" in a start style menu. On Ubuntu it just muddles everything together. But if you installed correctly you should be able to find them. Also WinVice will work on Linux using Wine. It works perfectly fine because I have used it. So that is always a option. Plus Wine is kind of considered a essential bit of software these days because of the amount of people moving from Windows to Linux. So installing Wine is a good idea.

To install wine either use the "app store" (can't remember the actual name) or in a terminal, which a icon does exist within the menu, simply do sudo apt-get install wine and bobs your uncle.

Actually while we are on with Commodore related stuff. Maybe you would consider getting FS-UAE. I like it because it is user friendly and I just can't gte my copy of Amiga Forever to work with Linux lol. To install do the follow in a terminal (you can copy paste this stuff in).

sudo apt-add-repository ppa:fengestad/stable && sudo apt-get update

sudo apt-get install fs-uae fs-uae-launcher fs-uae-arcade -y

Others might disagree but from what i have used it does the job. You just obviously need some legal kickstarts.
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 13, 2014, 05:19:00 PM
CritAnime,

Thanks for your help. I finally got a chance to play with VICE under linux today and followed your installation instructions, but I'm getting an error message:

XRandR: XRandR reports current display: 1920x1080@50
Loading system file `/usr/lib/vice/C64/kernal'.
Received signal 4.

Exiting...


I'm running VICE 2.3

It used to start with an error that said the ROM kernal could not be found.  I assume this was because there was no .vice folder containing them in my home directory containing the ROM files. So...I created one manually:

/home/brent/.vice/C64

and put the ROM files in there (basic, chargen, kernal).

Now I don't get the Kernal not found error.  Instead I get the "Received signal 4 error" as stated above.
Title: Re: VICE on Linux? How do you start it?
Post by: CritAnime on April 13, 2014, 11:04:15 PM
Hi.
 
Did you do this command in terminal after unpacking the source tar?
 
sudo cp -vR ~/Downloads/vice-2.3/data/* /usr/lib/vice

That should copy everything into the correct places without the need to put any roms in anywhere else.
 
I am also looking and I recall lubuntu using the lts release of Ubuntu as the base. If so then it might be a bugged version of Vice is still in the repository. If it still fails I will try something for you. However I am at work so I can't do very much.
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 14, 2014, 02:18:32 AM
I believe I did try that line, CriteAnime.  I followed your tutorial all the way through.
I typed it exactly as written - was I supposed to replace the asterisk or the "usr" part with my own user name instead?
Title: Re: VICE on Linux? How do you start it?
Post by: CritAnime on April 14, 2014, 04:10:26 AM
Ah no. If thats what you have done then that is gonna be the issue. the * is a wildcard catch everything. So basically you are telling the cp terminal command to make sure it grabs everything from the /data folder and copies it to /usr/lib/vice folder.

It looks like, due to formatting, that it is all one string. when really it is two seperate directories.

sudo cp -vR ~/Downloads/vice-2.3/data/* /usr/lib/vice

There is a space between /* and /usr/lib/vice. /usr is User System Resources and is where the largest portion of software data is stored. It is a root directory hence the need for sudo to run the command.

Just for reference the -vR options after cp is verbose and recursive.

Just looking and there seems to be a bug within the version of vice in certain repositories. Check this page (http://packages.ubuntu.com/precise/i386/vice/download) (http://packages.ubuntu.com/precise/amd64/vice/download) and see of the updated package helps.
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 14, 2014, 01:08:09 PM
Ah!  Okay, no, I did not replace * or usr with my own.  I typed it as you had written.  But I believe I did not see the space, and typed it as one continuous line of text.  I should have just cut a pasted - (I might have - I can't remember).

I will try it again.
Title: Re: VICE on Linux? How do you start it?
Post by: CritAnime on April 14, 2014, 01:43:30 PM
I am just in the process of installing xubuntu to try and see if I get the same issue.
Title: Re: VICE on Linux? How do you start it?
Post by: CritAnime on April 14, 2014, 02:58:10 PM
So I followed the install instructions and it installed on mine alright.

(http://i.imgur.com/TjTBguD.png)

It is Vice 2.3. Which version of Lubuntu are you using. Also this is what it should output through terminal.

Code: [Select]
XRandR: XRandR reports current display: 1920x1080@60
Loading system file `/usr/lib/vice/C64/kernal'.
C64MEM: Kernal rev #3.
Loading system file `/usr/lib/vice/C64/basic'.
Loading system file `/usr/lib/vice/C64/chargen'.
Loading system file `/usr/lib/vice/PRINTER/mps803'.
Palette: Loading palette `/usr/lib/vice/PRINTER/mps803.vpl'.
Loading system file `/usr/lib/vice/PRINTER/nl10-cbm'.
Palette: Loading palette `/usr/lib/vice/PRINTER/mps803.vpl'.
NL10: Printer driver initialized.
Loading system file `/usr/lib/vice/DRIVES/dos1541'.
Loading system file `/usr/lib/vice/DRIVES/d1541II'.
Loading system file `/usr/lib/vice/DRIVES/dos1570'.
Loading system file `/usr/lib/vice/DRIVES/dos1571'.
Loading system file `/usr/lib/vice/DRIVES/dos1581'.
Loading system file `/usr/lib/vice/DRIVES/dos2031'.
Loading system file `/usr/lib/vice/DRIVES/dos2040'.
Loading system file `/usr/lib/vice/DRIVES/dos3040'.
Loading system file `/usr/lib/vice/DRIVES/dos4040'.
Loading system file `/usr/lib/vice/DRIVES/dos1001'.
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 14, 2014, 05:52:51 PM
I believe I am using Lubuntu 13.10?  Saucy...

I just downloaded and installed the live disc from the main Lubuntu site last month.
Title: Re: VICE on Linux? How do you start it?
Post by: CritAnime on April 14, 2014, 06:09:51 PM
Hmm ok now I am confused because that is the same version that I am using just using s different window manager.....

OK lets try this.

sudo apt-get autoremove vice

This will remove Vice from the system. Next do this.

sudo rm -r /usr/lib/vice

This will do a recursive delete of the vice folder from the usr directory. Remove any files to do with vice you created within your home directory. But keep the vice files within downloads.

Now confirm vice is removed by doing x64. Once you have confirmed its removal redo the tutorial and copy and paste it all the blue commands into terminal. See if that works. I am looking up what a signal 4 is to make sure it's not a bug.
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 14, 2014, 09:28:09 PM
Okay, I will try this Wednesday night as that will be the first time I have a moment to sit down and do something like this.

Thanks very much for your instruction...
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 15, 2014, 02:25:54 AM
Did exactly as you said - uninstalled and re-installed VICE cutting and pasting the commands from your guide above directly to the terminal.  Same problem re-occurs.

Here's a cut and paste from my Terminal showing me running the x64 command.

Code: [Select]
brent@Brent-Lubuntu:~/Downloads$ x64
getting symbol guess_format failed!
*** VICE Version 2.3 ***
OS compiled for: Linux
GUI compiled for: GTK+
CPU compiled for: 80386
Compiler used: GCC-4.7.1
Current OS: not yet implemented
Current CPU: Intel Pentium 4/Pentium D/Pentium Extreme Edition/Celeron/Xeon/Xeon MP
 
Welcome to x64, the free portable C64 Emulator.
 
Current VICE team members:
D. Lem, A. Matthies, M. Pottendorfer, S. Trikaliotis, M. van den Heuvel,
C. Vogelgsang, F. Gennari, D. Kahlin, A. Lankila, Groepaz, I. Korb,
E. Smith, O. Seibert.
 
This is free software with ABSOLUTELY NO WARRANTY.
See the "About VICE" command for more info.
 
XRandR: XRandR reports current display: 1920x1080@50
Loading system file `/usr/lib/vice/C64/kernal'.
Received signal 4.

Exiting...

brent@Brent-Lubuntu:~/Downloads$

I don't know if this is important or not, but my main menu (start bar thingy) doesn't have an applications folder.  So I never see any VICE icons in my start bar.

Again, there doesn't seem to have been a .vice folder or sub-folders created in my "/home/brent" folder.  There simply aren't any vice related folders there.  Should these have been created during the installation?  Even showing hidden folders does not reveal a .vice folder or subfolders.
Title: Re: VICE on Linux? How do you start it?
Post by: TheMagicM on April 15, 2014, 03:28:38 AM
The error you got initially..

I did this...

wget http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/old/vice-1.5-roms.tar.gz

cp -a vice-1.5-roms/data/* /usr/lib/vice/


then it will work.  Its happened to me in Debian 7.


EDIT: Thats basically what CritAnime is saying to do.
Title: Re: VICE on Linux? How do you start it?
Post by: CritAnime on April 15, 2014, 10:27:59 AM
Quote from: ral-clan;762556
Did exactly as you said - uninstalled and re-installed VICE cutting and pasting the commands from your guide above directly to the terminal.  Same problem re-occurs.

Here's a cut and paste from my Terminal showing me running the x64 command.

Code: [Select]

brent@Brent-Lubuntu:~/Downloads$ x64
getting symbol guess_format failed!
*** VICE Version 2.3 ***
OS compiled for: Linux
GUI compiled for: GTK+
CPU compiled for: 80386
Compiler used: GCC-4.7.1
Current OS: not yet implemented
Current CPU: Intel Pentium 4/Pentium D/Pentium Extreme Edition/Celeron/Xeon/Xeon MP
 
Welcome to x64, the free portable C64 Emulator.
 
Current VICE team members:
D. Lem, A. Matthies, M. Pottendorfer, S. Trikaliotis, M. van den Heuvel,
C. Vogelgsang, F. Gennari, D. Kahlin, A. Lankila, Groepaz, I. Korb,
E. Smith, O. Seibert.
 
This is free software with ABSOLUTELY NO WARRANTY.
See the "About VICE" command for more info.
 
XRandR: XRandR reports current display: 1920x1080@50
Loading system file `/usr/lib/vice/C64/kernal'.
Received signal 4.

Exiting...

brent@Brent-Lubuntu:~/Downloads$


I don't know if this is important or not, but my main menu (start bar thingy) doesn't have an applications folder.  So I never see any VICE icons in my start bar.

Again, there doesn't seem to have been a .vice folder or sub-folders created in my "/home/brent" folder.  There simply aren't any vice related folders there.  Should these have been created during the installation?  Even showing hidden folders does not reveal a .vice folder or subfolders.


There won't be a .vice folder in your Home (/home). All the stuff for .vice resides in usr (/usr) which is at root (/). The only time you should see anything to do with Vice in there is if you have saved something from Vice. I am just checking now to see what this Signal 4 is because I have a feeling it might be a termination signal for something.

Quote from: TheMagicM;762557
The error you got initially..

I did this...

wget http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/old/vice-1.5-roms.tar.gz

cp -a vice-1.5-roms/data/* /usr/lib/vice/


then it will work.  Its happened to me in Debian 7.


EDIT: Thats basically what CritAnime is saying to do.


I am just checking to see if it is not a general bug somewhere within the release of Lubuntu. But if the 1.5 works then that is a possible workaround. I am just checking now.
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 15, 2014, 11:49:46 AM
Quote from: TheMagicM;762557
The error you got initially..

I did this...

wget http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/old/vice-1.5-roms.tar.gz

cp -a vice-1.5-roms/data/* /usr/lib/vice/


then it will work.  Its happened to me in Debian 7.


EDIT: Thats basically what CritAnime is saying to do.


I will be able to try this Wednesday, but what does it do?  Use older ROMs?
Title: Re: VICE on Linux? How do you start it?
Post by: TheMagicM on April 15, 2014, 01:48:09 PM
Quote from: ral-clan;762574
I will be able to try this Wednesday, but what does it do?  Use older ROMs?

Those are the roms I used.  I dont know the actual differences but...honestly..its  a C64..I would think those are just plain stock roms.


On a side note, I've had VICE installed on other distros and moved to different laptops..  The last incarnation, I basically just have a directory with VICE in it, no need to install anything I dont think.  You just run it out of there.  I'll check..and if thats the case, I can archive it all up and post up a download link.   I'll check when I fly back from Chicago today.


EDIT:  I just logged into my server.. what I have been running in the past is WinVICE 1.6 under Wine and it worked great.  I can tar that up for you.  Also, I'll download LUbuntu and install it in virtualbox to see if I can recreate what you're doing...that'll be later tonight.   There should be no reason we cant get this knocked out.
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 15, 2014, 05:04:48 PM
Quote from: TheMagicM;762577
Those are the roms I used.  I dont know the actual differences but...honestly..its  a C64..I would think those are just plain stock roms.


On a side note, I've had VICE installed on other distros and moved to different laptops..  The last incarnation, I basically just have a directory with VICE in it, no need to install anything I dont think.  You just run it out of there.  I'll check..and if thats the case, I can archive it all up and post up a download link.   I'll check when I fly back from Chicago today.

Well, that's how I ran it on my Windows XP partition - no need to install anything - just unpack and go.

I would like to use v2.3 if possible - as there have been some great leaps made in VICE in the past few revisions (I love the scanlines and TV blurring filters that make it feel real - plus the 1541 drive sounds).  But if your version 1.5 will run straight from a folder without installing than it wouldn't hurt to try, I suppose.  I could leave my 2.3 installation intact until I figure out what is the problem with it.
Title: Re: VICE on Linux? How do you start it?
Post by: CritAnime on April 15, 2014, 05:06:00 PM
I have downloaded and ran lubuntu under virtual box and it still installs. So I am wondering if something has gone wrong with the install somewhere. But I did notice that the lubuntu menu system does, in fact, not show vice in the menu tree.

Like themagicm has stated worst case scenario is just to install wine then grab the windows version of vice. It works perfectly you just don't get that "native" feel from it. But to be honest I like that wine now works far better than it ever did.

I will continue working on a solution as to why your lubuntu version doesn't work. It's nagging at me now lol.
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 16, 2014, 02:50:07 AM
Oh, CritAnime, so you're saying that VICE installed perfectly fine for you on Lubuntu?

Interesting...I wonder why it won't install for me.  

The first time I tried to install VICE was through the Lubuntu Software Center (available from the main menu).  That is sort of an automated installation.  It didn't work that time.  Perhaps it did something that screwed up later installations.

I agree....it is a nagging problem - I'd rather install the native version than run it under Wine.
Title: Re: VICE on Linux? How do you start it?
Post by: cgutjahr on April 16, 2014, 02:52:18 AM
Quote from: ral-clan;762556

Here's a cut and paste from my Terminal showing me running the x64 command.

My guess (and it's really just a guess) is that there's some sort of problem with your ancient CPU and the way the binary has been compiled - I remember some Ubuntu users with older systems having problems trying to run VICE.

You can find several versions of VICE here: http://pkgs.org/download/vice
(use the *_386.deb packages for the different Debian distributions, they've got VICE 2.2, 2.3 and 2.4), try them out one by one.

IIRC, Ubuntu offers to install *.debs while downloading, or when doubleclicking them in the file manager. If not, open console and type "sudo dpkg -i " to install a downloaded deb and "sudo apt-get remove vice" to uninstall it again.

If that doesn't work, you'd have to compile your own version of VICE. It's not as scary as it sounds, and still better than using Wine.

Quote

my main menu (start bar thingy) doesn't have an applications folder.

AFAIK, no menu on any Linux desktop has an applications folder, which is why this particular choice is very stupid anyway - VICE does seem to have a bunch of problems...

But this is purely a desktop thing, it doesn't affect running VICE from the console - you can fix it later on.

Quote

Well, that's how I ran it on my Windows XP partition - no need to install anything - just unpack and go.

That's because the people creating the Windows distribution don't mind distributing the ROMs without a license - they know nobody's ever going to complain. The open source community on the other hand is all about respecting other people's rights, so just bundling stuff you're not entitled to bundle is a big no-go.
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 17, 2014, 12:29:47 PM
Quote from: TheMagicM;762557
The error you got initially..

I did this...

wget http://www.zimmers.net/anonftp/pub/cbm/crossplatform/emulators/VICE/old/vice-1.5-roms.tar.gz

cp -a vice-1.5-roms/data/* /usr/lib/vice/

then it will work.  Its happened to me in Debian 7.

EDIT: Thats basically what CritAnime is saying to do.

Tried to do this and got this result (you can scroll the code window to see it all):

Code: [Select]
brent@Brent-Lubuntu:~/Downloads$ cp -a vice-1.5-roms/data/* /usr/lib/vice/
cp: cannot create regular file ‘/usr/lib/vice/C128/chargen’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/C128/z80bios’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/C128/kernal’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/C128/basic’: Permission denied
cp: preserving times for ‘/usr/lib/vice/C128’: Operation not permitted
cp: cannot create regular file ‘/usr/lib/vice/C64/chargen’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/C64/kernal’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/C64/basic’: Permission denied
cp: preserving times for ‘/usr/lib/vice/C64’: Operation not permitted
cp: cannot create regular file ‘/usr/lib/vice/CBM-II/kernal’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/CBM-II/basic.256’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/CBM-II/chargen.600’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/CBM-II/basic.128’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/CBM-II/chargen.700’: Permission denied
cp: preserving times for ‘/usr/lib/vice/CBM-II’: Operation not permitted
cp: cannot create regular file ‘/usr/lib/vice/DRIVES/dos2040’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/DRIVES/dos4040’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/DRIVES/dos1571’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/DRIVES/dos3040’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/DRIVES/dos1581’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/DRIVES/d1541II’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/DRIVES/dos2031’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/DRIVES/dos1001’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/DRIVES/dos1541’: Permission denied
cp: preserving times for ‘/usr/lib/vice/DRIVES’: Operation not permitted
cp: cannot create regular file ‘/usr/lib/vice/PET/chargen’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/kernal4’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/edit2g’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/chargen.de’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/basic1’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/edit4b40’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/edit4g40’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/edit2b’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/edit4b80’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/basic2’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/edit1g’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/kernal2’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/kernal1’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/PET/basic4’: Permission denied
cp: preserving times for ‘/usr/lib/vice/PET’: Operation not permitted
cp: cannot create regular file ‘/usr/lib/vice/VIC20/chargen’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/VIC20/kernal’: Permission denied
cp: cannot create regular file ‘/usr/lib/vice/VIC20/basic’: Permission denied
cp: preserving times for ‘/usr/lib/vice/VIC20’: Operation not permitted
brent@Brent-Lubuntu:~/Downloads$


I ran the above over top of my existing VICE 2.3 installation (I did not remove VICE).
Title: Re: VICE on Linux? How do you start it?
Post by: CritAnime on April 17, 2014, 03:25:04 PM
Are you running that with sudo at the front?
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 17, 2014, 05:47:39 PM
Quote from: CritAnime;762739
Are you running that with sudo at the front?

No, should it have sudo at the front?  TheMagicM's message didn't mention using sudo, and I'm new to Linux so I just copy and pasted the commands from his message:

Quote
The error you got initially..

I did this...

wget http://www.zimmers.net/anonftp/pub/c....5-roms.tar.gz

cp -a vice-1.5-roms/data/* /usr/lib/vice/
Title: Re: VICE on Linux? How do you start it?
Post by: Mr_Bumpy on April 17, 2014, 05:57:59 PM
Yes, you need to preface the cp command with sudo. Any time you are copying files to a location that is not in your home folder, you need to use sudo. Unless it is an external drive mounted in /media, for example. When copying files within or to your home folder, however, you don't want to use sudo, because you want those files to be associated with your user, not root (administrator).
Title: Re: VICE on Linux? How do you start it?
Post by: TheMagicM on April 18, 2014, 02:54:59 PM
ral-clan:

Sorry..got swamped at work and havent had time to do anything.  Where are you at after putting sudo infront of the cp command?
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 18, 2014, 04:18:28 PM
Hi guys,

Lots of progress....

I upgraded Lubuntu from 13.10 to the new 14.04 and now VICE works!

However, it is giving me a sound error.  Something about being unable to initialize sound.  This is probably due to the fact that I am running ALSA with my semi-pro music recording audio card.

I will have to investigate and report back here.

So it seems to have been a problem with 13.10.
Title: Re: VICE on Linux? How do you start it?
Post by: Ral-Clan on April 18, 2014, 05:19:43 PM
Okay, I've played with VICE in Linux now for a bit.

It starts and displays this error message:

Sound: initialization failed for device `pulse'.

I wasn't getting any sound, but then figured out how to switch sound over from PULSE to ALSA and now it seems to work.

I do notice that the VICE emulation in Linux seems to require more CPU than WinVICE.  The VIC-20 emulation is very choppy and even in C64 emulation, I ocassionally see the following message appear in the terminal:

Warning! Your Machine is too slow for current settings!

If I try to run 1/1 frame-rate (so 60fps for an NTSC VIC-20) the emulator can't keep up.
That's kind of disappointing.  I would have througt a 2.8Ghz Pentium 4 was more than enough to do VIC-20 emulation - espeically under WinVICE it runs well, even on my 1.8Ghz P4 laptop.
VIC-20 emulation is even choppier and PET emulation simply crawls.

Making the emulator's window larger or going full screen makes performance worse.

NOTE: I've noticed when I shut off "enable hardware scaling" under settings - the CPU usage drops by about 40%.  But then I can't get true fullscreen modes anymore, only small windowed modes.

Thanks.