New answers tagged

0

In worst case scenarios, sure, it should. That said, swap is usually the last place you'd store pages on, if ram was available, and with 6gb, you should typically not be experiencing that much swapping. Typically system slowdowns due to swap would be due to insufficient ram + high ram demand (which results in heavy swapping) + slow drives - I've had ...


1

The password is raspberry (note the missing p).


0

Perhaps Tcl/Tk ( www.tcl.tk ). Tcl is a scripting-language, and the Tk-extension to it lets you make GUIs pretty easily. There are online examples, and it's also mentioned in books like "Running Linux". (With Tcl you can also get expect, an extension that lets you create scripts that interacts with other programs, and contains challenge-response pairs... ...


0

For DD-WRT V24 pre SP2 (svn 12533+) CGI support has been disabled as a fix for an exploit. You can install and configure separate vlighttpd. Separate httpd-server for your site For the best result it is better to use separate httpd-server for your site. There are several possibilities: install vlighttpd e.g. with Optware, The Right Way or ...


0

This is an old question that already has answers that cover many of the structural differences. The question is written from the perspective of migration from Windows. The author is a technical person, but current readers may not be. There are several aspects that haven't been mentioned that might be bigger considerations in the choice of distro, ...


0

One way would to be to output the result of an echo. echo "foo" > bar.txt This will make a file titled bare with the containing text, "foo".


0

Telegram-cli is definitely using 127.0.0.1 (or 0.0.0.0 with --accept-any-tcp switch) only as a bind address. I didn't find any configuration options to change this. However I can setup access from another computer to the telegram-cli on a specific inteface with the help of rinetd. It is very easy to configure and works like a charm. This way I solved this ...


2

What I had not noticed is that bash-completion has a folder in /usr/share/bash-completion/ called completion with separate files for each program that it supports. I copied the apt file from my Ubuntu box and put it in that folder on my minimal Debian box. Now it works perfectly.


1

It depends on desired level of trust to system. From optimistic side: If everything happens really as You say. I can't say this system compromised. More correct it unwanted access. As long intruder can't get root or other privileged user access. At minimum You do everything right. pessimistic side: If You suspect and afraid that intruder make ...


0

When you add a new program to the path, you need to type rehash For it to be known to the shell.


0

You need to check route table on your new server and make sure that your default route goes through em interface.


1

Minetest wiki states, that you need to enable forwarding for both UDP and TCP packets. This could be your problem. If it doesn't help do following: First debug the connection from different computer on your local network. Connecting to your local IP from same machine doesn't do the job - this communication is automatically routed through the loopback ...


0

You may consider using SSH tunneling. Create few tunnels from your RPi device to each other you need access to, and you can SSH to them using local RPi ports. The problem is if device reboots your connection will break.


2

Despite those errors coming through on the console you should be able to issue commands via a vterm (ctrl+f2-7) if you just hit enter or ctrl+l (that's a lowercase L, for clarity) you should get a bash prompt. You could certainly try reinstalling gnome-session via that shell, just to see if that resolves the issue.. However, I hate to say it, but seeing ...


0

I see this is an old post but still, I have tried many things with this, the best and simplest solution for streaming from PiCamera in my opinion is: Loading the uvl4 camera module driver "sudo modprobe bcm2835-v4l2", MY Use Iceweasel or Firefox for WebRTC If it`s not working, try to restart your Pi.


2

It is possible to disable OpenCL support without recompiling ImageMagick. Setting the environment variable MAGICK_OCL_DEVICE to OFF will disable OpenCL. This will work for both ImageMagick 6 and 7.


1

Ok found the answer. If I place a () in the beginning and end of this it works. (ssh $SERVER "su $ORACLE_USER -c 'export ORACLE_HOME=\"/u01/app/oracle/product/11.2.0\"; export PATH=\"/u01/app/oracle/product/11.2.0/Opatch:\$PATH\"; opatch lsiinventory'") > /tmp/output.txt


0

I use something like this to grab automatically focus on tag change tag.connect_signal("property::selected", function() focus_on_last_in_history(mouse.screen) end) and this one to refocus when closing a window on a tag client.connect_signal("unmanage", function() focus_on_last_in_history(mouse.screen) end) function focus_on_last_in_history( screen ) ...


0

Adding midi through ports: Install missing alsa components: sudo apt-get install alsa-oss sudo apt-get install (alsa missing components if it nessessary) run text editor as administrator: sudo kate (or sudo gedit or sudo somethingtexteditor) In text editor type line: options snd-seq-dummy ports=16 (ports=as many as you want) Save the text file to /...


0

You will need to use ip6tables for actions regarding IPv6 It's also worth noting that IPv6 addresses need to be put in [] for TransListenAddress, eg: TransListenAddress [::1]


0

Your wireless card might be disabled in your BIOS. To enter your BIOS, when the Dell logo appears tap F2 key until the message Entering Setup appears. Look for : Power Management-> Wireless Radio control-> Control WLAN Radio or something along those lines, and make sure it is always on.


3

In most shells, variables aren't automatically part of the environment until they're exported there (in Bourne shell terminology). For sh/bash, use: ssh $SERVER "su $ORACLE_USER -c 'export ORACLE_HOME=\"/u01/app/oracle/product/11.2.0\"; export PATH=\"/u01/app/oracle/product/11.2.0/Opatch:\$PATH\"; ...


2

swapoff tells you swapoff failed: Invalid argument when the device is already not being used for swap. Example: deltik@node51 [~]$ sudo swapoff /dev/zero swapoff: /dev/zero: swapoff failed: Invalid argument This is not an error. It just means that the device isn't being used as swap at the time you shut down your computer. If you're wondering why ...


-1

The Plesk team released an extension to help with just that a month after your question. Check out Gitman


0

I would argue that a mechanism for this within a shell script is a perfectly adequate solution and that a mechanism for that on operating system basis (so that I don't have to manually run a background program) just means putting that solution in a process manager like s6, runit, a systemd unit, or even an inittab entry if you're on a sysvinit system. ...


0

I also see a ton of references online to this only being temporary storage You are able to select SSD as your data disk when you are creating your VM. But it is more expensive then the VM using HDD. Here is the pricing calculator for Azure VM. Pricing Calculator


0

I managed to share an user-mode pulse server among local users via TCP. Edit /etc/pulse/default.pa to enable the TCP module. I basically disabled auth to simplify configuration. Note there may be security implications if you aren't the only one using the computer. load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1 Restart ...


1

Try to debug the issue deeper. First, it sounds like the verbosity of your debug log can be higher, if you don't get any messages related to HID hang-up. Second, try to "regress" the issue. Try to use a USB 2.0 hub between your "Debian machine" and your audio and mouse devices. Try different tree configurations, say, the mouse is connected to the root port, ...


0

There is not enough information to resolve this question. Does the port shutdown occur with any USB device, or with only particular devices? What kind of devices they are? It sounds like an issue with USB port power management. Even if the core does not go into SUSPEND, the USB stack will continue to operate USB ports with all possible power management (PM) ...


0

One solution is to use the -S (--chop-long-lines) command line option for less. This tells less to truncate lines to the width of the screen. To view the truncated lines that are wider than the terminal, the left and right arrow keys can be used to scroll the window horizontally. You can enable this behavior by adding -S to the command line or setting the ...


0

for CentOS 7: ip a in my box, the MAC comes after 'link/ether' ex: link/ether cc:10:ee:5f:d8:aa


1

To associate a file extension with a program, you create a .desktop file (living at ~/.local/share/applications ) first for the program and then specify the association on the mimeapps.list (living too at ~/.local/share/applications ). For the specific case: create file ~/.local/share/applications/x64.desktop with the following content (If the x64 ...


0

No you will not be able to achieve that as this would have to be programmed inside the boot loader before any one OS is started, so I don't think that's possible unless you're a BIOS programmer.


0

The idea with the new set-up is that you shouldn't be using passwords at all. See UNIX_SOCKET Authentication Plugin for details. What's especially relevant is the contents of /usr/share/doc/mariadb-server-10.0/README.Debian.gz on Ubuntu 16.04: On new installs no root password is set and no debian-sys-maint user is created anymore. Instead the MariaDB ...


0

You'd want to swap out each disk one by one firstly. To do this you'd 'fail' each disk, and replace it with it's new 8Tb replacement, infact if you have the spare ports, you can add the extra disks, then have mdadm 'replace' in place instead of removing a disk from the raid and having a higher risk of failure. This question details the best way I can find ...


0

As a fast fix you can make an alias. Add to you ~/.bashrc file this: alias main='/home/user/Downloads/program/./main' then run exec bash in your terminal and it should work. If you're not using bash something similar would work for other shells. For example writing to the file ~/.zshrc for the zsh shell.


2

It looks like you need to add that directory to your path. The exact command to do this depends on which shell is in use. For bash, you'll need something like: export PATH=$PATH:/home/user/Downloads/program/ Explanation: The PATH=$PATH keeps the existing path as part of the new path your are creating. The :/home/user/Downloads/program/ adds that ...


0

Okay, thanks to Spiff I could solve the problem. Here is what I did: Copy the cert (with ending .crt) to /usr/share/ca-certificates/randomsubfolder/ Import the cert in the list of all root-ca-certs: sudo sh -c 'cat /usr/share/ca-certificates/randomsubfolder/cert >> /etc/ssl/certs/ca-certificates.crt' Note: This is not officially supported by synology. A ...


0

Assuming that you have vnc server already installed - it is pretty simple, just type this in the console of your running session, that you want to connect to: x11vnc -display :0 That's all.


1

Zoredache has put you on the right track. The details of the answer are as follows: Leave the VPN as is, this will setup the default routing table called main; Now we setup a second routing table, for the packets that must not pass thru the VPN. We call the new routing table novpn (not a major flight of fancy there, I agree): echo 200 novpn >> /etc/...


1

The problem is most likely an MTU issue. Try setting the MTU on your network interface smaller and/or add an IPTables line to do MTU clamping. Whats probably happening is that somewhere along the line, your default 1500 byte MTU is proving too big to be transmitted - normally thanks to a VPN or VLAN or similar encapsulation of frames. Generally an MTU of ...


1

Your computer does indeed have a hardware button. I think its the same as F9. Just push that button to toggle on/off WiFi and Bluetooth. (if the F-keys are set to be the top most layer you will have to hold down the fn-key while pushing the button.)


0

Use IPtables iptables -A INPUT -i {INTRFACE} -p tcp --destination-port 3479 -s 192.168.10.203 -j DROP INTERFACE would be either eth0 or eth1.


1

this is my script to add my logo to the latest image and remove all video files, i run it via cron every 5 minutes #!/bin/bash cd /mnt/dietpi_userdata/webcam/dump composite -geometry +30+10 /mnt/dietpi_userdata/webcam/logo.png "$(ls -t *.jpg | head -1)" /mnt/dietpi_userdata/webcam/webcam.jpg convert /mnt/dietpi_userdata/webcam/webcam.jpg -gravity North -...


0

I currently see two possibilities, 1) Our office's IP address (static IP provisioned by the lovely Comcast) is on a list of known targets by some DDoS/DoS attacker. 2) Server has been compromised and is being used to DoS attack others. Or both. Either way, what I'll do to remedy this for now is completely re-build the server stack from a bare instance on ...


1

Run yum info glibc to see what version of glibc is installed and what version is available. glibc-2.14 is not available to my CentOS 6.8 so I don't think you can use yum to upgrade it. If you need to install new version of open source software (normal user only) then I highly recommend Linuxbrew everything is installed to your home directory. Hope this ...


0

The 'paste' command is probably what you're looking for. An example: $ cut -d: -f1 /etc/group|paste - - - - root bin daemon sys adm tty disk lp mem kmem wheel mail uucp man games gopher video dip ftp lock audio nobody users dbus ... There I used cut to get a list of the names in my /etc/group file, then ...


0

What do you want to do with ImageMagick? If you just want to display the image and sort by the timestamp in the filename, you can do this: display "$(ls *.jpg | sort -k1.4 | tail -1)" The parameter -k1.4 makes it to be sorted by the fourth character (ignore 01_ in the beginning).


1

grep -l "gold" source.txt will output source.txt if the file contains the word gold xargs sed 's/green/red/' will run sed 's/green/red/' source.txt and the final redirect saves the result in your output. If I understand your intent correctly, you want the following command: sed -n '/gold/s/green/red/p' source.txt > pol.txt The /gold/ selects lines ...


3

To select any line containing gold from source.txt and replace the first occurrence of green with red: $ sed -n '/gold/{s/green/red/; p}' source.txt gold red white black blue To save that in a file: sed -n '/gold/{s/green/red/; p}' source.txt >pol.txt How it works -n tells sed not to print lines unless we explicitly ask it to. /gold/ selects ...



Top 50 recent answers are included