New answers tagged

0

You can pass that argument to Google Chrome on various operating systems by prepending --args before the arguments passed. Many Chrome/Chromium advanced flags will require the prepended value "--args" or they will not be recognized as options. Keep in mind the actual paths may vary depending on operating system or customer installation location. I have not ...


0

You may not need the shell script. You can start the process from the myService.service file provided you use the full path to both the java binary and the jar file. It should look something like ExecStart=/usr/bin/java -jar /home/pruss/dev/ServerDeploy5-4.1/Server/resources/MyServer.jar Works on CentOS 7.2.


0

If I understand right, you to go from A (your machine) to C throught B. So you can try run this command from A. ssh -A -t ServerB ssh -A -t serverC If like the thinks more easy and transparent, you can configure ssh ProxyCommand.


1

If you need this to use only one time. Use your own answer, otherwise you will need to start thinking in audit.


0

You don't need echo to run another shell script #!/bin/bash #echo $(./test2.sh) ./test2.sh


0

Change the ownership of the files under Prestashop directory to allow web-server user to write sudo chown -R www-data:www-data /var/www/prestashop Disable SELinux (better to configure SELinux to allow prestashop directory to do his stuffs) setenforce 0


0

I think bash's disown is the answer. See help disown.


1

You probably just need (as root): chown -R user.usergroup /home/user. Be careful, as you will lose the correct ownership, if some files are intentionally owned by another user.


1

put copies files to the server. If you want to get files from the share, use get.


0

installing of xorg inside chroot helps me


0

Command substitution $(...) turns output into arguments. It first needs the whole output, because it's not possibly to supply arguments dynamically one by one.


0

Rereading the problem , turns out the solution is different from what I'd suggested initially. We need something crossplatform, handles file transfers reliably and is dead simple. bittorrent sync should work. The linux client is a simple, single binary with its own webui. Set up a share there, then use the windows client on the other side to download the ...


4

That is not surprising given the type of data you are looking at. A video-stream consists of very highly compressed data. Looking at the raw bytes these appear as nearly perfect random data. That is a basic property of high compressed (high entropy) data. And nearly perfect random data has a nearly perfect random distribution of the bits, meaning every ...


0

While posting I found the answer for my question: I could detect that these files are create by a samba4 process: lsof t4vc* COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME smbd 29545 3000044 67u REG 252,2 25084928 66289949 t4vc smbd 29545 3000044 68u REG 252,2 25084928 66289950 t4vc.1 smbd 29545 3000044 69u ...


0

I tried sudo apt-get -s install ruby 2.3 (notice -s switch, i.e. simulation, no harm done) in my Debian. It matched lots of packets with 2.3 string. I'm fine but you for sure have many packets you don't want. I also run sudo apt-get -s --purge remove 2.3. It tried to remove every packet with 2.3 string, already installed or not. Don't do that because it may ...


0

Try this simple line, It will terminate all script.py: pkill -9 -f script.py


2

The problem that you have is that, since recent versions of gnome (3.14 maybe), on startup (and resume from suspend, as well) gnome sets the DPI to 96, whatever the real DPI is (which X has always guessed correctly). That unfortunate design decision with gnome, that does not appear to be justified by HiDPI support (because HiDPI works equally well without ...


1

The proper way to query a device properties, nowadays, is via udevadm: # udevadm info --query=all --name=/dev/sdb P: /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/host5/target5:0:0/5:0:0:0/block/sdb N: sdb S: disk/by-id/usb-Verbatim_STORE_N_GO_TTFEAZVTZPCNBF3Q-0:0 S: disk/by-path/pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:0 E: ...


0

The partition table you displayed belongs to a pure Linux system: there is no trace of Windows on it. So, given that you stated: This hard drive was once the hard drive of a computer that had windows and linux installed ... perhaps the guy who gave it to you was right when he said... Also, the person who gave me the hard drive is now thinking if ...


0

echo '"Field1a"|"Field2a"|"Field3a"|"ufghjkrtyrtyfgh$" "Field1b"|"Field2b continue on line 2 continue on line 3"|"Field3b"|"ufghjkrtyrtyfgh$" "Field1c"|"Field2c"|"Field3c"|"ufghjkrtyrtyfgh$"' | sed -nr '/^".*"$/{p;n};:a;/[^"]$|^[^"]/{N;s/(.)\n(.)/\1\2/;ta};p' "Field1a"|"Field2a"|"Field3a"|"ufghjkrtyrtyfgh$" ...


1

pv can also do it. Here are some moderately contrived examples: pv --rate-limit 1 /dev/zero > /dev/null pv --quiet --rate-limit 16 /dev/urandom | hd pv --quiet --rate-limit 10485760 /dev/zero | gzip | hd head -c 1000 < /dev/zero | pv --size 1000 --rate-limit 150 | sha1sum


0

Tested and corrected via these instructions: http://askubuntu.com/questions/46930/how-can-i-set-up-password-less-ssh-login The instructions here worked flawlessly when I tested on my boxes (CentOS/CentOS). I imagine the issue is your ssh keys are not tied to a username. Example: cat authorized_keys # on Box I'm sshing/scpin' to ssh-rsa ...


0

You can try environment variables, if your gnome version allows you to set the proxy to "detect automatically" or "system" or something similiar. Then programs should respect the http_proxy variable and you can try $ http_proxy=yourproxy epiphany


1

try lsof -i or variations of that. lsof can also show open files/devices. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME chromium- 1338 username 197u IPv4 26478 0t0 TCP 172.20.20.20:35906->stackoverflow.com:https (ESTABLISHED) chromium- 1338 username 198u IPv4 26227 0t0 TCP ...


1

You did all right. Make gpt table with fat32 and copy all data from iso on it. But you also need to set flag "msftdata"(not "boot") on this partition with e.g. parted.


0

one of the things I've found is that mdadm --create /dev/md0 --assume-clean will only work correctly if you use same (or close) version of mdadm that was used to create original array. That is becase they use different offsets for data and metadata, even if same superblock version (like 1.2) Problem is that mdadm output will always say it recreated array ...


2

Or write a wrapper to log it, $ sudo mv /usr/bin/wget /usr/bin/wget.orig $ sudo touch /usr/bin/wget $ sudo chmod +x /usr/bin/wget $ sudo touch /var/log/wget.log $ sudo chmod 666 /var/log/wget.log then, edit /usr/bin/wget as below #!/bin/bash echo $@ >> /var/log/wget.log /usr/bin/wget.orig $@


0

I had the same problem and, in my case, it was due to the fact that the file was an empty (0 bytes) gz file, created with the touch command: $touch file.txt.gz -rw-r--r-- 1 user user 0 2016-05-24 11:48 file.txt gzip could not decompress it, when called with the command: $gzip -dv file.txt.gz gzip: file.txt.gz: unexpected end of file The correct way ...


0

It is a paid software but it has a few features that might come in handy depending on what you are doing. It does have a free version that stamps eval all over the image. It is designed for printing things to scale for cutting out. https://woodgears.ca/bigprint/


0

Open Synaptic and click on the blue Reload button in the upper left corner to reload the list of installed packages. Check in Synaptic if kubuntu-desktop is still installed. Close Synaptic (or else you will get an error in Step 5). Open the terminal. Run the following commands to resolve the unmet dependencies: sudo apt-get update sudo apt-get upgrade ...


0

It is usually installed in your home directory. In a terminal, use the following command to find a file that is in the base of the installation directory: locate "SDK Readme.txt" If that doesn't find it, your file index database may be out of date; update that with: sudo updatedb If for whatever reason locate is not working on your system, use find ...


0

Try to specify explicitly the path to private key file, using the -oIdentityFile=/path/to/id_rsa parameter example : sftp -oBatchMode=no -oIdentityFile=/home/username/.ssh/id_rsa -b - username@192.168.1.2 << ! cd /directory put filename.txt bye !


0

     Type netstat -anp | grep LISTEN | grep "port_number" in your server machine and look for the ip address in which the service is running.      If it is the machine's ip address you must mention that one in the ssh -L command, else if it is the loopback address (127.0.0.1 - ipv4 or ::1 - ipv6 ) mention that in ...


2

Dig into /sys. Start with /sys/bus/usb/devices/ or /sys/class/block/sdX/ (where sdX corresponds to your USB key). Read files. This is how to get some information on USB port (I have no USB key at the moment to give better example): $ cat /sys/bus/usb/devices/usb1/version 2.00 More about /sys. There are tools that give information in a fancier way. ...


7

If I undmerstand correctly, something is wrong with the partition table. Somehow partition 2 is at the same location as partitions 5 and 6, which might explain the mounting-errors. This is normal. The MS-DOS-era MBR partition table can only hold 4 partitions, so it's customary to make the last one an "extended" partition, in which additional "logical" ...


1

You could alse use JVisualVM in your Linux box, assuming you - turn on X11Forwarding in sshd config (Linux side) and putty - start a X-server on your PC. (you can consider using Xming or cygwin's xwin available in xinit package)


0

This may or may not be relevant, but a similar problem plagues Acer laptops. There is a safety feature which kills power when the hardware detects the case is open (and power is on). By tightening some screws on the reverse of the laptop, the problem magically goes away. The screws are self-loosing so this may need to be repeated every few years. The ...


0

Same problem I've faced in my LENOVO G-580 I've solved it using pulse audio http://askubuntu.com/questions/366303/how-to-install-pulseaudio-on-ubuntu-13-10


0

I'd suggest taking the server offline immediately. Backup everything (When this happened to me, I just tarballed up the entire contents of my server and downloaded it), then run it through a virus scan to see if it picks up what's the issue. Rebuild the server from scratch. "But I don't know how someone have changed by ssh root password" is a terrible ...


1

Libreoffice (and probably OpenOffice) can do this. libreoffice --headless --convert-to doc FILENAME.html For more details: man libreoffice


1

No. You cannot install rpm as non-root user. You can extract content of those packages: rpmdev-extract ffmpeg-devel-0.10.15-1.el6.i686.rpm BTW if you are root and you want to install debuginfo, you should not do that using rpm (and not even with yum), but do: debuginfo-install ffmpeg


2

No matter what actual method of copy/transfer you use, you should pack them into an archive first. That will make sure 2 things happen: the new file you want to transfer is good-to-go (compared to many files that could be unreadable) and the transfer itself will go a lot smoother. Small files are a pain to any type of copying or transferring. Once you have a ...


1

There is no right answer here - for the most part, file transfers do not use a lot of resources other then bandwidth, so the speed of the machine is probably not to big a deal. The answer depends on what variant of Linux you have, and how you connect between the client and the server. The most obvious solution - if you have ssh on it is to use rsync - ...


2

$ awk '/[$]"[[:space:]]*$/{print;next} {printf "%s",$0}' file "Field1"|"Field2"|"Field3"|"ufghjkrtyrtyfgh$" "Field1"|"Field2continue on line 2continue on line 3"|"Field3"|"ufghjkrtyrtyfgh$" "Field1"|"Field2"|"Field3"|"ufghjkrtyrtyfgh$" How it works /[$]"[[:space:]]*$/{print;next} For any line that ends with $ followed by ", optionally followed by white ...


0

curl modifies what it sends to stdout and stderr depending if you pipe it's output, what option you use etc... You would need to post your script to see exactly why this is happening here. The best way to force the content of what you download into a specific file is to use the -o option: curl --user user:password -o output_file "https://file_path?raw" ...


0

If you don't specify -f nor -d, find with show you all types of inodes (files, directories, devices, link etc...). If you want files and directories only, then use -o, and possibly use escaped parenthesis if you are going to use other type of conditins. For example, all files, directories, links etc.... which have been modified/created in the past 2 days: ...


1

Just download a binary of ffmpeg. curl -O http://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz tar xf ffmpeg-git-64bit-static.tar.xz Your new binary will be in the ffmpeg-git-64bit-static directory. If your kernel is older than 2.6.32+ then you won't be able to use this. If you're using a 32-bit system, then replace the 64bit with 32bit. ...


1

#!/bin/bash ##Sorry for bad English. ##usage: script_name.sh silicon valley ##This urlencode fonction is from github project but I couldnt remember who is creator. urlencode() { # urlencode <string> local length="${#1}" for (( i = 0; i < length; i++ )); do local c="${1:i:1}" case $c in [a-zA-Z0-9.~_-]) ...


0

So, after a long read of the manual I tried this command : mdadm --manage /dev/md127 -t -a /dev/sdd -a for add as mdadm is supposed to reconized the recently removed disk and if it doesn't, it adds the disk as spare. -t was supposed to be for test but from the look of the detail of my array mdadm is currently "rebuilding" and it's going to take a long ...


0

ps man page -a Select all processes except both session leaders (see getsid(2)) and processes not associated with a terminal. This behavior is explained by the fact that there is more processes attached to a terminal in Fedora compared to Ubuntu. Ubuntu Fedora



Top 50 recent answers are included