Tag Info

New answers tagged

0

How about Dream Studio? But I also think its based on Ubuntu... so, as you mentioned you wouldn't like that a kinda distro... you could try it out though... via LIVE from an USB boot... I used both, Dream Studio and Ubuntu Studio, but - kernel is the base of the problem, cuz even Windows is not that 'good' regarding professional work, cuz these tools that ...


0

The ugly answer is: write a script that takes arguments that look like ps arguments, sanitizes them (at a minimum, replaces -aux with aux), and then calls /bin/ps with the sanitized arguments.  Call it ps and put it in your private bin directory.


1

The correct answer is: ps --sort=-pcpu | head -n 6 So you can specify columns without interfering with sorting. Ex: ps -Ao user,uid,comm,pid,pcpu,tty --sort=-pcpu | head -n 6


1

sda2 is kind of like a 'suitcase' holding all extended partitions. You can't delete it. sda5 is the only partition in the 'suitcase', and is your LVM physical volumes. You can't delete it. To actually see what you have spare space wise, use these commands: df -h : Shows the free space on all your volumes (you might be able to reclaim some space) vgs : ...


4

No! /dev/sda contains: a small /dev/sda1 which is needed to boot. a extended partition /dev/sda2 The extended partition contains a logical partition /dev/sda5. The logical partition contains a LVM setup, broken down into to two logical volumes: /dev/mapper/server--vg-swap_1 which is your swap space /dev/mapper/server--vg-root which is your root (/) ...


0

In my case works using nfs4 doing: $ sudo mount -t nfs4 server-name:/ /path/to/mount In the /etc/export file on server /Path/to/export 192.168.1.0/24(rw,sync,fsid=0,no_root_squash,crossmnt,no_subtree_check,no_acl) fsid=0 makes the /Path/to/export the root directory when you mount the share. crossmnt, because I have some others drives in the ...


2

Linux has a mechanism that allows plug-ins to be registered so that the kernel calls an interpreter program when instructed to execute a file: binfmt_misc. Simplifying a bit, when an executable file is executed, the kernel reads the first few bytes and goes like this: Does it start with the four bytes \x7fELF followed by a valid-looking ELF header? If so, ...


0

I just ran into the same problem immediately after installing RHEL 7.0. Bizarrely enough, a reboot with no config changes eliminated the problem. Somehow, when RHEL came up following the install, it's networking was apparently in a messed up state, and it needed another reboot to come up clean.


0

What do you get from a: yum search pptp ppp is it anything like: [root@localhost src]# yum search pptp ppp Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.openitc.uk * extras: centos.hyve.com * updates: centos.openitc.uk ===================================================================== N/S matched: pptp ...


5

Directories are special in the sense that within a directory you can have references to several files and directories, so, if you remove the parent directory, all those files lose their reference point from where they can be accessed, the same with process. For such cases, rmdir() have different checks, that are different from unlink(): If the directory is ...


1

I think the best way to find out what drains your battery is the powertop utility. Powertop will give you a list of the energy consumption of your devices and will show you whether powersaving is enabled or not (and allows you to toggle these settings). The laptop-mode-tools package (at least that's how it is called in Debian/Ubuntu) can also be helpful in ...


0

Since VMWare do not provide a v2v tool, I suppose you'll have to use one of the p2v tools available. The obvious choice is vCentre converter but there might be other solutions from vendors like Acronis and Unitrends EDIT: When you move a disk image as is, you get the exact same data on the destination hypervisor, pretty much like taking a hard drive out ...


-1

init=/bin/bash But you may try to boot in "single user" mode by adding command "1" to boot loader at boot time. Looks like: kernel /boot/vmlin... 1 All filesystems will be mounted automatically in normal mode. Then you may fix your /etc/sysconfig/iptables config file. http://www.tecmint.com/linux-kernel-boot-time-parameters-explained/ ...


0

From man fstab: Instead of giving the device explicitly, one may indicate the (ext2 or xfs) filesystem that is to be mounted by its UUID or volume label (cf. e2label(8) or xfs_admin(8)), writing LABEL= or UUID=, e.g., 'LABEL=Boot' or 'UUID=3e6be9de-8139-11d1-9106- a43f08d823a6'. This will make the system more robust: adding or removing a ...


0

Kqueue is more general, and more complex than epoll. Source: http://www.eecs.berkeley.edu/~sangjin/2012/12/21/epoll-vs-kqueue.html


0

According to this, Rootfs is a type of Ramfs, so it should grow dynamically as needed (hopefully). https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt More info here too: http://superuser.com/questions/576723/what-is-rootfs-and-what-can-you-do-with-it


1

This looks rather obvious, you're not using the same arguments. If this is gnokii-smsd and you specify -v, just like you're specifying in the script version it should print version and exit, just like you told it does. Why haven't you tried with the exact same arguments when in shell mode than in script mode?


0

Add anon=0 to the volume's options, e.g. via /etc/exports For example: rdfile /etc/exports /vol/vol1 -sec=sys,rw,anon=0,nosuid You can write the info using wrfile - just make sure you know how it works (overwrites the whole file, Ctrl+C to end)


0

figure out the solution for remote login : ==> if the terminal from which the process with nohup has been started and if the terminal has been killed then also the process will keep running , however if you simply log out with exit or ctrl+d then it doesn't but the logout will also work if you have logged out of the graphical login .


0

Most Linux distributions ship with a kernel that does not allow exporting a FUSE mounted file system using NFSv2 or NFSv3. Your choices are: 1. Implement your file system in kernel space. 2. Export it in NFSv4, which would require an fsid= I myself use 2. In the below illustration, commands start with # are run on server, commands start with $ are run on ...


1

You can't do fdisk because you're already at twice MBR's maximum with a 4TB device at 512b sectors. You need to format it with GPT. From wikipedia: The organization of the partition table in the MBR limits the maximum addressable storage space of a disk to 2 TB (232 × 512 bytes). Get the gdisk package and reformat the disk (though it seems to me it ...


1

Not only is it possible; it is also recommended in some situations. GNU Parallel takes around 10 ms to run a job. So if you have 8 cores and the jobs you run take less than 70 ms, then you will see GNU Parallel use 100% of a single core, and yet there will be idle time on other cores. Thus you will not use 100% of all cores. The other situation where it is ...


1

Wine performs at native speed for some stuff, pretty bad for some other which have to be emulated. But performance isn't the biggest problem in wine: stuff not working is. Most likely you would have better reliability using a windows virtual machine. However you should specify which software you plan to use, because whether wine is the right solution really ...


1

What to do? You shouldn't use sudo for graphical applications, such as gedit. Use gksudo instead. What's causing the error I'm not sure. Apparently, the reason of error you get is that gedit is trying to invoke SessionManager's Inhibit method via D-bus. If normal applications can connect to dbus, they should have some config files in /usr/share/dbus-1. ...


1

The answer to this question is multi-faceted. UEFI != BIOS The very first thing you must do is try to forget any BIOS-related boot knowledge you might have - it doesn't apply here. There is no MBR, there is no second-stage boot-loader, there is no boot partition. Those things are thankfully fast becoming as obsolete as the quarter-century old 16-bit BIOS ...


0

If the user running the crontab command is vagrant, and the directory where the output is written to is owned by root, and has permissions 755, it can not be written to. sudo chown vagrant /var/backup/all may fix that. To check whether that's the problem, try writing to a file in /tmp instead. But there is another problem: A command like mysqldump mydb | ...


2

Of course, the error is that you don't have a mailer (sendmail,postfix, etc) implemented and active. That being said your other problem is that the >/dev/null 2>&1 ONLY only applies/associates to the LAST command in this case gzip. Thus there must be some type of output going to STDERR for your mysqldump. The correct way to do what I think you want ...


7

There are no more dedicated flush threads anymore. The Linux kernel has moved on to a worker thread model, where several generic worker threads can handle a variety of different tasks. You will see these in the process list as [kworker/#.##] Unfortunately this new design makes it a bit difficult to tell exactly what any given kworker thread is doing at any ...


1

After changing to dhcp you need to restart the service or from the NetworkManager gui. So then you will get a new IP and then you need to check the IP with ifconfig command and then you can ping that IP and check.


1

I just had the same problem. The solution was editing the theme style files. An example how to change the font color for the desktop can be found here. The file responsible for the look of selected menu entries is the gtk.css under /usr/share/themes/elementary/gtk-3.0 The Line: @define-color selected_fg_color #FFF; defines the text color for selected ...


1

Talking to you for a while on chat it turned out that env | egrep 'INTEL|GL|MESA' showed you have LIBGL_ALWAYS_SOFTWARE=1 set. That's your problem. Per the documentation for LIBGL_ALWAYS_SOFTWARE, that disables all hardware rendering. When you use sudo to try driconf as root, sudo was removing it from the environment. You need to find where that is set, ...


0

I had a similar problem but /proc/<pid>/stat contained the expected string. By using strace I could see that killall also accessed /proc/<pid>/cmdline. I continued to investigate using gdb to find that in my case it failed on a check of my command to the full command including all args found in /proc/<pid>/cmdline. It seemed like that path ...


0

If all your remotes have their own root user (that is, different /root directories), with their own authorized_keys file, you'll need to edit all of them all in order to add a new key: for remote in $(seq 100); do cat public_key.pub | ssh "remote$remote" tee -a .ssh/authorized_keys done However, you could also send your source1's private key to ...


1

Quoting OpenTheFile : V2I is a disk image backed up from a current volume using Norton Ghost. It contains a base backup of everything on the hard disk, and may be mounted as a new volume or restored to another disk using Norton Ghost. Because of the last sentence, I would be tempted to say that this format can only be handled by Norton Ghost. ...


1

As others have suggested I'd start by checking the .ssh directory has permissions of 700. Make sure no other users have write permissions to your home directory. If another user can write to your home directory then they could change/alter anything including the .ssh folder. I allowed group write permissions to my home directory and OpenSSH refused the ...


0

It turns out that you can put a tunnel interface into a network namespace. My entire problem was down to a mistake in bringing up the interface: ip addr add dev $tun_tundv \ local $ifconfig_local/$ifconfig_cidr \ broadcast $ifconfig_broadcast \ scope link The problem is "scope link", which I misunderstood as only affecting routing. It causes ...


0

Turns out postfix and sendmail were running at the same time. Something was occasionally causing the postfix service to start which then caused the status of sendmail to jump to dead but subsys locked. I thought I had checked that postfix wasn't running by performing sudo service --status-all. Rather confusingly (or at least confusingly for an MTA noob) the ...


3

If you are using the GNU tools, the following should also work: find /some/path -type f -name file.pl -size +10M -print0 | xargs -0 -n 1 -r perl /my/script.pl Explanation: The option -print0 causes GNU find to separate the file names with \0 bytes. Since \0 bytes cannot be part of the file name, this uniquely separates the file names. The option -0 ...


5

That's what the -exec predicate is for: find /some/path -type f -name file.pl -size +10M -exec perl /my/script.pl {} \; If you do want to have your shell run the commands based on the output of find, then that will have to be bash/zsh specific if you want to be reliable as in: zsh: IFS=$'\0' for f ($(find /some/path -type f -name file.pl -size +10M ...


-3

This should do it for path in `find /some/path -type f -name file.pl -size +10M`; do perl /my/script.pl $path ;done


5

On Debian derived systems you can get the source (even as a non root user) using apt-get source provided sources.list has some deb-src entries. Otherwise it's stuck with downloading from the project source repository with standard tools. Once you've got that source then: ./configure --prefix=/home/me/mysoftware make make install Will work for most source ...


0

chk='/[m]edia' for f in $chk/movies/file $chk/tv/file $chk/music/file do [ -z "${f##"$chk"*}" ] || printf %s\\n "$f exists!" done You can glob against a known value and check its results for resolution.


0

This is on ESX so may not apply. Using vsphere client Click on VM -> Edit Settigns -> Options Tab In the right on the bottom in "Advanced" there is a "Synchronize guest time with host" that is checked by default. Uncheck This bothered me a long time because I thought the OS on the VM kept syncing and I couldn't figure it out. Turns out it was outside ...


1

It is possible that some NTP service is still running on your system. Try chkconfig --list ntpdate and chkconfig --list ntpd It is also possible that ntpdate is called after some other event. You can try to uninstall NTP (ntpdate, ntpd) from the guest machine to disable it completely.


0

If you are running VM tools, the tool has an option to periodically sync the time with the host. If in your path: vmware-toolbox-cmd timesync status to view and vmware-toolbox-cmd timesync disable to stop it. Of course any non-vm method of time sync could be there as well. If the system starts ntpd, it may be syncing that way. You could run ntpd -q to ...


0

Looks like setting kgdboc parameters in boot options worked, not sure why. (I'm using libvirtd)


1

Enter passphrase for key '/home/desktop/.ssh/id_rsa_marge.pub': A passphrase for a public key file (.pub)? IdentityFile ~/.ssh/id_rsa_marge.pub The identity file is a file on the client that lets you prove to the server that you're allowed to log in. That's a file containing a secret value. It's the private key file, not the public key file. ...


0

If the networks that you access through the VPN is known, you can edit your routing table to achieve what you want. Note your current default route. # ip route | grep default default via 192.168.43.1 dev wlo1 proto static metric 1024 Execute VPN and this will introduce a routing entry. Delete the current default route ( which is added by the VPN ) ...


3

If you need to do something that requires root privileges, you need to use some method of gaining root privileges, which on most modern systems means su, sudo, or a wrapper around one of these. What's dangerous about running commands as root (whether it's with su or sudo) is that it gives you a lot more ways to damage your system. So you should only run a ...


0

While keeping in mind that there are no free meals, it's possible to minimize risk. If you'd like to run your script as root and immediately exit without password prompt and exit command then you'll have to compromise a bit. The following solution lets you store your encrypted twice (or more) root password anywhere with the current user permissions. ...



Top 50 recent answers are included