Welcome, Guest. Please login or register.

Author Topic: VICE on Linux? How do you start it?  (Read 7658 times)

Description:

0 Members and 2 Guests are viewing this topic.

Offline CritAnime

  • Previous Life Time Member
  • Hero Member
  • *****
  • Join Date: Jun 2011
  • Posts: 1143
    • Show all replies
Re: VICE on Linux? How do you start it?
« 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/  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.
« Last Edit: April 06, 2014, 05:20:06 AM by CritAnime »
 

Offline CritAnime

  • Previous Life Time Member
  • Hero Member
  • *****
  • Join Date: Jun 2011
  • Posts: 1143
    • Show all replies
Re: VICE on Linux? How do you start it?
« Reply #1 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.

Offline CritAnime

  • Previous Life Time Member
  • Hero Member
  • *****
  • Join Date: Jun 2011
  • Posts: 1143
    • Show all replies
Re: VICE on Linux? How do you start it?
« Reply #2 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) and see of the updated package helps.
« Last Edit: April 14, 2014, 04:24:54 AM by CritAnime »
 

Offline CritAnime

  • Previous Life Time Member
  • Hero Member
  • *****
  • Join Date: Jun 2011
  • Posts: 1143
    • Show all replies
Re: VICE on Linux? How do you start it?
« Reply #3 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.

Offline CritAnime

  • Previous Life Time Member
  • Hero Member
  • *****
  • Join Date: Jun 2011
  • Posts: 1143
    • Show all replies
Re: VICE on Linux? How do you start it?
« Reply #4 on: April 14, 2014, 02:58:10 PM »
So I followed the install instructions and it installed on mine alright.



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'.
« Last Edit: April 14, 2014, 04:58:47 PM by CritAnime »
 

Offline CritAnime

  • Previous Life Time Member
  • Hero Member
  • *****
  • Join Date: Jun 2011
  • Posts: 1143
    • Show all replies
Re: VICE on Linux? How do you start it?
« Reply #5 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.

Offline CritAnime

  • Previous Life Time Member
  • Hero Member
  • *****
  • Join Date: Jun 2011
  • Posts: 1143
    • Show all replies
Re: VICE on Linux? How do you start it?
« Reply #6 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.

Offline CritAnime

  • Previous Life Time Member
  • Hero Member
  • *****
  • Join Date: Jun 2011
  • Posts: 1143
    • Show all replies
Re: VICE on Linux? How do you start it?
« Reply #7 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.

Offline CritAnime

  • Previous Life Time Member
  • Hero Member
  • *****
  • Join Date: Jun 2011
  • Posts: 1143
    • Show all replies
Re: VICE on Linux? How do you start it?
« Reply #8 on: April 17, 2014, 03:25:04 PM »
Are you running that with sudo at the front?