Significant…
Cheers.
Andrzej
Here is how I do it.
pacman -S dkms virtualbox virtualbox-guest-iso virtualbox-host-dkms
gpasswd -a yourlinuxuser vboxusers
Don’t forget to replace yourlinuxuser with your actual non-root system login.
systemctl enable dkms
systemctl start dkms
reboot
That’s it – You are done. Upon reboot dkms will compile and modprobe the VirtualBox modules and the application will be ready to use. IF the compilation of the modules fails You probably don’t have kernel headers installed that correspond with Your version of the kernel. Fix it by installing appropriate -headers package (ie. linux- linux-pae- linux-ck- linux-lts-) and reboot.
(Optional) USB devices in VirtualBox:
Start VirtualBox
Go to Help > About VirtualBox
Check the version. In my case its: 4.3.14_OSE r95030
Open the download page in the browser: http://download.virtualbox.org/virtualbox/
Search for Your version ie. 4.3.14: (http://download.virtualbox.org/virtualbox/4.3.14/)
Search for the file called Oracle VM VirtualBox Extension Pack that corresponds to Your VirtualBox version ie. Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack (http://download.virtualbox.org/virtualbox/4.3.14/Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack)
Save the file to the HDD.
In VirtualBox go to File > Preferences > Extensions
If You have a previous version of extensions remove it.
If there is no extension pack installed add one. Point the wizard to the extension pack file that You’ve just downloaded.
Sometimes the wizard will ask for the root’s password but the “pop up window” with the authorization request will hide behind the main VirtualBox window. Search for the Key icon in the taskbar and click on it or ALT + TAB thru the windows until the password request window is displayed.
Another thing that You may get confused by is the license accepting part. You need to scroll all the way down in the license window before the “I agree” button gets activated.
If You did everything correctly You will be able to add USB device in Your virtual machine.
Cheers.
Andrzej
Hi folks.
I have a bunch of folders on my hard drive containing a DVD videos. Family videos from Christmas, Weddings, Baptisms and other occasions recorded with my Camcorder in DVD format and then backed up to my HDD. I could rip them into .avi files just to make it easier to play them but then I am risking loosing the quality. It would be pointless really – recording in DVD quality just to encode it to avi… If not the waste of quality then definitely a waste of time and cpu power / electric energy.
Anyway as You probably know DVD video content is a whole structure. It’s not just one file so it’s not as easy as going into the file’s folder and clicking on it to make it playable. There are .vob files inside that could be played one after another… sure but it’s a waste of time again plus each DVD has at least 2 – 4 of those .vob files you would have to click on each of them to watch the entire video and sometimes the rewinding or fast forwarding won’t work when You do that… Nah… That won’t work for me.
When You right click on something in KDE4 You get right click menu and one of the items in this menu is ‘Actions’. I have decided to add ‘Play content of this folder as DVD video in Kaffeine.’ entry to this menu in my Arch Linux. It took me a while but I have succeeded. Here is how:
First make sure You have Kaffeine installed. After You install Kaffeine open terminal and run those commands:
mkdir -p ~/.kde4/share/kde4/services/ServiceMenus/
and then:
kwrite ~/.kde4/share/kde4/services/ServiceMenus/playwithkaffeine.desktop
and then paste this into the text editor:
[Desktop Entry]
Type=Service
Version=1.0
Actions=PlayWithKaffeine;
Name=Play content of this folder as DVD video in Kaffeine.
GenericName=Play content of this folder as DVD video in Kaffeine.
ServiceTypes=ServiceTypes=KonqPopupMenu/Plugin
X-KDE-ServiceTypes=KonqPopupMenu/Plugin,inode/directory
[Desktop Action PlayWithKaffeine]
Name=Play folder content as DVD video in Kaffeine.
Exec=kaffeine 'dvd:%U'
Icon=/usr/share/icons/hicolor/16x16/apps/kaffeine.png
Now save the file. There… You’re all done…
Right click on any folder containing DVD structure and choose Actions > Play content of this folder as DVD video in Kaffeine from the menu. Kaffeine will start and will start playing DVD from the folder that You have chosen.
Sometimes You will have to log out and then log back in for the menu item to appear for the first time.
Hope someone will find it useful.
Regards.
Andrzej
Today I have fired up pacman and did the full upgrade as usual. Afterwards I was met with a nasty surprise:
[Wed Jul 23 15:19:05.829403 2014] [proxy_fcgi:error] [pid 6448:tid 3026172736] [client 83.71.40.25:60520] AH01071: Got error ‘PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/www/html/RSS_Feed_Reader/backend.php) is not within the allowed path(s): (:/etc/webapps/roundcubemail:/usr/share/webapps/roundcubemail:/var/log/roundcubemail:/var/cache/roundcubemail) in Unknown on line 0nPHP message: PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0nUnable to open primary script: /var/www/html/RSS_Feed_Reader/backend.php (Permission denied)n’, referer: https://andrzejl.eu:30303/RSS_Feed_Reader/
After a longer investigation I have found the culprit… Newer package installs file /etc/php/conf.d/roundcubemail.ini
[root@icsserver andrzejl]# cat /etc/php/conf.d/roundcubemail.ini
open_basedir = :/etc/webapps/roundcubemail:/usr/share/webapps/roundcubemail:/var/log/roundcubemail:/var/cache/roundcubemail
[root@icsserver andrzejl]#
which does not exists in the previous version…
[root@icsserver andrzejl]# cat /etc/php/conf.d/roundcubemail.ini
cat: /etc/php/conf.d/roundcubemail.ini: No such file or directory
[root@icsserver andrzejl]#
So basically what I had to do to get it going was:
su -c "rm /etc/php/conf.d/roundcubemail.ini && systemctl restart httpd && systemctl restart php-fpm"
After that everything worked as expected.
Cheers.
Andrzej
I have noticed that upon clicking on a link in a Skype’s IM chat nothing happens. Decided to investigate. Figured out that there is a error message:
QWidget: Cannot create a QWidget when no GUI is being used
/usr/bin/xdg-open: line 513: 3718 Aborted kde-open –noninteractive “$1”
Decided to mess around with it.
The solution:
Open file /usr/bin/xdg-open as root.
su -c "mcedit /usr/bin/xdg-open:515"
Edit the line from:
kde-open --noninteractive "$1"
so it looks like this:
kde-open "$1"
Save the file (F2) close the mcedit (F10).
Click on the link in the Skype’s IM now. It should open the content of the link in a new tab in Your default browser.
Cheers.
Andrzej
Yes ladies and gentleman… AndrzejL bought himself a domain… from ovh and then he got himself a nice SSL certificate from the StartSSL… and then he worked very hard to change all the configs / database entries on his server so they would match the new domain and then he worked bit harder to properly implement the new certificate and then he worked even harder to setup a PERFECT https config… and the result? Let me just say that success has a sweet taste… I didn’t even knew one could get score higher then A on SSLLabs…
https://www.ssllabs.com/ssltest/analyze.html?d=andrzejl.eu
Cheers.
Andrzej
I always get annoyed when “Enqueue in SMPlayer.” option pushes itself in as a default setting for video playing… Today it aggravated me again and I said “Nuff is nuff!“…
First gain root:
su
Then update the list of files:
updatedb
You need mlocate package installed for this to work.
Then locate the smplayer_enqueue
locate smplayer_enqueue
It should spit out:
[root@wishmasus andrzejl]# locate smplayer_enqueue
/usr/share/applications/smplayer_enqueue.desktop
[root@wishmasus andrzejl]#
Remove that file:
rm /usr/share/applications/smplayer_enqueue.desktop
And then drop root:
exit
And update your mime types:
update-mime-database -V ~/.local/share/mime/
That should work at least till next Smplayer upgrade…
Cheers.
This is a very loose translation of this article by SloniuPL.
Since the Systemd 197 hit the Arch Linux repositories the network interfaces names have changed. They are no longer called eth0 or wlan1 but something like enp0s10 (if its a LAN card) or wlp5s0 (for WLAN devices). I don’t care most of the time but sometimes I need them to be more meaningful.
Its best to do this right after the installation and before You will connect to the network otherwise You will have to edit Your netctl profiles and change the network interfaces in them then disable the profiles and re-enable them. Also You will have to change the interfaces for Your shorewall if You have already configured it. No big deal but it can be a pain in the butt.
How to change the network interface name to something more human-readable?
First of all we need to find out what the devices mac address is. To do that run this command:
ip link
It will spit out something like this:
[andrzejl@wishmasus ~]$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether AA:BB:CC:DD:EE:FF brd ff:ff:ff:ff:ff:ff
3: wlp5s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether ZZ:YY:XX:WW:VV:UU brd ff:ff:ff:ff:ff:ff
[andrzejl@wishmasus ~]$
Now that we know the mac addresses of the devices we will use them while creating a udev rule. Open terminal and run:
su -c "mcedit /etc/udev/rules.d/10-network.rules"
and paste (SHIFT+INSERT) this:
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="AA:BB:CC:DD:EE:FF", NAME="wired0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="ZZ:YY:XX:WW:VV:UU", NAME="wireless0"
Don’t forget to replace AA:BB:CC:DD:EE:FF and ZZ:YY:XX:WW:VV:UU with the actual mac addresses. The wired and wireless names are optional. Arch Linux folks discourage the use of the oldschool eth and wlan. My network interfaces are for example called docketh1, asuseth0 and wireless0.
Save the file (F2) and close mcedit (F10).
Reboot the machine.
Cheers.
Andrzej