New answers tagged

1

To get an idea of why your process dies, make its parent process print the exit status. The exit status indicates whether the program due to a signal and includes an 8-bit exit code from the process. The 8-bit exit code is conventionally 0 for success and 1..125 to indicate an error. In a C/Perl/… program, you can query the whole exit status. Consult the ...


0

i got the answer from here after going around alot and banging my head alot http://stackoverflow.com/questions/17539636/bundlergemfilenotfound-whenever-i-try-to-run-bundle-install simply run gem install bundler then bundler install as root in the tool root path and everything works as charm. to go to the tool root path cd /usr/share/metasploit-framework


0

Trying using with sudo privilege. Some processes won't show if the command is not executed with sudo privilege.


1

You should build your driver as module, and configuring the kernel so that you can force unloading modules. So when you change the driver, the kernel will recompile only the driver (and you don't need to install the new kernel, just to load the module from kernel sources.


0

You can easily read the stack of another process using the proc file system (You will need root access for this). Before arbitrarily reading from the /proc/pid/mem you need to consult the /proc/pid/mems. A simple read in this file shows a lot of entries. We are interested in the entry marked as stack. Once you get this you need to read the lower and upper ...


0

Me, I'd go for something like this #!/bin/bash # ######################################################################## # log_space_checker() { local target="$2" # Log file template local directory="${target%/*}" # Directory holding log files df -k "$directory" | awk 'NR>1 {print gensub("^.* ([1-9][0-9]*)%.*", "\\1", 1)}'...


0

find expect the first argument to name a directory (or be a test in which case ./ is default) remove_files(){ RemoveFiles="/logs/abc/abc.log.*" find "${RemoveFiles%/*}" -name "${RemoveFiles##*/}" -mtime +5 -type f -delete }


0

I do know that Uboot copies the kernel into ram and executes it with a bootm command, but where do the filesystem files come from? Before you can boot your fitImage you have to load it into RAM. After this you can start it with bootm. Inside the fit image you can define the Load Address and Entry Point for the kernel for example. Are they contained ...


0

The problem is that the character has no standard meaning: it is in the "private use" area, which means that different applications can (and do) interpret it in different ways. Further reading: Unicode.org code charts (results) The character U+F26B is in one of the Private Use Areas (PUA). The interpretations of such characters are not specified ...


0

The primary reason the DNS configuration is failing is because you're using the wrong keyword. Instead of dns-nameservers use dns-nameserver. While you're there, you should probably fix the post-up line. As explained by @MarkoPolo in the comments, You are also trying to add a static route with a next hop IP which isn't in the same subnet as your br0 ...


0

I was able to solve the problem by pressing alt, when the mac boots (like usual), but instead of running arch, I pressed e, and added nomodeset at the beginning of the line that showed up. Then pressed enter to boot. After installing arch linux, I had to add that kernel parameter to refind, my boot manager, to use nomodeset whenever I booted to the Arch ...


0

init is the first process to be executed after the kernel was loaded and the last to "shut down the lights" - figuratively spoken. The kernel does not need / to be mounted to run init, as it can be run completely from memory. "Live" distributions are running almost completely from memory and there are even some, whose cd/dvd/usbstick/floppy you can even ...


2

To display swap usage summary by your device: $ swapon -s To displays the amount of your free and used physical and swap memory: $ free -h To preallocate space to /swapfile, you can use the line below: $ fallocate -l 20G /swapfile OR $ dd if=/dev/zero of=/swapfile bs=20480 count=1M Then you just need to do: $ chmod 600 /swapfile $ mkswap /...


0

Code examples is in the end of this post. Nowdays systemd reads fstab and then try to mount the fs in parallel. The systemd default mount-scripts are created at boot-time and you find them in 'run/systemd/generator' You can either try to use the noauto parameter in fstab which mounts the fs only when its accessed. Which may have sideffcts so that you in ...


2

You just want to increase the swap size on your system using the space from sda2. Your sda2 /dev/sda2 104G 74G 25G 75% / You can add additional swap space to your system by using swap file created on / that will utilize your sda2. Just do: dd if=/dev/zero of=/swapfile bs=20480 count=1M and then do: sudo mkswap /swapfile sudo swapon /...


3

Better would be to rewrite myapplication so it gets the password via some other mean like stdin. The environ is another option, but that is still visible to processes with the same euid (or euid 0) via /proc/<pid>/environ. If not, on Linux with versions prior to 4.2, you can limit the exposure by making sure the password is not in the first 4096 bytes ...


0

The normal Unix epoch can be thought of as "1/1/1970 00:00:00 GMT"; that's considered "time=0". So % date +%s 1469462327 Means 1,469,462,327 seconds have passed since then. That's typically how Unix counts time. Pretty much you should always set ARC=no (or ARC=false). The ARC value was used on some Alpha based machines where the clock used a ...


4

On a linux system, you can hide process information by mounting /proc with the appropriate hidepid setting, e.g. mount -o remount /proc -o hidepid=2. However, this will not hide process information from anyone with root access. The better solution is to not include sensitive data on the command line.


0

If yours /etc/network/interfaces is being rewrited on boot it means it's usually link into /run directory. 1) Set up correctly networking manager 2) Remove networking manager and make it a file.


-1

You need to be on the metasploit-framework folder first cd /usr/share/metasploit-framework/ bundle install if you get a error installing nokogiri-1.6.8 try to: sudo apt-get install libxslt-dev libxml2-dev zlib1g-dev --yes and rerun the bundle install on the correct folder


0

With zsh, from the current directory: for dir (**/*(N/)) { files=($dir/*(N.om)) (($#files > 1)) && echo rm -f -- $files[2,-1] } If you want hidden directories and files considered, add the D glob qualifier. That only considers regular files. If you want other types of files like devices, sockets, named pipes, or if you want to follow ...


1

With GNU sed and GNU date: sed -En 's#^Password=.*@([0-9]{2})([0-9]){2}$#date -d "\2/\1 +10 days" +%F#ep' We turn the 2507 to 07/25 as GNU date expects dates in the US style. However note that 07/25 is understood as the 25th of July of the current year. What that means is that if you run that command on 2017-01-02 on a Password=x@2712 input, you'll get a ...


1

Change the onboot value to yes, indicating this device should be activated as boot time. onboot=no to onboot=yes This device should be activated at boot-time


0

The most obvious place for personal information is under /home, but there may be private information elsewhere, such as: In logs (IP addresses, email addresses, etc.) In email (/var/mail) In the printer spooler (/var/spool/cups) Under /etc (e.g. network configuration) In deleted files that can be carved out of the disk image (This is not an exhaustive list!...


13

In Unix, files (and directories are just files) don't have "names". Links have names, links are entries in a directory that map names to files. You might say, that links give names to files, but note: this implies that a file can have more than one name, since it can have more than one link. Since the root directory is, well, the root directory, there is ...


1

zero is a legal file descriptor. The openpty call will (like open) return a positive integer (zero or more). They return -1 on error. A successful call returns a new (previously unused) file descriptor. You could get this result you had closed stdin (also legal, done occasionally in daemon/service code).


0

I have a answer, though you wont like it. Multiple RR A in DNS wont get you high availability. The answer is highly dependent on the client/their DNS server. If the client solves the IP address of the ISP that is down, it will keep it on cache, and wont try the other, so you will have a set of clients having access, and others complaining the site is ...


0

If you don't want to get into real routing protocols, the best suggestion is a continuously running program that pings the two first hops (with your made up addresses, that'd be 161.0.0.1 and 171.0.0.1) regularly and installs whichever is responding as the default route. You could probably do this in your choice of scripting languages, although I'd probably ...


35

The POSIX standard says A pathname consisting of a single / shall resolve to the root directory of the process. A null pathname shall not be successfully resolved. It makes a distinction between filenames and pathnames. / is a pathname for the path of the root directory. The name of the directory is "the root directory", but in the filesystem it is ...


4

The use of the word "name" is a little bit flexible; it can refer to a "fully qualified path name"; it could refer to the "directory entry"; it could refer to the "file name" passed to various functions or routines. So, for example, /etc/foo and /var/tmp/../../etc/foo and /tmp/../../../../../../foo are all ways of referring to the same file; they're all ...


24

slash is a separator; directory names do not include separators, but full pathnames include the separators. So the "root-level" "/" has no name. On most Unix-like systems, this is treated as a special case like "." and ".." (though of course there is no difference between the two at the root level). Nomenclature can differ. POSIX, for example lists some ...


0

the current version of the ideapad 710s BIOS does not allow changing of the SATA/drive mode from RAID to AHCI. As a result, it is pretty much impossible to install Linux onto these systems. I've tried multiple combinations of things - completely wiped the drive, disabled UEFI, Secure Boot and enabled Legacy mode, etc - and nothing works. The currently ...


0

As a variation of the original question, if you want to see the cumulative size of files in the subdirectories: #!/bin/bash find ${1:-.} -maxdepth 1 -type d -exec du -sm {} \; | sort -nr The sizes will be displayed in Megabytes ( the m in du -sm). Other values accepted by du are -k for kilobytes, -g for gigabytes. Using -h for human-readable display is ...


1

I recommend you read this article from RedHat. Hardware Clock, is a clock that runs independently of any control program running in the CPU and even when the machine is powered off so it can keep track of the current time. And hwclock is a utility for accessing the Hardware Clock - also referred to as the Real Time Clock (RTC) or CMOS clock. You can ...


0

The hardware clock is the real-time clock (these days part of the southbridge chip) the same subsystem also stores BIOS settings, and the hardware clock can often be set via the BIOS settings menus. On linux the hwclock tool can be used to access the hardware clock from the command-line. Using UTC for the hardware clock give more consistent results on ...


0

I assume the other device is the same ip-camera model, with an identically sized HDD/memory component. Then you could use dd to make an image of the whole HDD. Since stuff in dev, proc, sys and other such directories is not on the drive but in virtual memory, you don't need to explicitly copy it, it will be populated at boot. With something like: cat /dev/...


0

I think below is needed: ip ru add from 192.168.0.2 table 3 prio 300 ip ro add table 3 default via 192.168.0.1 dev wlan0


1

When you have the machine working as a hotspot and dhcpd working, you just need to make work as a router - my recommandation is to try finding a guide to setup the version of Fedora you use as a router. It basically comes down to: enable ip forwarding set up routing set up masquerading allow the traffic in whatever firewall you use. I've never used ...


1

From man 7 systemd.special, SPECIAL USER UNITS. When systemd runs as a user instance, the following special units are available, which have similar definitions as their system counterparts: default.target, shutdown.target, sockets.target, timers.target, paths.target, bluetooth.target, printer.target, smartcard.target, sound.target. So ...


1

I resolved the issue by removing that partition's entry from /etc/fstab For reference: none of the actions I took were damaging to the empty partition, it was the fact that I deleted a partition which was listed in /etc/fstab I apologize for bad formatting in the question. I typed out the question on my phone's browser.


1

If you are sending very small quantities of data at a time then it could happen: For every transmit you will receive an ack, possibly with zero byte payload. For every receive you will transmit an ack, possibly with zero byte payload. For every new connection you will transmit/receive a syn, a syn/ack, and an ack. (probably all with zero payload) There ...


3

You need to specify the directory name for both source files: cp Assign/LinuxHist Assign/Linuxnotes.txt Resources (There are many more ways of writing this, but this is the simplest form of the command to understand). Now your title has "Copy" but the question says "move". The cp command will copy. If, instead you want to move the file then use the mv ...


1

If you have VMware Fusion installed on your Mac one solution could be going to the selected Virtual Machine Settings and check both Accelerate 3D Graphics (Which requires VMware Tools installed on that virtual machine) and Use full resolution for Retina display (To enable Retina display support in selected virtual machine) in Display Setting. BTW, Here's ...


1

There isn't an equivalent for mount, and there is no default or standard way to do what you want. You'll have to write one. Here's a script fragment that shows one way of doing this: dev="/dev/$PARTITION" mp="/media/$USER/$LABEL" if [ $(mount | grep -c "^$dev \| $mp ") -eq 0 ] ; then sudo mount "$dev" "$mp" fi This uses grep -c to count how many ...


0

Static routes are defined into /etc/sysconfig/network-scripts/route-<interface name> files. (see Centos documentation) To apply one of these files : /etc/sysconfig/network-scripts/ifup-routes <interface name> That will not reload the rules, that will just reread the configuration and execute route add commands (so no route deletion). I do ...


0

Looks like you configured your client to push all the traffic through VPN, so you lost connection to the server after that. Check your client configuration


1

Download the right driver from here : iwlwifi-6000-4.ucode. Copy the firmware to your /lib/firmware: cp iwlwifi-*.ucode /lib/firmware Load the driver: modprobe -r iwlwifi modprobe iwlwifi rfkill unblock all Edit Install build-essential and linux headers sudo apt-get install build-essential linux-headers-$(uname -r) Download iwlwifi-6000-ucode-9....


0

You have three options: Set the PATH variable to include $ORACLE_HOME/dbs in your shell initialization scripts. export PATH="$PATH:$ORACLE_HOME/dbs" You may then call the initTEST.ora in your test.sh by just saying initTEST.ora Set the PATH variable in the script, and then call initTEST.ora as above: PATH="$PATH:$ORACLE_HOME/dbs" initTEST.ora This ...


0

You probably have this issue: https://www.happyassassin.net/2016/07/07/psa-failure-to-boot-after-kernel-update-on-skylake-systems/ It is related to a kernel update on Skylake cpu In case the link dies here are some workarounds: Boot an older kernel. Boot with the kernel parameter dis_ucode_ldr. Downgrade the microcode_ctl package to version 2.1-11 or ...


1

Hi developed some years ago a very simple kind of init system named texas flood (www.resulinux.tk) Shutdown processes is very simple to understand. It is controlled by init, until the end of the system shutdown. The system have many runlevels, like 0 , 1 , 2 , 3 ,4 ,5 6. When you call reboot, shutdown or halt in a normally running system, is the same ...



Top 50 recent answers are included