Tag Info

New answers tagged

0

Starnamer is correct (I was one of the beta testers). Putting it in the kernel was an attempt to improve abysmal performance (mainly to PCNFS clients) and once that issue was solved noone looked at it much again. There are a number of deficiencies with having NFS in the kernel, not least of which is that it doesn't play nicely with anything else touching ...


0

kpartx should be able to help you do this. Perhaps partprobe can do this as well (but I've never used on anything else than blockdevices)


2

You can make it: has_ports() { ls -A "/sys/devices/virtual/net/$1/brif/" 2> /dev/null | grep -q . } has_ports br0 || brctl delbr br0 Or: if ! has_ports br0; then brctl delbr br0 fi (note that you do need the -A as interface names are allowed to start with .). To count the number of ports: With zsh: ...


1

Set options you want (see help with ? key), then save them with W So, to get something like old top back, press zV1W Mine ~/.toprc currently looks like this: top's Config File (Linux processes with windows) Id:i, Mode_altscr=0, Mode_irixps=1, Delay_time=1.500, Curwin=0 Def ...


1

Your configuration seems ok to me (you normally only have to override the sensible defaults in ./configure), you would normally include the build step (make). From the FAQ file included in the downloaded 1.2.8 archive: 13. How can I make a Unix shared library? By default a shared (and a static) library is built for Unix. So: make distclean ...


-2

find . -name -mtime +0.5 -print -delete is another option to delete large number of files quickly.


2

The problem is: When bash is started non-interactively then it does not read ~/.bashrc. Thus you have to read h() from the script. If you want to use aliases in a script then you have to enable the use of aliases in the script with shopt -s expand_aliases define the alias in the script. An alternative to an alias is defining a shell function (which ...


1

In order to dual boot windows and linux you must install Windows first. Its something about Windows not wanting to play nice with other OS's, I don't exactly know why. Once you have Windows 7 installed try installing linux normally, but when you get to partitions you will want to designate a section of your hard drive to Linux only. There are plenty of ...


1

Use This tool Instead: LinuxLiveCreator. I've Found it to be more reliable. After doing so, reboot. If you still receive Windows7, you need to change the boot order in your BIOS to include USB devices.


1

I would use sed it's really powerfull, this bash file would change the values: #!/bin/bash path_to_conf="/path/to/vsftpd.conf" anonymous_=NEIN local_=JA chroot_=IDK sed -c -i "s/\("anonymous_enable" *= *\).*/\1$anonymous_/" $path_to_conf sed -c -i "s/\("local_enable" *= *\).*/\1$local_/" $path_to_conf sed -c -i "s/\("chroot_local_user" *= ...


0

For update and upgrade your kali linux: apt-get update & then apt-get upgrade Next : Set network adapter to BRIGED MODE if in virtual Box.


1

startx is still the standard way to run a desktop environment - graphical distros set up a desktop environment to be run when X is started. If it's not set up, you may want to look into creating your own .xinitrc. File managers are not distro specific; very few (if any) Linux programs are distro specific, since there's nothing fundamentally different ...


0

To the best of my knowledge xorg (stareted by startx) is the only GUI, what you might be referring to is Desktop Enviroment, that will vary from one computer to another. Also almost nothing is common to all distros. However you can expect bash to work more or les the same on all distros( depends on configuration files). So commands: ls will list ...


2

Here's the output from apt-cache search ltsp on raspbian (Debian Wheezy compiled for the armv6 raspberry pi): fts-ltsp-ldap - LDAP LTSP module for the TFTP/Fuse supplicant fts-opsi - LDAP LTSP module for the TFTP/Fuse supplicant ldm - LTSP display manager ldm-server - server components for LTSP display manager ldm-themes - Collection of themes for the LTSP ...


0

My guess is that you're running in a Linux-on-Linux soft virtualization environment such as LXC or OpenVZ where all virtual machines run above the same instance of the Linux kernel. In this kind of environment, kernel parameters (such as the sysctl parameters that you can set via /proc/sys) apply to every virtual machine. Therefore only root in the host ...


1

Don't use sudo in init scripts. They're run as root to start with. If you were to use sudo in /etc/rc.local (which as per #1 there is no point in doing), you need to provide a $PATH or the path to the executable because there is no $PATH set when this is run at boot by init. So, e.g., if you wanted to run ls, first find out where it is: whereis ls ...


2

Unless you can't (or don't want to) use persistent device naming (mentioned by @jasonwryan in his comment), you can: try swapping the installed drives until you achieve the desired outcome. This however, will be tedious and error prone, plus it is likely to break the other installed OSes. tell your bootloader to pass root=/dev/sdc1 to the kernel when ...


0

Please run chkconfig --list | grep mouse It should show something like this: mouse 0:off 1:off 2:off 3:off 4:off 5:off 6:off If it does, it indicates that the service will not run on startup. You can make it run on startup using : chkconfig --add mouse OR chkconfig --level 35 mouse on Give it a try.


0

The init.d scripts aren't run on login, so it's normal that it doesn't run if you just log out and in. They only run on boot, or when changing runlevels. /etc/init.d is the right place if the settings are global (shared amongst all users) and need only be run on boot. For simple tasks you may instead want to add the commands to /etc/rc.local, which doesn't ...


1

Being physically disabled, I understand how you feel. As such, I'm posting the info I find on your device: VendorID = 0b06 = Athena / Advantage x7500 / Dopod U1000 / T-Mobile AMEO ProductID = a513 = ?? a513 doesn't exist in any USB Database I could find, but I did find this post over at Reddit. I tend to agree that buying a newer supported product would ...


2

It looks like hid_multitouch might be your driver. Before blacklisting, try the following: modprobe -r hid_multitouch If this works then add it to the blacklist


0

Print the SSH configuration of the box to figure out which IP address it has from the host machine: vagrant ssh-config To get the IP address directly: $ vagrant ssh-config | awk '/^ *HostName /{ print $2 }' 127.0.0.1


-1

You might enjoy this little ditty. $ id -nu [number] 3.17.3-1-ARCH #1 SMP PREEMPT Fri Nov 14 22:56:01 CET 2014 i686 GNU/Linux I can confirm that it returns a corresponding user name, if one exists, on Arch Linux. I can also confirm that it does not work on Ubuntu when run as a normal user, although I have not tested this as the superuser. It also does ...


1

You can configure sudo so that members of a group can run a command without a password. Use visudo to edit the sudoers file: # visudo Add something similar to: %mygroup ALL = (root) NOPASSWD: iwlist wlanX scan to the bottom of the file (where mygroup is the name of your group preceded with a percent symbol). You could also allow a single user to run ...


0

If you're looking for memory numbers that add up have a look at smem: smem is a tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system. ...


0

First, gain access to the terminal and execute ls -al file with file being the file you want to convert back into an ACTUAL folder. If there are files and sub-directories listed it means your "file" was previously a folder with real content and you may continue: Execute: sudo chmod 700 / OR sudo chmod 700 file Restart the system and regain terminal ...


0

If you care much about battery life, you should not waste cpu time on compression. For example, just browsing the web would cause your system to spend energy on compressing cached data. If you're having storage space issues, consider using remote storage more often (see samba, sshfs, etc). You may still want to use btrfs for it's other features useful to ...


0

Assuming you couldn't reproduce this problem with another file system on the same machine, it has to be a samba bug. Whether it's a client or a server problem is a bit of a moot point, but I would guess that it has to do with the same file being mapped for execution and opened for reading, which is probably handled incorrectly, because read call should not ...


0

If it was a laptop Lornix would be right, my lenovo has this BIOS-option, but on a desktop it's inside the keyboard, I have the same problem with my keyboard. It is possible there is software to switch the behavior of the keyboard, search on google with the model number of the keyboard, not the computer. If you can't find it, take a look at the source for my ...


0

Boot from some live medium and perform the xfs_repair from there.


0

You can use prebuild Linux distribution named www.rocksclusters.org As I know it is Redhat based. Rockclusters consist of lots of cluster file systems, mpis, job schedulers. If you want to install yourself: For shared file system, there are many alternatives, you can use GFS2. For MPI, there are many alternatives, you can use openmpi. For scheduler, there ...


0

It looks like php56u from IUS is for Apache 2.2 not 2.4 which is why it is trying to install httpd.x86_64 0:2.2.29-1.4 (Apache 2.2.29) and all the associated tools (httpd-tools.x86_64 0:2.2.29-1.4). However, those two will conflict with httpd24-2.4.10-1.59 that you've installed from the Amazon repository. Try the REMI repo - I believe it has both PHP 5.6 ...


1

Generally when you buy a RedHat license, you get access for one year to their repository. In otherwords, access to RedHat specific packages is by paid license ONLY. Your company should have access to these packages, so you'll have to ask your company systems administrator for registering your system properly to obtain such packages. However, as you know ...


7

Use a format: $ seq -f "10.20.30.%g" 40 50 10.20.30.40 10.20.30.41 10.20.30.42 10.20.30.43 10.20.30.44 10.20.30.45 10.20.30.46 10.20.30.47 10.20.30.48 10.20.30.49 10.20.30.50 Unfortunately this is non-obvious as GNU doesn't like to write man pages.


5

You can use sed command with seq to print range of IP address. seq 2 23 | sed 's/^/10.0.0./' OR using echo and tr echo 10.0.0.{2..23} | tr ' ' '\n'


1

I believe that Grub will automatically detect the second drive. Boot into Xubuntu and run sudo update-grub.


3

Android is based on the Linux kernel. That, and a very stripped-down BusyBox. All the rest of GNU/X11/Apache/Linux/TeX/Perl/Python/FreeCiv is not present on Android. Asking why Linux doesn't emulate Android is like asking why trucks don't emulate airplanes — after all they're both big vehicles with wheels at the bottom. Most Android applications are ...


0

Ok so I've made a script for that: https://github.com/MightyPork/autonumlock It's now also available in AUR as autonumlock-git Basically loop with lsusb, grep and checking if the device ID is there or not. Output - numlockx on / off.


0

From what I have gathered from experimenting and reading, I agree with uther that Network Manager seems to load by default, but the network service does not. When I recently had a VM host starting up without eth0 showing up in ifconfig output, it was because I had Network Manager running, network not running, and NM_CONTROLLED=no in my ...


0

It because the architecture of Android ist different and developed for mobile devices. Look at this for more informations.


1

fuse-zip is an option and claims to be faster than the competition. # fuser-zip -r archivetest.zip /mnt archivemount is another: # archivemount -o readonly archivetest.zip /mnt Both will probably need to open the whole archive, therefore won't be particularly quick. Have you considered extracting the ZIP to a HDD or USB-stick beforehand and simply ...


1

You can use fuse-zip to mount zip as read only. 1 -- Install fuse-zip on your system. UBUNTU sudo apt-get install fuse-zip CENTOS/REDHAT/FEDORA yum install fuse-zip 2 -- Run below command to mount zip as read only. fuse-zip -o ro /path/abcd.zip /path/to/mount/directory 3 -- Use below command to unmount directory fusermount -u ...


0

You will need to use TestDisk's sister program PhotoRec to recover your files. It's been a couple of years since I last used these programs, but IIRC you won't be able to recover them in-place, so I hope you have enough spare HD space to recover your files to. It's a good idea to read through the relevant TestDisk & PhotoRec docs before you attempt to ...


0

I need help on this as well. Was using a version of Ubuntu and accidentally formatted my Windows main and recovery partition, along with everything that was on it. Any help would be appreciated. P.S. I'm new to Linux so any installation instructions would also go a long way. Thanks.


1

The master key bears no relationship to any of the possible passwords (recall that with LUKS you can have multiple passwords to unlock a single master key). Per the cryptsetup FAQ: LUKS PASSPHRASE IS NOT THE MASTER KEY: The LUKS passphrase is not used in deriving the master key. It is used in decrypting a master key that is randomly selected on header ...


1

NAT (Network Address Translation) has nothing common with the goals you described. Correspondence between IP and MAC addresses is kept using mechanism named ARP (Address Resolution Protocol) for IP version 4 and Neighbour Discovery for IP version 6. In rare circumstances, you can maintain the neighbour list manually, but it's rarely needed. For assigning IP ...


0

Linux flushes the data from page cache using a process called pdflush pdflush is controlled by parameters from /proc/sys/vm #/proc/sys/vm/dirty_expire_centisecs The hundredth of the second after which data will be considered to be expired from the page cache and will be written at the next opportunity. #/proc/sys/vm/dirty_writeback_centisecs` The ...


0

Redhat cluster use a fencing method called fence scsi. The fencing node forbid the other from accessing lun in SAN. however, this still requires some sort of TCP/IP communication between node. I assume that by Because of security there is no any TCP/IP network between two linux server. you meant nodes can't access ILO/iDrac feature to power off ...


0

You can also try vmtouch vmtouch opens every file provided on the command line and maps it into virtual memory with mmap(2). The mappings are opened read-only. It recursively crawls any directories and does the same to all files it finds within them. With no options, vmtouch will not read from (touch) any memory pages. It will only use mincore(2) ...


1

If you are using bash try to put this in your bashrc/bash_profile: alias cd='cd $1 && ls -lrth' UPDATE: This is not correct, i just double checked it, it is just listing the dir you did want to cd in but it stays in your actual dir where you launched the command. UPDATE 2: You have to create a bash function instead of an alias it is much safer ...



Top 50 recent answers are included