Category Archives: Linux

Raspian remove pi user, add my own user

Adding a new user is easy, but when you login as that user you wont be able to do much. You will probably see no adapter found or no network device detected for your wifi, amongst many other issues with audio devices etc.

Here goes 🙂

from Terminal:

adduser myusername

Enter the password (twice) and just enter all the rest of the info unless you really want to fill it in.

now add myusername to the required groups

usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,gpio,i2c,spi myusername

phew, nearly there. Do make sure you are swapping myusername for your desired username!

now, still logged in as ‘pi’ user, open the raspian desktop start menu and select ‘Preferences’ -> ‘Raspberry Pi Configuration’ and in the System tab untick the ‘Auto login as user ‘pi’

now use the raspian start menu shutdown option and select ‘logout’. Login as mysername and open a terminal.

groups

make sure your user is a member of all the groups (adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,gpio,i2c,spi), especially sudo

once all good you now reboot and login as myusername then remove the ‘pi’ user using the terminal:

sudo deluser --remove-home pi

good to go. any issue please leave a coment and I will try to help. You can also use the contact form to send me a message.

Enjoy
BaDboD

Raspian, Raspberry Pi Vivaldi browser

so your getting
/usr/bin/vivaldi: error while loading shared libraries: libffmpeg.so: cannot open shared object file: no such file or directory

hmm, try

sudo cp /usr/lib/arm-linux-gnueabihf/libffmpeg_chrome.so.60 /lib/libffmpeg.so

While typing that line you might want to press TAB before the .60 in case your version is different?

ok, vivaldi should run now.

Regardless basically you want to copy the chromium provided libffmpeg_chrome.so.(versionnumberhere) to /lib/libffmpeg.so

Let me know if you have any problems and indeed how you fixed it if this did not work for you.

Enjoy
BaDboD

Creativerse Release on Linux Wine

As Creativerse is now out of early access and in full release a quick update.

To install Creativerse on Linux using Wine I am using Linux Mint 18 (Sarah) but any recent Ubuntu distro should work fine.

1) Install Wine. Preferably Wine Staging
2) Install corefonts using winetricks winetricks corefonts
3) Download and install windows Steam
4) Totally ignore steam not showing the store and go to your library
5) Install Creativerse
6) Play Creativerse.

The release shows much better performance then previous R versions. Using AMD R7-360 I can set all graphics options to max with silky smooth frame rates.

For fixing steam Store and best performance settings see my previous post HERE should you want a fully functional Steam in Linux using Wine.

Please do post any questions, success or fails in the comments.

BaDboD

Linux Mint 18, Ubuntu 16.04 AMD Radeon open source video problem, vainfo error

Getting poor video playback or video problems using Linux Mint 18 or Ubuntu 16.04 and the open source AMD Radeon driver?

You will probably notice your vainfo shows an error:

#vainfo
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/r600_drv_video.so
libva: va_openDriver() returns -1

install vdpau-va-driver
sudo apt install vdpau-va-driver

Now add LIBVA_DRIVER_NAME=vdpau to /etc/environment and reoot.

now all should be good and vainfo should show something like
#vainfo
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'vdpau'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/vdpau_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.39 (libva 1.7.0)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG4Simple : VAEntrypointVLD
VAProfileMPEG4AdvancedSimple : VAEntrypointVLD
VAProfileH264Baseline : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD

[update]This does not work with Radeon R7 360 and is not needed[/update]

Creativerse on Linux using Wine

This has took me a little while to get working due to missing fonts etc and Steam and Creativerse not agreeing about them.

Already installed under Wine but text/fonts missing from buttons and other areas in Creativerse using Wine on Linux? No problem.

While there is no official Linux support for Creativerse as yet, it does work well under Wine. So here goes.

install wine-staging, Instructions for various distros here. You could use the Wine supplied by your distro but for better performance I am using wine-staging.

Make sure your windows version is set to Windows XP in the applications tab of winecfg

wine-staging-tb1

install steam using the official windows installer from the Steam website.

install corefonts
winetricks corefonts

Run Steam with the following commands
cd ".wine/drive_c/Program Files (x86)/Steam"
wine Steam.exe -no-cef-sandbox -no-dwrite

change the path on the first line to match where your Wine install of steam is.

install creativerse

Play.

For better performance go to the staging tab in winecfg and enable the first two options.

wine-staging-tb

Notes
Creativerse occasionally bugs out during the initial loading screen. Just fire it up again and all good.
The windows version must be Windows XP for now or Steam wont run.
Don’t forget the corefonts as you won’t get any text on the buttons and messages etc in game.
The -no-cef-sandbox option prevents Steam crashing out due to a Chrome problem.
The -no-dwrite option is needed as without it you will get no text in Steam after installing corefonts.
As you might notice I am using a 64 bit Wine prefix. It works fine in a 32 bit prefix, some might suggest faster and more reliably. Just change the path in the Steam run commands to suit. I don’t really see much difference during testing so rather than messing about with prefixes etc, I stick with the defaults for my OS as long as it works and is playable.

Testing done with:
Linux Mint 18
AMD FX-6350
AMD Radeon HD 6670 / AMD Radeon R7 360
16 GiB DDR-3 1600 RAM Kingston Hyper-V (Blue)
Open Source drivers (out of the box Linux Mint provided)

Creativerse runs and looks great with visual settings at medium but my graphics card is ancient. You should be able to set everything to max on a newer R7 series card. (works fine with everything max on R7 360)

As usual, please use comments and I will try to answer any problems, also any useful hints ‘n tips you send in comments I will add/update this post with full credits.

Enjoy 🙂

[update]testing under newer R7 series video card (30/10/2016)[/update]