Migrating from Owncloud to Nextcloud on Fedora 24

Installing nextcloud on fedora is not trivial as you first need to download the code, install some dependencies and compile it.

Without installing the dependencies you would get the following error messages:

  • No CMAKE_CXX_COMPILER could be found.
  • Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
    system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
    OPENSSL_INCLUDE_DIR) (Required is at least version “1.0.0”)
  • No package ‘sqlite3’ found. Could NOT find SQLite3 (missing: SQLITE3_LIBRARIES SQLITE3_INCLUDE_DIRS)
    (Required is at least version “3.8.0”)
  • Could NOT find Qt4 (missing: QT_QTWEBKIT_INCLUDE_DIR QT_QTWEBKIT_LIBRARY) (found suitable version “4.8.7”, minimum required is “4.7.0”)
    Qt QTWEBKIT library not found.
  • Could NOT find QtKeychain (missing: QTKEYCHAIN_LIBRARY

Before you can start it you need to add the following line in ~/.bashrc and restart the system

otherwise you get the error nextcloud: error while loading shared libraries: libnextcloudsync.so.0: cannot open shared object file: No such file or directory

Also don’t forget to uninstall the old client:

On the first start the Nextcloud Connection Wizard opens. You can now enter the Server Adress, Username and Password. Then you need to select the folders that you want to sync and as local folder you chose the same folder as you configured with owncloud. If you do this, the option “Keep local data” appears and if you check it, the data will be taken over.

Find out what library is missing Fedora 22

Sometimes some libraries are missing. This leads to the following error message:

It will only display the first missing library. So first you can use the following command to identify them:

This might lead to the following output, where you can see a list of all missing libraries:

The next step is finding out which library you need to install (32-Bit libraries in /usr/lib, 64-Bit libraries in /usr/lib64):

This will output something like:

If you want to install it you can omit the version number and the .fc22:

Run IDA Disassembler on x64 Fedora 22

When executing idaq I got the following error message:

This error appeared because I lacked some libraries (32-Bit version). To fix it I had to run the following commands:

Using SSH to copy files between systems

Copy something from this system to some other system:

Copy something from some system to some other system:

Copy something from another system to this system:

Source: Stackoverflow: how-to-download-a-file-from-server-using-ssh

Backup a DVD

The following command can be used to backup/rip a DVD. All files are decrypted and stored in a folder (with the name of the DVD).

If you want to create an iso file from those decrypted files you can use the following command:

Converting txt to doc

In order to convert textfiles to word documents you can use the following command

or if you want to convert multiple files:

ArchLinux doesn’t boot anymore after updating to Gnome 3.8 – Intel Graphics

Yesterday I updated my system to Gnome 3.8. Unfortunately I was not able to boot it anymore. I would only see the boot manager but then It would just hang with a black screen. Switching to a console (Ctrl + Alt + F2) didn’t work.

First of all you need to be able to work with your system. The easiest way to achieve that is starting it with runlevel 1.

Press the power button and wait until you see your bootmanager. For Gnome you can press "e". You are then in an editor where you can see what exactly gets executed if you boot the entry. To start the kernel with runlevel 1 you just need to add a "1" at the end of the line which starts with "linux".

After you press Ctrl + X your kernel boots in maintanance mode. This is only temporary. If you shut the system down and start it again it will start the same way as always. You can login with the root account.

Now cd into the directory “/etc/X11/xorg.conf.d”. You need to create a file 20-intel.conf with the following content:

This does disable the hardware acceleration. After that I was able to boot my system again.

But be aware that the performance is degraded! This is only a temporary fix until a new version of the driver/gnome is released which doesn’t have that problem anymore. So if new updates arrive try to delete the file from time to time and check if it does now work

Useful Linux Commands

Using mv to prefix files

The following command prefixes all files with the prefix 2013-10-22_. This is useful for small rename operations

# Files per Extension

Recursively lists all file extensions in the current folder and below, including a count how many files there are per extension.

Clean Commandline History

Count the number of files and folders (non recursive)

Count the number of files (recursively)

find . -type f | wc -l