sobota, 19 listopada 2011

smbd on Fedora 16

On Fedora 16 most daemon control scripts can't be found in /etc/init.d and can't be controlled by the good old chkconfig. To enable services like smbd one has to use systemctl. For samba server I've issued the following commands:
sudo systemctl list-units | grep smb sudo systemctl start smb.service sudo systemctl enable smb.service
Systemctl should be used to manage most of the system services. For more details issue info systemctl and have a nice lecture.

sobota, 13 sierpnia 2011

Enable CIM on SLES 11SP1

SLES CIM related packages can be found using the WBEM pattern

zypper pattern-info WBEM
S | Nazwa                        | Typ     | Zależność
--+------------------------------+---------+----------
i | openwsman-server             | package |          
i | cim-schema                   | package |          
i | cmpi-bindings-pywbem         | package |          
i | cmpi-provider-register       | package |          
i | openwsman-client             | package |          
i | cmpi-pywbem-base             | package |          
i | smis-providers               | package |          
i | cmpi-pywbem-power-management | package |          
i | python-pywbem                | package |          
i | sblim-sfcb                   | package |          
i | sblim-sfcc                   | package |          
i | sblim-wbemcli                | package |          

Install packages grouped in WBEM pattern
zypper in -t pattern WBEM

Edit the configuration of openwsmand
vi /etc/openwsman/openwsman.conf

Enable openwsmand and sfcb (small footprint CIM broker)
chkconfig openwsmand on
chkconfig sfcb on

Ports used to connect to the CIM interface
5989 - unsecure port (https - enabled by default)
5988 - unsecure port (http)

Query available classes using wbemcli
wbemcli -nl ec 'https://user:password@localhost:5989/root/cimv2' -noverify

The '-noverify' parameter is used to skil SSL certificate verification.

Query one of available classes
wbemcli -nl gc 'https://user:password@localhost:5989/root/cimv2:CIM_LogicalElement' -noverify

bibliography:
SFCB - http://sourceforge.net/apps/mediawiki/sblim/index.php?title=Sfcb
WBEMCLI - http://linux.die.net/man/1/wbemcli
In case of openSuse 11.4 the zypper package WBEM isn't available, but all the packages are still present in the repository and can be easily installed as follows.
zypper install openwsman-server cim-schema cmpi-bindings-pywbem cmpi-provider-register openwsman-client cmpi-pywbem-base smis-providers cmpi-pywbem-power-management python-pywbem sblim-sfcb sblim-sfcc sblim-wbemcli

czwartek, 28 lipca 2011

Proper uninstallation of proprietary Ati drivers on Fedora

To get rid of proprietary Ati drivers run the following commands.

sudo sh ati-driver-installer-11-6-x86.x86_64.run --uninstall=force
sudo yum reinstall mesa-libGL

This should leave the OS fine and dandy - ready for new drivers installation.

niedziela, 24 lipca 2011

Huge fonts with nvidia proprietary drivers on Fedora

I've decided to move from open-source video drivers to Nvidia proprietary to get better performance and notebook battery-life. To do so I've installed the drivers using

sudo yum install kmod-nvidia-$(uname -r).

After restarting Xorg everything seemed ok - the new driver was loaded without Xorg crashing etc. Unfortunately I've noticed that some of the system fonts got bigger than expected. The resolution was ok so it must have been the DPI. Running

xdpyinfo | grep resolution

returned the resolution: 143x144 dots per inch. As I prefer smaller fonts I've entered the KDE System Setting to search for DPI settings. Finally I've found them in System Settings > Application Appearance > Fonts > Force Fonts DPI . Setting this value to 96 fixed my problem.

Fedora boot from a USB 3.0 hard drive

I've tried to boot my laptop using a USB 3.0 WD hdd. I've installed Fedora to this drive and everything worked fine as long as I used USB 2.0. When booting with the drive connected to a USB3.0 port the boot failed with the message: no root device found, boot failed sleeping forever. The UUID for boot and root partitions are the same using USB 2.0 and USB 3.0, with system booted from other drive I've found the module supporting USB 3.0 was xhci_hcd (lsmod | grep xhci). The module must have not been included in initramfs. To verify this I've decompressed the initramfs image and searched for xhci_hcd module.

mkdir initramfs
cd initramfs
gzip -dc /boot/initramfs-2.6.35.13-92.fc14.x86_64.img | cpio -id
find ./ -name "xhci*"

Search for xhci* returned no results so the module was not included in initramfs. To fix this situation one must rebuild the initramfs for used kernel. For safety reasons please backup your original initramfs image.

mkinitrd /boot/initramfs-$(uname -r).img $(uname -r) -f --preload xhci_hcd

According to Fedora wiki the xhci module was also disabled by default due to an issue with suspending. To enable this module add the following option to kernel's parameters.

xhci_hcd.enable=1

Finally try to fix the suspend issue of Fedora by executing the following command in terminal.

echo "SUSPEND_MODULES=\"xhci_hcd\"" > /etc/pm/config.d/xhci_hcd

niedziela, 26 czerwca 2011

Bash and file name extraction

To extract file name from full path one can use the following syntax

file=/home/user/test
echo ${file##*/}

For path use

echo "${file%/*}"


And for extension

echo "${file##*.}"

sobota, 25 czerwca 2011

Upgrade Fedora 14 to 15

The easiest way to upgrade Fedora 14 to 15 is by using PreUpgrade.
Install it as follows:
yum install preupgrade

Then run preupgrade and just click select Fedora 15 and next :).

poniedziałek, 25 kwietnia 2011

Trine on Fedora 14 64bit

After the installation of Trine on a Fedora 14 64bit system you have to install a missing library or the game doesn't start.

yum install libx86.x86_64

piątek, 11 lutego 2011

Video not working in Skype 2.1.0.81

I've recently installed openSuse 11.3 and Skype. Unfortunately the video didn't work. I've tried many solutions but none of them solved this issue. After some research it occured that the video didn't work due to cairo-dock running in openGl mode.

Update: run export XLIB_SKIP_ARGB_VISUALS=1 && skype

środa, 26 stycznia 2011

Mounting cue images in Ubuntu 10.10.

To mount a cue + bin image under Ubuntu Linux follow these steps:

1) Download fuseiso
sudo apt-get install fuseiso
2) Mount the cue + bin image
fuseiso image.bin /path/to/mount
3) After finishing work unmount the image
fuseiso -u /path/to/mount