Quantcast
Channel: FedoraForum.org
Viewing all 36277 articles
Browse latest View live

how to increase the livecd rootfs partition size?

$
0
0
I've setup a Fedora Live USB on a 16GB pendrive with a 4GB Persistent Overlay allocated following guide https://fedoraproject.org/wiki/How_t...d_use_Live_USB
I can merge changes in the overlay into a new image and reset the overlay storage using the scrip mentioned here https://fedoraproject.org/wiki/LiveO...into_new_image
Code:

#!/bin/bash -xv
#
# Merge a LiveOS snapshot overlay into a new root filesystem, recompress it
# into a SquashFS image (if the source was so packaged), replace the source
# with the refresh, and reset the overlay.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

oldLC=$LC_NUMERIC
LC_NUMERIC="en_US.UTF-8"
export PATH=/usr/sbin:$PATH
export \
  PS4='+(${SHLVL}:${LINENO}:${BASH_SOURCE}:${EUID}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
set -o errexit
set -o pipefail

t0=$(date +%s)

cleanup () {
    umount -l $SRCMNT
    rmdir $SRCMNT
    dt=$(($(date +%s)-t0))
    h=$((dt/3600))
    m=$((dt%3600/60))
    s=$((dt%60))
    printf '\nTotal time elapsed: %02d:%02d:%02d hh:mm:ss\n' $h $m $s
    [[ $1 == 0 ]] && exit 0 || exit 1
}

if [[ ! -f /usr/sbin/mksquashfs ]]; then
    echo "Please install squashfs-tools (yum install squashfs-tools)";
    exit
fi

TMPDIR=$1
[[ ! -d $TMPDIR/LiveOS ]] && mkdir $TMPDIR/LiveOS 2>/dev/null

# Mount the source device and SquashFS.
mkdir -p /run/media #Doesn't exist in fedora 20 livecd
SRCMNT=$(mktemp -d /run/media/XXXXXX)
mount $2 $SRCMNT

if [[ -e $SRCMNT/LiveOS/squashfs.img ]]; then
    SQUASHMNT=$(mktemp -d /run/media/XXXXXX)
    mount $SRCMNT/LiveOS/squashfs.img $SQUASHMNT --read-only
    ORIGFS=$SQUASHMNT/LiveOS/ext3fs.img
    [[ ! -f $ORIGFS ]] && ORIGFS=$SQUASHMNT/LiveOS/rootfs.img
else
    ORIGFS=$SRCMNT/LiveOS/ext3fs.img
    [[ ! -f $ORIGFS ]] && ORIGFS=$SRCMNT/LiveOS/rootfs.img
fi

OVERLAY=/LiveOS/$(basename $SRCMNT/LiveOS/overlay-*)
if [[ -f $SRCMNT$OVERLAY ]]; then
    OVDEV=$(losetup -f --show $SRCMNT$OVERLAY --read-only)
else
    printf '\n  No persistent overlay for the filesystem was found.
    Exiting...\n'
    cleanup 1
fi

# >= Fedora 17
LiveOSMNT=/run/initramfs/live
# < Fedora 17
[[ -d /mnt/live/LiveOS ]] && LiveOSMNT=/mnt/live

# If we are processing a booted LiveOS device's root filesystem, then
if [[ $(mountpoint -x $2) == $(mountpoint -dq $LiveOSMNT) ]]; then
    # Remove live-osimg-min; free its loop devices.
    if [[ -e $SRCMNT/LiveOS/osmin.img ]]; then
        dmsetup remove live-osimg-min || :
        losetup -d /dev/loop1 || :
        losetup -d /dev/loop0 || :
    fi
else
    LiveOSMNT=''
fi
# Remove expiring osmin.img
rm $SRCMNT/LiveOS/osmin.img || :

# Prepare temporary devices for the Device-mapper mirror target.
FSTYPE=$(blkid -s TYPE -o value $ORIGFS || :)
FSLABEL=$(blkid -s LABEL -o value $ORIGFS || :)
stinfo=($(stat -c '%B %s %o' $ORIGFS || :))
BLOCKSZ=${stinfo[0]}
BLOCKS=$((${stinfo[1]}/$BLOCKSZ))
IOBLKSZ=${stinfo[2]}

NEWFS=$TMPDIR/LiveOS/rootfs.img
dd if=/dev/null of=$NEWFS count=1 bs=$BLOCKSZ seek=$BLOCKS
mkfs.$FSTYPE -F -L $FSLABEL -m 1 -b $IOBLKSZ $NEWFS
tune2fs -c0 -i0 -Odir_index -ouser_xattr,acl $NEWFS
NEWFSDEV=$(losetup -f --show $NEWFS)

roORIGFSDEV=$(losetup -f --show $ORIGFS --read-only)

table="0 $BLOCKS snapshot $roORIGFSDEV $OVDEV P 8"
dmsetup create ori --readonly --table "$table"

# Invoke mirror target device.
table="0 $BLOCKS mirror core 2 32 sync 2 /dev/mapper/ori 0 $NEWFSDEV 0"
dmsetup create mir --table "$table"

set +xv
# Wait for mirror completion.
while state=$(dmsetup status mir)
state=${state#*mirror 2 * * }
alloc=${state%/*}
size=${state#*/}
size=${size%% *}
[[ $alloc != $size ]]; do
    percent=$(dc <<< "8k 10 0.05 100 $alloc $size /*+*p")
    percent=$(dc <<< "1k $percent 10 /p")
    printf '\r  Mirroring %5.1f %% complete.  ' $percent
    printf '\b|'
    sleep 0.5
    printf '\b/'
    sleep 0.5
    printf '\b-'
    sleep 0.5
    printf '\b\'
    sleep 0.5
done
printf '\r  Mirroring 100 %% complete.    \n'
set -xv

# Check the new filesystem.
e2fsck -f -y $NEWFS || e2fsck -f -y $NEWFS

# Clean up.
dmsetup remove mir ori
sync

dt=$(($(date +%s)-t0))
h=$((dt/3600))
m=$((dt%3600/60))
s=$((dt%60))
printf '\nTime elapsed: %02d:%02d:%02d hh:mm:ss\n' $h $m $s

# Replace SquashFS or uncompressed root filesystem image.
if [[ -e $SRCMNT/LiveOS/squashfs.img ]]; then
    umount -l $SQUASHMNT
    rm $SRCMNT/LiveOS/squashfs.img
    mksquashfs $TMPDIR/LiveOS $SRCMNT/LiveOS/squashfs.img -comp xz -keep-as-directory
else
    if [[ -x /usr/bin/rsync ]]; then
        rsync --inplace --progress $NEWFS $SRCMNT/LiveOS
    else
        cp $NEWFS $SRCMNT/LiveOS
    fi
fi

# Clean up.
losetup -d $OVDEV $NEWFSDEV $roORIGFSDEV
OVDEV=$(losetup -f --show $SRCMNT$OVERLAY)

# Reset overlay.
dd if=/dev/zero of=$OVDEV bs=64k count=1 conv=notrunc,fsync

# If we are processing a booted LiveOS device's root filesystem, then
if [[ -n $LiveOSMNT ]]; then
    # Try to unmount the TMPDIR.
    mountpoint $TMPDIR && umount -l $TMPDIR || :
    shutdown -r +1 'The system will reboot in 1 minute.'
else
    sleep 1
    losetup -d $OVDEV
fi
cleanup 0

But now the LiveOS rootfs partition "/dev/mapper/live-rw" mounted from ext3fs.img inside the squashfs.img is nearing its 3.9G limit,
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/live-rw 3.9G 3.4G 429M 89% /
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 84K 3.9G 1% /dev/shm
tmpfs 3.9G 928K 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sdb1 16G 7.0G 8.4G 46% /run/initramfs/live
tmpfs 3.9G 20K 3.9G 1% /tmp
/dev/loop3 2.0G 43M 1.8G 3% /home
varcacheyum 3.9G 0 3.9G 0% /var/cache/yum
vartmp 3.9G 0 3.9G 0% /var/tmp

Is there any practical way to increase the livecd rootfs partition (ext3fs.img inside the squashfs.img) and what are the exact steps?
Thanks for your help.

Creating a spin from a spin

$
0
0
There are two resmixes that I use. I would like to choose one of them, install it cleanly on a partition, aftter installing all the updates and adding one or two other packages, I would like to generate the remix.

I have three computers that I use. I want them to be images of my one remix.

Any ideas. I have browsed the fedora remix area but I am not sure of my steps to take.

HP has ideas of bypassing Microsoft Windows

$
0
0
This is the article I read today from yahoo.com

http://finance.yahoo.com/news/announ...011240408.html

After the opening paragraph .....

HP is creating a lot of new technology to build The Machine, especially a new form of memory known as "memristors" which won't lose data if the power turns off (also known as "non-volatile memory").

The Machine's claim to fame is that it can process loads of information instantly while using hardly any power. HP wants this computer to replace the servers being used in today's data centers. But it also hopes the tech will become the basis for the next generation of PCs.

And The Machine will not use Windows.

In fact Fink announced on Thursday that the company is working on a brand new free and open-source operating system and is inviting universities to help research and build it.

He threw an little dig at Microsoft when announcing the news, saying:

"We want to reignite in all of our universities around the world operating system research which we think has been dormant or stagnant for decades."

On top of that, HP is working on a brand new operating system for The Machine based on Linux. And another one based on Android, Fink continued:

"We are, as part of The Machine, announcing our intent to build a new operating system all open source from the ground up, optimized for non-volatile memory systems.

KDE Network Manager App Name

$
0
0
What is the name of the kde network manager app? I need to login into several machines and change around several network connections. Since I am doing this remotely, I can not do the normal toolbar actions to start it up.

Interpreting DMIDECODE

$
0
0
I have a couple of questions regarding dmidecode.

1) Is there a way to get the dmidecode information from a program aside from executing dmidecode into a file and then parsing the file?

2) The DIMM information seems to be contradictory. On the one hand it shows that the DIMMs are interleaved as each DIMM is in either Interleave position 1 or 2 but it also shows that the physical addresses are layed out one DIMM on top of the next,

Handle 0x0041, DMI type 20, 35 bytes
Memory Device Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x001FFFFFFFF
Range Size: 8 GB
Physical Device Handle: 0x0040
Memory Array Mapped Address Handle: 0x0049
Partition Row Position: Unknown
Interleave Position: 1
Interleaved Data Depth: 2

Memory Device Mapped Address
Starting Address: 0x00200000000
Ending Address: 0x003FFFFFFFF
Range Size: 8 GB
Physical Device Handle: 0x0045
Memory Array Mapped Address Handle: 0x0049
Partition Row Position: Unknown
Interleave Position: 2
Interleaved Data Depth: 2

I would have thought that the DIMMs would be mapped so that even 64 bit words are in one and odd in the other. Do the iCore CPUs map odd and even words to separate pages?

Looking for a multitouch monitor

$
0
0
I'm looking for a multitouch monitor with F20 for testing with SWT. Do most off the shelf touch monitors I'd pick up at amazon work out of box, or is there a lot of configuration & driver install needed?

Any recommendations for a monitor that works with minimal setup? Size isn't important right now, in fact smaller is probably better.

Fedora 20 MATE Compiz

$
0
0
I installed the spin as a guest in VirtualBox. It seems to work fine except if I enable either Compiz with Emerald or Compiz with GTK, anytime I try and change the appearance I lose the window manager and have to reset it. Is this normal?

TIA

Programs dont load in software center

$
0
0
Hello I have an issue with the software center in fedora 20.
Nothing loads. 3 dots are displayed where the application buttom / pictures are supposed to be.
Also the loading icon apperas for application and updates but nothing happens.

Thank you for you time.

yum update error

$
0
0
Hi,

Starting yesterday, I get this error every time I attempt to run yum update:

Code:

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 367, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 229, in main
    (result, resultmsgs) = base.buildTransaction()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1201, in buildTransaction
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 915, in resolveDeps
    for po, dep in self._checkFileRequires():
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1206, in _checkFileRequires
    self.installedFileProviders = self.rpmdb.fileRequiresData()
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 970, in fileRequiresData
    for name, flag, evr in pkg.requires:
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 678, in <lambda>
    requires = property(fget=lambda self: self.returnPrco('requires'))
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1411, in returnPrco
    self._populatePrco()
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1489, in _populatePrco
    (name, flag, vers) = self._filter_deps(name, hdr[oldtagf], hdr[oldtagv], andmask, resmask)
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1422, in _filter_deps
    for (n, f, v) in zip(name, flag, vers):
TypeError: zip argument #2 must support iteration

How can I solve this?

Thanks,
PMJ

Advert switching on XBoX One

$
0
0
http://www.bbc.co.uk/news/technology-27827545

Quote:

Xbox One owners are complaining that a new TV advert is switching their consoles on without their permission.

The ad - featuring Breaking Bad's Aaron Paul - has the actor say "Xbox On" near its start.

The instruction appears to trigger the machine's Kinect voice/motion sensor, activating the console.

A spokesman for the firm said it had no comment at this time, but noted that previous ads had also featured voice commands.

Many people have posted comments about the problem on social media sites

Problems configuring ethernet bridge

$
0
0
Hi,
I have a fedora20 install that's been running fine for some time. After doing the most recent updates, my network bridge that I use for a few kvm VMs stopped working. I can't believe someone else isn't having this problem, but I searched through bugzilla and didn't find any direct references to this problem.

I had originally set this up as a DHCP bridge, but now I'm trying to set it up as a static bridge, as when I configure the bridge manually, it works properly. The problem I'm having is that I don't know the exact syntax for the ifcfg-br0 and ifcfg-eth0 config files, as the documentation differs greatly, depending on where you look.

I'm using standard 'network' networking, not NetworkManager, as when I set this up in fedora17 or so, NetworkManager didn't support bridges.

I've also set my ethernet interface back to eth0 by modifying the kernel command-line with net.ifnames=0.

Here are my configs. Perhaps you could post a similar one that works for you, or tell me where I'm going wrong?

Code:

# cat ifcfg-br0
# Configured manually
BOOTPROTO=static
DEFROUTE=yes
DEVICE=br0
DNS=192.168.1.1
DOMAIN=inside.example.com
IPADDR=192.168.1.7
GATEWAY0=192.168.1.1
PREFIX=24
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="br0"
ONBOOT=yes
STP=on
TYPE=Bridge

# cat ifcfg-eth0
# Configured manually
BRIDGE=br0
DEVICE=eth0
HWADDR=e0:3f:49:ea:1d:55
ONBOOT=yes
TYPE=Ethernet

Using this configuration and restarting networking (service network restart), I get a properly-configured netowrk, but there is no default route. No gateway. I have to add a default route manually.

If I change the GATEWAY0 to just GATEWAY, I get this strange 169.254.0.0 route:

Code:

# route -n
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
0.0.0.0        192.168.1.1    0.0.0.0        UG    0      0        0 br0
169.254.0.0    0.0.0.0        255.255.0.0    U    1028  0        0 br0
192.168.1.0    0.0.0.0        255.255.255.0  U    0      0        0 br0

Thanks for any ideas.
Alex

Steam in Fedora 20

$
0
0
Hey everyone! I've been looking around, and really haven't seen any clear answers, but how well does Steam do in Fedora? I know it has been packaged for Debian, so I want to know how well it performs and what bugs exist or if it even works well? I've really come to like Fedora as of late and would still like to play my games. I'm looking at Fedora 20 with GNOME 3.

Fedora 20 - Intel GFX Drivers

$
0
0
Hi All,

I've install Fedora 20 on my HP ProBook 6550b , while everything worked out of the box, I don't appear to have 3D Rendering enabled.

To remedy the issue I have tracked down the Open Source Intel Drivers and have installed them but there is still no 3D Acceleration and graphics related effects are very slow.

I have tried Googling this but there is a lot of mixed messages out there and the information out there appears to be limited. But I have found some posts saying that upgrading to OpenGL > 3 can resolve the problem. But haven't found anything out there for the upgrade process. I dont even know if this is the issue for sure or not at this stage.

Id appreciate any help you guys can provide with this, thanks in advance.

blah@blah ~]$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)

blah@blah ~]$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel® Ironlake Mobile
OpenGL version string: 2.1 Mesa 10.1.5
OpenGL shading language version string: 1.20
OpenGL extensions:

blah@blah ~]$ grep Loading /var/log/Xorg.
Xorg.0.log Xorg.0.log.old Xorg.9.log
[ozengin@ALW015446 ~]$ grep Loading /var/log/Xorg.0.log
[ 9173.477] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[ 9173.478] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 9173.488] Loading extension GLX
[ 9173.488] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[ 9173.498] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 9173.644] (II) Loading sub module "fb"
[ 9173.644] (II) Loading /usr/lib64/xorg/modules/libfb.so
[ 9173.863] (II) Loading sub module "dri2"
[ 9174.249] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[ 9174.275] (II) Loading /usr/lib64/xorg/modules/input/synaptics_drv.so

blah@blah ~]$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
296 frames in 5.0 seconds = 59.027 FPS
295 frames in 5.0 seconds = 58.867 FPS
301 frames in 5.0 seconds = 60.065 FPS
300 frames in 5.0 seconds = 59.865 FPS
300 frames in 5.0 seconds = 59.865 FPS
300 frames in 5.0 seconds = 59.865 FPS
299 frames in 5.0 seconds = 59.566 FPS
299 frames in 5.0 seconds = 59.747 FPS
297 frames in 5.0 seconds = 59.289 FPS
296 frames in 5.0 seconds = 59.132 FPS

[SOLVED] ram

$
0
0
Hello folks
Just wondering what do you people think my system fedora 20 gnome how much memory should it be using at idle heres a couple of screenshots of my system and top running is this ok or is it using to much ram at idle
regards Ron
running on intel ssd disk

Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2014-06-13 18:23:05.png
Views:	N/A
Size:	199.3 KB
ID:	26112   Click image for larger version

Name:	Screenshot from 2014-06-13 18:24:43.png
Views:	N/A
Size:	222.8 KB
ID:	26113  

Offsite backup storage?

$
0
0
My current method of backing up vital data files is to periodically burn them to CD or DVD. I'm looking for a service where I can instead FTP these files to a commercial backup storage provider. Is there anyone you can recommend? This is for home use, so the volume of data is relatively small.

[SOLVED] How to start script from /etc/pm/sleep.d after resume from hibernate?

$
0
0
Hi.

I have a little problem. Long time ago i've added hdparm -B 254 /dev/sda to rc.local (to extend lifetime of my laptop HDD).

But as far i know, this value from rc.local is reset to default after hibernation (from 254 to 128) and after every laptop resume i need to tap in the console hdparm -B 254 /dev/sda again and again.

I've read that good solution is add new script to /etc/pm/sleep.d and that script will be executed after resume from sleep or hibernation. But i've read that syntax of this script is a little bit more complicated than simple hdparm 254 and chmod+x on script. And in matter of fact - it does not worked.

It takes me 2 hours of testing scripts for /etc/pm/sleep.d but without sucess. I've copied one script from web and put hdparm command in it, but on every resume - hdparm is still reset to default 128 value.

Script:

Code:

case $1 in
    suspend|suspend_hybrid|hibernate)
        hdparm -B 254 /dev/sda
        ;;
esac

I've named it 00hdparm254, chmod+x but it does not work.

The question is: what i need to execute hdparm -B 254 /dev/sda after wake laptop from sleep or hibernation? Script in /etc/pm/sleep.d - i know, but...

I will be grateful for every advice because i'm lack of idea.

/etc/hosts editing guidelines?

$
0
0
I have a ProtonMail.ch webmail account, access to which I would like to secure/ensure by a line in the subject file. I noticed also hosts.deny and hosts.allow and a couple of others that I don't recall mentioned in the man hosts file.

Am I correct that addresses in HOSTS are resolved before DNS is involved?

Are there online FAQ's or guidelines or discussion of trying to avoid DNS corruption that a newby might understand? Do y'all have recommendations?

My general principle is advocacy of a local address resolution protocol similar to the early days before modern DNS. [distracting paragraph deleted]

OS Fedora current. Browser FF 30. Default DNS to OpenDNS. I put my question in 'Using Fedora' for the file spec and structure.

Thanks for all the help from here.

Can't boot fedora 20 on Thinkpad X240

$
0
0
Hi,

I am newbee in linux and i want to install Fedora 20 on my Thinkpad X240.
I have changed UEFI mode to legacy from BIOS,
Now i am able to install fedora and once installation completes,
Feodra doesn't boots.
i was able to install fedora 17 and not fedora 20.

Can some one help.


thanks.

Kde not starting

$
0
0
I rebooted yesterday and now when i login i just get a little terminal window instead of my kde desktop. I can type "startkde" in that little terminal and all starts up. Ive searched the net and cant find anything that tells me what should be calling the startkde or whatever to start kde normally, except a few references to /etc/sysconfig/desktop .... but this file does not exist on my PC. What script / rc.xxx file starts KDE? How can i get it back so that KDE starts normally after I login? My system is fedora release 20 / Heisenbug

FC20 MySQL Workbench won't run after update to V6.1.6

$
0
0
All,
I recently did a yum update on my FC20 x86_64 desktop system and just found that mysql-workbench-communityV6.1.6 now aborts when launched with the following msg in /var/log/messages:
Jun 13 15:45:05 -------- gnome-session: /usr/libexec/mysql-workbench/mysql-workbench-bin: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

Anyone else experience this problem? I did a few web searches but didn't find anyone else complaining.

I resolved the problem by reverting to the previous version:
1) yum erase mysql-workbench-community
2) yum install mysql-workbench-community-6.1.4-1.fc20.x86_64.rpm
Viewing all 36277 articles
Browse latest View live