Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I purchased a roccat keyboard and mouse and both of the Linux drvers are tar.bz2.
I was able to extract the tar.bz2 in the terminal and see all the files but when I tried to follow the "Install" file it was confusing.
The install file isn't clear to me as this is my first go at a tar.gz--
Code:
First make sure the dependencies are met
* If you have an older kernel you may additionally need my kmod-roccat package.
If not done already, download it from
http://sourceforge.net/projects/roccat/
and install it according to the contained instructions
* You will need gcc, cmake and some development packages.
Please mind that the packages have distribution dependent names. Fedora,
Ubuntu and openSuse are showcased here:
Fedora Ubuntu openSuse
libcanberra-devel libcanberra-dev libcanberra-devel
dbus-glib-devel libdbus-glib-1-dev dbus-1-glib-devel
gtk2-devel libgtk2.0-dev gtk2-devel
libgudev1-devel libgudev-1.0-dev libgudev-1_0-devel
libnotify-devel libnotify-dev libnotify-devel
libusb1-devel libusb-1.0-0-dev libusb-1_0-devel
Please inquire your distributions package management system for installing
these.
* Compilation and Installation
cd into base directory of archive and type
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
$ make
$ sudo make install
* optional cmake entries you can set with -D:
* LIBDIR If cmake doesn't find the right install directory for libraries,
you can set it manually. For 64bit systems that's normally $PREFIX/lib64
but Ubuntu uses $PREFIX/lib/x86_64-linux-gnu/
* UDEVDIR If cmake doesn't find the right install directory for udev rules,
you can set it manually. Normally it's /lib/udev/rules.d but Fedora 17
started to merge /lib into /usr/lib completely.
* UINPUTDIR If cmake doesn't find the right location of the uinput device,
you can set it manually. Autodetection needs module uinput loaded.
Normally it's in /dev or /dev/input.
* DEVICES If omitted, tools for all devices are compiled and installed.
You can give a semicolon separated list with as many supported devices
as you want e.g. -DDEVICES="isku;koneplus".
* It is strongly recommended to install everything in /usr instead of the default
directory /usr/local.
* Last steps
* Make the libraries known to the dynamic linker
Just call
$ sudo /sbin/ldconfig
after installation.
* Refresh the icon cache
Call the command
$ sudo touch --no-create /usr/share/icons/hicolor
where /usr has to be substituted with your install prefix.
This has to be done only for the first time.
* To use the device features as normal user you have to add yourself to a
group called roccat.
$ sudo groupadd roccat
$ sudo usermod -a -G roccat $USER
Do a logout/login to apply your new ownership
* Some devices (Arvo, Kone) need uinput for some features. To use it as normal
user you can either create an extra group like uinput-users and add yourself
to this group (as described above) or reuse group roccat.
Create a file like /etc/udev/rules.d/90-uinput.rules containing the line
KERNEL=="uinput", GROUP="uinput-users", MODE="0660"
and replace the group name with your choice.
* To be on the save side you can update the udev rules
$ sudo udevadm control --reload-rules
* Now replug your device and everything should work as expected.
* Using the software under GNOME
* The GUIs can be found in the menu System/Settings
* The eventhandler is autostarted via a .desktop file in /etc/xdg/autostart
* Building an rpm
The package contains the file roccat-tools.spec that fits at least fedora which
you can use.
The easiest way is to write
$ rpmbuild -ta --clean roccat-tools-x.x.x.tar.bz2
After reading the INSTALL file I'm thinking I have pkg's to go get? Is that right?
Where the # sign is after the word "Downloads#" is that where I type ./cofigure?
How do I know when to type 'make' and 'make install?
Last edited by Ztcoracat; 09-09-2013 at 12:56 AM.
Reason: Title and details
root@sifu-MS-7845:/home/sifu/Downloads# cmake
The program 'cmake' is currently not installed. You can install it by typing:
apt-get install cmake
"cmake" wasn't installed so I installed it-
Code:
root@sifu-MS-7845:/home/sifu/Downloads# make
make: *** No targets specified and no makefile found. Stop.
root@sifu-MS-7845:/home/sifu/Downloads# make install
make: *** No rule to make target `install'. Stop.
root@sifu-MS-7845:/home/sifu/Downloads# apt-get install roccat-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package roccat-tools
root@sifu-MS-7845:/home/sifu/Downloads# apt-get install roccat-tools-0.21.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package roccat-tools-0.21.0
E: Couldn't find any package by regex 'roccat-tools-0.21.0'
root@sifu-MS-7845:/home/sifu/Downloads# apt-get install roccat-tools-0.21.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package roccat-tools-0.21.0
E: Couldn't find any package by regex 'roccat-tools-0.21.0'
root@sifu-MS-7845:/home/sifu/Downloads#
I do not really understand what you have done (and how). Here are the steps required:
Code:
* Compilation and Installation
cd into base directory of archive and type
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
$ make
$ sudo make install
I untared the roccat tar ball.
After all the files filled the terminal I typed "cmake"
cmake wasn't installed so I installed it-
I tried 'make' but that didn't work-
I'll start over and post exactly what I have done in the terminal so you can see-
Generators
The following generators are available on this platform:
Unix Makefiles = Generates standard UNIX makefiles.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
Eclipse CDT4 - Unix Makefiles
= Generates Eclipse CDT 4.0 project files.
KDevelop3 = Generates KDevelop 3 project files.
KDevelop3 - Unix Makefiles = Generates KDevelop 3 project files.
sifu@sifu-MS-7845:~/Downloads$ mkdir build
sifu@sifu-MS-7845:~/Downloads$ cd build
sifu@sifu-MS-7845:~/Downloads/build$ cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
CMake Error: The source directory "/home/sifu/Downloads" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
sifu@sifu-MS-7845:~/Downloads/build$ make
make: *** No targets specified and no makefile found. Stop.
sifu@sifu-MS-7845:~/Downloads/build$ sudo make install
make: *** No rule to make target `install'. Stop.
sifu@sifu-MS-7845:~/Downloads/build$
so cmake failed. You will not be able to continue without successful cmake run.
remove .. from the end of the line, it is not required and run cmake again.
so cmake failed. You will not be able to continue without successful cmake run.
remove .. from the end of the line, it is not required and run cmake again.
I'll try running cmake again. If that fails;
Should I go get a fresh download 'roccat-tools tar.bz'?
Generators
The following generators are available on this platform:
Unix Makefiles = Generates standard UNIX makefiles.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
Eclipse CDT4 - Unix Makefiles
= Generates Eclipse CDT 4.0 project files.
KDevelop3 = Generates KDevelop 3 project files.
KDevelop3 - Unix Makefiles = Generates KDevelop 3 project files.
root@sifu-MS-7845:/home/sifu/Downloads# mkdir build
root@sifu-MS-7845:/home/sifu/Downloads# cd build
root@sifu-MS-7845:/home/sifu/Downloads/build# cmake -DCMAKE_INSTALL_PREFIX="/usr"
CMake Error: The source directory "/home/sifu/Downloads/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
root@sifu-MS-7845:/home/sifu/Downloads/build# make
make: *** No targets specified and no makefile found. Stop.
root@sifu-MS-7845:/home/sifu/Downloads/build# sudo make install
make: *** No rule to make target `install'. Stop.
root@sifu-MS-7845:/home/sifu/Downloads/build#
you have got an error again, CMake Error: ....
and also you missed an important point: cd into base directory of archive and type (you should not start in your download dir)
The terminal and the directory that I think you mean I should be in-See screenshot-
The mouse pointer is pointing right to the CMakeLists.txt but the terminal insist's that it doesn't contain it--
So you was able to unpack the downloaded source? how did you make it? You need to cd into that directory. you ought to start it over again and show what you have made step by step.
(good night)
probably you need to cd into /home/sifu/Downloads/roccat-tools-0.21.0
So you was able to unpack the downloaded source? how did you make it? You need to cd into that directory. you ought to start it over again and show what you have made step by step.
(good night)
probably you need to cd into /home/sifu/Downloads/roccat-tools-0.21.0
I honestly do not know how I was able to 'make' it-
I'll start over. So I'll go to the roccat website and download a fresh tar.bz:-
So do this?
Code:
cd roccat-tools-0.21.0
Or cd that whole line..../home/sifu/Downloads/roccat....etc ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.