Tag Info

Hot answers tagged

7

On a Linux system, when changing the ownership of a symbolic link using chown, by default it changes the target of the symbolic link (ie, whatever the symbolic link is pointing to). If you'd like to change ownership of the link itself, you need to use the -h option to chown: -h, --no-dereference affect each symbolic link instead of any referenced ...


4

Google Compute Engine allows you to provision a Linux VM in your chosen region which you can then ssh into with root privileges. It's cheap and you can get $300 worth of usage as a free trial.


4

This is impossible because it's the Linux kernel that creates and manages the RAM disk. Responding to a later amendment to your question, asking how to reserve a chunk of memory that the OS cannot access. The OS manages all your access to the hardware. That is - by definition - part of what it's there for. So, no, it's not possible to reserve a chunk of ...


4

You can use the DEBUG trap to do this. In this trap, $BASH_COMMAND contains the command last executed. trap 'echo "you tried to call the command [$BASH_COMMAND]"' DEBUG Note that, if you are executing commands as part of your prompt or $PROMPT_COMMAND, the trap will run on these as well. You can add checks to see if $BASH_COMMAND is the same as ...


3

If you want to know the driver for your internal USB : lspci| grep USB This will list you the USB devices like : 00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04) 00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) 00:1d.0 USB ...


3

I found lazytime, a mount option for ext4, that solves this satisfactorily for me. https://lwn.net/Articles/620086/ This mode causes atime, mtime, and ctime updates to only be made to the in-memory version of the inode. The on-disk times will only get updated when (a) when the inode table block for the inode needs to be updated for some non-time ...


3

If my memory serves me right, activity detection depends upon user input (nodes under /dev/input/). If these nodes are silent for a given amount of time, then the state is assumed inactive. If copying under OSX appears as though it prevents the system from dozing then the command itself must be written (i.e. coded) as such (to prevent the system from going ...


3

program & will still have the same stdin and stdout as program, but program & usually (depending on your terminal settings) won't be able to read from stdin without getting stopped by the system via the SIGTTIN signal (see https://en.wikipedia.org/wiki/Job_control_(Unix)#Implementation ). Background processes won't receive signals from keyboard ...


3

Your question is stated in a rather chaotic way, but this is what I understand: You're talking about enabling your wireless network adapter using a command that requires root privileges (hence run using sudo). The command you're executing actually removes a module (see man modprobe under the -r option). It was probably suggested that you remove the ...


3

No part of the official kernel currently does that, nor any third-party kernel module that I've seen. Only a kernel component could do that. I think that /proc/[0-9]* is common enough in shell scripts that no official kernel component will ever do that.


3

Also note that the error you gave above ln: creating symbolic link `/etc/init.d/jboss1': Permission denied is not due to the owner of the symlink being somebody else than the owner of the original file. It is (most probably) caused by user askar not having write access to the directory /etc/init.d.


3

A loop device is a particular type of block device, managed by the loop device driver. A loop device is a block device whose content is stored in a file, similar to the way a SCSI disk device is a block device whose content is stored on a SCSI disk, a USB storage device is a block device whose content is stored on a USB storage peripheral, etc. Linux has a ...


3

Without line breaks, grep is buffering all of the input, so that it can show you the "line" where the string appears. Two questions: Do you need the adjacent content? are there spaces or other characters separating the tokens? If you don't need the context of the adjacent content and there are spaces separating tokens, just use tr to turn spaces into ...


2

If you format a piece of the SSD drive to be used as a bcache cache, then it will not be available anymore to store any other filesystem, obviously. But nothing prevents you from using the remaining part of the SSD drive as you see fit. This applies to for instance WD Black2 There are also other SSHD disks, like Seagete Momentus XT, where the cache is ...


2

I think you've missed bootloader. U-Boot has to be present on your SD. Take a look how SD layout should look like for Banana Pi / Pro: http://wiki.lemaker.org/BananaPro/Pi:Setting_up_the_bootable_SD_card#SD_Card_Layout


2

It depends on hybrid drive type: new Seagate SSHD drives manufactured since late 2013 have far better caching than earlier models. What is also important, bcache caching strategy is totally different than Seagate Adaptive Memory strategy, and while bcache is very fast in benchmarks, AM learns data topology and can outperform bcache in real situations, eg.: ...


2

Yes. If you echo a string that starts with a | character to /proc/sys/kernel/core_pattern, it will get executed and receive the core dump as input. More information is available in man 5 core.


2

You have to look at Sockets and Cores per Socket. I this case you have 1 physical CPU (Socket) which has 4 cores (Cores per socket)


2

You could - probably. From the man page: While this is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable. You'll also still need to work out exactly what type and what speed that you'll need for your laptop. Why not use http://www.crucial.com or a similar site and enter the details ...


2

You can use the directive StopWhenUnneeded=yes in the dependency target unit file (i. e. hlstatsx.service).


2

When acting on symlinks, you must tell most of the tools (chown, chmod, ls...) not to dereference the link: you must add the -h parameter, as stated in the manpage : -h, --no-dereference affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink) So try : sudo chown -h askar.admin ...


2

From what I can see, the Marvel; 88se9230 is supported in newer kernels (since 2013 and kernel 3.2 at least). See this bug report and these messages to the linux-ide mailing list. Based on the above, it should be supported by most recent distributions.


2

Some package managers support relocation. RPM in particular supports relocation, where the package itself has been built to support it. More information on rpm --relocate at rpm.org:Relocatable packages A comment by the maintainer of yum in 2008 (Seth Vidal) suggests that support for relocation within yum is unlikely. yum mailing list:Yum relocate option


1

If I may give you a little tip! "... and my personal critique" if we stop to see it how best distro? let me explain you what, this concept, this thing best distro is very concerning because due to the large number of available distros actually what you must 1st before you think about it, is to think what distros right hand is best suited to my work "your ...


1

I'm working on a similar issue lately trying to get some server-daemons to run as their own users rather than having to do the ever-frightening sudo ./startup.sh... If you have any free ports whatsoever, you might designate one to route traffic where you actually want it. Without hitting the books for you here, I think you may be able to get what you want ...


1

From the Boost 1.58 Release Notes: Compilers Tested Boost's primary test compilers are: Linux: Clang: 3.4 Clang, C++14: 3.5, 3.6 GCC: 4.4.7, 4.9.2 GCC, C++98: 4.8.1, 4.8.2 GCC, C++11: 4.4.7, 4.8.4, 4.9.2 GCC, C++14: 4.9.2 Windows: GCC, mingw: 4.4.7, 4.5.4, 4.6.3, 4.7.3, 4.8.2 Visual C++: 8.0, 9.0, 10.0, 11.0, ...


1

If your goal is to enable your users to use the same address for each service, I would instead get a domain name and set a subdomain for each service. eg: ts3.gameservers.com --- TeamSpeak3 csgo.gameservers.com --- CSGO www.gameservers.com / gameservers.com --- your Apache web server.


1

A free account at SageMath Cloud may fit your purpose. My account allows me to upload/download programs and compile/run them on a Ubuntu box located in the USA. The purpose of SageMath.org is to provide free, open source math software. The website is based on Python, but Python is not the only programming language available. In particular, an interactive ...


1

If your tablet came with Android installed, the place to start looking is the XDA site. There are all sorts of patches and mods there, and, depending on the exact model of your tablet, somebody might have ported a Linux distro to it. Some tablets even allow dual boot, others can't be modified at all (that is, there is no known way to root them).


1

Take a look at this: https://wiki.ubuntu.com/Touch/Devices Maybe your tablet is on the list of supported devices



Only top voted, non community-wiki answers of a minimum length are eligible