New answers tagged

0

A caveat: I have never done this myself, but I was contemplating it... hence I looked it up. You create an encrypted folder with encfs, see this help page. Basically, you back-up and move your /var/www directory to a temporary location. Than you recreate it as described in the help page, copy in your old contents (cp -R <from> <to>) and chown ...


0

If you installed it via RPM, you can also use rpm –ql [package] to get a list. This method also happens to work on Fedora and RHEL. joe@mainwks ~]$ rpm -ql phpMyAdmin /etc/httpd/conf.d/phpMyAdmin.conf /etc/nginx/default.d/phpMyAdmin.conf /etc/phpMyAdmin /etc/phpMyAdmin/config.inc.php /usr/share/doc/phpMyAdmin /usr/share/doc/phpMyAdmin/ChangeLog /usr/share/...


0

You can get disk size reading the file /sys/proc/sda/size, it will give you a number like 976773168. Take that number and multiply it by 512 and get the size in bytes. From there, you can convert it to MB's or GB's. Also you can get the size of partitions size reading /sys/block/sda/sdaX/size.


0

The command df -h shows disk free and used space for every mount in human readable sizes. The command du -sh /* | sort -n -r will show how much space is used by every top level directory.


1

When you install btrfs-tools, some hooks come with this to "install" btrfs support in your initramfs that come in boot to your system. the files are /usr/share/initramfs-tools/hooks/btrfs /usr/share/initramfs-tools/scripts/local-premount/btrfs (you can check with dpkg -L btrfs-tools) one alternative can be that after you install btrfs-tools, delete these ...


2

You should handle these kind of issues with logrotate, it is designed for these tasks specifically. For example, to enable logrotate to rotate the file /var/mail/root if the size of the file becomes 10 MB, you can add a logrotate configuration file e.g. /etc/logrotate.d/mailroot with the content: /var/mail/root { size 10M # Rotate if the size is &...


-1

I have no experience with Btrfs (more experience with ZFS) but for attention to partitions, the first utility that comes to mind is gdisk(8). GPT fdisk text-mode partitioning tool An outline: $ sudo gdisk GPT fdisk (gdisk) version 1.0.1 Type device filename, or press <Enter> to exit: /dev/sda Partition table scan: MBR: protective BSD: not ...


0

Get your disk UUID: blkid Edit /etc/fstab as root: UUID="XXX" /media/root/nowhere auto nosuid,nodev,nofail,noauto,nouser,x-gvfs-hide,x-udisks-auth 0 0 Create a protected /media/root folder (to prevent users to access the partition if mounted): sudo mkdir -m=000 /media/root Several independant layers of protection against mounting and visibility: ...


0

In Nautilus try Bookmarks > Bookmarks. You can edit the locations of the bookmarked folders.


1

Permissions are generally not propagated by the directory that files are being copied into, rather new permissions are controlled by the user's umask. However when you copy a file from one location to another it's a bit of a special case where the user's umask is essentially ignored and the existing permissions on the file are preserved. Understanding this ...


5

Your second output, du -s Folder is in kilobytes not megabytes. That is the default output for du. To convert to MB divide by 1024: 120664/1024 = 117.8359375, with the h flag this gets rounded up to 118MB. You can also view the size of the folder in Bytes with du -sb Folder. The du utility gives you the amount that is actually used by the disk. The value ...


0

Can you describe your WiFi Prob? What's your wifi adapter? On principle, one thing has nothing to do with the other. The problem with linux wifi support is that drivers are proprietary and so its up to the manufacturer to support it (or not).


0

Copied binary to /usr/local/bin. This location is for normal user programs not managed by the distribution package manager, e.g. locally compiled packages. This prevents these softwares from being deleted when system upgrades. This usage is the de facto convention. As was said in comments, there is not an unique location for copying packer binary to. Also, ...


2

It was simply because I had invalid characters in the filename of the image, which the screenshot software does a poor job of conveying.


6

set the group for directory /data/sales to group purchasing. set all files in /data/sales/ to the group purchasing set the permissions for the directory and the files to "read". The means they can not remove a file and can not change a file. If I understood it correctly I would say ... chgrp -R purchasing /data/sales chmod 2750 /data/sales chmod -R 0740 /...


3

Three Major Questions I broke your question into the three areas you were concerned about. While I can't help you write a FUSE file system, I can answer those 3 questions: Quoting Wikipedia:In computer programming, unit testing is a software testing method by which individual units of source code, sets of one or more computer program modules together ...



Top 50 recent answers are included